summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Implemented PEP 370Christian Heimes2008-05-063-55/+296
|
* Make the Python implementation of warnings compatible with the C ↵Benjamin Peterson2008-05-061-0/+3
| | | | implementation regarding non-callable showwarning
* Fix logic error in Python/_warnings.c and add a test to verifyBenjamin Peterson2008-05-061-0/+9
|
* Intern static stringChristian Heimes2008-05-061-11/+1
| | | | Use float constructors instead of magic code for float constants
* fix issue2707 - os.walk docstring example correctness typo.Gregory P. Smith2008-05-061-1/+2
|
* Fix a bug in the handling of the stacklevel argument in warnings.warn() whereBrett Cannon2008-05-061-0/+2
| | | | the stack was being unwound by two levels instead of one each time.
* PEP 8 nits in json packageBenjamin Peterson2008-05-063-2/+3
|
* Fix a bug introduced in r62627. see issue2760 and issue2632.Gregory P. Smith2008-05-052-19/+45
| | | | | | | | | | | | | 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.
* Add the 'json' package. Code taken from simplejson 1.9 and contributed by BobBrett Cannon2008-05-0522-0/+1797
| | | | | | Ippolito. Closes issue #2750.
* Revert bogus checkin in r62724 to that file.Martin v. Löwis2008-05-051-1/+1
|
* Fix Unicode filename test.Martin v. Löwis2008-05-051-4/+6
|
* Issue #1734346: Support Unicode file names for zipfiles.Martin v. Löwis2008-05-053-7/+34
|
* Remove the use of 'inspect' from 'warnings' for detected deprecated use of theBrett Cannon2008-05-051-5/+12
| | | | | 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.
* Add a DeprecationWarning for when warnings.showwarning() is set to a functionBrett Cannon2008-05-052-1/+42
| | | | that lacks support for the new 'line' argument.
* Remove method signatures from the docstrings of io.pyBenjamin Peterson2008-05-041-50/+38
|
* #2695: Do case-insensitive check for algorithms.Georg Brandl2008-05-041-0/+2
|
* Implemented feature request 2157: Converter names are cut off at '('Gerhard Häring2008-05-041-1/+16
| | | | | | 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.
* Applied sqliterow-richcmp.diff patch from Thomas Heller in Issue2152. TheGerhard Häring2008-05-041-0/+20
| | | | sqlite3.Row type is now correctly hashable.
* Make sure that Context traps and flags dictionaries have values 0 and 1Mark Dickinson2008-05-041-2/+2
| | | | (as documented) rather than True and False.
* Some very minor changes to decimal.py in Python 2.6, aimedMark Dickinson2008-05-041-9/+9
| | | | | | | | | | 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
* Moved testing of builtin types out of test_builtin and into type specific ↵Benjamin Peterson2008-05-037-694/+745
| | | | modules
* Backport Raymond's changes in r60508 to Python 2.6.Mark Dickinson2008-05-031-4/+4
| | | | 'Context flags get set, not incremented'
* In test_io, StatefulIncrementalDecoderTest was not part of the test suite.Amaury Forgeot d'Arc2008-05-032-8/+7
| | | | | | | | | 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
* Fix the C implementation of 'warnings' to infer the filename of the module thatBrett Cannon2008-05-031-0/+71
| | | | | | | raised an exception properly when __file__ is not set, __name__ == '__main__', and sys.argv[0] is a false value. Closes issue2743.
* Fix for issue #2520 (cannot import macerrors)Ronald Oussoren2008-05-021-0/+1
|
* Fix for #1905: PythonLauncher not working correctly on OSX 10.5/LeopardRonald Oussoren2008-05-022-1/+2
| | | | This fixes both Python Launchar and the terminalcommand module.
* Merged revisions 62263-62646 via svnmerge fromMartin v. Löwis2008-05-022-4/+53
| | | | | | | | | | | | | | 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. ........
* Fixed some test structures. Thanks Mark Dickinson.Facundo Batista2008-05-022-21/+10
|
* #2581: Vista UAC/elevation support for bdist_wininstMark Hammond2008-05-026-1/+31
|
* This should fix issue2632. A long description of the two competingGregory P. Smith2008-05-021-59/+104
| | | | | | | | | | | | | | | | | | | | 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.
* Remove some from __future__ import with_statementsBenjamin Peterson2008-04-307-7/+0
|
* #1748: use functools.wraps instead of rolling own metadata update.Georg Brandl2008-04-301-6/+2
|
* make test_support's captured_output a bit more robust when exceptions happenBenjamin Peterson2008-04-301-2/+4
|
* #2719: backport next() from 3k.Georg Brandl2008-04-301-0/+27
|
* Issue 2526, float.__format__ 'n' specifier does not support thousands grouping.Eric Smith2008-04-301-1/+11
| | | | | Implemented grouping, with tests. Cleaned up PyOS_ascii_formatd by breaking reformatting into smaller functions.
* test_sundry performs minimal tests (a simple import...) on modules that are ↵Amaury Forgeot d'Arc2008-04-281-25/+0
| | | | | | | not tested otherwise. Some of them now have tests and can be removed. Only 70 to go...
* Rename the test_traceback_print() function to traceback_print() to preventBrett Cannon2008-04-281-2/+2
| | | | test_capi from automatically calling the function.
* Get rid of _test(), _main(), _debug() and _check(). Tests are no longerSkip Montanaro2008-04-281-93/+12
| | | | | | 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).
* Fix a bug introduced by the warnings rewrite where tracebacks were beingBrett Cannon2008-04-281-2/+28
| | | | | | improperly indented. Closes issue #2699.
* Minor cleanups:Skip Montanaro2008-04-281-35/+37
| | | | | | | | * 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.
* A few small changes:Skip Montanaro2008-04-271-10/+5
| | | | | | | * 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.
* Autocompletion of filenames now support alternate separators, e.g. theKurt B. Kaiser2008-04-272-3/+10
| | | | '/' char on Windows. Patch 2061 Tal Einat.
* Improved AutoCompleteWindow logic. Patch 2062 Tal Einat.Kurt B. Kaiser2008-04-272-7/+14
|
* Home / Control-A toggles between left margin and end of leading whiteKurt B. Kaiser2008-04-273-11/+48
| | | | | | | | space. Patch 1196903 Jeff Shute. M idlelib/PyShell.py M idlelib/EditorWindow.py M idlelib/NEWS.txt
* Fixed URL of PEP 205 in weakref's module docstring.Alexandre Vassalotti2008-04-271-1/+1
|
* Allow test_import to work when it is invoked directlyBenjamin Peterson2008-04-251-0/+2
|
* Issue 2635: fix bug in the fix_sentence_endings option to textwrap.fill.Mark Dickinson2008-04-252-0/+5
|
* Add from_buffer and from_buffer_copy class methods to ctypes types.Thomas Heller2008-04-251-0/+81
|
* A new crasher.Armin Rigo2008-04-251-0/+31
|
* Use absolute import for test packageAmaury Forgeot d'Arc2008-04-241-1/+1
|