]> granicus.if.org Git - python/log
python
23 years agoDerive exception classes from Exception
Neal Norwitz [Sun, 31 Mar 2002 13:59:18 +0000 (13:59 +0000)]
Derive exception classes from Exception

23 years agoStop using string exceptions
Neal Norwitz [Sun, 31 Mar 2002 13:58:20 +0000 (13:58 +0000)]
Stop using string exceptions

23 years agoAdd one more assert that indirectly interlocking conditions are consistent
Tim Peters [Sun, 31 Mar 2002 02:59:48 +0000 (02:59 +0000)]
Add one more assert that indirectly interlocking conditions are consistent
with each other.

23 years agoFixed an error in a new assert.
Tim Peters [Sun, 31 Mar 2002 02:52:29 +0000 (02:52 +0000)]
Fixed an error in a new assert.

23 years agoFixed a typo in a new comment.
Tim Peters [Sun, 31 Mar 2002 02:51:40 +0000 (02:51 +0000)]
Fixed a typo in a new comment.

23 years ago_PyMalloc_Free(): As was already done for _PyMalloc_Malloc, rearranged
Tim Peters [Sun, 31 Mar 2002 02:18:01 +0000 (02:18 +0000)]
_PyMalloc_Free():  As was already done for _PyMalloc_Malloc, rearranged
the code so that the most frequent cases come first.  Added comments.
Found a hidden assumption that a pool contains room for at least two
blocks, and added an assert to catch a violation if it ever happens in
a place where that matters.  Gave the normal "I allocated this block"
case a longer basic block to work with before it has to do its first
branch (via breaking apart an embedded assignment in an "if", and
hoisting common code out of both branches).

23 years agoAdded a long-overdue comment block giving an overview of pool operations
Tim Peters [Sun, 31 Mar 2002 01:05:22 +0000 (01:05 +0000)]
Added a long-overdue comment block giving an overview of pool operations
and terminology, plus explanation of some extreme obscurities.

23 years agoSuite to talk to the OSX Terminal application.
Jack Jansen [Sat, 30 Mar 2002 23:46:16 +0000 (23:46 +0000)]
Suite to talk to the OSX Terminal application.

23 years agoGot rid of obsolete way to get at various toolbox types.
Jack Jansen [Sat, 30 Mar 2002 23:44:58 +0000 (23:44 +0000)]
Got rid of obsolete way to get at various toolbox types.

23 years agoAdd Mac/Lib/lib-scriptpackages to sys.path too.
Jack Jansen [Sat, 30 Mar 2002 23:43:36 +0000 (23:43 +0000)]
Add Mac/Lib/lib-scriptpackages to sys.path too.

23 years agoModified to allow it to run in MachoPython in a reasonable way. It still
Jack Jansen [Sat, 30 Mar 2002 23:43:04 +0000 (23:43 +0000)]
Modified to allow it to run in MachoPython in a reasonable way. It still
needs a decent commandline interface, though.

23 years agoIt's once again thought safe to call the pymalloc free/realloc with an
Tim Peters [Sat, 30 Mar 2002 21:36:04 +0000 (21:36 +0000)]
It's once again thought safe to call the pymalloc free/realloc with an
address obtained from system malloc/realloc without holding the GIL.

When the vector of arena base addresses has to grow, the old vector is
deliberately leaked.  This makes "stale" x-thread references safe.
arenas and narenas are also declared volatile, and changed in an order
that prevents a thread from picking up a value of narenas too large
for the value of arenas it sees.

Added more asserts.

Fixed an old inaccurate comment.

Added a comment explaining why it's safe to call pymalloc free/realloc
with an address obtained from system malloc/realloc even when arenas is
still NULL (this is obscure, since the ADDRESS_IN_RANGE macro
appears <wink> to index into arenas).

