Benjamin Peterson
bd0df50fb6
get rid of ast_error_finish by passing the compiling struct to ast_error
2012-09-02 15:04:51 -04: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
Benjamin Peterson
6a42bd67d7
Make super() internal errors RuntimeError instead of SystemError ( closes #15839 )
2012-09-01 23:04:38 -04: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
Brett Cannon
f7d176efe9
Issue #15828 : Don't try to close a file if imp.find_module() doesn't
...
return one.
2012-08-31 11:31: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
Antoine Pitrou
2a021c80ce
Issue #15800 : fix the closing of input / output files when gzip is used as a script.
2012-08-30 00:30:14 +02:00
Antoine Pitrou
ecc4757b79
Issue #15800 : fix the closing of input / output files when gzip is used as a script.
2012-08-30 00:29:24 +02: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
Antoine Pitrou
5b9eccb383
Issue #15794 : Relax a test case due to the deadlock detection's conservativeness.
2012-08-28 20:10:18 +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
4ab4ec258c
Bump to 3.3.0rc1.
2012-08-25 12:16:37 +02:00
Georg Brandl
d183f0be0b
Update pydoc topics and suspicious markup file.
2012-08-25 12:14:59 +02:00
Georg Brandl
cc0274b90f
merge with 3.2
2012-08-25 10:12:47 +02:00
Georg Brandl
c8076dfa9d
Fix wrong way of adding Error information in shutil.copytree.
2012-08-25 10:11:57 +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
6f64796c22
Remove overeager test (don't depend on the sign of a nan; cf. issue #14521 )
2012-08-24 20:31:33 +01:00
Vinay Sajip
a6894ba3c9
Reverted change to venv initialisation.
2012-08-24 20:01:02 +01:00
Mark Dickinson
448f57762d
Remove incorrect lines (meant for cdecimal) from recently added Decimal tests.
2012-08-24 19:51:00 +01:00
Mark Dickinson
e4204bcfb7
Issue #15544 : Fix Decimal.__float__ to work with payload-carrying NaNs.
2012-08-24 19:32:13 +01:00
Mark Dickinson
fc33d4ce0a
Issue #15544 : Fix Decimal.__float__ to work with payload-carrying NaNs.
2012-08-24 18:53:10 +01:00
Brett Cannon
ba0a3edd26
Issue #2051 : Tweak last commit for this issue to pass in mode instead
...
of source path to set_data() and make the new argument private until
possible API changes can be discussed more thoroughly in Python 3.4.
2012-08-24 13:48:39 -04: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
Georg Brandl
491b1dc79e
Closes #9374 : merge with 3.2
2012-08-24 18:15:46 +02:00
Georg Brandl
a61b09f406
Closes #9374 : add back now-unused module attributes; removing them is a backward compatibility issue, since they have a public-seeming name.
2012-08-24 18:15:29 +02: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
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
Stefan Krah
66e63170d9
Issue #15770 : Check invalid arguments in test function. Patch by Victor Stinner.
2012-08-23 15:53:45 +02:00
Alexander Belopolsky
f9bd9141c5
Issue #665194 : Added a small optimization
2012-08-22 23:02:36 -04:00
Alexander Belopolsky
1f924d21d3
Added test for a bug fixed in issue #665194 .
2012-08-22 22:06:37 -04:00
R David Murray
097a1208bc
#665194 : fix variable name in exception code path.
...
It was correct in the original patch and I foobared it
when I restructured part of the code.
2012-08-22 21:52:31 -04: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
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
Ezio Melotti
b9717b5e02
#15752 : merge with 3.2.
2012-08-21 11:39:47 +03:00
Ezio Melotti
1b47bf43a6
#15752 : s/assertRaisesRegexp/assertRaisesRegex/g
2012-08-21 11:38:41 +03:00
Stefan Krah
5b27c53e36
Merge 3.2.
2012-08-21 08:25:41 +02:00
Stefan Krah
7cacd2eb92
Issue #15736 : Fix overflow in _PySequence_BytesToCharpArray().
2012-08-21 08:16:09 +02:00
Trent Nelson
139cd4352f
Issue #15285 : Refactor connect timeout test in test_timeout.
2012-08-20 21:40:21 -04:00