__builtins__ in bpython
Hi. In the standard pytohon interpreter and in ipython, __builtins__ is a module, but in bpython it's a dictionnary. Was it redefined ?
Re: __builtins__ in bpython
On Jan 6, 6:35*am, chaouche yacine <yacinechaou...@yahoo.com> wrote:
> Hi. In the standard pytohon interpreter and in ipython, __builtins__ is amodule, 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
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:
|All times are GMT. The time now is 07:27 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.