]> granicus.if.org Git - python/log
python
9 years agoIssue #25155: Add _PyTime_AsTimevalTime_t() function
Victor Stinner [Fri, 18 Sep 2015 11:23:02 +0000 (13:23 +0200)]
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.

9 years agoNull merge 3.5
Victor Stinner [Fri, 18 Sep 2015 09:30:42 +0000 (11:30 +0200)]
Null merge 3.5

9 years agoIssue #25122: sync test_eintr with Python 3.6
Victor Stinner [Fri, 18 Sep 2015 09:29:16 +0000 (11:29 +0200)]
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

9 years agoIssue #25122: Fix test_eintr.test_open() on FreeBSD
Victor Stinner [Fri, 18 Sep 2015 09:23:42 +0000 (11:23 +0200)]
Issue #25122: Fix test_eintr.test_open() on FreeBSD

Skip test_open() and test_os_open(): both tests uses a FIFO and signals, but
there is a bug in the FreeBSD kernel which blocks the test. Skip the tests
until the bug is fixed in FreeBSD kernel.

Remove also debug traces from test_eintr:

* stop using faulthandler to have a timeout
* remove print()

Write also open and close on two lines in test_open() and test_os_open()
tests. If these tests block again, we can know if the test is stuck at open or
close.

test_eintr: don't always run the test in debug mode.

9 years agoMerge 3.5 (imp/_imp)
Victor Stinner [Fri, 18 Sep 2015 07:12:08 +0000 (09:12 +0200)]
Merge 3.5 (imp/_imp)

9 years agoIssue #25160: Fix import_init() comments and messages
Victor Stinner [Fri, 18 Sep 2015 07:11:57 +0000 (09:11 +0200)]
Issue #25160: Fix import_init() comments and messages

import_init() imports the "_imp" module, not the "imp" module.

9 years agoNull merge
Serhiy Storchaka [Fri, 18 Sep 2015 07:09:18 +0000 (10:09 +0300)]
Null merge

9 years agoNull merge
Serhiy Storchaka [Fri, 18 Sep 2015 07:09:06 +0000 (10:09 +0300)]
Null merge

9 years agoIssue #25108: Backported tests for traceback functions print_stack(),
Serhiy Storchaka [Fri, 18 Sep 2015 07:07:18 +0000 (10:07 +0300)]
Issue #25108: Backported tests for traceback functions print_stack(),
format_stack(), and extract_stack() called without arguments.

9 years agoIssue #25108: Omitted internal frames in traceback functions print_stack(),
Serhiy Storchaka [Fri, 18 Sep 2015 07:06:23 +0000 (10:06 +0300)]
Issue #25108: Omitted internal frames in traceback functions print_stack(),
format_stack(), and extract_stack() called without arguments.

9 years agoIssue #25108: Omitted internal frames in traceback functions print_stack(),
Serhiy Storchaka [Fri, 18 Sep 2015 07:04:47 +0000 (10:04 +0300)]
Issue #25108: Omitted internal frames in traceback functions print_stack(),
format_stack(), and extract_stack() called without arguments.

9 years agoIssue 25147: add reason for using _collections
Ethan Furman [Fri, 18 Sep 2015 05:55:40 +0000 (22:55 -0700)]
Issue 25147: add reason for using _collections

9 years agoClose issue24756: clarify usage of run_docstring_examples()
Ethan Furman [Fri, 18 Sep 2015 05:22:20 +0000 (22:22 -0700)]
Close issue24756: clarify usage of run_docstring_examples()

9 years agoIssue24756: clarify usage of run_docstring_examples()
Ethan Furman [Fri, 18 Sep 2015 05:21:36 +0000 (22:21 -0700)]
Issue24756: clarify usage of run_docstring_examples()

9 years agoIssue24756: clarify usage of run_docstring_examples()
Ethan Furman [Fri, 18 Sep 2015 05:20:41 +0000 (22:20 -0700)]
Issue24756: clarify usage of run_docstring_examples()

