This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Steven.Winfield
Recipients Steven.Winfield
Date 2013-10-25.17:49:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1382723396.02.0.356788344876.issue19393@psf.upfronthosting.co.za>
In-reply-to
Content
The attached script creates calls symtable.symtable many times on a code snippet that contains a single class with a method called "top", and some other important (to trigger the behaviour) properties:
  * a class variable
  * at least three other methods

The symtable module is reloaded each time, which seems to exacerbate the problem, but it not necessary.

The return value of symtable.symtable is sometimes a SymbolTable object, as expected, and sometimes a symtable.Function object.

Here is some example output from the script:

c:\Python27>python.exe C:\Temp\symtable_weirdness.py
Counter({'SymbolTable': 59, 'Function': 41})

c:\Python33>python.exe C:\Temp\symtable_weirdness.py
Counter({'SymbolTable': 89, 'Function': 11})

The values are consistent between runs, but can be changed by altering PYTHONHASHSEED between runs.
History
Date User Action Args
2013-10-25 17:49:56Steven.Winfieldsetrecipients: + Steven.Winfield
2013-10-25 17:49:56Steven.Winfieldsetmessageid: <1382723396.02.0.356788344876.issue19393@psf.upfronthosting.co.za>
2013-10-25 17:49:55Steven.Winfieldlinkissue19393 messages
2013-10-25 17:49:55Steven.Winfieldcreate