Notice: While JavaScript is not essential for this website, your interaction with the content will be limited. Please turn JavaScript on for the full experience.
...security protections built right into type checkers will mean that more developers benefit from them. Why not use a NewType for str? Any API for which LiteralString would be suitable could instead be updated to accept a different type created within the Python type system, such as NewType("SafeSQL", str): SafeSQL = NewType("SafeSQL", str) def execute(self, sql: SafeSQL, parameters: Iterable[str] = ...) -> Cursor: ... execute(SafeSQL("SELECT * FROM data WHERE user_id = ?"), user_id) # OK...
...servers" are active distribution registries which publish version and dependency metadata and place constraints on the permitted metadata. "Public index servers" are index servers which allow distribution uploads from untrusted third parties. The Python Package Index is a public index server. "Publication tools" are automated tools intended to run on development systems and upload source and binary distribution archives to index servers. "Integration tools" are automated tools that consume the m...
...Server modules as http.server. The xmlrpc package was created; it contains the old xmlrpclib module as xmlrpc.client and the content of the old SimpleXMLRPCServer and DocXMLRPCServer modules as xmlrpc.server. The dbm package was created, containing the old modules anydbm and whichdb in its __init__.py, and having dbm.gnu (was gdbm), dbm.bsd (was dbhash), dbm.ndbm (was dbm) and dbm.dumb (was dumbdbm) as submodules. The repr module has been renamed to reprlib. The statvfs module has been removed. ...
...Server: a new module (based upon SimpleHTMLServer) simplifies writing XML RPC servers. os.path.realpath(): a new function that returns the absolute pathname after interpretation of symbolic links. On non-Unix systems, this is an alias for os.path.abspath(). operator.indexOf() (PySequence_Index() in the C API) now works with any iterable object. smtplib now supports various authentication and security features of the SMTP protocol through the new login() and starttls() methods. hmac: a new modul...