{"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\/ro\/blog\/news\/namechena-bolshaya-chistka-standartnoj-biblioteki-python","title":{"rendered":"Se preconizeaz\u0103 o cur\u0103\u021bare major\u0103 a bibliotecii standard Python","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>Dezvoltatorii proiectului Python <noindex><a rel=\"nofollow\" href=\"https:\/\/www.python.org\/dev\/peps\/pep-0594\/\">au publicat<\/a><\/noindex> propunerea (PEP 594) pentru realizarea unei cur\u0103\u021biri semnificative a bibliotecii standard. Se propune eliminarea din biblioteca standard Python a unor func\u021bionalit\u0103\u021bi considerabil \u00eenvechite \u0219i specializate, dar \u0219i a componentelor cu probleme arhitecturale care nu pot fi unificate pentru toate platformele. <\/p>\n<p>De exemplu, din biblioteca standard se sugereaz\u0103 excluderea unor module precum crypt (indisponibilitate pentru Windows \u0219i dependen\u021ba de disponibilitatea algoritmilor de hashing de bibliotecile de sistem), cgi (arhitectur\u0103 neoptimizat\u0103, necesit\u0103 lansarea unui nou proces pentru fiecare cerere), imp (recomandat a fi utilizat importlib), pipes (recomandat a fi utilizat modulul subprocess), nis (recomandat a fi utilizat NSS, LDAP sau Kerberos\/GSSAPI), spwd (nu este recomandat s\u0103 se lucreze direct cu baza de date a conturilor). De asemenea, modulele 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 \u0219i parser.<\/p>\n<p>Conform planului propus, \u00een Python 3.8, modulele men\u021bionate mai sus vor fi marcate ca fiind \u00eenvechite, \u00een Python 3.8 se vor \u00eencepe generarea de avertismente, iar \u00een Python 3.10 vor fi eliminate din repositoarele CPython.<br \/>\n Modulul parser este planificat s\u0103 fie eliminat \u00een versiunea 3.9, deoarece este marcat ca \u00eenvechit \u00eenc\u0103 din versiunea Python 2.5, iar modulul macpath \u00een ramura 3.8. Dup\u0103 eliminarea din compunerea principal\u0103, codul va fi mutat \u00eentr-un depozit separat legacylib, iar soarta sa va depinde de interesul comunit\u0103\u021bii. Se a\u0219teapt\u0103 ca ramura Python 3.9 s\u0103 fie sus\u021binut\u0103 p\u00e2n\u0103 \u00een 2026, ceea ce va oferi timp suficient pentru a migra proiectele pe alternative externe.<\/p>\n<p>Ini\u021bial, pentru eliminare au fost propuse module precum ftplib, optparse, getopt, colorsys, fileinput, lib2to3 \u0219i wave, dar s-a decis s\u0103 r\u0103m\u00e2n\u0103 \u00een cadrul bibliotecii standard, deoarece sunt foarte r\u0103sp\u00e2ndite \u0219i r\u0103m\u00e2n relevante, \u00een ciuda existen\u021bei unor alternative mai avansate sau a leg\u0103turii cu func\u021bionalit\u0103\u021bi specifice sistemului de operare.<\/p>\n<p>Reamintim c\u0103 proiectul Python folose\u0219te ini\u021bial abordarea \u201ebateria inclus\u0103\u201d, prin care biblioteca standard ofer\u0103 un set extins de func\u021bii pentru diverse domenii de aplicare. Printre avantajele acestei abord\u0103ri se num\u0103r\u0103 simplificarea \u00eentre\u021binerii proiectelor Python \u0219i monitorizarea securit\u0103\u021bii modulelor utilizate \u00een proiecte. Vulnerabilit\u0103\u021bile din module devin adesea sursa vulnerabilit\u0103\u021bilor \u00een aplica\u021biile care le folosesc. Atunci c\u00e2nd func\u021biile sunt incluse \u00een biblioteca standard, este suficient s\u0103 control\u0103m starea proiectului principal. Odat\u0103 cu fragmentarea bibliotecii standard, dezvoltatorii sunt nevoi\u021bi s\u0103 foloseasc\u0103 module externe, vulnerabilit\u0103\u021bile din fiecare dintre acestea necesit\u00e2nd monitorizare separat\u0103. Odat\u0103 cu un grad ridicat de fragmentare \u0219i un num\u0103r mare de dependen\u021be, apare un risc de atacuri prin compromiterea infrastructurii dezvoltatorilor de module.<\/p>\n<p>Pe de alt\u0103 parte, fiecare modul suplimentar din biblioteca standard necesit\u0103 resurse din partea echipei dezvoltatorilor Python pentru \u00eentre\u021binere. Biblioteca a acumulat un num\u0103r mare de func\u021bii redundante \u0219i excesive, eliminarea c\u0103rora poate reduce costurile de \u00eentre\u021binere. Pe m\u0103sur\u0103 ce catalogul se dezvolt\u0103 <noindex><a rel=\"nofollow\" href=\"https:\/\/pypi.org\/\">PyPI<\/a><\/noindex> \u0219i simplificarea procesului de instalare \u0219i desc\u0103rcare a modulelor suplimentare, utilizarea modulelor externe a devenit la fel de obi\u0219nuit\u0103 ca \u0219i func\u021biile \u00eencorporate. <\/p>\n<p>Tot mai mul\u021bi dezvoltatori folosesc \u00eenlocuitori externi mai func\u021bionali pentru modulele standard, de exemplu, folosesc modulul lxml \u00een loc de xml. Eliminarea modulelor abandonate din biblioteca standard va cre\u0219te popularitatea alternativelor activ dezvoltate de comunitatea. \u00cen plus, reducerea bibliotecii standard va conduce la diminuarea dimensiunii livr\u0103rii de baz\u0103, ceea ce este relevant atunci c\u00e2nd se utilizeaz\u0103 Python pe platforme \u00eencorporate cu dimensiuni de stocare limitate.<\/p>\n<p><noindex><a rel=\"nofollow\" name=\"link\"><\/a><\/noindex><\/p>\n<p>Sursa: <a \ncontent=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=50726\">opennet.ro<\/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.2.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\/ro\/blog\/news\/namechena-bolshaya-chistka-standartnoj-biblioteki-python\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"ro_RO\" \/>\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\/ro\/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\udd47Se preconizeaz\u0103 o mare cur\u0103\u021bare a bibliotecii standard Python | ProHoster","description":"Dezvoltatorii proiectului Python au publicat o propunere (PEP 594) pentru a efectua o cur\u0103\u021bare semnificativ\u0103 a bibliotecii standard.","canonical_url":"https:\/\/prohoster.info\/ro\/blog\/news\/namechena-bolshaya-chistka-standartnoj-biblioteki-python","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"ro_RO","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\/ro\/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\/ro\/wp-json\/wp\/v2\/posts\/34324","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/comments?post=34324"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/posts\/34324\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/media?parent=34324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/categories?post=34324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/tags?post=34324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}