summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Adding new built-in function sum, with docs and tests.Alex Martelli2003-04-225-1/+98
|
* Improved the bytecode optimizer.Raymond Hettinger2003-04-225-9/+97
| | | | | | | | | | | | | | * Can now test for basic blocks. * Optimize inverted comparisions. * Optimize unary_not followed by a conditional jump. * Added a new opcode, NOP, to keep code size constant. * Applied NOP to previous transformations where appropriate. Note, the NOP would not be necessary if other functions were added to re-target jump addresses and update the co_lnotab mapping. That would yield slightly faster and cleaner bytecode at the expense of optimizer simplicity and of keeping it decoupled from the line-numbering structure.
* minor cleanups and whitespace normalisationAndrew MacIntyre2003-04-224-81/+82
|
* Get test_capi & test_getargs2 to pass on alphasNeal Norwitz2003-04-221-6/+19
| | | | | | * UINT_MAX -> ULONG_MAX since we are dealing with longs * ParseTuple needs &int for 'i' and &long for 'l' There may be a better way to do this, but this works.
* Add helper function to get module name taking packages into account.Jeremy Hylton2003-04-211-1/+22
|
* Holistic refactoring.Jeremy Hylton2003-04-211-225/+159
| | | | | | | | | | | | | | | | | Remove "." in coverage output for lines with comments. Silence complaints in coverage output about unexecuted docstrings. Eliminate use of inspect module in favor of direct access to frame and code objects. We're in a trace function here: Efficiency counts! Remove unused code. Reflow long lines. Remove backwards compatibility for stored trace output from Zooko's experiment to add calledfuncs to the pickled dict. Move code to generate per-file coverage stats to a separate routine. Replace use of parser module with call to compile.
* Add a useful docstring to enumerate.Jeremy Hylton2003-04-211-1/+6
|
* Makefile & config.c:Andrew MacIntyre2003-04-213-273/+317
| | | | | | | | | | - restructure build for modules now in Python DLL README.os2emx - clean out old cruft no longer appropriate now that EMX port builds from CVS - reflect move of modules into core DLL - add section on building from source
* Makefile:Andrew MacIntyre2003-04-213-133/+153
| | | | | | | | | | | - add _csv module to the build list - various cleanups config.c: - various cleanups pyconfig.h: - various cleanups
* apply Mark Hammond's PEP 311 changes to the EMX ripoff of the WindowsAndrew MacIntyre2003-04-211-51/+6
| | | | popen[234]() code
* - DosSetExtLIBPATH objects to a NULL pointer, but a pointer to a NULLAndrew MacIntyre2003-04-211-7/+1
| | | | | | | string does what is expected (ie unset [BEGIN|END]LIBPATH) - set the size of the DosQuerySysInfo buffer correctly; it was safe, but incorrect (allowing a 1 element overrun)
* Test suite for optparse. This is a slightly-edited copy ofGreg Ward2003-04-211-0/+1210
| | | | test/test_optik.py (rev 1.19) from the Optik CVS.
* Update to Optik 1.4.1; here are the relevant bits of the change log:Greg Ward2003-04-211-49/+48
| | | | | | | | | | * Fixed some long-hidden bugs revealed by the new PyUnit-based test suite (thanks to Johannes Gijsbers the new test suite, improved tests that caught the bugs, and the bug fixes). * Make store_true/store_false store True/False rather than 1/0. Details available in Optik's CVS repository.
* More work on bug #672491 and patch #712900.Gustavo Niemeyer2003-04-203-24/+45
| | | | | | | | | | | | | | | | I've applied a modified version of Greg Chapman's patch. I've included the fixes without introducing the reorganization mentioned, for the sake of stability. Also, the second fix mentioned in the patch don't fix the mentioned problem anymore, because of the change introduced by patch #720991 (by Greg as well). The new fix wasn't complicated though, and is included as well. As a note. It seems that there are other places that require the "protection" of LASTMARK_SAVE()/LASTMARK_RESTORE(), and are just waiting for someone to find how to break them. Particularly, I belive that every recursion of SRE_MATCH() should be protected by these macros. I won't do that right now since I'm not completely sure about this, and we don't have much time for testing until the next release.
* - Changed shlex.split() method to have more useful andGustavo Niemeyer2003-04-203-16/+13
| | | | meaningful parameters.
* - Included examples documenting how the lastindex member ofGustavo Niemeyer2003-04-201-5/+9
| | | | match objects work.
* Finally added a -h option to print the module docstring and exit. ;)Barry Warsaw2003-04-201-2/+6
|
* - Fixed bug #672491. This change restores the behavior of lastindex/lastgroupGustavo Niemeyer2003-04-201-5/+4
| | | | | | to be compliant with previous python versions, by backing out the changes made in revision 2.84 which affected this. The bugfix for backtracking is still maintained.
* Patch #553171: Add writeback parameter. Also add protocol parameter.Martin v. Löwis2003-04-194-50/+193
|
* handle_system_exit(): This leaked the current exception info, inTim Peters2003-04-191-4/+16
| | | | | | | particular leaving the traceback object (and everything reachable from it) alive throughout shutdown. The patch is mostly from Guido. Bugfix candidate.
* Docstring clarifications.Tim Peters2003-04-191-7/+12
|
* - bool() called without arguments now returns False rather thanGuido van Rossum2003-04-194-2/+18
| | | | | | | raising an exception. This is consistent with calling the constructors for the other builtin types -- called without argument they all return the false value of that type. (SF patch #724135) Thanks to Alex Martelli.
* - Several methods of nntplib.NNTP have grown an optional file argumentGuido van Rossum2003-04-194-22/+69
| | | | | | which specifies a file where to divert the command's output (already supported by the body() method). (SF patch #720468) Thanks to Terry Carroll.
* New PyGILState_ API - implements pep 311, from patch 684256.Mark Hammond2003-04-1910-131/+395
|
* Mention the bz2 moduleAndrew M. Kuchling2003-04-191-25/+30
| | | | Various rewrites
* New file.Martin v. Löwis2003-04-191-0/+90
|
* Fully support 32-bit codes. Enable BIGCHARSET in UCS-4 builds.Martin v. Löwis2003-04-194-35/+90
|
* Patch #681152: Support escaped Unicode characters in classes. Fixes #612074.Martin v. Löwis2003-04-192-1/+5
| | | | Will backport to 2.2.
* Patch #716969: Detect thread creation failure. Will backport to 2.2.Martin v. Löwis2003-04-192-9/+9
|
* Make _strptime escape regex syntax in format string to prevent use in ↵Brett Cannon2003-04-192-1/+24
| | | | internal regex.
* as_string(): Added some text to the docstring to make it clear thatBarry Warsaw2003-04-181-0/+4
| | | | | it's a convenience only and give hints on what to do for more flexibility.
* Added some more documentation to as_string() to make it clear thatBarry Warsaw2003-04-181-0/+14
| | | | | it's a convenience only. Give an example of what to do for more flexibility.
* Change email address.Martin v. Löwis2003-04-187-8/+8
|
* Fix spelling of cedillas.Martin v. Löwis2003-04-182-4/+4
|
* Correct methoddesc environments.Martin v. Löwis2003-04-181-2/+2
|
* Add lib/libstringprep.tex lib/libdocxmlrpc.tex.Martin v. Löwis2003-04-181-0/+2
|
* Patch #536883: SimpleXMLRPCServer auto-docing subclass.Martin v. Löwis2003-04-185-0/+418
|
* Skip nameprep test 3.43, as we do allow unassigned characters. The testMartin v. Löwis2003-04-181-2/+4
| | | | fails only in UCS-2 mode, since it tests a non-BMP character.
* Don't double-space the "??? new object ..." messages.Guido van Rossum2003-04-181-1/+1
|
* Patch #718049: Setting exe_extension for cygwinJason Tishler2003-04-181-0/+2
| | | | | | | | | | | | | | | | | | | On cygwin, the setup.py script uses unixccompiler.py for compiling and linking C extensions. The unixccompiler.py script assumes that executables do not get special extensions, which makes sense for Unix. However, on Cygwin, executables get an .exe extension. This causes a problem during the configuration step (python setup.py config), in which some temporary executables may be generated. As unixccompiler.py does not know about the .exe extension, distutils fails to clean up after itself: it does not remove _configtest.exe but tries to remove _configtest instead. The attached patch to unixccompiler.py sets the correct exe_extension for cygwin by checking if sys.platform is 'cygwin'. With this patch, distutils cleans up after itself correctly. Michiel de Hoon University of Tokyo, Human Genome Center.
* - accepted (slightly) modified version of docs for the OptionGroupFred Drake2003-04-181-71/+108
| | | | | | | | class; closes SF patch #697941 - use em-dashes intead of en-dashes - section references: use a "tie" between the word "section" and the section number, use quotation marks around section titles - other minor markup corrections/cleanups
* Patch #711835: Remove unnecessary lock operations. Will backport to 2.2.Martin v. Löwis2003-04-181-8/+4
|
* Patch #714957: Explain ADDMODULE MARKER.Martin v. Löwis2003-04-181-2/+2
|
* Implement IDNA (Internationalized Domain Names in Applications).Martin v. Löwis2003-04-1812-9/+1671
|
* Heh -- I checked in an old version of this, at a time I documented theTim Peters2003-04-181-3/+1
| | | | internal read() as being a generator but hadn't yet changed it into one.
* _Py_PrintReferenceAddresses(): also print the type name. In real useTim Peters2003-04-184-2/+139
| | | | | | | | | I'm finding some pretty baffling output, like reprs consisting entirely of three left parens. At least this will let us know what type the object is (it's not str -- there's no quote character in the repr). New tool combinerefs.py, to combine the two output blocks produced via PYTHONDUMPREFS.
* Delete the 'h' test -- 'h' is no longer unsigned so the machinery hereGuido van Rossum2003-04-181-16/+1
| | | | can't test it. It's unchanged so why would we test it anyway...
* Roll back changes to 'h' format code -- too much breaks. OtherGuido van Rossum2003-04-181-5/+5
| | | | changes stay.
* Use True in a few more places.Neal Norwitz2003-04-172-8/+6
| | | | Use isinstance(somestring, basestring) instead of type() as per PEP 8
* Oops, missed updating doc to correct version for splitNeal Norwitz2003-04-171-1/+1
|