Georg Brandl
172e7257f6
Patch #812285 : allow multiple auth schemes in AbstractBasicAuthHandler.
2007-03-07 07:39:06 +00:00
Guido van Rossum
00efeadbcf
Change the specs for readinto() -- it should *not* shorten the buffer to
...
the amount of data read.
2007-03-07 05:23:25 +00:00
Guido van Rossum
01a2752d19
New version from Mike Verdone (sat in my inbox since 2/27).
...
I cleaned up whitespace but otherwise didn't change it.
This will need work to reflect the tentative decision to drop nonblocking I/O
support from the buffering layers.
2007-03-07 01:00:12 +00:00
Walter Dörwald
05b5c7fe0e
Backport checkin:
...
Patch for bug #1633621 : if curses.resizeterm() or
curses.resize_term() is called, update _curses.LINES,
_curses.COLS, curses.LINES and curses.COLS.
2007-03-06 20:46:26 +00:00
Walter Dörwald
d391f0855c
Patch for bug #1633621 : if curses.resizeterm() or
...
curses.resize_term() is called, update _curses.LINES,
_curses.COLS, curses.LINES and curses.COLS.
2007-03-06 20:38:57 +00:00
Georg Brandl
c78855465f
Addendum of patch #1669633 : additional tests for bytes methods.
2007-03-06 19:16:20 +00:00
Georg Brandl
62b1b001e6
Patch #1654417 : make operator.{get,set,del}slice use the full range
...
of Py_ssize_t.
(backport from rev. 54177)
2007-03-06 19:00:09 +00:00
Georg Brandl
40c626159d
Patch #1654417 : make operator.{get,set,del}slice use the full range
...
of Py_ssize_t.
2007-03-06 18:59:11 +00:00
Georg Brandl
ffb0a804c6
Patch #1638879 : don't accept strings with embedded NUL bytes in long().
...
(backport from rev. 54173)
2007-03-06 18:44:35 +00:00
Georg Brandl
00cd818dea
Patch #1638879 : don't accept strings with embedded NUL bytes in long().
2007-03-06 18:41:12 +00:00
Georg Brandl
cff1ae3a2f
Small nit, found by Neal.
2007-03-06 18:21:32 +00:00
Georg Brandl
02d7cffb8f
Patch #1646728 : datetime.fromtimestamp fails with negative
...
fractional times. With unittest.
(backport from rev. 54167 by Guido)
2007-03-06 17:46:17 +00:00
Guido van Rossum
2054ee9b6f
Patch #1646728 : datetime.fromtimestamp fails with negative
...
fractional times. With unittest.
Somebody please backport to 2.5.
2007-03-06 15:50:01 +00:00
Martin v. Löwis
ab8a6bba25
Patch #912410 : Replace HTML entity references for attribute values
...
in HTMLParser.
2007-03-06 14:43:00 +00:00
Georg Brandl
ff432e6f4a
Patch #1663234 : you can now run doctest on test files and modules
...
using "python -m doctest [-v] filename ...".
2007-03-06 13:37:45 +00:00
Georg Brandl
1a74b4325c
A test case for the defaultdict KeyError bug.
...
(backport from rev. 54162)
2007-03-06 13:35:08 +00:00
Georg Brandl
72363031b9
A test case for the defaultdict KeyError bug.
2007-03-06 13:35:00 +00:00
Georg Brandl
8da6f1b668
Patch #1672481 : fix bug in idlelib.MultiCall.
...
(backport from rev. 54156)
2007-03-06 11:52:33 +00:00
Georg Brandl
d53d951c24
Patch #1672481 : fix bug in idlelib.MultiCall.
2007-03-06 11:52:24 +00:00
Georg Brandl
0520e03d0f
A test case for the fix in #1674228 .
...
(backport from rev. 54154)
2007-03-06 11:51:27 +00:00
Georg Brandl
3071a1aec9
A test case for the fix in #1674228 .
2007-03-06 11:51:14 +00:00
Martin v. Löwis
3eb7648986
Patch #1121142 : Implement ZipFile.open.
2007-03-06 10:41:24 +00:00
Georg Brandl
0ea891603d
Patch #1674228 : when assigning a slice (old-style), check for the
...
sq_ass_slice instead of the sq_slice slot.
(backport from rev. 54139)
2007-03-05 22:28:13 +00:00
Georg Brandl
0fca97a5fb
Patch #1674228 : when assigning a slice (old-style), check for the
...
sq_ass_slice instead of the sq_slice slot.
2007-03-05 22:28:08 +00:00
Facundo Batista
ca90ca81a4
Minor corrections to docs, and an explanation comentary
2007-03-05 16:31:54 +00:00
Georg Brandl
131069b3a0
Fix a bug in test_dict and test_userdict, found at the PyPy sprint.
...
(backport from rev. 54114)
2007-03-04 17:19:02 +00:00
Georg Brandl
8905bb10e0
Fix a bug in test_dict and test_userdict, found at the PyPy sprint.
2007-03-04 17:18:54 +00:00
Raymond Hettinger
20e1199fbe
Fix embarrassing typo and fix constantification of None
2007-03-02 19:20:46 +00:00
Raymond Hettinger
d882e36f45
Fix constantification of None.
2007-03-02 19:19:05 +00:00
Georg Brandl
117a05ed50
Bug #1628895 : some better tries to find HTML documentation in pydoc.
2007-03-02 14:37:12 +00:00
Raymond Hettinger
c37e5e04eb
Add collections.NamedTuple
2007-03-01 06:16:43 +00:00
Guido van Rossum
2e65f892c2
Final part of SF# 1607548 by Tony Lownds: fix pydoc and inspect.
2007-02-28 22:03:49 +00:00
Jack Diederich
4b7f3179ea
regenerated to reflect the addition of 'nonlocal' and removal of 'print'
2007-02-28 20:21:30 +00:00
Raymond Hettinger
eb9798892d
Prepare collections module for pure python code entries.
2007-02-28 18:37:52 +00:00
Raymond Hettinger
3035d2397f
Docstring nit.
2007-02-28 18:27:41 +00:00
Brett Cannon
f8267df2ad
Add a test for instantiating SyntaxError with no arguments.
2007-02-28 18:15:00 +00:00
Armin Rigo
adf172339c
Modify the segfaulting example to show why r53997 is not a solution to
...
it.
2007-02-28 09:25:29 +00:00
Guido van Rossum
4573942161
Regenerate symbol.py.
...
This fixes test_compiler, test_transformer, and test_parser.
2007-02-28 00:40:24 +00:00
Brett Cannon
3695bf316f
Use __builtin__, not __builtins__.
2007-02-28 00:32:07 +00:00
Brett Cannon
4af7dcf10d
Fix test_pep352 to deal with the removal of the 'exceptions' module.
2007-02-28 00:01:43 +00:00
Brett Cannon
6f8fe151da
Fix httplib for removal of slicing from exceptions.
2007-02-27 20:16:38 +00:00
Neal Norwitz
6968b056ef
SF patch #1669633 , add methods for bytes from Pete Shinners.
2007-02-27 19:02:19 +00:00
Neal Norwitz
fa04e1a090
Fix breakage from removing exceptions module
2007-02-27 18:58:52 +00:00
Jeremy Hylton
fa955697fa
Add checking for a number of metaclass error conditions.
...
We add some new rules that are required for preserving internal
invariants of types.
1. If type (or a subclass of type) appears in bases, it must appear
before any non-type bases. If a non-type base (like a regular
new-style class) occurred first, it could trick type into
allocating the new class an __dict__ which must be impossible.
2. There are several checks that are made of bases when creating a
type. Those checks are now repeated when assigning to __bases__.
We also add the restriction that assignment to __bases__ may not
change the metaclass of the type.
Add new tests for these cases and for a few other oddball errors that
were no previously tested. Remove a crasher test that was fixed.
Also some internal refactoring: Extract the code to find the most
derived metaclass of a type and its bases. It is now needed in two
places. Rewrite the TypeError checks in test_descr to use doctest.
The tests now clearly show what exception they expect to see.
2007-02-27 18:29:45 +00:00
Guido van Rossum
68bbcd2a71
Mike Verdone's checkpoint, cleaned up.
...
Also implemented Neal's suggestion (add fileno() to SocketIO)
and some unrelated changes, e.g. remove Google copyright
and make BytesIO a subclass of BufferedIOBase.
2007-02-27 17:19:33 +00:00
Guido van Rossum
17e43e582c
Added some comments and docstrings. More is needed.
2007-02-27 15:45:13 +00:00
Georg Brandl
0b9b9e0483
Implement bytes.fromhex(), with tests.
2007-02-27 08:40:54 +00:00
Jeremy Hylton
81e9502df6
Provisional implementation of PEP 3104.
...
Add nonlocal_stmt to Grammar and Nonlocal node to AST. They both
parallel the definitions for globals. The symbol table treats
variables declared as nonlocal just like variables that are free
implicitly.
This change is missing the language spec changes, but makes some
decisions about what the spec should say via the unittests. The PEP
is silent on a number of decisions, so we should review those before
claiming that nonlocal is complete.
Thomas Wouters made the grammer and ast changes. Jeremy Hylton added
the symbol table changes and the tests. Pete Shinners and Neal
Norwitz helped review the code.
2007-02-27 06:50:52 +00:00
Neal Norwitz
8b41c3dc28
Add some XXX comments for Guido to look at.
2007-02-27 06:26:14 +00:00
Guido van Rossum
28524c7f10
Checkpoint for new I/O library.
2007-02-27 05:47:44 +00:00