Opened 16 years ago
Closed 16 years ago
#7339 closed (fixed)
Relying on __del__ being run immediately after del a
Reported by: | Maciej Fijalkowski | Owned by: | nobody |
---|---|---|---|
Component: | Uncategorized | Version: | dev |
Severity: | Keywords: | ||
Cc: | fijall@… | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
A patch for calling gc.collect here and there in tests, not to rely on gc being refcounting.
Attachments (3)
Change History (8)
by , 16 years ago
Attachment: | django.diff added |
---|
comment:1 by , 16 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:2 by , 16 years ago
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
Triage Stage: | Unreviewed → Accepted |
Nope, I need to read more about how del works in other Python implementations -- PyPy needs this to make the test pass. Thanks for setting me straight, fijal.
by , 16 years ago
Attachment: | test_dispatcher_jython_gc_v2.patch added |
---|
patch which also works with jython
comment:3 by , 16 years ago
by , 16 years ago
Attachment: | 7339_test_dispatcher_gc_fix.diff added |
---|
Fixed a mistake I made on the previous patch
comment:4 by , 16 years ago
Cc: | added |
---|
comment:5 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Note:
See TracTickets
for help on using tickets.
You need to read more about how __del__ works in Python. The way it works is by design, and we're not going to engage in GC tricks to try to make it act like it does in other languages.