23 years agonew_arena(): In error cases, reset the number of available pools to 0.
Tim Peters [Sat, 30 Mar 2002 10:42:09 +0000 (10:42 +0000)]
new_arena():  In error cases, reset the number of available pools to 0.
Else the pymalloc malloc will go insane the next time it's called.

23 years agoChanged the #-of-arenas counters to uints -- no need to be insane about
Tim Peters [Sat, 30 Mar 2002 10:35:09 +0000 (10:35 +0000)]
Changed the #-of-arenas counters to uints -- no need to be insane about
this.  But added an overflow check just in case there is.

Got rid of the ushort macro.  It wasn't used anymore (it was only used
in the no-longer-exists off_t macro), and there's no plausible use for it.

23 years agoEliminate DONT_SHARE_SHORT_STRINGS.
Tim Peters [Sat, 30 Mar 2002 10:06:07 +0000 (10:06 +0000)]
Eliminate DONT_SHARE_SHORT_STRINGS.

23 years agoPatch #536908: Add missing #include guards/extern "C".
Martin v. Löwis [Sat, 30 Mar 2002 08:57:12 +0000 (08:57 +0000)]
Patch #536908: Add missing #include guards/extern "C".

23 years agoTurns out the off_t macro isn't used anymore, so got rid of it.
Tim Peters [Sat, 30 Mar 2002 07:07:24 +0000 (07:07 +0000)]
Turns out the off_t macro isn't used anymore, so got rid of it.

23 years agoNow that we're no longer linking arenas together, there's no need to
Tim Peters [Sat, 30 Mar 2002 07:04:41 +0000 (07:04 +0000)]
Now that we're no longer linking arenas together, there's no need to
waste the first pool if malloc happens to return a pool-aligned address.

This means the number of pools per arena can now vary by 1.  Unfortunately,
the code counted up from 0 to a presumed constant number of pools.  So
changed the increasing "watermark" counter to a decreasing "nfreepools"
counter instead, and fiddled various stuff accordingly.  This also allowed
getting rid of two more macros.

Also changed the code to align the first address to a pool boundary
instead of a page boundary.  These are two parallel sets of macro #defines
that happen to be identical now, but the page macros are in theory more
restrictive (bigger), and there's simply no reason I can see that it
wasn't aligning to the less restrictive pool size all along (the code
only relies on pool alignment).

Hmm.  The "page size" macros aren't used for anything *except* defining
the pool size macros, and the comments claim the latter isn't necessary.
So this has the feel of a layer of indirection that doesn't serve a
purpose; should probably get rid of the page macros now.

23 years agoRetract the claim that this is always safe if PyMem_{Del, DEL, Free, FREE}
Tim Peters [Sat, 30 Mar 2002 06:20:23 +0000 (06:20 +0000)]
Retract the claim that this is always safe if PyMem_{Del, DEL, Free, FREE}
are called without the GIL.  It's incredibly unlikely to fail, but I can't
make this bulletproof without either adding a lock for exclusion, or
giving up on growing the arena base-address vector (it would be safe if
this were a static array).

23 years agoLots of changes:
Tim Peters [Sat, 30 Mar 2002 06:09:22 +0000 (06:09 +0000)]
Lots of changes:

+ A new scheme for determining whether an address belongs to a pymalloc
  arena.  This should be 100% reliable.  The poolp->pooladdr and
  poolp->magic members are gone.  A new poolp->arenaindex member takes
  their place.  Note that the pool header overhead doesn't actually
  shrink, though, since the header is padded to a multiple of 8 bytes.

+ _PyMalloc_Free and _PyMalloc_Realloc should now be safe to call for
  any legit address, whether obtained from a _PyMalloc function or from
  the system malloc/realloc.  It should even be safe to call
   _PyMalloc_Free when *not* holding the GIL, provided that the passed-in
  address was obtained from system malloc/realloc.  Since this is
  accomplished without any locks, you better believe the code is subtle.
  I hope it's sufficiently commented.

