| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Use float constructors instead of magic code for float constants
|
| |
|
|
|
|
| |
the stack was being unwound by two levels instead of one each time.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
An assertion in readline() would fail as data was already in the
internal buffer even though the socket was in unbuffered read mode.
That case is now handled. More importantly, read() has been fixed to
not over-recv() and leave newly recv()d data in the _fileobject buffer.
The max() vs min() issue in read() is now gone. Neither was correct.
On bounded reads, always ask recv() for the exact amount of data we
still need.
Candidate for backporting to release25-maint along with r62627.
|
|
|
|
|
|
| |
Ippolito.
Closes issue #2750.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
showwarning API. Turns out 'inspect' uses 'operator' which is an extension
module. That's a problem when it has not been built yet by setup.py.
|
|
|
|
| |
that lacks support for the new 'line' argument.
|
| |
|
| |
|
|
|
|
|
|
| |
characters. This avoids the common case of something like 'NUMBER(10)' not
being parsed as 'NUMBER', like expected. Also corrected the docs about
converter names being case-sensitive. They aren't any longer.
|
|
|
|
| |
sqlite3.Row type is now correctly hashable.
|
|
|
|
| |
(as documented) rather than True and False.
|
|
|
|
|
|
|
|
|
|
| |
at reducing the size of the diff between the 2.x decimal.py
and 3.x decimal.py and thereby making future merges easier:
- replace one instnace of an old-style raise statement
- define __div__ in terms of __truediv__ instead of the
other way around
- make wording match on an exception message
|
|
|
|
| |
modules
|
|
|
|
| |
'Context flags get set, not incremented'
|
|
|
|
|
|
|
|
|
| |
And of course, the test failed:
a bytearray was used without reason in io.TextIOWrapper.tell().
The difference is that iterating over bytes (i.e. str in python2.6) returns 1-char bytes,
whereas bytearrays yield integers.
This code should still work with python3.0
|
|
|
|
|
|
|
| |
raised an exception properly when __file__ is not set, __name__ == '__main__',
and sys.argv[0] is a false value.
Closes issue2743.
|
| |
|
|
|
|
| |
This fixes both Python Launchar and the terminalcommand module.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r62470 | david.wolever | 2008-04-24 02:11:07 +0200 (Do, 24 Apr 2008) | 3 lines
Fixed up and applied the patch for #2431 -- speeding up 2to3 with a lookup table.
........
r62646 | martin.v.loewis | 2008-05-02 23:29:27 +0200 (Fr, 02 Mai 2008) | 2 lines
Fix whitespace.
........
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
problems is in the bug report (one old, one recently introduced trying
to fix the old one). In short:
buffer data during socket._fileobject.read() and readlines() within a
cStringIO object instead of a [] of str()s returned from the recv()
call.
This prevents excessive memory use due to the size parameter being
passed to recv() being grossly larger than the actual size of the data
returned *and* prevents excessive cpu usage due to looping in python
calling recv() with a very tiny size value if min() is used as the
previous memory-use bug "fix" did.
It also documents what the socket._fileobject._rbufsize member is
actually used for.
This is a candidate for back porting to 2.5.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Implemented grouping, with tests.
Cleaned up PyOS_ascii_formatd by breaking reformatting into smaller functions.
|
|
|
|
|
|
|
| |
not tested otherwise.
Some of them now have tests and can be removed.
Only 70 to go...
|
|
|
|
| |
test_capi from automatically calling the function.
|
|
|
|
|
|
| |
needed (better set available in Lib/test/test_robotparser.py). Clean up a
few PEP 8 nits (compound statements on a single line, whitespace around
operators).
|
|
|
|
|
|
| |
improperly indented.
Closes issue #2699.
|
|
|
|
|
|
|
|
| |
* Avoid creating unused local variables where we can. Where we can't prefix
the unused variables with '_'.
* Avoid shadowing builtins where it won't change the external interface of a
function.
* Use None as default path arg to readmodule and readmodule_ex.
|
|
|
|
|
|
|
| |
* The only exception we should catch when trying to import cStringIO is an
ImportError.
* Delete the function signatures embedded in the mk*temp docstrings.
* The tempdir global variable was initialized twice.
|
|
|
|
| |
'/' char on Windows. Patch 2061 Tal Einat.
|
| |
|
|
|
|
|
|
|
|
| |
space. Patch 1196903 Jeff Shute.
M idlelib/PyShell.py
M idlelib/EditorWindow.py
M idlelib/NEWS.txt
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
This is a modified version of a patch proposed by Humberto Diogenes
in the discussion of issue1883.
I will merge manually this change into the py3k branch: the tests must be adapted.
|
|
|
|
|
|
|
| |
collected objects.
See http://mail.python.org/pipermail/python-checkins/2008-April/068633.html
the extra events perfectly match several calls to socket._fileobject.__del__()
|