]> granicus.if.org Git - python/log
python
24 years agodo_cmd_datalineni(): New function, to implement the non-indexing form
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.

24 years agoChristian Tismer: added test to ensure that multiplication commutes.
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]

24 years agoSimple optimization by Christian Tismer, who gives credit to Lenny
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.

24 years agoImplement suggestion from Lawrence Kesteloot in PR#280, to change the
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.

24 years agoFredrik Lundh: new snapshot. Mostly reindented.
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.

24 years agoRemoved CRLF line endings.
Guido van Rossum [Mon, 10 Apr 2000 17:07:24 +0000 (17:07 +0000)]
Removed CRLF line endings.

24 years agoRemove 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.

24 years agoSome cleanup -- don't use splitfields/joinfields, standardize
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...

24 years agoMatch the error messages to say "(most recent call last)" like the
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.

24 years agoUse a better approach to locating IDLE's default configuration,
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.

24 years agoPatch by Vladimir Marangozov to include the function name when
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.]

24 years agoUse a constant to specify the number of child threads to create.
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.

24 years agoMarc-Andre Lemburg:
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.

24 years agoMarc-Andre Lemburg:
Guido van Rossum [Mon, 10 Apr 2000 13:52:13 +0000 (13:52 +0000)]
Marc-Andre Lemburg:

* More test cases for test_contains.py.

24 years agoMarc-Andre Lemburg:
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.

24 years agoMarc-Andre Lemburg:
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.

24 years agoMarc-Andre Lemburg:
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).

24 years agoMarc-Andre Lemburg: New exported API PyUnicode_Resize().
Guido van Rossum [Mon, 10 Apr 2000 13:41:41 +0000 (13:41 +0000)]
Marc-Andre Lemburg: New exported API PyUnicode_Resize().

24 years agoDon't be so strict in checking AttributeError -- the error message
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.

24 years agoOutput from test_zipfile.py.
Guido van Rossum [Mon, 10 Apr 2000 13:24:00 +0000 (13:24 +0000)]
Output from test_zipfile.py.

24 years agoTest for zipfile.py, by Jim Ahlstrom.
Guido van Rossum [Mon, 10 Apr 2000 13:23:04 +0000 (13:23 +0000)]
Test for zipfile.py, by Jim Ahlstrom.

24 years agoDefine 'self.force' in the constructor and remove the hack in '__getattr__()'
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.

24 years agoMark Hammond:
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'

24 years agoSkip Montanaro: add string precisions to calls to PyErr_Format
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.

24 years agoIn dealloc(), only close the socket if fd != -1.
Guido van Rossum [Mon, 10 Apr 2000 12:45:45 +0000 (12:45 +0000)]
In dealloc(), only close the socket if fd != -1.

24 years agoDelete some debugging print statements.
Greg Ward [Mon, 10 Apr 2000 01:31:58 +0000 (01:31 +0000)]
Delete some debugging print statements.

24 years agoAdded a check for the 'force' attribute in '__getattr__()' -- better than
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()'.

24 years agoAdded optional 'prefix' arguments to 'get_python_inc()' and
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()'.

24 years agoBetter variable names here and there.
Greg Ward [Mon, 10 Apr 2000 01:15:06 +0000 (01:15 +0000)]
Better variable names here and there.

24 years agoAdded '--force' option -- very clear what it means for building (ignore
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.

24 years agoRemoved global '--force' option -- just too vague a concept to be applicable
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.

24 years agoAdded __version__ to store the Distutils version number.
Greg Ward [Mon, 10 Apr 2000 00:02:16 +0000 (00:02 +0000)]
Added __version__ to store the Distutils version number.

24 years agoMoved definition of \XXX command out to distutils.sty.
Greg Ward [Sun, 9 Apr 2000 20:55:35 +0000 (20:55 +0000)]
Moved definition of \XXX command out to distutils.sty.

24 years agoWrote the introduction (including several subsections).
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.

24 years agominor tweak (jvr)
Just van Rossum [Sun, 9 Apr 2000 19:45:38 +0000 (19:45 +0000)]
minor tweak (jvr)

24 years agoadded experimental microthread support for use with stackless python -- bw compatible...
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)

