]> granicus.if.org Git - python/log
python
22 years agosound_playsound() doesn't have to be visible externally,
Walter Dörwald [Thu, 22 May 2003 17:22:54 +0000 (17:22 +0000)]
sound_playsound() doesn't have to be visible externally,
so make it static.

22 years agoFixed dotted name assertion.
Raymond Hettinger [Thu, 22 May 2003 16:32:58 +0000 (16:32 +0000)]
Fixed dotted name assertion.

22 years agoUse macro to get length of list.
Jeremy Hylton [Thu, 22 May 2003 16:22:33 +0000 (16:22 +0000)]
Use macro to get length of list.
Remove comment about how code used to work.

22 years agoRemove comment with very long lines that explained what the code used
Jeremy Hylton [Thu, 22 May 2003 15:47:02 +0000 (15:47 +0000)]
Remove comment with very long lines that explained what the code used
to do.

XXX Please be careful when checking in patches to avoid checking in
junk that explains what the patched code used to do.

22 years agoRecord 2.2.3c1 Windows build number.
Tim Peters [Thu, 22 May 2003 15:30:36 +0000 (15:30 +0000)]
Record 2.2.3c1 Windows build number.

22 years agoCorrect dependency information -- the Python docs load the "About this
Fred Drake [Thu, 22 May 2003 15:28:55 +0000 (15:28 +0000)]
Correct dependency information -- the Python docs load the "About this
document" text from html/stdabout.dat, not html/about.dat.

22 years agoAdd historical note for Python 2.2.3
Barry Warsaw [Thu, 22 May 2003 15:17:40 +0000 (15:17 +0000)]
Add historical note for Python 2.2.3

22 years agoMinor elaboration in the information about reporting errors.
Fred Drake [Thu, 22 May 2003 15:09:27 +0000 (15:09 +0000)]
Minor elaboration in the information about reporting errors.

22 years agoupdate version history
Fred Drake [Thu, 22 May 2003 14:58:02 +0000 (14:58 +0000)]
update version history

