summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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]
* | | #15872: Some more Windows related tuning to shutil.rmtree testsHynek Schlawack2012-12-101-7/+7
|\ \ \ | |/ / | | | | | | | | | | | | Turns out, the snakebite bots have also their peculiarities. I'm really not proud of this stream of commits. :(
| * | #15872: Some more Windows related tuning to shutil.rmtree testsHynek Schlawack2012-12-101-7/+7
| |\ \ | | |/ | | | | | | | | | | | | Turns out, the snakebite bots behave also their peculiarities. I'm really not proud of this stream of commits. :(
| | * #15872: Some more Windows related tuning to shutil.rmtree testsHynek Schlawack2012-12-101-8/+7
| | | | | | | | | | | | | | | | | | Turns out, the snakebite bots behave also their peculiarities. I'm really not proud of this stream of commits. :(
* | | #15872: Be flexible with appending *.* in shutil.rmtree test caseHynek Schlawack2012-12-101-3/+7
|\ \ \ | |/ / | | | | | | The Windows buildbots seem to be unable to agree whether they need them or not.
| * | #15872: Be flexible with appending *.* in shutil.rmtree test caseHynek Schlawack2012-12-101-1/+1
| |\ \ | | |/ | | | | | | The Windows buildbots seem to be unable to agree whether they need them or not.
| | * #15872: Be flexible with appending *.* in shutil.rmtree test caseHynek Schlawack2012-12-101-1/+1
| | | | | | | | | | | | The Windows buildbots seem to be unable to agree whether they need them or not.
* | | #15872: More shutil test fixes for WindowsHynek Schlawack2012-12-101-5/+1
|\ \ \ | |/ / | | | | | | | | | This one is different from 3.2 and 3.3. Windows ceased using *.* since 3.4 apparently.
| * | #15872: More shutil test fixes for WindowsHynek Schlawack2012-12-101-2/+2
| |\ \ | | |/
| | * #15872: More shutil test fixes for WindowsHynek Schlawack2012-12-101-2/+2
| | |
* | | Fix Issue15701 : add .headers attribute to urllib.error.HTTPErrorSenthil Kumaran2012-12-104-1/+23
| | |
* | | #15872: Fix shutil.rmtree error tests for WindowsHynek Schlawack2012-12-101-1/+5
|\ \ \ | |/ /
| * | #15872: Fix shutil.rmtree error tests for WindowsHynek Schlawack2012-12-101-1/+5
| |\ \ | | |/
| | * #15872: Fix shutil.rmtree error tests for WindowsHynek Schlawack2012-12-101-1/+5
| | |
* | | #15872: Fix 3.3 regression introduced by the new fd-based shutil.rmtreeHynek Schlawack2012-12-103-10/+62
|\ \ \ | |/ / | | | | | | | | | | | | It caused rmtree to not ignore certain errors when ignore_errors was set. Patch by Alessandro Moura and Serhiy Storchaka.
| * | #15872: Fix 3.3 regression introduced by the new fd-based shutil.rmtreeHynek Schlawack2012-12-103-10/+62
| |\ \ | | |/ | | | | | | | | | | | | It caused rmtree to not ignore certain errors when ignore_errors was set. Patch by Alessandro Moura and Serhiy Storchaka.
| | * #15872: Add tests for a 3.3 regression in the new fd-based shutil.rmtreeHynek Schlawack2012-12-102-0/+50
| | | | | | | | | | | | | | | It cause shutil.rmtree not ignore all errors. Also add a test ensuring that rmtree fails when being called on a symlink. Patch by Serhiy Storchaka.
* | | Issue #16629: Merge IDLE test fix from 3.3.Chris Jerdonek2012-12-101-1/+1
|\ \ \ | |/ /
| * | Issue #16629: Merge IDLE test fix from 3.2.Chris Jerdonek2012-12-101-1/+1
| |\ \ | | |/
| | * Issue #16629: Fix IDLE idlelib.CallTips test. Patch by Roger Serwy.Chris Jerdonek2012-12-101-1/+1
| | | | | | | | | | | | This commit updates a test broken by the change made for issue #14783.
* | | Issue #16582: use int exit code in tkinter._exitAndrew Svetlov2012-12-091-1/+5
|\ \ \ | |/ /
| * | Issue #16582: use int exit code in tkinter._exitAndrew Svetlov2012-12-091-1/+5
| |\ \ | | |/
| | * Issue #16582: use int exit code in tkinter._exitAndrew Svetlov2012-12-091-1/+5
| | |
* | | merge from 3.3 - Document reason attribute for urllib.error.HTTPErrorSenthil Kumaran2012-12-091-0/+4
|\ \ \ | |/ /
| * | merge from 3.2 - reason attribute for urllib.error.HTTPErrorSenthil Kumaran2012-12-091-0/+4
| |\ \ | | |/
| | * Fix issue13211 - Document the reason attribute for urllib.error.HTTPErrorSenthil Kumaran2012-12-091-0/+4
| | |
* | | Make test of poll() use unbuffered IORichard Oudkerk2012-12-091-3/+6
| | |
* | | Issue #16616: Enable test in test_poll which was (accidentally?) disabledRichard Oudkerk2012-12-091-6/+4
| | |
* | | merge 3.3Benjamin Peterson2012-12-090-0/+0
|\ \ \ | |/ /
| * | merge 3.2Benjamin Peterson2012-12-090-0/+0
| |\ \ | | |/
| | * merge 3.1Benjamin Peterson2012-12-090-0/+0
| | |\
| | | * Issue #16248: Disable code execution from the user's home directory by ↵Antoine Pitrou2012-12-092-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | tkinter when the -E flag is passed to Python. Patch by Zachary Ware.