summaryrefslogtreecommitdiff
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix bug in InternalDate regexp that failed to allow leading 0 in day - ↵Piers Lauder2005-03-021-1/+1
| | | | courtesy of Rimon Barr <rimon.barr@cornell.edu>
* Patch #1121234: Properly cleanup _exit and tkerror commands.Martin v. Löwis2005-03-011-0/+7
| | | | Will backport to 2.4.
* Make test__locale more fine-grained. Now test localeconv and nl_langinfoBrett Cannon2005-03-011-9/+56
| | | | | | individually as tests. Also improved output when the test fails.
* Fix small grammatical error in a docstring.Brett Cannon2005-03-011-1/+1
|
* SF patch #941881: PEP 309 Implementation (Partial Function Application).Raymond Hettinger2005-02-281-0/+154
| | | | | Combined efforts of many including Peter Harris, Hye-Shik Chang, Martin v. Löwis, Nick Coghlan, Paul Moore, and Raymond Hettinger.
* Complete the previous effort to factor out constant expressionsRaymond Hettinger2005-02-282-12/+34
| | | | and improve the speed of the if/elif/else blocks.
* Patch #1049151: adding bool support to xdrlib.py.Martin v. Löwis2005-02-244-6/+30
| | | | Also add xdrlib._test into the test suite.
* Made the module compatible with Python 2.2 again.Peter Astrand2005-02-211-2/+5
|
* Teach the peepholer to fold unary operations on constants.Raymond Hettinger2005-02-201-0/+19
| | | | | Afterwards, -0.5 loads in a single step and no longer requires a runtime UNARY_NEGATIVE operation.
* * Beef-up tests for str.count().Raymond Hettinger2005-02-201-0/+28
| | | | * Speed-up str.count() by using memchr() to fly between first char matches.
* * Beef-up testing of str.__contains__() and str.find().Raymond Hettinger2005-02-201-0/+24
| | | | | | | | | | | | | | | | | | | * Speed-up "x in y" where x has more than one character. The existing code made excessive calls to the expensive memcmp() function. The new code uses memchr() to rapidly find a start point for memcmp(). In addition to knowing that the first character is a match, the new code also checks that the last character is a match. This significantly reduces the incidence of false starts (saving memcmp() calls and making quadratic behavior less likely). Improves the timings on: python -m timeit -r7 -s"x='a'*1000" "'ab' in x" python -m timeit -r7 -s"x='a'*1000" "'bc' in x" Once this code has proven itself, then string_find_internal() should refer to it rather than running its own version. Also, something similar may apply to unicode objects.
* Use getdoc(object) instead of object.__doc__ to fix indentation problems.Ka-Ping Yee2005-02-191-2/+10
| | | | | | | | | | | Thanks to Robert Dick <dickrp@ece.northwestern.edu> for reporting this bug and submitting a patch. Adjust doc(object) to display useful documentation for plain values (e.g. help([]) now shows the methods on the list instead of just printing "[]"). (This change has been tested interactively, by generating docs for the standard library, and by running the module documentation webserver.)
* Add support for negative indices in UserString.MutableString.__setitem__Walter Dörwald2005-02-182-7/+11
| | | | and UserString.MutableString.__delitem__.
* Handle errors in imports of thread, threadingVinay Sajip2005-02-181-1/+7
|
* Improved frame handling for 1.5.2, and now return func from findCaller (not ↵Vinay Sajip2005-02-181-9/+20
| | | | actually used yet)
* Fix copy & paste error.Walter Dörwald2005-02-171-2/+2
|
* Add tests for the methods added by UserString.MutableString.Walter Dörwald2005-02-171-0/+62
|
* Avoid using items() in environ.update(). Fixes #1124513.Martin v. Löwis2005-02-172-9/+19
| | | | Will backport to 2.4.
* Add a basic test for UserString.MutableString.Walter Dörwald2005-02-171-2/+9
|
* FixMichael W. Hudson2005-02-171-0/+3
| | | | | | | | [ 1124295 ] Function's __name__ no longer accessible in restricted mode which I introduced with a bit of mindless copy-paste when making __name__ writable. You can't assign to __name__ in restricted mode, which I'm going to pretend was intentional :)
* Remove dependency on order of mode flagsRaymond Hettinger2005-02-161-1/+1
|
* Whitespace normalization.Tim Peters2005-02-151-2/+2
|
* An instance of class PicklingError was used here simply as an example ofTim Peters2005-02-151-21/+26
| | | | | | | _some_ user-defined class instance. That it was also an exception isn't interesting, but does interfere with Michael Hudson's new-style exception patch. This just changes the doctest example, to use an instance of a non-exception class.
* Test that SystemExits are handled properly by the exit machinery. IMichael W. Hudson2005-02-151-0/+12
| | | | | broke the "raise SystemExit(46)" case when doing new-style exceptions, but I'd much rather have found out here than in test_tempfile (growl).
* Exceedingly minor tweak.Michael W. Hudson2005-02-151-1/+1
|
* Added copyright notice:Peter Astrand2005-02-141-0/+2
| | | | Licensed to PSF under a Contributor Agreement.
* fix decoding in _stringify to not depend on the default encodingFred Drake2005-02-112-1/+43
| | | | (closes SF bug #1115989)
* Remove set conversion optimization test (backed out of Python/compile.c in rev.Brett Cannon2005-02-101-11/+0
| | | | 2.344).
* accept datetime.datetime instances when marshalling;Fred Drake2005-02-102-1/+33
| | | | dateTime.iso8601 elements still unmarshal into xmlrpclib.DateTime objects
* Fix typoAndrew M. Kuchling2005-02-102-2/+2
|
* Patch from Leandro Lucarella: replaced:Peter Astrand2005-02-101-29/+29
| | | | | | | | | | | | var == None and var != None with var is None and var is not None and type(var) == int with instanceof(var, int) ...as recomended in PEP 8 [1].
* Convert splitlines to for-loop (handles case where input does not have a ↵Raymond Hettinger2005-02-081-4/+4
| | | | trailing newline).
* Fix stupid typo: Don't read from a writer.Walter Dörwald2005-02-081-2/+2
|
* Wholistic code cleanup / modernization:Raymond Hettinger2005-02-081-75/+63
| | | | | | | | * Use += * Replace loop logic with str.splitlines equivalent * Don't use variable names that shadow tuple, list, and str * Use dict.get instead of equivalent try/except * Minor loop logic simplications
* Adopt Skip's idea to optimize lists of constants in the contextRaymond Hettinger2005-02-071-1/+2
| | | | of a "in" or "not in" test.
* Revert previous checkin.Raymond Hettinger2005-02-072-34/+34
|
* Reduce the usage of the types module.Raymond Hettinger2005-02-078-68/+64
|
* Transform "x in (1,2,3)" to "x in frozenset([1,2,3])".Raymond Hettinger2005-02-061-0/+10
| | | | | Inspired by Skip's idea to recognize the throw-away nature of sequences in this context and to transform their type to one with better performance.
* Replace list of constants with tuples of constants.Raymond Hettinger2005-02-0611-29/+29
|
* SF patch #1028908Raymond Hettinger2005-02-051-3/+6
| | | | | | (John J Lee) Minor code clarification and simplification.
* SF patch #1116583: NameError in cookielib domain checkRaymond Hettinger2005-02-051-4/+3
|
* Add a test for UTF-16 reading where the byte sequence doesn't start withWalter Dörwald2005-02-041-0/+9
| | | | a BOM.
* Recompiled after source changes.Thomas Heller2005-02-032-0/+0
|
* fix XMLFilterBase.resolveEntity() so the caller gets the resultFred Drake2005-02-031-1/+1
| | | | (PyXML bug #1112052)
* Security fix PSF-2005-001 for SimpleXMLRPCServer.py.Guido van Rossum2005-02-031-5/+29
|
* Add config-main.def option to make the 'history' feature non-cyclic.Kurt B. Kaiser2005-02-033-7/+23
| | | | | | | | Default remains cyclic. Python Patch 914546 Noam Raphael. M IdleHistory.py M NEWS.txt M config-main.def
* Simplify string comparison using startswith()Steve Holden2005-02-021-1/+1
|
* Removed ability to configure tabs indent from Options dialog. This 'feature'Kurt B. Kaiser2005-01-313-90/+41
| | | | | | | | | | | | | | | | | has never worked and no one has complained. It is still possible to set a default tabs (v. spaces) indent 'manually' via config-main.def (or to turn on tabs for the current EditorWindow via the Format menu) but IDLE will encourage indentation via spaces. Enable setting the indentation width using the Options dialog. Bug # 783877 Remove some commented out old code from configDialog.py (related to old methods for invoking the HelpBrowser). M EditorWindow.py M NEWS.txt M configHandler.py
* Revert os.py 1.75, and directly implement update.Martin v. Löwis2005-01-292-0/+29
| | | | Fixes #1110478 and #1100235.
* Add keybindings for del-word-left and del-word-right.Kurt B. Kaiser2005-01-284-2/+27
| | | | | | | M EditorWindow.py M NEWS.txt M config-keys.def M configHandler.py