Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #23517: fromtimestamp() and utcfromtimestamp() methods of | Victor Stinner | 2015-09-03 | 4 | -8/+14 |
| | | | | | | datetime.datetime now round microseconds to nearest with ties going away from zero (ROUND_HALF_UP), as Python 2 and Python older than 3.3, instead of rounding towards -Infinity (ROUND_FLOOR). | ||||
* | Merge with 3.5 | Terry Jan Reedy | 2015-09-03 | 1 | -1/+1 |
|\ | |||||
| * | Merge with 3.4 | Terry Jan Reedy | 2015-09-03 | 1 | -1/+1 |
| |\ | |||||
| | * | Issue #21192: Change 'RUN' back to 'RESTART' when running editor file. | Terry Jan Reedy | 2015-09-03 | 1 | -1/+1 |
| | | | |||||
* | | | Rewrite eintr_tester.py to avoid os.fork() | Victor Stinner | 2015-09-02 | 1 | -101/+158 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | eintr_tester.py calls signal.setitimer() to send signals to the current process every 100 ms. The test sometimes hangs on FreeBSD. Maybe there is a race condition in the child process after fork(). It's unsafe to run arbitrary code after fork(). This change replace os.fork() with a regular call to subprocess.Popen(). This change avoids the risk of having a child process which continue to execute eintr_tester.py instead of exiting. It also ensures that the child process doesn't inherit unexpected file descriptors by mistake. Since I'm unable to reproduce the issue on FreeBSD, I will have to watch FreeBSD buildbots to check if the issue is fixed or not. Remove previous attempt to debug: remove call to faulthandler.dump_traceback_later(). | ||||
* | | | Merge 3.5 (monotonic) | Victor Stinner | 2015-09-02 | 1 | -13/+3 |
|\ \ \ | |/ / | |||||
| * | | oops, rename pymonotonic_new() to pymonotonic() | Victor Stinner | 2015-09-02 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | I was not supposed to commit the function with the name pymonotonic_new(). I forgot to rename it. | ||||
| * | | Issue #24707: Remove assertion in monotonic clock | Victor Stinner | 2015-09-02 | 1 | -10/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't check anymore at runtime that the monotonic clock doesn't go backward. Yes, it happens. It occurs sometimes each month on a Debian buildbot slave running in a VM. The problem is that Python cannot do anything useful if a monotonic clock goes backward. It was decided in the PEP 418 to not fix the system, but only expose the clock provided by the OS. | ||||
* | | | Merge 3.5 (test_warnings) | Victor Stinner | 2015-09-02 | 1 | -0/+6 |
|\ \ \ | |/ / | |||||
| * | | Merge 3.4 (test_warnings) | Victor Stinner | 2015-09-02 | 1 | -0/+6 |
| |\ \ | | |/ | |||||
| | * | Fix test_warnings: don't modify warnings.filters | Victor Stinner | 2015-09-02 | 1 | -0/+6 |
| | | | | | | | | | | | | | | | | | | BaseTest now ensures that unittest.TestCase.assertWarns() uses the same warnings module than warnings.catch_warnings(). Otherwise, warnings.catch_warnings() will be unable to remove the added filter. | ||||
* | | | Merge 3.5 (test_gdb) | Victor Stinner | 2015-09-02 | 1 | -19/+29 |
|\ \ \ | |/ / | |||||
| * | | Merge 3.4 (test_gdb) | Victor Stinner | 2015-09-02 | 1 | -17/+33 |
| |\ \ | | |/ | |||||
| | * | test_gdb: use subprocess.Popen context manager to fix ResourceWarning warnings | Victor Stinner | 2015-09-02 | 1 | -20/+29 |
| | | | | | | | | | | | | when the test is interrupted (or fail). | ||||
| | * | test_gdb: fix regex to parse gdb version for SUSE Linux Entreprise | Victor Stinner | 2015-09-02 | 1 | -4/+11 |
| | | | | | | | | | | | | | | | Mention also the detected GDB version on verbose mode and on error (if the major version is smaller than 7). | ||||
* | | | Issue #23517: datetime.timedelta constructor now rounds microseconds to nearest | Victor Stinner | 2015-09-02 | 6 | -34/+26 |
| | | | | | | | | | | | | | | | | | | with ties going away from zero (ROUND_HALF_UP), as Python 2 and Python older than 3.3, instead of rounding to nearest with ties going to nearest even integer (ROUND_HALF_EVEN). | ||||
* | | | Merge with 3.5 | Zachary Ware | 2015-09-02 | 1 | -15/+36 |
|\ \ \ | |/ / | |||||
| * | | Turn 'rem' comments into a real usage message in PCbuild/build.bat | Zachary Ware | 2015-09-02 | 1 | -15/+36 |
| | | | | | | | | | | | | | | | Also fixes error in 'kill' target (already fixed in 2.7, somehow the fix didn't make it to this branch). | ||||
* | | | Merge 3.5 (issue #24975) | Yury Selivanov | 2015-09-02 | 3 | -11/+21 |
|\ \ \ | |/ / | |||||
| * | | Merge 3.5 heads (issue #24975) | Yury Selivanov | 2015-09-02 | 3 | -11/+21 |
| |\ \ | |||||
| | * | | Issue #24975: Fix AST compilation for PEP 448 syntax. | Yury Selivanov | 2015-09-01 | 3 | -11/+21 |
| | | | | |||||
* | | | | test_eintr: try to debug hang on FreeBSD | Victor Stinner | 2015-09-02 | 1 | -0/+8 |
| | | | | |||||
* | | | | test_gdb: fix ResourceWarning if the test is interrupted | Victor Stinner | 2015-09-02 | 1 | -3/+5 |
| | | | | |||||
* | | | | test_gdb: add debug info to investigate failure on "s390x SLES 3.x" buildbot | Victor Stinner | 2015-09-02 | 1 | -3/+7 |
| | | | | |||||
* | | | | Merge 3.5 (asyncio doc) | Victor Stinner | 2015-09-02 | 1 | -4/+4 |
|\ \ \ \ | |/ / / | |||||
| * | | | Merge 3.4 (asyncio doc) | Victor Stinner | 2015-09-02 | 1 | -4/+4 |
| |\ \ \ | | | |/ | | |/| | |||||
| | * | | asyncio doc: fix subprocess sections | Victor Stinner | 2015-09-02 | 1 | -4/+4 |
| | | | | |||||
* | | | | Issue 24297: Fix test_symbol on Windows | Victor Stinner | 2015-09-02 | 1 | -14/+21 |
| | | | | | | | | | | | | | | | | Don't rely on end of line. Open files in text mode, not in binary mode. | ||||
* | | | | Issue #23517: test_time, skip a test checking a corner case on floating point | Victor Stinner | 2015-09-02 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | | rounding | ||||
* | | | | Issue #23517: Try to fix test_time on "x86 Ubuntu Shared 3.x" buildbot | Victor Stinner | 2015-09-02 | 1 | -7/+10 |
| | | | | |||||
* | | | | test_time: add more tests on HALF_UP rounding mode | Victor Stinner | 2015-09-02 | 1 | -8/+28 |
| | | | | |||||
* | | | | Issue #23517: Reintroduce unit tests for the old PyTime API since it's still | Victor Stinner | 2015-09-02 | 1 | -0/+154 |
| | | | | | | | | | | | | | | | | used. | ||||
* | | | | Issue #23517: Fix _PyTime_ObjectToDenominator() | Victor Stinner | 2015-09-02 | 1 | -18/+17 |
| | | | | | | | | | | | | | | | | | | | | * initialize numerator on overflow error ensure that numerator is smaller than * denominator. | ||||
* | | | | Backed out changeset b690bf218702 | Victor Stinner | 2015-09-02 | 2 | -6/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | Issue #23517: the change broke test_datetime. datetime.timedelta() rounding mode must also be changed, and test_datetime must be updated for the new rounding mode (half up). | ||||
* | | | | Issue #23517: datetime.datetime.fromtimestamp() and | Victor Stinner | 2015-09-01 | 2 | -1/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | datetime.datetime.utcfromtimestamp() now rounds to nearest with ties going away from zero, instead of rounding towards minus infinity (-inf), as Python 2 and Python older than 3.3. | ||||
* | | | | Issue #23517: Add "half up" rounding mode to the _PyTime API | Victor Stinner | 2015-09-01 | 4 | -15/+122 |
| | | | | |||||
* | | | | Move assertion inside _PyTime_ObjectToTimeval() | Victor Stinner | 2015-09-01 | 2 | -7/+14 |
| | | | | | | | | | | | | | | | | | | | | Change also _PyTime_FromSeconds() assertion to ensure that the _PyTime_t type is used. | ||||
* | | | | Refactor pytime.c | Victor Stinner | 2015-09-01 | 1 | -48/+65 |
| | | | | | | | | | | | | | | | | Move code to convert double timestamp to subfunctions. | ||||
* | | | | merge | Raymond Hettinger | 2015-09-01 | 1 | -11/+11 |
|\ \ \ \ | |/ / / | |||||
| * | | | Improve tutorial suggestion for looping techniques | Raymond Hettinger | 2015-09-01 | 1 | -11/+11 |
| | | | | |||||
* | | | | Merge 3.5 | Yury Selivanov | 2015-08-31 | 1 | -0/+7 |
|\ \ \ \ | |/ / / | |||||
| * | | | Make asyncio provisional | Yury Selivanov | 2015-08-31 | 1 | -0/+7 |
| | | | | |||||
* | | | | Issue #24952: Merge 3.5 into 3.6 | Martin Panter | 2015-08-31 | 4 | -2/+8 |
|\ \ \ \ | |/ / / | |||||
| * | | | Issue #24952: Merge 3.4 into 3.5 | Martin Panter | 2015-08-31 | 4 | -2/+8 |
| |\ \ \ | | |/ / | |||||
| | * | | Issue #24952: Clarify default argument of stack_size() in threading, _thread | Martin Panter | 2015-08-31 | 4 | -2/+8 |
| | | | | | | | | | | | | | | | | Patch from Mattip. | ||||
* | | | | merge 3.5 (#24963) | Benjamin Peterson | 2015-08-30 | 1 | -1/+1 |
|\ \ \ \ | |/ / / | |||||
| * | | | merge 3.4 (#24963) | Benjamin Peterson | 2015-08-30 | 1 | -1/+1 |
| |\ \ \ | | |/ / | |||||
| | * | | fix spelling that was a bit confused (closes #24963) | Benjamin Peterson | 2015-08-30 | 1 | -1/+1 |
| | | | | |||||
* | | | | merge | Raymond Hettinger | 2015-08-30 | 3 | -14/+15 |
|\ \ \ \ | |/ / / | |||||
| * | | | merge | Raymond Hettinger | 2015-08-30 | 3 | -14/+15 |
| |\ \ \ | | |/ / |