]> granicus.if.org Git - python/log
python
22 years agoSF bug #699934: Obscure error message
Raymond Hettinger [Sun, 6 Apr 2003 19:13:41 +0000 (19:13 +0000)]
SF bug #699934:  Obscure error message

mwh pointed out that the error message did not
make sense if obtained by rearranging the bases.

22 years agoSF patch #701494: more apply removals
Raymond Hettinger [Sun, 6 Apr 2003 09:01:11 +0000 (09:01 +0000)]
SF patch #701494:  more apply removals

22 years agoSwitched from METH_VARARGS to METH_NOARGS for the 7 module functions that
Tim Peters [Sun, 6 Apr 2003 01:50:50 +0000 (01:50 +0000)]
Switched from METH_VARARGS to METH_NOARGS for the 7 module functions that
take no arguments; cuts generated code size.

22 years agoReworked move_finalizer_reachable() to create two distinct lists:
Tim Peters [Sun, 6 Apr 2003 00:11:39 +0000 (00:11 +0000)]
Reworked move_finalizer_reachable() to create two distinct lists:
externally unreachable objects with finalizers, and externally unreachable
objects without finalizers reachable from such objects.  This allows us
to call has_finalizer() at most once per object, and so limit the pain of
nasty getattr hooks.  This fixes the failing "boom 2" example Jeremy
posted (a non-printing variant of which is now part of test_gc), via never
triggering the nasty part of its __getattr__ method.

22 years agomove_finalizers(): Rewrote. It's not necessary for this routine
Tim Peters [Sat, 5 Apr 2003 18:40:50 +0000 (18:40 +0000)]
move_finalizers():  Rewrote.  It's not necessary for this routine
to special-case classic classes, or to worry about refcounts;
has_finalizer() deleted the current object iff the first entry in
the unreachable list has changed.  I don't believe it was correct
to check for ob_refcnt == 1, either:  the dealloc routine would get
called by Py_DECREF then, but there's nothing to stop the dealloc
routine from ressurecting the object, and then gc would remain at
the head of the unreachable list despite that its refcount temporarily
fell to 0 (and that would lead to an infinite loop in move_finalizers()).

I'm still worried about has_finalizer() resurrecting other objects
in the unreachable list:  what's to stop them from getting collected?

22 years agotest_boom: More comments. Also check that len(gc.garbage) doesn't
Tim Peters [Sat, 5 Apr 2003 17:46:04 +0000 (17:46 +0000)]
test_boom:  More comments.  Also check that len(gc.garbage) doesn't
change (it would be another kind of bug if the trash cycle weren't
reclaimed).

22 years agoNew comments. Rewrote has_finalizer() as a sequence of ifs instead of
Tim Peters [Sat, 5 Apr 2003 17:35:54 +0000 (17:35 +0000)]
New comments.  Rewrote has_finalizer() as a sequence of ifs instead of
squashed-together conditional operators; makes it much easier to step
thru in the debugger, and to set a breakpoint on the only dangerous
path.

22 years agoFixed new seemingly random segfaults, by moving the initialization of
Tim Peters [Sat, 5 Apr 2003 17:15:44 +0000 (17:15 +0000)]
Fixed new seemingly random segfaults, by moving the initialization of
delstr from initgc() into collect().  initgc() isn't called unless the
user explicitly imports gc, so can be used only for initialization of
user-visible module features; delstr needs to be initialized for proper
internal operation, whether or not gc is explicitly imported.

Bugfix candidate?  I don't know whether the new bug was backported to
2.2 already.

22 years agoSF bug #715145: unittest.py still uses != in failUnlessEqual
Raymond Hettinger [Fri, 4 Apr 2003 22:56:42 +0000 (22:56 +0000)]
SF bug #715145: unittest.py still uses != in failUnlessEqual

22 years agoAdd Tim's gc boom test to the test suite.
Jeremy Hylton [Fri, 4 Apr 2003 20:00:04 +0000 (20:00 +0000)]
Add Tim's gc boom test to the test suite.

22 years agoFix Tim's boom example.
Jeremy Hylton [Fri, 4 Apr 2003 19:59:06 +0000 (19:59 +0000)]
Fix Tim's boom example.

move_finalizers() moves every object from unreachable to collectable
or finalizers, unless the object is deallocated first.