22 years ago[Bug #741171] pdb crashes when enabling a non-existing breakpoint
Andrew M. Kuchling [Thu, 22 May 2003 14:46:12 +0000 (14:46 +0000)]
[Bug #741171] pdb crashes when enabling a non-existing breakpoint

Check the supplied breakpoint number more carefully.
(Incompatibility: before this patch, "enable -1" would enable
the last breakpoint on the list; now -1 is not a legal ID.  Not sure
anyone would ever use negative indices...)

2.2 bugfix candidate, assuming making -1 illegal isn't considered a problem.

22 years agoWalter's last checkin also needs to work on doubles.
Neal Norwitz [Thu, 22 May 2003 13:29:15 +0000 (13:29 +0000)]
Walter's last checkin also needs to work on doubles.
 * Move new test_byteswap into FPTest.
 * Remove extra lines at end of file.

22 years agotest_byteswap() fails on alphas, because treating the byte swapped bit
Walter Dörwald [Thu, 22 May 2003 13:15:31 +0000 (13:15 +0000)]
test_byteswap() fails on alphas, because treating the byte swapped bit
patterns as floats/doubles results in floating point exceptions.

Fix this by implementing a separate test_byteswap() for the floating
point tests. This new test compares the tostring() values of both arrays
instead of the arrays themselves.

Discovered by Neal Norwitz.

22 years agoAdd documentation for __future__
Jeremy Hylton [Wed, 21 May 2003 21:45:01 +0000 (21:45 +0000)]
Add documentation for __future__

22 years agoMove future statement here from appendix a.
Jeremy Hylton [Wed, 21 May 2003 21:43:00 +0000 (21:43 +0000)]
Move future statement here from appendix a.

22 years agoPyType_Ready(): Complain if the type is a base type, and gc'able, and
Tim Peters [Wed, 21 May 2003 21:29:48 +0000 (21:29 +0000)]
PyType_Ready():  Complain if the type is a base type, and gc'able, and
tp_free is NULL or PyObject_Del at the end.  Because it's a base type
it must call tp_free in its dealloc function, and because it's gc'able
it must not call PyObject_Del.

inherit_slots():  Don't inherit tp_free unless the type and its base
agree about whether they're gc'able.  If the type is gc'able and the
base is not, and the base uses the default PyObject_Del for its
tp_free, give the type PyObject_GC_Del for its tp_free (the appropriate
default for a gc'able type).

cPickle.c:  The Pickler and Unpickler types claim to be base classes
and gc'able, but their dealloc functions didn't call tp_free.
Repaired that.  Also call PyType_Ready() on these typeobjects, so
that the correct (PyObject_GC_Del) default memory-freeing function
gets plugged into these types' tp_free slots.

22 years agoFix for SF [ 734869 ] Lambda functions in list comprehensions
Jeremy Hylton [Wed, 21 May 2003 17:34:50 +0000 (17:34 +0000)]
Fix for SF [ 734869 ] Lambda functions in list comprehensions

The compiler was reseting the list comprehension tmpname counter for each function, but the symtable was using the same counter for the entire module.  Repair by move tmpname into the symtable entry.

Bugfix candidate.

22 years agoSF bug #604716: faster [None]*n or []*n
Raymond Hettinger [Wed, 21 May 2003 05:58:46 +0000 (05:58 +0000)]
SF bug #604716: faster [None]*n or []*n

Fulfilled request to special case repetitions of lists of length 0 or 1.

22 years agoDon't mention __slots__ as a technique for error avoidance
Andrew M. Kuchling [Tue, 20 May 2003 18:12:21 +0000 (18:12 +0000)]
Don't mention __slots__ as a technique for error avoidance

22 years agoAdded a test for the fix of SF bug #658233, where continuation lines
Barry Warsaw [Tue, 20 May 2003 17:28:54 +0000 (17:28 +0000)]
Added a test for the fix of SF bug #658233, where continuation lines
in .po metadata caused a crash.

Also, removed some unnecessary code.

Backport candidate.

22 years agoGNUTranslations._parse(): Fix SF bug #658233, where continuation lines
Barry Warsaw [Tue, 20 May 2003 17:26:48 +0000 (17:26 +0000)]
GNUTranslations._parse(): Fix SF bug #658233, where continuation lines
in .po metadata caused a crash.

Backport candidate.

22 years agoFix markup nits.
Fred Drake [Tue, 20 May 2003 16:21:51 +0000 (16:21 +0000)]
Fix markup nits.

22 years agoStraighten out the docs for os.system(); the Unix and Windows behaviors
Tim Peters [Tue, 20 May 2003 16:15:58 +0000 (16:15 +0000)]
Straighten out the docs for os.system(); the Unix and Windows behaviors
really can't be smushed together.

Bugfix candidate.

22 years agoMarkup nits.
Fred Drake [Tue, 20 May 2003 15:28:58 +0000 (15:28 +0000)]
Markup nits.

22 years agoRemove unused line numbers from example code.
Fred Drake [Tue, 20 May 2003 15:21:08 +0000 (15:21 +0000)]
Remove unused line numbers from example code.
Line numbering of examples is not used elsewhere.

22 years agoPreserved one bit in type objects for Stackless.
Christian Tismer [Tue, 20 May 2003 15:14:31 +0000 (15:14 +0000)]
Preserved one bit in type objects for Stackless.
The presence of this bit controls, whether there
are special fields for non-recursive calls.

22 years ago'Progress' doesn't exists, causing 'from EasyDialogs import *' to fail
Just van Rossum [Tue, 20 May 2003 12:07:19 +0000 (12:07 +0000)]
'Progress' doesn't exists, causing 'from EasyDialogs import *' to fail

22 years agoFix missing parethesis.
Raymond Hettinger [Tue, 20 May 2003 05:31:16 +0000 (05:31 +0000)]
Fix missing parethesis.

22 years agoSF 740055: optional argument protocol in shelve.open is ignored
Raymond Hettinger [Tue, 20 May 2003 05:15:55 +0000 (05:15 +0000)]
SF 740055: optional argument protocol in shelve.open is ignored

* added the missing parameter
* put optional parameters in correct positional order

22 years agoSF bug 735293: Command line timeit.py sets sys.path badly
Raymond Hettinger [Tue, 20 May 2003 04:59:56 +0000 (04:59 +0000)]
SF bug 735293: Command line timeit.py sets sys.path badly

Paul Moore's patch to have timeit.py check the current directory for
imports (instead of the directory for Lib/timeit.py).

22 years agoAdd docs for key_file and cert_file arguments for HTTPSConnection. Copied from socke...
Brett Cannon [Tue, 20 May 2003 02:56:35 +0000 (02:56 +0000)]
Add docs for key_file and cert_file arguments for HTTPSConnection.  Copied from socket.ssl docs.

22 years agoFixing the previous patch to have the changes be to the proper docstrings.
Brett Cannon [Tue, 20 May 2003 02:40:12 +0000 (02:40 +0000)]
Fixing the previous patch to have the changes be to the proper docstrings.

22 years agoFix docstrings for __(get|set|del)slice__ to mention that negative indices are not...
Brett Cannon [Tue, 20 May 2003 02:30:04 +0000 (02:30 +0000)]
Fix docstrings for __(get|set|del)slice__ to mention that negative indices are not supported.

22 years agoFix race exposed by 2.4 GHz XP box: Don't tear down PyShell until
Kurt B. Kaiser [Mon, 19 May 2003 23:11:51 +0000 (23:11 +0000)]
Fix race exposed by 2.4 GHz XP box: Don't tear down PyShell until
subprocess polling has terminated.  Tk callit gets unhappy if it can't
find the function 'after' scheduled to run.

M PyShell.py

22 years agoOnly return objects if wantobjects is set in GetVar.
Martin v. Löwis [Mon, 19 May 2003 19:57:42 +0000 (19:57 +0000)]
Only return objects if wantobjects is set in GetVar.

22 years ago* Correct Sniffer doc to correspond to the implementation.
Skip Montanaro [Mon, 19 May 2003 15:33:36 +0000 (15:33 +0000)]
* Correct Sniffer doc to correspond to the implementation.

* Add optional delimiters arg to Sniffer.sniff() which restricts the set of
  candidate field delimiters.

22 years agoLet Python inform the user what went wrong with the import.
Kurt B. Kaiser [Mon, 19 May 2003 02:07:44 +0000 (02:07 +0000)]
Let Python inform the user what went wrong with the import.
 Modified Files:
  idle idle.py idle.pyw

22 years agoOnly encode Unicode objects when printing them raw.
Martin v. Löwis [Sun, 18 May 2003 12:56:25 +0000 (12:56 +0000)]
Only encode Unicode objects when printing them raw.

22 years agoConsider \U-escapes in raw-unicode-escape. Fixes #444514.
Martin v. Löwis [Sun, 18 May 2003 12:31:09 +0000 (12:31 +0000)]
Consider \U-escapes in raw-unicode-escape. Fixes #444514.

22 years agoFix array.array.insert(), so that it treats negative indices as
Walter Dörwald [Sun, 18 May 2003 03:15:10 +0000 (03:15 +0000)]
Fix array.array.insert(), so that it treats negative indices as
being relative to the end of the array, just like list.insert() does.
This closes SF bug #739313.

22 years agoTo be on the safe side, backed out any questionable iteritem changes and set back...
Brett Cannon [Sun, 18 May 2003 02:25:07 +0000 (02:25 +0000)]
To be on the safe side, backed out any questionable iteritem changes and set back to item calls.

22 years agoAdded more words about the abuse of the tp_alloc nitems argument
Tim Peters [Sun, 18 May 2003 02:24:46 +0000 (02:24 +0000)]
Added more words about the abuse of the tp_alloc nitems argument
perpetrated by the time and datetime classes.

22 years agoWhitespace Normalization
Kurt B. Kaiser [Sun, 18 May 2003 02:24:32 +0000 (02:24 +0000)]
Whitespace Normalization

22 years agoWhitespace Normalization
Kurt B. Kaiser [Sun, 18 May 2003 02:21:55 +0000 (02:21 +0000)]
Whitespace Normalization

 Modified Files:
  config-extensions.def config-highlight.def config-keys.def
  config-main.def

22 years agoAdd another error case to the insert test.
Walter Dörwald [Sun, 18 May 2003 01:56:25 +0000 (01:56 +0000)]
Add another error case to the insert test.

22 years agoPort test_array and test_winsound to PyUnit. Enhance tests for array
Walter Dörwald [Sun, 18 May 2003 00:47:47 +0000 (00:47 +0000)]
Port test_array and test_winsound to PyUnit. Enhance tests for array
(code coverage for Modules/arraymodule.c is at 91%)

From SF patch #736962.

22 years agoShow Freddy the mirror
Kurt B. Kaiser [Sat, 17 May 2003 21:04:10 +0000 (21:04 +0000)]
Show Freddy the mirror
i.e. improve subprocess exit paths and exeception reporting

22 years agoUser cStringIO instead of StringIO.
Raymond Hettinger [Sat, 17 May 2003 20:44:12 +0000 (20:44 +0000)]
User cStringIO instead of StringIO.

22 years agoRevert some changes back to dict.items made in a previous patch.
Brett Cannon [Sat, 17 May 2003 19:51:26 +0000 (19:51 +0000)]
Revert some changes back to dict.items made in a previous patch.

22 years agodatetime.timedelta is now subclassable in Python. The new test shows
Tim Peters [Sat, 17 May 2003 15:57:00 +0000 (15:57 +0000)]
datetime.timedelta is now subclassable in Python.  The new test shows
one good use:  a subclass adding a method to express the duration as
a number of hours (or minutes, or whatever else you want to add).  The
native breakdown into days+seconds+us is often clumsy.  Incidentally
moved a large chunk of object-initialization code closer to the top of
the file, to avoid worse forward-reference trickery.

22 years agoAdded icon for IDLE on OS X
Tony Lownds [Sat, 17 May 2003 15:14:10 +0000 (15:14 +0000)]
Added icon for IDLE on OS X

22 years agominor fix, jython-only. Don't asssume stdout to save is the ur-stdout.
Samuele Pedroni [Sat, 17 May 2003 12:51:10 +0000 (12:51 +0000)]
minor fix, jython-only. Don't asssume stdout to save is the ur-stdout.

22 years agodatetime.datetime and datetime.time can now be subclassed in Python. Brr.
Tim Peters [Sat, 17 May 2003 05:55:19 +0000 (05:55 +0000)]
datetime.datetime and datetime.time can now be subclassed in Python.  Brr.

22 years agoNigel Rowe's Patch
Kurt B. Kaiser [Sat, 17 May 2003 03:51:57 +0000 (03:51 +0000)]
Nigel Rowe's Patch
[ 735527 ] Re Bug [ 678325 ] ParenMatching Missing AutoIndent

AutoIndent was merged with EditorWindow, this patch corrects
the references in ParenMatch.

22 years agoNoam Raphael's patch.
Kurt B. Kaiser [Sat, 17 May 2003 03:15:48 +0000 (03:15 +0000)]
Noam Raphael's patch.
SF Patch 686254 "Run IDLEfork from any directory without set-up"

Allows IDLE to run when not installed and cwd is not the IDLE directory.

I took the liberty of moving it to the startup scripts since once IDLEfork
is again a part of Python it will be superfluous and I don't want it to
be forgotten.  But it is very useful for those using IDLEfork standalone!

M CREDITS.txt
M NEWS.txt
M idle
M idle.py
M idle.pyw

22 years agosimpler temp dir cleanup
Skip Montanaro [Sat, 17 May 2003 02:54:11 +0000 (02:54 +0000)]
simpler temp dir cleanup

22 years agobeefed up version: jython support, covers now fixed differences between CPython/Jython.
Samuele Pedroni [Sat, 17 May 2003 02:39:52 +0000 (02:39 +0000)]
beefed up version: jython support, covers now fixed differences between CPython/Jython.

22 years agotest_subclass_date(): Beefed this up, to check that new instance
Tim Peters [Sat, 17 May 2003 02:25:20 +0000 (02:25 +0000)]
test_subclass_date():  Beefed this up, to check that new instance
attributes and methods work, that new arguments can be passed to the
constructor, and that inherited methods and attrs still work.  Added
XXX comments about what to do when datetime becomes usably subclassable
too (it's not yet).

22 years agoInclude module name in doctest summary.
Raymond Hettinger [Sat, 17 May 2003 01:59:57 +0000 (01:59 +0000)]
Include module name in doctest summary.

22 years agoUse test_support.run_doctest()
Raymond Hettinger [Sat, 17 May 2003 01:08:35 +0000 (01:08 +0000)]
Use test_support.run_doctest()

22 years agoProvide a clue that the doctests have run.
Raymond Hettinger [Sat, 17 May 2003 00:58:33 +0000 (00:58 +0000)]
Provide a clue that the doctests have run.

22 years agoMinor cleanups.
Raymond Hettinger [Fri, 16 May 2003 23:16:36 +0000 (23:16 +0000)]
Minor cleanups.

22 years agoTurns out there wasn't a need to define tp_free for any of the types here.
Tim Peters [Fri, 16 May 2003 22:44:06 +0000 (22:44 +0000)]
Turns out there wasn't a need to define tp_free for any of the types here.

22 years agoStopped using the old macro form of _PyObject_Del.
Tim Peters [Fri, 16 May 2003 20:02:26 +0000 (20:02 +0000)]
Stopped using the old macro form of _PyObject_Del.

22 years agoRemove usage of re module from encodings package search function.
Marc-André Lemburg [Fri, 16 May 2003 17:07:51 +0000 (17:07 +0000)]
Remove usage of re module from encodings package search function.

22 years agotest_fileno(): Skip this test on Windows.
Tim Peters [Fri, 16 May 2003 15:35:10 +0000 (15:35 +0000)]
test_fileno():  Skip this test on Windows.

22 years agoMissing parenthesis.
Raymond Hettinger [Fri, 16 May 2003 14:36:26 +0000 (14:36 +0000)]
Missing parenthesis.

22 years agoAdded some missing PyObject* casts in the deallocators.
Jim Fulton [Fri, 16 May 2003 13:53:43 +0000 (13:53 +0000)]
Added some missing PyObject* casts in the deallocators.

Added some defines for PyMODINIT_FUNC so that the examples work
with Python 2.2.

I think I'm done hacking this documentation. Yippie! :)

22 years agoAdded a missing PyObject* cast to the dealloc examples.
Jim Fulton [Fri, 16 May 2003 13:51:58 +0000 (13:51 +0000)]
Added a missing PyObject* cast to the dealloc examples.

Added a note that the mechanism for defining new tyoes documented here
only works for Python 2.2 and higher.

22 years agoRemoved the out of date and no-longer-referenced xxobject.c example
Jim Fulton [Fri, 16 May 2003 13:34:33 +0000 (13:34 +0000)]
Removed the out of date and no-longer-referenced xxobject.c example
type implementation.  Note that this same example lives in
Modules/xxmodule.c. (It is just as out of date there.)

22 years agoRemoved reference to the out-of-date (and not very useful)
Jim Fulton [Fri, 16 May 2003 13:32:59 +0000 (13:32 +0000)]
Removed reference to the out-of-date (and not very useful)
Objects/xxobject.c example.

Updated the discussion of type checking to refer to
PyObject_TypeCheck.

22 years agoPatch #738325: Install optimized idlelib files.
Martin v. Löwis [Fri, 16 May 2003 05:40:31 +0000 (05:40 +0000)]
Patch #738325: Install optimized idlelib files.

22 years ago* Added file globbing to make it easier to check many LaTeX files.
Raymond Hettinger [Fri, 16 May 2003 03:06:39 +0000 (03:06 +0000)]
* Added file globbing to make it easier to check many LaTeX files.
* Delimiter mismatch now prints a warning instead of raising an exception.
* Offer style warnings for use of e.g. and i.e.
* Bypass false positive warnings for forward slashes in urls and in /rfc822.
* Put non-LaTex delimiter matching first to make -d option more reliable.

22 years agoMore fixes according to SF 549151:
Guido van Rossum [Fri, 16 May 2003 01:46:51 +0000 (01:46 +0000)]
More fixes according to SF 549151:

- When redirecting, always use GET.  This is common practice and
  more-or-less sanctioned by the HTTP standard.

- Add a handler for 307 redirection, which becomes an error for POST,
  but a regular redirect for GET and HEAD.

22 years agoAdd docs for MessageBeep.
Guido van Rossum [Fri, 16 May 2003 01:42:22 +0000 (01:42 +0000)]
Add docs for MessageBeep.

22 years agoDon't replace an empty line with "pass" when symbol == "eval", where
Guido van Rossum [Fri, 16 May 2003 01:24:30 +0000 (01:24 +0000)]
Don't replace an empty line with "pass" when symbol == "eval", where
"pass" isn't valid syntax.  Reported by Samuele Pedroni on python-dev
(May 12, 2003).

22 years ago1. When a module is run from an EditorWindow, if its directory is not in
Kurt B. Kaiser [Thu, 15 May 2003 23:23:21 +0000 (23:23 +0000)]
1. When a module is run from an EditorWindow, if its directory is not in
   sys.path, prepend it.  This allows the module to import other modules
   in the same directory.  Do the same for a script run from the command
   line.
2. Tweak the IDLE usage message a bit more.

SF Bug 706860 (closed)
SF Patch 686254 (reject specific solution)
SF Patch 507327 (similar)

M PyShell.py
M ScriptBinding.py

22 years ago1. Add a command line switch to run without the subprocess
Kurt B. Kaiser [Thu, 15 May 2003 18:52:51 +0000 (18:52 +0000)]
1. Add a command line switch to run without the subprocess
2. Remove the shell menu and associated bindings when running
   without the subprocess.
3. Update the IDLE Help and usage text.
4. Update display_port_binding_error to suggest using -n

M PyShell.py
M help.txt

22 years ago1. Make the startup more robust by not spawning the subprocess if IDLE
Kurt B. Kaiser [Thu, 15 May 2003 03:40:51 +0000 (03:40 +0000)]
1. Make the startup more robust by not spawning the subprocess if IDLE
   can't acquire the port to listen on.
2. Shorten the retry and simplify the messages.

22 years ago1. Restore the capability to run and debug without a subprocess.
Kurt B. Kaiser [Thu, 15 May 2003 03:19:42 +0000 (03:19 +0000)]
1. Restore the capability to run and debug without a subprocess.
2. Add an indicator to the shell startup notice when running w/o
   subprocess.
3. Improve exception reporting when running a command or script from the
   command line.
4. Clarify the fact that breakpoints set or cleared after a file is
   saved will revert to the saved state if the file is closed without
   re-saving.
5. If user tries to exit or restart when user code is running, interrupt
   the user code.  This helps to eliminate occasional hanging
   subprocesses on Windows (except for Freddy :).

M NEWS.txt
M PyShell.py
M ScriptBinding.py

22 years agoDB.remove() needs to set the internal DB handle to NULL after being called.
Gregory P. Smith [Thu, 15 May 2003 00:13:18 +0000 (00:13 +0000)]
DB.remove() needs to set the internal DB handle to NULL after being called.
(sourceforge pybsddb bug #737970).

Also: don't allow other threads to run during calls that invalidate the
DB handle.

22 years agoRestore Python 1.5.2 compatibility.
Marc-André Lemburg [Wed, 14 May 2003 19:48:57 +0000 (19:48 +0000)]
Restore Python 1.5.2 compatibility.

22 years agoForward slash warnings now only occur for potentially valid LaTeX commands.
Raymond Hettinger [Wed, 14 May 2003 18:15:55 +0000 (18:15 +0000)]
Forward slash warnings now only occur for potentially valid LaTeX commands.
(Idea contributed by Anthony Baxter.)

22 years agoOn Windows the subprocess was not exiting during a restart.
Kurt B. Kaiser [Wed, 14 May 2003 18:15:40 +0000 (18:15 +0000)]
On Windows the subprocess was not exiting during a restart.

This bug, henceforth designated Freddy, was due to the mistaken
elimination of the KeyboardInterrupt exception at the previous revision.
PyShell's unix_terminate hammer was masking the problem on Linux.  On W2K
the subprocess MainThread was trying to print the exception after the
SockThread had ceased to service the socket.  The subprocess would then
detach and spin when the GUI created the new subprocess.

Modified Files: run.py

22 years agodefer re module imports to help improve interpreter startup
Skip Montanaro [Wed, 14 May 2003 17:33:53 +0000 (17:33 +0000)]
defer re module imports to help improve interpreter startup

22 years ago[Bug #471893] Replace security material with a warning against unpickling
Andrew M. Kuchling [Wed, 14 May 2003 16:51:46 +0000 (16:51 +0000)]
[Bug #471893] Replace security material with a warning against unpickling
untrusted data.

22 years agodocument Stats.dump_stats(), new for Python 2.3
Fred Drake [Wed, 14 May 2003 14:29:27 +0000 (14:29 +0000)]
document Stats.dump_stats(), new for Python 2.3

22 years ago- add a dump_stats() method similar to that of the profile.Profile class
Fred Drake [Wed, 14 May 2003 14:28:09 +0000 (14:28 +0000)]
- add a dump_stats() method similar to that of the profile.Profile class
- don't use "file" as the name of local variables

22 years agoWhen an external application we use exits normally, exit with the same
Fred Drake [Wed, 14 May 2003 04:16:14 +0000 (04:16 +0000)]
When an external application we use exits normally, exit with the same
exit code they returned.  All other types of exit from child processes
are normalized to a return code of 1.
Closes SF bug #732143.

22 years agoFleshed out tests for urllib requiring a network connection.
Brett Cannon [Wed, 14 May 2003 02:18:31 +0000 (02:18 +0000)]
Fleshed out tests for urllib requiring a network connection.

22 years agoCall time.tzset (if available) just before calculating possible timezones from time...
Brett Cannon [Tue, 13 May 2003 20:28:15 +0000 (20:28 +0000)]
Call time.tzset (if available) just before calculating possible timezones from time.tzname.

22 years agoFix use of 'file' as a variable name.
Andrew M. Kuchling [Tue, 13 May 2003 18:14:25 +0000 (18:14 +0000)]
Fix use of 'file' as a variable name.
    (I've tested the fixes, but please proofread anyway.)

22 years agoAdd optional 'onerror' argument to os.walk(), to control error
Guido van Rossum [Tue, 13 May 2003 18:01:19 +0000 (18:01 +0000)]
Add optional 'onerror' argument to os.walk(), to control error
handling.

22 years agoPrevent script from allowing '-r12'
Andrew M. Kuchling [Tue, 13 May 2003 17:56:07 +0000 (17:56 +0000)]
Prevent script from allowing '-r12'

22 years agoRename sum5.py to md5sum.py, because sum5.py is more interesting
Andrew M. Kuchling [Tue, 13 May 2003 17:39:26 +0000 (17:39 +0000)]
Rename sum5.py to md5sum.py, because sum5.py is more interesting
    as an example program

22 years agoDon't use 'file' as a variable name
Andrew M. Kuchling [Tue, 13 May 2003 17:38:05 +0000 (17:38 +0000)]
Don't use 'file' as a variable name
Modernize the code a bit
Add docstring

22 years ago[Bug #724767] Avoid use of 'file' as a variable name
Andrew M. Kuchling [Tue, 13 May 2003 17:09:01 +0000 (17:09 +0000)]
[Bug #724767] Avoid use of 'file' as a variable name

22 years ago1. The command-line arguments for subprocesses no longer need to be
Tony Lownds [Tue, 13 May 2003 15:28:21 +0000 (15:28 +0000)]
1. The command-line arguments for subprocesses no longer need to be
specialized for Mac OS X.

2. buildapp.py - a new file for building an application icon for IDLE on Mac
OS X. See INSTALL.txt

22 years ago[Bug #713722] Delete dangling references to unwritten sections
Andrew M. Kuchling [Tue, 13 May 2003 15:02:06 +0000 (15:02 +0000)]
[Bug #713722] Delete dangling references to unwritten sections

22 years ago[Bug #724767] crlf.py uses the variable name file, which it shouldn't anymore.
Andrew M. Kuchling [Tue, 13 May 2003 14:51:39 +0000 (14:51 +0000)]
[Bug #724767] crlf.py uses the variable name file, which it shouldn't anymore.

22 years ago[Bug #732124] Clarify .pos, .endpos by saying 'method' instead of 'function'
Andrew M. Kuchling [Tue, 13 May 2003 14:40:24 +0000 (14:40 +0000)]
[Bug #732124] Clarify .pos, .endpos by saying 'method' instead of 'function'
Also, put match() description before search(); search() refers to match()