Raymond Hettinger
548db58e02
Use operator.index() instead of n.__index__().
2008-07-10 10:28:41 +00:00
Raymond Hettinger
655d583a49
Issue 3287: Raise correct exception for float inputs.
2008-07-10 09:31:08 +00:00
Nick Coghlan
14ff99432d
Add missing NEWS and ACK entries for r64791
2008-07-08 14:21:42 +00:00
Nick Coghlan
524b7773cc
Issue 2517: Allow unicode messages in Exceptions again by correctly bypassing the instance dictionary when looking up __unicode__ on new-style classes
2008-07-08 14:08:04 +00:00
Georg Brandl
dbc5987e2f
Add missing ABCs to list.
2008-07-08 07:05:23 +00:00
Facundo Batista
1a664419bb
Issue 3306. Better control for a lenght in findmax() function.
2008-07-07 17:02:59 +00:00
Andrew M. Kuchling
10cf7d947d
Fix example to match text
2008-07-07 16:51:09 +00:00
Skip Montanaro
2c7ca9bb11
Correct grammar.
2008-07-07 11:16:14 +00:00
Gregory P. Smith
c4691ec0bf
- Issue #3094 : httplib.HTTPSConnection Host: headers no longer include the
...
redundant ":443" port number designation when the connection is using the
default https port (443).
2008-07-07 05:09:12 +00:00
Gregory P. Smith
04222925f1
Add commented out #_sha256 and #_sha512 lines per issue 3183.
2008-07-07 04:54:31 +00:00
Josiah Carlson
ff5f42088b
Fixed bugs 760475, 953599, and 1519.
2008-07-07 04:51:46 +00:00
Gregory P. Smith
3b1e6b2f83
- Issue #3309 : Fix bz2.BZFile itererator to release its internal lock
...
properly when raising an exception due to the bz2file being closed.
Prevents a deadlock.
2008-07-07 04:31:58 +00:00
Amaury Forgeot d'Arc
0f7cddc308
Issue839496: SimpleHTTPServer should open all files in binary mode.
...
Forward-port of 38255 (2005/01/15!)
This was already fixed in 2.4, but never merged into trunk...
py3k is already right, thanks to the bytes/str distinction!
Should be backported to 2.5.
2008-07-06 21:34:39 +00:00
Andrew M. Kuchling
aaca978103
Add two items; rewrap paragraph
2008-07-06 17:44:17 +00:00
Andrew M. Kuchling
c40608491c
Wording fix
2008-07-06 17:43:16 +00:00
Georg Brandl
de2939bb75
Fix opensearch template.
2008-07-06 17:36:20 +00:00
Gregory P. Smith
eb77fe4cbf
fix issue3304 - remove an incorrect PyMem_Free in fileio_init
2008-07-06 17:06:29 +00:00
Benjamin Peterson
7f58022219
remove test_compact_freelists from test_sys
2008-07-06 12:39:09 +00:00
Gregory P. Smith
f41406409e
- Issue #2113 : Fix error in subprocess.Popen if the select system call is
...
interrupted by a signal.
2008-07-06 07:16:40 +00:00
Gregory P. Smith
2fe77060eb
- Issue #2862 : Make int and float freelist management consistent with other
...
freelists. Changes their CompactFreeList apis into ClearFreeList apis and
calls them via gc.collect().
2008-07-06 03:35:58 +00:00
Facundo Batista
17f2e4acb9
Issue #3239 . Differentiate the ascii call from the curses one and
...
the builtin one.
2008-07-05 20:39:59 +00:00
Facundo Batista
083902af8f
Issue 3289. Removed two lines that ended doing nothing.
2008-07-05 19:19:50 +00:00
Georg Brandl
1ecce468f8
Keep below 80 chars.
2008-07-05 16:43:45 +00:00
Benjamin Peterson
87988b6753
make regrtest aware of the lib2to3 resource
2008-07-05 16:29:38 +00:00
Martin v. Löwis
5a9ef426a9
Disable lib2to3 by default, unless run explicitly.
2008-07-05 15:48:20 +00:00
Martin v. Löwis
5144ff5f78
Merged revisions 64285-64735 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r64493 | benjamin.peterson | 2008-06-24 04:14:14 +0200 (Di, 24 Jun 2008) | 1 line
add a fix_import mapping for cPickle -> pickle
........
r64651 | brett.cannon | 2008-07-02 04:00:11 +0200 (Mi, 02 Jul 2008) | 3 lines
Update fix_imports for urllib. Had to change the fixer itself to handle modules
that are split across several renames in 3.0.
........
r64669 | brett.cannon | 2008-07-02 21:43:48 +0200 (Mi, 02 Jul 2008) | 4 lines
Backing out last change until fix_imports is working again. Also re-enable the
testing for fix_imports; if it is deemed that it takes too long to run then a
random sample should be taken and used to test it.
........
2008-07-05 15:45:45 +00:00
Mark Dickinson
ecf8d8cc4b
Minor rewrite of cmath_log to work around a Sun compiler bug. See issue
...
#3168 .
2008-07-05 15:25:48 +00:00
Mark Dickinson
bf9f4d8015
Issue 3188: accept float('infinity') as well as float('inf'). This
...
makes the float constructor behave in the same way as specified
by various other language standards, including C99, IEEE 754r,
and the IBM Decimal standard.
2008-07-05 11:33:52 +00:00
Georg Brandl
e78fbcce3e
#2663 : support an *ignore* argument to shutil.copytree(). Patch by Tarek Ziade.
...
This is a new feature, but Barry authorized adding it in the beta period.
2008-07-05 10:13:36 +00:00
Georg Brandl
3c0fd5616f
Fix tabs.
2008-07-05 10:07:18 +00:00
Raymond Hettinger
afae11ea88
Update comment on prediction macros.
2008-07-05 02:11:55 +00:00
Georg Brandl
66ef83bd9d
Give the pickle special methods a signature.
2008-07-04 17:22:53 +00:00
Benjamin Peterson
4e47680060
let the term be linked
2008-07-03 13:01:17 +00:00
Benjamin Peterson
9385b9db8b
lowercase glossary term
2008-07-03 12:57:35 +00:00
Martin v. Löwis
8c43641271
Patch #1622 : Correct interpretation of various ZIP header fields.
...
Also fixes
- Issue #1526 : Allow more than 64k files to be added to Zip64 file.
- Issue #1746 : Correct handling of zipfile archive comments (previously
archives with comments over 4k were flagged as invalid). Allow writing
Zip files with archives by setting the 'comment' attribute of a ZipFile.
2008-07-03 12:51:14 +00:00
Andrew M. Kuchling
f5d2b4ce93
Tweak wording
2008-07-03 12:50:03 +00:00
Amaury Forgeot d'Arc
968117e974
Try a blind fix to nismodule which fails on the solaris10 3.0 buildbot:
...
the GIL must be re-acquired in the callback function
2008-07-02 23:40:28 +00:00
Brett Cannon
0bfac6e5d8
Revert r64673 and instead just change the file encoding.
2008-07-02 21:52:42 +00:00
Brett Cannon
3bff9d269c
FIx some Latin-1 characters to be UTF-8 as the file encoding specifies.
...
Closes issue #3261 . THankjs Leo Soto for the bug report.
2008-07-02 21:40:11 +00:00
Jesse Noller
76cf55f499
Add #!/usr/bin/env python for ben
2008-07-02 16:56:51 +00:00
Facundo Batista
66c527755d
Issue #449227 : Now with the rlcompleter module, callable objects are
...
added a '(' when completed.
2008-07-02 16:52:55 +00:00
Jesse Noller
146b7ab818
Reenable the manager tests with Amaury's threading fix
2008-07-02 16:44:09 +00:00
Nick Coghlan
c060b0e7eb
Issue 3190: pydoc now hides module __package__ attributes
2008-07-02 13:09:19 +00:00
Mark Dickinson
70c3289085
Replace occurrences of '\d' with '[0-9]' in Decimal regex, to make sure
...
that the behaviour of Decimal doesn't change if/when re.UNICODE becomes
assumed in Python 3.0.
Also add a check that alternative Unicode digits (e.g. u'\N{FULLWIDTH
DIGIT ONE}') are *not* accepted in a numeric string.
2008-07-02 09:37:01 +00:00
Brett Cannon
8bb8fa5dd6
Handle urllib's renaming for Python 3.0:
...
* Deprecate urllib.urlopen() in favor of urllib2.urlopen() for 3.0.
* Update docs to mention split/rename of the module and deprecation of
urlopen().
Changes to lib2to3 are in a separate commit. Work is for issue #2885 .
2008-07-02 01:57:08 +00:00
Benjamin Peterson
aac51b8a69
add ABC to the glossary
2008-07-01 23:33:06 +00:00
Georg Brandl
aa76d77e2b
Add a comment about incref'ing w.
2008-07-01 20:56:03 +00:00
Georg Brandl
3214a01d27
#1410739 : add a footnote about "is" and "unusual" behavior.
2008-07-01 20:50:02 +00:00
Georg Brandl
1e0eefc4a1
#1523853 : add note about fread().
2008-07-01 20:45:09 +00:00
Amaury Forgeot d'Arc
bdd941fac3
#3242 : fix a crash in "print", if sys.stdout is set to a custom object,
...
whose write() method installs another sys.stdout.
Will backport.
2008-07-01 20:38:04 +00:00