+ The above implies we don't need the new PyMalloc_{New, NewVar, Del}
  API anymore, and could switch back to PyObject_XXX without breaking
  existing code mixing PyObject_XXX with PyMem_{Del, DEL, Free, FREE}.
  Nothing is done here about that yet, and I'd like to see this new
  code exercised more first.

+ The small object threshhold is boosted to 256 (the max).  We should
  play with that some more, but the old 64 was way too small for 2.3.

+ Getting a new arena is now done via new function new_arena().

+ Removed some unused macros, and squashed out some macros that were
  used only once to define other macros.

+ Arenas are no longer linked together.  A new vector of arena base
  addresses had to be created anyway to make address classification
  bulletproof.

+ A lot of the patch size is an illusion:  given the way address
  classification works now, it was more convenient to switch the
  sense of the prime "if" tests in the realloc and free functions,
  so the "if" and "else" blocks got swapped.

+ Assorted minor code, comment and whitespace cleanup.

Back to the Windows installer <wink>.

23 years agoAuxiliary files used by BuildApplet for MachoPython.
Jack Jansen [Fri, 29 Mar 2002 23:48:55 +0000 (23:48 +0000)]
Auxiliary files used by BuildApplet for MachoPython.

23 years agoAuxiliary files for building the IDE applet. Running the IDE through
Jack Jansen [Fri, 29 Mar 2002 23:46:34 +0000 (23:46 +0000)]
Auxiliary files for building the IDE applet. Running the IDE through
BuildApplet for MachoPython now seems to do the right thing, yeah!

23 years agoHandle .icns and .plist files for applets.
Jack Jansen [Fri, 29 Mar 2002 23:44:37 +0000 (23:44 +0000)]
Handle .icns and .plist files for applets.

Also, for now (until we learn to parse .plist files) we make a special case
for the IDE, setting the creator to "Pide".

23 years agoMissed one version number.
Jack Jansen [Fri, 29 Mar 2002 23:43:21 +0000 (23:43 +0000)]
Missed one version number.

23 years agoUse the right types for a couple of fields of the type structure.
Fred Drake [Fri, 29 Mar 2002 22:46:04 +0000 (22:46 +0000)]
Use the right types for a couple of fields of the type structure.

23 years agoStarted updating information about defining attributes on types.
Fred Drake [Fri, 29 Mar 2002 22:45:28 +0000 (22:45 +0000)]
Started updating information about defining attributes on types.
There's still a long way to go, but we're starting to see some real
content in the docs.

23 years agoFirst stab at an icon for the IDE.
Jack Jansen [Fri, 29 Mar 2002 22:28:32 +0000 (22:28 +0000)]
First stab at an icon for the IDE.

23 years agorepair damage: canceling the "save options" dialog now works again.
Just van Rossum [Fri, 29 Mar 2002 21:48:42 +0000 (21:48 +0000)]
repair damage: canceling the "save options" dialog now works again.

23 years agorepair damage: now works again as a CFM app.
Just van Rossum [Fri, 29 Mar 2002 21:47:56 +0000 (21:47 +0000)]
repair damage: now works again as a CFM app.

23 years agoCompletely revamped newline handling. PyEdit is now newline-preserving
Jack Jansen [Fri, 29 Mar 2002 21:26:04 +0000 (21:26 +0000)]
Completely revamped newline handling. PyEdit is now newline-preserving
(if a single newline convention is used in the sourcefile), and the
"save options" has a newline style radio button.

The creator radio button also has the new choices PythonW and None.

Just: just shout (and revert) if you don't agree.

23 years agoAllow file without filetype as long as they end in ".py".
Jack Jansen [Fri, 29 Mar 2002 21:23:47 +0000 (21:23 +0000)]
Allow file without filetype as long as they end in ".py".

Added a -D flag (can really only be specified on OSX commandline) to not
revector sys.stderr, for debugging the IDE itself. Not sure whether
this should stay.

