summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Bug #489256: remove out of date and out of place profile.doc, and letJohannes Gijsbers2005-01-102-715/+3
| | | | profile.help() point at the library reference instead of profile.doc.
* Fix parsing of csv files with escapes (escape character previously would beAndrew McNamara2005-01-101-2/+2
| | | | left in stream).
* Patch #712317: In URLs such as http://www.example.com?query=spam, treat '?' asJohannes Gijsbers2005-01-092-41/+63
| | | | | | a delimiter. Previously, the 'network location' (<authority> in RFC 2396) would become 'www.example.com?query=spam', while RFC 2396 does not allow a '?' in <authority>. See bug #548176 for further discussion.
* Patch #1095362: replace hardcoded test for POST/GET with call to get_method,Johannes Gijsbers2005-01-091-1/+1
| | | | removing some duplication and gaining some flexibility in the process.
* Move code in __name__ == '__main__' block into main() function, rewrite code soJohannes Gijsbers2005-01-091-16/+14
| | | | there's no need to subclass OptionParser.
* Patch #936774: unify the display of data descriptors, including slots,Johannes Gijsbers2005-01-081-37/+27
| | | | | | | | | | | | | | | properties, and custom descriptors. * removed special handling of properties * added special handling of data descriptors - All data descriptors are grouped together in a section. For each item, the attribute name and doc string, if present, is displayed. * disabled display of __slots__ attribute - since slots are descriptors, they are listed in the section described above Thanks to John Belmonte for the patch!
* Replace rfc822.parseaddr with email.Utils.parseaddr. The implementation isJohannes Gijsbers2005-01-081-2/+2
| | | | still the same, so there should be no backwards-compatibility problems.
* Patch #1079734: remove dependencies on (deprecated) rfc822 and mimetoolsJohannes Gijsbers2005-01-081-7/+9
| | | | modules, replacing with email. Thanks to Josh Hoyt for the patch!
* Clean up tests by reusing functions from other modules:Johannes Gijsbers2005-01-081-31/+8
| | | | | | * replace deltree with shutil.rmtree() * replace mkdirs with os.makedirs() * fold touchfile into GlobTests.mktemp()
* Patch #943206:Johannes Gijsbers2005-01-082-23/+43
| | | | | | | | | | | | | | | | `glob.glob()` currently calls itself recursively to build a list of matches of the dirname part of the pattern and then filters by the basename part. This is effectively BFS. ``glob.glob('*/*/*/*/*/foo')`` will build a huge list of all directories 5 levels deep even if only a handful of them contain a ``foo`` entry. A generator-based recusion would never have to store these list at once by implementing DFS. This patch converts the `glob` function to an `iglob` recursive generator . `glob()` now just returns ``list(iglob(pattern))``. I also cleaned up the code a bit (reduced duplicate `has_magic()` checks and created a second `glob0` helper func so that the main loop need not be duplicated). Thanks to Cherniavsky Beni for the patch!
* Patch #1094015:Johannes Gijsbers2005-01-081-1/+2
| | | | | * Use os.makedirs() instead os.mkdir(). (bug #975763) * Use copystat() to copy directory bits (bug #1048878)
* threading._DummyThread.__init__(): document obscure new code.Tim Peters2005-01-082-4/+31
| | | | | | | | test_threading.test_foreign_thread(): new test does a basic check that "foreign" threads can using the threading module, and that they create a _DummyThread instance in at least one use case. This isn't a very good test, since a thread created by thread.start_new_thread() isn't particularly "foreign".
* Converted to a unittest. Added checks that the bounded semaphore actuallyTim Peters2005-01-081-37/+73
| | | | does what it's supposed to do.
* In _DummyThread objects the lock stored in __block (allocated thanks toBrett Cannon2005-01-081-0/+1
| | | | | | | | _Thread.__init__) was never used. This is a waste since locks use OS primitives that are in limited supply. So the lock is deleted in _DummyThread.__init__ . Closes bug #1089632.
* Remove test for BINARY_DIVIDE.Raymond Hettinger2005-01-071-1/+0
|
* Whitespace normalization.Tim Peters2005-01-076-37/+36
|
* Allow relative URLs for included databases and packages.Jack Jansen2005-01-071-4/+7
|