24 years agoadded popup control (jvr)
Just van Rossum [Sun, 9 Apr 2000 19:45:08 +0000 (19:45 +0000)]
added popup control (jvr)

24 years agoadded setbound() method, some cleanups (jvr)
Just van Rossum [Sun, 9 Apr 2000 19:44:45 +0000 (19:44 +0000)]
added setbound() method, some cleanups (jvr)

24 years agooops, keyword list missed exec... doh! thanks to Maik Roeder (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)

24 years agoInstaller Vise vct file for 1.6a1. Not very pretty (and needs funny directory structure).
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).

24 years agoModified for 1.6a1.
Jack Jansen [Sun, 9 Apr 2000 18:38:11 +0000 (18:38 +0000)]
Modified for 1.6a1.

24 years agoQuick readme for 1.6a1.
Jack Jansen [Sun, 9 Apr 2000 18:37:50 +0000 (18:37 +0000)]
Quick readme for 1.6a1.

24 years agoFixed so LaTeX can actually process it, and so it looks like the other
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.

24 years agoGot started for real on this manual. Completely untested and unread -- just
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.

24 years agoExtracted a bunch of Distutils-specific commands and macros to distutils.sty
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).

24 years agoDitched the unused 'list_only' option.
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!

24 years agoCatch DistutilsFileError in addition to DistutilsExecError in 'setup()'.
Greg Ward [Sun, 9 Apr 2000 03:49:20 +0000 (03:49 +0000)]
Catch DistutilsFileError in addition to DistutilsExecError in 'setup()'.

24 years agoAdded (currently) pointless and trivial main body (for future tests).
Greg Ward [Sun, 9 Apr 2000 03:48:37 +0000 (03:48 +0000)]
Added (currently) pointless and trivial main body (for future tests).

24 years agoThis little note is to clarify things for people who go poking around the
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.

24 years agoDrag was missing from the modules built.
Jack Jansen [Sat, 8 Apr 2000 21:29:31 +0000 (21:29 +0000)]
Drag was missing from the modules built.

24 years agoThis hadn't been checked in for a while.
Jack Jansen [Sat, 8 Apr 2000 21:28:53 +0000 (21:28 +0000)]
This hadn't been checked in for a while.

24 years agoFix Skip's email address in his attribution! (Thanks, Skip!)
Fred Drake [Sat, 8 Apr 2000 04:53:29 +0000 (04:53 +0000)]
Fix Skip's email address in his attribution!  (Thanks, Skip!)

24 years agoAdded support for the "Long HTML" version to the build/packaging
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.

24 years agoNew example from Skip Montanaro <skip@mojam.com>.
Fred Drake [Fri, 7 Apr 2000 16:09:59 +0000 (16:09 +0000)]
New example from Skip Montanaro <skip@mojam.com>.

24 years agoEnable multithreading.
Jack Jansen [Fri, 7 Apr 2000 15:40:59 +0000 (15:40 +0000)]
Enable multithreading.

24 years agoAdded a profiling target.
Jack Jansen [Fri, 7 Apr 2000 15:40:14 +0000 (15:40 +0000)]
Added a profiling target.

24 years agoFiddled linkorder and a few other things to make shared threaded python work.
Jack Jansen [Fri, 7 Apr 2000 15:39:25 +0000 (15:39 +0000)]
Fiddled linkorder and a few other things to make shared threaded python work.

24 years agoDescribe the purpose of the "long HTML" package.
Fred Drake [Fri, 7 Apr 2000 14:47:27 +0000 (14:47 +0000)]
Describe the purpose of the "long HTML" package.

24 years agoFred Gansevles <gansevle@cs.utwente.nl>:
Fred Drake [Fri, 7 Apr 2000 14:34:50 +0000 (14:34 +0000)]
Fred Gansevles <gansevle@cs.utwente.nl>:
The copytree function doesn't pass the symlinks parameter in recursicve
calls

