Commit Graph

91307 Commits

Author SHA1 Message Date
Yury Selivanov 8aa184692e Merge 3.5 2015-09-10 18:59:52 -04:00
Yury Selivanov 1c73e69ec5 whatsnew/3.5: Clarify types.coroutine & types.CoroutineType 2015-09-10 18:59:42 -04:00
Yury Selivanov a8379ea639 Merge 3.5 2015-09-10 18:32:00 -04:00
Yury Selivanov 83c6d729d4 whatsnew/3.5: Don't mention pyio.FileIO 2015-09-10 18:31:49 -04:00
Yury Selivanov cbfee5a171 Merge 3.5 (issue #22980, whatsnew/3.5) 2015-09-10 18:27:17 -04:00
Yury Selivanov c973990f4e whatsnew/3.5: Describe changes in issue #22980
Initial patch by Larry Hastings.
2015-09-10 18:26:44 -04:00
Yury Selivanov 6bb33d6ac3 Merge 3.5 2015-09-10 18:04:45 -04:00
Yury Selivanov 5c3111e319 whatsnew/3.5: More edits -- use articles consistently; fix refs 2015-09-10 18:04:35 -04:00
Yury Selivanov f0ac36c7f8 Merge 3.5 2015-09-10 17:35:51 -04:00
Yury Selivanov ce917c731d whatsnew/3.5: Editorialization pass on library section
Patch by Elvis Pranskevichus
2015-09-10 17:35:38 -04:00
Zachary Ware 5480dea548 Closes #25022 (again): Merge with 3.5 2015-09-10 16:12:48 -05:00
Zachary Ware 31ce9ac867 Issue #25022: Merge with 3.4 2015-09-10 16:08:21 -05:00
Zachary Ware 3d9a9d47a8 Issue #25022: Add NEWS, fix docs to not mention the old example. 2015-09-10 15:50:58 -05:00
Zachary Ware d038b78599 Closes #25022: Merge with 3.5 2015-09-10 15:03:02 -05:00
Zachary Ware 018e380d55 Issue #25022: Merge with 3.4 2015-09-10 15:02:14 -05:00
Zachary Ware b54a068204 Issue #25022: Remove PC/example_nt/
It was very much outdated, and the topic is better covered elsewhere.
2015-09-10 14:37:42 -05:00
Guido van Rossum 7466e6bf66 Add the original author of profile.py back to the docs, at his request. (Merge) 2015-09-10 12:12:23 -07:00
Guido van Rossum 6eb740b12a Add the original author of profile.py back to the docs, at his request. 2015-09-10 12:12:01 -07:00
Berker Peksag 91c4e603af Fix typos and improve markup in typing.rst. 2015-09-10 21:56:11 +03:00
Berker Peksag 573e2cd383 Fix typos and improve markup in typing.rst. 2015-09-10 21:55:50 +03:00
Berker Peksag 4b2d7f0bd0 Use print function in mock docs. 2015-09-10 21:42:18 +03:00
Berker Peksag 619b283d85 Use print function in mock docs. 2015-09-10 21:41:52 +03:00
Berker Peksag 920f6db10b Use print function in mock docs. 2015-09-10 21:41:15 +03:00
Guido van Rossum 06ea309ea7 Restore doc updates to typing.rst by Ivan Levkivskyi and Daniel Andrade Groppe. 2015-09-10 10:54:10 -07:00
Guido van Rossum 2a19d956ab Restore doc updates to typing.rst by Ivan Levkivskyi and Daniel Andrade Groppe. 2015-09-10 10:52:11 -07:00
Victor Stinner 51b9398444 pytime: oops, fix typos on Windows 2015-09-10 16:00:06 +02:00
Victor Stinner c60542b12b pytime: add _PyTime_check_mul_overflow() macro to avoid undefined behaviour
Overflow test in test_FromSecondsObject() fails on FreeBSD 10.0 buildbot which
uses clang. clang implements more aggressive optimization which gives
different result than GCC on undefined behaviours.

Check if a multiplication will overflow, instead of checking if a
multiplicatin had overflowed, to avoid undefined behaviour.

Add also debug information if the test on overflow fails.
2015-09-10 15:55:07 +02:00
Victor Stinner ff0ed3e71c New try to fix test_time.test_AsSecondsDouble() on x86 buildbots.
Use volatile keyword in _PyTime_AsSecondsDouble()
2015-09-10 13:25:17 +02:00
Victor Stinner 1efbebaac2 Try to fix test_time.test_AsSecondsDouble() on "x86 Gentoo Non-Debug with X 3.x" buildbot
Use volatile keyword in _PyTime_Round()
2015-09-10 11:48:00 +02:00
Victor Stinner 350b51839a Fix test_time on platform with 32-bit time_t type
Filter also values for check_float_rounding().
2015-09-10 11:45:06 +02:00
Victor Stinner 4237d3474c Fix test_time on platform with 32-bit time_t type
Filter values which would overflow when converted to a C time_t type.
2015-09-10 10:10:39 +02:00
Victor Stinner 9c72f9b30a Fix test_time on Windows
* Filter values which would overflow on conversion to the C long type
  (for timeval.tv_sec).
* Adjust also the message of OverflowError on PyTime conversions
* test_time: add debug information if a timestamp conversion fails
2015-09-10 09:10:14 +02:00
Yury Selivanov 4f1f6e4618 Merge 3.5 2015-09-09 22:46:51 -04:00
Yury Selivanov 88d073dad5 whatsnew/3.5: Mention issue 22464
(About the only new feature that was worth mentioning in
whatsnew without a NEWS entry)
2015-09-09 22:46:40 -04:00
Raymond Hettinger f5d72f35e8 Simply deque repeat by reusing code in in-line repeat. Avoid unnecessary division. 2015-09-09 22:39:44 -04:00
Guido van Rossum 87e8fe6cb3 Merge typing docs from 3.5 branch. 2015-09-09 19:36:31 -07:00
Guido van Rossum 3013acc9e9 Merge typing doc updates from larry's branch. 2015-09-09 19:34:36 -07:00
Steve Dower 988433fc93 Fixes handling of read-only files when creating zip package. 2015-09-09 19:33:06 -07:00
Steve Dower ae69de658e Fixes handling of read-only files when creating zip package. 2015-09-09 19:32:45 -07:00
Berker Peksag 29bf4d403d Issue #24857: Comparing call_args to a long sequence now correctly returns a
boolean result instead of raising an exception.

Patch by A Kaptur.
2015-09-09 23:39:45 +03:00
Berker Peksag 3fc536f1c9 Issue #24857: Comparing call_args to a long sequence now correctly returns a
boolean result instead of raising an exception.

Patch by A Kaptur.
2015-09-09 23:35:25 +03:00
Victor Stinner 3e2c8d84c6 test_time: rewrite PyTime API rounding tests
Drop all hardcoded tests. Instead, reimplement each function in Python, usually
using decimal.Decimal for the rounding mode.

Add much more values to the dataset. Test various timestamp units from
picroseconds to seconds, in integer and float.

Enhance also _PyTime_AsSecondsDouble().
2015-09-09 22:32:48 +02:00
Victor Stinner 9ae47dfbd9 pytime: add _PyTime_Round() helper to factorize code 2015-09-09 22:28:58 +02:00
Victor Stinner ce6aa749b4 Make _PyTime_RoundHalfEven() private again 2015-09-09 22:28:09 +02:00
Berker Peksag 17ebaa93d4 Issue #24857: Comparing call_args to a long sequence now correctly returns a
boolean result instead of raising an exception.

Patch by A Kaptur.
2015-09-09 23:40:11 +03:00
Guido van Rossum 0db1c42c65 Update typing docs based on a patch by Daniel Andrade Groppe. 2015-09-09 12:01:36 -07:00
Guido van Rossum 2e7da04b92 Update typing docs based on a patch by Ivan Levkivskyi (but much rewritten by me). 2015-09-09 11:44:39 -07:00
Guido van Rossum ac062f7935 Merge typing docs cleanup diff by Zach Ware from default back into 350 branch. 2015-09-09 11:21:18 -07:00
Yury Selivanov 0ae505e7d3 Merge 3.5 2015-09-09 13:50:12 -04:00
Yury Selivanov ef05af5941 whatsnew/3.5: Merge argparse entries 2015-09-09 13:49:29 -04:00