Philip Jenvey
6a111027f2
explicitly close files
2009-05-28 05:58:44 +00:00
Philip Jenvey
dd0388a1c2
further hint to where the open docs really are
2009-05-28 03:12:16 +00:00
Philip Jenvey
80319a3a53
explicitly close the file, merged from py3k
2009-05-28 03:10:59 +00:00
Benjamin Peterson
1075c9b431
switch library reference and language reference
2009-05-28 03:02:13 +00:00
R. David Murray
d67ea7d4c6
fix issue #6121 by stripping spaces from the argument in the 'help'
...
function.
2009-05-27 20:07:21 +00:00
Benjamin Peterson
1afec5d6bf
plug ref leak
2009-05-27 03:08:44 +00:00
Benjamin Peterson
39d43b4660
correctly handle descrs with __missing__
2009-05-27 02:43:46 +00:00
Raymond Hettinger
a68cad13ae
Fix field name conflicts for named tuples.
2009-05-27 02:24:45 +00:00
Ronald Oussoren
55d8828f98
Fixes issue 6110
2009-05-26 18:44:48 +00:00
Benjamin Peterson
aafa18aa05
teach the peepholer about SETUP_WITH
2009-05-26 12:49:59 +00:00
Georg Brandl
4ee8282229
#6112 : list.remove raises ValueError, not RuntimeError.
2009-05-26 07:50:23 +00:00
Collin Winter
57bef68bc0
Issue 5794: fix cPickle's unpickling of recursive tuples.
2009-05-26 04:12:39 +00:00
Georg Brandl
944f684ce6
Allow multiple context managers in one with statement, as proposed
...
in http://codereview.appspot.com/53094 and accepted by Guido.
The construct is transformed into multiple With AST nodes so that
there should be no problems with the semantics.
2009-05-25 21:02:56 +00:00
Michael Foord
04516611e7
Make assertSequenceEqual error messages less cryptic, particularly for nested sequences.
2009-05-25 20:36:56 +00:00
Benjamin Peterson
7285a2666e
fix error handling
2009-05-25 20:13:36 +00:00
Benjamin Peterson
49a6b0ef70
take into account the fact that SETUP_WITH pushes a finally block
2009-05-25 20:12:57 +00:00
Benjamin Peterson
1880d8b823
add a SETUP_WITH opcode
...
It speeds up the with statement and correctly looks up the special
methods involved.
2009-05-25 13:13:44 +00:00
Collin Winter
179bf213ea
Issue 5670: special-case pickling of dicts. This nearly doubles the performance of dict pickling in cPickle.
2009-05-25 04:34:39 +00:00
Benjamin Peterson
87e5006d8c
handle errors from _PyObject_LookupSpecial when __get__ fails
2009-05-25 02:40:21 +00:00
Benjamin Peterson
176a56c69b
make class skipping decorators the same as skipping every test of the class
...
This removes ClassTestSuite and a good bit of hacks.
2009-05-25 00:48:58 +00:00
Benjamin Peterson
a7724e59e0
stop using Py_FindMethod
2009-05-24 23:13:32 +00:00
Antoine Pitrou
36b6dfca00
Add Misc/python.pc to the list of ignored files
2009-05-24 20:46:06 +00:00
Antoine Pitrou
f2caeed9c6
Issue #3585 : Add pkg-config support.
...
It creates a python-2.7.pc file and a python.pc symlink in the
$(LIBDIR)/pkgconfig directory. Patch by Clinton Roy.
2009-05-24 20:23:57 +00:00
Martin v. Löwis
0b09c42ffe
Issue #6050 : Don't fail extracting a directory from a zipfile if
...
the directory already exists.
2009-05-24 19:30:52 +00:00
Martin v. Löwis
53b578eba1
Issue #6065 : Do not try to build a version-independent
...
installer if the package has extension modules.
Also add NEWS entry for #5311 .
2009-05-24 19:10:52 +00:00
Gregory P. Smith
d03e1b4475
add a versionadded tag for set_tunnel
2009-05-24 18:00:13 +00:00
Antoine Pitrou
d49e375eed
Issue #1309352 : fcntl now converts its third arguments to a C `long` rather
...
than an int, which makes some operations possible under 64-bit Linux (e.g.
DN_MULTISHOT with F_NOTIFY).
2009-05-24 15:40:09 +00:00
Antoine Pitrou
4fe3858991
Fix build under Windows
2009-05-24 12:15:04 +00:00
Senthil Kumaran
e266f25cf1
Fixed Issue1424152, urllib2 fails with HTTPS over Proxy.
2009-05-24 09:14:50 +00:00
Jeffrey Yasskin
655d835415
Issue #6042 :
...
lnotab-based tracing is very complicated and isn't documented very well. There
were at least 3 comment blocks purporting to document co_lnotab, and none did a
very good job. This patch unifies them into Objects/lnotab_notes.txt which
tries to completely capture the current state of affairs.
I also discovered that we've attached 2 layers of patches to the basic tracing
scheme. The first layer avoids jumping to instructions that don't start a line,
to avoid problems in if statements and while loops. The second layer
discovered that jumps backward do need to trace at instructions that don't
start a line, so it added extra lnotab entries for 'while' and 'for' loops, and
added a special case for backward jumps within the same line. I replaced these
patches by just treating forward and backward jumps differently.
2009-05-23 23:23:01 +00:00
R. David Murray
3724d6c392
Add smtplib test from issue 5259.
2009-05-23 21:48:06 +00:00
Benjamin Peterson
91d517c54b
remove mention of old ctypes version
2009-05-23 20:59:09 +00:00
Benjamin Peterson
40748f362b
reorder name
2009-05-23 19:31:02 +00:00
Benjamin Peterson
e5afa3b24b
support building with subversion 1.7 #6094
2009-05-23 19:24:37 +00:00
Antoine Pitrou
f3bd687b2d
Issue #3877 : skip a test_fileio subtest on all BSDs, not only FreeBSD
2009-05-23 16:32:32 +00:00
Antoine Pitrou
76dd2d1459
Some pid_t-expecting or producing functions were forgotten in r72852.
2009-05-23 16:06:49 +00:00
Antoine Pitrou
5e858fe52b
Issue #1983 : Fix functions taking or returning a process identifier to use
...
the dedicated C type `pid_t` instead of a C `int`. Some platforms have
a process identifier type wider than the standard C integer type.
2009-05-23 15:37:45 +00:00
Eric Smith
4b94b192ff
Issue 6089: str.format raises SystemError.
2009-05-23 13:56:13 +00:00
R. David Murray
8254d39840
Fix spelling left over from testing.
2009-05-23 02:19:36 +00:00
R. David Murray
812e1c80c4
Don't be so wordy in requires('network') in case other tests
...
are added later, and skip the existing test if SSL is not available.
2009-05-23 02:16:58 +00:00
R. David Murray
ad3058e0b8
Fix Issue #4066 : smtplib.SMTP_SSL._get_socket now correctly returns
...
the socket. Patch by Farhan Ahmad, test by Marcin Bachry.
2009-05-23 00:48:58 +00:00
Georg Brandl
eae1b28fb1
#6078 : _warnings is a builtin module and has no standard init_warnings function.
2009-05-22 17:00:17 +00:00
Georg Brandl
bc4af35f9e
#6086 : fix spelling and use a better exception to catch.
2009-05-22 10:40:00 +00:00
Georg Brandl
346a38dbc0
Correction in softspace behavior description.
2009-05-22 09:58:48 +00:00
Georg Brandl
e15048ea37
s/use/call/
2009-05-22 09:50:30 +00:00
Georg Brandl
22396da5ee
Fix confusing wording.
2009-05-22 09:49:42 +00:00
Georg Brandl
012408c2b9
Fix references to file-related functions and methods (os.* vs file.*).
2009-05-22 09:43:17 +00:00
Tarek Ziadé
aafd6b850e
fixed encoding
2009-05-22 09:42:43 +00:00
Georg Brandl
fa0123b4fa
#6084 : fix example.
2009-05-22 09:33:25 +00:00
Georg Brandl
5a8d7eb7f1
Use raise X(y).
2009-05-22 07:23:32 +00:00