summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Thanks to Chris Herborth, the thread primitives now have proper Py*Guido van Rossum1998-12-2120-548/+507
| | | | | names in the source code (they already had those for the linker, through some smart macros; but the source still had the old, un-Py names).
* Chris H. adds MACHDEP=beos to the CCSHARED variableGuido van Rossum1998-12-211-1/+1
|
* Renaming Lib/plat-beos1 to Lib/plat-beos at Chris Herborth's requestGuido van Rossum1998-12-211-133/+0
|
* Suggestion by Tim Peters clarifying what "before global" means.Guido van Rossum1998-12-211-1/+2
| | | | | (Also added an XXX comment requesting clarification of module initialization -- TBD later.)
* Clarify descriptions of some operations; it's not always clear thatFred Drake1998-12-211-103/+107
| | | | | strings are not actually modified. Problem reported by Dr. Peter Stoehr <peter.stoehr@weihenstephan.org>.
* Add a bunch of index entries related to retrieving information fromFred Drake1998-12-211-0/+6
| | | | the process table.
* Marc-Andre Lemburg notes about statparse():Guido van Rossum1998-12-211-1/+1
| | | | | | | | | | | | | | | | | """ The message ID is returned lowercased and there is no way to access the original ID the server sent. Now at least some news servers are very picky about the case of the ID and return errors when fetching articles with mixed case given a lowercased version of the ID. The solution is simple: remove the string.lower() call. """ (I might add that the lowercasing was probably introduced as a result of sloppy copy-and-paste coding; there's a string.lower in a similar piece of code a bit higher in the source, that makes more sense -- it's lowercasing the group name.)
* Add dummy variable to avoid optimizer bug on OS/2 -- patch by Jeff Rush.Guido van Rossum1998-12-211-0/+2
| | | | (AMK: you should probably copy this into your patch set for pcre.)
* Use PyThreadState_GET() macro.Guido van Rossum1998-12-212-2/+2
|
* Make sure that -t and -tt also work on strings passed to compile().Guido van Rossum1998-12-211-0/+7
|
* 100 bottles of beer on the wall example.Guido van Rossum1998-12-211-0/+14
| | | | | | After a version by Fredrik Lundh that I found on the web somewhere. (I like mine better, but of course that may have to do with my alcohol consumption. :-)
* Add macro version of PyThreadState_GET(). This usesGuido van Rossum1998-12-211-0/+11
| | | | _PyThreadState_Current, defined in pystate.c.
* Make current_tstate a global, _PyThreadState_Current. This is toGuido van Rossum1998-12-211-10/+10
| | | | support a macro in pystate.h.
* Add XXX comment about the need to add a dump() method to the TextGuido van Rossum1998-12-211-0/+1
| | | | widget -- no time to do this right now.
* Add XXX comment about a test that doesn't seem right -- no time toGuido van Rossum1998-12-211-0/+1
| | | | explore this now.
* A mod whose author I forget. (I must've mislaid the email. If it'sGuido van Rossum1998-12-211-8/+19
| | | | | | | yours, please let me know for propoer acknowledgement.) This avoids recompiling files that haven't changed; it adds a -f option to force recompilation.
* Sjoerd Mullender:Guido van Rossum1998-12-211-24/+34
| | | | | | | | - Fixed a bug where a syntax error was reported when a document started with white space. (White space at the start of a document is valid if there is no XML declaration.) - Improved the speed quite a bit for documents that don't make use of namespaces.
* replace missing zalloc initialization (test_zlib now runsJeremy Hylton1998-12-211-0/+1
| | | | successfully)
* remove debugging fprintf (should have checked this before previousJeremy Hylton1998-12-211-2/+0
| | | | checkin)
* Typo discovered by Just.Guido van Rossum1998-12-211-1/+1
|
* Use __stdin__ instead of stdin to derive FileType -- safer againstGuido van Rossum1998-12-191-1/+1
| | | | assignments.
* Fred's sysconfig module.Greg Ward1998-12-181-0/+106
|
* patches from AndrewJeremy Hylton1998-12-181-23/+51
| | | | | | | | NOTE: There is still a bug of some sort in the behavior of zlib. In at least one case, inflate returns Z_OK (which is typically interpreted to mean that more output space is needed) when it has finished inflating a buffer. This has been reported as a bug to the zlib maintainers; we may need to change the Python interface.
* Chris H. writes:Guido van Rossum1998-12-181-1/+1
| | | | | If we're going to put the PyOS_strtol() proto in intobject.h we should include it here or the symbol isn't exported on PowerPC.
* Improved instructions by Chris H.Guido van Rossum1998-12-181-4/+26
|
* Initial checkin of distutils source files.Greg Ward1998-12-182-0/+301
|
* Sjoerd Mullender writes:Guido van Rossum1998-12-182-111/+180
| | | | | | | Here is my current version of xmllib.py and the documentation. This version has some API changes with respect to the version currently in Python (also the one in 1.5.2a). This version supports XML namespaces.
* When _PyString_Resize() reports failure, the variable referring to theFred Drake1998-12-181-5/+0
| | | | | string we wanted to resize is set to NULL. Don't Py_DECREF() those variables! (5 places)
* Fix the class browser to work even when the file is not on sys.path.Guido van Rossum1998-12-182-3/+3
|
* Forgot to check this in for Chris HerborthGuido van Rossum1998-12-181-0/+153
|
* Sjoerd Mullender:Guido van Rossum1998-12-181-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | | File names with "funny" characters get translated wrong by pathname2url (any variety). E.g. the (Unix) file "/ufs/sjoerd/#tmp" gets translated into "/ufs/sjoerd/#tmp" which, when interpreted as a URL is file "/ufs/sjoerd/" with fragment ID "tmp". Here's an easy fix. (An alternative fix would be to change the various implementations of pathname2url and url2pathname to include calls to quote and unquote. [The main problem is with the normal use of URLs: url = url2pathname(file) transmit url url, tag = splittag(url) urlopen(url) ] In addition, this patch fixes some uses of unquote: - the host part of URLs should be unquoted - the file path in the FTP URL should be unquoted before it is split into components. - because of the latter, I removed all unquoting from ftpwrapper, and moved it to the caller, but that is not essential
* Added a -q ('quiet') option to tabnanny, which causes only the names ofAndrew M. Kuchling1998-12-183-9/+21
| | | | offending files to be printed. Good for emacs `tabnanny.py *.py`
* The usualGuido van Rossum1998-12-171-153/+155
|
* Several tiny changes:Guido van Rossum1998-12-171-2/+4
| | | | | | - remove PowerPC specific compiler switch for BeOS (Chris Herborth) - FreeBSD/3 support - check for pthread_detach in libc instead of _create
* Patch by Chris Herborth:Guido van Rossum1998-12-171-0/+4
| | | | have to use a const-correct prototype on BeOS or the compiler gets uppity.
* Patch by Chris Herborth:Guido van Rossum1998-12-171-1/+7
| | | | | BeOS headers live in various non-standard places; luckily, there's an environment variable that lists them all.
* Changes for new BeOS port by Chris HerborthGuido van Rossum1998-12-173-149/+74
|
* Jim Fulton writes:Guido van Rossum1998-12-151-42/+73
| | | | | This fixes a bug that can cause core dumps when doing seeks in input StringIO objects. This has a number of other clean-ups.
* Move the prototype for dump_counts() to before where it is used.Guido van Rossum1998-12-151-4/+4
| | | | (This only applies when COUNT_ALLOCS is defined.)
* Sjoerd Mullender:Guido van Rossum1998-12-152-3/+7
| | | | | When printing missing modules, also print the module they were imported from.
* (py-goto-beginning-of-tqs): Finds the beginning of the triple quotedBarry Warsaw1998-12-151-11/+28
| | | | | | | | | | | | | | | | | | | | | | | string we find ourselves in, based on the passed in delimiter. (py-compute-indentation): Fixes for indentation errors when we land inside a triple quoted string. For example: def foo(): if os.path.isfile(o_pri_mbox_file) and os.path.isfile(o_pub_mbox_file): print """\ I found both a private and a public mbox archive file private: %s public : %s I won't move either file, but you should choose one and move it to %s You may want to merge them manually, but be careful about exposing private correspondences to the public.""" % ( o_pri_mbox_file, o_pub_mbox_file, mbox_file) *----indentation would be wrong on this line.
* Added most of the mechanism to change the strips from color variationsBarry Warsaw1998-12-151-20/+101
| | | | | | | | to color constants (i.e. red constant, green constant, blue constant). But I haven't hooked this up yet because the UI gets more crowded and the arrows don't reflect the correct values. Added "Go to Black" and "Go to White" buttons.
* A start on the TestModExp appletBarry Warsaw1998-12-153-6/+6
| | | | "Author" => "Contact"
* grid_bbox(): support new Tk API: grid bbox ?column row? ?column2 row2?Barry Warsaw1998-12-151-4/+8
|
* "Author" -> "Contact"Barry Warsaw1998-12-144-8/+8
|
* Fixed bug reported to Gregor Hoffleit:Andrew M. Kuchling1998-12-141-1/+1
| | | | | | | > mpz.mpz('\xff') should return mpz(255). Instead it returns > mpz(4294967295L). Looks like the constructor doesn't work with strings > containing characters above chr(128). Caused by using just 'char' where 'unsigned char' should have been used.
* As noted by Per Cederqvist, new_buffersize() sometimes returns theGuido van Rossum1998-12-111-2/+11
| | | | | | | buffer increment, and sometimes the new buffer size. Make it do what its name says, and fix the one place where this matters to the caller. Also add a comment explaining why we call lseek() and then ftell().
* When tracing references, reset the type and size of tuples allocatedGuido van Rossum1998-12-111-0/+4
| | | | | from the fast free list -- the type (at least) is reset by _Py_Dealloc().
* Need to initialize self->safe_constructors early on to prevent crashGuido van Rossum1998-12-111-0/+1
| | | | in early dealloc. Patch by Andrew Dalke.
* Gregor Hoffleit writes:Guido van Rossum1998-12-111-1/+1
| | | | | | | | | | | | | But IMHO, this problem really reveals an annoyance in Python's makesetup. makesetup puts the global include directories "$(INCLUDEPY) $(EXECINCLUDEPY)" in front of the directories defined by the module in Setup. Therefore global (potentially older) header files are preferred over the ones set by the module, which makes it hard to compile new versions of modules when the old versions are installed. AFAIK, the other way around is common practice for most other software. This patch to makesetup would be an potential fix for this problem, though I don't know if it breaks anything else.