9 years agoClose issue25147: use C implementation of OrderedDict
Ethan Furman [Fri, 18 Sep 2015 05:03:52 +0000 (22:03 -0700)]
Close issue25147: use C implementation of OrderedDict

9 years agoClose issue24840: Enum._value_ is queried for bool(); original patch by Mike Lundy
Ethan Furman [Fri, 18 Sep 2015 04:49:12 +0000 (21:49 -0700)]
Close issue24840: Enum._value_ is queried for bool(); original patch by Mike Lundy

9 years agoMerge 3.5
Yury Selivanov [Wed, 16 Sep 2015 16:18:55 +0000 (12:18 -0400)]
Merge 3.5

9 years agowhatsnew/3.5: Reword bytes*.hex message
Yury Selivanov [Wed, 16 Sep 2015 16:18:29 +0000 (12:18 -0400)]
whatsnew/3.5: Reword bytes*.hex message

9 years agoIssue #25122: add debug traces to test_eintr.test_open()
Victor Stinner [Wed, 16 Sep 2015 07:23:28 +0000 (09:23 +0200)]
Issue #25122: add debug traces to test_eintr.test_open()

9 years agoIssue #25122: optimize test_eintr
Victor Stinner [Tue, 15 Sep 2015 21:59:00 +0000 (23:59 +0200)]
Issue #25122: optimize test_eintr

Fix test_write(): copy support.PIPE_MAX_SIZE bytes, not support.PIPE_MAX_SIZE*3
bytes.

9 years agoIssue #25122: test_eintr: don't redirect stdout to stderr
Victor Stinner [Tue, 15 Sep 2015 20:55:52 +0000 (22:55 +0200)]
Issue #25122: test_eintr: don't redirect stdout to stderr

sys.stderr is sometimes a StringIO. The redirection was just a hack to see
eintr_tester.py output in red in the buildbot output.

9 years agoMerge 3.5 (asyncio doc)
Victor Stinner [Tue, 15 Sep 2015 20:43:05 +0000 (22:43 +0200)]
Merge 3.5 (asyncio doc)

9 years agoIssue #25134: Update asyncio doc for SSL on Windows
Victor Stinner [Tue, 15 Sep 2015 20:41:52 +0000 (22:41 +0200)]
Issue #25134: Update asyncio doc for SSL on Windows

ProactorEventLoop now supports SSL.

9 years agoIssue #25122: Fix test_eintr, kill child process on error
Victor Stinner [Tue, 15 Sep 2015 20:38:09 +0000 (22:38 +0200)]
Issue #25122: Fix test_eintr, kill child process on error

Some test_eintr hangs on waiting for the child process completion if an error
occurred on the parent. Kill the child process on error (in the parent)
to avoid the hang.

9 years agowhatsnew/3.5: Add missing word "class"
Berker Peksag [Tue, 15 Sep 2015 17:06:48 +0000 (20:06 +0300)]
whatsnew/3.5: Add missing word "class"

9 years agowhatsnew/3.5: Add missing word "class"
Berker Peksag [Tue, 15 Sep 2015 17:06:28 +0000 (20:06 +0300)]
whatsnew/3.5: Add missing word "class"

9 years agoIssue #25127: Fix typo in concurrent.futures.rst
Berker Peksag [Tue, 15 Sep 2015 16:59:46 +0000 (19:59 +0300)]
Issue #25127: Fix typo in concurrent.futures.rst

Reported by Jakub Wilk.

9 years agoIssue #25127: Fix typo in concurrent.futures.rst
Berker Peksag [Tue, 15 Sep 2015 16:59:26 +0000 (19:59 +0300)]
Issue #25127: Fix typo in concurrent.futures.rst

Reported by Jakub Wilk.

9 years agoIssue #25127: Fix typo in concurrent.futures.rst
Berker Peksag [Tue, 15 Sep 2015 16:59:03 +0000 (19:59 +0300)]
Issue #25127: Fix typo in concurrent.futures.rst

