Commit graph

76552 commits

Author SHA1 Message Date
Brian Curtin
33e05e7905 Fix #16759. Convert DWORD registry values using unsigned long.
When converting REG_DWORD registry values into Python, the conversion
needs to be made from an *unsigned* long (k instead of i) to match the
DWORD type.
2012-12-27 14:37:06 -06:00
Brian Curtin
9640ead585 another merge 2012-12-27 14:14:42 -06:00
Brian Curtin
9eac6b3848 Merge 2012-12-27 14:12:43 -06:00
Brian Curtin
4620c13f3f merge 2012-12-27 14:11:38 -06:00
Brian Curtin
f8704fb24e Merge 3.3 2012-12-27 14:06:38 -06:00
Brian Curtin
e6bfa2911a Merge 3.2 2012-12-27 14:06:06 -06:00
Brian Curtin
172e42295f Fix #16759. Convert DWORD registry values using PyLong_FromUnsignedLong.
When converting REG_DWORD registry values into Python ints, the conversion
needs to be made from an *unsigned* long to match the DWORD type.
2012-12-27 14:04:42 -06:00
Serhiy Storchaka
a0b7e9c74c Null merge. 2012-12-27 22:00:12 +02:00
Serhiy Storchaka
ffa1795461 Issue #16504: Catch SyntaxErrors raised by tokenizer in IDLE.
Patch by Roger Serwy.
2012-12-27 21:54:19 +02:00
Serhiy Storchaka
64df4a1c45 Issue #16504: Catch SyntaxErrors raised by tokenizer in IDLE.
Patch by Roger Serwy.
2012-12-27 21:53:06 +02:00
Serhiy Storchaka
07e0e06f8a Issue #16504: Catch SyntaxErrors raised by tokenizer in IDLE.
Patch by Roger Serwy.
2012-12-27 21:38:04 +02:00
Serhiy Storchaka
61006a2113 Issue #16504: Catch SyntaxErrors raised by tokenizer in IDLE. 2012-12-27 21:34:23 +02:00
Serhiy Storchaka
464a218e77 Issue #16682: Replace "Python string" to "bytes object" in audioop documentation. 2012-12-27 20:47:30 +02:00
Serhiy Storchaka
e261055eaf Issue #16682: Replace "Python string" to "bytes object" in audioop documentation. 2012-12-27 20:46:19 +02:00
Serhiy Storchaka
c8bd74ddfd Issue #16682: Replace "Python string" to "bytes object" in audioop documentation. 2012-12-27 20:43:36 +02:00
Brian Curtin
0e091b0365 Fix #14420. Check for PyLong as well as PyInt when converting in Py2Reg.
This fixes a ValueError seen in winreg.SetValueEx when passed long
winreg.REG_DWORD values that should be supported by the underlying API.
2012-12-27 12:28:51 -06:00
Brian Curtin
4482b01d23 Merge 3.3 2012-12-27 10:15:54 -06:00
Brian Curtin
62cf69ec7c Merge 3.2 2012-12-27 10:14:30 -06:00
Brian Curtin
12706f2082 Fix #14420. Use PyLong_AsUnsignedLong to support the full range of DWORD.
This fixes an OverflowError seen in winreg.SetValueEx when passed
winreg.REG_DWORD values that should be supported by the underlying API.
2012-12-27 10:12:45 -06:00
Hynek Schlawack
4a5a4c2808 #16618: Add more glob regression tests
Mostly about symlinks and str/unicode behavior.

Patch by Serhiy Storchaka.
2012-12-27 10:24:21 +01:00
Hynek Schlawack
6e5c8f992a #16618: Make glob.glob match consistently across strings and bytes
Fixes handling of leading dots.

Patch by Serhiy Storchaka.
2012-12-27 10:20:38 +01:00
Hynek Schlawack
6f52027168 #16618: Make glob.glob match consistently across strings and bytes
Fixes handling of leading dots.

Patch by Serhiy Storchaka.
2012-12-27 10:15:53 +01:00
Hynek Schlawack
e26568f812 #16618: Make glob.glob match consistently across strings and bytes
Fixes handling of leading dots.

