cvs2svn [Tue, 22 Dec 1998 21:43:35 +0000 (21:43 +0000)]
This commit was manufactured by cvs2svn to create tag 'r152b1'.
Guido van Rossum [Tue, 22 Dec 1998 21:43:35 +0000 (21:43 +0000)]
Use installed Tcl lib files -- also for Debug configuration
Guido van Rossum [Tue, 22 Dec 1998 21:18:40 +0000 (21:18 +0000)]
Use installed Tcl lib files
Barry Warsaw [Tue, 22 Dec 1998 20:37:36 +0000 (20:37 +0000)]
Small, and final docstring merge with Dragon's version.
Fred Drake [Tue, 22 Dec 1998 18:46:13 +0000 (18:46 +0000)]
Added a \versionchanged since the API changed to support
namespaces with 1.5.2.
Added an index entry.
Fixed XML expansion: XML is the "Extensible Markup Language", not the
"eXtended Markup Language".
Guido van Rossum [Tue, 22 Dec 1998 18:45:16 +0000 (18:45 +0000)]
Added Tcl 8.0.4 installer. Added Tools/idle.
Fred Drake [Tue, 22 Dec 1998 18:40:50 +0000 (18:40 +0000)]
Added information on when this was added, allowing us to release the
documentation on the Web while people are still using < 1.5.2b1.
Fred Drake [Tue, 22 Dec 1998 18:27:22 +0000 (18:27 +0000)]
Update the date.
Fred Drake [Tue, 22 Dec 1998 18:24:13 +0000 (18:24 +0000)]
Adjust markup to match current conventions, and make it formattable.
Fred Drake [Tue, 22 Dec 1998 18:19:45 +0000 (18:19 +0000)]
Start of text that describes differences between match and search.
Strengthen pointers to the search() function and method.
Fred Drake [Tue, 22 Dec 1998 18:15:04 +0000 (18:15 +0000)]
Improve a couple of comments.
Fred Drake [Tue, 22 Dec 1998 18:06:02 +0000 (18:06 +0000)]
Use \moduleauthor and \sectionauthor instead of a comment to credit
the author (just happened to notice this one).
Fred Drake [Tue, 22 Dec 1998 18:04:48 +0000 (18:04 +0000)]
Add an explanation about what the example does and doesn't do.
Fix an appearantly new behavior with latex2html with quoting. (Good
incentive to work on the SGML conversion! ;)
Fred Drake [Tue, 22 Dec 1998 18:02:25 +0000 (18:02 +0000)]
do_cmd_rfc(): Make the "RFC ###" a hyperlink to the master RFC
repository.
Fred Drake [Tue, 22 Dec 1998 17:40:43 +0000 (17:40 +0000)]
Added libnetrc.tex and libshlex.tex to LIBFILES.
Guido van Rossum [Tue, 22 Dec 1998 16:49:16 +0000 (16:49 +0000)]
Add warning to Netrc's docstring that it is obsolete -- use the netrc
module instead. (The main advantage of the latter is that it comes
with documentation.)
Guido van Rossum [Tue, 22 Dec 1998 16:41:09 +0000 (16:41 +0000)]
Added shlex and netrc modules; added warning about urllib change
affecting subclasses (which Jeremy just found out).
Guido van Rossum [Tue, 22 Dec 1998 16:37:01 +0000 (16:37 +0000)]
Optimistically, we label this as ready to go today.
Also commit several improvements in the descriptions of the QNX and
BeOS port, both by Chris Herborth.
Guido van Rossum [Tue, 22 Dec 1998 14:23:50 +0000 (14:23 +0000)]
New test function by Sjoerd, adding -t option.
Guido van Rossum [Tue, 22 Dec 1998 13:50:33 +0000 (13:50 +0000)]
The usual.
# Message to all python-checkins readers: we have a problem with the
# CVS mirroring software. You can't check out the latest changes yet.
# We hope to have fixed this by noon EST today.
Guido van Rossum [Tue, 22 Dec 1998 13:44:01 +0000 (13:44 +0000)]
Fix for modulefinder so that it prints all modules an unknown module
was referenced in instead of only the last. (Sjoerd Mullender)
Guido van Rossum [Tue, 22 Dec 1998 13:40:55 +0000 (13:40 +0000)]
Last-minute oopsie by Chris H. (Chris, please check that I did this right!)
Guido van Rossum [Tue, 22 Dec 1998 13:35:29 +0000 (13:35 +0000)]
Last-minute update by Chris H.
Greg Ward [Tue, 22 Dec 1998 12:42:04 +0000 (12:42 +0000)]
Applied Fred's patch to fix the bugs that John Skaller noticed.
Guido van Rossum [Tue, 22 Dec 1998 05:19:29 +0000 (05:19 +0000)]
Adding shlex and netrc by Eric Raymond.
Guido van Rossum [Tue, 22 Dec 1998 05:18:24 +0000 (05:18 +0000)]
Adding libshlex and libnetrc by Eric Raymond.
Barry Warsaw [Tue, 22 Dec 1998 03:24:27 +0000 (03:24 +0000)]
A few other docstring fixes, most importantly to be a little nicer to
Emacs ;-)
Barry Warsaw [Tue, 22 Dec 1998 03:02:20 +0000 (03:02 +0000)]
Nothing earthshattering, just some fixes to typos and other formatting
bugs in various docstrings.
Guido van Rossum [Mon, 21 Dec 1998 21:45:04 +0000 (21:45 +0000)]
News for 1.5.2b1. Moved news before 1.5.1 to HISTORY.
Guido van Rossum [Mon, 21 Dec 1998 21:42:22 +0000 (21:42 +0000)]
New names. Keep those contributions coming!
Guido van Rossum [Mon, 21 Dec 1998 21:41:14 +0000 (21:41 +0000)]
Moved history up to and including 1.5.1 here.
Guido van Rossum [Mon, 21 Dec 1998 20:44:53 +0000 (20:44 +0000)]
Get rid of python_nt.def -- it's no longer needed!
Guido van Rossum [Mon, 21 Dec 1998 20:21:19 +0000 (20:21 +0000)]
I can't seem to do anything right :-)
As Chris H. points out, I should have added 'extern' to the
declaration of _PyThreadState_Current. Here it is.
Guido van Rossum [Mon, 21 Dec 1998 19:51:00 +0000 (19:51 +0000)]
Improve comment for PyImport_Import() as suggested by Bill Tutt.
Guido van Rossum [Mon, 21 Dec 1998 19:32:43 +0000 (19:32 +0000)]
Thanks to Chris Herborth, the thread primitives now have proper Py*
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).
Guido van Rossum [Mon, 21 Dec 1998 19:28:37 +0000 (19:28 +0000)]
Chris H. adds MACHDEP=beos to the CCSHARED variable
Guido van Rossum [Mon, 21 Dec 1998 19:18:55 +0000 (19:18 +0000)]
Renaming Lib/plat-beos1 to Lib/plat-beos at Chris Herborth's request
Guido van Rossum [Mon, 21 Dec 1998 18:57:36 +0000 (18:57 +0000)]
Suggestion by Tim Peters clarifying what "before global" means.
(Also added an XXX comment requesting clarification of module
initialization -- TBD later.)
Fred Drake [Mon, 21 Dec 1998 18:56:13 +0000 (18:56 +0000)]
Clarify descriptions of some operations; it's not always clear that
strings are not actually modified. Problem reported by Dr. Peter
Stoehr <peter.stoehr@weihenstephan.org>.
Fred Drake [Mon, 21 Dec 1998 18:52:53 +0000 (18:52 +0000)]
Add a bunch of index entries related to retrieving information from
the process table.
Guido van Rossum [Mon, 21 Dec 1998 18:51:23 +0000 (18:51 +0000)]
Marc-Andre Lemburg notes about statparse():
"""
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.)
Guido van Rossum [Mon, 21 Dec 1998 18:35:49 +0000 (18:35 +0000)]
Add dummy variable to avoid optimizer bug on OS/2 -- patch by Jeff Rush.
(AMK: you should probably copy this into your patch set for pcre.)
Guido van Rossum [Mon, 21 Dec 1998 18:33:30 +0000 (18:33 +0000)]
Use PyThreadState_GET() macro.
Guido van Rossum [Mon, 21 Dec 1998 18:32:40 +0000 (18:32 +0000)]
Make sure that -t and -tt also work on strings passed to compile().
Guido van Rossum [Mon, 21 Dec 1998 18:30:20 +0000 (18:30 +0000)]
100 bottles of beer on the wall example.
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. :-)
Guido van Rossum [Mon, 21 Dec 1998 18:28:10 +0000 (18:28 +0000)]
Add macro version of PyThreadState_GET(). This uses
_PyThreadState_Current, defined in pystate.c.
Guido van Rossum [Mon, 21 Dec 1998 18:27:28 +0000 (18:27 +0000)]
Make current_tstate a global, _PyThreadState_Current. This is to
support a macro in pystate.h.
Guido van Rossum [Mon, 21 Dec 1998 18:25:03 +0000 (18:25 +0000)]
Add XXX comment about the need to add a dump() method to the Text
widget -- no time to do this right now.
Guido van Rossum [Mon, 21 Dec 1998 18:24:09 +0000 (18:24 +0000)]
Add XXX comment about a test that doesn't seem right -- no time to
explore this now.
Guido van Rossum [Mon, 21 Dec 1998 18:23:38 +0000 (18:23 +0000)]
A mod whose author I forget. (I must've mislaid the email. If it's
yours, please let me know for propoer acknowledgement.)
This avoids recompiling files that haven't changed; it adds a -f
option to force recompilation.
Guido van Rossum [Mon, 21 Dec 1998 18:15:28 +0000 (18:15 +0000)]
Sjoerd Mullender:
- 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.
Jeremy Hylton [Mon, 21 Dec 1998 17:15:00 +0000 (17:15 +0000)]
replace missing zalloc initialization (test_zlib now runs
successfully)
Jeremy Hylton [Mon, 21 Dec 1998 16:40:21 +0000 (16:40 +0000)]
remove debugging fprintf (should have checked this before previous
checkin)
Guido van Rossum [Mon, 21 Dec 1998 16:26:31 +0000 (16:26 +0000)]
Typo discovered by Just.
Guido van Rossum [Sat, 19 Dec 1998 23:53:33 +0000 (23:53 +0000)]
Use __stdin__ instead of stdin to derive FileType -- safer against
assignments.
Greg Ward [Fri, 18 Dec 1998 23:46:33 +0000 (23:46 +0000)]
Fred's sysconfig module.
Jeremy Hylton [Fri, 18 Dec 1998 22:13:11 +0000 (22:13 +0000)]
patches from Andrew
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.
Guido van Rossum [Fri, 18 Dec 1998 22:02:37 +0000 (22:02 +0000)]
Chris H. writes:
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.
Guido van Rossum [Fri, 18 Dec 1998 22:00:58 +0000 (22:00 +0000)]
Improved instructions by Chris H.
Greg Ward [Fri, 18 Dec 1998 22:00:30 +0000 (22:00 +0000)]
Initial checkin of distutils source files.
Guido van Rossum [Fri, 18 Dec 1998 20:17:13 +0000 (20:17 +0000)]
Sjoerd Mullender writes:
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.
Fred Drake [Fri, 18 Dec 1998 19:46:59 +0000 (19:46 +0000)]
When _PyString_Resize() reports failure, the variable referring to the
string we wanted to resize is set to NULL. Don't Py_DECREF() those
variables! (5 places)
Guido van Rossum [Fri, 18 Dec 1998 15:52:54 +0000 (15:52 +0000)]
Fix the class browser to work even when the file is not on sys.path.
Guido van Rossum [Fri, 18 Dec 1998 15:37:14 +0000 (15:37 +0000)]
Forgot to check this in for Chris Herborth
Guido van Rossum [Fri, 18 Dec 1998 15:25:22 +0000 (15:25 +0000)]
Sjoerd Mullender:
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
Andrew M. Kuchling [Fri, 18 Dec 1998 13:56:58 +0000 (13:56 +0000)]
Added a -q ('quiet') option to tabnanny, which causes only the names of
offending files to be printed. Good for emacs `tabnanny.py *.py`
Guido van Rossum [Thu, 17 Dec 1998 18:08:55 +0000 (18:08 +0000)]
The usual
Guido van Rossum [Thu, 17 Dec 1998 18:07:35 +0000 (18:07 +0000)]
Several tiny changes:
- remove PowerPC specific compiler switch for BeOS (Chris Herborth)
- FreeBSD/3 support
- check for pthread_detach in libc instead of _create
Guido van Rossum [Thu, 17 Dec 1998 18:03:10 +0000 (18:03 +0000)]
Patch by Chris Herborth:
have to use a const-correct prototype on BeOS or the compiler gets uppity.
Guido van Rossum [Thu, 17 Dec 1998 18:02:15 +0000 (18:02 +0000)]
Patch by Chris Herborth:
BeOS headers live in various non-standard places;
luckily, there's an environment variable that lists them all.
Guido van Rossum [Thu, 17 Dec 1998 18:00:33 +0000 (18:00 +0000)]
Changes for new BeOS port by Chris Herborth
Guido van Rossum [Tue, 15 Dec 1998 21:43:15 +0000 (21:43 +0000)]
Jim Fulton writes:
This fixes a bug that can cause core dumps when doing seeks in input
StringIO objects. This has a number of other clean-ups.
Guido van Rossum [Tue, 15 Dec 1998 16:12:00 +0000 (16:12 +0000)]
Move the prototype for dump_counts() to before where it is used.
(This only applies when COUNT_ALLOCS is defined.)
Guido van Rossum [Tue, 15 Dec 1998 15:35:23 +0000 (15:35 +0000)]
Sjoerd Mullender:
When printing missing modules, also print the module they were
imported from.
Barry Warsaw [Tue, 15 Dec 1998 04:36:22 +0000 (04:36 +0000)]
(py-goto-beginning-of-tqs): Finds the beginning of the triple quoted
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.
Barry Warsaw [Tue, 15 Dec 1998 01:04:38 +0000 (01:04 +0000)]
Added most of the mechanism to change the strips from color variations
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.
Barry Warsaw [Tue, 15 Dec 1998 01:02:51 +0000 (01:02 +0000)]
A start on the TestModExp applet
"Author" => "Contact"
Barry Warsaw [Tue, 15 Dec 1998 00:44:15 +0000 (00:44 +0000)]
grid_bbox(): support new Tk API: grid bbox ?column row? ?column2 row2?
Barry Warsaw [Mon, 14 Dec 1998 21:36:40 +0000 (21:36 +0000)]
"Author" -> "Contact"
Andrew M. Kuchling [Mon, 14 Dec 1998 19:36:14 +0000 (19:36 +0000)]
Fixed bug reported to Gregor Hoffleit:
> 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.
Guido van Rossum [Fri, 11 Dec 1998 20:44:56 +0000 (20:44 +0000)]
As noted by Per Cederqvist, new_buffersize() sometimes returns the
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().
Guido van Rossum [Fri, 11 Dec 1998 14:56:38 +0000 (14:56 +0000)]
When tracing references, reset the type and size of tuples allocated
from the fast free list -- the type (at least) is reset by
_Py_Dealloc().
Guido van Rossum [Fri, 11 Dec 1998 03:20:00 +0000 (03:20 +0000)]
Need to initialize self->safe_constructors early on to prevent crash
in early dealloc. Patch by Andrew Dalke.
Guido van Rossum [Fri, 11 Dec 1998 01:10:29 +0000 (01:10 +0000)]
Gregor Hoffleit writes:
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.
Fred Drake [Thu, 10 Dec 1998 20:25:30 +0000 (20:25 +0000)]
create_module_info(): New function: Modify a <section> to create a
<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".
Fred Drake [Thu, 10 Dec 1998 19:57:52 +0000 (19:57 +0000)]
Remove another {\rm ...} construct.
Sheesh, where do these things come from?
Fred Drake [Thu, 10 Dec 1998 18:31:37 +0000 (18:31 +0000)]
Don't pass around a list of known empty elements, since the ESIS
contains "e" events for them. This wasn't used anyway.
Guido van Rossum [Thu, 10 Dec 1998 16:57:44 +0000 (16:57 +0000)]
Remove prototypes for PyOS_strto[u]l -- Chris Herborth.
Guido van Rossum [Thu, 10 Dec 1998 16:56:22 +0000 (16:56 +0000)]
Add more SET_LINENO instructions in long argument lists
Guido van Rossum [Thu, 10 Dec 1998 16:54:48 +0000 (16:54 +0000)]
Remove prototype for PyOS_strtol -- Chris Herborth.
Guido van Rossum [Thu, 10 Dec 1998 16:54:17 +0000 (16:54 +0000)]
Add prototypes for PyOS_strto[u]l -- Chris Herborth.
Guido van Rossum [Thu, 10 Dec 1998 16:50:49 +0000 (16:50 +0000)]
Need to define DL_EXPORT, of course!
Guido van Rossum [Thu, 10 Dec 1998 16:50:14 +0000 (16:50 +0000)]
No longer needed.
Guido van Rossum [Thu, 10 Dec 1998 16:49:28 +0000 (16:49 +0000)]
Needed to add DL_EXPORT to (redundant?) extern decl of module init function.
Fred Drake [Thu, 10 Dec 1998 05:07:09 +0000 (05:07 +0000)]
Added a transform to start cleaning up the modulesynopsis stuff a
little; more thinking is needed about what we really want.
Fred Drake [Thu, 10 Dec 1998 05:04:21 +0000 (05:04 +0000)]
Nits.
Fred Drake [Thu, 10 Dec 1998 04:56:00 +0000 (04:56 +0000)]
Handle SGML variant as well as XML variant. SGML is *much* more
likely to be used.
Guido van Rossum [Wed, 9 Dec 1998 22:24:27 +0000 (22:24 +0000)]
Removing the BeOS specific 'ar' utility -- no longer needed,
says Chris Herborth.
Guido van Rossum [Wed, 9 Dec 1998 22:16:46 +0000 (22:16 +0000)]
In read_multi, allow a subclass to override the class we instantiate
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).
Guido van Rossum [Wed, 9 Dec 1998 22:15:01 +0000 (22:15 +0000)]
In __getslice__, use self.__class__ instead of UserList.