24 years agoStarted on GUSI2 and threading support.
Jack Jansen [Fri, 7 Apr 2000 09:25:06 +0000 (09:25 +0000)]
Started on GUSI2 and threading support.

24 years ago1.6a1 modules added.
Jack Jansen [Fri, 7 Apr 2000 09:24:53 +0000 (09:24 +0000)]
1.6a1 modules added.

24 years agoStarted on GUSI2 and threading support. cfm68k targets are still included in all...
Jack Jansen [Fri, 7 Apr 2000 09:20:25 +0000 (09:20 +0000)]
Started on GUSI2 and threading support. cfm68k targets are still included in all projects, but for the time being all the "fat" targets exclude them, making them basically copy operations. This way we don't have to rename everything, and anyone interested can easily try to fix 68k support.

24 years agoStarted on GUSI2 and threading support.
Jack Jansen [Fri, 7 Apr 2000 09:10:49 +0000 (09:10 +0000)]
Started on GUSI2 and threading support.

24 years agoReady for 1.6a1. Reordered the defines to be in line with config.h.in again, so track...
Jack Jansen [Fri, 7 Apr 2000 09:10:35 +0000 (09:10 +0000)]
Ready for 1.6a1. Reordered the defines to be in line with config.h.in again, so tracking the new defines will be easier in future.

24 years agoReturn a handle in stead of a resource.
Jack Jansen [Fri, 7 Apr 2000 09:08:37 +0000 (09:08 +0000)]
Return a handle in stead of a resource.

24 years agoVladimir Marangozov: This fixes the line number in the string
Guido van Rossum [Fri, 7 Apr 2000 01:21:36 +0000 (01:21 +0000)]
Vladimir Marangozov: This fixes the line number in the string
representation of code objects when optimization is on (python -O). It
was always reported as -1 instead of the real lineno.

24 years agoJust in case someone wants to use this, let's fix the pathname.
Guido van Rossum [Thu, 6 Apr 2000 20:09:17 +0000 (20:09 +0000)]
Just in case someone wants to use this, let's fix the pathname.

24 years agoMark RELEASE with the release level ("a2").
Fred Drake [Thu, 6 Apr 2000 18:38:30 +0000 (18:38 +0000)]
Mark RELEASE with the release level ("a2").

24 years agoConrad Huang points out that "if (0 < ch < 256)", while legal C,
Guido van Rossum [Thu, 6 Apr 2000 18:18:10 +0000 (18:18 +0000)]
Conrad Huang points out that "if (0 < ch < 256)", while legal C,
doesn't mean what the Python programmer thought...

24 years agoMake sure the \declaremodule uses the right name for the module!
Fred Drake [Thu, 6 Apr 2000 16:09:59 +0000 (16:09 +0000)]
Make sure the \declaremodule uses the right name for the module!

Clean up several markup problems & inconsistencies.

