0
0
mirror of https://github.com/python/cpython.git synced 2024-12-01 11:15:56 +01:00
Commit Graph

9949 Commits

Author SHA1 Message Date
Guido van Rossum
c822a453bd 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.)
1998-12-22 16:49:16 +00:00
Guido van Rossum
de8b026148 Added shlex and netrc modules; added warning about urllib change
affecting subclasses (which Jeremy just found out).
1998-12-22 16:41:09 +00:00
Guido van Rossum
d449342966 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.
1998-12-22 16:37:01 +00:00
Guido van Rossum
af5add4629 New test function by Sjoerd, adding -t option. 1998-12-22 14:23:50 +00:00
Guido van Rossum
7ea1d972d1 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.
1998-12-22 13:50:33 +00:00
Guido van Rossum
fdd302820e Fix for modulefinder so that it prints all modules an unknown module
was referenced in instead of only the last.  (Sjoerd Mullender)
1998-12-22 13:44:01 +00:00
Guido van Rossum
f96cff2c82 Last-minute oopsie by Chris H. (Chris, please check that I did this right!) 1998-12-22 13:40:55 +00:00
Guido van Rossum
343848b7b9 Last-minute update by Chris H. 1998-12-22 13:35:29 +00:00
Greg Ward
3c8e54bf62 Applied Fred's patch to fix the bugs that John Skaller noticed. 1998-12-22 12:42:04 +00:00
Guido van Rossum
9c30c24bc2 Adding shlex and netrc by Eric Raymond. 1998-12-22 05:19:29 +00:00
Guido van Rossum
5e97c9dff9 Adding libshlex and libnetrc by Eric Raymond. 1998-12-22 05:18:24 +00:00
Barry Warsaw
a7d9bdfab6 A few other docstring fixes, most importantly to be a little nicer to
Emacs ;-)
1998-12-22 03:24:27 +00:00
Barry Warsaw
4c4bec86f4 Nothing earthshattering, just some fixes to typos and other formatting
bugs in various docstrings.
1998-12-22 03:02:20 +00:00
Guido van Rossum
e96bd3f60f News for 1.5.2b1. Moved news before 1.5.1 to HISTORY. 1998-12-21 21:45:04 +00:00
Guido van Rossum
9818d0f06a New names. Keep those contributions coming! 1998-12-21 21:42:22 +00:00
Guido van Rossum
439d1fa8b0 Moved history up to and including 1.5.1 here. 1998-12-21 21:41:14 +00:00
Guido van Rossum
44331ec9e0 Get rid of python_nt.def -- it's no longer needed! 1998-12-21 20:44:53 +00:00
Guido van Rossum
a8b47fe5c6 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.
1998-12-21 20:21:19 +00:00
Guido van Rossum
6058eb49ee Improve comment for PyImport_Import() as suggested by Bill Tutt. 1998-12-21 19:51:00 +00:00
Guido van Rossum
65d5b5763c 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).
1998-12-21 19:32:43 +00:00
Guido van Rossum
14f53a7757 Chris H. adds MACHDEP=beos to the CCSHARED variable 1998-12-21 19:28:37 +00:00
Guido van Rossum
d147a6c35a Renaming Lib/plat-beos1 to Lib/plat-beos at Chris Herborth's request 1998-12-21 19:18:55 +00:00
Guido van Rossum
b1f97d6765 Suggestion by Tim Peters clarifying what "before global" means.
(Also added an XXX comment requesting clarification of module
initialization -- TBD later.)
1998-12-21 18:57:36 +00:00
Fred Drake
e848976fba 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>.
1998-12-21 18:56:13 +00:00
Fred Drake
3b02ddfa41 Add a bunch of index entries related to retrieving information from
the process table.
1998-12-21 18:52:53 +00:00
Guido van Rossum
98c17b3aee 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.)
1998-12-21 18:51:23 +00:00
Guido van Rossum
95864d35c6 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.)
1998-12-21 18:35:49 +00:00
Guido van Rossum
885553e8d3 Use PyThreadState_GET() macro. 1998-12-21 18:33:30 +00:00
Guido van Rossum
89ce454498 Make sure that -t and -tt also work on strings passed to compile(). 1998-12-21 18:32:40 +00:00
Guido van Rossum
b55f9ff68c 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. :-)
1998-12-21 18:30:20 +00:00
Guido van Rossum
275ea67e6b Add macro version of PyThreadState_GET(). This uses
_PyThreadState_Current, defined in pystate.c.
1998-12-21 18:28:10 +00:00
Guido van Rossum
18bc7c2276 Make current_tstate a global, _PyThreadState_Current. This is to
support a macro in pystate.h.
1998-12-21 18:27:28 +00:00
Guido van Rossum
dfaac4df9e Add XXX comment about the need to add a dump() method to the Text
widget -- no time to do this right now.
1998-12-21 18:25:03 +00:00
Guido van Rossum
c08cc50e00 Add XXX comment about a test that doesn't seem right -- no time to
explore this now.
1998-12-21 18:24:09 +00:00
Guido van Rossum
0b56a3e9a7 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.
1998-12-21 18:23:38 +00:00
Guido van Rossum
91c8f5901b 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.
1998-12-21 18:15:28 +00:00
Jeremy Hylton
5bc4abe006 replace missing zalloc initialization (test_zlib now runs
successfully)
1998-12-21 17:15:00 +00:00
Jeremy Hylton
36252022ec remove debugging fprintf (should have checked this before previous
checkin)
1998-12-21 16:40:21 +00:00
Guido van Rossum
c6769c54f4 Typo discovered by Just. 1998-12-21 16:26:31 +00:00
Guido van Rossum
1f05708f69 Use __stdin__ instead of stdin to derive FileType -- safer against
assignments.
1998-12-19 23:53:33 +00:00
Greg Ward
1190ee3d03 Fred's sysconfig module. 1998-12-18 23:46:33 +00:00
Jeremy Hylton
a37e244536 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.
1998-12-18 22:13:11 +00:00
Guido van Rossum
1924a0677d 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.
1998-12-18 22:02:37 +00:00
Guido van Rossum
eb452321af Improved instructions by Chris H. 1998-12-18 22:00:58 +00:00
Greg Ward
ee789b9601 Initial checkin of distutils source files. 1998-12-18 22:00:30 +00:00
Guido van Rossum
b083a9fb54 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.
1998-12-18 20:17:13 +00:00
Fred Drake
6de7d0c338 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)
1998-12-18 19:46:59 +00:00
Guido van Rossum
654387efbd Fix the class browser to work even when the file is not on sys.path. 1998-12-18 15:52:54 +00:00
Guido van Rossum
060f24ce97 Forgot to check this in for Chris Herborth 1998-12-18 15:37:14 +00:00
Guido van Rossum
33add0a95a 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
1998-12-18 15:25:22 +00:00