Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | handle_finalizers(): Rewrote to call append_objects() and gc_list_merge() | Tim Peters | 2003-04-06 | 1 | -36/+31 |
| | | | | | | | | | instead of looping. Smaller and clearer. Faster, too, when we're not appending to gc.garbage: gc_list_merge() takes constant time, regardless of the lists' sizes. append_objects(): Moved up to live with the other list manipulation utilities. | ||||
* | SF bug #699934: Obscure error message | Raymond Hettinger | 2003-04-06 | 2 | -7/+4 |
| | | | | | mwh pointed out that the error message did not make sense if obtained by rearranging the bases. | ||||
* | SF patch #701494: more apply removals | Raymond Hettinger | 2003-04-06 | 23 | -2472/+2460 |
| | |||||
* | Switched from METH_VARARGS to METH_NOARGS for the 7 module functions that | Tim Peters | 2003-04-06 | 1 | -44/+17 |
| | | | | take no arguments; cuts generated code size. | ||||
* | Reworked move_finalizer_reachable() to create two distinct lists: | Tim Peters | 2003-04-06 | 2 | -35/+89 |
| | | | | | | | | | 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. | ||||
* | move_finalizers(): Rewrote. It's not necessary for this routine | Tim Peters | 2003-04-05 | 1 | -29/+20 |
| | | | | | | | | | | | | | | 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? | ||||
* | test_boom: More comments. Also check that len(gc.garbage) doesn't | Tim Peters | 2003-04-05 | 1 | -4/+9 |
| | | | | | change (it would be another kind of bug if the trash cycle weren't reclaimed). | ||||
* | New comments. Rewrote has_finalizer() as a sequence of ifs instead of | Tim Peters | 2003-04-05 | 1 | -6/+21 |
| | | | | | | squashed-together conditional operators; makes it much easier to step thru in the debugger, and to set a breakpoint on the only dangerous path. | ||||
* | Fixed new seemingly random segfaults, by moving the initialization of | Tim Peters | 2003-04-05 | 1 | -8/+11 |
| | | | | | | | | | | 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. | ||||
* | SF bug #715145: unittest.py still uses != in failUnlessEqual | Raymond Hettinger | 2003-04-04 | 2 | -2/+6 |
| | |||||
* | Add Tim's gc boom test to the test suite. | Jeremy Hylton | 2003-04-04 | 1 | -0/+19 |
| | |||||
* | Fix Tim's boom example. | Jeremy Hylton | 2003-04-04 | 1 | -20/+54 |
| | | | | | move_finalizers() moves every object from unreachable to collectable or finalizers, unless the object is deallocated first. | ||||
* | Use fcntl() to put the audio device *back* into blocking mode after | Greg Ward | 2003-04-04 | 1 | -0/+9 |
| | | | | | opening it in non-blocking mode. Both Guido and David Hammerton have reported that this fixes their problems with ossaudiodev -- hooray! | ||||
* | Add get_referrents() helper function. | Jeremy Hylton | 2003-04-03 | 1 | -1/+1 |
| | |||||
* | Add get_referrents() helper function. | Jeremy Hylton | 2003-04-03 | 1 | -1/+32 |
| | |||||
* | Revert Patch #670715: iconv support. | Martin v. Löwis | 2003-04-03 | 8 | -892/+2 |
| | |||||
* | Fix description: u"%c" % 0xffffffff returned a ValueError not a TypeError. | Walter Dörwald | 2003-04-02 | 1 | -1/+1 |
| | |||||
* | Change formatchar(), so that u"%c" % 0xffffffff now raises | Walter Dörwald | 2003-04-02 | 3 | -4/+5 |
| | | | | | an OverflowError instead of a TypeError to be consistent with "%c" % 256. See SF patch #710127. | ||||
* | Fix a comment | Barry Warsaw | 2003-04-02 | 1 | -1/+1 |
| | |||||
* | Added a note about scripting support and the IDE builtin help. | Jack Jansen | 2003-04-01 | 1 | -0/+6 |
| | |||||
* | The minimal scripting example now actually works. | Jack Jansen | 2003-04-01 | 1 | -8/+10 |
| | |||||
* | Sigh... The get() and set() commands are not declared in the aete for | Jack Jansen | 2003-04-01 | 1 | -9/+18 |
| | | | | | | 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. | ||||
* | Regenerated with property names with _Prop_ prepended. | Jack Jansen | 2003-04-01 | 53 | -2860/+1697 |
| | |||||
* | Properties (like enums) are not in the global namespace but only valid | Jack Jansen | 2003-04-01 | 1 | -23/+23 |
| | | | | | | | | | 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. | ||||
* | Turned the suite compiler into an object. | Jack Jansen | 2003-04-01 | 1 | -254/+258 |
| | |||||
* | - All messages are now dependent on the --verbose option. | Jack Jansen | 2003-04-01 | 1 | -47/+85 |
| | | | | | - Added a --dump option that doesn't generate the module but dumps the pretty-printed aete resource(s) on stdout. | ||||
* | init_bsddb(): Added a few symbols that Greg forgot. | Barry Warsaw | 2003-03-31 | 1 | -1/+4 |
| | |||||
* | Remove duplicate test. | Walter Dörwald | 2003-03-31 | 1 | -2/+2 |
| | |||||
* | Fix PyString_Format() so that '%c' % u'a' returns u'a' | Walter Dörwald | 2003-03-31 | 5 | -0/+18 |
| | | | | | | | | instead of raising a TypeError. (From SF patch #710127) Add tests to verify this is fixed. Add various tests for '%c' % int. | ||||
* | - add the "download_url" field to the pre-2.2.3 metadata compatibility note | Fred Drake | 2003-03-31 | 1 | -26/+26 |
| | | | | - fix some markup nits | ||||
* | Fix typo. | Walter Dörwald | 2003-03-31 | 1 | -1/+1 |
| | |||||
* | SF patch #712367, get build working on AIX | Neal Norwitz | 2003-03-31 | 3 | -3/+17 |
| | | | | | | | configure change is necessary to pass "." to makexp_aix so that dynamic modules work setup change gets curses working | ||||
* | Added a File->Generate OSA Suite command. | Jack Jansen | 2003-03-31 | 1 | -0/+5 |
| | |||||
* | Added 1-page introductions to creating GUIs in Python and the OSA | Jack Jansen | 2003-03-31 | 3 | -0/+108 |
| | | | | interface. | ||||
* | Fix symbol in grammar; this should fix some hyperlinking in the HTML | Fred Drake | 2003-03-31 | 1 | -1/+1 |
| | | | | version. | ||||
* | Subclasses of ObjectSpecifier can now be packed and unpacked. This allows | Jack Jansen | 2003-03-31 | 1 | -3/+20 |
| | | | | | | 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. | ||||
* | In TalkTo.send(), check that we have access to the window manager, | Jack Jansen | 2003-03-31 | 1 | -1/+13 |
| | | | | | and initialize the event loop (if not done previously) to work around a bug (IMHO) in MacOSX 10.2. | ||||
* | Lib/plat-mac/lib-scriptpackages/SystemEvents added. | Jack Jansen | 2003-03-31 | 1 | -0/+1 |
| | |||||
* | Regenerated again, now clases are sorted by code, and with synonyms after | Jack Jansen | 2003-03-30 | 29 | -2046/+8742 |
| | | | | the primary name. | ||||
* | Classes have to be sorted by code, not name, and synonyms have to | Jack Jansen | 2003-03-30 | 1 | -2/+19 |
| | | | | | | | be sorted after the main name, otherwise filling of properties and elements messes up. Sorting is always more difficult than expected:-) | ||||
* | SF patch #667548, Add some audio constants by Michael Pruett | Neal Norwitz | 2003-03-30 | 1 | -3/+25 |
| | | | | Also remove a few unused variables. Built on IRIX 6.5. | ||||
* | Get build working with pre-C99 compilers | Neal Norwitz | 2003-03-30 | 1 | -1/+1 |
| | |||||
* | Bump to version 2.5.1 | Barry Warsaw | 2003-03-30 | 1 | -1/+1 |
| | |||||
* | test_whitespace_eater_unicode_2(): Test case for SF bug #710498. | Barry Warsaw | 2003-03-30 | 1 | -0/+9 |
| | |||||
* | __unicode__(): Fix the logic for calculating whether to add a | Barry Warsaw | 2003-03-30 | 1 | -3/+3 |
| | | | | | separating space or not between encoded chunks. Closes SF bug #710498. | ||||
* | SF patch #706338, Fix a few broken links in pydoc by Greg Chapman | Neal Norwitz | 2003-03-30 | 1 | -4/+4 |
| | |||||
* | Patch #650412: Check whether the address of flock and getpagesize | Martin v. Löwis | 2003-03-30 | 4 | -11/+144 |
| | | | | can be taken, and use _SC_PAGE_SIZE if getpagesize is not available. | ||||
* | Patch #672053: Return a result from Py_Main, instead of exiting. | Martin v. Löwis | 2003-03-30 | 1 | -9/+9 |
| | |||||
* | Patch #695250: Suppress COPYRIGHT if site.py is not read. Fixes #672614. | Martin v. Löwis | 2003-03-30 | 1 | -3/+6 |
| | | | | Will backport to 2.2. | ||||
* | Patch #701395: Correct documentation of PyUnicode_Splitlines. | Martin v. Löwis | 2003-03-30 | 1 | -3/+4 |
| |