24 years agounichr(),
Fred Drake [Thu, 6 Apr 2000 15:06:03 +0000 (15:06 +0000)]
unichr(),
unicode():  Added \versionadded{} annotations.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Fred Drake [Thu, 6 Apr 2000 15:05:04 +0000 (15:05 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Added UnicodeType.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Fred Drake [Thu, 6 Apr 2000 15:04:30 +0000 (15:04 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Added note that Unicode strings are picklable.

24 years agoRevised / removed comments about string exceptions (relating to the
Fred Drake [Thu, 6 Apr 2000 15:03:01 +0000 (15:03 +0000)]
Revised / removed comments about string exceptions (relating to the
standard exceptions), added documentation of UnboundLocalError.

24 years agoBump version to 1.6a2 -- to be released one of these days.
Guido van Rossum [Thu, 6 Apr 2000 15:01:30 +0000 (15:01 +0000)]
Bump version to 1.6a2 -- to be released one of these days.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Fred Drake [Thu, 6 Apr 2000 14:48:35 +0000 (14:48 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Added UnicodeError description.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Fred Drake [Thu, 6 Apr 2000 14:47:20 +0000 (14:47 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Add Unicode strings to the list of marshalable types.

24 years agoMoved socket, select, unicodedata to their own PYD. This should
Guido van Rossum [Thu, 6 Apr 2000 14:46:40 +0000 (14:46 +0000)]
Moved socket, select, unicodedata to their own PYD.  This should
reduce the size of python16.dll to almost its 1.5.2 size, and remove
dependencies on winsock unless sockets are actually used.

Note that soundex is simply no longer supported.

24 years agoNote the exception raised when parameter to chr() is out of range.
Fred Drake [Thu, 6 Apr 2000 14:45:19 +0000 (14:45 +0000)]
Note the exception raised when parameter to chr() is out of range.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Fred Drake [Thu, 6 Apr 2000 14:43:12 +0000 (14:43 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Documentation for unichr(), unicode(), update for ord().

24 years agoRemove _socket, select, soundex, and unicodedata. These have been
Guido van Rossum [Thu, 6 Apr 2000 14:41:11 +0000 (14:41 +0000)]
Remove _socket, select, soundex, and unicodedata.  These have been
moved to their own DLLs, or are obsolete (soundex).

24 years agoAdded entry for codecs module.
Fred Drake [Thu, 6 Apr 2000 14:26:43 +0000 (14:26 +0000)]
Added entry for codecs module.

24 years agoAdded codecs entry here as part of String Services.
Fred Drake [Thu, 6 Apr 2000 14:25:28 +0000 (14:25 +0000)]
Added codecs entry here as part of String Services.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Fred Drake [Thu, 6 Apr 2000 14:21:58 +0000 (14:21 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
codecs module documentation, with some preliminary markup
adjustments from FLD.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Fred Drake [Thu, 6 Apr 2000 14:17:03 +0000 (14:17 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Tutorial information about Unicode strings in Python, with some markup
adjustments from FLD.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Fred Drake [Thu, 6 Apr 2000 14:10:29 +0000 (14:10 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
API documentation for Unicode support from C.

24 years agoBut don't do the funny \UNICODE macro; we're trying to get away from
Fred Drake [Thu, 6 Apr 2000 14:00:14 +0000 (14:00 +0000)]
But don't do the funny \UNICODE macro; we're trying to get away from
those markups!  <with-mixed-feelings>

24 years agoPatch from Marc-Andre Lemburg <mal@lemburg.com>:
Fred Drake [Thu, 6 Apr 2000 13:57:21 +0000 (13:57 +0000)]
Patch from Marc-Andre Lemburg <mal@lemburg.com>:
Added Unicode type to the language reference.

24 years agoWindows: Since we're not using ZLIB.DLL any more, don't define ZLIB_DLL.
Guido van Rossum [Thu, 6 Apr 2000 13:20:38 +0000 (13:20 +0000)]
Windows: Since we're not using ZLIB.DLL any more, don't define ZLIB_DLL.
(Mark Hammond.)

24 years agoAdd msvcrt to list of libraries to ignore in Debug mode.
Guido van Rossum [Thu, 6 Apr 2000 13:19:43 +0000 (13:19 +0000)]
Add msvcrt to list of libraries to ignore in Debug mode.

24 years agoAdd missing import of 'usage' string.
Greg Ward [Thu, 6 Apr 2000 02:07:41 +0000 (02:07 +0000)]
Add missing import of 'usage' string.

24 years agoRemoved bogus connect() call in SMTP example; reported by Travis
Fred Drake [Wed, 5 Apr 2000 22:12:06 +0000 (22:12 +0000)]
Removed bogus connect() call in SMTP example; reported by Travis
B. Hartwell <slt5v@cc.usu.edu>.

Removed second copy of the "See also" section!

24 years agoAdded reference to the multifile module from the "See also" section
Fred Drake [Wed, 5 Apr 2000 22:05:15 +0000 (22:05 +0000)]
Added reference to the multifile module from the "See also" section
in the mimetools documentation.
Suggested by Skip Montanaro <skip@mojam.com>.

24 years agoAdded a few cast to make it 68k-compatible.
Jack Jansen [Wed, 5 Apr 2000 21:30:57 +0000 (21:30 +0000)]
Added a few cast to make it 68k-compatible.

24 years agoFredrik Lundh: eliminate a MSVC compiler warning.
Guido van Rossum [Wed, 5 Apr 2000 21:29:50 +0000 (21:29 +0000)]
Fredrik Lundh: eliminate a MSVC compiler warning.

24 years agoMarc-Andre's third try at this bulk patch seems to work (except that
Guido van Rossum [Wed, 5 Apr 2000 20:11:21 +0000 (20:11 +0000)]
Marc-Andre's third try at this bulk patch seems to work (except that
his copy of test_contains.py seems to be broken -- the lines he
deleted were already absent).  Checkin messages:

New Unicode support for int(), float(), complex() and long().

- new APIs PyInt_FromUnicode() and PyLong_FromUnicode()
- added support for Unicode to PyFloat_FromString()
- new encoding API PyUnicode_EncodeDecimal() which converts
  Unicode to a decimal char* string (used in the above new
  APIs)
- shortcuts for calls like int(<int object>) and float(<float obj>)
- tests for all of the above

Unicode compares and contains checks:
- comparing Unicode and non-string types now works; TypeErrors
  are masked, all other errors such as ValueError during
  Unicode coercion are passed through (note that PyUnicode_Compare
  does not implement the masking -- PyObject_Compare does this)
- contains now works for non-string types too; TypeErrors are
  masked and 0 returned; all other errors are passed through

Better testing support for the standard codecs.

Misc minor enhancements, such as an alias dbcs for the mbcs codec.

Changes:
- PyLong_FromString() now applies the same error checks as
  does PyInt_FromString(): trailing garbage is reported
  as error and not longer silently ignored. The only characters
  which may be trailing the digits are 'L' and 'l' -- these
  are still silently ignored.
- string.ato?() now directly interface to int(), long() and
  float(). The error strings are now a little different, but
  the type still remains the same. These functions are now
  ready to get declared obsolete ;-)
- PyNumber_Int() now also does a check for embedded NULL chars
  in the input string; PyNumber_Long() already did this (and
  still does)

Followed by:

Looks like I've gone a step too far there... (and test_contains.py
seem to have a bug too).

I've changed back to reporting all errors in PyUnicode_Contains()
and added a few more test cases to test_contains.py (plus corrected
the join() NameError).

24 years agoForgot to save the project file -- this also reflects the use of
Guido van Rossum [Wed, 5 Apr 2000 18:25:12 +0000 (18:25 +0000)]
Forgot to save the project file -- this also reflects the use of
Tcl/Tk 8.2 instead of 8.3, because 8.3.0 often crashes on closing a
window.

24 years agoLots of cleanup things.
Guido van Rossum [Wed, 5 Apr 2000 16:33:30 +0000 (16:33 +0000)]
Lots of cleanup things.

Added the bitmaps back, and added the wizard style program group
selection dialog.

Got rid of references to backup etc. inserted by the installer wizard
-- we don't use these.

Got rid of conditionals for Windows 3.1, ditto.

Changed version to 1.6a2.

Changed default install directory to "C:\Python16" (not really, but close).

Install only one copy of python16.lib.

Install the two MS DLLs (versioned) and python16.dll (unversioned) in
the system directory.

Install Tcl/Tk and expat in the DLLs directory.

24 years agoNoted by Guido:
Fred Drake [Wed, 5 Apr 2000 15:06:03 +0000 (15:06 +0000)]
Noted by Guido:

Fixed up descriptions of altzone and timezone not to refer to the
0th meridian, which doesn't exist.  Reference is now to UTC.

24 years agoNoted by Guido:
Fred Drake [Wed, 5 Apr 2000 15:01:36 +0000 (15:01 +0000)]
Noted by Guido:

Directionality of up/down were confused.