22 years agoUse fcntl() to put the audio device *back* into blocking mode after
Greg Ward [Fri, 4 Apr 2003 01:47:42 +0000 (01:47 +0000)]
Use fcntl() to put the audio device *back* into blocking mode after
opening it in non-blocking mode.  Both Guido and David Hammerton have
reported that this fixes their problems with ossaudiodev -- hooray!

22 years agoAdd get_referrents() helper function.
Jeremy Hylton [Thu, 3 Apr 2003 16:29:13 +0000 (16:29 +0000)]
Add get_referrents() helper function.

22 years agoAdd get_referrents() helper function.
Jeremy Hylton [Thu, 3 Apr 2003 16:28:38 +0000 (16:28 +0000)]
Add get_referrents() helper function.

22 years agoRevert Patch #670715: iconv support.
Martin v. Löwis [Thu, 3 Apr 2003 04:49:12 +0000 (04:49 +0000)]
Revert Patch #670715: iconv support.

22 years agoFix description: u"%c" % 0xffffffff returned a ValueError not a TypeError.
Walter Dörwald [Wed, 2 Apr 2003 16:57:59 +0000 (16:57 +0000)]
Fix description: u"%c" % 0xffffffff returned a ValueError not a TypeError.

22 years agoChange formatchar(), so that u"%c" % 0xffffffff now raises
Walter Dörwald [Wed, 2 Apr 2003 16:37:24 +0000 (16:37 +0000)]
Change formatchar(), so that u"%c" % 0xffffffff now raises
an OverflowError instead of a TypeError to be consistent
with "%c" % 256. See SF patch #710127.

22 years agoFix a comment
Barry Warsaw [Wed, 2 Apr 2003 04:51:33 +0000 (04:51 +0000)]
Fix a comment

22 years agoAdded a note about scripting support and the IDE builtin help.
Jack Jansen [Tue, 1 Apr 2003 22:33:37 +0000 (22:33 +0000)]
Added a note about scripting support and the IDE builtin help.

22 years agoThe minimal scripting example now actually works.
Jack Jansen [Tue, 1 Apr 2003 22:30:23 +0000 (22:30 +0000)]
The minimal scripting example now actually works.

22 years agoSigh... The get() and set() commands are not declared in the aete for
Jack Jansen [Tue, 1 Apr 2003 22:27:18 +0000 (22:27 +0000)]
Sigh... The get() and set() commands are not declared in the aete for
the Standard_Suite, but various other suites do expect it (the Finder
implements get() without declaring it itself). It is probably another
case of OSA magic. Adding them to the global base class.

22 years agoRegenerated with property names with _Prop_ prepended.
Jack Jansen [Tue, 1 Apr 2003 22:05:14 +0000 (22:05 +0000)]
Regenerated with property names with _Prop_ prepended.

22 years agoProperties (like enums) are not in the global namespace but only valid
Jack Jansen [Tue, 1 Apr 2003 22:01:58 +0000 (22:01 +0000)]
Properties (like enums) are not in the global namespace but only valid
within a certain context. Give them an _Prop_ prefix, so they don't
accidentally obscure an element from another suite (as happened with
the Finder). Comparisons I'm not sure about, so I left them as global
names.

Also got rid of the lists if declarations, they serve no useful purpose.

22 years agoTurned the suite compiler into an object.
Jack Jansen [Tue, 1 Apr 2003 14:25:49 +0000 (14:25 +0000)]
Turned the suite compiler into an object.

22 years ago- All messages are now dependent on the --verbose option.
Jack Jansen [Tue, 1 Apr 2003 13:32:17 +0000 (13:32 +0000)]
- All messages are now dependent on the --verbose option.
- Added a --dump option that doesn't generate the module but dumps
  the pretty-printed aete resource(s) on stdout.

22 years agoinit_bsddb(): Added a few symbols that Greg forgot.
Barry Warsaw [Mon, 31 Mar 2003 19:51:29 +0000 (19:51 +0000)]
init_bsddb(): Added a few symbols that Greg forgot.

22 years agoRemove duplicate test.
Walter Dörwald [Mon, 31 Mar 2003 18:18:41 +0000 (18:18 +0000)]
Remove duplicate test.

