Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #36207 > unrolled thread
| Started by | chaouche yacine <yacinechaouche@yahoo.com> |
|---|---|
| First post | 2013-01-05 12:35 -0800 |
| Last post | 2013-01-06 03:01 -0800 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
__builtins__ in bpython chaouche yacine <yacinechaouche@yahoo.com> - 2013-01-05 12:35 -0800
Re: __builtins__ in bpython alex23 <wuwei23@gmail.com> - 2013-01-06 03:01 -0800
| From | chaouche yacine <yacinechaouche@yahoo.com> |
|---|---|
| Date | 2013-01-05 12:35 -0800 |
| Subject | __builtins__ in bpython |
| Message-ID | <mailman.143.1357418296.2939.python-list@python.org> |
Hi. In the standard pytohon interpreter and in ipython, __builtins__ is a module, but in bpython it's a dictionnary. Was it redefined ?
[toc] | [next] | [standalone]
| From | alex23 <wuwei23@gmail.com> |
|---|---|
| Date | 2013-01-06 03:01 -0800 |
| Message-ID | <f83a011c-29e4-409a-940b-d3ea971f660f@v9g2000pbi.googlegroups.com> |
| In reply to | #36207 |
On Jan 6, 6:35 am, chaouche yacine <yacinechaou...@yahoo.com> wrote: > Hi. In the standard pytohon interpreter and in ipython, __builtins__ is a module, but in bpython it's a dictionnary. Was it redefined ? I'd say it's a result of however bpython works and this: "By default, when in the __main__ module, __builtins__ is the built-in module builtins; when in any other module, __builtins__ is an alias for the dictionary of the builtins module itself. __builtins__ can be set to a user-created dictionary to create a weak form of restricted execution." http://docs.python.org/3/reference/executionmodel.html#naming-and-binding This is a guess, I've never used bpython, being really quite happy with iPython. Your best bet would be to ask the bpython dev or log an issue on its repository: https://bitbucket.org/bobf/bpython/issues
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web