]> granicus.if.org Git - python/log
python
24 years agoChanged to pay attention to the 'runtime_library_dirs' list (= 'rpath'
Greg Ward [Sat, 18 Mar 2000 15:19:51 +0000 (15:19 +0000)]
Changed to pay attention to the 'runtime_library_dirs' list (= 'rpath'
option in the 'build_ext' command):
  * in ccompiler.py: 'gen_lib_options()' now takes 'runtime_library_dirs'
    parameter
  * in unixccompiler.py and msvccompiler.py: now pass
    'self.runtime_library_dirs' to 'gen_lib_options()', and define
    'runtime_library_dir_option()' (although in msvccompiler.py it
    blows up with a DistutilsPlatformError right now!)

24 years agoThird attempt at documenting an installation scheme; this one feels like
Greg Ward [Sat, 18 Mar 2000 15:11:50 +0000 (15:11 +0000)]
Third attempt at documenting an installation scheme; this one feels like
it could work--reasonably short and straightforward to document, but
flexible enough that it will be able to handle more than just modules
and extensions in the future.

24 years agoOf course, I forget how to type long ago...
Fred Drake [Fri, 17 Mar 2000 16:56:23 +0000 (16:56 +0000)]
Of course, I forget how to type long ago...

Typo noted by /F.

24 years agoAdded a method GetMediaNextInterestingTimeOnly, which is like GetMediaNextInteresting...
Jack Jansen [Fri, 17 Mar 2000 16:49:59 +0000 (16:49 +0000)]
Added a method GetMediaNextInterestingTimeOnly, which is like GetMediaNextInterestingTime without asking for the duration (which is, according to qt docs, expensive).

24 years ago"write marshalled" --> "writes marshalled" (in docstring); noted by
Fred Drake [Fri, 17 Mar 2000 15:43:37 +0000 (15:43 +0000)]
"write marshalled" --> "writes marshalled" (in docstring); noted by
Detlef Lannert <lannert@lannert.rz.uni-duesseldorf.de>.

24 years agoOops, another in the same file; I should read the mail fully before
Fred Drake [Fri, 17 Mar 2000 15:42:11 +0000 (15:42 +0000)]
Oops, another in the same file; I should read the mail fully before
checking in; sorry!

"the the" --> "the" (in docstring); noted by Detlef Lannert
<lannert@lannert.rz.uni-duesseldorf.de>.

24 years ago"intput" --> "input" (in docstring); noted by Detlef Lannert
Fred Drake [Fri, 17 Mar 2000 15:40:35 +0000 (15:40 +0000)]
"intput" --> "input" (in docstring); noted by Detlef Lannert
<lannert@lannert.rz.uni-duesseldorf.de>.

24 years agocomplete rewrite
Jeremy Hylton [Thu, 16 Mar 2000 20:06:59 +0000 (20:06 +0000)]
complete rewrite

code generator uses flowgraph as intermediate representation.  the old
    rep uses a list with explicit "StackRefs" to indicate the target
    of jumps.

pyassem converts flowgraph to bytecode, breaks up individual steps of
    generating bytecode

24 years agosimplify visitor walker class
Jeremy Hylton [Thu, 16 Mar 2000 20:04:16 +0000 (20:04 +0000)]
simplify visitor walker class
- remove postorder
- remove protocol for automatically walking children based on visitor
  method return value; now only walks if there is no method

24 years agofix list.append problems
Jeremy Hylton [Thu, 16 Mar 2000 20:03:04 +0000 (20:03 +0000)]
fix list.append problems

24 years agochange name of Set method: items -> elements (avoids confusion with
Jeremy Hylton [Thu, 16 Mar 2000 20:02:38 +0000 (20:02 +0000)]
change name of Set method: items -> elements (avoids confusion with
dict)

24 years agoScript to annotate api.tex with reference count information.
Fred Drake [Wed, 15 Mar 2000 14:57:59 +0000 (14:57 +0000)]
Script to annotate api.tex with reference count information.

24 years agoAETransactionID was mistakenly defined as a short (it is a long). Fixed.
Jack Jansen [Tue, 14 Mar 2000 23:29:08 +0000 (23:29 +0000)]
AETransactionID was mistakenly defined as a short (it is a long). Fixed.

24 years agoFix bogus error reporting on strptime: let PyArg_ParseTuple set exception.
Jeremy Hylton [Tue, 14 Mar 2000 21:17:16 +0000 (21:17 +0000)]
Fix bogus error reporting on strptime: let PyArg_ParseTuple set exception.
Also, wrap long line.

24 years agoMarc-Andre Lemburg: add declaration for PyUnicode_Contains().
Guido van Rossum [Mon, 13 Mar 2000 23:22:24 +0000 (23:22 +0000)]
Marc-Andre Lemburg: add declaration for PyUnicode_Contains().

24 years agoMarc-Andre Lemburg: Add tests for mixed use of char in string.
Guido van Rossum [Mon, 13 Mar 2000 23:21:48 +0000 (23:21 +0000)]
Marc-Andre Lemburg: Add tests for mixed use of char in string.

24 years agoChecking in the new, improve file.writelines() code.
Guido van Rossum [Mon, 13 Mar 2000 16:27:06 +0000 (16:27 +0000)]
Checking in the new, improve file.writelines() code.

This (1) avoids thread unsafety whereby another thread could zap the
list while we were using it, and (2) now supports writing arbitrary
sequences of strings.

24 years agoChristian Tismer's "trashcan" patch:
Guido van Rossum [Mon, 13 Mar 2000 16:01:29 +0000 (16:01 +0000)]
Christian Tismer's "trashcan" patch:

Added wrapping macros to dictobject.c, listobject.c, tupleobject.c,
frameobject.c, traceback.c that safely prevends core dumps
on stack overflow. Macros and functions in object.c, object.h.
The method is an "elevator destructor" that turns cascading
deletes into tail recursive behavior when some limit is hit.

24 years agoFix typo in replace() detected by Mark Hammond and fixed by Marc-Andre.
Guido van Rossum [Mon, 13 Mar 2000 15:56:08 +0000 (15:56 +0000)]
Fix typo in replace() detected by Mark Hammond and fixed by Marc-Andre.

24 years agoAdd sq_contains implementation.
Guido van Rossum [Mon, 13 Mar 2000 15:55:09 +0000 (15:55 +0000)]
Add sq_contains implementation.

24 years agoAdded Christian Tismer's patch to allow list.append(a,b,c) back --
Guido van Rossum [Mon, 13 Mar 2000 15:41:59 +0000 (15:41 +0000)]
Added Christian Tismer's patch to allow list.append(a,b,c) back --
with a twist: you have to define NO_STRICT_LIST_APPEND manually
to enable multi-arg append().

24 years agoAdded encodings to the LIBSUBDIRS variable, so that they get installed.
Guido van Rossum [Mon, 13 Mar 2000 15:22:27 +0000 (15:22 +0000)]
Added encodings to the LIBSUBDIRS variable, so that they get installed.
Noted by Michael Hudson.

24 years agoTim Peters writes:
Guido van Rossum [Mon, 13 Mar 2000 14:50:24 +0000 (14:50 +0000)]
Tim Peters writes:

Fix bad auto-indent I recently introduced when replacing the regexp that
could cause re to blow up:

    if or_any_other_block_opener:
        # one indenting comment line
            ^ cursor ended up at the caret (the bug)
        ^ but belongs here (the post-patch behavior)

24 years agoVC++ project changes to add new Unicode files and modules.
Guido van Rossum [Sat, 11 Mar 2000 00:13:14 +0000 (00:13 +0000)]
VC++ project changes to add new Unicode files and modules.
(I did this under VC++ 5.0 -- hope this doesn't break anything.)

24 years agoMarc-Andre Lemburg: test script for Unicode implementation.
Guido van Rossum [Fri, 10 Mar 2000 23:23:21 +0000 (23:23 +0000)]
Marc-Andre Lemburg: test script for Unicode implementation.

24 years agoMarc-Andre Lemburg: the maxsplit argument for split() and replace()
Guido van Rossum [Fri, 10 Mar 2000 23:22:10 +0000 (23:22 +0000)]
Marc-Andre Lemburg: the maxsplit argument for split() and replace()
now defaults to -1, not to 0.  Passing an explicit zero doesn't split
or replace at all.

24 years agoModule codecs -- Python Codec Registry, API and helpers. Written by
Guido van Rossum [Fri, 10 Mar 2000 23:20:43 +0000 (23:20 +0000)]
Module codecs -- Python Codec Registry, API and helpers.  Written by
Marc-Andre Lemburg.

24 years agoMarc-Andre Lemburg: support pickling Unicode objects, both in text
Guido van Rossum [Fri, 10 Mar 2000 23:20:09 +0000 (23:20 +0000)]
Marc-Andre Lemburg: support pickling Unicode objects, both in text
mode ('V') and in binary mode ('X').

24 years agoMarc-Andre Lemburg: add UnicodeType.
Guido van Rossum [Fri, 10 Mar 2000 23:18:11 +0000 (23:18 +0000)]
Marc-Andre Lemburg: add UnicodeType.

24 years agoMarc-Andre Lemburg: Unicode encodings.
Guido van Rossum [Fri, 10 Mar 2000 23:17:24 +0000 (23:17 +0000)]
Marc-Andre Lemburg: Unicode encodings.

24 years agoMarc-Andre Lemburg: Add UnicodeError, derived from ValueError.
Guido van Rossum [Fri, 10 Mar 2000 23:16:02 +0000 (23:16 +0000)]
Marc-Andre Lemburg: Add UnicodeError, derived from ValueError.

24 years agoMarc-Andre Lemburg: Python Unicode integration proposal, version 1.2.
Guido van Rossum [Fri, 10 Mar 2000 23:14:11 +0000 (23:14 +0000)]
Marc-Andre Lemburg: Python Unicode integration proposal, version 1.2.

24 years agoMarc-Andre Lemburg: add new Unicode-related files.
Guido van Rossum [Fri, 10 Mar 2000 23:12:33 +0000 (23:12 +0000)]
Marc-Andre Lemburg: add new Unicode-related files.

24 years agoMarc-Andre Lemburg: Add _codecs and unicodedata modules.
Guido van Rossum [Fri, 10 Mar 2000 23:12:08 +0000 (23:12 +0000)]
Marc-Andre Lemburg: Add _codecs and unicodedata modules.

24 years agoMarc-Andre Lemburg: support pickling Unicode objects, both in text
Guido van Rossum [Fri, 10 Mar 2000 23:11:40 +0000 (23:11 +0000)]
Marc-Andre Lemburg: support pickling Unicode objects, both in text
mode ('V') and in binary mode ('X').

24 years agoModule unicodedata -- Provides access to the Unicode 3.0 data base.
Guido van Rossum [Fri, 10 Mar 2000 23:10:21 +0000 (23:10 +0000)]
Module unicodedata -- Provides access to the Unicode 3.0 data base.
Written by Marc-Andre Lemburg.

24 years agoInternal module _codecs -- Provides access to the codec registry and
Guido van Rossum [Fri, 10 Mar 2000 23:09:23 +0000 (23:09 +0000)]
Internal module _codecs -- Provides access to the codec registry and
the builtin codecs.  Written by Marc-Andre Lemburg.

24 years agoMarc-Andre-Lemburg: The Unicode Database.
Guido van Rossum [Fri, 10 Mar 2000 23:08:04 +0000 (23:08 +0000)]
Marc-Andre-Lemburg: The Unicode Database.

24 years agoMarc-Andre Lemburg: add new unicode files
Guido van Rossum [Fri, 10 Mar 2000 23:04:14 +0000 (23:04 +0000)]
Marc-Andre Lemburg: add new unicode files

24 years agoMarc-Andre Lemburg: add calls to initialize and finalize Unicode and
Guido van Rossum [Fri, 10 Mar 2000 23:03:54 +0000 (23:03 +0000)]
Marc-Andre Lemburg: add calls to initialize and finalize Unicode and
Codec registry.

24 years agoMarc-Andre Lemburg: support marshalling Unicode objects (code 'u').
Guido van Rossum [Fri, 10 Mar 2000 23:03:02 +0000 (23:03 +0000)]
Marc-Andre Lemburg: support marshalling Unicode objects (code 'u').

24 years agoMarc-Andre Lemburg: support for Unicode strings; 'U' expects a Unicode
Guido van Rossum [Fri, 10 Mar 2000 23:02:17 +0000 (23:02 +0000)]
Marc-Andre Lemburg: support for Unicode strings; 'U' expects a Unicode
object.

24 years agoMarc-Andre Lemburg: support for Unicode string literals (u"...", ur"...").
Guido van Rossum [Fri, 10 Mar 2000 23:01:36 +0000 (23:01 +0000)]
Marc-Andre Lemburg: support for Unicode string literals (u"...", ur"...").

24 years agoMarc-Andre Lemburg: added new builtin functions unicode() and
Guido van Rossum [Fri, 10 Mar 2000 23:00:52 +0000 (23:00 +0000)]
Marc-Andre Lemburg: added new builtin functions unicode() and
unichr(); changed ord() to support Unicode strings; added new
exception UnicodeError; fixed a typo in doc string for buffer().

24 years agoPython Codec Registry and support functions, written by Marc-Andre
Guido van Rossum [Fri, 10 Mar 2000 22:57:27 +0000 (22:57 +0000)]
Python Codec Registry and support functions, written by Marc-Andre
Lemburg.

24 years agoMarc-Andre Lemburg: add new string token types u"..." and ur"..."
Guido van Rossum [Fri, 10 Mar 2000 22:56:54 +0000 (22:56 +0000)]
Marc-Andre Lemburg: add new string token types u"..." and ur"..."
(Unicode and raw Unicode).

24 years agoMarc-AAndre Lemburg: add new unicode files
Guido van Rossum [Fri, 10 Mar 2000 22:55:40 +0000 (22:55 +0000)]
Marc-AAndre Lemburg: add new unicode files

24 years agoMany changes for Unicode, by Marc-Andre Lemburg.
Guido van Rossum [Fri, 10 Mar 2000 22:55:18 +0000 (22:55 +0000)]
Many changes for Unicode, by Marc-Andre Lemburg.

24 years agoUnicode implementation by Marc-Andre Lemburg based on original code by
Guido van Rossum [Fri, 10 Mar 2000 22:53:23 +0000 (22:53 +0000)]
Unicode implementation by Marc-Andre Lemburg based on original code by
Fredrik Lundh.

24 years agoUnicode character type helpers, written by Marc-Andre Lemburg.
Guido van Rossum [Fri, 10 Mar 2000 22:52:46 +0000 (22:52 +0000)]
Unicode character type helpers, written by Marc-Andre Lemburg.

24 years agoMarc-Andre Lemburg: added
Guido van Rossum [Fri, 10 Mar 2000 22:36:57 +0000 (22:36 +0000)]
Marc-Andre Lemburg: added
gencodec.py - Create Python codecs from Unicode mapping files

24 years agoMarc-Andre Lemburg: added declarations for PyObject_AsCharBuffer,
Guido van Rossum [Fri, 10 Mar 2000 22:35:06 +0000 (22:35 +0000)]
Marc-Andre Lemburg: added declarations for PyObject_AsCharBuffer,
PyObject_AsReadBuffer, PyObject_AsWriteBuffer.

24 years agoMarc-Andre Lemburg: include unicodeobject.h and codecs.h
Guido van Rossum [Fri, 10 Mar 2000 22:34:00 +0000 (22:34 +0000)]
Marc-Andre Lemburg: include unicodeobject.h and codecs.h

24 years agoMarc-Andre Lemburg: add PyExc_UnicodeError
Guido van Rossum [Fri, 10 Mar 2000 22:33:32 +0000 (22:33 +0000)]
Marc-Andre Lemburg: add PyExc_UnicodeError

24 years agoUnicode implementation by Marc-Andre Lemburg based on original code by Fredrik Lundh.
Guido van Rossum [Fri, 10 Mar 2000 22:33:05 +0000 (22:33 +0000)]
Unicode implementation by Marc-Andre Lemburg based on original code by Fredrik Lundh.

24 years agoPython Codec Registry and support functions, by Marc-Andre Lemburg.
Guido van Rossum [Fri, 10 Mar 2000 22:32:23 +0000 (22:32 +0000)]
Python Codec Registry and support functions, by Marc-Andre Lemburg.

24 years agoPart of the Unicode checkin for Marc-Andre Lemburg.
Guido van Rossum [Fri, 10 Mar 2000 22:30:29 +0000 (22:30 +0000)]
Part of the Unicode checkin for Marc-Andre Lemburg.
Some new configuration tests and a new option, --with-wctype-functions.

24 years agoCatch up with change to CCompiler API: call 'create_static_lib()', not
Greg Ward [Fri, 10 Mar 2000 02:02:44 +0000 (02:02 +0000)]
Catch up with change to CCompiler API: call 'create_static_lib()', not
'link_static_lib()'.

24 years ago[from 2000-02-25] Second attempt at describing an installation scheme; this is
Greg Ward [Fri, 10 Mar 2000 01:57:51 +0000 (01:57 +0000)]
[from 2000-02-25] Second attempt at describing an installation scheme; this is
the simplified scheme that Guido proposed.  Also already-obsolete,
and saved only for posterity.

24 years ago[from 2000-02-23] Description of the baroque and already-obsolete
Greg Ward [Fri, 10 Mar 2000 01:56:58 +0000 (01:56 +0000)]
[from 2000-02-23] Description of the baroque and already-obsolete
installation scheme that Fred Drake and I cooked up.  Only saved for
posterity.

24 years agoRenamed 'link_static_lib() to 'create_static_lib()', and rewrote it create
Greg Ward [Fri, 10 Mar 2000 01:49:26 +0000 (01:49 +0000)]
Renamed 'link_static_lib() to 'create_static_lib()', and rewrote it create
a static library (using lib.exe as found by '__init__()', hopefully through
registry entries pointing to DevStudio).

24 years agoRenamed 'link_static_lib() to 'create_static_lib()'.
Greg Ward [Fri, 10 Mar 2000 01:48:32 +0000 (01:48 +0000)]
Renamed 'link_static_lib() to 'create_static_lib()'.

24 years agoa simple client-server framework for executing code in a different
Jeremy Hylton [Thu, 9 Mar 2000 19:56:50 +0000 (19:56 +0000)]
a simple client-server framework for executing code in a different
process

not yet connected with IDLE

24 years agoThere are a few places which can raise DistutilsPlatformError; make
Fred Drake [Thu, 9 Mar 2000 15:54:52 +0000 (15:54 +0000)]
There are a few places which can raise DistutilsPlatformError; make
sure it's imported!  ;)

Re-wrap the docstrings on get_python_inc() and get_python_lib() to be
closer to the "normal" Python style.  See GvR's "style guide" on the
essays page (http://www.python.org/doc/essays/).

There should never be a space between a function name and the '(' that
opens the argument list (see the style guide again).

24 years agoAdded Joe Van Andel's 'get_python_inc()', adapted by me to supply
Greg Ward [Thu, 9 Mar 2000 03:16:05 +0000 (03:16 +0000)]
Added Joe Van Andel's 'get_python_inc()', adapted by me to supply
  the platform-neutral include dir by default and with Mac support.
Added 'get_python_lib()', inspired by 'get_python_inc()'.
Rewrote 'get_config_h_filename()' and 'get_makefile_filename()'
  in terms of 'get_python_inc()' and 'get_python_lib()'.
Changed '_init_nt()' and '_init_mac()' to use 'get_python_inc()' and
  'get_python_lib()' for directory names.

24 years agoHandles were never disposed. Added an AutoDispose(onoff) method to control this.
Jack Jansen [Wed, 8 Mar 2000 16:58:15 +0000 (16:58 +0000)]
Handles were never disposed. Added an AutoDispose(onoff) method to control this.
Also added a Handle() function which is like Resource() but has auto-dispose on by default.

24 years agoA bunch of changes, primarily to command line argument parsing
Barry Warsaw [Wed, 8 Mar 2000 15:18:35 +0000 (15:18 +0000)]
A bunch of changes, primarily to command line argument parsing
(inspired by Detlef Lannert).  Specifically,

    -k/--keyword no longer takes an optional argument to clear the
    default keywords.  Instead, use -K/--no-default-keywords to clear
    them.

    -n/--add-location also no longer takes an optional argument to set
    the comment style.  Instead, use -S/--style to set the comment
    style to GNU or Solaris.

    -o/--output can take `-' as the filename, meaning write to
    standard output.

    The inputfile name can also be `-' meaning read from standard in.

A few other changes include

    Kludge to mark the file docstring as translatable.  Since the
    marking is to place _() around the docstring, and because we
    actually have to define the _() function before we use it, this
    means that we have to manually assign to __doc__ the output of
    _().  This doesn't seem too bad because you'll only use this idiom
    when translating a script's docstring (you really don't need to
    translate most module docstrings).

    Convert everything to string methods and do not import the string
    module.

    Bump the version number to 1.1

24 years agoFixed multi-arg appends.
Jack Jansen [Tue, 7 Mar 2000 23:40:13 +0000 (23:40 +0000)]
Fixed multi-arg appends.

24 years agoOverride the Undo delegator to forbid any changes before the I/O mark.
Guido van Rossum [Tue, 7 Mar 2000 18:51:49 +0000 (18:51 +0000)]
Override the Undo delegator to forbid any changes before the I/O mark.
It beeps if you try to insert or delete before the "iomark" mark.
This makes the shell less confusing for newbies.

24 years agoreplace : with =
Jeremy Hylton [Tue, 7 Mar 2000 17:56:47 +0000 (17:56 +0000)]
replace : with =

24 years agorename the global IdleConfParser object from IdleConf to idleconf
Jeremy Hylton [Tue, 7 Mar 2000 17:56:27 +0000 (17:56 +0000)]
rename the global IdleConfParser object from IdleConf to idleconf
standard usage is now from IdleConf import idleconf

24 years agorename the global IdleConfParser object from IdleConf to idleconf
Jeremy Hylton [Tue, 7 Mar 2000 17:55:32 +0000 (17:55 +0000)]
rename the global IdleConfParser object from IdleConf to idleconf
standard usage is now from IdleConf import idleconf

replace : with = in config.txt

24 years agoTweak the goto file/line command (in the right button menu in PyShell
Guido van Rossum [Tue, 7 Mar 2000 16:25:11 +0000 (16:25 +0000)]
Tweak the goto file/line command (in the right button menu in PyShell
and output windows) so that it if it doesn't succeed with the line
at the cursor, it tries the line before that.  This is handy with
tracebacks, where my natural tendency is to click in the displayed
source line rather than in the file/line indicator just above it.
Now I can indulge this tendency.

I factored out a helper and changed the error handling so that a
non-existing file is treated as if the line didn't match -- this is
handy because some function calls (e.g. "foo.bar(1)") match the grep
pattern.

24 years agoPatch by Moshe Zadka: remove the string special case in
Guido van Rossum [Tue, 7 Mar 2000 15:54:45 +0000 (15:54 +0000)]
Patch by Moshe Zadka: remove the string special case in
PySequence_Contains() now that string objects have this code in their
tp_contains.

24 years agoPatch by Moshe Zadka: move the string special case from abstract.c
Guido van Rossum [Tue, 7 Mar 2000 15:53:43 +0000 (15:53 +0000)]
Patch by Moshe Zadka: move the string special case from abstract.c
here.

[Patch modified by GvR to keep the original exception.]

24 years agoAdd tests for char in string -- including required exceptions for
Guido van Rossum [Tue, 7 Mar 2000 15:52:01 +0000 (15:52 +0000)]
Add tests for char in string -- including required exceptions for
non-char in string.

24 years agoSjoerd Mullender:
Guido van Rossum [Tue, 7 Mar 2000 15:19:31 +0000 (15:19 +0000)]
Sjoerd Mullender:

The (relatively) new chunk module uses seek, not setpos.  One instance
of the call still needed to be fixed.

24 years agoAdded a bunch of TODO items that recently came up in the idle-dev list.
Guido van Rossum [Tue, 7 Mar 2000 15:17:53 +0000 (15:17 +0000)]
Added a bunch of TODO items that recently came up in the idle-dev list.
Also removed a bunch of items

24 years agoIf we're in the current input and there's only whitespace beyond the
Guido van Rossum [Tue, 7 Mar 2000 15:05:50 +0000 (15:05 +0000)]
If we're in the current input and there's only whitespace beyond the
cursor, erase that whitespace first.  This avoids a particularly
confusing case where hitting Return at the end of the command didn't
do what it was expected to do -- because it wasn't considered to be at
the end of the command.  Now it is.

24 years agoFixed inet_ntoa() docstring.
Fred Drake [Tue, 7 Mar 2000 14:05:16 +0000 (14:05 +0000)]
Fixed inet_ntoa() docstring.

24 years agoPatch from Corran Webster <cwebster@nevada.edu> (tweaked for style by me):
Greg Ward [Tue, 7 Mar 2000 03:34:16 +0000 (03:34 +0000)]
Patch from Corran Webster <cwebster@nevada.edu> (tweaked for style by me):
changed 'copy_file()' to use the native Mac file copy routine.

24 years agoPatch from Corran Webster <cwebster@nevada.edu>: add '_init_mac()'.
Greg Ward [Tue, 7 Mar 2000 03:30:09 +0000 (03:30 +0000)]
Patch from Corran Webster <cwebster@nevada.edu>: add '_init_mac()'.

24 years agoAdded 'native_path()' for use on pathnames from the setup script: split on
Greg Ward [Tue, 7 Mar 2000 03:27:08 +0000 (03:27 +0000)]
Added 'native_path()' for use on pathnames from the setup script: split on
slashes, and put back together again using the local directory separator.

24 years agoAdded '_nt_quote_args()' to deal with whitespace in command-line arguments
Greg Ward [Tue, 7 Mar 2000 03:25:20 +0000 (03:25 +0000)]
Added '_nt_quote_args()' to deal with whitespace in command-line arguments
in a rather half-assed, but probably effective, way.

24 years agotest_contains output
Guido van Rossum [Mon, 6 Mar 2000 21:08:08 +0000 (21:08 +0000)]
test_contains output

24 years agoTest cases for __contains__ code, by Moshe Zadka.
Guido van Rossum [Mon, 6 Mar 2000 21:00:29 +0000 (21:00 +0000)]
Test cases for __contains__ code, by Moshe Zadka.

24 years agoSjoerd Mullender:
Guido van Rossum [Mon, 6 Mar 2000 20:39:59 +0000 (20:39 +0000)]
Sjoerd Mullender:

When you set a breakpoint on a function with a multi-line argument
list, the breakpoint is actually set on the second line of the
arguments instead of the first line of the body.  This patch fixes
that.

24 years agocompiler command-line interface moved here from compiler.pycodegen
Jeremy Hylton [Mon, 6 Mar 2000 19:13:21 +0000 (19:13 +0000)]
compiler command-line interface moved here from compiler.pycodegen

24 years agoimport compile function form pycodegen
Jeremy Hylton [Mon, 6 Mar 2000 19:12:33 +0000 (19:12 +0000)]
import compile function form pycodegen

24 years agorename compile.py to pycodegen.py
Jeremy Hylton [Mon, 6 Mar 2000 19:10:54 +0000 (19:10 +0000)]
rename compile.py to pycodegen.py

fix imports
remove parse functions and visitor code
track name change: Classdef to Class

add some comments and tweak order of visitXXX methods

get rid of if __name__ == "__main__ section

24 years agoadd a doc string
Jeremy Hylton [Mon, 6 Mar 2000 19:04:14 +0000 (19:04 +0000)]
add a doc string
import some useful functions from contained modules

24 years agofix import to refer to compiler package
Jeremy Hylton [Mon, 6 Mar 2000 18:54:30 +0000 (18:54 +0000)]
fix import to refer to compiler package

24 years agorevise arguments for addCode method on lnotab. take several numbers
Jeremy Hylton [Mon, 6 Mar 2000 18:53:14 +0000 (18:53 +0000)]
revise arguments for addCode method on lnotab.  take several numbers
that are internally converted to chars, rather than taking a string.

24 years agochange node Classdef to Class
Jeremy Hylton [Mon, 6 Mar 2000 18:50:48 +0000 (18:50 +0000)]
change node Classdef to Class

add doc string to transformer module
add two helper functions:
    parse(buf) -> AST
    parseFile(path) -> AST

24 years agofactor out the tree walking/visitor code that was in compile.py
Jeremy Hylton [Mon, 6 Mar 2000 18:49:31 +0000 (18:49 +0000)]
factor out the tree walking/visitor code that was in compile.py

24 years agoDefer all the work to idle.py, which has recently become too
Guido van Rossum [Mon, 6 Mar 2000 17:16:05 +0000 (17:16 +0000)]
Defer all the work to idle.py, which has recently become too
complicated to copy in-line here.

24 years agoAllow None as TimeBase value in TimeValue records (becomes NULL in C structure,
Jack Jansen [Mon, 6 Mar 2000 16:34:49 +0000 (16:34 +0000)]
Allow None as TimeBase value in TimeValue records (becomes NULL in C structure,
used for delta-t values by quicktime).

24 years agostring_join(): Fix memory leaks discovered by Charles Waldman (and a
Barry Warsaw [Mon, 6 Mar 2000 14:52:18 +0000 (14:52 +0000)]
string_join(): Fix memory leaks discovered by Charles Waldman (and a
few other paths through the function that leaked).

24 years agoIn getdef(), don't die when the section doesn't exist.
Guido van Rossum [Mon, 6 Mar 2000 14:43:20 +0000 (14:43 +0000)]
In getdef(), don't die when the section doesn't exist.

24 years agoDon't use 1.6-isms (s.startswith()) -- we want to distribute this
Guido van Rossum [Mon, 6 Mar 2000 14:16:41 +0000 (14:16 +0000)]
Don't use 1.6-isms (s.startswith()) -- we want to distribute this
before 1.6 is out so it has to be compatible with 1.5.2.