22 years agoFix PyString_Format() so that '%c' % u'a' returns u'a'
Walter Dörwald [Mon, 31 Mar 2003 18:07:50 +0000 (18:07 +0000)]
Fix PyString_Format() so that '%c' % u'a' returns u'a'
instead of raising a TypeError. (From SF patch #710127)

Add tests to verify this is fixed.

Add various tests for '%c' % int.

22 years ago- add the "download_url" field to the pre-2.2.3 metadata compatibility note
Fred Drake [Mon, 31 Mar 2003 16:23:09 +0000 (16:23 +0000)]
- add the "download_url" field to the pre-2.2.3 metadata compatibility note
- fix some markup nits

22 years agoFix typo.
Walter Dörwald [Mon, 31 Mar 2003 16:15:13 +0000 (16:15 +0000)]
Fix typo.

22 years agoSF patch #712367, get build working on AIX
Neal Norwitz [Mon, 31 Mar 2003 15:53:49 +0000 (15:53 +0000)]
SF patch #712367, get build working on AIX

configure change is necessary to pass "." to makexp_aix so that
dynamic modules work

setup change gets curses working

22 years agoAdded a File->Generate OSA Suite command.
Jack Jansen [Mon, 31 Mar 2003 15:11:14 +0000 (15:11 +0000)]
Added a File->Generate OSA Suite command.

22 years agoAdded 1-page introductions to creating GUIs in Python and the OSA
Jack Jansen [Mon, 31 Mar 2003 15:10:46 +0000 (15:10 +0000)]
Added 1-page introductions to creating GUIs in Python and the OSA
interface.

22 years agoFix symbol in grammar; this should fix some hyperlinking in the HTML
Fred Drake [Mon, 31 Mar 2003 14:53:03 +0000 (14:53 +0000)]
Fix symbol in grammar; this should fix some hyperlinking in the HTML
version.

22 years agoSubclasses of ObjectSpecifier can now be packed and unpacked. This allows
Jack Jansen [Mon, 31 Mar 2003 13:32:59 +0000 (13:32 +0000)]
Subclasses of ObjectSpecifier can now be packed and unpacked. This allows
you to say something like "talker.count(want=Address_Book.people)" in
stead of having to manually create the aetypes.Type(Address_Book.people.want)
OSA type.

22 years agoIn TalkTo.send(), check that we have access to the window manager,
Jack Jansen [Mon, 31 Mar 2003 13:29:32 +0000 (13:29 +0000)]
In TalkTo.send(), check that we have access to the window manager,
and initialize the event loop (if not done previously) to work around
a bug (IMHO) in MacOSX 10.2.

22 years agoLib/plat-mac/lib-scriptpackages/SystemEvents added.
Jack Jansen [Mon, 31 Mar 2003 09:39:54 +0000 (09:39 +0000)]
Lib/plat-mac/lib-scriptpackages/SystemEvents added.

22 years agoRegenerated again, now clases are sorted by code, and with synonyms after
Jack Jansen [Sun, 30 Mar 2003 22:41:53 +0000 (22:41 +0000)]
Regenerated again, now clases are sorted by code, and with synonyms after
the primary name.

22 years agoClasses have to be sorted by code, not name, and synonyms have to
Jack Jansen [Sun, 30 Mar 2003 22:39:39 +0000 (22:39 +0000)]
Classes have to be sorted by code, not name, and synonyms have to
be sorted after the main name, otherwise filling of properties and
elements messes up.

Sorting is always more difficult than expected:-)

22 years agoSF patch #667548, Add some audio constants by Michael Pruett
Neal Norwitz [Sun, 30 Mar 2003 21:49:18 +0000 (21:49 +0000)]
SF patch #667548, Add some audio constants by Michael Pruett

Also remove a few unused variables.  Built on IRIX 6.5.

22 years agoGet build working with pre-C99 compilers
Neal Norwitz [Sun, 30 Mar 2003 20:51:29 +0000 (20:51 +0000)]
Get build working with pre-C99 compilers

22 years agoBump to version 2.5.1
Barry Warsaw [Sun, 30 Mar 2003 20:47:48 +0000 (20:47 +0000)]
Bump to version 2.5.1