Reported by Jakub Wilk.

9 years agoIssue #25105: Update susp-ignored.csv to avoid false positives
Berker Peksag [Tue, 15 Sep 2015 16:43:26 +0000 (19:43 +0300)]
Issue #25105: Update susp-ignored.csv to avoid false positives

9 years agoIssue #25105: Update susp-ignored.csv to avoid false positives
Berker Peksag [Tue, 15 Sep 2015 16:43:04 +0000 (19:43 +0300)]
Issue #25105: Update susp-ignored.csv to avoid false positives

9 years agoIssue #25122: try to debug test_eintr hang on FreeBSD
Victor Stinner [Tue, 15 Sep 2015 10:15:59 +0000 (12:15 +0200)]
Issue #25122: try to debug test_eintr hang on FreeBSD

* Add verbose mode to test_eintr
* Always enable verbose mode in test_eintr
* Use faulthandler.dump_traceback_later() with a timeout of 15 minutes in
  eintr_tester.py

9 years agoMerge 3.5 (os.waitpid)
Victor Stinner [Tue, 15 Sep 2015 08:24:27 +0000 (10:24 +0200)]
Merge 3.5 (os.waitpid)

9 years agoIssue #25118: Fix a regression of Python 3.5.0 in os.waitpid() on Windows.
Victor Stinner [Tue, 15 Sep 2015 08:11:03 +0000 (10:11 +0200)]
Issue #25118: Fix a regression of Python 3.5.0 in os.waitpid() on Windows.

Add an unit test on os.waitpid()

9 years agoMerge 3.5 (test_gdb)
Victor Stinner [Mon, 14 Sep 2015 22:23:20 +0000 (00:23 +0200)]
Merge 3.5 (test_gdb)

9 years agoMerge 3.4 (test_gdb)
Victor Stinner [Mon, 14 Sep 2015 22:23:08 +0000 (00:23 +0200)]
Merge 3.4 (test_gdb)

9 years agotest_gdb: fix regex to parse the GDB version
Victor Stinner [Mon, 14 Sep 2015 22:22:55 +0000 (00:22 +0200)]
test_gdb: fix regex to parse the GDB version

Fix the regex to support the version 7.10: minor version with two digits

9 years agoTighten inner-loop for deque_inplace_repeat().
Raymond Hettinger [Mon, 14 Sep 2015 05:03:04 +0000 (01:03 -0400)]
Tighten inner-loop for deque_inplace_repeat().

9 years agoAdd an exact type match fast path for deque_copy().
Raymond Hettinger [Sun, 13 Sep 2015 23:27:01 +0000 (19:27 -0400)]
Add an exact type match fast path for deque_copy().

9 years agoMerge with 3.5
Steve Dower [Sun, 13 Sep 2015 21:41:24 +0000 (14:41 -0700)]
Merge with 3.5

9 years agoCloses #25078: Document InstallAllUsers installer parameter default 0
Steve Dower [Sun, 13 Sep 2015 21:39:26 +0000 (14:39 -0700)]
Closes #25078: Document InstallAllUsers installer parameter default 0

9 years agoFixed a typo in the -b option.
Serhiy Storchaka [Sun, 13 Sep 2015 18:09:36 +0000 (21:09 +0300)]
Fixed a typo in the -b option.

9 years agoFixed a typo in the -b option.
Serhiy Storchaka [Sun, 13 Sep 2015 18:09:17 +0000 (21:09 +0300)]
Fixed a typo in the -b option.

9 years agoUse :menuselection: in whatsnew/3.4.
Serhiy Storchaka [Sun, 13 Sep 2015 18:06:40 +0000 (21:06 +0300)]
Use :menuselection: in whatsnew/3.4.

9 years agoUse :menuselection: in whatsnew/3.4.
Serhiy Storchaka [Sun, 13 Sep 2015 18:06:06 +0000 (21:06 +0300)]
Use :menuselection: in whatsnew/3.4.

