| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Also eliminates some C code in Python/import.c as well.
Patch by Eric Snow with verification by comparing against another
patch from Jeff Knupp.
|
|
|
|
| |
importlib.__init__, then catch the KeyError raised, not ImportError.
|
|
|
|
|
|
|
| |
file size header field.
Thanks to Marc Abramowitz and Ronan Lamy for helping out with various
parts of the patch.
|
| |
|
|
|
|
|
| |
OSError.__init__ could produce incomplete instances, leading to crashes
when calling str() on them.
|
|
|
|
|
|
| |
for host compiler.
Add NEWS entry, rename _PROJECT_BASE to _PYTHON_PROJECT_BASE.
|
|
|
|
| |
Patch by Marc Abramowitz.
|
|\ |
|
| | |
|
|\ \
| |/
| |
| | |
Patch by Jakub Wilk.
|
| |
| |
| |
| | |
Patch by Jakub Wilk.
|
|\ \
| |/
| |
| |
| |
| | |
If messages were only added, a new file is no longer created and
renamed over the old file when flush() is called on an mbox, MMDF or
Babyl mailbox.
|
| |
| |
| |
| |
| |
| | |
If messages were only added, a new file is no longer created and
renamed over the old file when flush() is called on an mbox, MMDF or
Babyl mailbox.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The gdb hooks for debugging CPython (within Tools/gdb) have
been enhanced to show information on more C frames relevant to CPython within
the "py-bt" and "py-bt-full" commands:
* C frames that are waiting on the GIL
* C frames that are garbage-collecting
* C frames that are due to the invocation of a PyCFunction
|
| |
| |
| |
| | |
purpose
|
|\ \
| |/
| |
| |
| |
| | |
pickle module.
Patch by Stefan Mihaila.
|
| |
| |
| |
| |
| |
| | |
pickle module.
Patch by Stefan Mihaila.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
python executable
The __os_install_macro defines some post-processing activities during an rpm
build; one of the scripts it calls is brp-python-bytecompile, which can take
an argument: the python executable with which to byte-compile .py files in the
package payload.
In some older versions of rpm (e.g. in RHEL 6), this invocation doesn't pass
in an argument, and brp-python-bytecompile defaults to using /usr/bin/python,
which can lead to the .py files being byte-compiled for the wrong version of
python. This has been fixed in later versions of rpm by passing in
%{__python} as an argument to brp-python-bytecompile.
Workaround this by detecting if __os_install_post has a 0-argument invocation
of brp-python-bytecompile, and if so generating an equivalent macro that has
the argument, and explicitly provide the new definition within the specfile.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
behind.
|
| |
| |
| |
| |
| |
| | |
free the copy of the command-line.
Found using Clang's static analyzer.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
python executable
The __os_install_macro defines some post-processing activities during an rpm
build; one of the scripts it calls is brp-python-bytecompile, which can take
an argument: the python executable with which to byte-compile .py files in the
package payload.
In some older versions of rpm (e.g. in RHEL 6), this invocation doesn't pass
in an argument, and brp-python-bytecompile defaults to using /usr/bin/python,
which can lead to the .py files being byte-compiled for the wrong version of
python. This has been fixed in later versions of rpm by passing in
%{__python} as an argument to brp-python-bytecompile.
Workaround this by detecting if __os_install_post has a 0-argument invocation
of brp-python-bytecompile, and if so generating an equivalent macro that has
the argument, and explicitly provide the new definition within the specfile.
|
| | |
|
| | |
|
| |
| |
| |
| | |
of os.listdir().
|
| | |
|
| |
| |
| |
| | |
plain tuple to a collections.namedtuple.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
plain tuples to immutable iterable objects with named attributes
(structseq objects).
|
| |
| |
| |
| |
| | |
that was last accessed. In the pi benchmark (64-bit platform, prec=9),
_decimal is now only 1.5x slower than float.
|
| |
| |
| |
| | |
preserve all 64 bits of hash on Win64.
|
|\ \
| |/
| |
| |
| |
| | |
no longer lose data when an underlying read system call is interrupted.
IOError is no longer raised due to a read system call returning EINTR
from within these methods.
|
| |
| |
| |
| |
| |
| | |
no longer lose data when an underlying read system call is interrupted.
IOError is no longer raised due to a read system call returning EINTR
from within these methods.
|
| |
| |
| |
| |
| |
| | |
Distutils2 will live on on PyPI and be included in the stdlib when it
is ready. See discussion starting at
http://mail.python.org/pipermail/python-dev/2012-June/120430.html
|
| |
| |
| |
| | |
references defined by the HTML5 standard and the equivalent Unicode character(s) to the html.entities module.
|
| |
| |
| |
| |
| |
| |
| | |
parameter from os.remove / os.unlink.
Patch written by Georg Brandl. (I'm really looking forward to George
getting commit privileges so I don't have to keep doing checkins on his
behalf.)
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- Try to avoid building Python or extension modules with problematic
llvm-gcc compiler.
- Since Xcode 4 removes ppc support, extension module builds now
check for ppc compiler support and automatically remove ppc and
ppc64 archs when not available.
- Since Xcode 4 no longer install SDKs in default locations,
extension module builds now revert to using installed headers
and libs if the SDK used to build the interpreter is not
available.
- Update ./configure to use better defaults for universal builds;
in particular, --enable-universalsdk=yes uses the Xcode default
SDK and --with-universal-archs now defaults to "intel" if ppc
not available.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
It is used automatically on platforms supporting the necessary os.openat() and
os.unlinkat() functions. Main code by Martin von Löwis.
|
| |
| |
| |
| | |
deprecated now that the parser is able to parse invalid markup.
|
|\ \
| |/
| |
| | |
created using PyType_FromSpec().
|
| |
| |
| |
| | |
created using PyType_FromSpec().
|
| |
| |
| |
| | |
Patch by Serhiy Storchaka.
|