feature request: configure __name__
Bug #326620 reported by
qmax
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Released
|
Wishlist
|
Andreas Roehler |
Bug Description
While evaluating buffer, it may be not appropriative to run tests or whatever is intended to do when __name__ == __main__
It would be convenient to have an option to change value of the __name__
Changed in python-mode: | |
assignee: | nobody → Andreas Roehler (a-roehler) |
Changed in python-mode: | |
status: | New → Confirmed |
Changed in python-mode: | |
milestone: | none → 6.0 |
milestone: | 6.0 → none |
milestone: | none → 6.1 |
Changed in python-mode: | |
status: | Opinion → New |
importance: | Undecided → Medium |
Changed in python-mode: | |
importance: | Medium → Wishlist |
Changed in python-mode: | |
milestone: | 6.1.1 → 6.1.2 |
Changed in python-mode: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi,
__name__ is set by python itself.
Don't consider it an python-mode task to interfere with python's internals.
OTOH might consider your request as for an python-test-mode, which does an import, not sure.
Andreas