Benjamin Peterson
8eb1269c34
add generic implementation of a __dict__ descriptor for C types
2012-02-19 19:59:10 -05:00
Antoine Pitrou
4a57846efe
Merge
2012-02-20 01:52:17 +01:00
Éric Araujo
a7e594b9a5
Merge 3.2
2012-02-20 01:53:09 +01:00
Antoine Pitrou
c541f8ef40
Issue #14043 : Speed up importlib's _FileFinder by at least 8x, and add a new importlib.invalidate_caches() function.
...
importlib is now often faster than imp.find_module() at finding modules.
2012-02-20 01:48:16 +01:00
Éric Araujo
c3ef037ee1
Add missing “::” markup.
...
Also wrap two looong lines.
2012-02-20 01:44:55 +01:00
Brett Cannon
336b2f45e5
Fix a failing importlib test under Windows.
...
Closes issue #14054 .
2012-02-19 19:36:44 -05:00
Benjamin Peterson
85c71ae882
fix test now that staticmethod and classmethod are bigger
2012-02-19 19:16:47 -05:00
Antoine Pitrou
c135fa424e
Fix last remaining build issues of _ssl under old OpenSSLs. Patch by Vinay.
2012-02-19 21:22:39 +01:00
Martin v. Löwis
7b77188e89
Create _attr/_attrNS lazily.
2012-02-19 20:55:05 +01:00
Martin v. Löwis
14aa280de2
Use __slots__ throughout instead of __dict__, to reduce the memory usage.
2012-02-19 20:25:12 +01:00
Sandro Tosi
32ac92cd4a
Issue #13605 : merge with 3.2
2012-02-19 19:54:23 +01:00
Sandro Tosi
0467686e07
Issue #13605 : use print() in argparse nargs example
2012-02-19 19:54:00 +01:00
Benjamin Peterson
b900d6a78c
initialize __dict__ if needed
2012-02-19 10:17:30 -05:00
Sandro Tosi
488a56d2fb
merge with 3.2
2012-02-19 12:30:47 +01:00
Sandro Tosi
f06d444f5a
don't split 'Hye-Shik Chang' name; thanks to Sergey from docs@
2012-02-19 12:30:28 +01:00
Sandro Tosi
1ee86a1515
merge with 3.2
2012-02-19 12:28:18 +01:00
Sandro Tosi
76dea27421
Indent 'File' in memoryview example, so it is correctly highlighted
2012-02-19 12:28:01 +01:00
Benjamin Peterson
2cf936fe7a
use defaults
2012-02-19 01:16:13 -05:00
Benjamin Peterson
84e821e961
merge 3.2
2012-02-19 01:14:21 -05:00
Benjamin Peterson
496c53d83e
use Py_CLEAR
2012-02-19 01:11:56 -05:00
Benjamin Peterson
01d7eba316
allow arbitrary attributes on classmethod and staticmethod ( closes #14051 )
2012-02-19 01:10:25 -05:00
Jesus Cea
dc1d3eda1f
MERGE: Test for issue #13500
2012-02-19 03:54:59 +01:00
Jesus Cea
fbc6f943e0
Test for issue #13500
2012-02-19 03:54:29 +01:00
Jesus Cea
14ed7f23c2
Test for issue #13500
2012-02-19 03:52:23 +01:00
Sandro Tosi
b5d271073f
merge with 3.2
2012-02-18 16:06:39 +01:00
Sandro Tosi
c33ae06cbf
fix error in memoryview example; thanks to kan lianlian from docs@
2012-02-18 16:05:34 +01:00
Charles-François Natali
3ccc918b4a
Issue #14001 : CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer
...
upon malformed POST request.
2012-02-18 15:02:10 +01:00
Charles-François Natali
cd96b4f1ff
Issue #14001 : CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer
...
upon malformed POST request.
2012-02-18 14:53:41 +01:00
Charles-François Natali
ec1712a166
Issue #14001 : CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer
...
upon malformed POST request.
2012-02-18 14:42:57 +01:00
Terry Jan Reedy
93abdd1ab8
Merge with 3.2 closes 14023
2012-02-17 19:58:41 -05:00
Terry Jan Reedy
ead1de2f03
Issue 14023 Revert edit to 2.7 version. (I suspect edit is from when we thought
...
to to makes bytes mutable, before deciding to add bytearrays.)
2012-02-17 19:56:58 -05:00
Ezio Melotti
c48cfe37d2
#14020 : merge with 3.2.
2012-02-18 02:03:35 +02:00
Ezio Melotti
4279bc7aef
#14020 : improve HTMLParser documentation.
2012-02-18 02:01:36 +02:00
Petri Lehtinen
aa2c670ee6
Merge branch '3.2'
...
Closes #11689 .
2012-02-17 21:36:52 +02:00
Petri Lehtinen
c86d9e2846
Fix a variable scoping error in an sqlite3 test
...
Closes #11689 .
2012-02-17 21:31:02 +02:00
Antoine Pitrou
a9bf2ac726
Try to really fix compilation failures of the _ssl module under very old OpenSSLs.
2012-02-17 18:47:54 +01:00
Éric Araujo
f1fd388c77
Branch merge
2012-02-17 18:10:11 +01:00
Éric Araujo
2180ee641c
Fix code I unwittingly broke in b0e2d6592a1f ( #14038 )
2012-02-17 17:26:30 +01:00
Brett Cannon
082f177c67
Fix importlib.test.__main__ to only worry about command-line flags when directly executed.
2012-02-17 10:44:24 -05:00
Brett Cannon
f2e86751cc
Optimize importlib's case-sensitivity check by wasting as little time as possible under case-sensitive OSs.
2012-02-17 09:46:48 -05:00
Brett Cannon
1f14bebe3c
Have importlib.test use argparse instead of some hacked up solution.
2012-02-17 09:37:39 -05:00
Brett Cannon
ba17fe256e
Have importlib use os.replace() for atomic renaming.
...
Closes issue #13961 . Thanks to Charles-François Natali for the patch.
2012-02-17 09:26:53 -05:00
Nick Coghlan
4fcad3c7ab
Change the python3 hardlink to a symlink, and correct some misuse of the PYTHON var in the makefile
2012-02-17 23:17:34 +10:00
Antoine Pitrou
e9fccb360f
Fix compilation when SSL_OP_SINGLE_ECDH_USE isn't defined
2012-02-17 11:53:10 +01:00
Brett Cannon
f58d45c649
Tweak the handling of the empty string in sys.path for importlib.
...
It seems better to cache the finder for the cwd under its full path
insetad of '' in case the cwd changes. Otherwise FileFinder needs to
dynamically change itself based on whether it is given '' instead of
caching a finder for every change to the cwd.
2012-02-16 18:12:00 -05:00
Brett Cannon
22e7c88057
Merge
2012-02-16 18:03:47 -05:00
Brett Cannon
3b1a06c1ea
importlib.__import__() now raises ValueError when level < 0.
...
This is to bring it more in line with what PEP 328 set out to do with
removing ambiguous absolute/relative import semantics.
2012-02-16 17:47:48 -05:00
Florent Xicluna
1639505c38
fix the _namespace_map cleanup for cElementTree tests.
2012-02-16 23:28:35 +01:00
Florent Xicluna
e59a306081
The C accelerator was not always imported for cElementTree's tests. (there's still an issue with --huntrleaks switch)
2012-02-16 23:17:31 +01:00
Petri Lehtinen
17f1be6368
Merge branch '3.2'
...
Closes #13995 .
2012-02-16 21:44:26 +02:00