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.
...globals dictionaries for the exec statement or the built-in function eval(): >>> print a.keys() [1, 2] >>> exec "x = 3; print x" in a 3 >>> print a.keys() ['__builtins__', 1, 2, 'x'] >>> print a['x'] 3 >>> However, our __getitem__() method is not used for variable access by the interpreter: >>> exec "print foo" in a Traceback (most recent call last): File "<stdin>", line 1, in ? File "<string>", line 1, in...
...globals dictionaries for the exec statement or the built-in function eval(): >>> print a.keys() [1, 2] >>> exec "x = 3; print x" in a 3 >>> print a.keys() ['__builtins__', 1, 2, 'x'] >>> print a['x'] 3 >>> However, our __getitem__() method is not used for variable access by the interpreter: >>> exec "print foo" in a Traceback (most recent call last): File "<stdin>", line 1, in ? File "<string>", line 1, in ? NameError: name 'foo' is not defined >>> ...
...global # `Configuration' is the top level of the object tree we're going # to mung Configuration = Controls() copy_instance(Configuration, configuration) Configuration.servers = []; for server in configuration[`servers']: Newsite = Server() copy_instance(Newsite, server) Configuration.servers.append(Newsite) Newsite.users = []; for user in server['users']: Newuser = User() copy_instance(Newuser, user) Newsite.users.append(Newuser) Listing 4 That does...
...global Python community through their speaking, teaching, and writing. Katie Cunningham and Barbara Shaurette (2017) The Python Software Foundation has awarded the 2017 Frank Willison Award to Katie Cunningham and Barbara Shaurette in recognition of their work to create and run their Young Coders classes, along with freely distributing their teaching materials. The program began at PyCon 2013 and was an immediate success. The followup blog post is the second most popular post in PyCon's histor...
...global variable, which is then checked when the parser returns. The BisonGen distribution comes with a short overview of the grammar input language, and a few examples as part of the test suite. Performance Comparison In this test, the three parsers where compared for parsing speed. The test ran 32 example expressions from the XPath specification, parsing each one 100 times. Tests where executed using Python 2.1 on a 600 MHz UltraSparc machine. The list of tests being executed,...
...global runctx function to profile module Add hlist missing entryconfigure and entrycget methods. The ptcp154 codec was added for Kazakh character set support. Support non-anonymous ftp URLs in urllib2. The encodings package will now apply codec name aliases first before starting to try the import of the codec module. This simplifies overriding built-in codecs with external packages, e.g. the included CJK codecs with the JapaneseCodecs package, by adjusting the aliases dictionary in encodings.ali...
...global system changes typically requires a reboot or even painful data restoration from back-up media.) Scripting languages have become incredibly popular, and an advanced scripting language like Python makes a good starting point for our expedition. One persistent criticism on scripting languages is that their performance is inadequate for some tasks. Techniques like program analysis and advanced compiler technology may be able to eliminate part of this problem, probably in combinat...
...global community support in just one year. We’re pleased to continue to support our community and we make an effort to listen to what our community needs and improve the support we provide. Even though we cannot attend to everyone’s needs in one attempt, we will continue to address what our community needs and introduce new ways to support the growth of Python. ...
...global services. Also working with Sean to continue to improve our backup system. As far as the "ongoing" activities are concerned, he reported: Service migrations. Noah reported on "tabled activities" in the final section of his report. He said: Our first potential external guest project, pydoc.net, is currently on hold pending some improvements to his codebase. 6.4 Marketing Material M.A. Lemburg, Marketing Material Project Manager, provided a summary o...
...global name 'header' is not defined". Issue #2834: update the regular expression library to match the unicode standards of py3k. In other words, mixing bytes and unicode strings (be it as pattern, search string or replacement string) raises a TypeError. Moreover, the re.UNICODE flag is enabled automatically for unicode patterns, and can be disabled by specifying a new re.ASCII flag; as for bytes patterns, ASCII matching is the only option and trying to specify re.UNICODE for such patterns r...
...global Python community during a period of immense growth. Approved; 10-0-0, 2024-12-11 RESOLVED, that the Python Software Foundation wishes to recognize Ewa Jodlowska with a Distinguished Service Award. Her exemplary and sustained efforts for more than a decade were key to the PSF’s transformation from a volunteer-led and operated organization to a full-fledged Foundation with paid staff and funding that supports the global Python community. The Foundation is now set up to hire coders, to adm...
If you didn't find what you need, try your search in the Python language documentation.