]> granicus.if.org Git - python/log
python
27 years agoMoved pystone to Lib/test. Use import test.pystone to run it.
Guido van Rossum [Tue, 16 Sep 1997 18:57:42 +0000 (18:57 +0000)]
Moved pystone to Lib/test.  Use import test.pystone to run it.

27 years agoSkip symlinks; don't bother keeping a list of files that is never used.
Guido van Rossum [Tue, 16 Sep 1997 18:57:14 +0000 (18:57 +0000)]
Skip symlinks; don't bother keeping a list of files that is never used.

27 years agoNew API PyErr_NewException(name, base, dict) to create simple new exceptions.
Guido van Rossum [Tue, 16 Sep 1997 18:43:50 +0000 (18:43 +0000)]
New API PyErr_NewException(name, base, dict) to create simple new exceptions.

27 years agoIntroduce PyExc_Exception as the conceptual root class for all exceptions.
Guido van Rossum [Tue, 16 Sep 1997 18:43:15 +0000 (18:43 +0000)]
Introduce PyExc_Exception as the conceptual root class for all exceptions.

27 years agoTwo subtle changes:
Guido van Rossum [Tue, 16 Sep 1997 18:42:04 +0000 (18:42 +0000)]
Two subtle changes:

(1) Introduce Exception as the conceptual root class for all exceptions.

(2) Do less work in __init__(), and more in __str__ (store args
unchanged).

27 years agoMove the "import readline" to an earlier place so it is also done when
Guido van Rossum [Tue, 16 Sep 1997 16:11:28 +0000 (16:11 +0000)]
Move the "import readline" to an earlier place so it is also done when
"-i" is given.  (Yes, I know, giving in to Marc Lemburg who wanted
this :-)

27 years agoAdd strerror() interface.
Guido van Rossum [Mon, 15 Sep 1997 22:54:34 +0000 (22:54 +0000)]
Add strerror() interface.

