summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Added test_posix (hopefully it works on Windows).Neal Norwitz2003-02-172-130/+236
| | | | | Remove PyArg_ParseTuple() for methods which take no args, use METH_NOARGS instead
* Use correct function name to PyArg_ParseTuple("is_package").Neal Norwitz2003-02-172-6/+6
| | | | | | | | | | | | Fix off-by-1 error in normalize_line_endings(): when *p == '\0' the NUL was copied into q and q was auto-incremented, the loop was broken out of, then a newline was appended followed by a NUL. So the function, in effect, was strcpy() but added two extra chars which was caught by obmalloc in debug mode, since there was only room for 1 additional newline. Get test working under regrtest (added test_main).
* When installing resource files whose name ends in .rsrc use theJack Jansen2003-02-172-5/+45
| | | | | "copy anything to a data fork based resource file" trick of macresource. Fixes #688007.
* Optionally honour #! paths in scripts. Fixes #676358.Jack Jansen2003-02-1714-14/+54
|
* Actually run these tests from regrtest.py.Neal Norwitz2003-02-176-10/+38
| | | | | | There was no test_main() and the main body was protected by if __name__ == '__main__' so the test didn't happen on import either.
* Reword section about moving variables to os.path to match intent (orMichael W. Hudson2003-02-171-3/+4
| | | | at least, what I thought the intent was).
* - Added support for zip archivesJack Jansen2003-02-171-3/+13
| | | | - Better messages in case of a crash of the install-test script
* Patch 686397:Andrew MacIntyre2003-02-171-0/+6
| | | | | move definition of platform dependent path related variables from os.py to platform dependent path modules (ntpath, etc).
* Tweak to Skip's checkin of patch 686397:Andrew MacIntyre2003-02-171-3/+2
| | | | | | - 'os2' references in ntpath.py relate to the VACPP port, not the EMX port; - the VACPP port uses the same defpath as all other ntpath.py supported platforms except 'ce'.
* Better error messages and warnings.Jack Jansen2003-02-161-7/+11
|
* Added notes about pimp and bundlebuilder to the Mac section.Jack Jansen2003-02-161-0/+8
|
* When building an applet clear out the tempfile and dir afterwards.Jack Jansen2003-02-161-0/+5
|
* Fix for SF 686380, from SF patch 686771 by Ping. (errors trying toGuido van Rossum2003-02-161-1/+1
| | | | get help on os attributes)
* Make 2 module variables static. Assuming this is correct.Neal Norwitz2003-02-151-2/+2
|
* Add closing ) in commentNeal Norwitz2003-02-151-1/+1
|
* cPickle.c, load_build(): Taught cPickle how to pick apartTim Peters2003-02-155-30/+88
| | | | | | | | | | | | | | | | | | the optional proto 2 slot state. pickle.py, load_build(): CAUTION: Noted that cPickle's load_build and pickle's load_build really don't do the same things with the state, and didn't before this patch either. cPickle never tries to do .update(), and has no backoff if instance.__dict__ can't be retrieved. There are no tests that can tell the difference, and part of what cPickle's load_build() did looked accidental to me, so I don't know what the true intent is here. pickletester.py, test_pickle.py: Got rid of the hack for exempting cPickle from running some of the proto 2 tests. dictobject.c, PyDict_Next(): documented intended use.
* Moved setupDocs.py to Doc/setup.py and did some cleanup. It now at leastJack Jansen2003-02-141-49/+61
| | | | allows bdist, but it's still one big hack:-(
* cPickle produces NEWOBJ appropriately now. It still doesn't knowTim Peters2003-02-142-75/+201
| | | | how to unpickle the new slot-full state tuples.
* Patch for bug reported in patch #686627: import race condition inMarc-André Lemburg2003-02-141-1/+1
| | | | codecs registry startup.
* Migrate definitions of several platform-dependent path-related variablesSkip Montanaro2003-02-147-57/+77
| | | | into the relevant path modules. See patch #686397.
* - The audio driver tests (test_ossaudiodev.py andGuido van Rossum2003-02-144-0/+14
| | | | | | | test_linuxaudiodev.py) are no longer run by default. This is because they don't always work, depending on your hardware and software. To run these tests, you must use an invocation like ./python Lib/test/regrtest.py -u audio test_ossaudiodev
* Allow opening of alternate databases.Jack Jansen2003-02-141-7/+38
|
* Factored out classes for handling source and binary distributions. SourceJack Jansen2003-02-141-40/+126
| | | | | now means "distutils-based source", binary "bdist format archive". Also fixed various lurking bugs.
* Got building documentation from source to work.Jack Jansen2003-02-141-4/+3
|
* Port test_charmapcodec to PyUnit. From SF patch #662807Walter Dörwald2003-02-142-44/+32
|
* extsep description:Fred Drake2003-02-141-2/+3
| | | | | | - avoid "e.g." in text - record version information (should be backported)
* add missing description of os.extsepSkip Montanaro2003-02-141-0/+5
|
* SF bug #663701: sets module reviewRaymond Hettinger2003-02-142-11/+11
| | | | Renamed hook methods to use the double underscore convention.
* SF bug #663701. The caret wasn't printing well in the PDF documentation.Raymond Hettinger2003-02-141-1/+1
|
* Remove deps on mac doc files which have been removedNeal Norwitz2003-02-141-2/+0
|
* Fix docstring typoAndrew M. Kuchling2003-02-141-1/+1
|
* Fix comment typoAndrew M. Kuchling2003-02-141-1/+1
|
* Minor assorted cleanups; no semantic changes.Tim Peters2003-02-131-10/+16
|
* SF 685011: calendar module overflow handlingRaymond Hettinger2003-02-131-1/+1
| | | | | Restored a Py2.2 behavior to not range check the day of the month. A user application was this exploiting undocumented, accidental "feature".
* Add SF reference to news item.Guido van Rossum2003-02-131-1/+1
|
* The version of PyImport_Import() in cPickle is no longer needed (an editedTim Peters2003-02-131-64/+0
| | | | version was moved into import.c long ago), so squashed the duplication.
* - Finally fixed the bug in compile() and exec where a string endingGuido van Rossum2003-02-1310-13/+47
| | | | | | | | | with an indented code block but no newline would raise SyntaxError. This would have been a four-line change in parsetok.c... Except codeop.py depends on this behavior, so a compilation flag had to be invented that causes the tokenizer to revert to the old behavior; this required extra changes to 2 .h files, 2 .c files, and 2 .py files. (Fixes SF bug #501622.)
* save(): Reformat tail end just for clarity.Tim Peters2003-02-131-16/+17
|
* Removed unused cut'n'paste import.Tim Peters2003-02-131-1/+0
|
* We didn't have any tests making pickles with one of {pickle, cPickle},Tim Peters2003-02-132-0/+52
| | | | | | | and loading them via the other, except for the special cases of this Guido added to test_datetime.py for datetime module objects. The new test_xpickle.py tries all of pickletester's AbstractPickleTests in both x-module ways.
* Another dummy type.Guido van Rossum2003-02-131-0/+61
| | | | | Curious: Str didn't need me to put something in tp_new, but Null did. Why the difference?
* Added a simple NEWOBJ test. This is in the pickle-only part of theTim Peters2003-02-131-0/+15
| | | | test for now (cPickle can't yet produce NEWOBJ).
* Remove filecmpAndrew M. Kuchling2003-02-131-1/+0
|
* first cut at a shell script to view a single section from the librarySkip Montanaro2003-02-131-0/+129
| | | | reference manual
* Taught cPickle how to read pickles containing NEWOBJ. This won't getTim Peters2003-02-131-1/+75
| | | | | | exercised by the test suite before cPickle knows how to create NEWOBJ too. For now, it was just tried once by hand (via loading a NEWOBJ pickle created by pickle.py).
* Port test_userlist to PyUnit and add a few tests to increase codeWalter Dörwald2003-02-131-197/+257
| | | | coverage. From SF patch #662807
* SF patch #685738 by Michael Stone.Guido van Rossum2003-02-134-12/+39
| | | | | | | This changes the default __new__ to refuse arguments iff tp_init is the default __init__ implementation -- thus making it a TypeError when you try to pass arguments to a constructor if the class doesn't override at least __init__ or __new__.
* Re-enable compiling ossaudiodev now that it seems to work again.Guido van Rossum2003-02-132-2/+1
|
* Added a HIGHEST_PROTOCOL module attribute to pickle and cPickle.Tim Peters2003-02-133-10/+20
|
* Conditionalize another constantAndrew M. Kuchling2003-02-131-0/+2
|