23 years agoImplemented buildtools for MachoPython .app bundles. The API is compatible
Jack Jansen [Fri, 29 Mar 2002 21:21:28 +0000 (21:21 +0000)]
Implemented buildtools for MachoPython .app bundles. The API is compatible
enough that IDE and BuildApplet can create applets, yeah!

23 years agoDon't attempt to create a dummy fsspec if the user cancelled out, just
Jack Jansen [Fri, 29 Mar 2002 21:19:37 +0000 (21:19 +0000)]
Don't attempt to create a dummy fsspec if the user cancelled out, just
return None.

For now, if the user asks for TEXT files files without type are also
accepted. But it is time to phase out StandardGetFile and friends, really.

23 years agoRe-raise the Res.Error if the file doesn't exist.
Jack Jansen [Fri, 29 Mar 2002 21:17:57 +0000 (21:17 +0000)]
Re-raise the Res.Error if the file doesn't exist.

23 years agoAdded -Wno-long-double
Jack Jansen [Fri, 29 Mar 2002 21:17:14 +0000 (21:17 +0000)]
Added -Wno-long-double

23 years agoChanged visible name (in dock, menubar) of the interpreter to PythonW.
Jack Jansen [Fri, 29 Mar 2002 21:16:41 +0000 (21:16 +0000)]
Changed visible name (in dock, menubar) of the interpreter to PythonW.
Changed version numbers and copyright.

23 years agoAdd missing typecast.
Neil Schemenauer [Fri, 29 Mar 2002 19:58:25 +0000 (19:58 +0000)]
Add missing typecast.

