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.
...setup code that executes once before entering the loop: <setup code> while <condition>: <loop body> <setup code> The problem is that duplicated code can be a source of errors if one instance is changed but the other is not. Also, the purpose of the second instance of the setup code is not clear because it comes at the end of the loop. It is possible to prevent code duplication by moving the loop condition into a helper function, or an if statement in the loop b...
...setup.py script will be written that checks the libraries installed on the system and compiles as many modules as possible. Modules/Setup will be kept and settings in it will override setup.py's usual behavior, so you can disable a module known to be buggy, or specify particular compilation or linker flags. However, in the common case where setup.py works correctly, everything in Setup will remain commented out. The other Setup.* become unnecessary, since nothing will be generating Setup autom...
...setup.py only has to import one module, distutils.core. This module is responsible for parsing all command-line arguments to setup.py (even though the interpretation of options is distributed across the various Distutils commands, and possibly the client setup.py). It also takes care of receiving control from setup.py, and passing it as appropriate to Distutils commands. Most importantly, distutils.core defines the Distribution class, which is the heart ...
...setup code that executes once before entering the loop: <setup code> while <condition>: <loop body> <setup code> That PEP was rejected because no syntax was found that was superior to the following form: while True: <setup code> if not <condition>: break <loop body> This PEP proposes a superior form, one that also has application to for loops. It is superior because it makes the flow of control in loops more explicit, whi...
...Setuptools tried to solve this with a setup_requires argument to its setup() function [3]. This solution has a number of issues, such as: No tooling (besides setuptools itself) can access this information without executing the setup.py, but setup.py can't be executed without having these items installed. While setuptools itself will install anything listed in this, they won't be installed until during the execution of the setup() function, which means that the only way to actually use anything ...
...setup and have in parallel started work on the content." As far as future plans are concerned for his marketing materials project, he reported: "If the project goes well, we'll follow up with a Python flyer, translated versions of the brochure and also consider creating marketing material more targeted at specific user groups or application fields. In the long run, we'd also like to take the idea of producing marketing material beyond printed material and develop booth setups, giveaway...
...setup() function in setup.py is to do something like this: from elle import __version__ setup(name='elle', version=__version__) In the PEP author's experience however, this can fail in some cases, such as when the module uses automatic Python 3 conversion via the 2to3 program (because setup.py is executed by Python 3 before the elle module has been converted). In that case, it's not much more difficult to write a little code to parse the __version__ from the file rather than importing it. With...
...setup/build/install time. It must be possible (and preferably easy) to instead download and build from a source distribution. (Necessary for people who don't happen to be using one of the major platforms, or who don't trust built distributions.) To aid in installing all modules, and in building extension modules from C/C++ source, there must be a standardized way to get Python's configuration data (such as compiler, compil...
...Setup a GitHub bot for Documentation Contribution Agreement Patch docsbuild-scripts to Compile Translations List coordinators in the devguide Create sphinx-doc Language Switcher Update sphinx-doc Version Switcher Enhance Rendering of Untranslated and Fuzzy Translations New Translation Procedure Designate a Coordinator Create GitHub Repository Setup the Documentation Contribution Agreement Add support for translations in docsbuild-scripts Add Translation to the Language Switcher Previous Disc...
...setup instructions (https://libera.chat/guides/registration). Spanish speakers can use the #pyar channel, from the Python Argentina user group. French speakers can join the #python-fr channel. Finnish speakers can join the #python.fi channel on a different network, IRCnet. (Note: prior to May 2021, these channels existed on Freenode. Some of them were forcibly removed by Freenode operators, after a change in management and network policy. The channels on Freenode are no longer under the PSF umbr...
...setup. Additional buildbot worker hosting for MacOS generously provided by MacStadium Open Source Developer Program.
...Setup 6 Sponsor Membership Levels 7 PSF Community Award Nominations for 2009 - 3rd Quarter 8 Motion to Adopt a Diversity Statement 9 Treasurer Report 10 Infrastructure Committee 11 Action Items 12 Adjournment 1 Attendance The following members of the Board of Directors were present at the meeting: Brett Cannon, Raymond Hettinger, Steve Holden, Andrew Kuchling...
...setup a web page explaining check donations. 5. Report from Marc Andre Lemburg on the forms committee Marc Andre sent questions to Chris Rourk. Nothing else to report. 6. Jeremy's lack of time to act as Treasurer/Secretary. Jeremy Hylton has expressed that he doesn't have the time to continue as Secretary/Treasurer. The board is sorry to hear it but understands it. Jeremy will ask on the PSF-members list for a volunteer to take over his duties. 7. PyCon conference status Steve Holden r...
...setup script and using it to create a source distribution and "built" (binary) distributions (thus, it's also useful for packagers -- people turning other developer's source distributions into built distributions for a particular platform). Planning, Requirements, and Design Documents The Distutils did not spring magically into existence one day; a considerable amount of forethought was required, and some of...
...Setup & Projectors The board briefly discussed and reached a consensus on funding $150 for WiFi setup and two projectors for PyTexas. J. Rush: "The application to reimburse came from me." A. Kuchling: "$150 seems fine to support a 2-day event for ~30 people." RESOLVED, that the PSF support the upcoming PyTexas Unconference with a grant of $150. Approved, 8-0-0 [107] J. Rush will inform PyTexas organizers of the PSF's grant funding of $150 and request an invoice. 10&nbs...
...setup by NumFOCUS with an amount of USD 3,500. Approved, 10-0-0. 12 Kenneth Gonsalves Memorial Sponsorship RESOLVED, that the PSF sponsors the Kenneth Gonsalves Memorial setup by the IPSS (Indian Python Software Society) with an amount of USD 3,500. Approved, 10-0-0. 13 Other Business 13.1 Travel Grant Request The PSF Board has agreed to not provide a Grant Proposal for/by Shah Samarth P. 14 Adjournment Van Lindberg ad...
Location: Remote Pakistan
Telecommuting: Yes
Leading-edge US Client Seeks Versatile Senior Python Developers In your capacity as a Senior Python Developer, you will serve as an instrumental figure in steering the projects toward success. You'll engage in rigorous evaluation of code presented by fellow experts, deliver insightful critiques, and craft comprehensive technical documentation to support …
...setup_custom_allocator(void) { PyMemAllocator alloc; alloc.ctx = &padding; alloc.malloc = my_malloc; alloc.realloc = my_realloc; alloc.free = my_free; PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &alloc); PyMem_SetAllocator(PYMEM_DOMAIN_MEM, &alloc); PyMem_SetAllocator(PYMEM_DOMAIN_OBJ, &alloc); PyMem_SetupDebugHooks(); } The pymalloc arena does not need to be replaced, because it is no more used by the new allocator. Use case 3: Setup Hooks On Me...