[issue4273] cycle created by profile.run

2008-12-17 Thread darrenr
darrenr python-roun...@dranalli.com added the comment: I think we still need to prevent collectable cycles in our Python code. Here's the situation: We've got a process that creates many Python objects, and it needs to be responsive, it's not good for it to block on one operation for more than

[issue4273] cycle created by profile.run

2008-12-04 Thread darrenr
darrenr [EMAIL PROTECTED] added the comment: We've gotten into the habit of writing manual destructors to remove references like the one you wrote. I think explicit destruction is a useful paradigm when resource allocation is involved and it's important to manage the allocation's lifetime

[issue4273] cycle created by profile.run

2008-12-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Closing issue as Not a bug. (but we can continue the discussion here...) -- resolution: - works for me status: open - closed ___ Python tracker [EMAIL PROTECTED]

[issue4273] cycle created by profile.run

2008-12-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: But the garbage collector was invented for this very purpose: to break cycles! Take the following example which create a cycle for every instance of the class (the profile module has similar code): class C: def __init__(self):

[issue4273] cycle created by profile.run

2008-12-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Where is the problem, if these reference cycles are properly broken by the garbage collector *unless* you tell it not to? -- nosy: +amaury.forgeotdarc ___ Python tracker [EMAIL PROTECTED]

[issue4273] cycle created by profile.run

2008-12-02 Thread darrenr
darrenr [EMAIL PROTECTED] added the comment: I work at a development house that has decided to tell gc to keep all cycles, in order to prevent any cycles from being created at all. It's analogous to the policy of keeping a C++ build warning-free. ___ Python

[issue4273] cycle created by profile.run

2008-11-07 Thread Winfried Plappert
Winfried Plappert [EMAIL PROTECTED] added the comment: I tested profile_cycle.txt on both Python 2.5.2 and Python 2.6. The cycle you are showing for release 2.4.1 cannot be seen on both releases. Why dont't you try and upgrade to Python 2.6? -- nosy: +wplappert

[issue4273] cycle created by profile.run

2008-11-07 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Let's mark this as out of date then. -- nosy: +benjamin.peterson resolution: - out of date status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4273

[issue4273] cycle created by profile.run

2008-11-07 Thread darrenr
darrenr [EMAIL PROTECTED] added the comment: Issue also occurs in 2.6. Note that it only shows up if gc is set to save all cycles. -- versions: +Python 2.6 Added file: http://bugs.python.org/file11961/profile_cycle_26.txt ___ Python tracker [EMAIL

[issue4273] cycle created by profile.run

2008-11-07 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- nosy: -benjamin.peterson resolution: out of date - status: closed - open ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4273 ___

[issue4273] cycle created by profile.run

2008-11-06 Thread darrenr
New submission from darrenr [EMAIL PROTECTED]: The profile module creates a reference cycle. See attached session. -- components: Library (Lib) files: profile_cycle.txt messages: 75582 nosy: darrenr severity: normal status: open title: cycle created by profile.run type: resource usage

[issue4273] cycle created by profile.run

2008-11-06 Thread darrenr
darrenr [EMAIL PROTECTED] added the comment: The profile module creates a reference cycle. See attached session. Note: cycle can be broken by deleting reference to 'dispatcher' on profile.Profile() instance. ___ Python tracker [EMAIL PROTECTED]