Skip to content

py: Put default namespace into module __main__. #427

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

pfalcon
Copy link
Contributor

@pfalcon pfalcon commented Apr 4, 2014

That's how CPython has it, in particular, "import main" should work.

That's how CPython has it, in particular, "import __main__" should work.
@pfalcon
Copy link
Contributor Author

pfalcon commented Apr 5, 2014

Ok, this is pretty clean change, so merging it - on critical path to doing test discovery in unittest module.

@pfalcon pfalcon closed this Apr 5, 2014
@pfalcon
Copy link
Contributor Author

pfalcon commented Apr 5, 2014

What's funny here is that rge-sm was broken for me again in master. This patch fixes it. We apparently have some heap trashing, need to run thru valgrind.

@pfalcon
Copy link
Contributor Author

pfalcon commented Apr 5, 2014

19.00000 0.39729 0.56796 0.65985 0.53407 -0.02394
Traceback (most recent call last):
  File "misc/rge-sm.py", line 114, in <module>
  File "misc/rge-sm.py", line 109, in singleTraj
TypeError: 'int' object is not callable

@pfalcon
Copy link
Contributor Author

pfalcon commented Apr 5, 2014

6582a41 fails (proof that it's not my prev commits either) is somebody will want to have a look.

@pfalcon pfalcon deleted the mod__main__ branch April 5, 2014 09:34
@pfalcon
Copy link
Contributor Author

pfalcon commented Apr 5, 2014

@dhylands: It fails in str.format() call if you care ;-)

@dpgeorge
Copy link
Member

dpgeorge commented Apr 5, 2014

Yes, this is a clean change.

@dpgeorge
Copy link
Member

dpgeorge commented Apr 5, 2014

rge-sm.py passes for me on 32- and 64-bit Arch Linux machines.

@pfalcon
Copy link
Contributor Author

pfalcon commented Apr 5, 2014

Then it's random shooting pointer, like I said :-(

tannewt pushed a commit to tannewt/circuitpython that referenced this pull request Dec 5, 2017
micropython#427)

Update info about erasing CIRCUITPY to include flash erasers for non-Express boards.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants