- 08 Aug, 2001 4 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
This introduces: - A new operator // that means floor division (the kind of division where 1/2 is 0). - The "future division" statement ("from __future__ import division) which changes the meaning of the / operator to implement "true division" (where 1/2 is 0.5). - New overloadable operators __truediv__ and __floordiv__. - New slots in the PyNumberMethods struct for true and floor division, new abstract APIs for them, new opcodes, and so on. I emphasize that without the future division statement, the semantics of / will remain unchanged until Python 3.0. Not yet implemented are warnings (default off) when / is used with int or long arguments. This has been on display since 7/31 as SF patch #443474. Flames to /dev/null.
-
Steven M. Gava authored
-
Jack Jansen authored
pythonmac-sig about turning this all into a package, so in the mean time there is no reason to scribble all over people's disks. Interested parties can uncomment them.
-
- 07 Aug, 2001 27 commits
-
-
Tim Peters authored
Peter Schneider-Kamp. Clarified some docstrings in the spirit of the patch; left out the degrees() and radians() functions (see the patch comments on SF).
-
Jeremy Hylton authored
Also fix another bug caught by pychecker-- HTTPError() raised when redirect limit exceed did not pass an fp object. Had to change method to keep fp object around until it's certain that the error won't be raised. Remove useless line in do_proxy().
-
Guido van Rossum authored
#427345. These are supposed to support binary data and avoid buffering problems on Windows.
-
Fred Drake authored
are now allowed by ok_builtin_modules. This effectively backs out revision 1.26. This closes SF bug #448546.
-
Fred Drake authored
when quoting attribute values that contain single & double quotes. This provides the rest of the regression test for SF bug #440351.
-
Fred Drake authored
attribute values. Just using escape() can (and always has) led to broken XML being generated. This makes sure it always produces the right thing. This actually closes SF bug #440351.
-
Guido van Rossum authored
-
Guido van Rossum authored
break old code (in extreme cases). See SF bug #448153. Add a new subclass IterableUserDict that has the __iter__ method. Note that for new projects, unless backwards compatibility with pre-2.2 Python is required, subclassing 'dictionary' is recommended; UserDict might become deprecated.
-
Guido van Rossum authored
- Add an explicit call to PyType_Ready(&PyList_Type) to pythonrun.c (just for the heck of it, really -- we should either explicitly ready all types, or none).
-
Guido van Rossum authored
__all__, to indicate these are implied as part of the public API. IDLE's "Check Module" command uses this, and it broke once already because the reset_globals() and tokeneater() functions were deleted when Neil converted this to using the generator API of tokenizer. (See SF bug #448835.)
-
Guido van Rossum authored
Fix this to work with the new (still undocumented) tabnanny API. I'm afraid Stephen will have to add this fix to the IDLE fork code base as well.
-
Guido van Rossum authored
instantiated. (Its use as a base class is adequately tested by other tests.)
-
Guido van Rossum authored
- Add comment blocks explaining add_operators() and override_slots(). (This file could use some more explaining, but this is all I had breath for today. :) - Renamed the argument 'base' of add_wrappers() to 'wraps' because it's not a base class (which is what the 'base' identifier is used for elsewhere). Small nits: - Fix add_tp_new_wrapper() to avoid overwriting an existing __new__ descriptor in tp_defined. - In add_operators(), check the return value of add_tp_new_wrapper(). Functional change: - Remove the tp_new functionality from PyBaseObject_Type; this means you can no longer instantiate the 'object' type. It's only useful as a base class. - To make up for the above loss, add tp_new to dynamic types. This has to be done in a hackish way (after override_slots() has been called, with an explicit call to add_tp_new_wrapper() at the very end) because otherwise I ran into recursive calls of slot_tp_new(). Sigh.
-
Jeremy Hylton authored
-
Jack Jansen authored
-
Jack Jansen authored
-
Jack Jansen authored
-
Jack Jansen authored
-
Jack Jansen authored
-
Jack Jansen authored
-
Jack Jansen authored
-
Jack Jansen authored
-
Andrew M. Kuchling authored
Correct error noticed by Keith Briggs Re-indent a paragraph
-
Jack Jansen authored
Project files for the new plugin modules, plus a few that hadn't been added yet but should have been.
-
Jack Jansen authored
Bit another bullet: all toolbox modules are now in dynamically loaded modules. Everything still seems to work, but the ConfigurePythonXXX on initial install may still need work.
-
Jack Jansen authored
Also updated pyconfig.h to the current state of pyconfig.h.in.
-
Steven M. Gava authored
-
- 06 Aug, 2001 9 commits
-
-
Jeremy Hylton authored
Only return if symtable_warn() returns -1, indicating that the warning was turned into an error.
-
Tim Peters authored
mistake). + Arrange for Win2K Add/Remove to show a Python icon. I think this "does it" -- a full install/uninstall can now be done on a Win2K box from an ordinary (not Admin, not Power User) user acct, incl. file extension registration, Start Menu entries, and full Add/Remove.
-
Jeremy Hylton authored
-
Jeremy Hylton authored
Reported by the Man himself.
-
Andrew M. Kuchling authored
-
Andrew M. Kuchling authored
Update link to a running instance of the FAQwizard
-
Guido van Rossum authored
table. (reported as an aside in SF #446049).
-
Andrew M. Kuchling authored
as Neil pointed out it isn't the same as sys.getrecursionlimit)
-
Andrew M. Kuchling authored
-