]> granicus.if.org Git - python/log
python
9 years agoFix test_time on Windows
Victor Stinner [Thu, 10 Sep 2015 07:10:14 +0000 (09:10 +0200)]
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

9 years agoMerge 3.5
Yury Selivanov [Thu, 10 Sep 2015 02:46:51 +0000 (22:46 -0400)]
Merge 3.5

9 years agowhatsnew/3.5: Mention issue 22464
Yury Selivanov [Thu, 10 Sep 2015 02:46:40 +0000 (22:46 -0400)]
whatsnew/3.5: Mention issue 22464

(About the only new feature that was worth mentioning in
whatsnew without a NEWS entry)

9 years agoSimply deque repeat by reusing code in in-line repeat. Avoid unnecessary division.
Raymond Hettinger [Thu, 10 Sep 2015 02:39:44 +0000 (22:39 -0400)]
Simply deque repeat by reusing code in in-line repeat.  Avoid unnecessary division.

9 years agoMerge typing docs from 3.5 branch.
Guido van Rossum [Thu, 10 Sep 2015 02:36:31 +0000 (19:36 -0700)]
Merge typing docs from 3.5 branch.

9 years agoMerge typing doc updates from larry's branch.
Guido van Rossum [Thu, 10 Sep 2015 02:34:36 +0000 (19:34 -0700)]
Merge typing doc updates from larry's branch.

9 years agoFixes handling of read-only files when creating zip package.
Steve Dower [Thu, 10 Sep 2015 02:33:06 +0000 (19:33 -0700)]
Fixes handling of read-only files when creating zip package.

9 years agoFixes handling of read-only files when creating zip package.
Steve Dower [Thu, 10 Sep 2015 02:32:45 +0000 (19:32 -0700)]
Fixes handling of read-only files when creating zip package.

9 years agoIssue #24857: Comparing call_args to a long sequence now correctly returns a
Berker Peksag [Wed, 9 Sep 2015 20:39:45 +0000 (23:39 +0300)]
Issue #24857: Comparing call_args to a long sequence now correctly returns a
boolean result instead of raising an exception.

Patch by A Kaptur.

9 years agoIssue #24857: Comparing call_args to a long sequence now correctly returns a
Berker Peksag [Wed, 9 Sep 2015 20:35:25 +0000 (23:35 +0300)]
Issue #24857: Comparing call_args to a long sequence now correctly returns a
boolean result instead of raising an exception.

Patch by A Kaptur.

9 years agotest_time: rewrite PyTime API rounding tests
Victor Stinner [Wed, 9 Sep 2015 20:32:48 +0000 (22:32 +0200)]
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().

9 years agopytime: add _PyTime_Round() helper to factorize code
Victor Stinner [Wed, 9 Sep 2015 20:28:58 +0000 (22:28 +0200)]
pytime: add _PyTime_Round() helper to factorize code

9 years agoMake _PyTime_RoundHalfEven() private again
Victor Stinner [Wed, 9 Sep 2015 20:28:09 +0000 (22:28 +0200)]
Make _PyTime_RoundHalfEven() private again

9 years agoIssue #24857: Comparing call_args to a long sequence now correctly returns a
Berker Peksag [Wed, 9 Sep 2015 20:40:11 +0000 (23:40 +0300)]
Issue #24857: Comparing call_args to a long sequence now correctly returns a
boolean result instead of raising an exception.

Patch by A Kaptur.

9 years agoUpdate typing docs based on a patch by Daniel Andrade Groppe.
Guido van Rossum [Wed, 9 Sep 2015 19:01:36 +0000 (12:01 -0700)]
Update typing docs based on a patch by Daniel Andrade Groppe.

9 years agoUpdate typing docs based on a patch by Ivan Levkivskyi (but much rewritten by me).
Guido van Rossum [Wed, 9 Sep 2015 18:44:39 +0000 (11:44 -0700)]
Update typing docs based on a patch by Ivan Levkivskyi (but much rewritten by me).

9 years agoMerge typing docs cleanup diff by Zach Ware from default back into 350 branch.
Guido van Rossum [Wed, 9 Sep 2015 18:21:18 +0000 (11:21 -0700)]
Merge typing docs cleanup diff by Zach Ware from default back into 350 branch.

9 years agoMerge 3.5
Yury Selivanov [Wed, 9 Sep 2015 17:50:12 +0000 (13:50 -0400)]
Merge 3.5

