summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fixed typo in verbose output.Brett Cannon2005-01-271-1/+1
| | | | Closes bug #1110998. Thanks Matthew Bogosian.
* Do not fold a constant if a large sequence will result.Raymond Hettinger2005-01-261-0/+4
| | | | Saves space in the presence of code like: (None,)*10000
* shutil.copytree: move copystat call for the directory after the loopJohannes Gijsbers2005-01-231-1/+1
| | | | | copying files inside the directory, as that loop changes the atime and mtime.
* Truncate st_?time before comparing it with ST_?TIME in the tests.Martin v. Löwis2005-01-231-1/+5
|
* Add a slice test with high < low.Walter Dörwald2005-01-211-0/+5
|
* Fix [ 1103844 ] fix distutils.install.dump_dirs() with negated options.Thomas Heller2005-01-201-2/+7
| | | | Will backport myself.
* 1. Polish tabbing code.Kurt B. Kaiser2005-01-194-62/+71
| | | | | | | | | | | | | | | | | 2. Restore use of set_indentation_params(), was dead code since Autoindent.py was merged into EditorWindow.py. 3. Make usetabs, indentwidth, tabwidth, context_use_ps1 instance vars and set in EditorWindow.__init__() 4. In PyShell.__init__() set usetabs, indentwidth and context_use_ps1 explicitly (config() is eliminated). 5. Add Tabnanny check when Module is Run/F5, not just when Checked. 6. Discourage using an indent width other than 8 when using tabs to indent Python code. M EditorWindow.py M NEWS.txt M PyShell.py M ScriptBinding.py
* If an extension can't be loaded, print warning and skip it instead ofKurt B. Kaiser2005-01-182-3/+9
| | | | erroring out.
* allow triple-quoted string output from reconvert.quote()Skip Montanaro2005-01-161-1/+1
|
* Patch #1100140: improved smtp connect debuggingJohannes Gijsbers2005-01-161-2/+2
| | | | | Don't print the same (host, port) tuple thrice when debugging, but first print (host, port), then (ip, port) and then the error message.
* Added SEEK_* constants. Fixes #711830.Martin v. Löwis2005-01-161-1/+8
|
* Use descriptors.Guido van Rossum2005-01-165-11/+9
|
* Use decorators.Guido van Rossum2005-01-161-3/+4
|
* Use decorators.Guido van Rossum2005-01-162-11/+6
|
* Whitespace normalization.Tim Peters2005-01-132-8/+8
|
* Improved SysLogHandler error recovery (patch by Erik Forsberg)Vinay Sajip2005-01-131-9/+16
|
* Add strptime() constructor to datetime class. Thanks to Josh Spoerri forSkip Montanaro2005-01-131-0/+9
| | | | the changes.
* Add counting of source iterator lines to the reader object - handy forAndrew McNamara2005-01-121-1/+13
| | | | | user error messages (otherwise difficult to do without instrumenting the source).
* When quoting=QUOTE_NONNUMERIC, the reader now casts unquoted fieldsAndrew McNamara2005-01-121-0/+6
| | | | to floats.
* Fix logic problem in quoting=csv.QUOTE_ALL, quotechar=None check, add test.Andrew McNamara2005-01-121-0/+2
|
* When using QUOTE_NONNUMERIC, we now test for "numericness" withAndrew McNamara2005-01-121-10/+20
| | | | | | | | PyNumber_Check, rather than trying to convert to a float. Reimplemented writer - now raises exceptions when it sees a quotechar but neither doublequote or escapechar are set. Doublequote results are now more consistent (eg, single quote should generate """", rather than "", which is ambiguous).
* Rename csv.set_field_limit to csv.field_size_limit (since it both sets andAndrew McNamara2005-01-122-8/+8
| | | | gets).
* Improve test coverage fractionally.Andrew McNamara2005-01-121-9/+23
|
* Improve error handling when .idlerc can't be created.Kurt B. Kaiser2005-01-111-14/+16
|
* SF bug #1099516: tempfile files not types.FileTypeRaymond Hettinger2005-01-111-5/+5
| | | | Clarified that the returned object is file-like rather than an actual file.
* Set an upper limit on the size of the field buffer, raise an exceptionAndrew McNamara2005-01-112-2/+10
| | | | | | | when this limit is reached. Limit defaults to 128k, and is changed by module set_field_limit() method. Previously, an unmatched quote character could result in the entire file being read into the field buffer, potentially exhausting virtual memory.
* SF 1098985: set objects cannot be marshalledRaymond Hettinger2005-01-111-0/+12
|
* Replace python-coded validation of csv dialect with a call to the CAndrew McNamara2005-01-112-44/+7
| | | | dialect type (which has a better idea of what is and isn't valid).
* No longer attempt to instantiate python classes describing dialects. ThisAndrew McNamara2005-01-111-18/+0
| | | | | | was done because we were previously performing validation of the dialect from python, but this is now down within the C module. Also, the method we were using to detect classes did not work with new-style classes.
* Allow dialect-describing keywords to be supplied to register_dialect,Andrew McNamara2005-01-111-1/+10
| | | | | record objects of internal dialect type, rather than instances of python objects.
* Whitespace normalization.Tim Peters2005-01-101-3/+3
|
* Fix and test for SF bug #1098990: codec readline() splits lines apart.Walter Dörwald2005-01-102-2/+32
|