9 years agoUse :menuselection: in whatsnew/3.4.
Serhiy Storchaka [Sun, 13 Sep 2015 18:05:37 +0000 (21:05 +0300)]
Use :menuselection: in whatsnew/3.4.

9 years agoMerge 3.5
Yury Selivanov [Sun, 13 Sep 2015 16:51:46 +0000 (12:51 -0400)]
Merge 3.5

9 years agoMerge from 3.5.
Larry Hastings [Sun, 13 Sep 2015 15:57:16 +0000 (16:57 +0100)]
Merge from 3.5.

9 years agowhatsnew/3.5: Fix typo
Yury Selivanov [Sun, 13 Sep 2015 15:52:07 +0000 (11:52 -0400)]
whatsnew/3.5: Fix typo

9 years agowhatsnew/3.5: One more edit
Yury Selivanov [Sun, 13 Sep 2015 15:40:00 +0000 (11:40 -0400)]
whatsnew/3.5: One more edit

9 years agowhatsnew/3.5: Edits
Yury Selivanov [Sun, 13 Sep 2015 15:21:25 +0000 (11:21 -0400)]
whatsnew/3.5: Edits

Patch by me and Elvis Pranskevichus

9 years agoMerge release engineering work from Python 3.5.0.
Larry Hastings [Sun, 13 Sep 2015 14:43:21 +0000 (15:43 +0100)]
Merge release engineering work from Python 3.5.0.

9 years agoPost-release updates for Python 3.5.0.
Larry Hastings [Sun, 13 Sep 2015 14:36:07 +0000 (15:36 +0100)]
Post-release updates for Python 3.5.0.

9 years agoMerge 3.5
Yury Selivanov [Sun, 13 Sep 2015 12:31:07 +0000 (08:31 -0400)]
Merge 3.5