22 years agotest_whitespace_eater_unicode_2(): Test case for SF bug #710498.
Barry Warsaw [Sun, 30 Mar 2003 20:47:22 +0000 (20:47 +0000)]
test_whitespace_eater_unicode_2(): Test case for SF bug #710498.

22 years ago__unicode__(): Fix the logic for calculating whether to add a
Barry Warsaw [Sun, 30 Mar 2003 20:46:47 +0000 (20:46 +0000)]
__unicode__(): Fix the logic for calculating whether to add a
separating space or not between encoded chunks.  Closes SF bug
#710498.

22 years agoSF patch #706338, Fix a few broken links in pydoc by Greg Chapman
Neal Norwitz [Sun, 30 Mar 2003 20:31:34 +0000 (20:31 +0000)]
SF patch #706338, Fix a few broken links in pydoc by Greg Chapman

22 years agoPatch #650412: Check whether the address of flock and getpagesize
Martin v. Löwis [Sun, 30 Mar 2003 17:23:49 +0000 (17:23 +0000)]
Patch #650412: Check whether the address of flock and getpagesize
can be taken, and use _SC_PAGE_SIZE if getpagesize is not available.

22 years agoPatch #672053: Return a result from Py_Main, instead of exiting.
Martin v. Löwis [Sun, 30 Mar 2003 17:09:58 +0000 (17:09 +0000)]
Patch #672053: Return a result from Py_Main, instead of exiting.

22 years agoPatch #695250: Suppress COPYRIGHT if site.py is not read. Fixes #672614.
Martin v. Löwis [Sun, 30 Mar 2003 17:00:39 +0000 (17:00 +0000)]
Patch #695250: Suppress COPYRIGHT if site.py is not read. Fixes #672614.
Will backport to 2.2.

22 years agoPatch #701395: Correct documentation of PyUnicode_Splitlines.
Martin v. Löwis [Sun, 30 Mar 2003 16:40:42 +0000 (16:40 +0000)]
Patch #701395: Correct documentation of PyUnicode_Splitlines.

22 years agoPatch #712124: Remove obsolete comment.
Martin v. Löwis [Sun, 30 Mar 2003 16:28:26 +0000 (16:28 +0000)]
Patch #712124: Remove obsolete comment.

22 years agoSupport '' as the argument for the setlocale emulation. Fixes #678259.
Martin v. Löwis [Sun, 30 Mar 2003 15:42:13 +0000 (15:42 +0000)]
Support '' as the argument for the setlocale emulation. Fixes #678259.

22 years agoUse soname option when building a shared libpython. Fixes #701823.
Martin v. Löwis [Sun, 30 Mar 2003 15:37:33 +0000 (15:37 +0000)]
Use soname option when building a shared libpython. Fixes #701823.

22 years agoPatch #545300: Support marked sections.
Martin v. Löwis [Sun, 30 Mar 2003 14:25:40 +0000 (14:25 +0000)]
Patch #545300: Support marked sections.

22 years agoWrap thread stuff in WITH_THREAD. Fixes #704641.
Martin v. Löwis [Sun, 30 Mar 2003 08:44:58 +0000 (08:44 +0000)]
Wrap thread stuff in WITH_THREAD. Fixes #704641.

22 years agoFake bool API for Python 2.2.
Martin v. Löwis [Sun, 30 Mar 2003 08:26:04 +0000 (08:26 +0000)]
Fake bool API for Python 2.2.

22 years agoThe socket module now always uses the _socketobject wrapper class, even on
Skip Montanaro [Sun, 30 Mar 2003 04:54:24 +0000 (04:54 +0000)]
The socket module now always uses the _socketobject wrapper class, even on
platforms which have dup(2).  The makefile() method is built directly on top
of the socket without duplicating the file descriptor, allowing timeouts to
work properly.  Includes a new test case (urllibnet) which requires the
network resource.

Closes bug 707074.

22 years agoMoved gensuitemodule from Mac/scripts to Lib/plat-mac. Documentation
Jack Jansen [Sat, 29 Mar 2003 23:04:01 +0000 (23:04 +0000)]
Moved gensuitemodule from Mac/scripts to Lib/plat-mac. Documentation
remains to be done.

22 years ago- Added an is_scriptable method to test applications for having
Jack Jansen [Sat, 29 Mar 2003 22:54:00 +0000 (22:54 +0000)]
- Added an is_scriptable method to test applications for having
  a scripting dictionary. Made up by me, not guaranteed to be correct
  (and, indeed, Internet Explorer does not seem to play by the book).
