- 05 May, 2008 10 commits
-
-
Gregory P. Smith authored
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.
-
Georg Brandl authored
-
Georg Brandl authored
-
Georg Brandl authored
-
Brett Cannon authored
Ippolito. Closes issue #2750.
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Brett Cannon authored
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.
-
Brett Cannon authored
that lacks support for the new 'line' argument.
-
- 04 May, 2008 12 commits
-
-
Benjamin Peterson authored
-
Georg Brandl authored
-
Benjamin Peterson authored
-
Georg Brandl authored
-
Gerhard Häring authored
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.
-
Gerhard Häring authored
sqlite3.Row type is now correctly hashable.
-
Gerhard Häring authored
#ifdefing was useless.
-
Christian Heimes authored
-
Georg Brandl authored
-
Benjamin Peterson authored
-
Mark Dickinson authored
(as documented) rather than True and False.
-
Mark Dickinson authored
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
-
- 03 May, 2008 7 commits
-
-
Benjamin Peterson authored
-
Georg Brandl authored
-
Mark Dickinson authored
'Context flags get set, not incremented'
-
Benjamin Peterson authored
-
Amaury Forgeot d'Arc authored
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
-
Brett Cannon authored
raised an exception properly when __file__ is not set, __name__ == '__main__', and sys.argv[0] is a false value. Closes issue2743.
-
Brett Cannon authored
-
- 02 May, 2008 10 commits
-
-
Benjamin Peterson authored
-
Ronald Oussoren authored
-
Ronald Oussoren authored
This fixes both Python Launchar and the terminalcommand module.
-
Martin v. Löwis authored
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. ........
-
Ronald Oussoren authored
-
Ronald Oussoren authored
This introduces a new configure option: --with-framework-name=NAME (defaulting to 'Python'). This allows you to install several copies of the Python framework with different names (such as a normal build and a debug build).
-
Facundo Batista authored
-
Mark Hammond authored
-
Gregory P. Smith authored
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.
-
Brett Cannon authored
warnings.showwarning() was being used. This broke pre-existing replacements for the function since they didn't support the extra argument. Closes issue 2705.
-
- 01 May, 2008 1 commit
-
-
Georg Brandl authored
-