Ross Lagerwall
0b63b5691c
Be less verbose when building dbm.
2012-04-15 08:19:35 +02:00
Brett Cannon
fc9ca274b8
Plug a refleak.
2012-04-15 01:35:05 -04:00
Brett Cannon
2a082add9d
Clarify that one should not use __import__() directly. Also mention
...
PEP 328 in explaining how 'index' works.
2012-04-14 21:58:33 -04:00
Brett Cannon
49f8d8b016
Handle importing pkg.mod by executing
...
__import__('mod', {'__packaging__': 'pkg', level=1) w/o properly (and
thus not segfaulting).
2012-04-14 21:50:00 -04:00
Brett Cannon
59f9c3affc
Rebuild importlib.h to incorporate added comments.
2012-04-14 21:18:48 -04:00
Brett Cannon
aef82d3d1e
IDLE was relying on implicit relative imports which have gone away in
...
Python 3.3 thanks to importlib finishing the work in PEP 328 that
accidently got carried forward.
2012-04-14 20:44:23 -04:00
Brett Cannon
44590e4786
Add some comments.
2012-04-14 18:37:07 -04:00
Brian Curtin
2217c46a5f
merge with the tip
2012-04-14 14:20:29 -05:00
Brian Curtin
e6b299faf5
Fix Windows build
2012-04-14 14:19:33 -05:00
Brett Cannon
afbdc13c1b
Fix an import race condition.
2012-04-14 15:06:17 -04:00
Brett Cannon
73def61edd
Try to fix a sporadic test failure from what is probably a caching race condition.
2012-04-14 14:38:19 -04:00
Brett Cannon
740fce0e38
Undo a C99 idiom.
2012-04-14 14:23:49 -04:00
Brett Cannon
fd0741555b
Issue #2377 : Make importlib the implementation of __import__().
...
importlib._bootstrap is now frozen into Python/importlib.h and stored
as _frozen_importlib in sys.modules. Py_Initialize() loads the frozen
code along with sys and imp and then uses _frozen_importlib._install()
to set builtins.__import__() w/ _frozen_importlib.__import__().
2012-04-14 14:10:13 -04:00
Sandro Tosi
d2cbd90539
merge with 3.2
2012-04-14 16:01:49 +02:00
Sandro Tosi
1ee17198c8
fix typo; thanks to Jérôme Mainka from docs@
2012-04-14 16:01:17 +02:00
Ezio Melotti
9c9af9d2ad
Merge highlight and spacing fixes in json example with 3.2.
2012-04-13 21:05:36 -06:00
Ezio Melotti
84e59aa989
Fix highlight and spacing in json example.
2012-04-13 21:02:18 -06:00
Ezio Melotti
584fbbb32d
#14535 : merge with 3.2.
2012-04-13 20:52:29 -06:00
Ezio Melotti
f86b28e3d2
#14535 : fix code highlight in multiprocessing examples. Patch by Tshepang Lekhonkhobe.
2012-04-13 20:50:48 -06:00
R David Murray
2c4efa871e
Merge #14399 : corrected news item
2012-04-13 21:27:19 -04:00
R David Murray
650dfaf5c4
#14399 : corrected news item
2012-04-13 21:24:27 -04:00
Benjamin Peterson
780b66b3e6
merge 3.2
2012-04-13 18:06:42 -04:00
Benjamin Peterson
3bf01757b6
move outside WITH_THREAD conditional
2012-04-13 18:06:36 -04:00
Victor Stinner
b8d016955a
Fix clock_gettime/getres/settime: PyArg_ParseTuple() expects an int
...
Only use a single #ifdef for the 3 functions.
2012-04-13 23:44:05 +02:00
Michael Foord
0682a0c0a9
Minor docstring / docs corrections for unittest.mock
2012-04-13 20:51:20 +01:00
Michael Foord
656319e58d
Make unittest.mock.create_autospec resilient against AttributeError on original object
2012-04-13 17:39:16 +01:00
Benjamin Peterson
899ee613f7
merge 3.2
2012-04-13 11:59:52 -04:00
Benjamin Peterson
43162b8a02
take linkage def outside of WITH_THREAD conditional ( closes #14569 )
2012-04-13 11:58:27 -04:00
Michael Foord
c287062fcf
unittest.mock.PropertyMock return value and attributes are now standard MagicMocks
2012-04-13 16:57:22 +01:00
Benjamin Peterson
633b32a7fa
put PyImportErrorObject with its brothers
2012-04-12 21:50:35 -04:00
Brett Cannon
15af26fa92
Merge
2012-04-12 21:13:08 -04:00
Brett Cannon
a29629f632
NEWS entry about importlib and ImportError's new attributes.
2012-04-12 21:12:37 -04:00
Brett Cannon
bbb6680ee5
Have importlib take advantage of ImportError's new 'name' and 'path'
...
attributes.
2012-04-12 21:09:01 -04:00
Amaury Forgeot d'Arc
b413874bc8
merge heads
2012-04-13 02:29:54 +02:00
Amaury Forgeot d'Arc
504a83f020
merge heads
2012-04-13 02:27:37 +02:00
Amaury Forgeot d'Arc
18d508fc73
Merge heads
2012-04-13 02:24:56 +02:00
Brett Cannon
79ec55e980
Issue #1559549 : Add 'name' and 'path' attributes to ImportError.
...
Currently import does not use these attributes as they are planned
for use by importlib (which will be another commit).
Thanks to Filip Gruszczyński for the initial patch and Brian Curtin
for refining it.
2012-04-12 20:24:54 -04:00
Amaury Forgeot d'Arc
8963943fc3
hg merge 3.2
2012-04-13 02:23:59 +02:00
Amaury Forgeot d'Arc
a9d33a21b3
Issue14559: Fix build files old Microft compilers.
...
With VS8.0 at least Python compiles and works correctly.
2012-04-13 02:14:28 +02:00
R David Murray
f50b38a11f
Merge #14399 : zipfile now correctly handles comments added to empty zipfiles.
...
Patch by Serhiy Storchaka.
This also moves the TypeError that results from trying to use a unicode
comment from the 'close' step to the point at which the comment is added to
the zipfile.
2012-04-12 18:44:58 -04:00
R David Murray
51804e9725
#14399 : zipfile now correctly handles comments added to empty zipfiles.
...
Patch by Serhiy Storchaka.
This also moves the TypeError that results from trying to use a unicode
comment from the 'close' step to the point at which the comment is added to
the zipfile.
2012-04-12 18:44:42 -04:00
Victor Stinner
6125e232e2
Doc: sort time.CLOCK_xxx constants
2012-04-12 21:40:14 +02:00
Georg Brandl
84ba495e37
Null-merge 3.2 branch.
2012-04-12 19:41:50 +02:00
Georg Brandl
d46d69c279
3.2 sidebar: link to 3.3, not 3.1
2012-04-12 19:41:10 +02:00
Charles-François Natali
515ea9bd65
Issue #14557 : Fix extensions build on HP-UX. Patch by Adi Roiban.
2012-04-12 19:09:00 +02:00
Charles-François Natali
5739e102dd
Issue #14557 : Fix extensions build on HP-UX. Patch by Adi Roiban.
2012-04-12 19:07:25 +02:00
Senthil Kumaran
80a133b91c
code improvement. 'as cm' not required when not used. Review comment by Georg Brandl
2012-04-12 19:28:07 +08:00
R David Murray
df7ac06195
Merge doc fixes #14553 and #14552 .
2012-04-11 20:15:10 -04:00
R David Murray
e7bade568e
#14553 : fix word order.
...
Patch by Tshepang Lekhonkhobe.
2012-04-11 20:13:25 -04:00
R David Murray
644cabed4b
#14552 : remove redundant wording in 'test' docs.
...
Original patch by Tshepang Lekhonkhobe.
2012-04-11 20:11:53 -04:00