23 years ago[Patch #536769] Add -Xcompiler flag for adding arguments and switches for
Andrew M. Kuchling [Fri, 29 Mar 2002 18:00:19 +0000 (18:00 +0000)]
[Patch #536769] Add -Xcompiler flag for adding arguments and switches for
    the compiler

23 years agoPatch #527027: Allow building python as shared library.
Martin v. Löwis [Fri, 29 Mar 2002 16:28:31 +0000 (16:28 +0000)]
Patch #527027: Allow building python as shared library.

23 years agoAs part of fixing bug #536241, add a test case for string.zfill() with Unicode
Andrew M. Kuchling [Fri, 29 Mar 2002 16:21:44 +0000 (16:21 +0000)]
As part of fixing bug #536241, add a test case for string.zfill() with Unicode

23 years ago[Bug #536241] string.zfill() produces mangled output for a Unicode string.
Andrew M. Kuchling [Fri, 29 Mar 2002 16:20:33 +0000 (16:20 +0000)]
[Bug #536241] string.zfill() produces mangled output for a Unicode string.
    Walter Doerwald provided a patch, which I've modified in two ways:

1) (Uncontroversial) Removed code to make module work in earlier versions of
   Python without the unicode() built-in

2) (Poss. controversial) Instead of making string.zfill take the repr()
   of non-string objects, take the str().

Should a warning be added to this branch of the code so that the automatic
str() can be deprecated?

2.2.2 bugfix candidate, assuming the repr()->str() change is deemed OK.

23 years agoAdd two tests for string.zfill
Andrew M. Kuchling [Fri, 29 Mar 2002 16:00:13 +0000 (16:00 +0000)]
Add two tests for string.zfill

23 years agoAllow .pyc files as applets as well as .py files. .py files have
Jack Jansen [Fri, 29 Mar 2002 14:43:50 +0000 (14:43 +0000)]
Allow .pyc files as applets as well as .py files. .py files have
priority, for safety reasons.

23 years agoIf the file has no resource fork first check to see whether it's a
Jack Jansen [Fri, 29 Mar 2002 14:29:35 +0000 (14:29 +0000)]
If the file has no resource fork first check to see whether it's a
datafork-based resource file before trying to decode it as AppleSingle.

23 years agoRemoved debug.
Jack Jansen [Fri, 29 Mar 2002 14:28:09 +0000 (14:28 +0000)]
Removed debug.

23 years agoIn MachoPython print "Pythonw" in banner to distinguish from command-line
Jack Jansen [Fri, 29 Mar 2002 14:27:06 +0000 (14:27 +0000)]
In MachoPython print "Pythonw" in banner to distinguish from command-line
python.
Removed debug output.

23 years agoAdded target "installunixprograms" which installs python and pythonw in
Jack Jansen [Fri, 29 Mar 2002 14:18:18 +0000 (14:18 +0000)]
Added target "installunixprograms" which installs python and pythonw in
/usr/local/bin (referring to the framework-based interpreter and Python.app).

Added target symlinkmacsubtree to aid in debugging.

23 years agoShell script that invokes Python.app from the command line. Called pythonw
Jack Jansen [Fri, 29 Mar 2002 14:15:22 +0000 (14:15 +0000)]
Shell script that invokes Python.app from the command line. Called pythonw
because of similarity to the same program on Windows.

23 years agoRemove the CACHE_HASH and INTERN_STRINGS preprocessor symbols.
Tim Peters [Fri, 29 Mar 2002 03:29:08 +0000 (03:29 +0000)]
Remove the CACHE_HASH and INTERN_STRINGS preprocessor symbols.

23 years agoCall PyObject_GC_UnTrack before putting an object on the list of trash.
Neil Schemenauer [Fri, 29 Mar 2002 03:07:29 +0000 (03:07 +0000)]
Call PyObject_GC_UnTrack before putting an object on the list of trash.

23 years agoIf the GC is enabled then don't use the ob_type pointer to create a list
Neil Schemenauer [Fri, 29 Mar 2002 03:05:54 +0000 (03:05 +0000)]
If the GC is enabled then don't use the ob_type pointer to create a list
of trash objects.  Use the gc_prev pointer instead.

23 years agoMake _PyObject_GC_UnTrack do nothing if WITH_CYCLE_GC is not defined.
Neil Schemenauer [Fri, 29 Mar 2002 03:04:25 +0000 (03:04 +0000)]
Make _PyObject_GC_UnTrack do nothing if WITH_CYCLE_GC is not defined.

23 years agoNews for SF #535905.
Guido van Rossum [Fri, 29 Mar 2002 01:07:24 +0000 (01:07 +0000)]
News for SF #535905.

23 years agoMark a couple of types that had not been marked.
Fred Drake [Thu, 28 Mar 2002 23:46:41 +0000 (23:46 +0000)]
Mark a couple of types that had not been marked.

23 years agoAdded comments for more entries of the type structure in the example
Fred Drake [Thu, 28 Mar 2002 23:45:22 +0000 (23:45 +0000)]
Added comments for more entries of the type structure in the example
type implementation.

23 years agoThe new files included by \verbatiminput in newtypes.tex.
Fred Drake [Thu, 28 Mar 2002 23:32:53 +0000 (23:32 +0000)]
The new files included by \verbatiminput in newtypes.tex.

23 years agoMove some of the longer example code to external fragments, and
Fred Drake [Thu, 28 Mar 2002 23:12:09 +0000 (23:12 +0000)]
Move some of the longer example code to external fragments, and
include them using \verbatiminput.  This has the advantage that pages
can still break at reasonable places, and examples that go longer than
a page won't get cut off.

Make a few small markup adjustments for consistency.

Explain that PyObject_New() is not a C function but a polymorphic
beast that returns a pointer to the type that's passed as the first
arg.

Explain why type objects use the PyObject_VAR_HEAD.

23 years agoFix getcomments() so that it doesn't fail with TypeErrors.
Jeremy Hylton [Thu, 28 Mar 2002 23:01:56 +0000 (23:01 +0000)]
Fix getcomments() so that it doesn't fail with TypeErrors.

It appears that getcomments() can get called for classes defined in
C.  Since these don't have source code, it can't do anything useful.
A function buried many levels deep was raising a TypeError that was
not caught.

Who knows why this broke...

23 years agoAdded index entries.
Fred Drake [Thu, 28 Mar 2002 22:36:56 +0000 (22:36 +0000)]
Added index entries.

23 years agoExtend \verbatiminput so that the typeset version provides the same appearance
Fred Drake [Thu, 28 Mar 2002 22:28:43 +0000 (22:28 +0000)]
Extend \verbatiminput so that the typeset version provides the same appearance
as a verbatim environment.  (The HTML version is already fine.)

23 years agonew script - helps track down symbols exported by modules but not
Skip Montanaro [Thu, 28 Mar 2002 22:01:40 +0000 (22:01 +0000)]
new script - helps track down symbols exported by modules but not
mentioned in the library reference manual

23 years agotest_trashcan: reword obscure code.
Tim Peters [Thu, 28 Mar 2002 21:22:25 +0000 (21:22 +0000)]
test_trashcan:  reword obscure code.

Bugfix candidate.

23 years agoNew test_traschcan() test in test_gc, which reliably provokes segfaults
Tim Peters [Thu, 28 Mar 2002 21:08:30 +0000 (21:08 +0000)]
New test_traschcan() test in test_gc, which reliably provokes segfaults
under 2.0, 2.1 and 2.2.

Bugfix candidate.

23 years agoMinor wording change.
Fred Drake [Thu, 28 Mar 2002 21:06:17 +0000 (21:06 +0000)]
Minor wording change.

23 years agoAdd _Py_AS_GC macro. It will be used by the trashcan code on object.c.
Neil Schemenauer [Thu, 28 Mar 2002 21:06:16 +0000 (21:06 +0000)]
Add _Py_AS_GC macro.  It will be used by the trashcan code on object.c.

23 years agoAdd missing "void" to function.
Neil Schemenauer [Thu, 28 Mar 2002 21:05:38 +0000 (21:05 +0000)]
Add missing "void" to function.

23 years agoAdd type cast.
Neil Schemenauer [Thu, 28 Mar 2002 21:04:14 +0000 (21:04 +0000)]
Add type cast.

23 years agoadd comment reminding people about class hierarchy in Doc/lib/libexcs.tex
Skip Montanaro [Thu, 28 Mar 2002 20:57:51 +0000 (20:57 +0000)]
add comment reminding people about class hierarchy in Doc/lib/libexcs.tex

23 years agoadd exception class hierarchy. This should probably be done differently,
Skip Montanaro [Thu, 28 Mar 2002 20:53:22 +0000 (20:53 +0000)]
add exception class hierarchy.  This should probably be done differently,
but at least the content is there.

23 years agoThis is Neil's fix for SF bug 535905 (Evil Trashcan and GC interaction).
Guido van Rossum [Thu, 28 Mar 2002 20:34:59 +0000 (20:34 +0000)]
This is Neil's fix for SF bug 535905 (Evil Trashcan and GC interaction).

The fix makes it possible to call PyObject_GC_UnTrack() more than once
on the same object, and then move the PyObject_GC_UnTrack() call to
*before* the trashcan code is invoked.

BUGFIX CANDIDATE!

23 years agoAllow a page break in a code longish example.
Fred Drake [Thu, 28 Mar 2002 20:19:23 +0000 (20:19 +0000)]
Allow a page break in a code longish example.

23 years agoFix an issue that was reported in but unrelated to the main problem of
Guido van Rossum [Thu, 28 Mar 2002 20:17:52 +0000 (20:17 +0000)]
Fix an issue that was reported in but unrelated to the main problem of
SF bug 535905 (Evil Trashcan and GC interaction).

The SETLOCAL() macro should not DECREF the local variable in-place and
then store the new value; it should copy the old value to a temporary
value, then store the new value, and then DECREF the temporary value.
This is because it is possible that during the DECREF the frame is
accessed by other code (e.g. a __del__ method or gc.collect()) and the
variable would be pointing to already-freed memory.

BUGFIX CANDIDATE!

23 years agoAdd documentation on the hasfree data object.
Fred Drake [Thu, 28 Mar 2002 19:34:53 +0000 (19:34 +0000)]
Add documentation on the hasfree data object.

23 years agoReindent.
Martin v. Löwis [Thu, 28 Mar 2002 16:26:40 +0000 (16:26 +0000)]
Reindent.

23 years agoAdd a simple test of the METH_CLASS and METH_STATIC flags for type methods.
Fred Drake [Thu, 28 Mar 2002 15:49:54 +0000 (15:49 +0000)]
Add a simple test of the METH_CLASS and METH_STATIC flags for type methods.

23 years agoPatch #536117: Typo in turtle.py.
Martin v. Löwis [Thu, 28 Mar 2002 15:45:57 +0000 (15:45 +0000)]
Patch #536117: Typo in turtle.py.
2.2.2 candidate.

23 years agoMinor consistency adjustments.
Fred Drake [Thu, 28 Mar 2002 12:40:45 +0000 (12:40 +0000)]
Minor consistency adjustments.

23 years agoPYMALLOC_DEBUG routines: The "check API family" gimmick was going nowhere
Tim Peters [Thu, 28 Mar 2002 07:32:11 +0000 (07:32 +0000)]
PYMALLOC_DEBUG routines:  The "check API family" gimmick was going nowhere
fast, and just cluttered the code.  Get rid of it for now.  If a compelling
case can be made for it, easy to restore it later.

23 years agoIntroduce two new flag bits that can be set in a PyMethodDef method
Fred Drake [Thu, 28 Mar 2002 05:33:33 +0000 (05:33 +0000)]
Introduce two new flag bits that can be set in a PyMethodDef method
descriptor, as used for the tp_methods slot of a type.  These new flag
bits are both optional, and mutually exclusive.  Most methods will not
use either.  These flags are used to create special method types which
exist in the same namespace as normal methods without having to use
tedious construction code to insert the new special method objects in
the type's tp_dict after PyType_Ready() has been called.

If METH_CLASS is specified, the method will represent a class method
like that returned by the classmethod() built-in.

If METH_STATIC is specified, the method will represent a static method
like that returned by the staticmethod() built-in.

These flags may not be used in the PyMethodDef table for modules since
these special method types are not meaningful in that case; a
ValueError will be raised if these flags are found in that context.

23 years agoIgnore new output directory.
Fred Drake [Wed, 27 Mar 2002 20:37:04 +0000 (20:37 +0000)]
Ignore new output directory.

23 years agoExpose C library's gettext. Fixes #516412.
Martin v. Löwis [Wed, 27 Mar 2002 18:49:02 +0000 (18:49 +0000)]
Expose C library's gettext. Fixes #516412.

23 years agoDestroy and unlink deleted NoteBook panes. Fixes #516703.
Martin v. Löwis [Wed, 27 Mar 2002 17:59:17 +0000 (17:59 +0000)]
Destroy and unlink deleted NoteBook panes. Fixes #516703.
2.2.2 candidate.

23 years agoadd seealso referring to site module doc where people can learn how to
Skip Montanaro [Wed, 27 Mar 2002 17:29:50 +0000 (17:29 +0000)]
add seealso referring to site module doc where people can learn how to
extend sys.path using .pth files.

23 years agoIgnore widgets with unknown names in winfo_children. Fixes #518283.
Martin v. Löwis [Wed, 27 Mar 2002 17:15:57 +0000 (17:15 +0000)]
Ignore widgets with unknown names in winfo_children. Fixes #518283.
2.2.2 candidate.

23 years agoRemove weakref free list. This has the side effect of fixing a memory
Neil Schemenauer [Wed, 27 Mar 2002 15:18:21 +0000 (15:18 +0000)]
Remove weakref free list.  This has the side effect of fixing a memory
management bug.  Also, move some duplicated code into the new_weakref
fucntion.

23 years agofix a typo in PyErr_Format table and add row for 'p' format char
Skip Montanaro [Wed, 27 Mar 2002 13:42:50 +0000 (13:42 +0000)]
fix a typo in PyErr_Format table and add row for 'p' format char
closes bug 534495

23 years agoChange sys_exit to use METH_VARARGS.
Neal Norwitz [Wed, 27 Mar 2002 13:03:09 +0000 (13:03 +0000)]
Change sys_exit to use METH_VARARGS.
sys.exit() now requires 0-1 arguments.  Previously 2+ arguments were allowed.

23 years agoDon't imply XPG4 constants from CODESET presence. Fixes #534153.
Martin v. Löwis [Wed, 27 Mar 2002 12:15:57 +0000 (12:15 +0000)]
Don't imply XPG4 constants from CODESET presence. Fixes #534153.
2.2.2 candiate.

23 years agofurther work on new config system;
Steven M. Gava [Wed, 27 Mar 2002 08:40:46 +0000 (08:40 +0000)]
further work on new config system;
recent files menu

23 years agoFill in this document a bit, adding reminders of items that should be included
Andrew M. Kuchling [Wed, 27 Mar 2002 02:29:48 +0000 (02:29 +0000)]
Fill in this document a bit, adding reminders of items that should be included

23 years agofurther work on new config system;
Steven M. Gava [Wed, 27 Mar 2002 02:25:44 +0000 (02:25 +0000)]
further work on new config system;
user defined help items

23 years ago_finally_ tracked down and eliminated a major problem
Steven M. Gava [Wed, 27 Mar 2002 00:51:53 +0000 (00:51 +0000)]
_finally_ tracked down and eliminated a major problem
in PyShell.py that was causing extreme headaches in
working on EditorWindow.py

23 years agoAdd the "What's New" document to the index of HTML documents.
Fred Drake [Tue, 26 Mar 2002 20:29:11 +0000 (20:29 +0000)]
Add the "What's New" document to the index of HTML documents.

23 years agoImplement iterator protocol.
Neil Schemenauer [Tue, 26 Mar 2002 20:28:40 +0000 (20:28 +0000)]
Implement iterator protocol.

23 years ago__init__(): We'll try to be more RFC 2821 compliant by providing for a
Barry Warsaw [Tue, 26 Mar 2002 20:27:35 +0000 (20:27 +0000)]
__init__(): We'll try to be more RFC 2821 compliant by providing for a
better local_hostname default.  According to RFC 2821, it is
recommended that the fqdn hostname be provided in the EHLO/HELO verb
and if that can't be calculated, to use a domain literal.

The rationale for this change is documented in SF patch #497736 which
also had privacy concerns about leaking the fqdn in the EHLO/HELO.  We
decided this wasn't a big concern because no user data is leaked, and
the IP will always be leaked.  The local_hostname argument is provided
for those clients that are super paranoid.

Using localhost.localdomain may break some strict smtp servers so we
decided against using it as the default.

23 years agoThe <link> to the stylesheet should include the type attribute.
Fred Drake [Tue, 26 Mar 2002 19:57:52 +0000 (19:57 +0000)]
The <link> to the stylesheet should include the type attribute.

23 years agoWire up the makefile to more fully support the "What's New" documents.
Fred Drake [Tue, 26 Mar 2002 19:53:56 +0000 (19:53 +0000)]
Wire up the makefile to more fully support the "What's New" documents.

23 years agoWire in the "What's New" document.
Fred Drake [Tue, 26 Mar 2002 19:18:18 +0000 (19:18 +0000)]
Wire in the "What's New" document.

23 years agoAdd a starter for the next "What's New" document.
Fred Drake [Tue, 26 Mar 2002 19:17:43 +0000 (19:17 +0000)]
Add a starter for the next "What's New" document.

23 years agoMake \url to force horizontal mode.
Fred Drake [Tue, 26 Mar 2002 19:14:41 +0000 (19:14 +0000)]
Make \url to force horizontal mode.