{"id":34324,"date":"2019-10-31T21:57:38","date_gmt":"2019-10-31T18:57:38","guid":{"rendered":"https:\/\/prohoster.info\/blog\/namechena-bolshaya-chistka-standartnoj-biblioteki-python\/"},"modified":"2019-10-31T21:57:38","modified_gmt":"2019-10-31T18:57:38","slug":"namechena-bolshaya-chistka-standartnoj-biblioteki-python","status":"publish","type":"post","link":"https:\/\/prohoster.info\/et\/blog\/news\/namechena-bolshaya-chistka-standartnoj-biblioteki-python","title":{"rendered":"Suurel puhkuseperioodil on kavas p\u00f5hjalik puhastus Python standardraamatukogus","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>Python projekti arendajad <noindex><a rel=\"nofollow\" href=\"https:\/\/www.python.org\/dev\/peps\/pep-0594\/\">avalikustasid<\/a><\/noindex> tehnilise puhtuse tagamiseks esitatakse ettepanek (PEP 594) standardteegis. Eemaldamiseks standardteegist Pythonist pakutakse nagu selgelt vananenud ja kitsalt spetsialiseeritud funktsioone, nii ka komponente, millel esinevad arhitektuursed probleemid, mida ei suuda k\u00f5igi platvormide jaoks \u00fchtlustada. <\/p>\n<p>N\u00e4iteks soovitatakse standardteegist eemaldada sellised moodulid nagu crypt (puuduv tugi Windowsi jaoks ja algoritmide s\u00f5ltuvus s\u00fcsteemiteekidest), cgi (alaarhitektuur, mis n\u00f5uab iga p\u00e4ringu jaoks uue protsessi k\u00e4ivitamist), imp (soovitatakse kasutada importlib), pipes (soovitatakse kasutada subprocessi moodulit), nis (soovitatakse kasutada NSS-i, LDAP-i v\u00f5i Kerberos\/GSSAPI-d), spwd (ei soovitata otse t\u00f6\u00f6tada kasutajakontode andmebaasiga). Eemaldamiseks on samuti ette n\u00e4htud moodulid binhex, uu, xdrlib,<br \/>\n    aifc,<br \/>\n    audioop,<br \/>\n    chunk,<br \/>\n    imghdr,<br \/>\n    ossaudiodev,<br \/>\n    sndhdr,<br \/>\n    sunau,<br \/>\n    asynchat,<br \/>\n    asyncore,<br \/>\n    cgitb,<br \/>\n    smtpd,<br \/>\n    nntplib, macpath,<br \/>\n    formatter, msilib ja parser.<\/p>\n<p>Ettepaneku kohaselt plaanitakse Python 3.8-s m\u00e4rgata eespool nimetatud mooduleid vananenud, alates Python 3.8-st hakatakse andma hoiatusteateid ning Python 3.10-s eemaldatakse need CPythoni repolt.<br \/>\n Parseri moodul plaanitakse eemaldada versioonis 3.9, kuna see on vananenud m\u00e4rgitud juba Python 2.5 v\u00e4ljaandmisel, ja macpath on 3.8 harus. Eemaldamise korral p\u00f5hikoostisest viidatakse kood eraldi repole legacylib ja selle saatus s\u00f5ltub kogukonna huvidest. Oodatakse, et Python 3.9 haru toetatakse kuni 2026. aastani, mis annab piisavalt aega projektide migreerimiseks v\u00e4listele alternatiividele.<\/p>\n<p>Alguses olid eemaldamiseks ette n\u00e4htud ka moodulid ftplib, optparse, getopt, colorsys, fileinput, lib2to3 ja wave, kuid otsustati need v\u00e4hemalt praegu j\u00e4tta standardteegi koosseisu, kuna need on laialdaselt levinud ja j\u00e4\u00e4vad asjakohaseks, vaatamata t\u00e4iendavate t\u00e4iustatud alternatiivide v\u00f5i spetsiifiliste operatsioonis\u00fcsteemide funktsionaalsuse olemasolule.<\/p>\n<p>K Erinnern wir uns daran, dass das Python-Projekt urspr\u00fcnglich den Ansatz \"Batterien sind im Lieferumfang enthalten\" verwendet, bei dem eine umfangreiche Sammlung von Funktionen f\u00fcr verschiedene Anwendungsbereiche in der Standardbibliothek angeboten wird. Zu den Vorteilen dieses Ansatzes geh\u00f6rt die vereinfachte Wartung von Python-Projekten und die \u00dcberwachung der Sicherheit der in Projekten verwendeten Module. Schwachstellen in Modulen werden h\u00e4ufig zur Quelle von Sicherheitsanf\u00e4lligkeiten in den Anwendungen, die sie nutzen. Wenn Funktionen in die Standardbibliothek aufgenommen werden, reicht es aus, den Status des Hauptprojekts zu \u00fcberwachen. Bei der Aufspaltung der Standardbibliothek m\u00fcssen Entwickler Drittmodule verwenden, wobei die Schwachstellen in jedem einzelnen von ihnen separat \u00fcberwacht werden m\u00fcssen. Bei einem hohen Ma\u00df an Fragmentierung und einer gro\u00dfen Anzahl von Abh\u00e4ngigkeiten besteht die Gefahr von Angriffen durch die Kompromittierung der Infrastruktur der Modulentwickler.<\/p>\n<p>Teisest k\u00fcljest n\u00f5uab iga t\u00e4iendav moodul standardraamatukogus Python arendajate meeskonnalt ressursse hooldamiseks. Raamatukogus on kogunenud suur hulk dubleeritud ja liigseid funktsioone, mille v\u00e4listamine v\u00f5ib v\u00e4hendada hoolduskulusid. Katalooge arendades <noindex><a rel=\"nofollow\" href=\"https:\/\/pypi.org\/\">PyPI<\/a><\/noindex> ja t\u00e4iendavate pakettide installimise ja laadimise protsessi lihtsustamisega on v\u00e4liste moodulite kasutamine t\u00e4nap\u00e4eval muutunud sama tavaliseks nagu ka sisseehitatud funktsioonide kasutamine. <\/p>\n<p>\u00dcha rohkem arendajaid kasutab standardsete moodulite asemel funktsionaalseid v\u00e4liseid asendusi, n\u00e4iteks kasutatakse moodulit lxml asemel xml. Mahaj\u00e4etud moodulite eemaldamine standardraamatukogust suurendab aktiivselt arendatavate kogukondade alternatiivide populaarsust. Lisaks toob standardraamatukogu v\u00e4hendamine kaasa baaspaketi suuruse v\u00e4henemise, mis on oluline Pythonit kasutades piiratud salvestusruumiga sisseehitatud platvormidel.<\/p>\n<p><noindex><a rel=\"nofollow\" name=\"link\"><\/a><\/noindex><\/p>\n<p>Allikas: <a \ncontent=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=50726\">opennet.ru<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 Python \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043b\u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 (PEP 594) \u043f\u043e \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044e \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0447\u0438\u0441\u0442\u043a\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438. \u041a \u0432\u044b\u043d\u043e\u0441\u0443 \u0438\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Python \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e\u0442\u0441\u044f \u043a\u0430\u043a \u044f\u0432\u043d\u043e \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0435 \u0438 \u0443\u0437\u043a\u043e\u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438, \u0442\u0430\u043a \u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0438\u043c\u0435\u044e\u0442\u0441\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0443\u0434\u0430\u0451\u0442\u0441\u044f \u0443\u043d\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0438\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043e \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u0438, \u043a\u0430\u043a crypt (\u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f Windows [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-34324","post","type-post","status-publish","format-standard","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 Python \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043b\u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 (PEP 594) \u043f\u043e \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044e \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0447\u0438\u0441\u0442\u043a\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/et\/blog\/news\/namechena-bolshaya-chistka-standartnoj-biblioteki-python\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"et_EE\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u041d\u0430\u043c\u0435\u0447\u0435\u043d\u0430 \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0447\u0438\u0441\u0442\u043a\u0430 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Python | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 Python \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043b\u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 (PEP 594) \u043f\u043e \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044e \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0447\u0438\u0441\u0442\u043a\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/et\/blog\/news\/namechena-bolshaya-chistka-standartnoj-biblioteki-python\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-10-31T18:57:38+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-31T18:57:38+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Planeeritud on ulatuslik standardraamatukogu puhastus Pythonis | ProHoster","description":"Python projekti arendajad on avaldanud ettepaneku (PEP 594) standardraamatukogu olulise puhastamise l\u00e4biviimiseks.","canonical_url":"https:\/\/prohoster.info\/et\/blog\/news\/namechena-bolshaya-chistka-standartnoj-biblioteki-python","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"et_EE","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u041d\u0430\u043c\u0435\u0447\u0435\u043d\u0430 \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0447\u0438\u0441\u0442\u043a\u0430 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Python | ProHoster","og:description":"\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 Python \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043b\u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 (PEP 594) \u043f\u043e \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044e \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0447\u0438\u0441\u0442\u043a\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438.","og:url":"https:\/\/prohoster.info\/et\/blog\/news\/namechena-bolshaya-chistka-standartnoj-biblioteki-python","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-10-31T18:57:38+00:00","article:modified_time":"2019-10-31T18:57:38+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"34324","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-21 18:45:22","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-03-01 02:24:25","updated":"2026-01-21 18:45:22","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/posts\/34324","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/comments?post=34324"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/posts\/34324\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/media?parent=34324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/categories?post=34324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/tags?post=34324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}