- Added the interactive main program as a separate routine, so it
  can be called from the IDE later. Also made it less interactive by
  default: only the input app and output package folder are asked for.

22 years agoThe test for setpgrp having two arguments didn't actually test anything.
Jack Jansen [Sat, 29 Mar 2003 22:07:47 +0000 (22:07 +0000)]
The test for setpgrp having two arguments didn't actually test anything.
For reasons unknown this suddenly started to matter (since Martin's 1.396
checkin? But why?), at least on MacOSX. Added a real test similar to the
getpgrp argument test.

22 years agoMove Mac/Windows specific expected skips from each platform list
Neal Norwitz [Sat, 29 Mar 2003 22:01:17 +0000 (22:01 +0000)]
Move Mac/Windows specific expected skips from each platform list
to the ExpectedSkips class.  Add test_scriptpackages to Mac only list.
Add test_unicode_file to Windows only list.

22 years agoRename LONG_LONG to PY_LONG_LONG. Fixes #710285.
Martin v. Löwis [Sat, 29 Mar 2003 10:06:18 +0000 (10:06 +0000)]
Rename LONG_LONG to PY_LONG_LONG. Fixes #710285.

22 years agoPatch #707701: Expect '??' in event fields. Fixes #698517.
Martin v. Löwis [Sat, 29 Mar 2003 09:47:21 +0000 (09:47 +0000)]
Patch #707701: Expect '??' in event fields. Fixes #698517.
Will backport to 2.2.

22 years agoRegenerated with the new way to get terminology (through AppleEvents),
Jack Jansen [Sat, 29 Mar 2003 00:13:17 +0000 (00:13 +0000)]
Regenerated with the new way to get terminology (through AppleEvents),
which sometimes seems to result in different terminology. It does
seem to be mostly compatible, though.

22 years ago- Prefer using events (in stead of poking around in resource files) to
Jack Jansen [Sat, 29 Mar 2003 00:11:32 +0000 (00:11 +0000)]
- Prefer using events (in stead of poking around in resource files) to
get terminology resources. Unfortunately there doesn't seem to be any
application I can ask for the basic StdSuites terminology (?).
- Prefer OSX-native versions of applications over OS9 versions.

22 years agoSometimes a class is used as a base class of itself. Obviously there's
Jack Jansen [Sat, 29 Mar 2003 00:08:24 +0000 (00:08 +0000)]
Sometimes a class is used as a base class of itself. Obviously there's
something I don't understand, but for now ignore this.

Output the file name such that it cannot contain non-ascii characters.

22 years agoOn OSX the finder will return from an open() event before the application
Jack Jansen [Fri, 28 Mar 2003 23:42:37 +0000 (23:42 +0000)]
On OSX the finder will return from an open() event before the application
has actually entered its event loop. As a stopgap, allow for a 10 second
grace period.

22 years agoSigh: didn't catch all lists that needed to be sorted. Regenerated again.
Jack Jansen [Fri, 28 Mar 2003 23:38:00 +0000 (23:38 +0000)]
Sigh: didn't catch all lists that needed to be sorted. Regenerated again.

22 years agoSigh: didn't catch all lists that needed to be sorted.
Jack Jansen [Fri, 28 Mar 2003 23:37:05 +0000 (23:37 +0000)]
Sigh: didn't catch all lists that needed to be sorted.

22 years agomake nt altsep forward slash - closes bug 709428
Skip Montanaro [Fri, 28 Mar 2003 22:23:24 +0000 (22:23 +0000)]
make nt altsep forward slash - closes bug 709428
backport candidate

22 years agoRegenerated (from resource files) with sorting version of gensuitemodule.
Jack Jansen [Fri, 28 Mar 2003 22:07:22 +0000 (22:07 +0000)]
Regenerated (from resource files) with sorting version of gensuitemodule.
This is a first step towards regenerating the modules with newer, MacOSX,
versions of these programs, and using the programmatic interface to
get at the terminology in stead of poking in resource files.

