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.
...coverage of that musllinux tag. Reading the musl version The musl version values can be obtained by executing the musl libc shared library the Python interpreter is currently running on, and parsing the output: import re import subprocess def get_musl_major_minor(so: str) -> tuple[int, int] | None: """Detect musl runtime version. Returns a two-tuple ``(major, minor)`` that indicates musl library's version, or ``None`` if the given libc .so does not output expected informat...
...code executed directly at the interactive prompt code executed directly as part of a single-file script While continuing to be hidden by default for: code imported from another module in a zipapp archive's __main__.py file code imported from another module in an executable package's __main__ submodule code imported from an executable script wrapper generated at installation time based on a console_scripts or gui_scripts entry point definition This means that tool developers that create an ins...
...code base that's actually maintainable." D. Napoleone: "Registration is very hard to get right, especially when everything including the kitchen sink is wanted. We are rather liberal when its comes to things like refunds, and unlike some other conferences, we have add-ons like tutorials which are announced AFTER registration opens." Noller: "Therefore, outsourcing it makes the most sense." S. Holden: "A small concern that it ties us to a third party that's shown e...
...code to the common subset of Python 2 and 3, especially when test coverage of the ported code is limited. This PEP reviews the various ways the Python 2 iteration APIs may be accessed, and looks at the available options for migrating that code to Python 3 by way of the common subset of Python 2.6+ and Python 3.0+. The PEP also considers the question of whether or not there are any additions that may be worth making to Python 3.5 that may ease the transition process for application code that does...
...coverage' we have in contributor agreements and if there are any high-profile contributors who haven't signed agreements. Go after people to improve our coverage. (Transferred from #13, Dec 2006 §4.) Status: active. [58] Originally from 11 May 2009, Section 5, New Memory for PSF Computer: M. von Löwis will purchase new memory to replace faulty memory on a PSF computer. Status: pending. [65] Originally from 11 May 2009, Section 13, Board Email List and Repository Access to PSF Administrator: S....
...code.co_names, code.co_varnames, code.co_filename, code.co_name, code.co_firstlineno, code.co_lnotab, code.co_freevars, code.co_cellvars) # replace existing code transformers with the new bytecode transformer sys.set_code_transformers([BytecodeTransformer()]) # execute code which will be...
...codeObject *main_source; /* -c switch */ PyUnicodeObject *main_path; /* filesystem path */ PyUnicodeObject *main_module; /* -m switch */ PyCodeObject *main_code; /* Run directly from a code object */ PyObject *main_stream; /* Run from stream */ PyBoolObject *run_implicit_code; /* Run implicit code during prep */ /* Interactive main * * Note: Settings related to interactive mode are very much in flux. */ PyObject *prompt_stream; /*...
...Code_New() required a new parameter: it broke all Cython extensions (all projects distributing precompiled Cython code). This change has been reverted during the 3.8 beta phase and a new PyCode_NewWithPosOnlyArgs() function was added instead. types.CodeType requires an additional mandatory parameter. The CodeType.replace() function was added to help projects to no longer depend on the exact signature of the CodeType constructor. C extensions are no longer linked to libpython. sys.abiflags change...
...coverage measuring) Finished Python 2/3 porting guide B. Cannon also reported new activities for the month, he said: <pycon surprise -- I would like to spring this on the community as a lightning talk, but it is in no way crucial> Developing a website to monitor Python 3 project uptake on PyPI. Core difference compared to http://pypi.python.org/pypi?:action=browse&c=533&show=all, http://python3wos.appspot.com/, or http://onpython3yet.com/ is that it will support manually specifyin...
...Code (GSoC) A. Riley, Google Summer of Code (GSoC), reported on the issues and/or blockages this program is currently faced with. He said: 1. Several applications for projects under our umbrella came in after the deadline, I was still processing new project applications during student applications which caused delays. 2. Lower number of applications (80) compared to previous years resulting in 25 slots allocated (we ended up with 30 last year). The projects which got involved by the deadline go...
...code__() first and fallback to obj.__str__() if no __unicode__ method can be found. Patch #550732: Add PyArg_VaParseTupleAndKeywords(). Analogous to PyArg_VaParse(). Both are now documented. Thanks Greg Chapman. Allow string and unicode return types from .encode()/.decode() methods on string and unicode objects. Added unicode.decode() which was missing for no apparent reason. An attempt to fix the mess that is Python's behaviour with signal handlers and threads, complicated by readline's ...
...code interpreter assumes the worst about the code it is running, that at any moment the user might override the len() function or pass a never-before-seen type into a function. In practice this never happens, but user code pays for that support. Unladen Swallow takes advantage of the relatively static nature of user code to improve performance. At a high level, the Unladen Swallow JIT compiler works by translating a function's CPython bytecode to platform-specific machine code, using data collec...
...codec writer to create codecs for various simple to use conversions. New codecs were added to demonstrate these new features (the .encode() and .decode() columns indicate the type of the returned objects): Name .encode() .decode() Description uu string string UU codec (e.g. for email) base64 string string base64 codec quopri string string quoted-printable codec zlib string string zlib compression hex string string 2-byte hex codec rot-13 string Unicode ROT-13 Unicode charmap code...
...code' encodings, the 'stringprep' module, the 'mkstringprep' tool, and enhancements to the socket and httplib modules. htmlentitydefs has two new dictionaries: name2codepoint maps HTML entity names to Unicode codepoints (as integers). codepoint2name is the reverse mapping. See SF patch #722017. pdb has a new command, "debug", which lets you step through arbitrary code from the debugger's (pdb) prompt. unittest.failUnlessEqual and its equivalent unittest.assertEqual now return 'not a ==...
...Code, as amended (the "IRC"), and until such time, if ever, that such exemption is denied or lost, the corporation shall not be empowered to engage directly or indirectly in any activity which the corporation believes would be likely to invalidate its status as an organization exempt from federal taxation under Section 501(a) of the IRC as an organization described in Section 501(c) of the IRC. ARTICLE IX Corporate Seal The Board of Directors shall provide a corporate seal which shall have th...
...Code, as amended (the "IRC"), and until such time, if ever, that such exemption is denied or lost, the corporation shall not be empowered to engage directly or indirectly in any activity which the corporation believes would be likely to invalidate its status as an organization exempt from federal taxation under Section 501(a) of the IRC as an organization described in Section 501(c) of the IRC. ARTICLE IX Corporate Seal The Board of Directors shall provide a corporate seal which sh...
...Code, as amended (the "IRC"), and until such time, if ever, that such exemption is denied or lost, the corporation shall not be empowered to engage directly or indirectly in any activity which the corporation believes would be likely to invalidate its status as an organization exempt from federal taxation under Section 501(a) of the IRC as an organization described in Section 501(c) of the IRC or incur excise taxes under Section 4958 or Chapter 42 of the IRC. ARTICLE X Corporate Seal T...
...Code of Conduct presented by Nick Coghlan, to be voted on by the membership during the next election. Approved 7-0-1 by IRC vote, 29 March, 2013. RESOLVED, that the board withdraws the resolution on 2013-03-05 to put the initial Python Community Code of Conduct up for membership vote in the next election, and instead lets the membership vote on whether they (a) want the PSF to establish a code of conduct for the Python community, and (b) want the PSF to establish a code of conduct for the PSF,...