- 22 Mar, 2001 35 commits
-
-
Fred Drake authored
must now initialize the extra field used by the weak-ref machinery to NULL themselves, to avoid having to require PyObject_INIT() to check if the type supports weak references and do it there. This causes less work to be done for all objects (the type object does not need to be consulted to check for the Py_TPFLAGS_HAVE_WEAKREFS bit).
-
Fred Drake authored
tracked as soon as it is clear; this can decrease the number of roots for the cycle detector sooner rather than later in applications which hold on to weak references beyond the time of the invalidation.
-
Fred Drake authored
instance objects without calling the constructor. This is the same as the new.instance() function.
-
Guido van Rossum authored
CNRI release in a corner of the basement of a government building on a planet circling Aldebaran.)
-
Guido van Rossum authored
instead.
-
Fred Drake authored
-
Fred Drake authored
-
Fred Drake authored
extension object. Also included an example showing exactly what needs to be done and nothing else. This closes SF bug #228591.
-
Thomas Wouters authored
-
Fredrik Lundh authored
strings/patterns.
-
Fredrik Lundh authored
- take locale into account for word boundary anchors (#410271) - restored 2.0's *? behaviour (#233283, #408936 and others) - speed up re.sub/re.subn
-
Andrew M. Kuchling authored
-
Guido van Rossum authored
-
Martin v. Löwis authored
Retrieve relevant information at construction time, as it may be lost when the exception is printed.
-
Andrew M. Kuchling authored
-
Guido van Rossum authored
-
Thomas Wouters authored
linefeeds into carriagereturn-linefeeds (which is apparently what IRIX does.) Also add some comments, an extra test and reorganize it a bit.
-
Guido van Rossum authored
about these packages: - distutils - xml
-
Guido van Rossum authored
Moshe for noticing!
-
Guido van Rossum authored
-
Guido van Rossum authored
that's all that's needed.
-
Steve Purcell authored
changed accordingly.
-
Jeremy Hylton authored
import *. Mark the offending stmt rather than the function def line.
-
Jeremy Hylton authored
functions and import */exec.
-
Andrew M. Kuchling authored
-
Andrew M. Kuchling authored
with 1.5.2
-
Andrew M. Kuchling authored
-
Andrew M. Kuchling authored
along with options to print them. Add a finalize_options() method to Distribution to do final processing on the platform and keyword attributes Add DistributionMetadata.write_pkg_info() method to write a PKG-INFO file into the release tree.
-
Andrew M. Kuchling authored
-
Jeremy Hylton authored
If a module has a future statement enabling nested scopes, they are also enable for the exec statement and the functions compile() and execfile() if they occur in the module. If Python is run with the -i option, which enters interactive mode after executing a script, and the script it runs enables nested scopes, they are also enabled in interactive mode. XXX The use of -i with -c "from __future__ import nested_scopes" is not supported. What's the point? To support these changes, many function variants have been added to pythonrun.c. All the variants names end with Flags and they take an extra PyCompilerFlags * argument. It is possible that this complexity will be eliminated in a future version of the interpreter in which nested scopes are not optional.
-
Jeremy Hylton authored
Add PyEval_GetNestedScopes() which returns a non-zero value if the code for the current interpreter frame has CO_NESTED defined.
-
Guido van Rossum authored
like the one I just fixed to come back and haunt us.
-
Neil Schemenauer authored
to configure).
-
Neil Schemenauer authored
- Add CONFIG_ARGS variable and use it to re-run configure rather than using config.status. This prevents an infinite loop if configure dies while re-configuring.
-
Guido van Rossum authored
This fixes SF bug #410146 (python 2.1b shelve is broken).
-
- 21 Mar, 2001 5 commits
-
-
Tim Peters authored
This makes verbose-mode output easier to dig thru, and removes an accidental dependence on the order of dict.items() (made visible by recent changes to dictobject.c).
-
Fred Drake authored
supporting cyclic garbage collection. (This is not all of it, but I'm taking a break!) Also fixed some markup nits.
-
Jeremy Hylton authored
-
Jeremy Hylton authored
-
Tim Peters authored
associated with existing dict keys. This is a variant of part of Michael Hudson's patch #409864 "lazy fix for Pings bizarre scoping crash".
-