22 years ago- Sort various lists (list of events, OSA-classes, etc) before generating
Jack Jansen [Fri, 28 Mar 2003 22:04:22 +0000 (22:04 +0000)]
- Sort various lists (list of events, OSA-classes, etc) before generating
code. This makes it a lot easier to compare the generated code for two
different versions of the suite.
- Various tweaks to the code to generate suites without looking at resource
files manually.

22 years agoMinimal test suite of the generated packages in plat-mac/lib-scriptpackages.
Jack Jansen [Fri, 28 Mar 2003 22:01:41 +0000 (22:01 +0000)]
Minimal test suite of the generated packages in plat-mac/lib-scriptpackages.
At the moment does little more than testing that the modules import
correctly and some classes can be instantiated.

22 years agoDisable _XOPEN_SOURCE for Solaris 2.6. Fixes #690317.
Martin v. Löwis [Fri, 28 Mar 2003 18:43:31 +0000 (18:43 +0000)]
Disable _XOPEN_SOURCE for Solaris 2.6. Fixes #690317.

22 years agoAdd test for setpgrp. Fixes #690317.
Martin v. Löwis [Fri, 28 Mar 2003 18:37:01 +0000 (18:37 +0000)]
Add test for setpgrp. Fixes #690317.

22 years agoPyWeakref_GetObject returns None (not NULL) when the referent is gone.
Ka-Ping Yee [Fri, 28 Mar 2003 18:07:16 +0000 (18:07 +0000)]
PyWeakref_GetObject returns None (not NULL) when the referent is gone.

