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 cheryl.sabella
Recipients cheryl.sabella, serhiy.storchaka, terry.reedy
Date 2018-02-25.18:30:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1519583416.86.0.467229070634.issue32880@psf.upfronthosting.co.za>
In-reply-to
Content
Looking at the creation of the instances of pyparse.PyParse() and hyperparser.HyperParser(), I was a little surprised that they (the instances) are local variables to the methods and aren't instance variables.  Since they are called fairly often, wouldn't it be more efficient to use an instance variable (for example self.hp in calltips instead of hp) and update the attributes when something like open_calltips() is executed?  Maybe the overhead of creating a class is neglible compared to the storage of not destroying it every time?
History
Date User Action Args
2018-02-25 18:30:16cheryl.sabellasetrecipients: + cheryl.sabella, terry.reedy, serhiy.storchaka
2018-02-25 18:30:16cheryl.sabellasetmessageid: <1519583416.86.0.467229070634.issue32880@psf.upfronthosting.co.za>
2018-02-25 18:30:16cheryl.sabellalinkissue32880 messages
2018-02-25 18:30:16cheryl.sabellacreate