Python Forum
with statement odd feature
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
with statement odd feature
#2
I'm not sure there's a bug really as it would be quite a serious one that you'd expect to have been noticed by now. In any case, I can't reproduce the problem. I suspect what's happening is that you have some older bytecode around, that was generated when the variable existed and that's what's being run. If you remove the .pyc files and try again, does this still happen?
Reply


Messages In This Thread
with statement odd feature - by Skaperen - May-11-2020, 08:13 PM
RE: with statement odd feature - by ndc85430 - May-12-2020, 04:51 AM
RE: with statement odd feature - by buran - May-12-2020, 05:03 AM
RE: with statement odd feature - by Skaperen - May-12-2020, 11:43 PM
RE: with statement odd feature - by buran - May-13-2020, 04:19 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020