22 years agoHide private names beginning with _ (but don't hide __special__ names).
Ka-Ping Yee [Fri, 28 Mar 2003 16:35:51 +0000 (16:35 +0000)]
Hide private names beginning with _ (but don't hide __special__ names).
Clean up section headings; make the bars on the left less fat.
Adjust the display of properties slightly.
Don't show stuff inherited from the base 'object' type.

22 years agoMake module lookup a little more robust (certain kinds of fiddling to
Ka-Ping Yee [Fri, 28 Mar 2003 16:29:50 +0000 (16:29 +0000)]
Make module lookup a little more robust (certain kinds of fiddling to
    sys.modules previously produced an exception).

22 years agoMove testing code into "if __name__ == '__main__'" so it's not run on import.
Ka-Ping Yee [Fri, 28 Mar 2003 16:28:48 +0000 (16:28 +0000)]
Move testing code into "if __name__ == '__main__'" so it's not run on import.

22 years agoFactored out test for absolute jumps.
Raymond Hettinger [Fri, 28 Mar 2003 12:05:00 +0000 (12:05 +0000)]
Factored out test for absolute jumps.

22 years ago4.1.5
Gregory P. Smith [Thu, 27 Mar 2003 17:25:10 +0000 (17:25 +0000)]
4.1.5

22 years agoAdds support for the DBEnv->set_timeout() method.
Gregory P. Smith [Thu, 27 Mar 2003 17:23:29 +0000 (17:23 +0000)]
Adds support for the DBEnv->set_timeout() method.

22 years agoReplace criterium with criterion. Fixes #705120.
Martin v. Löwis [Thu, 27 Mar 2003 16:59:38 +0000 (16:59 +0000)]
Replace criterium with criterion. Fixes #705120.

22 years agoIf GetAppTerminology fails (which seems to be the usual case on OSX?)
Jack Jansen [Wed, 26 Mar 2003 23:14:44 +0000 (23:14 +0000)]
If GetAppTerminology fails (which seems to be the usual case on OSX?)
we try to manually launch the application and send it an ascr/gdte
event to get its terminology.

22 years agoTemporary bump of the version number.
Barry Warsaw [Wed, 26 Mar 2003 17:58:11 +0000 (17:58 +0000)]
Temporary bump of the version number.

22 years agotyped_subpart_iterator(): Fix these to use non-deprecated APIs,
Barry Warsaw [Wed, 26 Mar 2003 17:57:25 +0000 (17:57 +0000)]
typed_subpart_iterator(): Fix these to use non-deprecated APIs,
i.e. get_content_maintype() and get_content_subtype().

Also, add True, False for Python 2.2.x where x < 2 compatibility.

22 years agotyped_subpart_iterator(): Fix these to use non-deprecated APIs,
Barry Warsaw [Wed, 26 Mar 2003 17:56:21 +0000 (17:56 +0000)]
typed_subpart_iterator(): Fix these to use non-deprecated APIs,
i.e. get_content_maintype() and get_content_subtype().

22 years agoFix typo.
Walter Dörwald [Wed, 26 Mar 2003 16:03:16 +0000 (16:03 +0000)]
Fix typo.

22 years agoModified to accept a command line argument too.
Jack Jansen [Wed, 26 Mar 2003 14:36:25 +0000 (14:36 +0000)]
Modified to accept a command line argument too.

22 years agoAdd two tests for simple error cases.
Walter Dörwald [Wed, 26 Mar 2003 14:31:25 +0000 (14:31 +0000)]
Add two tests for simple error cases.

22 years agoSF patch #707257: Improve code generation
Raymond Hettinger [Wed, 26 Mar 2003 01:07:54 +0000 (01:07 +0000)]
SF patch #707257: Improve code generation

Adds a single function to improve generated bytecode.  Has a single line
attachment point, so it is completely de-coupled from both the compiler
and ceval.c.

Makes three simple transforms that do not require a basic block analysis
or re-ordering of code.  Gives improved timings on pystone, pybench,
and any code using either "while 1" or "x,y=y,x".

22 years agoCommandTests.testgetoutput():
Thomas Wouters [Tue, 25 Mar 2003 18:50:19 +0000 (18:50 +0000)]
CommandTests.testgetoutput():
    Make sure we aren't masking any errors raised in tempfile.mkdtemp() by
    referencing the (then) unbound local 'dir'.

22 years agoFrank Vercruesse gave an okay on removing the copyright notice:
Jack Jansen [Tue, 25 Mar 2003 10:20:55 +0000 (10:20 +0000)]
Frank Vercruesse gave an okay on removing the copyright notice:
"Hereby I make the script in question available under the terms and
conditions of the latest Python License."

22 years agoRefactoring: rename update_these_slots() into update_subclasses() and
Guido van Rossum [Mon, 24 Mar 2003 23:49:49 +0000 (23:49 +0000)]
Refactoring: rename update_these_slots() into update_subclasses() and
generalize to take a callback function and a void * data argument.
This might come in handy later... :-)

22 years agosymtable_cellvar_offsets(): This leaked references to little integers
Tim Peters [Mon, 24 Mar 2003 17:22:24 +0000 (17:22 +0000)]
symtable_cellvar_offsets():  This leaked references to little integers
in normal cases, and also in error cases.

Bugfix candidate.

22 years agoAdded a Mac note that EasyDialogs dialogs now bring the application to
Jack Jansen [Mon, 24 Mar 2003 12:13:54 +0000 (12:13 +0000)]
Added a Mac note that EasyDialogs dialogs now bring the application to
the foreground.

22 years agoAllow floating point values in ProgressBar.
Jack Jansen [Mon, 24 Mar 2003 12:12:24 +0000 (12:12 +0000)]
Allow floating point values in ProgressBar.

22 years agoRegenerated with Donovan Prestons patch #702620.
Jack Jansen [Sun, 23 Mar 2003 22:07:28 +0000 (22:07 +0000)]
Regenerated with Donovan Prestons patch #702620.

22 years agoNot all objects have an _propdict and _privpropdict, so cater for that.
Jack Jansen [Sun, 23 Mar 2003 22:05:53 +0000 (22:05 +0000)]
Not all objects have an _propdict and _privpropdict, so cater for that.

22 years agoTypo in comment.
Tim Peters [Sun, 23 Mar 2003 18:06:08 +0000 (18:06 +0000)]
Typo in comment.

22 years agoImproved new Py_TRACE_REFS gimmicks.
Tim Peters [Sun, 23 Mar 2003 17:52:28 +0000 (17:52 +0000)]
Improved new Py_TRACE_REFS gimmicks.
Arranged that all the objects exposed by __builtin__ appear in the list
of all objects.  I basically peed away two days tracking down a mystery
leak in sys.gettotalrefcount() in a ZODB app (== tons of code), because
the object leaking the references didn't appear in the sys.getobjects(0)
list.  The object happened to be False.  Now False is in the list, along
with other popular & previously missing leak candidates (like None).
Alas, we still don't have a choke point covering *all* Python objects,
so the list of all objects may still be incomplete.