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.
...classes of string can no longer be interned. The semantics of interning were not clear here -- a subclass could be mutable, for example -- and had bugs. Explicitly interning a subclass of string via intern() will raise a TypeError. Internal operations that attempt to intern a string subclass will have no effect. Bug 1003935: xrange() could report bogus OverflowErrors. Documented what xrange() intends, and repaired tests accordingly. Extension modules difflib now supports HTML side-by-si...
...classroom, reported at the 9th International Python Conference by Jeff Elkner. (See also an interview with Jeff by Frank Willison for O'Reilly.) Dr. John Zelle of Wartburg College advocates using Python as a first language, and has a few papers on that topic at his web site. John Miller's PhD dissertation, Promoting Computer Literacy Through Programming Python (1.37 MB), looks at the issues around teaching with Python, and explores some of the threads taken up on edu-sig. Dr. Atanas Radenski has...
...classes. pickle() will raise a TypeError if it is passed a class. Fixed a bug in gettext's "normalize and expand" code that prevented it from finding an existing .mo file. Restored support for HTTP/0.9 servers in httplib. The math module was changed to stop raising OverflowError in case of underflow, and return 0 instead in underflow cases. Whether Python used to raise OverflowError in case of underflow was platform- dependent (it did when the platform math library set e...
...class unification and new-style classes Multiple inheritance mixing new-style and classic classes in the list of base classes is now allowed, so this works now: class Classic: pass class Mixed(Classic, object): pass The MRO (method resolution order) for each base class is respected according to its kind, but the MRO for the derived class is computed using new-style MRO rules if any base class is a new-style class. This needs to be documented. The new builtin dictionary() constructor, and dic...
...Definition). Historically, most, but not all, Python releases have also been GPL-compatible; the table below summarizes the various releases. Release Derived from Year Owner GPL compatible? 0.9.0 thru 1.2 n/a 1991-1995 CWI yes 1.3 thru 1.5.2 1.2 1995-1999 CNRI yes 1.6 1.5.2 2000 CNRI no 2.0 1.6 2000 BeOpen.com no 1.6.1 1.6 2001 CNRI no 2.1 2.0+1.6.1 2001 PSF no 2.0.1 2.0+1.6.1 2001 PSF yes 2.1.1 2.1+2.0.1 2001 PSF...
...classes anyway, we should add warnings for uses of old-style classes. The PEP could be used to describe the timeframe for these warnings. But before then, we should first make sure that the entire standard library (and the demos and tools) use new-style classes. And that's not even going to happen in Python 2.3. Also, that may break user code that subclasses a particular standard class, e.g. if a user defines a subclass that depends on coercions, which aren't supported by new-style cl...
...class in college, and tried to poke along doing some self-study so I could get better. And then I attended a Boston Python Workshop for Women And Their Friends http://bostonpythonworkshop.com/, led by Jessica McKellar. We worked through well-designed exercises and I got hands-on practice that helped me get through that transition, from painstakingly copying individual lines and functions into the interpreter, to thinking in terms of Python's program flow. Years later, my Python and software mana...
...class(x.__class__, X) but not issubclass(type(x), X). isinstance(x, X): if X is a new-style class, this is now equivalent to issubclass(type(x), X) or issubclass(x.__class__, X). Previously only type(x) was tested. (For classic classes this was already the case.) compile(), eval() and the exec statement now fully support source code passed as unicode strings. int subclasses can be initialized with longs if the value fits in an int. See SF bug #683467. long(string, base) takes time linear in le...
...Class Mail RESOLVED, that the PSF engage Earth Class Mail to act as a contact address and letter/package reception point. This board discussion was tabled until more research & data collection into the Earth Class Mail system was explored in order to provide a better understanding of their mail system and how/why the PSF would want or need to utilize the Earth Class Mail Services. 12 Other Business None 13 Adjournment Lindberg adjourned the meeting at ...
...class, a foot module and a foot class. After realising you can't point the gun at the foot, you pass a reference to the gun to a foot object. After the foot is blown up, the gun object remains alive for eternity, ready to shoot all future feet that may happen to appear. Java: You find that Microsoft and Sun have released imcompatible class libraries both implementing Gun objects. You then find that although there are plenty of feet objects implemented in the past in many other languages, you can...
...class and overriding various attributes and methods. Here's an off-the-cuff illustration of the concept: #!/usr/bin/env python from distutils import Setup class MySetup (Setup): name = 'mydist version_from = 'mymod.py' pyfiles = ['mymod.py', 'othermod.py'] cfiles = ['myext.c'] In this case, it's a bit clearer how to override specific behaviour of all the distutils classes: just subclass and override as needed. Obviously, al...
...class of members (if the members are divided into classes), one third (1/3) of such class of members, represented in person or represented by proxy, shall constitute a quorum for the transaction of such item of business by that class of members. If a quorum is present, the affirmative vote of a majority of the members represented at the meeting and entitled to vote on the subject matter shall be the act of the members, unless the vote of a greater number or voting by class is required by the Gen...
...classes for over 2000 women in Washington, DC. She teaches all the classes with the help of women who have previously taken the classes. She empowers hundreds of women to code with Python by lowering barriers to entry. More than just a class where women learn to build websites, Hear Me Code focuses on leadership development, peer mentoring, and turning students into teachers. Approved 8-0-0, December 2, 2016 RESOLVED, that the Python Software Foundation grant $430 USD to PyLadies Data Mining Wo...
If you didn't find what you need, try your search in the Python language documentation.