9 years agowhatsnew/3.5: Merge argparse entries
Yury Selivanov [Wed, 9 Sep 2015 17:49:29 +0000 (13:49 -0400)]
whatsnew/3.5: Merge argparse entries

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

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

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

9 years agowhatsnew/3.5: First pass over NEWS is done.
Yury Selivanov [Wed, 9 Sep 2015 16:23:01 +0000 (12:23 -0400)]
whatsnew/3.5: First pass over NEWS is done.

9 years agoFix versionchanged directive in datetime.rst
Berker Peksag [Wed, 9 Sep 2015 15:32:50 +0000 (18:32 +0300)]
Fix versionchanged directive in datetime.rst

9 years agoMerge from 3.5.
Larry Hastings [Wed, 9 Sep 2015 14:00:54 +0000 (07:00 -0700)]
Merge from 3.5.

9 years agoWhitespace fixes to make the commit hook on hg.python.org happy.
Larry Hastings [Wed, 9 Sep 2015 13:54:57 +0000 (06:54 -0700)]
Whitespace fixes to make the commit hook on hg.python.org happy.

9 years agoMerge Python 3.5.0rc4 back to hg.python.org.
Larry Hastings [Wed, 9 Sep 2015 13:52:38 +0000 (06:52 -0700)]
Merge Python 3.5.0rc4 back to hg.python.org.

9 years agoPost-release update for Python 3.5.0rc4.
Larry Hastings [Wed, 9 Sep 2015 13:45:19 +0000 (06:45 -0700)]
Post-release update for Python 3.5.0rc4.

9 years agoMerge 3.5
Yury Selivanov [Wed, 9 Sep 2015 13:32:17 +0000 (09:32 -0400)]
Merge 3.5

9 years agodocs.compileall: Fix markup (rendering was off, noticed by Berker Peksag)
Yury Selivanov [Wed, 9 Sep 2015 13:32:07 +0000 (09:32 -0400)]
docs.compileall: Fix markup (rendering was off, noticed by Berker Peksag)

9 years agoMerge 3.5
Yury Selivanov [Wed, 9 Sep 2015 13:27:46 +0000 (09:27 -0400)]
Merge 3.5

9 years agowhatsnew/3.5: Fix nits per Berker Peksag suggestion
Yury Selivanov [Wed, 9 Sep 2015 13:27:29 +0000 (09:27 -0400)]
whatsnew/3.5: Fix nits per Berker Peksag suggestion

9 years agoAdded tag v3.5.0rc4 for changeset 2d033fedfa7f
Larry Hastings [Wed, 9 Sep 2015 06:58:21 +0000 (23:58 -0700)]
Added tag v3.5.0rc4 for changeset 2d033fedfa7f

9 years agoVersion bump for Python 3.5.0rc4. v3.5.0rc4
Larry Hastings [Wed, 9 Sep 2015 06:58:10 +0000 (23:58 -0700)]
Version bump for Python 3.5.0rc4.

9 years agoIssue #24984: Merge 3.5 into 3.6
Martin Panter [Wed, 9 Sep 2015 06:50:07 +0000 (06:50 +0000)]
Issue #24984: Merge 3.5 into 3.6

9 years agoIssue #24984: Merge 3.4 into 3.5
Martin Panter [Wed, 9 Sep 2015 06:48:55 +0000 (06:48 +0000)]
Issue #24984: Merge 3.4 into 3.5

9 years agoIssue #24984: Document AF_BLUETOOTH socket address formats
Martin Panter [Wed, 9 Sep 2015 06:47:58 +0000 (06:47 +0000)]
Issue #24984: Document AF_BLUETOOTH socket address formats

Patch from Tim Tisdall.

