- 17 Aug, 2001 24 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Tim Peters authored
CO_FUTURE_DIVISION flag. Redid this to use Jeremy's PyCF_MASK #define instead, so we dont have to remember to fiddle individual feature names here again. pythonrun.h: Also #define a PyCF_MASK_OBSOLETE mask. This isn't used yet, but will be as part of the PEP 264 implementation (compile() mustn't raise an error just because old code uses a flag name that's become obsolete; a warning may be appropriate, but not an error; so compile() has to know about obsolete flags too, but nobody is going to remember to update compile() with individual obsolete flag names across releases either -- i.e., this is the flip side of PyEval_MergeCompilerFlags's oversight).
-
Guido van Rossum authored
Classes that don't use __slots__ have a __weakref__ member added in the same way as __dict__ is added (i.e. only if the base didn't already have one). Classes using __slots__ can enable weak referenceability by adding '__weakref__' to the __slots__ list. Renamed the __weaklistoffset__ class member to __weakrefoffset__ -- it's not always a list, it seems. (Is tp_weaklistoffset a historical misnomer, or do I misunderstand this?)
-
Barry Warsaw authored
isn't given, and the file in the uu header already exists. Also add a description of the uu.Error exception class.
-
Barry Warsaw authored
given and the path is gleaned from the uu header.
-
Barry Warsaw authored
specified in the uu header already exists. No additional workaround is provided since out_file=pathname is a deprecated interface, so it is better to simply pass a file-like object into out_file anyway. This closes SF bug #438083. Use isinstance() tests instead of type comparisons.
-
Tim Peters authored
#449043 supporting __future__ in simulated shells in support of PEP 264. Much has changed from the patch version: + Repaired bad hex constant for nested_scopes. + Defined symbolic CO_xxx names so global search will find these uses. + Made the exported list of feature names explicit, instead of abusing __all__ for this purpose (and redefined __all__ accordingly). + Added gross .compiler_flag verification to test___future__.py, and reworked it a little to make use of the newly exported explicit list of feature names.
-
Guido van Rossum authored
is pickled as a global must now exist by the name under which it is pickled, otherwise the pickling fails. Previously, such things would fail on unpickling, or unpickle as the wrong global object. I'm hoping that this won't break existing code that is playing tricks with this. I need a volunteer to do this for cPickle too.
-
Martin v. Löwis authored
- Do not compile unicodeobject, unicodectype, and unicodedata if Unicode is disabled - check for Py_USING_UNICODE in all places that use Unicode functions - disables unicode literals, and the builtin functions - add the types.StringTypes list - remove Unicode literals from most tests.
-
Guido van Rossum authored
-
Guido van Rossum authored
expression. This is needed for certain servers that (in violation of the standard) don't return the parentheses in the response. This fixes SF bug #441712 by Henrik Weber (not exactly using his patch).
-
Fred Drake authored
local module tables (the lists of modules documented within a chapter, inserted at the beginning of the chapter). If this is not done here, the text is not part of the resulting documents when latex2html does the processing normally. This fixes a little bit more of SF bug #451556.
-
Guido van Rossum authored
the class dict). Anything but a nonnegative int in either place is *ignored* (before, a non-Boolean was an error). The default is still static -- in a comparative test, Jeremy's Tools/compiler package ran twice as slow (compiling itself) using dynamic as the default. (The static version, which requires a few tweaks to avoid modifying class variables, runs at about the same speed as the classic version.) slot_tp_descr_get(): this also needed fallback behavior. slot_tp_getattro(): remove a debug fprintf() call.
-
Guido van Rossum authored
more tabs that XEmacs Makefile mode found suspicious.
-
Guido van Rossum authored
- Change PY_VERSION (but not the numeric versions) to "2.2a1+".
-
Guido van Rossum authored
-
Guido van Rossum authored
class has a correct repr().
-
Guido van Rossum authored
streamlined a bit. instancemethod_descr_get(): don't bind an unbound method of a class that's not a base class of the argument class.
-
Guido van Rossum authored
when an unbound method of class A is stored as a class variable of class B, and class B is *not* a subclass of class A, that method should *not* get bound to B instances.
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
subclasses type, one that doesn't (the latter isn't fully functional yet).
-
Guido van Rossum authored
the metatype passed in as an argument. This prevents infinite recursion when a metatype written in Python calls type.__new__() as a "super" call. Also tweaked some comments.
-
- 16 Aug, 2001 16 commits
-
-
Tim Peters authored
actually does <wink>, perhaps an Insure run will catch it. Also removed senseless Windows comment.
-
Fred Drake authored
dictionary. Added some entries to the dictionary to fix part of SF bug #451556.
-
Fred Drake authored
-
Fred Drake authored
whole family instead of just two. This closes SF bug #451630.
-
Barry Warsaw authored
really long. Closes SF bug #437984.
-
Guido van Rossum authored
assigned to a class variable and then accessed via an instance, it should not be rebound. test_descr.py:methods(): test for the condition above.
-
Barry Warsaw authored
calculate it on the fly. This way even modules with long package names get an accurate repr instead of a truncated one. The extra malloc/free cost shouldn't be a problem in a repr function. Closes SF bug #437984
-
Jack Jansen authored
If genpluginprojects is called from fullbuild we set the Python source directory to be the same as fullbuild uses (in stead of using the default sys.prefix). This fixes an issue Mark Day raised that you can't use fullbuild with one Python installation to build another one.
-
Barry Warsaw authored
-
Andrew M. Kuchling authored
Remove pointless comment
-
Andrew M. Kuchling authored
I have no way of testing this.
-
Tim Peters authored
-
Guido van Rossum authored
type_repr() for when to show or not to show it).
-
Fred Drake authored
-
Fred Drake authored
info. Caught by the tests that I'm writing now.
-
Martin v. Löwis authored
-