]> granicus.if.org Git - python/log
python
24 years agoAdded Fredrik Lundh's sre module and its supporting cast.
Guido van Rossum [Fri, 31 Mar 2000 14:58:54 +0000 (14:58 +0000)]
Added Fredrik Lundh's sre module and its supporting cast.

NOTE: THIS IS VERY ROUGH ALPHA CODE!

24 years agoThomas Heller fixes a typo in an error message.
Guido van Rossum [Fri, 31 Mar 2000 13:52:29 +0000 (13:52 +0000)]
Thomas Heller fixes a typo in an error message.

24 years agoMore names.
Guido van Rossum [Fri, 31 Mar 2000 13:01:57 +0000 (13:01 +0000)]
More names.

24 years agoAdded code to blow away the pseudo-installation tree and a 'keep_tree'
Greg Ward [Fri, 31 Mar 2000 05:22:47 +0000 (05:22 +0000)]
Added code to blow away the pseudo-installation tree and a 'keep_tree'
option to disable this (by default, it's false and we clean up).

24 years agoOops, got a little too enthusiastic deleting code in that last revision:
Greg Ward [Fri, 31 Mar 2000 05:21:27 +0000 (05:21 +0000)]
Oops, got a little too enthusiastic deleting code in that last revision:
we still have to *run* the sub-command that creates a built distribution.

24 years agoFixed 'make_archive()' to explicitly turn of compression when format is "tar".
Greg Ward [Fri, 31 Mar 2000 05:20:27 +0000 (05:20 +0000)]
Fixed 'make_archive()' to explicitly turn of compression when format is "tar".

24 years agoRename 'formats' option to 'format', and remove the ability to generate
Greg Ward [Fri, 31 Mar 2000 05:08:50 +0000 (05:08 +0000)]
Rename 'formats' option to 'format', and remove the ability to generate
multiple built distributions in one run -- it seemed a bit dodgy and I'd
rather remove it than try to beat it into submission right now.

24 years agoImport from 'types' module.
Greg Ward [Fri, 31 Mar 2000 04:53:41 +0000 (04:53 +0000)]
Import from 'types' module.
Added 'ztar', 'tar' to 'format_command' dictionary.

24 years agoTweaked 'get_platform()' to include the first character of the OS release:
Greg Ward [Fri, 31 Mar 2000 04:40:25 +0000 (04:40 +0000)]
Tweaked 'get_platform()' to include the first character of the OS release:
eg. sunos5, linux2, irix5.

24 years agoRemoved some old test code: don't set 'plat' when calling 'new_compiler()'.
Greg Ward [Fri, 31 Mar 2000 04:37:40 +0000 (04:37 +0000)]
Removed some old test code: don't set 'plat' when calling 'new_compiler()'.

24 years agoDon't perpetrate the "_d" hack for naming debugging extensions -- that's
Greg Ward [Fri, 31 Mar 2000 03:52:16 +0000 (03:52 +0000)]
Don't perpetrate the "_d" hack for naming debugging extensions -- that's
now done in the 'build_ext' command.

24 years agoPatch (mostly) from Thomas Heller for building on Windows:
Greg Ward [Fri, 31 Mar 2000 03:50:23 +0000 (03:50 +0000)]
Patch (mostly) from Thomas Heller for building on Windows:
  * build to "Debug" or "Release" temp directory
  * put linker turds (.lib and .exp files) in the build temp directory
  * tack on "_d" to extensions built with debugging
  * added 'get_ext_libname()' help in putting linker turds to temp dir
Also, moved the code that simplifies None to empty list for a bunch
  of options to 'finalize_options()' instead of 'run()'.

24 years agoDon't put Python's library directory into the library search path -- that's
Greg Ward [Fri, 31 Mar 2000 03:34:09 +0000 (03:34 +0000)]
Don't put Python's library directory into the library search path -- that's
specific to building Python extensions.

24 years agoAdd back an obscure "feature" to the Obj version of Tkapp_Call(): a
Guido van Rossum [Fri, 31 Mar 2000 03:29:39 +0000 (03:29 +0000)]
Add back an obscure "feature" to the Obj version of Tkapp_Call(): a
None in an argument list *terminates* the argument list: further
arguments are *ignored*.  This isn't kosher, but too much code relies
on it, implicitly.  For example, IDLE was pretty broken.

24 years agoAdded 'bdist' and 'bdist_dumb'.
Greg Ward [Fri, 31 Mar 2000 03:14:51 +0000 (03:14 +0000)]
Added 'bdist' and 'bdist_dumb'.

24 years agoA version of FixTk.py that works with the way the installer now
Guido van Rossum [Fri, 31 Mar 2000 03:11:40 +0000 (03:11 +0000)]
A version of FixTk.py that works with the way the installer now
installs Tcl/Tk.

24 years agoAdded 'get_name()' and 'get_full_name()' methods to Distribution.
Greg Ward [Fri, 31 Mar 2000 03:05:18 +0000 (03:05 +0000)]
Added 'get_name()' and 'get_full_name()' methods to Distribution.
Simplified 'Command.get_peer_option()' a tad -- just call 'find_peer()'
  to get the peer command object.
Updated 'Command.copy_file()' to take a 'link' parameter, just like
  'util.copy_file()' does now.
Added 'Command.make_archive()' to wrap 'util.make_archive()'.

24 years agoAdded 'create_tree()'.
Greg Ward [Fri, 31 Mar 2000 03:02:22 +0000 (03:02 +0000)]
Added 'create_tree()'.
Changes to 'copy_file()':
  * added support for making hard links and symlinks
  * noted that it silently clobbers existing files when copying, but
    blows up if destination exists when linking -- hmmm...
  * error message tweak
Added 'base_name' parameter to 'make_tarball()' and 'make_zipfile()'.
Added 'make_archive()' -- wrapper around 'make_tarball()' or
  'make_zipfile()' to take care of the archive "root directory".

24 years agoAdded DistutilsInternalError.
Greg Ward [Fri, 31 Mar 2000 02:57:31 +0000 (02:57 +0000)]
Added DistutilsInternalError.

24 years agoThe 'bdist_dumb' command, the first worker bee for use by 'bdist'. This is
Greg Ward [Fri, 31 Mar 2000 02:56:34 +0000 (02:56 +0000)]
The 'bdist_dumb' command, the first worker bee for use by 'bdist'.  This is
the command that actually creates "dumb" binary distributions, ie.
tarballs and zip files that you just unpack under <prefix> or <exec-prefix>.
Very limited, but it's a start.

24 years agoThe 'bdist' command, for creating "built" (binary) distributions.
Greg Ward [Fri, 31 Mar 2000 02:55:12 +0000 (02:55 +0000)]
The 'bdist' command, for creating "built" (binary) distributions.
Initial revision is pretty limited; it only knows how to generate "dumb"
binary distributions, i.e. a tarball on Unix and a zip file on Windows.
Also, due to limitations in the installation code, it only knows how to
distribute Python library code.  But hey, it's a start.

24 years agoAdded 'get_inputs()'.
Greg Ward [Fri, 31 Mar 2000 02:53:07 +0000 (02:53 +0000)]
Added 'get_inputs()'.

24 years agoFixed 'get_outputs()' so it actually works.
Greg Ward [Fri, 31 Mar 2000 02:52:02 +0000 (02:52 +0000)]
Fixed 'get_outputs()' so it actually works.
Added 'get_inputs()' (which is strikingly similar to 'get_outputs()' - sigh).
Cosmetic tweaks.

24 years agoChanged to use the new 'has_pure_modules()' and 'has_ext_modules()' methods
Greg Ward [Fri, 31 Mar 2000 02:50:04 +0000 (02:50 +0000)]
Changed to use the new 'has_pure_modules()' and 'has_ext_modules()' methods
  provided by Distribution.
Cosmetic and error message tweaks.
Simplified 'make_release_tree()':
  * extracted 'distutils.util.create_tree()'
  * don't have to do hard-linking ourselves -- it's now handled by
    'distutils.util.copy_file()' (although the detection of
    whether hard linking is available still needs to be factored out)
Removed 'make_tarball()' and 'make_zipfile()' entirely -- their role
  is now amply filled by 'distutils.util.make_archive()'.
Simplified 'make_distribution()':
  * use Distribution's new 'get_full_name()' method
  * use 'make_archive()' instead of if/elif/.../else on the archive format

24 years agoBit of cleanup on the projects.
Guido van Rossum [Fri, 31 Mar 2000 01:33:07 +0000 (01:33 +0000)]
Bit of cleanup on the projects.
Some refinements on the Wise file, also adding mmap.pyd.

24 years agoSigh. On Windows, (mode_t)i fails. Assume that there's a prototype
Guido van Rossum [Fri, 31 Mar 2000 01:26:23 +0000 (01:26 +0000)]
Sigh.  On Windows, (mode_t)i fails.  Assume that there's a prototype
in scope on systems where mode_t isn't the same size as int...

24 years agorename args variable in CALL_FUNCTION to callargs (avoids name
Jeremy Hylton [Fri, 31 Mar 2000 01:22:54 +0000 (01:22 +0000)]
rename args variable in CALL_FUNCTION to callargs (avoids name
override)

add missing DECREFs in error handling code of CALL_FUNCTION

24 years agoMark Hammond: Ooops - even though Win32 handles the same args, there
Guido van Rossum [Fri, 31 Mar 2000 01:20:33 +0000 (01:20 +0000)]
Mark Hammond: Ooops - even though Win32 handles the same args, there
was a superfluous check for the platform.

24 years agoAdded mmap project. (Mark Hammond.)
Guido van Rossum [Fri, 31 Mar 2000 01:17:42 +0000 (01:17 +0000)]
Added mmap project.  (Mark Hammond.)

24 years agoHacked for Win32 by Mark Hammond.
Guido van Rossum [Fri, 31 Mar 2000 01:17:07 +0000 (01:17 +0000)]
Hacked for Win32 by Mark Hammond.
Reformatted for 8-space tabs and fitted into 80-char lines by GvR.

Mark writes:

* the Win32 version now accepts the same args as the Unix version.
The win32 specific "tag" param is now optional.  The end result is
that the exact same test suite runs on Windows (definately a worthy
goal!).

* I changed the error object.  All occurences of the error, except
for 1, corresponds to an underlying OS error.  This one was changed
to a ValueError (a better error for that condition), and the module
error object is now simply EnvironmentError.  All win32 error
routines now call the new Windows specific error handler.

24 years agoImproved test, by Mark Hammond, for Win32.
Guido van Rossum [Fri, 31 Mar 2000 01:09:14 +0000 (01:09 +0000)]
Improved test, by Mark Hammond, for Win32.

24 years agoNew version 1.0.4. I'm sure someone mailed me these patches but I
Guido van Rossum [Fri, 31 Mar 2000 00:58:00 +0000 (00:58 +0000)]
New version 1.0.4.  I'm sure someone mailed me these patches but I
can't remember who. :-)  Changes:

- Support for Windows NT (different locking behavior)
- Added a logging mechanism

24 years agoNew version 1.0.4. I'm sure someone mailed me these patches but I
Guido van Rossum [Fri, 31 Mar 2000 00:55:54 +0000 (00:55 +0000)]
New version 1.0.4.  I'm sure someone mailed me these patches but I
can't remember who. :-)  Changes:

- Owner name+email made generic instead of GvR
- Support for Windows NT (running from a .bat file)
- DOcument <HTML>...</HTML> tags

24 years agoFix by Eric Raymond: make the code that looks for various bits of
Guido van Rossum [Fri, 31 Mar 2000 00:52:27 +0000 (00:52 +0000)]
Fix by Eric Raymond: make the code that looks for various bits of
tab-setting magic much smarter, more correct, and more easily
extensible.

24 years agoDon't use the object call interface in Tk 8.0 -- the EvalObj* API
Guido van Rossum [Fri, 31 Mar 2000 00:51:37 +0000 (00:51 +0000)]
Don't use the object call interface in Tk 8.0 -- the EvalObj* API
changed from 8.0 to 8.1 and I see no big reason to use objects in 8.0.
At least now it works again with all versions from 8.0 - 8.3.

24 years agoOops, the previous patch contained a bug in chmod. Fixed now.
Guido van Rossum [Fri, 31 Mar 2000 00:48:21 +0000 (00:48 +0000)]
Oops, the previous patch contained a bug in chmod.  Fixed now.

24 years agoTwo robustness patches:
Guido van Rossum [Fri, 31 Mar 2000 00:47:28 +0000 (00:47 +0000)]
Two robustness patches:

(1) In opendir(), don't call the lock-release macros; we're
manipulating list objects and that shouldn't be done in unlocked
state.

(2) Don't use posix_strint() for chmod() -- the mode_t arg might be a
64 bit int (reported by Nick Maclaren).

24 years agoCouple more names. We need to add way more names -- I'll have to dig
Guido van Rossum [Fri, 31 Mar 2000 00:45:00 +0000 (00:45 +0000)]
Couple more names.  We need to add way more names -- I'll have to dig
them out of the changelogs :-(

24 years agoChange traceback error message to "most recent call last" from
Guido van Rossum [Fri, 31 Mar 2000 00:39:23 +0000 (00:39 +0000)]
Change traceback error message to "most recent call last" from
"innermost last".  The latter was mysterious to newbies.

24 years agoUse modern PyArg_ParseTuple style, with function names.
Guido van Rossum [Fri, 31 Mar 2000 00:38:29 +0000 (00:38 +0000)]
Use modern PyArg_ParseTuple style, with function names.
(Mostly.)

24 years agoUse modern PyArg_ParseTuple style, with function names.
Guido van Rossum [Fri, 31 Mar 2000 00:37:41 +0000 (00:37 +0000)]
Use modern PyArg_ParseTuple style, with function names.

24 years agorobustify UserList constructor -- will now accept any sequence
Jeremy Hylton [Fri, 31 Mar 2000 00:17:46 +0000 (00:17 +0000)]
robustify UserList constructor -- will now accept any sequence
add test cases for non-UserList class, tuple, & string

24 years agoTwo fixes for extended call syntax:
Jeremy Hylton [Thu, 30 Mar 2000 23:55:31 +0000 (23:55 +0000)]
Two fixes for extended call syntax:
If a non-tuple sequence is passed as the *arg, convert it to a tuple
before checking its length.
If named keyword arguments are used in combination with **kwargs, make
a copy of kwargs before inserting the new keys.

24 years agoAdd linuxaudio module.
Guido van Rossum [Thu, 30 Mar 2000 23:27:44 +0000 (23:27 +0000)]
Add linuxaudio module.

24 years agoAudio module for Linux, contributed by Peter Bosch.
Guido van Rossum [Thu, 30 Mar 2000 23:25:49 +0000 (23:25 +0000)]
Audio module for Linux, contributed by Peter Bosch.

Careful, this has had zero testing (except by Peter)!

24 years agoShow Tcl/Tk version number in _test() and show Unicode test if possible.
Guido van Rossum [Thu, 30 Mar 2000 23:19:44 +0000 (23:19 +0000)]
Show Tcl/Tk version number in _test() and show Unicode test if possible.

24 years agoMake it version 1.6a1.
Guido van Rossum [Thu, 30 Mar 2000 22:59:20 +0000 (22:59 +0000)]
Make it version 1.6a1.

24 years agoSeems there was a version string here that still looked like 1.5.2.
Guido van Rossum [Thu, 30 Mar 2000 22:59:09 +0000 (22:59 +0000)]
Seems there was a version string here that still looked like 1.5.2.

24 years agoMark Hammond: ensure the new standard module winreg is installed.
Guido van Rossum [Thu, 30 Mar 2000 22:44:50 +0000 (22:44 +0000)]
Mark Hammond: ensure the new standard module winreg is installed.

24 years agoAdd PyDict_Copy() function to C API for dicts. It returns a new
Jeremy Hylton [Thu, 30 Mar 2000 22:27:31 +0000 (22:27 +0000)]
Add PyDict_Copy() function to C API for dicts.  It returns a new
dictionary that contains the same key/value pairs as p.

24 years agoInternal changes.
Guido van Rossum [Thu, 30 Mar 2000 21:27:30 +0000 (21:27 +0000)]
Internal changes.

24 years agoAdded Tcl 8.3.
Guido van Rossum [Thu, 30 Mar 2000 21:27:11 +0000 (21:27 +0000)]
Added Tcl 8.3.
Building on Windows NT.
Removed Tcl installation.
Commented out Doc installation.

24 years agoDeleting Python 1.5 project and Wise file.
Guido van Rossum [Thu, 30 Mar 2000 21:22:08 +0000 (21:22 +0000)]
Deleting Python 1.5 project and Wise file.

24 years agoOutput for simple test case for mmap on Unix; someone needs to write a
Andrew M. Kuchling [Thu, 30 Mar 2000 21:15:46 +0000 (21:15 +0000)]
Output for simple test case for mmap on Unix; someone needs to write a
    Win32 test case.

24 years agoAdded simple test case for mmap on Unix; someone needs to write a
Andrew M. Kuchling [Thu, 30 Mar 2000 21:15:29 +0000 (21:15 +0000)]
Added simple test case for mmap on Unix; someone needs to write a
    Win32 test case

24 years agoAdded mmap module -- map a view of a file into memory on Win32 and Unix.
Andrew M. Kuchling [Thu, 30 Mar 2000 21:14:30 +0000 (21:14 +0000)]
Added mmap module -- map a view of a file into memory on Win32 and Unix.
(Needs testing on Win32.)

24 years agoRemoved two files that were added temporarily.
Guido van Rossum [Thu, 30 Mar 2000 20:34:56 +0000 (20:34 +0000)]
Removed two files that were added temporarily.

24 years agoBump version to 0.6 for the event of the Python 1.6 alpha 1 release.
Guido van Rossum [Thu, 30 Mar 2000 20:30:34 +0000 (20:30 +0000)]
Bump version to 0.6 for the event of the Python 1.6 alpha 1 release.

24 years agoOops: 'build_extensions()' no longer takes an 'extensions' list.
Greg Ward [Thu, 30 Mar 2000 19:47:22 +0000 (19:47 +0000)]
Oops: 'build_extensions()' no longer takes an 'extensions' list.

24 years agoRevamped path access again, by Mark Hammond, to be more robust in the
Guido van Rossum [Thu, 30 Mar 2000 19:45:39 +0000 (19:45 +0000)]
Revamped path access again, by Mark Hammond, to be more robust in the
light of three different situations: (1) running from build; (2)
running from installed; (3) running without being able to find an
installation (e.g. as a COM object).  The system paths in the
repository are only used for (3); the path deduced from the
installation location are used otherwise.  PYTHONHOME overrides in all
cases.

Read the comments for more details.

24 years agoMichael Hudson: With the (cool!) new call syntax, the longest opcode
Guido van Rossum [Thu, 30 Mar 2000 15:02:11 +0000 (15:02 +0000)]
Michael Hudson: With the (cool!) new call syntax, the longest opcode
name is much longer, which fouls up dis's formatting slightly; this is
a "fix" for that.

24 years agoLawrence Kesteloot noted: Lib/user.py has a comment that says that the
Guido van Rossum [Thu, 30 Mar 2000 15:00:33 +0000 (15:00 +0000)]
Lawrence Kesteloot noted: Lib/user.py has a comment that says that the
script pointed to by PYTHONPATH will be executed on startup.  That
should say PYTHONSTARTUP.

24 years agoChanges from 1.5.2p2, plus fix a couple of errors noted by Hernan
Fred Drake [Wed, 29 Mar 2000 22:41:52 +0000 (22:41 +0000)]
Changes from 1.5.2p2, plus fix a couple of errors noted by Hernan
Martinez Foffani <hfoffani@sofrecom.com.ar>.

24 years ago__pushtodev(): Ignore transient sunaudiodev.errors when setting the
Barry Warsaw [Wed, 29 Mar 2000 21:05:53 +0000 (21:05 +0000)]
__pushtodev(): Ignore transient sunaudiodev.errors when setting the
device info.  I don't know why these occur, but they seem to be
shortlived and harmless.

24 years agoeval_code2(): Oops, in the last checkin, we shouldn't check for
Barry Warsaw [Wed, 29 Mar 2000 18:36:49 +0000 (18:36 +0000)]
eval_code2(): Oops, in the last checkin, we shouldn't check for
PyErr_Occurred(), just set x=NULL and break.  Oh, and make Jeremy stop
nagging me about the "special" indentation for this block.

24 years agoeval_code2(): In the extended calling syntax opcodes, you must check
Barry Warsaw [Wed, 29 Mar 2000 18:30:03 +0000 (18:30 +0000)]
eval_code2(): In the extended calling syntax opcodes, you must check
the return value of PySequence_Length().  If an exception occurred,
the returned length will be -1.  Make sure this doesn't get obscurred,
and that the bogus length isn't used.

24 years agoMoved robotparser.py to the Lib directory.
Guido van Rossum [Wed, 29 Mar 2000 16:02:45 +0000 (16:02 +0000)]
Moved robotparser.py to the Lib directory.
If you do a "cvs update" in the Lib directory, it will pop up there.

24 years agoPut the Python "system" include dir last, rather than first.
Greg Ward [Wed, 29 Mar 2000 04:13:49 +0000 (04:13 +0000)]
Put the Python "system" include dir last, rather than first.

24 years agoCall 'find_exe()', not '_find_exe()'.
Greg Ward [Wed, 29 Mar 2000 04:13:00 +0000 (04:13 +0000)]
Call 'find_exe()', not '_find_exe()'.

24 years agoPatch inspired by Bastian Kleineidam <calvin@cs.uni-sb.de>:
Greg Ward [Wed, 29 Mar 2000 03:29:34 +0000 (03:29 +0000)]
Patch inspired by Bastian Kleineidam <calvin@cs.uni-sb.de>:
use global __debug__ flag to determine if compiled files will be ".pyc"
or ".pyo".  Tweaked compilation output messages too.

24 years agoChanged 'copy_tree()' so it returns the list of all files that were copied or
Greg Ward [Wed, 29 Mar 2000 03:27:45 +0000 (03:27 +0000)]
Changed 'copy_tree()' so it returns the list of all files that were copied or
might have been copied, regardless of the 'update' flag.

24 years agoDocumented Bastian's patch.
Greg Ward [Wed, 29 Mar 2000 02:56:34 +0000 (02:56 +0000)]
Documented Bastian's patch.
Made handling OSError in 'mkpath()' more standard.

24 years agoPatch from Bastian Kleineidam <calvin@cs.uni-sb.de>:
Greg Ward [Wed, 29 Mar 2000 02:53:02 +0000 (02:53 +0000)]
Patch from Bastian Kleineidam <calvin@cs.uni-sb.de>:
make 'mkdir()' return list of directories created.

24 years agoAdded 'make_tarball()' and 'make_zipfile()' functions in preparation
Greg Ward [Wed, 29 Mar 2000 02:48:40 +0000 (02:48 +0000)]
Added 'make_tarball()' and 'make_zipfile()' functions in preparation
for the 'bdist_dumb' command.  Adapted, with tweakage, from the 'sdist'
command.

24 years agoMoved the guts of 'make_tarball()' and 'make_zipfile()' to distutils.util
Greg Ward [Wed, 29 Mar 2000 02:47:29 +0000 (02:47 +0000)]
Moved the guts of 'make_tarball()' and 'make_zipfile()' to distutils.util
in preparation for the 'bdist_dumb' command; these methods remain as
trivial wrappers around the versions in distutils.util.

24 years agoAdded the "distribution query" methods: 'has_pure_modules()',
Greg Ward [Wed, 29 Mar 2000 02:20:45 +0000 (02:20 +0000)]
Added the "distribution query" methods: 'has_pure_modules()',
'has_ext_modules()', 'has_c_libraries()', 'has_modules()', and 'is_pure()'.

24 years agoAdded 'build_clib'; replaced 'install_py' and 'install_ext' with 'install_lib'.
Greg Ward [Wed, 29 Mar 2000 02:18:39 +0000 (02:18 +0000)]
Added 'build_clib'; replaced 'install_py' and 'install_ext' with 'install_lib'.

24 years agoBe sure to run both 'build_py' and 'build_ext', now that this command
Greg Ward [Wed, 29 Mar 2000 02:17:42 +0000 (02:17 +0000)]
Be sure to run both 'build_py' and 'build_ext', now that this command
  is responsible for installing all Python modules (pure and extensions).
Added 'get_outputs()' in preparation for the 'bdist' command, and
  '_mutate_outputs()' to support 'get_outputs()'.

24 years agoChanged so the sub-commands we rely on to do the real work is specified
Greg Ward [Wed, 29 Mar 2000 02:15:57 +0000 (02:15 +0000)]
Changed so the sub-commands we rely on to do the real work is specified
  in a class attribute 'sub_commands', rather than hard-coded in 'run()'.
  This should make it easier to subclass 'install', and also makes it
  easier to keep 'run()' and the new 'get_outputs()' consistent.
Added 'get_outputs()' in preparation for the 'bdist' command.

24 years agoUse the new 'has_pure_modules()', 'has_ext_modules()', 'has_c_libraries()'
Greg Ward [Wed, 29 Mar 2000 02:14:21 +0000 (02:14 +0000)]
Use the new 'has_pure_modules()', 'has_ext_modules()', 'has_c_libraries()'
methods of Distribution instead of grovelling directly in self.distribution.

24 years agoAdded 'get_outputs()' in prepartion for the 'bdist' command.
Greg Ward [Wed, 29 Mar 2000 02:13:09 +0000 (02:13 +0000)]
Added 'get_outputs()' in prepartion for the 'bdist' command.
Changed signature of 'build_extensions()': no longer takes the extension
  list, but uses 'self.extensions' (just like 'get_outputs()' has to)
Moved call to 'check_extensions_list()' from 'run()' to 'build_extensions()',
  again for consistency with 'get_outputs()'.

24 years agoDeleted some crufty comments and code.
Greg Ward [Wed, 29 Mar 2000 02:10:51 +0000 (02:10 +0000)]
Deleted some crufty comments and code.
A host of improvements in preparation for the 'bdist' command:
  - added 'get_outputs()' method (all the other improvements were to support
    this addition)
  - made 'find_package_modules()' and 'find_modules()' return similar
    values (list of (package, module, module_filename) tuples)
  - factored 'find_all_modules()' out of 'get_source_files()' (needed
    by 'get_outputs()')
  - factored 'get_module_outfile()' out of 'build_module()' (also needed
    by 'get_outputs()')
  - various little tweaks, improvements, comment/doc updates

24 years agoUpdate for creating and linking with python16.dll.
Guido van Rossum [Wed, 29 Mar 2000 01:54:24 +0000 (01:54 +0000)]
Update for creating and linking with python16.dll.
Also, _tkinter is linked with Tcl 8.3.

24 years agoUpdated for Python 1.6 and VC++ 6.0.
Guido van Rossum [Wed, 29 Mar 2000 01:51:37 +0000 (01:51 +0000)]
Updated for Python 1.6 and VC++ 6.0.

24 years agoVersion -> 1.6.
Guido van Rossum [Wed, 29 Mar 2000 01:50:50 +0000 (01:50 +0000)]
Version -> 1.6.

24 years agoChanges to completely ignore the registry when it detects that you are
Guido van Rossum [Wed, 29 Mar 2000 01:49:47 +0000 (01:49 +0000)]
Changes to completely ignore the registry when it detects that you are
running out of the build directory.  This means that it will no longer
try to use an older version of the library when an older version has
been installed.

24 years agoChange the pragmas to use python16.lib instead of python15.lib. (Took
Guido van Rossum [Wed, 29 Mar 2000 01:48:29 +0000 (01:48 +0000)]
Change the pragmas to use python16.lib instead of python15.lib.  (Took
me half an hour to find why it was still linking with python15.dll!)

24 years agoVersion updated to 1.6; API version to 1009.
Guido van Rossum [Wed, 29 Mar 2000 01:46:45 +0000 (01:46 +0000)]
Version updated to 1.6; API version to 1009.

24 years agoThe Tcl_Obj patch discussed on the patches list.
Guido van Rossum [Wed, 29 Mar 2000 00:19:50 +0000 (00:19 +0000)]
The Tcl_Obj patch discussed on the patches list.

This was originally submitted by Martin von Loewis as part of his
Unicode patch; all I did was add special cases for Python int and
float objects and rearrange the object type tests somewhat to speed up
the common cases (string, int, float, tuple, unicode, object).

24 years agoremove reference (vestigal) to CALL_FUNCTION_STAR
Jeremy Hylton [Wed, 29 Mar 2000 00:10:44 +0000 (00:10 +0000)]
remove reference (vestigal) to CALL_FUNCTION_STAR

24 years agoremove reference to CALL_FUNCTION_STAR in comment
Jeremy Hylton [Wed, 29 Mar 2000 00:10:03 +0000 (00:10 +0000)]
remove reference to CALL_FUNCTION_STAR in comment

24 years agofix previous checkin
Jeremy Hylton [Tue, 28 Mar 2000 23:53:22 +0000 (23:53 +0000)]
fix previous checkin

24 years agoadd test cases for Greg Ewing's extended call syntax patch
Jeremy Hylton [Tue, 28 Mar 2000 23:51:17 +0000 (23:51 +0000)]
add test cases for Greg Ewing's extended call syntax patch

24 years agoslightly modified version of Greg Ewing's extended call syntax patch
Jeremy Hylton [Tue, 28 Mar 2000 23:49:17 +0000 (23:49 +0000)]
slightly modified version of Greg Ewing's extended call syntax patch

executive summary:
Instead of typing 'apply(f, args, kwargs)' you can type 'f(*arg, **kwargs)'.
Some file-by-file details follow.

Grammar/Grammar:
    simplify varargslist, replacing '*' '*' with '**'
    add * & ** options to arglist

Include/opcode.h & Lib/dis.py:
    define three new opcodes
        CALL_FUNCTION_VAR
        CALL_FUNCTION_KW
        CALL_FUNCTION_VAR_KW

Python/ceval.c:
    extend TypeError "keyword parameter redefined" message to include
        the name of the offending keyword
    reindent CALL_FUNCTION using four spaces
    add handling of sequences and dictionaries using extend calls
    fix function import_from to use PyErr_Format

24 years agoFredrik Lundh:
Guido van Rossum [Tue, 28 Mar 2000 21:45:46 +0000 (21:45 +0000)]
Fredrik Lundh:

This fixes a bunch of socket.connect(host, post) calls.  Note that I
haven't tested all modules -- I don't have enough servers here...

24 years agoFredrik Lundh:
Guido van Rossum [Tue, 28 Mar 2000 21:42:38 +0000 (21:42 +0000)]
Fredrik Lundh:

The new filecmp module has an optional argument called use_statcache
which is documented as a true/false value, but used as an tuple index.

This patches replaces the tuple stuff with a good old if- statement,
and also removes a few other tuple pack/unpack constructs (if not
else, this saves a few bytes in the PYC file, and a few microseconds
when using the module ;-).

24 years agoUpdated NetPresenz URL. Still needs update in the light of the new :Mac:Tools:CGI...
Just van Rossum [Tue, 28 Mar 2000 20:54:50 +0000 (20:54 +0000)]
Updated NetPresenz URL. Still needs update in the light of the new :Mac:Tools:CGI: stuff. Later. (jvr)

24 years agoadded PythonCGISlave and BuildCGIApplet to the list of applets to build (jvr)
Just van Rossum [Tue, 28 Mar 2000 20:50:36 +0000 (20:50 +0000)]
added PythonCGISlave and BuildCGIApplet to the list of applets to build (jvr)

24 years agoMark Hammond: add winreg module as new subproject.
Guido van Rossum [Tue, 28 Mar 2000 20:37:33 +0000 (20:37 +0000)]
Mark Hammond: add winreg module as new subproject.

24 years agoMark Hammond: new winreg module; updated dllbase file.
Guido van Rossum [Tue, 28 Mar 2000 20:37:15 +0000 (20:37 +0000)]
Mark Hammond: new winreg module; updated dllbase file.