9 years agowhatsnew/3.5: Fix typo (issue #25082)
Yury Selivanov [Sun, 13 Sep 2015 12:30:58 +0000 (08:30 -0400)]
whatsnew/3.5: Fix typo (issue #25082)

9 years agoMerge 3.5
Yury Selivanov [Sun, 13 Sep 2015 12:29:30 +0000 (08:29 -0400)]
Merge 3.5

9 years agowhatsnew/3.5: Reorder stuff (issue #25082).
Yury Selivanov [Sun, 13 Sep 2015 12:29:19 +0000 (08:29 -0400)]
whatsnew/3.5: Reorder stuff (issue #25082).

9 years agoMerge 3.5
Serhiy Storchaka [Sun, 13 Sep 2015 09:08:19 +0000 (12:08 +0300)]
Merge 3.5

9 years agowhatsnew/3.5: Fix formatting. More minor edits.
Serhiy Storchaka [Sun, 13 Sep 2015 09:07:54 +0000 (12:07 +0300)]
whatsnew/3.5: Fix formatting. More minor edits.

9 years agoFix refcount.
Raymond Hettinger [Sun, 13 Sep 2015 06:41:18 +0000 (02:41 -0400)]
Fix refcount.

9 years agoMerge 3.5
Yury Selivanov [Sun, 13 Sep 2015 05:58:09 +0000 (01:58 -0400)]
Merge 3.5

9 years agowhatsnew/3.5: Delete prerelease warning note.
Yury Selivanov [Sun, 13 Sep 2015 05:57:57 +0000 (01:57 -0400)]
whatsnew/3.5: Delete prerelease warning note.

(we'll make a couple more commits tomorrow before release)

9 years agoMerge 3.5
Yury Selivanov [Sun, 13 Sep 2015 05:40:46 +0000 (01:40 -0400)]
Merge 3.5

9 years agowhatsnew/3.5: Fix formatting
Yury Selivanov [Sun, 13 Sep 2015 05:40:36 +0000 (01:40 -0400)]
whatsnew/3.5: Fix formatting

9 years agoMerge 3.5
Yury Selivanov [Sun, 13 Sep 2015 05:39:16 +0000 (01:39 -0400)]
Merge 3.5

9 years agowhatsnew/3.5: Tweak asyncio module section
Yury Selivanov [Sun, 13 Sep 2015 05:39:05 +0000 (01:39 -0400)]
whatsnew/3.5: Tweak asyncio module section

9 years agoMerge 3.5
Yury Selivanov [Sun, 13 Sep 2015 05:10:29 +0000 (01:10 -0400)]
Merge 3.5

9 years agowhatsnew/3.5: More examples
Yury Selivanov [Sun, 13 Sep 2015 05:10:19 +0000 (01:10 -0400)]
whatsnew/3.5: More examples

9 years agoMerge 3.5
Yury Selivanov [Sun, 13 Sep 2015 04:29:14 +0000 (00:29 -0400)]
Merge 3.5

9 years agowhatsnew/3.5: Cover asyncio changes relative to 3.4.0
Yury Selivanov [Sun, 13 Sep 2015 04:29:02 +0000 (00:29 -0400)]
whatsnew/3.5: Cover asyncio changes relative to 3.4.0

9 years agoMerge 3.5
Yury Selivanov [Sun, 13 Sep 2015 03:46:50 +0000 (23:46 -0400)]
Merge 3.5

9 years agowhatsnew/3.5: Add some examples
Yury Selivanov [Sun, 13 Sep 2015 03:46:39 +0000 (23:46 -0400)]
whatsnew/3.5: Add some examples

Patch by Elvis Pranskevichus

9 years agomerge 3.5 (#25076)
Benjamin Peterson [Sun, 13 Sep 2015 00:21:24 +0000 (17:21 -0700)]
merge 3.5 (#25076)

9 years agomerge 3.4
Benjamin Peterson [Sun, 13 Sep 2015 00:21:16 +0000 (17:21 -0700)]
merge 3.4

9 years agofix name of argument in docstring and the docs (closes #25076)
Benjamin Peterson [Sun, 13 Sep 2015 00:20:47 +0000 (17:20 -0700)]
fix name of argument in docstring and the docs (closes #25076)

Patch by TAKASE Arihiro.

9 years agoFixed indentation.
Eric V. Smith [Sat, 12 Sep 2015 22:53:36 +0000 (18:53 -0400)]
Fixed indentation.

9 years agoMerge 3.5
Yury Selivanov [Sat, 12 Sep 2015 21:53:42 +0000 (17:53 -0400)]
Merge 3.5

9 years agowhatsnew/3.5: Update editor's email addresses
Yury Selivanov [Sat, 12 Sep 2015 21:53:33 +0000 (17:53 -0400)]
whatsnew/3.5: Update editor's email addresses

9 years agoMerge 3.5
Yury Selivanov [Sat, 12 Sep 2015 21:51:16 +0000 (17:51 -0400)]
Merge 3.5

9 years agowhatsnew/3.5 More edits
Yury Selivanov [Sat, 12 Sep 2015 21:50:58 +0000 (17:50 -0400)]
whatsnew/3.5 More edits

Patch by Elvis Praskevichus.  (+ issue #25070)

9 years agoMerge 3.5
Yury Selivanov [Sat, 12 Sep 2015 19:52:20 +0000 (15:52 -0400)]
Merge 3.5

9 years agowhatsnew/3.5: Edits
Yury Selivanov [Sat, 12 Sep 2015 19:52:04 +0000 (15:52 -0400)]
whatsnew/3.5: Edits

Patch by Elvis Pranskevichus

9 years agoMerge
Kristján Valur Jónsson [Sat, 12 Sep 2015 16:41:22 +0000 (16:41 +0000)]
Merge

9 years agoAdded tag v3.5.0 for changeset 374f501f4567
Larry Hastings [Sat, 12 Sep 2015 16:36:53 +0000 (17:36 +0100)]
Added tag v3.5.0 for changeset 374f501f4567

9 years agoFinal touch-ups for the What's New In Python 3.5 document. v3.5.0
Larry Hastings [Sat, 12 Sep 2015 16:36:44 +0000 (17:36 +0100)]
Final touch-ups for the What's New In Python 3.5 document.

9 years agoIssue #25021: Merge 3.5 to default
Kristján Valur Jónsson [Sat, 12 Sep 2015 16:36:15 +0000 (16:36 +0000)]
Issue #25021: Merge 3.5 to default

9 years agoIssue #25021: Merge 3.4 to 3.5
Kristján Valur Jónsson [Sat, 12 Sep 2015 16:34:33 +0000 (16:34 +0000)]
Issue #25021: Merge 3.4 to 3.5

9 years agoVersion bump for Python 3.5.0 final.
Larry Hastings [Sat, 12 Sep 2015 16:28:39 +0000 (17:28 +0100)]
Version bump for Python 3.5.0 final.

9 years agoRegenerate pydoc topics, fix minor non-RST formatting in Misc/NEWS.
Larry Hastings [Sat, 12 Sep 2015 16:24:02 +0000 (17:24 +0100)]
Regenerate pydoc topics, fix minor non-RST formatting in Misc/NEWS.

9 years agoBackported the What's New In 3.5 from 3.5.1 to 3.5.0 (final!).
Larry Hastings [Sat, 12 Sep 2015 16:12:36 +0000 (17:12 +0100)]
Backported the What's New In 3.5 from 3.5.1 to 3.5.0 (final!).

9 years agoIssue #25021: Merge from 3.3 to 3.4
Kristján Valur Jónsson [Sat, 12 Sep 2015 15:30:23 +0000 (15:30 +0000)]
Issue #25021: Merge from 3.3 to 3.4

9 years agoIssue #25021: Correctly make sure that product.__setstate__ does not access
Kristján Valur Jónsson [Sat, 12 Sep 2015 15:20:54 +0000 (15:20 +0000)]
Issue #25021: Correctly make sure that product.__setstate__ does not access
invalid memory.

9 years agoIn-line the append operations inside deque_inplace_repeat().
Raymond Hettinger [Sat, 12 Sep 2015 15:00:20 +0000 (11:00 -0400)]
In-line the append operations inside deque_inplace_repeat().

9 years agoMarked keystrokes with the :kbd: role.
Serhiy Storchaka [Sat, 12 Sep 2015 14:46:56 +0000 (17:46 +0300)]
Marked keystrokes with the :kbd: role.
Fixed the case of the "Ctrl-" prefixes.

9 years agoMarked keystrokes with the :kbd: role.
Serhiy Storchaka [Sat, 12 Sep 2015 14:46:20 +0000 (17:46 +0300)]
Marked keystrokes with the :kbd: role.
Fixed the case of the "Ctrl-" prefixes.

9 years agoMarked keystrokes with the :kbd: role.
Serhiy Storchaka [Sat, 12 Sep 2015 14:45:25 +0000 (17:45 +0300)]
Marked keystrokes with the :kbd: role.
Fixed the case of the "Ctrl-" prefixes.

9 years agoIssue #16473: Merge codecs doc and test from 3.5
Martin Panter [Sat, 12 Sep 2015 01:24:33 +0000 (01:24 +0000)]
Issue #16473: Merge codecs doc and test from 3.5

9 years agoIssue #16473: Merge codecs doc and test from 3.4 into 3.5
Martin Panter [Sat, 12 Sep 2015 01:22:17 +0000 (01:22 +0000)]
Issue #16473: Merge codecs doc and test from 3.4 into 3.5

9 years agoIssue #16473: Fix byte transform codec documentation; test quotetabs=True
Martin Panter [Sat, 12 Sep 2015 00:34:28 +0000 (00:34 +0000)]
Issue #16473: Fix byte transform codec documentation; test quotetabs=True

This changes the equivalent functions listed for the Base-64, hex and Quoted-
Printable codecs to reflect the functions actually used. Also mention and
test the "quotetabs" setting for Quoted-Printable encoding.