Stefan Krah
dbcf103be0
Issue #15882 : Change _decimal to accept any coefficient tuple when
...
constructing infinities. This is done for backwards compatibility
with decimal.py: Infinity coefficients are undefined in _decimal
(in accordance with the specification).
2012-09-10 19:34:58 +02:00
Christian Heimes
6c4b095334
Updates NEWS for issue #15895
2012-09-11 19:28:42 +02:00
Jesus Cea
1b3f3b0316
Closes #15676 : mmap: add empty file check prior to offset check
2012-09-10 01:23:05 +02:00
Alexander Belopolsky
b21d48dabf
merge
2012-09-09 19:01:20 -04:00
Jesus Cea
941bfcc537
Closes #15676 : mmap: add empty file check prior to offset check
2012-09-10 00:27:55 +02:00
Alexander Belopolsky
7330da4297
Issue #15881 : Added NEWS entry and proper credit.
2012-09-09 14:11:45 -04:00
Georg Brandl
5497295917
Merge in changes from 3.3.0rc2 release clone.
2012-09-09 11:19:17 +02:00
Georg Brandl
05823f7d67
Post-release updates for 3.3.0rc2.
2012-09-09 11:16:41 +02:00
Ned Deily
4725b13ab3
Issue #15822 : Fix installation of lib2to3 grammar pickles to ensure
...
they are created in the install locations and with the proper timestamp.
(Solution suggested by MvL)
2012-09-08 19:04:47 -07:00
Ned Deily
47bcfff26b
Issue #15822 : Fix installation of lib2to3 grammar pickles to ensure
...
they are created in the install locations and with the proper timestamp.
(Solution suggested by MvL)
2012-09-08 18:50:56 -07:00
Antoine Pitrou
8c195afcac
Issue #15340 : Fix importing the random module when /dev/urandom cannot be opened.
...
This was a regression caused by the hash randomization patch.
2012-09-07 23:51:22 +02:00
Antoine Pitrou
7ff1822ec7
Issue #15340 : Fix importing the random module when /dev/urandom cannot be opened.
...
This was a regression caused by the hash randomization patch.
2012-09-07 23:49:07 +02:00
Ross Lagerwall
2dabaf63cf
Issue #15876 : Fix a refleak in the curses module
...
The refleak occurred when assigning to window.encoding.
2012-09-07 08:34:23 +02:00
Antoine Pitrou
5b4faae307
Issue #13992 : The trashcan mechanism is now thread-safe. This eliminates
...
sporadic crashes in multi-thread programs when several long deallocator
chains ran concurrently and involved subclasses of built-in container
types.
Note that the trashcan functions are part of the stable ABI, therefore
they have to be kept around for binary compatibility of extensions.
2012-09-06 01:17:42 +02:00
Antoine Pitrou
56cd62c04a
Issue #13992 : The trashcan mechanism is now thread-safe. This eliminates
...
sporadic crashes in multi-thread programs when several long deallocator
chains ran concurrently and involved subclasses of built-in container
types.
Because of this change, a couple extension modules compiled for 3.2.4
(those which use the trashcan mechanism, despite it being undocumented)
will not be loadable by 3.2.3 and earlier. However, extension modules
compiled for 3.2.3 and earlier will be loadable by 3.2.4.
2012-09-06 00:59:49 +02:00
Antoine Pitrou
11946fbe80
Issue #15841 : The readable(), writable() and seekable() methods of BytesIO
...
and StringIO objects now raise ValueError when the object has been closed.
Patch by Alessandro Moura.
2012-09-05 20:13:48 +02:00
Antoine Pitrou
1d857453b7
Issue #15841 : The readable(), writable() and seekable() methods of BytesIO
...
and StringIO objects now raise ValueError when the object has been closed.
Patch by Alessandro Moura.
2012-09-05 20:11:49 +02:00
R David Murray
3561901cd9
#15557,#15447,#15509: webbrowser test suite added.
...
Initial patch by Anton Barkovsky, refined a bit by me to further subdivide the
test methods. Provides tests for the previous two bug fix commits.
2012-09-03 12:52:08 -04:00
R David Murray
02ca144b92
#15447 : Use subprocess.DEVNULL in webbrowser, instead of opening
...
This eliminates a ResourceWarning, since before webbrowser was
explicitly opening os.devnull and then leaving it open. Tests
to follow.
Patch by Anton Barkovsky.
2012-09-03 12:44:29 -04:00
R David Murray
d674a770e9
Merge #15509 : If %action substitution produces a null string, drop it.
...
Patch by Anton Barkovsky, comment addition by me.
This shows up as a bug in 3.3 because the definition for Chrome
produces such an empty string. Tests will follow.
2012-09-03 12:37:59 -04:00
R David Murray
94dd7cb0c7
#15509 : If %action substitution produces a null string, drop it.
...
Patch by Anton Barkovsky, comment addition by me.
This showed up as a bug in 3.3 because the definition for Chrome
produced such an empty string. This fix is tested in 3.3+;
backporting the new test suite is more trouble than it is worth.
2012-09-03 12:30:12 -04:00
Nick Coghlan
0b164c04ba
Issue #15814 : Add NEWS entry regarding intended memoryview hashing restrictions
2012-09-03 21:46:33 +10:00
Nick Coghlan
f147d7345a
Issue #15814 : Add NEWS entry regarding intended memoryview hashing restrictions
2012-09-03 21:46:33 +10:00
Benjamin Peterson
c7f447c89f
merge 3.2 ( #15846 )
2012-09-02 14:24:44 -04:00
Benjamin Peterson
2e2c903700
prevert ast errors from being normalized before ast_error_finish is called ( closes #15846 )
2012-09-02 14:23:15 -04:00
Georg Brandl
02f66cbe87
Bump to 3.3.0rc2.
2012-09-09 08:56:46 +02:00
Georg Brandl
070175df98
Fix NEWS entry location.
2012-09-09 08:31:16 +02:00
Ned Deily
24ec054ea1
Issue #15822 : Fix installation of lib2to3 grammar pickles to ensure
...
they are created in the install locations and with the proper timestamp.
(Solution suggested by MvL)
2012-09-08 19:04:47 -07:00
Antoine Pitrou
2b0218a259
Issue #13992 : The trashcan mechanism is now thread-safe. This eliminates
...
sporadic crashes in multi-thread programs when several long deallocator
chains ran concurrently and involved subclasses of built-in container
types.
Because of this change, a couple extension modules compiled for 3.2.4
(those which use the trashcan mechanism, despite it being undocumented)
will not be loadable by 3.2.3 and earlier. However, extension modules
compiled for 3.2.3 and earlier will be loadable by 3.2.4.
2012-09-06 00:59:49 +02:00
Georg Brandl
ef06595535
Changelog entry for 8c2e87aeb707.
2012-09-08 07:58:37 +02:00
Benjamin Peterson
6a42bd67d7
Make super() internal errors RuntimeError instead of SystemError ( closes #15839 )
2012-09-01 23:04:38 -04:00
Victor Stinner
9f16e44a47
Close #14223 : Fix window.addch(curses.ACS_HLINE)
...
Fix window.addch() of the curses module for special characters like
curses.ACS_HLINE: the Python function addch(int) and addch(bytes) is now
calling the C function waddch()/mvwaddch() (as it was done in Python 3.2),
instead of wadd_wch()/mvwadd_wch(). The Python function addch(str) is still
calling the C function wadd_wch()/mvwadd_wch() if the Python curses is linked
to libncursesw.
2012-09-01 15:00:34 +02:00
Petri Lehtinen
6f858a2eea
#15802 : Fix test logic in TestMaildir.test_create_tmp
2012-09-01 14:27:24 +03:00
Petri Lehtinen
1c371b255f
#15802 : Fix test logic in TestMaildir.test_create_tmp
2012-09-01 14:22:36 +03:00
R David Murray
64b0ef1509
Merge #12776,#11839: call argparse type function only once.
...
Before, the type function was called twice in the case where the default
was specified and the argument was given as well. This was especially
problematic for the FileType type, as a default file would always be
opened, even if a file argument was specified on the command line.
Patch by Arnaud Fontaine, with additional test by Mike Meyer.
2012-08-31 23:09:34 -04:00
R David Murray
6fb8fb17bf
#12776,#11839: call argparse type function only once.
...
Before, the type function was called twice in the case where the default
was specified and the argument was given as well. This was especially
problematic for the FileType type, as a default file would always be
opened, even if a file argument was specified on the command line.
Patch by Arnaud Fontaine, with additional test by Mike Meyer.
2012-08-31 22:45:20 -04:00
Nick Coghlan
5d0612411e
Issue #15828 : Restore support for C extension modules in imp.load_module()
2012-09-01 00:13:45 +10:00
Trent Nelson
e60ee2985c
Issue #15819 : Fix out-of-tree builds from a readonly source.
2012-08-30 14:52:38 +00:00
Trent Nelson
a45afcada3
Issue #15819 : Fix out-of-tree builds from a readonly source.
2012-08-30 14:32:02 +00:00
Stefan Krah
af3f3a7f00
Closes #10650 : Deprecate the watchexp parameter of Decimal.quantize().
2012-08-30 12:33:55 +02:00
Stefan Krah
0f8cab20d9
Closes #10650 : Deprecate the watchexp parameter of Decimal.quantize().
2012-08-30 12:33:55 +02:00
Victor Stinner
eaaf9e9249
Close #14223 : Fix window.addch(curses.ACS_HLINE)
...
Fix window.addch() of the curses module for special characters like
curses.ACS_HLINE: the Python function addch(int) and addch(bytes) is now
calling the C function waddch()/mvwaddch() (as it was done in Python 3.2),
instead of wadd_wch()/mvwadd_wch(). The Python function addch(str) is still
calling the C function wadd_wch()/mvwadd_wch() if the Python curses is linked
to libncursesw.
2012-09-01 15:00:34 +02:00
Nick Coghlan
91b9f139bc
Issue #15828 : Restore support for C extension modules in imp.load_module()
2012-09-01 00:13:45 +10:00
Antoine Pitrou
380c55cc58
Issue #15340 : Fix importing the random module when /dev/urandom cannot be opened.
...
This was a regression caused by the hash randomization patch.
2012-09-07 23:49:07 +02:00
Benjamin Peterson
0c6a1e7548
move entry to the correct version
2012-08-29 08:04:11 -04:00
Victor Stinner
1d39cde50c
Issue #15785 : Modify window.get_wch() API of the curses module: return a
...
character for most keys, and an integer for special keys, instead of always
returning an integer. So it is now possible to distinguish special keys like
keypad keys.
2012-08-29 01:40:57 +02:00
Benjamin Peterson
4e07a8c9aa
merge heads
2012-08-28 18:02:18 -04:00
Benjamin Peterson
59043f96ea
merge 3.2 ( #15801 )
2012-08-28 18:01:45 -04:00
Benjamin Peterson
28a6cfaefc
use the stricter PyMapping_Check ( closes #15801 )
2012-08-28 17:55:35 -04:00
Richard Oudkerk
ea62bd50a3
Issue #15784 : Modify OSError.__str__() to better distinguish between
...
errno error numbers and Windows error numbers.
2012-08-28 19:33:26 +01:00
Petri Lehtinen
a0578e94a4
#11964 : Document a change in v3.2 to the json indent parameter
2012-08-28 12:34:09 +03:00
Petri Lehtinen
72b1426cfb
#11964 : Document a change in v3.2 to the json indent parameter
2012-08-28 07:08:44 +03:00
Antoine Pitrou
0398985920
Issue #15781 : Fix two small race conditions in import's module locking.
2012-08-28 00:24:52 +02:00
Richard Oudkerk
30147710e8
Issue #15784 : Modify OSError.__str__() to better distinguish between
...
errno error numbers and Windows error numbers.
2012-08-28 19:33:26 +01:00
Victor Stinner
ca2b64682e
Issue #15785 : Modify window.get_wch() API of the curses module: return a
...
character for most keys, and an integer for special keys, instead of always
returning an integer. So it is now possible to distinguish special keys like
keypad keys.
2012-08-29 01:40:57 +02:00
Antoine Pitrou
4f0338cab7
Issue #15781 : Fix two small race conditions in import's module locking.
2012-08-28 00:24:52 +02:00
Georg Brandl
04427a077f
Merge in changes from 3.3.0 release clone.
2012-08-25 21:33:56 +02:00
Georg Brandl
3694401ad2
Post-release updates.
2012-08-25 21:33:08 +02:00
Andrew Svetlov
3b5b843224
Delete Misc/NEWS record for reverted #15776 .
2012-08-25 14:22:07 +03:00
Georg Brandl
4ab4ec258c
Bump to 3.3.0rc1.
2012-08-25 12:16:37 +02:00
Ronald Oussoren
cb460b920f
Fix issue 13370: Ensure that ctypes works on Mac OS X when Python is
...
compiled using the clang compiler
(merge from 3.2)
2012-08-25 11:24:00 +02:00
Ronald Oussoren
25437565f9
Fix issue 13370: Ensure that ctypes works on Mac OS X when Python is compiled using the clang compiler
2012-08-25 11:19:14 +02:00
Nick Coghlan
06e1ab0a6b
Close #15573 : use value-based memoryview comparisons (patch by Stefan Krah)
2012-08-25 17:59:50 +10:00
Brett Cannon
12c6bda4f0
Issue #15316 : Let exceptions raised during imports triggered by the
...
fromlist of __import__ propagate.
The problem previously was that if something listed in fromlist didn't
exist then that's okay. The fix for that was too broad in terms of
catching ImportError.
The trick with the solution to this issue is that the proper
refactoring of import thanks to importlib doesn't allow for a way to
distinguish (portably) between an ImportError because finders couldn't
find a loader, or a loader raised the exception. In Python 3.4 the
hope is to introduce a new exception (e.g. ModuleNotFound) to make it
clean to differentiate why ImportError was raised.
2012-08-24 18:25:59 -04:00
Mark Dickinson
e4204bcfb7
Issue #15544 : Fix Decimal.__float__ to work with payload-carrying NaNs.
2012-08-24 19:32:13 +01:00
Stefan Krah
029780be09
Issue #13072 : The array module's 'u' format code is now deprecated and
...
will be removed in Python 4.0.
2012-08-24 20:14:12 +02:00
Mark Dickinson
fc33d4ce0a
Issue #15544 : Fix Decimal.__float__ to work with payload-carrying NaNs.
2012-08-24 18:53:10 +01:00
Antoine Pitrou
cbf9d5f6cd
Issue #14674 : Add a discussion of the json module's standard compliance.
...
Patch by Chris Rebert.
2012-08-24 19:39:47 +02:00
Antoine Pitrou
331624b67d
Issue #14674 : Add a discussion of the json module's standard compliance.
...
Patch by Chris Rebert.
2012-08-24 19:37:23 +02:00
Brett Cannon
07c6e71689
Issue #15778 : Coerce ImportError.args to a string when it isn't
...
already one.
Patch by Dave Malcolm.
2012-08-24 13:05:09 -04:00
Andrew Svetlov
82649f3b87
Issue #15776 : Allow pyvenv to work in existing directory with --clean.
...
Patch by Vinay Sajip.
2012-08-24 19:00:15 +03:00
R David Murray
ad2a7d528a
Merge #15249 : Mangle From lines correctly when body contains invalid bytes.
...
Fix by Colin Su. Test by me, based on a test written by Petri Lehtinen.
2012-08-24 11:23:50 -04:00
R David Murray
638d40b433
#15249 : Mangle From lines correctly when body contains invalid bytes.
...
Fix by Colin Su. Test by me, based on a test written by Petri Lehtinen.
2012-08-24 11:14:13 -04:00
Martin v. Löwis
4784e0267e
Output lib files for PGO build into PGO directory.
2012-08-24 16:12:28 +02:00
Martin v. Löwis
5951ec0fdd
Pick up 32-bit launcher from PGO directory on 64-bit PGO build.
2012-08-24 16:06:10 +02:00
Martin v. Löwis
bddf7244f0
Drop PC\python_nt.h as it's not used.
...
Add input dependency on custom build step.
2012-08-24 15:47:53 +02:00
Martin v. Löwis
b4b92becf1
Issue #15511 : Drop explicit dependency on pythonxy.lib from amd64 configuration.
2012-08-24 15:21:24 +02:00
Martin v. Löwis
3234cc808c
Add missing PGI/PGO configurations for pywlauncher.
2012-08-24 15:06:50 +02:00
Ross Lagerwall
a4b070102a
Merge with 3.2
2012-08-24 13:32:14 +02:00
Ross Lagerwall
f2b34b8b96
Issue 15777: Fix a refleak in _posixsubprocess.
...
It was exposed by 03c98d05b140 and dbbf3ccf72e8.
2012-08-24 13:25:59 +02:00
Nick Coghlan
ffffa8e8b2
Close #2051 : Oops, transposed the digits in the issue number in the previous commit
2012-08-24 18:36:31 +10:00
Nick Coghlan
a508770e20
Close #2501 : Permission bits are once again correctly copied from the source file to the cached bytecode file. Test by Eric Snow.
2012-08-24 18:32:40 +10:00
Ned Deily
6fc81d7eec
Issue #15645 : Ensure 2to3 grammar pickles are properly installed.
...
(Patch by Ronald Oussoren)
2012-08-22 23:34:13 -07:00
Ned Deily
01d183732e
Issue #15645 : Ensure 2to3 grammar pickles are properly installed.
...
(Patch by Ronald Oussoren)
2012-08-22 23:27:26 -07:00
R David Murray
b8687df653
#665194 : Update email.utils.localtime to use astimezone, and fix bug.
...
The new code correctly handles historic changes in UTC offsets.
A test for this should follow.
Original patch by Alexander Belopolsky.
2012-08-22 21:34:00 -04:00
Ronald Oussoren
9bd9cd3fb9
Fix for issue 15716: interpreter could crash when PYTHONEXECUTABLE was set on Mac OS X.
...
This is due to an off-by-one error: the allocated buffer didn't have room for a NUL
character at the end of the mbstowcs result.
(merge with 3.2)
2012-08-22 14:40:35 +02:00
Ronald Oussoren
eb61f8b3a7
Fix for issue 15716: interpreter could crash when PYTHONEXECUTABLE was set on Mac OS X.
...
This is due to an off-by-one error: the allocated buffer didn't have room for a NUL
character at the end of the mbstowcs result.
2012-08-22 14:24:14 +02:00
Trent Nelson
75959cf247
Issue #15747 : skip chflags UF_IMMUTABLE tests if EOPNOTSUPP is raised.
...
This is necessary for ZFS systems, which don't support UF_IMMUTABLE.
(Note: this commit is a manual merge of 78699:019a2390b014 as both
_test_chflags_regular_file and test_lchflags_symlink differ between
3.2 and default.)
2012-08-21 23:59:31 +00:00
Trent Nelson
ee253ebf62
Issue #15747 : skip chflags UF_IMMUTABLE tests if EOPNOTSUPP is raised.
...
This is necessary for ZFS systems, which don't support UF_IMMUTABLE.
2012-08-21 23:41:43 +00:00
Trent Nelson
139cd4352f
Issue #15285 : Refactor connect timeout test in test_timeout.
2012-08-20 21:40:21 -04:00
Trent Nelson
514dbb03ba
Issue #15285 : Refactor connect timeout test in test_timeout.
2012-08-20 21:22:59 -04:00
Antoine Pitrou
9439f04b9a
Issue #14954 : Clarify the interaction of weak references and garbage collection.
...
Patch by Ethan Furman.
2012-08-21 00:07:07 +02:00
Senthil Kumaran
77ebfccd4d
Fix Issue 15743 - improve urllib tests by removing deprecated method usages. Patch by Jeff Knupp.
2012-08-20 13:43:59 -07:00
Petri Lehtinen
df9c945070
#15199 : Fix JavaScript's default MIME type to application/javascript
2012-08-20 21:30:03 +03:00
Petri Lehtinen
c6fdafcdf3
#15199 : Fix JavaScript's default MIME type to application/javascript
2012-08-20 21:28:58 +03:00
Antoine Pitrou
35503c9c14
Issue #15726 : Fix incorrect bounds checking in PyState_FindModule.
...
Patch by Robin Schreiber.
2012-08-20 19:31:52 +02:00
Antoine Pitrou
75506e8b7c
Issue #15726 : Fix incorrect bounds checking in PyState_FindModule.
...
Patch by Robin Schreiber.
2012-08-20 19:30:46 +02:00
Nick Coghlan
8bd24fe9ff
Issue #12643 : Respect sys.excepthook in code.InteractiveConsole
2012-08-20 23:02:28 +10:00
Nick Coghlan
bac9a53d00
Break up the 'someos' docs classification based on a more user-focused scheme, including creation of a separate 'Concurrent Execution' section
2012-08-20 18:05:46 +10:00
Nick Coghlan
273069cf7d
Close #4966 : revamp the sequence docs in order to better explain the state of modern Python
2012-08-20 17:14:07 +10:00