summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* create_module_info(): New function: Modify a <section> to create aFred Drake1998-12-101-13/+99
| | | | | | | | | <moduleinfo> element based on various meta information, and strip some cruftiness. This is more usable for information extraction, and organizes the information more clearly. cleanup_synopses(): Rewrite to use create_module_info(), so this will work with multi-rooted "documents".
* Remove another {\rm ...} construct.Fred Drake1998-12-101-2/+2
| | | | Sheesh, where do these things come from?
* Don't pass around a list of known empty elements, since the ESISFred Drake1998-12-101-5/+6
| | | | contains "e" events for them. This wasn't used anyway.
* Remove prototypes for PyOS_strto[u]l -- Chris Herborth.Guido van Rossum1998-12-102-6/+0
|
* Add more SET_LINENO instructions in long argument listsGuido van Rossum1998-12-101-1/+7
|
* Remove prototype for PyOS_strtol -- Chris Herborth.Guido van Rossum1998-12-101-1/+0
|
* Add prototypes for PyOS_strto[u]l -- Chris Herborth.Guido van Rossum1998-12-101-0/+9
|
* Need to define DL_EXPORT, of course!Guido van Rossum1998-12-101-0/+1
|
* No longer needed.Guido van Rossum1998-12-101-473/+0
|
* Needed to add DL_EXPORT to (redundant?) extern decl of module init function.Guido van Rossum1998-12-102-2/+2
|
* Added a transform to start cleaning up the modulesynopsis stuff aFred Drake1998-12-101-0/+17
| | | | little; more thinking is needed about what we really want.
* Nits.Fred Drake1998-12-101-11/+11
|
* Handle SGML variant as well as XML variant. SGML is *much* moreFred Drake1998-12-101-0/+12
| | | | likely to be used.
* Removing the BeOS specific 'ar' utility -- no longer needed,Guido van Rossum1998-12-0916-3334/+0
| | | | says Chris Herborth.
* In read_multi, allow a subclass to override the class we instantiateGuido van Rossum1998-12-091-4/+7
| | | | | | when we create a recursive instance, by setting the class variable 'FieldStorageClass' to the desired class. By default, this is set to None, in which case we use self.__class__ (as before).
* In __getslice__, use self.__class__ instead of UserList.Guido van Rossum1998-12-091-1/+1
|
* Sjoerd Mullender writes:Guido van Rossum1998-12-091-1/+1
| | | | | | The example Makefile.pre.in should also look at Setup.thread and Setup.local. Otherwise modules such as thread don't get incorporated in extensions.
* Moved to Python 1.5.2/LibGuido van Rossum1998-12-081-343/+0
|
* Update the descriptions of strftime() and strptime() to avoidFred Drake1998-12-081-45/+47
| | | | confusion, and describe what the "directives" are about.
* Make VC++ 5.0 compiler happy.Guido van Rossum1998-12-081-12/+8
|
* Correct the poplib example. Stephan Richter pointed out some problemsGuido van Rossum1998-12-081-3/+3
| | | | with it.
* Correctly document atan2.Guido van Rossum1998-12-081-1/+1
|
* Rename the parameters of atan2(), based on comments from Guido & PeterFred Drake1998-12-081-2/+2
| | | | A. Koren <pkoren@hex.net>.
* Sjoerd patches the previous patch:Guido van Rossum1998-12-081-0/+10
| | | | | In literal mode, also don't do anything about entity and character references, or about closing CDATA elements.
* Undo the change here -- there's no point in declaring a staticGuido van Rossum1998-12-081-1/+1
| | | | function as DL_IMPORT()!
* Sjoerd writes:Guido van Rossum1998-12-072-2/+10
| | | | | | When literal mode is entered it should exit automatically when the matching close tag of the last unclosed open tag is encountered. This patch fixes this.