Python name lookups

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zhu_dave
    New Member
    • Sep 2005
    • 6

    #1

    Python name lookups

    Hello All,

    As far as I understand, Python deals with a lot of string objects, i.e. it looks up all names. Is there a way to find out how many name lookup operations take place in a Python program? Is it the name lookup operation or hash operation that degrades performance? What function does Python use for name lookup operations? Is it the lookdict function in Objects/dictobject.c?

    Thank you for your help!
Working...