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.
...direct language comparisons without a lot more documentation.) I've also removed some administrative details from the text and made some minor changes to accommodate HTML. I apologize for the writing style, which is at times more representative of funding proposals than most of the prose I write. I would like to thank Jeremy Hylton, Barry Warsaw, Al Vezza, Bob Kahn, Randy Pausch and David Beazley for contributions and suggestions that made this a successful proposal. --Guido van ...
...directly on Python, PyPI, and security - We welcomed Petr Viktorin, Deputy Developer in Residence (DiR), and Serhiy Storchaka, Supporting DiR. It’s been exciting to begin to realize the full vision of the DiR program, with special thanks to Bloomberg for making it possible for us to bring Petr on board. The DiR team is taking an active role in shaping the development of the language, and with three people on the team each DiR can now also spend a percentage of their time on feature work aligned ...
...dir() function behaves differently than in Python 2.1 and before. Generally, dir() returns more information than it used to do in 2.1. For example, dir([]) also reports the special methods that overload various operators ('__add__', '__getitem__', '__len__', etc.) as well as '__class__'. For classes (classic as well as new-style), it returns the attributes of the class as well as of the base classes. <p><li>The special attributes __members__ and __methods__ are no longer supported...
...DiR) and their work are often funded directly by sponsors. If your organization sees a gap in the Python ecosystem they want to fill with a focused DiR, we are open to additional support for the program. We welcome you to reach out to the sponsors@python.org with inquiries or questions. Łukasz Langa Over the years as the PSF's CPython Developer in Residence, Łukasz Langa has played a key role in shaping the future of Python. He’s worked on everything from improving the user experience—like help...
...dir() function: dir() on an instance (classic or new-style) shows the instance variables as well as the methods and class attributes defined by the instance's class and all its base classes. dir() on a class (classic or new-style) shows the contents of the __dict__ of the class and all its base classes. It does not show class attributes that are defined by a metaclass. dir() on a module shows the contents of the module's __dict__. (This is unchanged.) dir() without argument...
...directory The property TARGETDIR determines the root directory of the Python installation. For example, a different installation drive can be specified with TARGETDIR=R:\python24 The default TARGETDIR is [WindowsVolume]Python<version>. Due to a bug in python-2.4.msi, installing into a target dir that has a space in its name causes the IDLE and pydoc shortcuts to fail. Installation for All Users Adding ALLUSERS=1 causes an installation for all users. By default, t...
...dir() function has been extended to call the __dir__() method on its argument, if it exists. If not, it will work like before. This allows customizing the output of dir() in the presence of a __getattr__(). Removed support for __members__ and __methods__. Removed indexing/slicing on BaseException. input() became raw_input(): the name input() now implements the functionality formerly known as raw_input(); the name raw_input() is no longer defined. Classes listed in an 'except' clause must inh...
...directories, in addition to CVS and RCS directories. .svn directories hold administrative files for the Subversion source control system. Added a new module: cookielib. Automatic cookie handling for HTTP clients. Also, support for cookielib has been added to urllib2, so urllib2.urlopen() can transparently handle cookies. stringprep.py now uses built-in set() instead of sets.Set(). Bug #876278: Unbounded recursion in modulefinder Bug #780300: Swap public and system ID in LexicalHandler.startDT...
...directories can be deleted; you'll need to download fresh source for zlib and unpack it into a new directory. Build: New subproject _test for the benefit of test_capi.py (see above). Build: New subproject _symtable, for new DLL _symtable.pyd (a nascent interface to some Python compiler internals). Build: Subproject ucnhash is gone, since the code was folded into the unicodedata subproject. What's New in Python 2.1 alpha 1? Core language, builtins, and interpreter There is a new Unicode co...
If you didn't find what you need, try your search in the Python language documentation.