summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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 #1051321 (fixes bugs 1010196, 1013525), by Mike Brown:Johannes Gijsbers2005-01-091-9/+44
| | | | | | | | | | | | | * Document hasFeature(), createDocument(), CreateDocumentType(), hasAttribute(), hasAttributeNS(). * In the documentation for createDocument(), it is now stated that the Python DOM API allows implementations to forego creation of the document element child node, if no namespace and local name arguments are given. (This possibility is left open and unaddressed in the W3C spec). * Addition by me: use 'name' rather than 'attname', for consistency with the DOM specification and the Python DOM API implementation.
* Bug #1098497: various small typo's, grammar and markup nits.Johannes Gijsbers2005-01-091-4/+4
|
* comment tweakSkip Montanaro2005-01-081-1/+1
|
* Add definitions for "up" and "down" commands that print/display the currentSkip Montanaro2005-01-081-2/+52
| | | | | | | | | | Python file/line when the current C execution frame is inside PyEval_EvalFrame. These are commented out by default because GDB sometimes crashes as a result (seems like a GDB bug). Add a pyframe command that displays the current Python stack frame. If the marked lines are uncommented, it will also cause Emacs/XEmacs to display the current file/line.
* 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-083-24/+50
| | | | | | | | | | | | | | | | `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-082-5/+14
| | | | | * 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-082-0/+6
| | | | | | | | _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
|
* Re-running python with/without the -Qnew flag uses incorrectly optimizedArmin Rigo2005-01-071-6/+3
| | | | | bytecodes from the previously saved .pyc files. Fixed by disabling the static optimization of BINARY_DIVIDE between two constants.
* Whitespace normalization.Tim Peters2005-01-079-47/+44
|
* [Bug 1083177] Describe signal() change; add a linkAndrew M. Kuchling2005-01-071-4/+14
|
* Allow relative URLs for included databases and packages.Jack Jansen2005-01-071-4/+7
|
* Patch #1097739 by Bob Ippolito:Jack Jansen2005-01-072-15/+15
| | | | | | | MacOSX: if we cannot use -undefined dynamic_lookup (such as on 10.2 or earlier) we link extension directly against the dynamic library in the framework in stead of against the framework. This will fix building extensions for 2.3 after 2.4 has been installed too.
* Oops, there was a tab in there.Jack Jansen2005-01-071-1/+1
|
* Workaround for the fact that urllib2 doesn't default to "file:" urls.Jack Jansen2005-01-071-0/+2
|
* Always set CONFIGURE_MACOSX_DEPLOYMENT_TARGET otherwise it may be setJack Jansen2005-01-072-3/+3
| | | | to an empty value and distutils will get confused lateron.
* SF #75103: imghdr -- identify JPEGs in EXIF formatRaymond Hettinger2005-01-073-1/+12
|
* Fix to use PEP7 brace style.Andrew McNamara2005-01-071-2/+4
|
* Improved the implementation of the internal "dialect" type. The newAndrew McNamara2005-01-073-212/+339
| | | | | implementation features better error reporting, and better compliance with the PEP.
* SF patch 1094011: Docs for file() vs open().Raymond Hettinger2005-01-071-3/+6
|
* Added example to os.stat()Facundo Batista2005-01-071-1/+11
|
* SF bug #1091740: garbage collector still documented as optionalRaymond Hettinger2005-01-071-5/+0
|
* Delete Reader_getiter and replace with PyObject_SelfIter.Andrew McNamara2005-01-061-8/+1
|
* add two missing itemsSkip Montanaro2005-01-051-0/+10
|
* add descriptions of exported data attributesSkip Montanaro2005-01-051-0/+25
|
* describe reset()Skip Montanaro2005-01-051-0/+4
|
* add a couple missing itemsSkip Montanaro2005-01-051-0/+10
|
* add a couple missing docstringsSkip Montanaro2005-01-051-0/+9
|
* Clarify that DictMixin is still useful. Only the UserDict class was supplanted.Raymond Hettinger2005-01-041-13/+11
|
* Fix typo.Martin v. Löwis2005-01-031-2/+2
|
* - Added an "installer" flavor, which uses the "open" command to installJack Jansen2005-01-031-7/+43
| | | | | | | | | something (overridable through Install-command entry) - Hidden status is now determined by flavor == hidden, not by missing Download-URL. Hidden packages behave like installer packages. - Made some error messages a bit more understandable. Because there's new functionality the version has been upped to 0.5.
* Removed unused line.Raymond Hettinger2005-01-031-1/+0
|
* Removed unused line.Raymond Hettinger2005-01-031-1/+0
|
* Since it is a possibility that LDFLAGS or CPPFLAGS were set with options thatBrett Cannon2005-01-021-2/+3
| | | | | in no way affect library or include directories the code must take that into account and not assume some options were found.
* Teach the peephole optimizer to fold simple constant expressions.Raymond Hettinger2005-01-023-1/+149
|
* Create the wrapper scripts for gcc/g++ too.Jack Jansen2005-01-011-26/+50
|
* On UNIX, when the execution of the child fails, we must waitpid() toPeter Astrand2005-01-011-0/+1
| | | | prevent leaving zombies.
* New subprocess utility function: check_call. Closes #1071764.Peter Astrand2005-01-013-2/+72
|
* SF patch #1094007: Remove witty comment in pydoc.pyRaymond Hettinger2005-01-011-2/+1
| | | | (Removed at Ping's request.)
* SF patch #1051395: locale.getdefaultlocale does not return tuple in some OSRaymond Hettinger2005-01-011-1/+1
| | | | (Contributed by Jiwon Seo.)
* SF Patch #1093896: miscellaneous doc typosRaymond Hettinger2005-01-0160-102/+103
|
* Remove some lambdas.Raymond Hettinger2004-12-311-3/+4
|