Patch by Serhiy Storchaka.
2012-12-27 10:10:11 +01:00
Benjamin Peterson
513762fe9c use more specific type 2012-12-26 16:43:33 -06:00
Andrew Svetlov
0c8ee7fc8b fix test for subprocess (#16644) 2012-12-26 23:36:17 +02:00
Andrew Svetlov
b172697cd8 fix test for subprocess (#16644) 2012-12-26 23:34:54 +02:00
Andrew Svetlov
57a1233110 fix test for subprocess (#16644) 2012-12-26 23:31:45 +02:00
Andrew Svetlov
4de2924dab Fix compilation error for #15422 2012-12-26 23:08:54 +02:00
Andrew Svetlov
192b10b371 Revert back PyCFunction_New macro. Keep PyCFunction_NewEx usage in python core modules (#15422) 2012-12-26 22:52:04 +02:00
Jesus Cea
cdf680f54c MERGE: Closes #16789: :meth:quit links to constants instead of own module 2012-12-26 16:48:26 +01:00
Jesus Cea
aa24468c9b MERGE: Closes #16789: :meth:quit links to constants instead of own module 2012-12-26 16:47:40 +01:00
Jesus Cea
c73f863a8d Closes #16789: :meth:quit links to constants instead of own module 2012-12-26 16:47:03 +01:00
Jesus Cea
4947049b40 Closes #16789: :meth:quit links to constants instead of own module 2012-12-26 16:46:04 +01:00
Kristján Valur Jónsson
cacb400345 Merge with 3.3
Issue #14574: Ignore socket errors raised when flushing a connection on close.
2012-12-26 15:15:17 +00:00
Kristján Valur Jónsson
c8e7e2bb76 Merge with 3.2 :
Issue #14574: Ignore socket errors raised when flushing a connection on close.
2012-12-26 15:13:29 +00:00
Brian Curtin
ae57cec791 Fix #16788. Add samestat to Lib/ntpath.py 2012-12-26 08:22:00 -06:00
Brian Curtin
e701ec5d3f Add tests for Issue #10646.
This issue is now fixed due to changes in Issue #11939, so I've refactored
the tests to cover the hard link case. There are no code changes here.
2012-12-26 07:36:16 -06:00
Brian Curtin
501c8f915f Add NEWS entry for fixing #11939 2012-12-26 07:11:14 -06:00
Brian Curtin
490b32a397 Fix #11939. Set st_dev attribute on Windows to simplify os.path.samefile.
By setting the st_dev attribute, we can then remove some Windows-specific
code and move os.path.samefile/sameopenfile/samestat to Lib/genericpath.py
so all platforms share the same implementation.
2012-12-26 07:03:03 -06:00
Senthil Kumaran
2bf61abe02 Issue #16702: Skip proxies for localhost in urllib2_localnet tests 2012-12-26 01:47:09 -08:00
Senthil Kumaran
00679a7ee0 Issue #16702: Skip proxies for localhost in urllib2_localnet tests 2012-12-26 01:46:39 -08:00
Senthil Kumaran
303eb478f2 Issue #16702: Skip proxies for localhost in urllib2_localnet tests 2012-12-26 01:45:58 -08:00
Senthil Kumaran
2f01e239cb Issue #16702: Skip proxies for localhost in urllib2_localnet tests 2012-12-26 01:45:22 -08:00
Gregory P. Smith
a689e524e7 Test for issue16772 and redoes the previous fix to accept __index__-aware
objects as the base by using PyNumber_AsSsize_t similar to round().
2012-12-25 22:38:32 -08:00
Chris Jerdonek
83a2aa70af Null merge. 2012-12-25 15:28:45 -08:00
Chris Jerdonek
3416769b60 Null merge. 2012-12-25 15:27:56 -08:00
Chris Jerdonek
b7c2386a3f Fix Sphinx warning (missing "setting-envvars" reference).
This fixes the following warning when building the docs (probably from
the commit for issue #14901):

"/Doc/faq/windows.rst:138: WARNING: undefined label: setting-envvars (if the
link has no caption the label must precede a section header)"
2012-12-25 15:26:24 -08:00
Chris Jerdonek
c475278a94 Merge from 3.3: add links and index entries for "argument" and "parameter."
This adds to the work done for issue #15990 (i.e. f44b8d69e5fc and the
commits referenced there).
2012-12-25 14:59:46 -08:00
Chris Jerdonek
32bbc1c396 Merge from 3.2: add links and index entries for "argument" and "parameter."
This adds to the work done for issue #15990 (i.e. f44b8d69e5fc and the
commits referenced there).
2012-12-25 14:57:54 -08:00
Chris Jerdonek
b43099464a Add additional links and index entries for "argument" and "parameter".
This adds to the work done for issue #15990 (i.e. f44b8d69e5fc and the
commits referenced there).
2012-12-25 14:54:44 -08:00