9 years agoMerged in stevedower/cpython350 (pull request #23)
Larry Hastings [Wed, 9 Sep 2015 06:45:23 +0000 (23:45 -0700)]
Merged in stevedower/cpython350 (pull request #23)

Moves distutils test import within skippable class.

9 years agoMoves distutils test import within skippable class.
Steve Dower [Wed, 9 Sep 2015 06:42:51 +0000 (23:42 -0700)]
Moves distutils test import within skippable class.

9 years agoMerge 3.5 into 3.6
Martin Panter [Wed, 9 Sep 2015 06:28:08 +0000 (06:28 +0000)]
Merge 3.5 into 3.6

9 years agoMerge 3.4 into 3.5
Martin Panter [Wed, 9 Sep 2015 06:27:43 +0000 (06:27 +0000)]
Merge 3.4 into 3.5

9 years agoMerge with 3.5
Terry Jan Reedy [Wed, 9 Sep 2015 06:10:47 +0000 (02:10 -0400)]
Merge with 3.5

9 years agoMerge with 3.4
Terry Jan Reedy [Wed, 9 Sep 2015 06:10:35 +0000 (02:10 -0400)]
Merge with 3.4

9 years agoIssue 24199: Deprecate idlelib.idlever with a warning on import.
Terry Jan Reedy [Wed, 9 Sep 2015 06:10:17 +0000 (02:10 -0400)]
Issue 24199: Deprecate idlelib.idlever with a warning on import.

9 years agomerge dangling 3.5 into default
Terry Jan Reedy [Wed, 9 Sep 2015 06:02:25 +0000 (02:02 -0400)]
merge dangling 3.5 into default

9 years agoMerge 3.5.0rc3 revisions back into current 3.5.0 head.
Larry Hastings [Wed, 9 Sep 2015 05:45:37 +0000 (22:45 -0700)]
Merge 3.5.0rc3 revisions back into current 3.5.0 head.

9 years agoos.sendfile(headers=None, trailers=None) arguments are not actually accepted
Martin Panter [Wed, 9 Sep 2015 05:29:24 +0000 (05:29 +0000)]
os.sendfile(headers=None, trailers=None) arguments are not actually accepted

Needs to be tested on a BSD.

9 years agoIssue #25027: Reverts partial-static build options and adds vcruntime140.dll to Windo...
Steve Dower [Wed, 9 Sep 2015 04:39:01 +0000 (21:39 -0700)]
Issue #25027: Reverts partial-static build options and adds vcruntime140.dll to Windows installation.

9 years agoAdds Mics/NEWS entry for issue #25029.
Steve Dower [Wed, 9 Sep 2015 04:27:47 +0000 (21:27 -0700)]
Adds Mics/NEWS entry for issue #25029.

9 years agoMerge fix for #25029
Steve Dower [Wed, 9 Sep 2015 04:26:59 +0000 (21:26 -0700)]
Merge fix for #25029

9 years agoAdded Misc/NEWS section for Python 3.5.0 final.
Larry Hastings [Wed, 9 Sep 2015 04:19:48 +0000 (21:19 -0700)]
Added Misc/NEWS section for Python 3.5.0 final.

9 years agoMerge 3.6 branches
Martin Panter [Wed, 9 Sep 2015 03:46:24 +0000 (03:46 +0000)]
Merge 3.6 branches

9 years agoMerge 3.5 branches
Martin Panter [Wed, 9 Sep 2015 03:45:58 +0000 (03:45 +0000)]
Merge 3.5 branches

9 years agoMerge 3.5
Yury Selivanov [Wed, 9 Sep 2015 03:41:22 +0000 (23:41 -0400)]
Merge 3.5

9 years agowhatsnew/3.5: Reformat PEP 475 to render in less space; add "ugly" ex in 465
Yury Selivanov [Wed, 9 Sep 2015 03:40:46 +0000 (23:40 -0400)]
whatsnew/3.5: Reformat PEP 475 to render in less space; add "ugly" ex in 465

9 years agoMerge 3.5
Yury Selivanov [Wed, 9 Sep 2015 03:28:17 +0000 (23:28 -0400)]
Merge 3.5

9 years agowhatsnew/3.5: Better formatting; add traceback to significantly improved stdlib
Yury Selivanov [Wed, 9 Sep 2015 03:28:06 +0000 (23:28 -0400)]
whatsnew/3.5: Better formatting; add traceback to significantly improved stdlib

9 years agoIssue #23738: Merge 3.5 into 3.6
Martin Panter [Wed, 9 Sep 2015 03:01:17 +0000 (03:01 +0000)]
Issue #23738: Merge 3.5 into 3.6

9 years agoMerge 3.5 branches
Martin Panter [Wed, 9 Sep 2015 02:51:53 +0000 (02:51 +0000)]
Merge 3.5 branches

9 years agoMerge 3.5
Yury Selivanov [Wed, 9 Sep 2015 02:40:45 +0000 (22:40 -0400)]
Merge 3.5

9 years agowhatsnew/3.5: Fix library news till Py3.5a1. Update other docs.
Yury Selivanov [Wed, 9 Sep 2015 02:40:30 +0000 (22:40 -0400)]
whatsnew/3.5: Fix library news till Py3.5a1. Update other docs.

9 years agoIssue #25029: MemoryError in test_strptime
Steve Dower [Wed, 9 Sep 2015 02:12:51 +0000 (19:12 -0700)]
Issue #25029: MemoryError in test_strptime

9 years agoIssue #23738: Merge 3.4 into 3.5
Martin Panter [Wed, 9 Sep 2015 01:56:53 +0000 (01:56 +0000)]
Issue #23738: Merge 3.4 into 3.5

9 years agoIssue #23738: Document and test actual keyword parameter names
Martin Panter [Wed, 9 Sep 2015 01:01:13 +0000 (01:01 +0000)]
Issue #23738: Document and test actual keyword parameter names

Also fix signature because os.utime(..., ns=None) is not allowed.

9 years agocleanup datetime code
Victor Stinner [Tue, 8 Sep 2015 23:09:21 +0000 (01:09 +0200)]
cleanup datetime code

remove scories of round half up code and debug code.

9 years agoIssue #23517: fromtimestamp() and utcfromtimestamp() methods of
Victor Stinner [Tue, 8 Sep 2015 23:02:23 +0000 (01:02 +0200)]
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.

9 years agoRevert change 0eb8c182131e:
Victor Stinner [Tue, 8 Sep 2015 21:58:54 +0000 (23:58 +0200)]
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.

9 years agoMerge 3.5
Yury Selivanov [Tue, 8 Sep 2015 19:33:33 +0000 (15:33 -0400)]
Merge 3.5

9 years agodocs/whatsnew/3.5: Update peps section
Yury Selivanov [Tue, 8 Sep 2015 19:33:15 +0000 (15:33 -0400)]
docs/whatsnew/3.5: Update peps section

Patch by Elvis Pranskevichus.

9 years agoFixed tests for shutil.make_archive() with relative base_name in the case when
Serhiy Storchaka [Tue, 8 Sep 2015 07:00:43 +0000 (10:00 +0300)]
Fixed tests for shutil.make_archive() with relative base_name in the case when
the path of the directory for temporary files contains symlinks.

9 years agoFixed tests for shutil.make_archive() with relative base_name in the case when
Serhiy Storchaka [Tue, 8 Sep 2015 07:00:22 +0000 (10:00 +0300)]
Fixed tests for shutil.make_archive() with relative base_name in the case when
the path of the directory for temporary files contains symlinks.

9 years agoFixed tests for shutil.make_archive() with relative base_name in the case when
Serhiy Storchaka [Tue, 8 Sep 2015 06:59:02 +0000 (09:59 +0300)]
Fixed tests for shutil.make_archive() with relative base_name in the case when
the path of the directory for temporary files contains symlinks.

9 years agoUpdate PCbuild/readme.txt (merge from 3.5)
Zachary Ware [Tue, 8 Sep 2015 06:12:56 +0000 (01:12 -0500)]
Update PCbuild/readme.txt (merge from 3.5)

9 years agoUpdate PCbuild/readme.txt
Zachary Ware [Tue, 8 Sep 2015 06:12:00 +0000 (01:12 -0500)]
Update PCbuild/readme.txt

9 years agomerge
Raymond Hettinger [Tue, 8 Sep 2015 04:37:17 +0000 (00:37 -0400)]
merge

9 years agomerge
Raymond Hettinger [Tue, 8 Sep 2015 04:36:56 +0000 (00:36 -0400)]
merge

9 years agoFix whitespace in comment.
Raymond Hettinger [Tue, 8 Sep 2015 04:36:29 +0000 (00:36 -0400)]
Fix whitespace in comment.

9 years agoCloses #25010: Merge with 3.5
Zachary Ware [Tue, 8 Sep 2015 04:32:10 +0000 (23:32 -0500)]
Closes #25010: Merge with 3.5

9 years agoIssue #25010: Merge with 3.4
Zachary Ware [Tue, 8 Sep 2015 04:31:49 +0000 (23:31 -0500)]
Issue #25010: Merge with 3.4

9 years agoIssue #25010: Fix path for .pyd example project.
Zachary Ware [Tue, 8 Sep 2015 04:30:46 +0000 (23:30 -0500)]
Issue #25010: Fix path for .pyd example project.

Patch by Shaun Walbridge

9 years agoIssue #24982: shutil.make_archive() with the "zip" format now adds entries
Serhiy Storchaka [Tue, 8 Sep 2015 02:53:42 +0000 (05:53 +0300)]
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.

9 years agoIssue #24982: shutil.make_archive() with the "zip" format now adds entries
Serhiy Storchaka [Tue, 8 Sep 2015 02:51:00 +0000 (05:51 +0300)]
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.

9 years agoIssue #24982: shutil.make_archive() with the "zip" format now adds entries
Serhiy Storchaka [Tue, 8 Sep 2015 02:47:23 +0000 (05:47 +0300)]
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.

9 years agoIssue #22241: Fix a compiler waring
Victor Stinner [Mon, 7 Sep 2015 22:12:49 +0000 (00:12 +0200)]
Issue #22241: Fix a compiler waring

9 years agoRaise more correct exception on overflow in setting buffer_size attribute of
Serhiy Storchaka [Mon, 7 Sep 2015 19:54:33 +0000 (22:54 +0300)]
Raise more correct exception on overflow in setting buffer_size attribute of
expat parser.

9 years agoRaise more correct exception on overflow in setting buffer_size attribute of
Serhiy Storchaka [Mon, 7 Sep 2015 19:54:08 +0000 (22:54 +0300)]
Raise more correct exception on overflow in setting buffer_size attribute of
expat parser.

9 years agoRaise more correct exception on overflow in setting buffer_size attribute of
Serhiy Storchaka [Mon, 7 Sep 2015 19:51:56 +0000 (22:51 +0300)]
Raise more correct exception on overflow in setting buffer_size attribute of
expat parser.

9 years agoIssue #25019: Fixed a crash caused by setting non-string key of expat parser.
Serhiy Storchaka [Mon, 7 Sep 2015 19:41:04 +0000 (22:41 +0300)]
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.

9 years agoIssue #25019: Fixed a crash caused by setting non-string key of expat parser.
Serhiy Storchaka [Mon, 7 Sep 2015 19:38:34 +0000 (22:38 +0300)]
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.

9 years agoIssue #25019: Fixed a crash caused by setting non-string key of expat parser.
Serhiy Storchaka [Mon, 7 Sep 2015 19:37:02 +0000 (22:37 +0300)]
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.

9 years agoIssue #25018: Fixed testing shutil.make_archive() with relative base_name on
Serhiy Storchaka [Mon, 7 Sep 2015 16:59:38 +0000 (19:59 +0300)]
Issue #25018: Fixed testing shutil.make_archive() with relative base_name on
Windows.  The test now makes sense on non-Windows.  Added similar test for
zip format.

9 years agoIssue #25018: Fixed testing shutil.make_archive() with relative base_name on
Serhiy Storchaka [Mon, 7 Sep 2015 16:59:24 +0000 (19:59 +0300)]
Issue #25018: Fixed testing shutil.make_archive() with relative base_name on
Windows.  The test now makes sense on non-Windows.  Added similar test for
zip format.

9 years agoIssue #25018: Fixed testing shutil.make_archive() with relative base_name on
Serhiy Storchaka [Mon, 7 Sep 2015 16:58:23 +0000 (19:58 +0300)]
Issue #25018: Fixed testing shutil.make_archive() with relative base_name on
Windows.  The test now makes sense on non-Windows.  Added similar test for
zip format.

9 years agoMerge 3.5.
Serhiy Storchaka [Mon, 7 Sep 2015 16:52:12 +0000 (19:52 +0300)]
Merge 3.5.

9 years agoMerge heads.
Larry Hastings [Mon, 7 Sep 2015 12:16:38 +0000 (05:16 -0700)]
Merge heads.

9 years agoAdded tag v3.5.0rc3 for changeset 66ed52375df8
Larry Hastings [Mon, 7 Sep 2015 12:12:28 +0000 (05:12 -0700)]
Added tag v3.5.0rc3 for changeset 66ed52375df8

9 years agoVersion bump for Python 3.5.0rc3. v3.5.0rc3
Larry Hastings [Mon, 7 Sep 2015 12:12:05 +0000 (05:12 -0700)]
Version bump for Python 3.5.0rc3.

9 years agoUpdated topics (again) for Python 3.5.0rc3 (second try).
Larry Hastings [Mon, 7 Sep 2015 12:10:55 +0000 (05:10 -0700)]
Updated topics (again) for Python 3.5.0rc3 (second try).

9 years agoExplicitly test archive name in shutil.make_archive() tests to expose failure
Serhiy Storchaka [Mon, 7 Sep 2015 10:57:21 +0000 (13:57 +0300)]
Explicitly test archive name in shutil.make_archive() tests to expose failure
details in issue25018.

9 years agoExplicitly test archive name in shutil.make_archive() tests to expose failure
Serhiy Storchaka [Mon, 7 Sep 2015 10:56:49 +0000 (13:56 +0300)]
Explicitly test archive name in shutil.make_archive() tests to expose failure
details in issue25018.