Fred Drake [Thu, 13 Apr 2000 14:10:04 +0000 (14:10 +0000)]
M.-A. Lemburg <mal@lemburg.com>:
Added test output for Unicode string concatenation test.
Fred Drake [Thu, 13 Apr 2000 02:42:50 +0000 (02:42 +0000)]
When refering to Unicode characters in exception messages and
docstrings, the documentation guidelines call for "Unicode", not
"unicode". Comply.
Jeremy Hylton [Wed, 12 Apr 2000 22:04:01 +0000 (22:04 +0000)]
raise TypeError when bad argument passed to cStringIO.StringIO
Jeremy Hylton [Wed, 12 Apr 2000 21:19:47 +0000 (21:19 +0000)]
ord: provide better error messages
Greg Ward [Wed, 12 Apr 2000 14:20:15 +0000 (14:20 +0000)]
Added note about usual default prefix under Linux (thanks to Peter Funk
for the idea).
Greg Ward [Wed, 12 Apr 2000 01:44:35 +0000 (01:44 +0000)]
Trying to placate Fred: redefine \tilde and \bslash; document everything.
Still some not-quite-standard definitions in here that I have to fix.
Greg Ward [Wed, 12 Apr 2000 01:42:19 +0000 (01:42 +0000)]
Changed the table of per-platform default installation locations to be
more consistent with the rest of the Python docs.
Fred Drake [Tue, 11 Apr 2000 19:46:40 +0000 (19:46 +0000)]
Make use of \longprogramopt where appropriate.
Fred Drake [Tue, 11 Apr 2000 19:08:30 +0000 (19:08 +0000)]
Elaborate descriptions of \e, \module.
Describe policy on vertical lines in tables.
Fred Drake [Tue, 11 Apr 2000 18:52:52 +0000 (18:52 +0000)]
Revise the description of \programopt, document \longprogramopt.
Fred Drake [Tue, 11 Apr 2000 18:47:59 +0000 (18:47 +0000)]
\longprogramopt: New macro.
Fred Drake [Tue, 11 Apr 2000 18:46:59 +0000 (18:46 +0000)]
do_cmd_longprogramopt(): New function.
cvs2svn [Tue, 11 Apr 2000 17:11:09 +0000 (17:11 +0000)]
This commit was manufactured by cvs2svn to create tag 'r16a2'.
Guido van Rossum [Tue, 11 Apr 2000 17:11:09 +0000 (17:11 +0000)]
Add weasel-words about versioning, so I don't have to check in a new
README for each new alpha release.
Guido van Rossum [Tue, 11 Apr 2000 15:41:38 +0000 (15:41 +0000)]
Deleted trailing whitespace. This is really a way to be able to add
a missing part of the previous checkin message:
Marc-Andre Lemburg:
Added encoding name attributes to wrapper classes which
allow applications to check the used encoding names.
Guido van Rossum [Tue, 11 Apr 2000 15:39:46 +0000 (15:39 +0000)]
Marc-Andre Lemburg:
Changed PyUnicode_Splitlines() maxsplit argument to keepends.
The maxsplit functionality was replaced by the keepends
functionality which allows keeping the line end markers together
with the string.
Guido van Rossum [Tue, 11 Apr 2000 15:39:26 +0000 (15:39 +0000)]
Marc-Andre Lemburg:
The maxsplit functionality in .splitlines() was replaced by the keepends
functionality which allows keeping the line end markers together
with the string.
Added support for '%r' % obj: this inserts repr(obj) rather
than str(obj).
Guido van Rossum [Tue, 11 Apr 2000 15:39:02 +0000 (15:39 +0000)]
Marc-Andre Lemburg:
Added a few missing whitespace Unicode char mappings.
Thanks to Brian Hooper.
Guido van Rossum [Tue, 11 Apr 2000 15:38:46 +0000 (15:38 +0000)]
Marc-Andre Lemburg:
The maxsplit functionality in .splitlines() was replaced by the keepends
functionality which allows keeping the line end markers together
with the string.
Guido van Rossum [Tue, 11 Apr 2000 15:38:23 +0000 (15:38 +0000)]
Marc-Andre Lemburg:
Added special case to unicode(): when being passed a
Unicode object as first argument, return the object as-is.
Raises an exception when given a Unicode object *and* an
encoding name.
Guido van Rossum [Tue, 11 Apr 2000 15:37:43 +0000 (15:37 +0000)]
Marc-Andre Lemburg:
Added .writelines(), .readlines() and .readline() to all
codec classes.
Guido van Rossum [Tue, 11 Apr 2000 15:37:24 +0000 (15:37 +0000)]
Marc-Andre Lemburg:
Modified .splitlines() tests according to the changes
in stringobject.c.
Guido van Rossum [Tue, 11 Apr 2000 15:37:02 +0000 (15:37 +0000)]
Marc-Andre Lemburg:
Modified .splitlines() tests according to the changes
in unicodeobject.c.
Guido van Rossum [Tue, 11 Apr 2000 15:30:19 +0000 (15:30 +0000)]
Two more items.
Greg Ward [Tue, 11 Apr 2000 02:01:52 +0000 (02:01 +0000)]
LaTeX macros for the Distutils manuals.
Perhaps these should be added to the standard Python style file?
Greg Ward [Tue, 11 Apr 2000 02:00:26 +0000 (02:00 +0000)]
Spewed a bunch more verbiage.
Lots of scattered wording changes.
Guido van Rossum [Mon, 10 Apr 2000 21:34:37 +0000 (21:34 +0000)]
Correct fix by Mark Favas for the cast problems.
Guido van Rossum [Mon, 10 Apr 2000 21:14:05 +0000 (21:14 +0000)]
I've had complaints about the comparison "where >= 0" before -- on
IRIX, it doesn't even compile. Added a cast: "where >= (char *)0".
Guido van Rossum [Mon, 10 Apr 2000 19:45:09 +0000 (19:45 +0000)]
Version 1.3 of the Python Unicode Integration proposal.
Fred Drake [Mon, 10 Apr 2000 19:38:24 +0000 (19:38 +0000)]
Added reference count information for Py_FindMethod().
Guido van Rossum [Mon, 10 Apr 2000 19:36:27 +0000 (19:36 +0000)]
Install the docs (with fewer rules).
Add descriptions for the system variables.
Guido van Rossum [Mon, 10 Apr 2000 19:14:16 +0000 (19:14 +0000)]
Bunch of new names, mostly from patches and bugs mailing lists
(everyone who said something remotely useful in the last 100 messages
I archived has been added :-).
Fred Drake [Mon, 10 Apr 2000 18:50:14 +0000 (18:50 +0000)]
Yet another markup nit: functions that are part of the Python/C API
are still C functions, and should be marked.
Fred Drake [Mon, 10 Apr 2000 18:46:22 +0000 (18:46 +0000)]
PyErr_Format():
Remove statement that the return value is always NULL; this is
generated by the formatting.
Jeremy Hylton [Mon, 10 Apr 2000 18:40:57 +0000 (18:40 +0000)]
document PyErr_Format
Fred Drake [Mon, 10 Apr 2000 18:35:49 +0000 (18:35 +0000)]
letters:
Fix description; lowercase and uppercase are strings, not
functions! Noted by Randall Hopper <aa8vb@yahoo.com>.
maketrans():
Minor markup nits in description.
Fred Drake [Mon, 10 Apr 2000 18:29:21 +0000 (18:29 +0000)]
Add to the comment a description of the "null" value for returned
PyObject* values.
Fred Drake [Mon, 10 Apr 2000 18:26:45 +0000 (18:26 +0000)]
load_refcounts(),
do_env_cfuncdesc(): Support the "null" value for the refcounts field
in refcounts.dat.
Fred Drake [Mon, 10 Apr 2000 18:25:09 +0000 (18:25 +0000)]
The reference count field for PyErr_NoMemory() and
PyErr_SetFromErrno() should be "null".
Fred Drake [Mon, 10 Apr 2000 18:24:26 +0000 (18:24 +0000)]
If the refcount field is "null", that's ok; the value will be None.
Fred Drake [Mon, 10 Apr 2000 18:23:47 +0000 (18:23 +0000)]
For functions which return a PyObject* but use "null" for the
reference count field, state that the return value is always NULL.
(Useful for some PyErr_*() flavors.)
Fred Drake [Mon, 10 Apr 2000 18:21:38 +0000 (18:21 +0000)]
cfuncdesc environment:
When processing the optional parameter, don't append any text;
let the pre-processor supply all of it.
Guido van Rossum [Mon, 10 Apr 2000 17:56:36 +0000 (17:56 +0000)]
Added project dependencies -- Mark is right, these are needed.
Guido van Rossum [Mon, 10 Apr 2000 17:52:44 +0000 (17:52 +0000)]
Strangely, we *do* need to define ZLIB_DLL.
Do it in the project file rather than in the source,
so it's easier for Mark to change.
Fred Drake [Mon, 10 Apr 2000 17:47:14 +0000 (17:47 +0000)]
do_cmd_datalineni(): New function, to implement the non-indexing form
of \dataline.
Guido van Rossum [Mon, 10 Apr 2000 17:41:37 +0000 (17:41 +0000)]
Christian Tismer: added test to ensure that multiplication commutes.
[The test is in a slightly odd place, in test_division_2; but it
exercises the recent change to long_mult(), and that's all we really
ask for. --GvR]
Guido van Rossum [Mon, 10 Apr 2000 17:31:58 +0000 (17:31 +0000)]
Simple optimization by Christian Tismer, who gives credit to Lenny
Kneler for reporting this issue: long_mult() is faster when the
smaller argument is on the left. Swap the arguments accordingly.
Guido van Rossum [Mon, 10 Apr 2000 17:16:12 +0000 (17:16 +0000)]
Implement suggestion from Lawrence Kesteloot in PR#280, to change the
default list of files from () to None, and explicitly test for None
before defaulting to sys.argv[1:]. This means that if you pass in an
explicit empty list, it will read stdin instead of defaulting to
sys.argv[1:]. This fixes a buglet in the test script (when called
with options but without files, it chokes when it tries to interpret
the options as files).
Lawrence adds: "I suspect that this is a safe change, because I can't
imagine someone actively passing in an empty list when they want
sys.argv used."
I agree.
Guido van Rossum [Mon, 10 Apr 2000 17:10:48 +0000 (17:10 +0000)]
Fredrik Lundh: new snapshot. Mostly reindented.
This one should work with unicode expressions, and compile
a bit more silently.
Guido van Rossum [Mon, 10 Apr 2000 17:07:24 +0000 (17:07 +0000)]
Removed CRLF line endings.
Guido van Rossum [Mon, 10 Apr 2000 17:06:55 +0000 (17:06 +0000)]
Remove CRLF line endings.
Fredrik Lundh: add two missing casts.
Guido van Rossum [Mon, 10 Apr 2000 17:02:46 +0000 (17:02 +0000)]
Some cleanup -- don't use splitfields/joinfields, standardize
indentation (tabs only), rationalize some code in urljoin...
Guido van Rossum [Mon, 10 Apr 2000 16:29:29 +0000 (16:29 +0000)]
Match the error messages to say "(most recent call last)" like the
built-in messages.
Fred Drake [Mon, 10 Apr 2000 16:27:47 +0000 (16:27 +0000)]
Use a better approach to locating IDLE's default configuration,
allowing it to be run from anywhere, including through a symlink to
the actual idle.py script.
Guido van Rossum [Mon, 10 Apr 2000 16:20:31 +0000 (16:20 +0000)]
Patch by Vladimir Marangozov to include the function name when
comparing code objects. This give sless surprising results in
-Optimized code. It also sorts code objects by name, now.
[I changed the patch to hash() slightly to touch fewer lines.]
Fred Drake [Mon, 10 Apr 2000 15:36:39 +0000 (15:36 +0000)]
Use a constant to specify the number of child threads to create.
Instead of assuming that the number process ids of the threads is the
same as the process id of the controlling process, use a copy of the
dictionary and check for changes in the process ids of the threads
from the thread's process ids in the parent process. This makes the
test make more sense on systems which assign a new pid to each thread
(i.e., Linux).
This doesn't fix the other problems evident with this test on Linux.
Guido van Rossum [Mon, 10 Apr 2000 13:52:48 +0000 (13:52 +0000)]
Marc-Andre Lemburg:
* '...%s...' % u"abc" now coerces to Unicode just like
string methods. Care is taken not to reevaluate already formatted
arguments -- only the first Unicode object appearing in the
argument mapping is looked up twice. Added test cases for
this to test_unicode.py.
Guido van Rossum [Mon, 10 Apr 2000 13:52:13 +0000 (13:52 +0000)]
Marc-Andre Lemburg:
* More test cases for test_contains.py.
Guido van Rossum [Mon, 10 Apr 2000 13:51:10 +0000 (13:51 +0000)]
Marc-Andre Lemburg:
* New exported API PyUnicode_Resize()
* The experimental Keep-Alive optimization was turned back
on after some tweaks to the implementation. It should now
work without causing core dumps... this has yet to tested
though (switching it off is easy: see the unicodeobject.c
file for details).
* Fixed a memory leak in the Unicode freelist cleanup code.
* Added tests to correctly process the return code from
_PyUnicode_Resize().
* Fixed a bug in the 'ignore' error handling routines
of some builtin codecs. Added test cases for these to
test_unicode.py.
Guido van Rossum [Mon, 10 Apr 2000 13:47:21 +0000 (13:47 +0000)]
Marc-Andre Lemburg:
* string_contains now calls PyUnicode_Contains() only when the other
operand is a Unicode string (not whenever it's not a string).
* New format style '%r' inserts repr(arg) instead of str(arg).
* '...%s...' % u"abc" now coerces to Unicode just like
string methods. Care is taken not to reevaluate already formatted
arguments -- only the first Unicode object appearing in the
argument mapping is looked up twice. Added test cases for
this to test_unicode.py.
Guido van Rossum [Mon, 10 Apr 2000 13:42:33 +0000 (13:42 +0000)]
Marc-Andre Lemburg:
* TypeErrors during comparing of mixed type arguments including
a Unicode object are now masked (just like they are for all
other combinations).
Guido van Rossum [Mon, 10 Apr 2000 13:41:41 +0000 (13:41 +0000)]
Marc-Andre Lemburg: New exported API PyUnicode_Resize().
Guido van Rossum [Mon, 10 Apr 2000 13:37:14 +0000 (13:37 +0000)]
Don't be so strict in checking AttributeError -- the error message
recently changed.
Guido van Rossum [Mon, 10 Apr 2000 13:24:00 +0000 (13:24 +0000)]
Output from test_zipfile.py.
Guido van Rossum [Mon, 10 Apr 2000 13:23:04 +0000 (13:23 +0000)]
Test for zipfile.py, by Jim Ahlstrom.
Greg Ward [Mon, 10 Apr 2000 13:11:51 +0000 (13:11 +0000)]
Define 'self.force' in the constructor and remove the hack in '__getattr__()'
to account for it not being defined in the constructor.
Guido van Rossum [Mon, 10 Apr 2000 13:03:19 +0000 (13:03 +0000)]
Mark Hammond:
In line with a similar checkin to object.c a while ago, this patch
gives a more descriptive error message for an attribute error on a
class instance. The message now looks like:
AttributeError: 'Descriptor' instance has no attribute 'GetReturnType'
Guido van Rossum [Mon, 10 Apr 2000 12:46:51 +0000 (12:46 +0000)]
Skip Montanaro: add string precisions to calls to PyErr_Format
to prevent possible buffer overruns.
Guido van Rossum [Mon, 10 Apr 2000 12:45:45 +0000 (12:45 +0000)]
In dealloc(), only close the socket if fd != -1.
Greg Ward [Mon, 10 Apr 2000 01:31:58 +0000 (01:31 +0000)]
Delete some debugging print statements.
Greg Ward [Mon, 10 Apr 2000 01:30:44 +0000 (01:30 +0000)]
Added a check for the 'force' attribute in '__getattr__()' -- better than
crashing when self.force not defined.
Revise 'copy_file()' and 'copy_tree()' docstrings accordingly.
Remove 'hasattr()' check for 'self.force' from 'make_file()'.
Greg Ward [Mon, 10 Apr 2000 01:17:49 +0000 (01:17 +0000)]
Added optional 'prefix' arguments to 'get_python_inc()' and
'get_python_lib()'.
Greg Ward [Mon, 10 Apr 2000 01:15:06 +0000 (01:15 +0000)]
Better variable names here and there.
Greg Ward [Mon, 10 Apr 2000 00:19:42 +0000 (00:19 +0000)]
Added '--force' option -- very clear what it means for building (ignore
timestamps), so every build_* command has 'self.force', which follows the
'build' command if not set by the user.
Greg Ward [Mon, 10 Apr 2000 00:18:16 +0000 (00:18 +0000)]
Removed global '--force' option -- just too vague a concept to be applicable
to all commands in the same way. Several Command methods now either expect
'self.force' to be defined, or check if it is defined and assume it's
false if not.
Greg Ward [Mon, 10 Apr 2000 00:02:16 +0000 (00:02 +0000)]
Added __version__ to store the Distutils version number.
Greg Ward [Sun, 9 Apr 2000 20:55:35 +0000 (20:55 +0000)]
Moved definition of \XXX command out to distutils.sty.
Greg Ward [Sun, 9 Apr 2000 20:54:50 +0000 (20:54 +0000)]
Wrote the introduction (including several subsections).
Started writing the "Standard Build and Install" section.
Just van Rossum [Sun, 9 Apr 2000 19:45:38 +0000 (19:45 +0000)]
minor tweak (jvr)
Just van Rossum [Sun, 9 Apr 2000 19:45:22 +0000 (19:45 +0000)]
added experimental microthread support for use with stackless python -- bw compatible (jvr)
Just van Rossum [Sun, 9 Apr 2000 19:45:08 +0000 (19:45 +0000)]
added popup control (jvr)
Just van Rossum [Sun, 9 Apr 2000 19:44:45 +0000 (19:44 +0000)]
added setbound() method, some cleanups (jvr)
Just van Rossum [Sun, 9 Apr 2000 19:44:13 +0000 (19:44 +0000)]
oops, keyword list missed exec... doh! thanks to Maik Roeder (jvr)
Jack Jansen [Sun, 9 Apr 2000 18:38:54 +0000 (18:38 +0000)]
Installer Vise vct file for 1.6a1. Not very pretty (and needs funny directory structure).
Jack Jansen [Sun, 9 Apr 2000 18:38:11 +0000 (18:38 +0000)]
Modified for 1.6a1.
Jack Jansen [Sun, 9 Apr 2000 18:37:50 +0000 (18:37 +0000)]
Quick readme for 1.6a1.
Greg Ward [Sun, 9 Apr 2000 04:32:40 +0000 (04:32 +0000)]
Fixed so LaTeX can actually process it, and so it looks like the other
Distutils manual.
Greg Ward [Sun, 9 Apr 2000 04:06:44 +0000 (04:06 +0000)]
Got started for real on this manual. Completely untested and unread -- just
checking it in so I can move things around in the CVS repository.
Greg Ward [Sun, 9 Apr 2000 03:59:15 +0000 (03:59 +0000)]
Extracted a bunch of Distutils-specific commands and macros to distutils.sty
(also needed by inst.tex).
Greg Ward [Sun, 9 Apr 2000 03:51:40 +0000 (03:51 +0000)]
Ditched the unused 'list_only' option.
Added code to include source files from 'build_clib' command to default file
list -- currently this won't work, since 'build_clib' doesn't have a
'get_source_files()' method!
Greg Ward [Sun, 9 Apr 2000 03:49:20 +0000 (03:49 +0000)]
Catch DistutilsFileError in addition to DistutilsExecError in 'setup()'.
Greg Ward [Sun, 9 Apr 2000 03:48:37 +0000 (03:48 +0000)]
Added (currently) pointless and trivial main body (for future tests).
Greg Ward [Sun, 9 Apr 2000 02:31:45 +0000 (02:31 +0000)]
This little note is to clarify things for people who go poking around the
Python library hoping to find out more about the Distutils.
Jack Jansen [Sat, 8 Apr 2000 21:29:31 +0000 (21:29 +0000)]
Drag was missing from the modules built.
Jack Jansen [Sat, 8 Apr 2000 21:28:53 +0000 (21:28 +0000)]
This hadn't been checked in for a while.
Fred Drake [Sat, 8 Apr 2000 04:53:29 +0000 (04:53 +0000)]
Fix Skip's email address in his attribution! (Thanks, Skip!)
Fred Drake [Fri, 7 Apr 2000 16:27:15 +0000 (16:27 +0000)]
Added support for the "Long HTML" version to the build/packaging
process.
Fred Drake [Fri, 7 Apr 2000 16:09:59 +0000 (16:09 +0000)]
New example from Skip Montanaro <skip@mojam.com>.
Jack Jansen [Fri, 7 Apr 2000 15:40:59 +0000 (15:40 +0000)]
Enable multithreading.
Jack Jansen [Fri, 7 Apr 2000 15:40:14 +0000 (15:40 +0000)]
Added a profiling target.