Greg Ward [Mon, 6 Mar 2000 03:44:32 +0000 (03:44 +0000)]
Rewrote 'newer_pairwise(): more natural (and incompatible) interface,
simpler implementation.
Greg Ward [Mon, 6 Mar 2000 03:40:29 +0000 (03:40 +0000)]
Serious overhaul of the C compiler interface and the two classes that
implement it (so far):
* moved filename generation methods into CCompiler base class,
driven by data supplied by implementation classes
* moved a bunch of common code from UnixCCompiler to convenience
methods in CCompiler
* overhauled MSVCCompiler's compile/link methods to look and act
as much as possible like UnixCCompiler's, in order to regularize
both interface and behaviour (especially by using those new
convenience methods)
Greg Ward [Mon, 6 Mar 2000 03:37:45 +0000 (03:37 +0000)]
Don't pass 'keep_dir' to 'compile()' method of CCompiler -- no longer used.
Greg Ward [Mon, 6 Mar 2000 03:36:50 +0000 (03:36 +0000)]
Don't pass 'keep_dir' to 'compile()' method of CCompiler -- no longer used.
Don't assume that the 'libraries' and 'library_dirs' elements of the
build info dict are always lists.
Jeremy Hylton [Fri, 3 Mar 2000 23:08:09 +0000 (23:08 +0000)]
superceded by IdleConf/config.txt
Jeremy Hylton [Fri, 3 Mar 2000 23:06:45 +0000 (23:06 +0000)]
migrate to use of IdleConf and config files to set options
idle.py:
Load the config files before anything else happens
XXX Need to define standard way to get files relative to the
IDLE install dir
PyShell.py:
ColorDelegator.py:
Get color defns out of IdleConf instead of IdlePrefs
EditorWindow.py:
Replace hard-coded font & window size with config options
Get extension names via IdleConf.getextensions
extend.py:
Obsolete. Extensions defined in config file.
ParenMatch.py:
Use config file for extension options.
Revise comment about parser requirements.
Simplify logic on find returning None.
Jeremy Hylton [Fri, 3 Mar 2000 23:00:41 +0000 (23:00 +0000)]
default to cwd if os.environ['HOME'] does not exist
Jeremy Hylton [Fri, 3 Mar 2000 22:57:42 +0000 (22:57 +0000)]
a ConfigParser for idle and three configuration files
Jeremy Hylton [Fri, 3 Mar 2000 20:43:57 +0000 (20:43 +0000)]
allow comments beginning with ; in key: value as well as key = value
Jack Jansen [Fri, 3 Mar 2000 17:06:13 +0000 (17:06 +0000)]
Fixed parameters to a few time and timebase calls: InOut parameters were
inadvertantly seen as out-only.
Jack Jansen [Fri, 3 Mar 2000 16:03:06 +0000 (16:03 +0000)]
Added PutPixMapBytes() and GetPixMapBytes() functions that allow getting at
pixmap data.
Added an as_GrafPort() method to be able to use a GWorld as argument to
routines that expect a GrafPort.
Jack Jansen [Fri, 3 Mar 2000 16:01:11 +0000 (16:01 +0000)]
Added methods getdata() and putdata() to obtain the data in a bitmap.
Guido van Rossum [Fri, 3 Mar 2000 14:51:11 +0000 (14:51 +0000)]
Patch by Tim Peters:
Changes the one regexp in PyParse capable of making the re module blow the C
stack when passed unreasonable <0.9 wink> program text. Jeremy Hylton
provoked this with a program of the form:
x = (1,
2,
... # 9997 lines deleted here
10000,
)
Programs "like this" will no longer (no matter how many lines they contain)
trigger re death. OTOH, you can now make another class of unreasonable
program that will take much longer to parse.
Greg Ward [Fri, 3 Mar 2000 03:00:27 +0000 (03:00 +0000)]
Typo fix.
Greg Ward [Fri, 3 Mar 2000 03:00:02 +0000 (03:00 +0000)]
Fixed 'mkpath()' to accept empty string silently (it's just the current dir).
Fixed all DistutilsFileError messages to wrap file/dir names in quotes.
Jeremy Hylton [Thu, 2 Mar 2000 19:06:57 +0000 (19:06 +0000)]
paren matching extension. warning: in current version of IDLE, can
not run this extension and CallTips extension at the same time.
Jack Jansen [Thu, 2 Mar 2000 16:11:36 +0000 (16:11 +0000)]
A module to parse/generate MediaDescription handles as used by QuickTime. Only
generic, video and audio implemented for now.
Guido van Rossum [Thu, 2 Mar 2000 13:55:01 +0000 (13:55 +0000)]
Mark discovered a bug in his patch: he didn't *use* PyExc_WindowsError
in PyErr_SetFromWindowsErrWithFilename() like he intended to... :-)
Greg Ward [Thu, 2 Mar 2000 01:57:12 +0000 (01:57 +0000)]
Renamed 'build_lib' command to 'build_clib':
* replaced build_lib.py with build_clib.py
* renamed the class in build_clib.py
* changed all references to 'build_lib' command in other command classes
Greg Ward [Thu, 2 Mar 2000 01:49:45 +0000 (01:49 +0000)]
Changed '__rcsid__' to '__revision__'.
Greg Ward [Thu, 2 Mar 2000 01:32:21 +0000 (01:32 +0000)]
If the "build_lib" command built any C libraries, link with them all
when building extensions (uses build_lib's 'get_library_names()' method).
Ensure that the relative structure of source filenames is preserved in
the temporary build tree, eg. foo/bar.c compiles to
build/temp.<plat>/foo/bar.o.
Greg Ward [Thu, 2 Mar 2000 01:27:36 +0000 (01:27 +0000)]
Added command description.
Added 'build_clib' and 'build_temp' options (where to put C libraries
and where to put temporary compiler by-products, ie. object files).
Moved the call to 'check_library_list()' from 'run()' to 'finalize_options()'
-- that way, if we're going to crash we do so earlier, and we guarantee
that the library list is valid before we do anything (not just run).
Disallow directory separators in library names -- the compiled library
always goes right in 'build_clib'.
Added 'get_library_names()', so the "build_ext" command knows what
libraries to link every extension with.
Greg Ward [Thu, 2 Mar 2000 01:21:54 +0000 (01:21 +0000)]
In the 'compile()' method: preserve the directory portion of source
filenames when constructing object filenames, even if output_dir given --
eg. "foo/bar.c" will compile to "foo/bar.o" without an output_dir, and to
"temp/foo/bar.o" if output_dir is "temp".
Greg Ward [Wed, 1 Mar 2000 21:51:56 +0000 (21:51 +0000)]
Second attempt to fix the ctermid_r/tmpnam_r warnings: define USE_CTERMID_R
and USE_TMPNAM_R at the top of the file and refer to them later; this
catches a second reference to 'tmpnam_r' that I didn't spot first time around.
Greg Ward [Wed, 1 Mar 2000 18:59:47 +0000 (18:59 +0000)]
Fix compiler warning: only use "_r" form of 'ctermid()' and 'tmpnam()' when
building a threaded Python.
Guido van Rossum [Wed, 1 Mar 2000 15:06:53 +0000 (15:06 +0000)]
Got rid of silly "
123456789-..." lines in comments.
Greg Ward [Wed, 1 Mar 2000 14:43:49 +0000 (14:43 +0000)]
In compile/link methods: ensure that the directory we expect to be writing to
exists before calling the compiler/linker.
Greg Ward [Wed, 1 Mar 2000 14:43:12 +0000 (14:43 +0000)]
Added 'mkpath()' method: convenience wrapper around 'util.mkpath()' that adds
the compiler objects 'verbose' and 'dry_run' flags.
Greg Ward [Wed, 1 Mar 2000 14:42:07 +0000 (14:42 +0000)]
Added call to 'ensure_ready()' on the command object in
'Distribution.find_command_obj()'.
Greg Ward [Wed, 1 Mar 2000 14:40:15 +0000 (14:40 +0000)]
Added 'get_platform()' to construct a string that identifies the current
platform, using 'os.uname()' or 'sys.platform'.
Greg Ward [Wed, 1 Mar 2000 01:43:28 +0000 (01:43 +0000)]
Build reorg:
* 'build_dir' -> 'build_lib', which by default takes its value
straight from 'build_lib' in the 'build' command
* added 'build_temp' and 'inplace' options
* change 'build_extensions()' to put object files (compiler turds) in
'build_temp' dir
* complicated the name-of-extension-file shenanigans in
'build_extensions()' to support "in-place" extension building, i.e.
put the extension right into the source tree (handy for developers)
* added 'get_ext_fullname()', renamed 'extension_filename()' to
'get_ext_filename()', and tweaked the latter a bit -- all to support
the new filename shenanigans
Greg Ward [Wed, 1 Mar 2000 01:26:45 +0000 (01:26 +0000)]
Build reorg:
* 'build_lib' -> 'build_purelib'
* new 'build_lib' and 'build_temp' options
* use 'get_platform()' to initialize 'build_platlib' and 'build_temp'
Greg Ward [Wed, 1 Mar 2000 01:19:37 +0000 (01:19 +0000)]
Build reorg: change 'build_dir' option to 'build_lib'.
Guido van Rossum [Tue, 29 Feb 2000 15:52:40 +0000 (15:52 +0000)]
Patch by Fred Gansevles (the module's original author).
This patch fixes 3 small problems.
1) If a map is used which is generated with 'makedbm -a',
the trailing '\0' is now handled correctely.
2) The nis.maps() function skipped the first map in the output list.
3) The library '-lnsl' is added in Setup.in (needed on Linux glibc2 and
Solaris systems. Maybe on other systems too?)
[I note that this still doesn't work when you are using NIS+ --GvR]
Guido van Rossum [Tue, 29 Feb 2000 13:59:29 +0000 (13:59 +0000)]
Massive patch by Skip Montanaro to add ":name" to as many
PyArg_ParseTuple() format string arguments as possible.
Guido van Rossum [Tue, 29 Feb 2000 13:31:16 +0000 (13:31 +0000)]
Remove some redundant logic from walk() -- there's no need to check
for "." and "..", since listdir() no longer returns those.
Guido van Rossum [Tue, 29 Feb 2000 13:08:44 +0000 (13:08 +0000)]
Correct type error in getopt.error handling code.
Guido van Rossum [Tue, 29 Feb 2000 13:05:49 +0000 (13:05 +0000)]
Script by Tim Peters to discover illegal append() calls.
Guido van Rossum [Tue, 29 Feb 2000 13:00:16 +0000 (13:00 +0000)]
Fix multi-arg append().
Fred Drake [Tue, 29 Feb 2000 05:19:38 +0000 (05:19 +0000)]
Update portability information for the spawn*() functions and related
constants. Someone will need to fill in information on the spawn*()
functions that aren't listed.
Andrew M. Kuchling [Tue, 29 Feb 2000 00:10:24 +0000 (00:10 +0000)]
Fix a typo in a comment
Fred Drake [Mon, 28 Feb 2000 23:23:55 +0000 (23:23 +0000)]
Fix comments relating to the specific regexs used to parse section and
option names; errors noted by Greg Stein <gstein@lyra.org>.
Guido van Rossum [Mon, 28 Feb 2000 22:37:30 +0000 (22:37 +0000)]
Patch by Piers Lauder, who writes:
This patch is re: Lucas.Dejonge@awtpl.com.au: [Python-bugs-list] imaplib -
not complying with RFC (PR#218)
Lucas de Jonge reported that the code in imaplib that detects a read-write
to read-only change doesn't comply with RFC 2060.
Fred Drake [Mon, 28 Feb 2000 20:59:03 +0000 (20:59 +0000)]
(Finally!) Changes related to the ConfigParser/INI-file topics
discussed on c.l.py last January. Specifically:
- more characters allowed in section & option names
- if '=' is used to separate the option & value, the value can be
followed by a comment of the form '\s;'
Guido van Rossum [Mon, 28 Feb 2000 19:52:53 +0000 (19:52 +0000)]
Drop the support level for stdwin a notch -- the contents of
lib-stdwin is no longer installed.
Increase the support level for other obsolete modules a bit: install
lib-old by default. It still isn't in the path by default, but at
least it's easier to add to your $PYTHONPATH this way. (This makes
sense because in 1.6 we're much more aggressive with declaring modules
obsolete.)
Andrew M. Kuchling [Mon, 28 Feb 2000 17:25:14 +0000 (17:25 +0000)]
Fix use of list.append() with multiple arguments
Guido van Rossum [Mon, 28 Feb 2000 15:12:25 +0000 (15:12 +0000)]
Simple changes by Gerrit Holl - move author acknowledgements out of
docstrings into comments.
Guido van Rossum [Mon, 28 Feb 2000 15:03:15 +0000 (15:03 +0000)]
Patch by Mozhe Zadka, for __contains__ (overloading 'in'). This adds
an instance method instance_contains as sq_contains. It looks for
__contains__ and if not found falls back to previous behaviour.
Done.
Guido van Rossum [Mon, 28 Feb 2000 15:01:46 +0000 (15:01 +0000)]
Patch by Mozhe Zadka, for __contains__ (overloading 'in'). This
patches PySequence_Contains() to check for a valid sq_contains field.
More to follow.
Guido van Rossum [Mon, 28 Feb 2000 15:00:40 +0000 (15:00 +0000)]
Patch by Mozhe Zadka, for __contains__ (overloading 'in'). This adds
a new proc type (objobjproc), a new slot sq_contains to
PySequenceMethods, and a new flag Py_TPFLAGS_HAVE_SEQUENCE_IN to
Py_TPFLAGS_DEFAULT. More to follow.
Guido van Rossum [Mon, 28 Feb 2000 14:27:07 +0000 (14:27 +0000)]
Patch by Gerrit Holl to avoid doing two stat() calls in a row in walk().
Guido van Rossum [Sun, 27 Feb 2000 15:35:47 +0000 (15:35 +0000)]
Fix a typo in Barry's checkin.
Reported both by Gerrit Holl and Mark Favas.
Guido van Rossum [Sun, 27 Feb 2000 15:34:29 +0000 (15:34 +0000)]
Fixed a multi-arg append() call, discovered by Mark Favas.
Also removed some unnecessary backslases (inside parens).
Barry Warsaw [Sun, 27 Feb 2000 14:30:48 +0000 (14:30 +0000)]
Two buglet fixes. Peter Funk caught the bug in make_escapes:
This will fold all ISO 8859 chars from the upper half of the
charset into the lower half, which is ...ummm.... unintened.
The second is a typo in the reference to options.escape in main().
Barry Warsaw [Sat, 26 Feb 2000 20:56:47 +0000 (20:56 +0000)]
Changes submitted by Peter Funk (some fixes/additions by B.Warsaw) to
make pygettext more compatible with GNU xgettext, specifically:
Added -E/--escape for allowing pass-thru of iso8859-1 characters above
7 bits.
Added -o/--output option for renaming the output file from
messages.pot (there's overlap with -d/--default-domain, but GNU
xgettext has them both).
Added -p/--output-dir for specifying the output directory for
messages.pot.
Added -V/--version for printing the version number.
Added -w/--width for specifying the output page width (this is because
now pygettext, like GNU xgettext will put several locations on the
same line to cut down on vertical space).
Added -x/--exclude-file for specifying a list of strings that are not
to be extracted from the input files.
Bumped version number to 1.0
Try to import fintl and use fintl.gettext as _ if available. Fall
back is to use identity definition of _().
Moved the escape creation to a function make_escapes() so that its
behavior can be controlled by the -E option.
__openseen(): Support the -x option.
write(): Support -w option and vertical space preserving feature.
main(): Support new options.
Greg Ward [Sat, 26 Feb 2000 00:52:48 +0000 (00:52 +0000)]
The "Distributing Python Modules" manual; currently empty (I'll get to it
Real Soon Now(TM).
Greg Ward [Sat, 26 Feb 2000 00:49:40 +0000 (00:49 +0000)]
Try to deal with pre-1.5.2 IOError exception objects.
Greg Ward [Sat, 26 Feb 2000 00:49:04 +0000 (00:49 +0000)]
Unfinished, untested implementation of the lovely baroque installation scheme
cooked up by Fred Drake and me. Only saved for posterity (whoever posterity
is), as it is about to be ditched in favour of GvR's much simpler design.
Andrew M. Kuchling [Fri, 25 Feb 2000 22:23:31 +0000 (22:23 +0000)]
Better fix for mpzmodule problem reported by Peter Funk: just use
mp_bits_per_limb with GMP 2.0
Barry Warsaw [Fri, 25 Feb 2000 21:54:19 +0000 (21:54 +0000)]
Changes inspired by Randall Hooper to allow callbacks when an
OptionMenu is modified. Somewhat rewritten and elaborated by myself.
class _setit: The constructor now takes an optional argument
`callback' and stashes this in a private variable. If set, the
__call__() method will invoke this callback after the variable's value
has changed. It will pass the callback the value, followed by any
args passed to __call__().
class OptionMenu: The constructor now takes keyword arguments, the
only one that's legally recognized is `command', which can be set to a
callback. This callback is invoked when the OptionMenu value is set.
Any other keyword argument throws a TclError.
Guido van Rossum [Fri, 25 Feb 2000 19:26:31 +0000 (19:26 +0000)]
Pat Knight:
Solaris 2 has stub implementations of the POSIX thread functions such as
pthread_detach in libc. This means that configure tries to use them without
-lpthread, then the test of pthread_create fails and the configuration
falls back to the Solaris thread library. This patch moves the test for
pthread_create in -lpthread ahead of the test for pthread_detach in libc.
The patch also ensures that -lpthread is at the start of the library list
when linking, to pick up POSIX thread semantics for fork (see below).
Justification.
Use of POSIX threads on Solaris ensures that the fork() call only runs the
thread that called fork() in the child. This is desirable to prevent (for
example) parent server or database threads running in the child. Sun's
-lthread library uses a traditional fork() which replicates all the
parent's threads in the child. I find this undesirable.
Digression.
The configure.in seems to always test for -lthread even if a POSIX library
is found. I'm not enough of a configure.in wizard to decide whether this is
desirable or how to fix it. It is also irrelevant to this patch - I just
spotted it while testing.
End of Digression.
Guido van Rossum [Fri, 25 Feb 2000 19:25:05 +0000 (19:25 +0000)]
Test case for fork1() behavior.
Only the main thread should survive in the child after a fork().
Guido van Rossum [Fri, 25 Feb 2000 17:51:00 +0000 (17:51 +0000)]
Delete references to _SC_AIO_LIST_MAX; it appears that that symbol was
just a typo in some Linux header; the real symbol is
_SC_AIO_LISTIO_MAX.
Guido van Rossum [Fri, 25 Feb 2000 16:34:11 +0000 (16:34 +0000)]
Gerrit forgot to remove the "import string".
Fred Drake [Fri, 25 Feb 2000 16:14:08 +0000 (16:14 +0000)]
Gerrit Holl's patch to move attribution from the docstring to a
comment. <gerrit@nl.linux.org>
Guido van Rossum [Fri, 25 Feb 2000 11:48:42 +0000 (11:48 +0000)]
Fix a couple broken append() calls, spotted by Tim.
Guido van Rossum [Fri, 25 Feb 2000 11:46:50 +0000 (11:46 +0000)]
Fix a couple dozen broken ci.append(x, y, z) calls, spotted by Tim.
Guido van Rossum [Fri, 25 Feb 2000 11:44:03 +0000 (11:44 +0000)]
Fix a broken r.append(name, value) call, spotted by Tim.
Guido van Rossum [Thu, 24 Feb 2000 21:48:29 +0000 (21:48 +0000)]
OKOK, Greg's right, I should've used the :name option in the argument
format strings.
Guido van Rossum [Thu, 24 Feb 2000 15:26:30 +0000 (15:26 +0000)]
Peter Funk:
This patch allows building the Python 'mpzmodule' under SuSE Linux
without having to install the source package of the GMP-libary.
The gmp-mparam.h seems to be an internal header file. The patch
shouldn't hurt any other platforms.
Guido van Rossum [Thu, 24 Feb 2000 15:23:03 +0000 (15:23 +0000)]
Made all list methods use PyArg_ParseTuple(), for more accurate
diagnostics.
*** INCOMPATIBLE CHANGE: This changes append(), remove(), index(), and
*** count() to require exactly one argument -- previously, multiple
*** arguments were silently assumed to be a tuple.
Guido van Rossum [Thu, 24 Feb 2000 15:01:43 +0000 (15:01 +0000)]
Moshe Zadka:
Added docstrings to tkSimpleDialog.py
Greg Ward [Thu, 24 Feb 2000 03:17:43 +0000 (03:17 +0000)]
Fix from est@hyperreal.org: missing initialize in 'find_defaults()'.
Guido van Rossum [Thu, 24 Feb 2000 02:26:51 +0000 (02:26 +0000)]
Mark Favas discovered this: getatime() accidentally returned the MTIME!
This fixes PR#211.
Guido van Rossum [Thu, 24 Feb 2000 02:24:50 +0000 (02:24 +0000)]
Piers Lauder:
A change in my last patch could, under certain circumstances,
cause a loop if the connection to the server dropped while
waiting for a command completion. I've changed the code to
re-raise the error after possible debugging output.
Andrew M. Kuchling [Wed, 23 Feb 2000 22:23:17 +0000 (22:23 +0000)]
Add tests to exercise sequence operations (multiplication, indexing,
slicing) using long integers
Andrew M. Kuchling [Wed, 23 Feb 2000 22:21:50 +0000 (22:21 +0000)]
Allow using long integers as arguments to PyObject_GetItem(), _SetItem(),
and _DelItem().
In sequence multiplication by a long, only call PyErr_Occurred() when the
value returned is -1.
Andrew M. Kuchling [Wed, 23 Feb 2000 22:18:48 +0000 (22:18 +0000)]
Allow using long integers as slice indexes
Fred Drake [Wed, 23 Feb 2000 15:47:16 +0000 (15:47 +0000)]
dict_has_key(): Accept only one parameter. PR#210 reported by
Andreas Jung <ajung@sz-sb.de>.
Fred Drake [Wed, 23 Feb 2000 15:44:58 +0000 (15:44 +0000)]
Added entry for libtabnanny.tex.
Fred Drake [Wed, 23 Feb 2000 15:44:34 +0000 (15:44 +0000)]
Added dependency on libtabnanny.tex.
Fred Drake [Wed, 23 Feb 2000 15:44:08 +0000 (15:44 +0000)]
Initial version from Peter Funk <pf@artcom-gmbh.de>, with minor
consistency changes and a note that the API may change in the future.
Guido van Rossum [Wed, 23 Feb 2000 15:34:43 +0000 (15:34 +0000)]
Deleting tabpolice.py; it was superceded by tabnanny.py long ago.
Guido van Rossum [Wed, 23 Feb 2000 15:33:52 +0000 (15:33 +0000)]
Moved tabnanny.py to standard library status.
Guido van Rossum [Wed, 23 Feb 2000 15:32:19 +0000 (15:32 +0000)]
Added tabnanny.py, by Tim Peters, formerly from Tools/scripts, to the
standard library. Added some comments:
# XXX Note: this is now a standard library module.
# XXX The API needs to undergo changes however; the current code is too
# XXX script-like. This will be addressed later.
Fred Drake [Tue, 22 Feb 2000 18:20:03 +0000 (18:20 +0000)]
This branch is for 1.6 & forward.
Guido van Rossum [Tue, 22 Feb 2000 00:19:58 +0000 (00:19 +0000)]
Added a new command: Check module (Alt-F5) It does a full syntax check
of the current module. It also runs the tabnanny to catch any
inconsistent tabs.
Also did a little bit of refactoring: added an errorbox() method to
simplify the display of error dialogs.
Jeremy Hylton [Mon, 21 Feb 2000 22:46:00 +0000 (22:46 +0000)]
satisfy the tabnanny (thanks to MH for noticing the problem)
Fred Drake [Mon, 21 Feb 2000 18:19:06 +0000 (18:19 +0000)]
What used to be tp_xxx4 is now tp_flags; set it to Py_TPFLAGS_DEFAULT.
Fred Drake [Mon, 21 Feb 2000 17:59:48 +0000 (17:59 +0000)]
Remove comment that Guido agree's doesn't make sense:
PyEval_EvalCode() is *not* a "backward compatible interface", it's the
one to use!
Fred Drake [Mon, 21 Feb 2000 17:20:16 +0000 (17:20 +0000)]
Script to help locate markup that LaTeX2HTML has a problem with.
Guido van Rossum [Mon, 21 Feb 2000 16:50:31 +0000 (16:50 +0000)]
Mark pointed out a buglet in his patch: i < _sys_nerr isn't strong
enough, it could be negative. Add i > 0 test. (Not i >= 0; zero isn't
a valid error number.)
Jack Jansen [Mon, 21 Feb 2000 11:07:37 +0000 (11:07 +0000)]
Added FreeMem, MaxBlock and CompactMem calls. The values returned by these are lower bounds in the Python case (as malloc doesn't return memory to the heap) but they can be used to decide when to give low-memory warnings.
Greg Stein [Sat, 19 Feb 2000 13:36:23 +0000 (13:36 +0000)]
add TODO section
Andrew M. Kuchling [Fri, 18 Feb 2000 19:16:45 +0000 (19:16 +0000)]
Patch from Vladimir Marangozov <marangoz@python.inrialpes.fr>
The same problem (mixed mallocs) exists for the pcre stack.
The buffers md->... are allocated via PyMem_RESIZE in grow_stack(),
while in free_stack() they are released with free() instead of
PyMem_DEL().
Andrew M. Kuchling [Fri, 18 Feb 2000 18:30:01 +0000 (18:30 +0000)]
Patch from Vladimir Marangozov <marangoz@python.inrialpes.fr>:
The buffers self->regex and self->regex_extra are allocated in
pcre_compile() and pcre_study() via pcre_malloc, but are released
via free() instead of pcre_free.
Greg Stein [Fri, 18 Feb 2000 13:04:10 +0000 (13:04 +0000)]
reduce fsimp coupling: provide fs_imp param to ImportManager constructor,
add clsFilesystemImporter class attribute, alter handling of suffix list
convert suffix importers to funcs rather than instances
remove backwards compat code: Importer.install and 2-tuple get_code()
result values
Greg Stein [Fri, 18 Feb 2000 12:03:40 +0000 (12:03 +0000)]
shift demo importers to importers.py (destined for Demo/ ?)
switch to isinstance() rather than direct type comparisons
removing chaining concept
update ImportManager.install() to take an optional namespace to install
itself in. this will be useful for setting up rexec environments.
minor comment nits
Greg Ward [Fri, 18 Feb 2000 00:36:20 +0000 (00:36 +0000)]
Changed all references to command methods 'set_default_options()' and
'set_final_options()' to 'initialize_options()' and 'finalize_options()'.
Greg Ward [Fri, 18 Feb 2000 00:35:22 +0000 (00:35 +0000)]
Renamed 'set_default_options()' to 'initialize_options()', and
'set_final_options()' to 'finalize_options()'.