Message1569
| Author |
arigo |
| Recipients |
| Date |
2004年06月27日.11:33:42 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
Logged In: YES
user_id=4771
eval() can set items in the locals, e.g. by using list comprehension. Moreover the ability to exec in custom dicts would be extremely useful too, e.g. to catch definitions while they appear.
If you really want to avoid any performance impact, using PyDict_CheckExact() in all critical parts looks good (do not use PyDict_Check(), it's both slower and not what we want because it prevents subclasses of dicts to override __xxxitem__). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 13:50:45 | admin | link | issue215126 messages |
| 2007年08月23日 13:50:45 | admin | create |
|