summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge 3.3.Stefan Krah2012-12-158-233/+625
|\
| * Issue #15783: Except for the number methods, the C version of decimal nowStefan Krah2012-12-158-233/+625
| | | | | | | | | | supports all None default values present in decimal.py. These values were largely undocumented.
* | Merge: use OSError instead of os.error in the docs.Andrew Svetlov2012-12-152-5/+5
|\ \ | |/
| * Use OSError instead of os.error in the docs.Andrew Svetlov2012-12-152-5/+5
| |
* | merge headsBenjamin Peterson2012-12-155-12/+60
|\ \
| * | #11175: argparse.FileType now accepts encoding and errors arguments.Petri Lehtinen2012-12-155-12/+60
| | | | | | | | | | | | Patch by Lucas Maystre.
* | | merge 3.3Benjamin Peterson2012-12-151-2/+0
|\ \ \ | |/ / |/| / | |/
| * merge 3.2Benjamin Peterson2012-12-151-2/+0
| |\
| | * remove dead codeBenjamin Peterson2012-12-151-2/+0
| | |
* | | Issue #16488: epoll() objects now support the `with` statement.Antoine Pitrou2012-12-154-1/+36
| | | | | | | | | | | | Patch by Serhiy Storchaka.
* | | MergeAntoine Pitrou2012-12-152-3/+7
|\ \ \
| * | | use error label instead of breaking eval loop (closes #16693)Benjamin Peterson2012-12-152-3/+7
| | | |
* | | | Issue #16298: In HTTPResponse.read(), close the socket when there is no ↵Antoine Pitrou2012-12-154-2/+42
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | Content-Length and the incoming stream is finished. Patch by Eran Rundstein.
| * | Issue #16298: In HTTPResponse.read(), close the socket when there is no ↵Antoine Pitrou2012-12-154-2/+42
| |\ \ | | |/ | | | | | | | | | | | | Content-Length and the incoming stream is finished. Patch by Eran Rundstein.
| | * Issue #16298: In HTTPResponse.read(), close the socket when there is no ↵Antoine Pitrou2012-12-154-1/+23
| | | | | | | | | | | | | | | | | | Content-Length and the incoming stream is finished. Patch by Eran Rundstein.
* | | Remove compile warnings for _testimportmoduleAndrew Svetlov2012-12-151-3/+3
| | |
* | | Rename test module names for #16421 to don't clash with other tests.Andrew Svetlov2012-12-152-10/+10
| | |
* | | cleanup and fix refleaksBenjamin Peterson2012-12-151-8/+12
| | |
* | | #16683: merge with 3.3.Ezio Melotti2012-12-141-6/+6
|\ \ \ | |/ /
| * | #16683: merge with 3.2.Ezio Melotti2012-12-141-6/+6
| |\ \ | | |/
| | * #16683: restore alphabetical order in audioop docs. Patch by Serhiy Storchaka.Ezio Melotti2012-12-141-6/+6
| | |
* | | #16681: merge with 3.3.Ezio Melotti2012-12-142-2/+2
|\ \ \ | |/ /
| * | #16681: merge with 3.2.Ezio Melotti2012-12-142-2/+2
| |\ \ | | |/
| | * #16681: use "bidirectional class" instead of "bidirectional category" in the ↵Ezio Melotti2012-12-141-1/+1
| | | | | | | | | | | | docstring too.
| | * #16681: use "bidirectional class" instead of "bidirectional category".Ezio Melotti2012-12-141-1/+1
| | |
* | | Cleanup filecmp: starting from 3.3 os.error is alias for OSErrorAndrew Svetlov2012-12-141-3/+3
| | |
* | | Issue #16421: allow to load multiple modules from the same shared object.Andrew Svetlov2012-12-1412-10/+887
| | | | | | | | | | | | Patch by Václav Šmilauer.
* | | compile doesn't accept code objectsPhilip Jenvey2012-12-131-1/+1
| | |
* | | Issue #16049: add abc.ABC helper class.Andrew Svetlov2012-12-134-4/+36
| | | | | | | | | | | | Patch by Bruno Dupuis.
* | | Merge with 3.3 for #16661Ross Lagerwall2012-12-132-10/+6
|\ \ \ | |/ /
| * | Issue #16661: Fix the os.getgrouplist() test by not assuming that itRoss Lagerwall2012-12-132-10/+6
| | | | | | | | | | | | gives the same output as "id -G".
* | | expose TCP_FASTOPEN and MSG_FASTOPENBenjamin Peterson2012-12-132-1/+9
| | |
* | | Cross compiling needs host and build settings. configure no longerChristian Heimes2012-12-123-0/+7
|\ \ \ | |/ / | | | | | | creates a broken PYTHON_FOR_BUILD variable when --build is missing.
| * | Cross compiling needs host and build settings. configure no longerChristian Heimes2012-12-123-0/+7
| | | | | | | | | | | | creates a broken PYTHON_FOR_BUILD variable when --build is missing.
* | | Just to be sure, initialize with a copy of the compiler's lib and inc dirs.Christian Heimes2012-12-121-2/+2
|\ \ \ | |/ /
| * | Just to be sure, initialize with a copy of the compiler's lib and inc dirs.Christian Heimes2012-12-121-2/+2
| | |
* | | Fix cross compiling issue in setup.py, ensure that lib_dirs and inc_dirs areChristian Heimes2012-12-122-0/+6
|\ \ \ | |/ / | | | | | | defined in cross compiling mode, too.
| * | Fix cross compiling issue in setup.py, ensure that lib_dirs and inc_dirs areChristian Heimes2012-12-122-0/+6
| | | | | | | | | | | | defined in cross compiling mode, too.
* | | Code style fixup: No need for double ((parenthesis)) and use {} on an if else.Gregory P. Smith2012-12-111-4/+5
|\ \ \ | |/ /
| * | Code style fixup: No need for double ((parenthesis)) and use {} on an if else.Gregory P. Smith2012-12-111-4/+5
| |\ \ | | |/
| | * Code style fixup: No need for double ((parenthesis)) and use {} on an if else.Gregory P. Smith2012-12-111-4/+5
| | |
* | | Fix the internals of our hash functions to used unsigned values during hashGregory P. Smith2012-12-114-12/+12
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | computation as the overflow behavior of signed integers is undefined. NOTE: This change is smaller compared to 3.2 as much of this cleanup had already been done. I added the comment that my change in 3.2 added so that the code would match up. Otherwise this just adds or synchronizes appropriate UL designations on some constants to be pedantic. In practice we require compiling everything with -fwrapv which forces overflow to be defined as twos compliment but this keeps the code cleaner for checkers or in the case where someone has compiled it without -fwrapv or their compiler's equivalent. We could work to get rid of the -fwrapv requirement in 3.4 but that requires more planning. Found by Clang trunk's Undefined Behavior Sanitizer (UBSan). Cleanup only - no functionality or hash values change.
| * | null merge, no change needed in 3.3.Gregory P. Smith2012-12-110-0/+0
| |\ \ | | |/
| | * Keep y a Py_hash_t instead of Py_uhash_t as it is compared with == -1 and theGregory P. Smith2012-12-111-1/+2
| | | | | | | | | | | | | | | | | | | | | compiler logic will do the right thing with just x as a Py_uhash_t. This matches what was already done in the 3.3 version. cleanup only - no functionality or hash values change.
| * | Fix the internals of our hash functions to used unsigned values during hashGregory P. Smith2012-12-114-12/+12
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | computation as the overflow behavior of signed integers is undefined. NOTE: This change is smaller compared to 3.2 as much of this cleanup had already been done. I added the comment that my change in 3.2 added so that the code would match up. Otherwise this just adds or synchronizes appropriate UL designations on some constants to be pedantic. In practice we require compiling everything with -fwrapv which forces overflow to be defined as twos compliment but this keeps the code cleaner for checkers or in the case where someone has compiled it without -fwrapv or their compiler's equivalent. Found by Clang trunk's Undefined Behavior Sanitizer (UBSan). Cleanup only - no functionality or hash values change.
| | * Fix the internals of our hash functions to used unsigned values during hashGregory P. Smith2012-12-115-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | computation as the overflow behavior of signed integers is undefined. In practice we require compiling everything with -fwrapv which forces overflow to be defined as twos compliment but this keeps the code cleaner for checkers or in the case where someone has compiled it without -fwrapv or their compiler's equivalent. Found by Clang trunk's Undefined Behavior Sanitizer (UBSan). Cleanup only - no functionality or hash values change.
* | | Using 'long double' to force this structure to be worst case aligned is noGregory P. Smith2012-12-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | longer required as of Python 2.5+ when the gc_refs changed from an int (4 bytes) to a Py_ssize_t (8 bytes) as the minimum size is 16 bytes. The use of a 'long double' triggered a warning by Clang trunk's Undefined-Behavior Sanitizer as on many platforms a long double requires 16-byte alignment but the Python memory allocator only guarantees 8 byte alignment. So our code would allocate and use these structures with technically improper alignment. Though it didn't matter since the 'dummy' field is never used. This silences that warning. Spelunking into code history, the double was added in 2001 to force better alignment on some platforms and changed to a long double in 2002 to appease Tru64. That issue should no loner be present since the upgrade from int to Py_ssize_t where the minimum structure size increased to 16 (unless anyone knows of a platform where ssize_t is 4 bytes?) or 24 bytes depending on if the build uses 4 or 8 byte pointers. We can probably get rid of the double and this union hack all together today. That is a slightly more invasive change that can be left for later. A more correct non-hacky alternative if any alignment issues are still found would be to use a compiler specific alignment declaration on the structure and determine which value to use at configure time.
* | | 1 << 31 is invalid for signed integers, fix it by making 1 unsigned.Gregory P. Smith2012-12-111-2/+2
|\ \ \ | |/ / | | | | | | Found by Clang trunk's Undefined-Behavior Sanitizer. [more to come]
| * | 1 << 31 is invalid for signed integers, fix it by making 1 unsigned.Gregory P. Smith2012-12-111-2/+2
| |\ \ | | |/ | | | | | | Found by Clang trunk's Undefined-Behavior Sanitizer. [more to come]
| | * 1 << 31 is invalid for signed integers, fix it by making 1 unsigned.Gregory P. Smith2012-12-111-2/+2
| | | | | | | | | | | | Found by Clang trunk's Undefined-Behavior Sanitizer. [more to come]