27 years agoPatch by Case Roole <cjr@bound.xs4all.nl> to fail with a more
Guido van Rossum [Mon, 15 Sep 1997 15:39:11 +0000 (15:39 +0000)]
Patch by Case Roole <cjr@bound.xs4all.nl> to fail with a more
explanatory message when the manual directories aren't found.
(I have to say I'm surprised that it actually still works!)

27 years agoEntirely rewritten parseaddr() function by Sjoerd Mullender.
Guido van Rossum [Mon, 15 Sep 1997 14:12:54 +0000 (14:12 +0000)]
Entirely rewritten parseaddr() function by Sjoerd Mullender.
(Includes a patch he sent me a few days later.)

27 years agoAdded code to emit trailing ',' for singleton tuples in two places.
Guido van Rossum [Sun, 14 Sep 1997 23:21:51 +0000 (23:21 +0000)]
Added code to emit trailing ',' for singleton tuples in two places.

27 years agoExport names for the types defined by this module: TkappType and TkttType.
Guido van Rossum [Sat, 13 Sep 1997 00:44:23 +0000 (00:44 +0000)]
Export names for the types defined by this module: TkappType and TkttType.

27 years agoThree independent changes:
Guido van Rossum [Fri, 12 Sep 1997 20:07:24 +0000 (20:07 +0000)]
Three independent changes:

- Don't use "from copy_reg import *".

- Use cls.__module__ instead of calling whichobject(cls, cls.__name__);
  also try __module__ in whichmodule(), just in case.

- After calling save_reduce(), add the object to the memo.

27 years agoWhen creating a class, set its __module__ attribute to the module
Guido van Rossum [Fri, 12 Sep 1997 20:04:46 +0000 (20:04 +0000)]
When creating a class, set its __module__ attribute to the module
whose name is in the current globals' __name__ variable.  If __name__
is not set, ignore this.

27 years agoAdded hint to skip the heavy stuff on first reading.
Guido van Rossum [Thu, 11 Sep 1997 23:01:04 +0000 (23:01 +0000)]
Added hint to skip the heavy stuff on first reading.

27 years agoAs Paul Prescod pointed out, metaprogramming is really something
Guido van Rossum [Thu, 11 Sep 1997 22:54:49 +0000 (22:54 +0000)]
As Paul Prescod pointed out, metaprogramming is really something
different (programs that write programs).  We are dealing with
metaclasses here.  So change the words slightly.

27 years agoInstall config.h under $exec_prefix/include rather than $exec_prefix/lib.
Guido van Rossum [Thu, 11 Sep 1997 14:37:59 +0000 (14:37 +0000)]
Install config.h under $exec_prefix/include rather than $exec_prefix/lib.

27 years agoAdded docstrings. Not for the obsolete functions though.
Guido van Rossum [Tue, 9 Sep 1997 22:04:42 +0000 (22:04 +0000)]
Added docstrings.  Not for the obsolete functions though.

27 years agoDeleted find_module_in_package and find_module_in_directory -- they
Guido van Rossum [Tue, 9 Sep 1997 20:54:35 +0000 (20:54 +0000)]
Deleted find_module_in_package and find_module_in_directory -- they
aren't needed and it was a mistake to add them.

27 years agoUpdate the description and the example to the new functionality, which
Guido van Rossum [Tue, 9 Sep 1997 20:53:37 +0000 (20:53 +0000)]
Update the description and the example to the new functionality, which
is mostly concentrated in a generalized find_module() and the new
load_module().  Added the new module type constants.  Declare that
SEARCH_ERROR and a whole bunch of module-type-specific functions are
obsolete.

27 years ago#Added doc string.
Guido van Rossum [Tue, 9 Sep 1997 20:44:04 +0000 (20:44 +0000)]
#Added doc string.

27 years agoMake functionality more closely the same as what's implemented by default.
Guido van Rossum [Tue, 9 Sep 1997 20:39:58 +0000 (20:39 +0000)]
Make functionality more closely the same as what's implemented by default.

27 years ago*** empty log message ***
Guido van Rossum [Tue, 9 Sep 1997 20:35:20 +0000 (20:35 +0000)]
*** empty log message ***

27 years agoCrrected a flow control error that caused the wrong error message when
Guido van Rossum [Tue, 9 Sep 1997 18:53:47 +0000 (18:53 +0000)]
Crrected a flow control error that caused the wrong error message when
load-module() didn't find a built-in or frozen module.  Also got rid
of is_frozen(), which duplicated the functionality of
find_frozen()!=NULL.

27 years agoImplemented balloon help for EditPythonPrefs
Jack Jansen [Tue, 9 Sep 1997 13:58:19 +0000 (13:58 +0000)]
Implemented balloon help for EditPythonPrefs

27 years agoAdded Help module
Jack Jansen [Tue, 9 Sep 1997 13:57:59 +0000 (13:57 +0000)]
Added Help module

27 years agoAdded a button to increment buildno, so it doesn't happen
Jack Jansen [Tue, 9 Sep 1997 13:57:15 +0000 (13:57 +0000)]
Added a button to increment buildno, so it doesn't happen
automatically all the time.

27 years agoAdded balloon help for options dialog.
Jack Jansen [Tue, 9 Sep 1997 13:56:34 +0000 (13:56 +0000)]
Added balloon help for options dialog.
Added Help module.
Checked in PythonCore.prj.hqx (which had somehow slipped through until
now)

27 years agoAdded no-site-python and old-exceptions preferences.
Jack Jansen [Tue, 9 Sep 1997 13:54:25 +0000 (13:54 +0000)]
Added no-site-python and old-exceptions preferences.
Implemented balloon help for options dialog.

27 years agoAdded old-exception and no-site-python options and balloon help
Jack Jansen [Tue, 9 Sep 1997 13:53:21 +0000 (13:53 +0000)]
Added old-exception and no-site-python options and balloon help

27 years agoAdded interface to the Balloon Help Manager
Jack Jansen [Tue, 9 Sep 1997 13:52:47 +0000 (13:52 +0000)]
Added interface to the Balloon Help Manager

27 years agoAdded old-exceptions and no-site-python preferences and upped version
Jack Jansen [Tue, 9 Sep 1997 13:51:17 +0000 (13:51 +0000)]
Added old-exceptions and no-site-python preferences and upped version
to 4.

27 years agoAdded old-exceptions and no-site-python options and upped preference
Jack Jansen [Tue, 9 Sep 1997 13:50:40 +0000 (13:50 +0000)]
Added old-exceptions and no-site-python options and upped preference
version to 4.
Added balloon-help item to options dialog.

27 years agoRenamed platform specific subdirectories to plat-*.
Guido van Rossum [Tue, 9 Sep 1997 03:50:59 +0000 (03:50 +0000)]
Renamed platform specific subdirectories to plat-*.

27 years agoRenamed dos_8x3 to dos-8x3.
Guido van Rossum [Tue, 9 Sep 1997 03:42:09 +0000 (03:42 +0000)]
Renamed dos_8x3 to dos-8x3.

27 years agoThese directories renamed: tkinter -> lib-tk, stdwin -> lib-stdwin.
Guido van Rossum [Tue, 9 Sep 1997 03:39:21 +0000 (03:39 +0000)]
These directories renamed: tkinter -> lib-tk, stdwin -> lib-stdwin.

27 years agoPatch submitted by Brad Howes (with one bug fixed by me): allow
Guido van Rossum [Mon, 8 Sep 1997 18:30:11 +0000 (18:30 +0000)]
Patch submitted by Brad Howes (with one bug fixed by me): allow
arbitrary nested parens in a %(...)X style format.
#Also folded two lines and added more detail to the error message for
#unsupported format character.

27 years agoAdded support for __all__, which should be a list of modules to be
Guido van Rossum [Mon, 8 Sep 1997 16:07:11 +0000 (16:07 +0000)]
Added support for __all__, which should be a list of modules to be
imported when the user says "from package import *".

27 years agoAdded test for __all__.
Guido van Rossum [Mon, 8 Sep 1997 16:06:20 +0000 (16:06 +0000)]
Added test for __all__.

27 years agoDunno, rebinhexed?
Jack Jansen [Mon, 8 Sep 1997 13:26:55 +0000 (13:26 +0000)]
Dunno, rebinhexed?

27 years agoPreferences is a general module to get (and set) preferences in
Jack Jansen [Mon, 8 Sep 1997 13:26:36 +0000 (13:26 +0000)]
Preferences is a general module to get (and set) preferences in
resource files with various inheritence rules, parsers, etc.

pythonprefs uses this to create a single uniform interface to all
relevant python preferences.

27 years agoPreference resource now has a version number
Jack Jansen [Mon, 8 Sep 1997 13:24:54 +0000 (13:24 +0000)]
Preference resource now has a version number

27 years agoMoved the include of macbuildno.h to getbuildinfo.c. Putting it here
Jack Jansen [Mon, 8 Sep 1997 13:24:23 +0000 (13:24 +0000)]
Moved the include of macbuildno.h to getbuildinfo.c. Putting it here
resulted in full recompilation every time.

27 years agoAdded SysBeep
Jack Jansen [Mon, 8 Sep 1997 13:23:19 +0000 (13:23 +0000)]
Added SysBeep

27 years agoThe preference resource now has a version number
Jack Jansen [Mon, 8 Sep 1997 13:22:49 +0000 (13:22 +0000)]
The preference resource now has a version number

27 years agosys.prefix and sys.exec_prefix are now set correctly.
Jack Jansen [Mon, 8 Sep 1997 13:22:22 +0000 (13:22 +0000)]
sys.prefix and sys.exec_prefix are now set correctly.

27 years agoThe python preference resource now has a version number, and
Jack Jansen [Mon, 8 Sep 1997 13:21:37 +0000 (13:21 +0000)]
The python preference resource now has a version number, and
"optimize" has replaced "don't print".

27 years agoMajor overhaul: this is now little more than a user interface, the
Jack Jansen [Mon, 8 Sep 1997 13:19:42 +0000 (13:19 +0000)]
Major overhaul: this is now little more than a user interface, the
preference handling code is in modules pythonprefs and preferences.
This should finally make it easier for someone (Just?) to write a
decent interface to preference setting, and it'll allow setting
initial sys.path and such from ConfigurePython.

27 years agoRun NumPy installer, if present.
Jack Jansen [Mon, 8 Sep 1997 13:16:29 +0000 (13:16 +0000)]
Run NumPy installer, if present.
Added a couple of splash screens to show what we're doing

27 years agoBrought up to date with new options and env vars.
Guido van Rossum [Mon, 8 Sep 1997 04:06:15 +0000 (04:06 +0000)]
Brought up to date with new options and env vars.

27 years ago#Adapt the doc string to reality.
Guido van Rossum [Mon, 8 Sep 1997 02:47:46 +0000 (02:47 +0000)]
#Adapt the doc string to reality.

27 years ago#Oops, missed a plat- prefix (for Lib/generic).
Guido van Rossum [Mon, 8 Sep 1997 02:31:17 +0000 (02:31 +0000)]
#Oops, missed a plat- prefix (for Lib/generic).

27 years agoSome nits, added a whole section on what you could do with
Guido van Rossum [Mon, 8 Sep 1997 02:20:57 +0000 (02:20 +0000)]
Some nits, added a whole section on what you could do with
metaclasses, and acks.

27 years agoSet it to 1.5a4, now we have dotted-name import...
Guido van Rossum [Mon, 8 Sep 1997 02:17:31 +0000 (02:17 +0000)]
Set it to 1.5a4, now we have dotted-name import...

27 years agoInitialize self.__tempfiles to [] in the constructor (else it remains
Guido van Rossum [Mon, 8 Sep 1997 02:16:33 +0000 (02:16 +0000)]
Initialize self.__tempfiles to [] in the constructor (else it remains
a shared class variable -- but each instance will attempt to clean it
up entirely ob cleanup).

27 years agoChange packages -> site-packages
Guido van Rossum [Mon, 8 Sep 1997 02:14:09 +0000 (02:14 +0000)]
Change packages -> site-packages

27 years ago*Semantic change*: when unpickling the instance variables of an
Guido van Rossum [Mon, 8 Sep 1997 02:08:11 +0000 (02:08 +0000)]
*Semantic change*: when unpickling the instance variables of an
instance, use inst.__dict__.update(value) instead of a for loop with
setattr() over the value.keys().  This is more consistent (the
pickling doesn't use getattr() either but pickles inst.__dict__) and
avoids problems with instances that have a __setattr__ hook.

But it *is* a semantic change (because the setattr hook is no longer
used).  So beware!

27 years agoIndent the #error so that a strict K&R cpp doesn't complain.
Guido van Rossum [Mon, 8 Sep 1997 02:04:00 +0000 (02:04 +0000)]
Indent the #error so that a strict K&R cpp doesn't complain.

27 years agoChange packages to site-packages (so it's clearly not a package itself).
Guido van Rossum [Mon, 8 Sep 1997 02:02:37 +0000 (02:02 +0000)]
Change packages to site-packages (so it's clearly not a package itself).

27 years agoPrefix MACHDEP directory with 'plat-'.
Guido van Rossum [Mon, 8 Sep 1997 01:56:35 +0000 (01:56 +0000)]
Prefix MACHDEP directory with 'plat-'.

27 years agoChange the names of the subdirectories tkinter and stdwin to
Guido van Rossum [Mon, 8 Sep 1997 01:54:43 +0000 (01:54 +0000)]
Change the names of the subdirectories tkinter and stdwin to
lib-tk and lib-stdwin.  (BTW this was also done in the previous
checkin of (toplevel)/Makefile.in, though not noted in the checkin
message.)

27 years agoForgot to install the test/output directory!
Guido van Rossum [Mon, 8 Sep 1997 01:51:23 +0000 (01:51 +0000)]
Forgot to install the test/output directory!

27 years agoLook for uuencoded test files in the directory containing this module, too.
Guido van Rossum [Sun, 7 Sep 1997 16:54:34 +0000 (16:54 +0000)]
Look for uuencoded test files in the directory containing this module, too.
(This is necessary because when imported as test.test_rgbimg, the test
directory is not on sys.path.)

27 years agoLook for uuencoded test files in the directory containing this module, too.
Guido van Rossum [Sun, 7 Sep 1997 16:50:45 +0000 (16:50 +0000)]
Look for uuencoded test files in the directory containing this module, too.
(This is necessary because when imported as test.test_rgbimg, the test
directory is not on sys.path.)

27 years agoReverse the order in which Setup and Setup.local are passed to the
Guido van Rossum [Sun, 7 Sep 1997 16:44:37 +0000 (16:44 +0000)]
Reverse the order in which Setup and Setup.local are passed to the
makesetup script.  (Sorry Sjoerd -- I know you proposed this a while
ago and I didn't think it would work then.  I looked again and it
does work.)

27 years agoPass optional arguments (globals(), locals(), []) to __import__() so
Guido van Rossum [Sun, 7 Sep 1997 16:42:34 +0000 (16:42 +0000)]
Pass optional arguments (globals(), locals(), []) to __import__() so
it will run as package test, e.g. this will run the test suite:

    import test.regrtest
    test.regrtest.main()

27 years agoBugfix: import A.B from inside package was busted by mark_miss optimization.
Guido van Rossum [Sun, 7 Sep 1997 06:16:57 +0000 (06:16 +0000)]
Bugfix: import A.B from inside package was busted by mark_miss optimization.

27 years agoFix details in the test:
Guido van Rossum [Sun, 7 Sep 1997 06:12:11 +0000 (06:12 +0000)]
Fix details in the test:
- traceback should go to stdout!
- don't import ni, import t1!
- nicer support for command line options, only if run as __main__

27 years agoAdded warning about ni's obsolescence. Retracted semantic changes
Guido van Rossum [Sun, 7 Sep 1997 03:02:39 +0000 (03:02 +0000)]
Added warning about ni's obsolescence.  Retracted semantic changes
(i.e. when using ni, the old __init__.py semantics prevail!)

27 years agoInitial revision
Guido van Rossum [Sun, 7 Sep 1997 02:56:35 +0000 (02:56 +0000)]
Initial revision

27 years agoSignificant speedup -- when a submodule imports a global module, add a
Guido van Rossum [Sat, 6 Sep 1997 20:29:52 +0000 (20:29 +0000)]
Significant speedup -- when a submodule imports a global module, add a
dummy entry to sys.modules, marking the absence of a submodule by the
same name.

Thus, if module foo.bar executes the statement "import time",
sys.modules['foo.time'] will be set to None, once the absence of a
module foo.time is confirmed (by looking for it in foo's path).

The next time when foo.bar (or any other submodule of foo) executes
"import time", no I/O is necessary to determine that there is no
module foo.time.

(Justification: It may seem strange to pollute sys.modules.  However,
since we're doing the lookup anyway it's definitely the fastest
solution.  This is the same convention that 'ni' uses and I haven't
heard any complaints.)

27 years agoAdded feeble test for reload() of packages and submodules.
Guido van Rossum [Sat, 6 Sep 1997 19:58:53 +0000 (19:58 +0000)]
Added feeble test for reload() of packages and submodules.

27 years agoFix reload() for package submodules.
Guido van Rossum [Sat, 6 Sep 1997 19:41:09 +0000 (19:41 +0000)]
Fix reload() for package submodules.

27 years agoPhase two of package import. "import a.b.c" and all variants now do the
Guido van Rossum [Sat, 6 Sep 1997 18:52:03 +0000 (18:52 +0000)]
Phase two of package import.  "import a.b.c" and all variants now do the
right thing.

Still to do:

- Make reload() of a submodule work.

- Performance tweaks -- currently, a submodule that tries to import a
global module *always* searches the package directory first, even if
the global module was already imported.  Not sure how to solve this
one; probably need to record misses per package.

- Documentation!

27 years ago#Added prototype for PyObject_HasAttr() -- must've been an oversight.
Guido van Rossum [Sat, 6 Sep 1997 18:44:59 +0000 (18:44 +0000)]
#Added prototype for PyObject_HasAttr() -- must've been an oversight.

27 years agoTest set for package import.
Guido van Rossum [Sat, 6 Sep 1997 18:42:57 +0000 (18:42 +0000)]
Test set for package import.

27 years agoFixed some details of printing the str() of an exception. This fixes
Guido van Rossum [Fri, 5 Sep 1997 19:11:53 +0000 (19:11 +0000)]
Fixed some details of printing the str() of an exception.  This fixes
a core dump when __str__() returns a non-string, and plugs a memory
leak as well: the result of PyObject_Str() was never DECREFed.

27 years agoMade the 'info' argument to SyntaxError optional, so phase-2 syntax
Guido van Rossum [Fri, 5 Sep 1997 19:00:56 +0000 (19:00 +0000)]
Made the 'info' argument to SyntaxError optional, so phase-2 syntax
errors are handled (these gave ``TypeError: not enough arguments'').

Also changed its __str__() to correct a typo (missing self.) and
return str(self.msg) to ensure the result is always string.

Also changed the default __str__ to simply return str(self.args).

27 years agoFix in trailing comment: PyDict_SetItemString() does *not* consume a reference
Fred Drake [Fri, 5 Sep 1997 17:53:53 +0000 (17:53 +0000)]
Fix in trailing comment:  PyDict_SetItemString() does *not* consume a reference
count, PyList_SetItem() does.  Very confusing!

27 years agoFirst part of package support.
Guido van Rossum [Fri, 5 Sep 1997 07:33:22 +0000 (07:33 +0000)]
First part of package support.

This doesn't yet support "import a.b.c" or "from a.b.c import x", but
it does recognize directories.  When importing a directory, it
initializes __path__ to a list containing the directory name, and
loads the __init__ module if found.

The (internal) find_module() and load_module() functions are
restructured so that they both also handle built-in and frozen modules
and Mac resources (and directories of course).  The imp module's
find_module() and (new) load_module() also have this functionality.
Moreover, imp unconditionally defines constants for all module types,
and has two more new functions: find_module_in_package() and
find_module_in_directory().

There's also a new API function, PyImport_ImportModuleEx(), which
takes all four __import__ arguments (name, globals, locals, fromlist).
The last three may be NULL.  This is currently the same as
PyImport_ImportModule() but in the future it will be able to do
relative dotted-path imports.

Other changes:

- bltinmodule.c: in __import__, call PyImport_ImportModuleEx().

- ceval.c: always pass the fromlist to __import__, even if it is a C
function, so PyImport_ImportModuleEx() is useful.

- getmtime.c: the function has a second argument, the FILE*, on which
it applies fstat().  According to Sjoerd this is much faster.  The
first (pathname) argument is ignored, but remains for backward
compatibility (so the Mac version still works without changes).

By cleverly combining the new imp functionality, the full support for
dotted names in Python (mini.py, not checked in) is now about 7K,
lavishly commented (vs. 14K for ni plus 11K for ihooks, also lavishly
commented).

Good night!

27 years agoAdded PyImport_ImportModuleEx(name, globals, locals, fromlist); this
Guido van Rossum [Fri, 5 Sep 1997 07:11:32 +0000 (07:11 +0000)]
Added PyImport_ImportModuleEx(name, globals, locals, fromlist); this
is like PyImport_ImporModule(name) but receives the globals and locals
dict and the fromlist arguments as well.  (The name is a char*; the
others are PyObject*s).

27 years agoContribution by Hannu Krosing (with some changes).
Guido van Rossum [Fri, 5 Sep 1997 07:08:39 +0000 (07:08 +0000)]
Contribution by Hannu Krosing (with some changes).

Added 'p' format character for Pascal string (i.e. leading length
byte).  This uses the count prefix line 's' does, except that the
count includes the length byte; i.e. '10p' takes 10 bytes packed but
has space for a length byte and 9 data bytes.

27 years agoDon't use ANSI string literal concatenation (everything is K&R compatible).
Guido van Rossum [Fri, 5 Sep 1997 07:01:19 +0000 (07:01 +0000)]
Don't use ANSI string literal concatenation (everything is K&R compatible).

27 years agoGet rid of most silly #include and #ifdefs near the top; these are all
Guido van Rossum [Fri, 5 Sep 1997 01:48:48 +0000 (01:48 +0000)]
Get rid of most silly #include and #ifdefs near the top; these are all
obsolete now it includes Python.h.

Make all functions K&R compatible (Sue Williams).

27 years agoNow produces some reassuring output.
Jeremy Hylton [Thu, 4 Sep 1997 23:42:01 +0000 (23:42 +0000)]
Now produces some reassuring output.

27 years agoMany more tests, including tests of many optional arguments.
Jeremy Hylton [Thu, 4 Sep 1997 23:41:37 +0000 (23:41 +0000)]
Many more tests, including tests of many optional arguments.

27 years agoSeveral changes:
Jeremy Hylton [Thu, 4 Sep 1997 23:39:23 +0000 (23:39 +0000)]
Several changes:

1. Fix bug in (de)compression objects.  The final string resize used
zst.total_out to determine the length of the string, but the
(de)compression object will output data a little bit at a time, which
means total_out is not the string size.  Fix: save original value of
total_out at the start of the call.

2. Be sure to Py_DECREF the result value if you exit with an
exception.

3. Use PyInt_FromLong instead of Py_BuildValue

4. include more constants from the zlib header file

5. Use PyErr_Format instead of using a local buffer and sprintf.

27 years agoAdded some try-excepts so that it can be imported in restricted mode
Guido van Rossum [Thu, 4 Sep 1997 22:12:34 +0000 (22:12 +0000)]
Added some try-excepts so that it can be imported in restricted mode
(though some type names are undefined in that case, e.g. CodeType
(inaccessible), FileType (not always accessible), and TracebackType
and FrameType (inaccessible).

27 years agoThe re test suite is very slow on slower hosts.
Guido van Rossum [Thu, 4 Sep 1997 14:35:45 +0000 (14:35 +0000)]
The re test suite is very slow on slower hosts.
To save time, only run the first and last 10 tests except in verbose mode.

27 years agoAdded first line to set Emacs makefile mode (pretty colors :-)
Barry Warsaw [Thu, 4 Sep 1997 13:05:14 +0000 (13:05 +0000)]
Added first line to set Emacs makefile mode (pretty colors :-)

27 years ago(py-parse-partial-sexp-works-p): Removed as obsolete. All current
Barry Warsaw [Thu, 4 Sep 1997 04:18:07 +0000 (04:18 +0000)]
(py-parse-partial-sexp-works-p): Removed as obsolete.  All current
Emacs and XEmacs versions should have working parse-partial-sexp's.

(py-emacs-features): Defined as future placeholder.

27 years agoDifferent test for Unix -- rely on os.sep instead of sys.platform.
Guido van Rossum [Wed, 3 Sep 1997 23:12:18 +0000 (23:12 +0000)]
Different test for Unix -- rely on os.sep instead of sys.platform.

27 years agoOne patch from Sjoerd and one from Jack.
Guido van Rossum [Wed, 3 Sep 1997 22:36:15 +0000 (22:36 +0000)]
One patch from Sjoerd and one from Jack.

Sjoerd: add separate administration of temporary files created y
URLopener.retrieve() so cleanup can properly remove them.  The old
code removed everything in tempcache which was a bad idea if the user
had passed a non-temp file into it.  (I added a line to delete the
tempcache in cleanup() -- it still seems to make sense.)

Jack: in basejoin(), interpret relative paths starting in "../".  This
is necessary if the server uses symbolic links.

27 years agoGive in to Mike Meyer -- add *both* lib/python1.5/packages and
Guido van Rossum [Wed, 3 Sep 1997 22:05:54 +0000 (22:05 +0000)]
Give in to Mike Meyer -- add *both* lib/python1.5/packages and
lib/site-python to the path (if they exist).  This is a reasonable
compromise.

27 years agoGive in to Mike Meyer -- add *both* lib/python1.5/packages and
Guido van Rossum [Wed, 3 Sep 1997 21:41:30 +0000 (21:41 +0000)]
Give in to Mike Meyer -- add *both* lib/python1.5/packages and
lib/site-python to the path (if they exist).  This is a reasonable
compromise.

27 years ago#Plug small memory leaks in constructors.
Guido van Rossum [Wed, 3 Sep 1997 18:19:40 +0000 (18:19 +0000)]
#Plug small memory leaks in constructors.

27 years agoPlug small leaks: the [de]compress object itself was never freed.
Guido van Rossum [Wed, 3 Sep 1997 18:14:30 +0000 (18:14 +0000)]
Plug small leaks: the [de]compress object itself was never freed.

27 years agoAdded some symbols (I'm afraid more will come).
Guido van Rossum [Wed, 3 Sep 1997 16:12:00 +0000 (16:12 +0000)]
Added some symbols (I'm afraid more will come).

27 years agoChange instructions to require use of PCbuild directory (instead of
Guido van Rossum [Wed, 3 Sep 1997 16:11:19 +0000 (16:11 +0000)]
Change instructions to require use of PCbuild directory (instead of
just recommending it).  At Mark Hammond's request.

27 years agoAt Mark Hammond's suggestion:
Guido van Rossum [Wed, 3 Sep 1997 16:10:52 +0000 (16:10 +0000)]
At Mark Hammond's suggestion:

- use the DLL versions of the C runtime (!)
- change path settings so intermediate files go to Debug/temp or Release/temp
- add resource file to python15.dll (can't remember what this does)
- add a separate project to build the parser module

27 years agoAdded empty PCbuild directory for use by the NT build process.
Guido van Rossum [Wed, 3 Sep 1997 15:37:50 +0000 (15:37 +0000)]
Added empty PCbuild directory for use by the NT build process.