Victor Stinner
5783fd2c58
Issue #24999 : In longobject.c, use two shifts instead of ">> 2*PyLong_SHIFT" to
...
avoid undefined behaviour when LONG_MAX type is smaller than 60 bits.
This change should fix a warning with the ICC compiler.
2015-09-19 13:39:03 +02:00
Serhiy Storchaka
f2d7ea1af1
Issue #25101 : Try to create a file to test write access in test_zipfile.
2015-09-19 10:59:48 +03:00
Serhiy Storchaka
d86a6ef41c
Issue #25101 : Try to create a file to test write access in test_zipfile.
2015-09-19 10:55:20 +03:00
Brett Cannon
aa00324f73
Make it clearer that the constants in the selectors docs are module-level
2015-09-18 15:21:02 -07:00
Brett Cannon
7188a3efe0
Issue #24915 : Add Clang support to PGO builds and use the test suite
...
for profile data.
Thanks to Alecsandru Patrascu of Intel for the initial patch.
2015-09-18 15:13:44 -07:00
Victor Stinner
4b363e2701
Merge 3.4 (test_email)
2015-09-18 16:32:51 +02:00
Victor Stinner
53936474aa
Issue #24836 : Skip FormatDateTests of test_email.test_utils on Mac OS X Snow
...
Leopard because this OS uses out of date (pre 2011k) timezone files.
2015-09-18 16:32:23 +02:00
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
ec26f83f2e
Issue #25155 : Fix _PyTime_Divide() rounding
...
_PyTime_Divide() rounding was wrong: copy code from Python default which has
now much better unit tests.
2015-09-18 14:21:14 +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
Victor Stinner
4a0d1e7c36
odictobject.c: fix compiler warning
...
PyObject_Length() returns a P_ssize_t, not an int. Use a Py_ssize_t to avoid
overflow.
2015-09-18 13:44:11 +02:00
Victor Stinner
9a8b177e60
Issue #25155 : Add _PyTime_AsTimevalTime_t() function
...
On Windows, the tv_sec field of the timeval structure has the type C long,
whereas it has the type C time_t on all other platforms. A C long has a size of
32 bits (signed inter, 1 bit for the sign, 31 bits for the value) which is not
enough to store an Epoch timestamp after the year 2038.
Add the _PyTime_AsTimevalTime_t() function written for datetime.datetime.now():
convert a _PyTime_t timestamp to a (secs, us) tuple where secs type is time_t.
It allows to support dates after the year 2038 on Windows.
Enhance also _PyTime_AsTimeval_impl() to detect overflow on the number of
seconds when rounding the number of microseconds.
2015-09-18 13:36:17 +02:00
Victor Stinner
4b352171d2
Issue #25122 : sync test_eintr with Python 3.6
...
* test_eintr: support verbose mode, don't redirect eintr_tester output into
a pipe
* eintr_tester: replace os.fork() with subprocess to have a cleaner child
process (ex: don't inherit setitimer())
* eintr_tester: kill the process if the unit test fails
* test_open/test_os_open(): write support.PIPE_MAX_SIZE bytes instead of
support.PIPE_MAX_SIZE*3 bytes
2015-09-18 11:29:16 +02:00
Victor Stinner
cd6e69439c
Issue #25160 : Fix import_init() comments and messages
...
import_init() imports the "_imp" module, not the "imp" module.
2015-09-18 09:11:57 +02:00
Serhiy Storchaka
d8f5fb4611
Null merge
2015-09-18 10:09:06 +03:00
Serhiy Storchaka
e3bcbd2bba
Issue #25108 : Backported tests for traceback functions print_stack(),
...
format_stack(), and extract_stack() called without arguments.
2015-09-18 10:07:18 +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
7b51a55ecd
Issue24756: clarify usage of run_docstring_examples()
2015-09-17 22:21:36 -07:00
Ethan Furman
2a5f9da56c
Issue24756: clarify usage of run_docstring_examples()
2015-09-17 22:20:41 -07:00
Yury Selivanov
8e3b04c70b
whatsnew/3.5: Reword bytes*.hex message
2015-09-16 12:18:29 -04:00
Victor Stinner
60208a161d
Issue #25134 : Update asyncio doc for SSL on Windows
...
ProactorEventLoop now supports SSL.
2015-09-15 22:41:52 +02:00
Berker Peksag
878bc871b4
whatsnew/3.5: Add missing word "class"
2015-09-15 20:06:28 +03:00
Berker Peksag
61ea0aadee
Issue #25127 : Fix typo in concurrent.futures.rst
...
Reported by Jakub Wilk.
2015-09-15 19:59:26 +03:00
Berker Peksag
0b0c3b6624
Issue #25127 : Fix typo in concurrent.futures.rst
...
Reported by Jakub Wilk.
2015-09-15 19:59:03 +03:00
Berker Peksag
055395eed2
Issue #25105 : Update susp-ignored.csv to avoid false positives
2015-09-15 19:43:04 +03: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
Victor Stinner
d64cfc215c
Merge 3.4 (test_gdb)
2015-09-15 00:23:08 +02:00
Victor Stinner
a578eb34ba
test_gdb: fix regex to parse the GDB version
...
Fix the regex to support the version 7.10: minor version with two digits
2015-09-15 00:22:55 +02:00
Steve Dower
9b608e539b
Closes #25078 : Document InstallAllUsers installer parameter default 0
2015-09-13 14:39:26 -07:00
Serhiy Storchaka
2446eab230
Fixed a typo in the -b option.
2015-09-13 21:09:17 +03:00
Serhiy Storchaka
516a1a96ee
Use :menuselection: in whatsnew/3.4.
2015-09-13 21:06:06 +03:00
Serhiy Storchaka
66ad8464cf
Use :menuselection: in whatsnew/3.4.
2015-09-13 21:05:37 +03:00
Yury Selivanov
69a15f1576
whatsnew/3.5: Fix typo
2015-09-13 11:52:07 -04:00
Yury Selivanov
801306bb65
whatsnew/3.5: One more edit
2015-09-13 11:40:00 -04:00
Yury Selivanov
a33cb35688
whatsnew/3.5: Edits
...
Patch by me and Elvis Pranskevichus
2015-09-13 11:21:25 -04: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
Yury Selivanov
73953d8670
whatsnew/3.5: Fix typo (issue #25082 )
2015-09-13 08:30:58 -04:00
Yury Selivanov
fe369a6e0e
whatsnew/3.5: Reorder stuff (issue #25082 ).
2015-09-13 08:29:19 -04:00
Serhiy Storchaka
35a361f1af
whatsnew/3.5: Fix formatting. More minor edits.
2015-09-13 12:07:54 +03:00
Yury Selivanov
3854f9e9fe
whatsnew/3.5: Delete prerelease warning note.
...
(we'll make a couple more commits tomorrow before release)
2015-09-13 01:57:57 -04:00
Yury Selivanov
a7672baa73
whatsnew/3.5: Fix formatting
2015-09-13 01:40:36 -04:00
Yury Selivanov
72dab13105
whatsnew/3.5: Tweak asyncio module section
2015-09-13 01:39:05 -04:00
Yury Selivanov
6d9dd756af
whatsnew/3.5: More examples
2015-09-13 01:10:19 -04:00
Yury Selivanov
63ae9f3b38
whatsnew/3.5: Cover asyncio changes relative to 3.4.0
2015-09-13 00:29:02 -04:00
Yury Selivanov
239503773d
whatsnew/3.5: Add some examples
...
Patch by Elvis Pranskevichus
2015-09-12 23:46:39 -04:00
Benjamin Peterson
f07422c025
merge 3.4
2015-09-12 17:21:16 -07:00
Benjamin Peterson
4019852bfc
fix name of argument in docstring and the docs ( closes #25076 )
...
Patch by TAKASE Arihiro.
2015-09-12 17:20:47 -07:00