Victor Stinner
6df29ada02
Issue #25150 : Hide the private _Py_atomic_xxx symbols from the public
...
Python.h header to fix a compilation error with OpenMP. PyThreadState_GET()
becomes an alias to PyThreadState_Get() to avoid ABI incompatibilies.
It is important that the _PyThreadState_Current variable is always accessed
with the same implementation of pyatomic.h. Use the PyThreadState_Get()
function so extension modules will all reuse the same implementation.
2015-09-18 15:06:34 +02:00
Victor Stinner
84ff4abd79
Merge 3.4 (datetime rounding)
2015-09-18 14:50:18 +02:00
Victor Stinner
511491ade0
Issue #23517 : Fix rounding in fromtimestamp() and utcfromtimestamp() methods
...
of datetime.datetime: microseconds are now rounded to nearest with ties going
to nearest even integer (ROUND_HALF_EVEN), instead of being rounding towards
zero (ROUND_DOWN). It's important that these methods use the same rounding
mode than datetime.timedelta to keep the property:
(datetime(1970,1,1) + timedelta(seconds=t)) == datetime.utcfromtimestamp(t)
It also the rounding mode used by round(float) for example.
Add more unit tests on the rounding mode in test_datetime.
2015-09-18 14:42:05 +02:00
Victor Stinner
cdf9b789ee
Merge 3.5 (NEWS)
2015-09-18 13:59:30 +02:00
Victor Stinner
02d6a25bea
Issue #25155 : document the bugfix in Misc/NEWS
...
Oops, I forgot to document my change.
2015-09-18 13:59:09 +02:00
Serhiy Storchaka
4ebf9d3a21
Issue #25108 : Omitted internal frames in traceback functions print_stack(),
...
format_stack(), and extract_stack() called without arguments.
2015-09-18 10:06:23 +03:00
Serhiy Storchaka
e953ba794c
Issue #25108 : Omitted internal frames in traceback functions print_stack(),
...
format_stack(), and extract_stack() called without arguments.
2015-09-18 10:04:47 +03:00
Ethan Furman
6db1fd5fb8
Close issue24840: Enum._value_ is queried for bool(); original patch by Mike Lundy
2015-09-17 21:49:12 -07:00
Victor Stinner
024364a89a
Merge 3.5 (os.waitpid)
2015-09-15 10:24:27 +02:00
Victor Stinner
d3ffd32767
Issue #25118 : Fix a regression of Python 3.5.0 in os.waitpid() on Windows.
...
Add an unit test on os.waitpid()
2015-09-15 10:11:03 +02:00
Larry Hastings
d5fd984a60
Merge from 3.5.
2015-09-13 16:57:16 +01:00
Larry Hastings
9c51f89cd6
Merge release engineering work from Python 3.5.0.
2015-09-13 15:43:21 +01:00
Larry Hastings
82c0c69011
Post-release updates for Python 3.5.0.
2015-09-13 15:36:07 +01:00
Larry Hastings
f92f6c8e56
Version bump for Python 3.5.0 final.
2015-09-12 17:28:39 +01:00
Larry Hastings
fcdd34d263
Regenerate pydoc topics, fix minor non-RST formatting in Misc/NEWS.
2015-09-12 17:24:02 +01:00
Steve Dower
a004c54f94
Issue #25071 : Windows installer should not require TargetDir parameter when installing quietly
2015-09-11 11:31:07 -07:00
Steve Dower
729aa1462a
Adds 3.5.0 header to Misc/NEWS
2015-09-11 11:29:07 -07:00
Steve Dower
6695c2e356
Merge from 3.5.0
2015-09-11 11:27:45 -07:00
Steve Dower
76b7133f58
Issue #25071 : Windows installer should not require TargetDir parameter when installing quietly
2015-09-11 10:56:59 -07:00
Victor Stinner
e390410ca4
Merge 3.5
2015-09-11 12:38:27 +02:00
Victor Stinner
f9fdfa7c4e
Merge 3.4
2015-09-11 12:38:17 +02:00
Victor Stinner
ec1a498a01
Issue #24684 : socket.socket.getaddrinfo() now calls
...
PyUnicode_AsEncodedString() instead of calling the encode() method of the
host, to handle correctly custom string with an encode() method which doesn't
return a byte string. The encoder of the IDNA codec is now called directly
instead of calling the encode() method of the string.
2015-09-11 12:37:30 +02:00
Martin Panter
b26cbf9636
Issue #25030 : Merge seek() doc fixes from 3.5
2015-09-11 04:39:42 +00:00
Martin Panter
0e8e78e15d
Issue #25030 : Merge seek() doc fixes from 3.4 into 3.5
2015-09-11 04:39:31 +00:00
Benjamin Peterson
7920b7063d
merge 3.5 ( #25060 )
2015-09-10 21:11:26 -07:00
Benjamin Peterson
b685515039
compute stack effect of BUILD_MAP correctly ( closes #25060 )
2015-09-10 21:02:39 -07:00
Martin Panter
db4220ea09
Issue #25030 : Do not document seek() as if it accepts keyword arguments
...
Patch from Shiyao Ma.
2015-09-11 03:58:30 +00: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
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
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
Larry Hastings
334b4a3403
Merge from 3.5.
2015-09-09 07:00:54 -07:00
Larry Hastings
ded28e3863
Merge Python 3.5.0rc4 back to hg.python.org.
2015-09-09 06:52:38 -07:00
Larry Hastings
1043f95b9b
Version bump for Python 3.5.0rc4.
2015-09-08 23:58:10 -07:00
Martin Panter
98b30cb18a
Issue #24984 : Merge 3.5 into 3.6
2015-09-09 06:50:07 +00:00
Martin Panter
24a9bd0d39
Issue #24984 : Merge 3.4 into 3.5
2015-09-09 06:48:55 +00:00
Martin Panter
d1a98587fe
Issue #24984 : Document AF_BLUETOOTH socket address formats
...
Patch from Tim Tisdall.
2015-09-09 06:47:58 +00:00
Larry Hastings
c31b6d191f
Merge 3.5.0rc3 revisions back into current 3.5.0 head.
2015-09-08 22:45:37 -07:00
Steve Dower
fcbe1df4af
Issue #25027 : Reverts partial-static build options and adds vcruntime140.dll to Windows installation.
2015-09-08 21:39:01 -07:00
Steve Dower
0130e2991d
Adds Mics/NEWS entry for issue #25029 .
2015-09-08 21:27:47 -07:00
Larry Hastings
f772e91412
Added Misc/NEWS section for Python 3.5.0 final.
2015-09-08 21:19:48 -07:00
Victor Stinner
7667f58151
Issue #23517 : fromtimestamp() and utcfromtimestamp() methods of
...
datetime.datetime now round microseconds to nearest with ties going to nearest
even integer (ROUND_HALF_EVEN), as round(float), instead of rounding towards
-Infinity (ROUND_FLOOR).
pytime API: replace _PyTime_ROUND_HALF_UP with _PyTime_ROUND_HALF_EVEN. Fix
also _PyTime_Divide() for negative numbers.
_PyTime_AsTimeval_impl() now reuses _PyTime_Divide() instead of reimplementing
rounding modes.
2015-09-09 01:02:23 +02:00
Victor Stinner
69cc487df4
Revert change 0eb8c182131e:
...
"""Issue #23517 : datetime.timedelta constructor now rounds microseconds to
nearest 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)."""
datetime.timedelta uses rounding mode ROUND_HALF_EVEN again.
2015-09-08 23:58:54 +02:00
Serhiy Storchaka
899f32fe1e
Issue #24982 : shutil.make_archive() with the "zip" format now adds entries
...
for directories (including empty directories) in ZIP file.
Added test for comparing shutil.make_archive() with the "zip" command.
2015-09-08 05:53:42 +03:00
Serhiy Storchaka
d941d7a586
Issue #24982 : shutil.make_archive() with the "zip" format now adds entries
...
for directories (including empty directories) in ZIP file.
Added test for comparing shutil.make_archive() with the "zip" command.
2015-09-08 05:51:00 +03:00
Serhiy Storchaka
2504cecebd
Issue #24982 : shutil.make_archive() with the "zip" format now adds entries
...
for directories (including empty directories) in ZIP file.
Added test for comparing shutil.make_archive() with the "zip" command.
2015-09-08 05:47:23 +03:00
Serhiy Storchaka
9df7035f5b
Issue #25019 : Fixed a crash caused by setting non-string key of expat parser.
...
Added additional tests for expat parser attributes.
Based on patch by John Leitch.
2015-09-07 22:41:04 +03:00
Serhiy Storchaka
3b1bc7828d
Issue #25019 : Fixed a crash caused by setting non-string key of expat parser.
...
Added additional tests for expat parser attributes.
Based on patch by John Leitch.
2015-09-07 22:38:34 +03:00