Message304811
> The fix is simple. Replace the faulty sub-expression by
> (co->co_flags & (~PyCF_MASK)) == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE))
I proposed PR 4087 to implement this optimization.
I wouldn't call it a "fix", since the "co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)" check exists since Python 2.7 at least (whereas Python 2.7 also has CO_FUTURE_xxx flags).
> Just a minor performance issue.
I prefer to call it a performance opportunity :-) |
|
Date |
User |
Action |
Args |
2017-10-23 15:44:40 | vstinner | set | recipients:
+ vstinner, anselm.kruis |
2017-10-23 15:44:40 | vstinner | set | messageid: <1508773480.11.0.213398074469.issue31835@psf.upfronthosting.co.za> |
2017-10-23 15:44:40 | vstinner | link | issue31835 messages |
2017-10-23 15:44:40 | vstinner | create | |
|