summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Bug #128475: mimetools.encode (sometimes) fails when called from a thread.Tim Peters2001-01-212-3/+11
| | | | | | | | pythonrun.c: In Py_Finalize, don't reset the initialized flag until after the exit funcs have run. atexit.py: in _run_exitfuncs, mutate the list of pending calls in a threadsafe way. This wasn't a contributor to bug 128475, it just burned my eyeballs when looking at that bug.
* more __all__ updatesSkip Montanaro2001-01-2012-0/+34
|
* added some tests for urlencodeSkip Montanaro2001-01-201-0/+16
|
* added __all__ lists to a number of Python modulesSkip Montanaro2001-01-2039-0/+138
| | | | | | | | added test script and expected output file as well this closes patch 103297. __all__ attributes will be added to other modules without first submitting a patch, just adding the necessary line to the test script to verify more-or-less correct implementation.
* docstring typoSkip Montanaro2001-01-201-1/+1
|
* I've been using gdb a lot lately -- I'm missing 'bt' as a command inGuido van Rossum2001-01-201-1/+4
| | | | pdb (pdb calls it 'where'). Added 'bt' as an alias for 'where'.
* rewrite of robotparser.py by Bastian Kleineidam. Closes patch 102229.Skip Montanaro2001-01-201-60/+179
|
* modify urlencode so sequences in the dict are treated as multivaluedSkip Montanaro2001-01-201-6/+36
| | | | parameters. This closes the code part of patch 103314.
* Fix comment.Neil Schemenauer2001-01-201-2/+2
|
* Better error message if ucnhash cannot be found (obscure attributeFredrik Lundh2001-01-202-3/+17
| | | | | | errors aren't that helpful), or doesn't contain what's expected from it. Also tweaked the test script so it compiles even if ucnhash is missing.
* Updating NEWS to match the current state of affairs.Marc-André Lemburg2001-01-201-7/+4
|
* Tim chastens:Barry Warsaw2001-01-201-1/+5
| | | | | | | | | | | | | | Barry, that comment belongs in the code, not in the checkin msg. The code *used* to do this correctly (as you well know, since you & I went thru considerable pain to fix this the first time). However, because the *reason* for the convolution wasn't recorded in the code as a comment, somebody threw it all away the first time it got reworked. c-code-isn't-often-self-explanatory-ly y'rs - tim default_3way_compare(): Stick the checkin message from 2.110 in a comment.
* default_3way_compare(): When comparing the pointers, they must be castBarry Warsaw2001-01-201-2/+2
| | | | | | | to integer types (i.e. Py_uintptr_t, our spelling of C9X's uintptr_t). ANSI specifies that pointer compares other than == and != to non-related structures are undefined. This quiets an Insure portability warning.
* SF patch #103336: Missing cast.Tim Peters2001-01-201-1/+1
|
* When running the tests twice, stuck a "Press any key to continue ..." pauseTim Peters2001-01-201-6/+5
| | | | | | between passes: Win9x DOS boxes are limited to 50 lines max, and the result of the first pass scrolls off irretrievably otherwise. Also simplified the goto-laden logic a bit.
* Various tweaks for Python 2.1a1.Jack Jansen2001-01-193-8/+17
|
* Treat an empty kwdict argument the same as a missing one.Jack Jansen2001-01-191-20/+20
|
* Undefine and redefine PRAGMA_ALIGN_SUPPORTED under Carbon. Apple's ↵Jack Jansen2001-01-191-0/+8
| | | | "solution" of a funny define makes portable code impossible:-(
* Use #if TARGET_API_MAC_CARBON to determine carbon/classic macos, not #ifdef.Jack Jansen2001-01-191-1/+1
|
* Make the 'time' argument to the timemodule functions strftime, asctime,Thomas Wouters2001-01-193-42/+75
| | | | | | ctime, gmtime and localtime optional, defaulting to 'the current time' in all cases. Adjust docs, add news item. Also convert all argument-handling to METH_VARARGS. Closes SF patch #103265.
* Fixed a bunch of typos caught by Gilles Civario.Fred Drake2001-01-191-17/+20
|
* Clarify comments about returning None using a return without an expression;Fred Drake2001-01-191-3/+2
| | | | | | this is not hard to explain! Closes SF bug #129345.
* Now that Marc-Andre has retracted unistr(), remove the tests.Guido van Rossum2001-01-192-12/+0
|
* A hack to augment sys.path with the build/lib.<platform> directoryGuido van Rossum2001-01-191-0/+9
| | | | | | | | | | created by Andrew's setup.py script, *if* we're actually running from the build directory. (The test for that: whether the sys.path[-1] ends in "/Modules".) This has one disadvantage: it imports a fair amount of code from the distutils package, just in order to be able to calculate the correct pathname. See if I care. :-)
* Run tests twice by default, first time deleting .pyc/.pyo files.Tim Peters2001-01-191-2/+20
| | | | New option "-q" to leave .pyc/.pyo alone.
* Backed out the unistr() builtin.Marc-André Lemburg2001-01-192-25/+0
|
* Use a saner test filename, to work on Windows.Guido van Rossum2001-01-191-3/+1
|
* Delete the bytecode from the library and tests before running theGuido van Rossum2001-01-191-0/+4
| | | | | | tests for the first time -- like the Unix Makefile does. This avoids not catching problems in the bytecode generator and/or bytecode marshalling.
* "make test" was still broken when building in a subdirectory: Andrew'sGuido van Rossum2001-01-191-2/+2
| | | | | fix set PYTHONPATH to something starting with $(srcdir)/build/lib.... The use of $(srcdir) was wrong here, it should be ./build/lib...
* OK, checking in patch 103329.Moshe Zadka2001-01-191-4/+5
| | | | | | Please check it against your nearest pop server -- mine doesn't support APOP (I checked I'm getting the same error message, though)
* Add some regression tests of coredump bugs in funcobject.c 2.31. AlsoBarry Warsaw2001-01-191-0/+16
| | | | | added a test of a coredump that would occur when del'ing func_defaults (put here for convenience).
* Application and elaboration of patch #103305 to fix core dumps whenBarry Warsaw2001-01-191-30/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | del'ing func.func_dict. I took the opportunity to also clean up some other nits with the code, namely core dumps when del'ing func_defaults and KeyError instead of AttributeError when del'ing a non-existant function attribute. Specifically, func_memberlist: Move func_dict and __dict__ into here instead of special casing them in the setattro and getattro methods. I don't remember why I took them out of here before I first uploaded the PEP 232 patch. :/ func_getattro(): No need to special case __dict__/func_dict since their now in the func_memberlist and PyMember_Get() should Do The Right Thing (i.e. transforms NULL values into Py_None). func_setattro(): Document the intended behavior of del'ing or setting to None one of the special func_* attributes. I.e.: func_code - can only be set to a code object. It can't be del'd or set to None. func_defaults - can be del'd. Can only be set to None or a tuple. func_dict - can be del'd. Can only be set to None or a dictionary. Fix core dumps and incorrect exceptions as described above. Also, if we're del'ing an arbitrary function attribute but func_dict is NULL, don't create func_dict before discovering that we'll get an AttributeError anyway.
* gethash/cmpname both looked beyond the end of the character name.Fredrik Lundh2001-01-191-16/+14
| | | | This patch makes u"\N{x}" a bit less dependent on pure luck...
* Repair "selective cut-&-paste" screwup.Tim Peters2001-01-191-3/+2
|
* Change verify() function to raise TestFailed, not AssertionError.Guido van Rossum2001-01-192-8/+8
| | | | | | (I realize that I didn't really test this, because all the tests succeed, so verify() never raised an AssertionError -- but the test suite still succeeds, so I'm not too worried.)
* GvR pointed out the correct way to check for statically built modules;Andrew M. Kuchling2001-01-191-8/+8
| | | | | sys.builtin_module_names Add SSL directories in /usr/contrib/ for FreeBSD
* Bump __version__; add authorship note for the BaseServer patch.Guido van Rossum2001-01-191-1/+2
|
* Add Jason Tishler to the ACKS fileAndrew M. Kuchling2001-01-191-0/+1
|
* Patch #103220 from Jason Tishler:Andrew M. Kuchling2001-01-191-0/+5
| | | | | | This patch adds support for Cygwin to util.get_platform(). A Cygwin specific case is needed due to the format of Cygwin's uname command, which contains '/' characters.
* Minor patch from Thomas Gellekum:Andrew M. Kuchling2001-01-191-8/+3
| | | | | | * Deletes the Panel_NoArgReturnStringFunction() macro, which isn't used anymore * Adjusts two comments.
* new unicode name database (~160k)Fredrik Lundh2001-01-192-12174/+8471
|
* improved the ucnhash test a bitFredrik Lundh2001-01-192-3/+11
|
* added "getcode" and "getname" methods to the ucnhash module (they'reFredrik Lundh2001-01-192-13/+75
| | | | | probably more useful for the test code than for any applications, but one never knows...)
* Color all word instances of "as" after "import", & on the same line, as ifTim Peters2001-01-191-0/+13
| | | | keywords. Cheap approximation to the truth.
* refactored the unicodeobject/ucnhash interface, to hide theFredrik Lundh2001-01-194-210/+146
| | | | | | | implementation details inside the ucnhash module. also cleaned up the unicode copyright blurb a little; Secret Labs' internal revision history isn't that interesting...
* Update the example DLL instructions for 2.1. Add example.def to theTim Peters2001-01-192-11/+16
| | | | MSVC project file (as the instructions always recommended doing).
* urllib.py very recently changed to produce uppercase escapes, but noTim Peters2001-01-191-3/+8
| | | | corresponding changes were made to its std test.
* Whitespace normalization.Tim Peters2001-01-191-1/+1
|
* test_urllib is failing on Windows. I don't know why, but I can at leastTim Peters2001-01-191-5/+5
| | | | change the test to give a clue about *where* it's failing.
* Use constructor form of "raise"; normalize <wink> docstrings.Tim Peters2001-01-191-9/+5
|