On Wed, Aug 29, 2012 at 9:37 AM, Jacob Kaplan-Moss <ja...@jacobian.org>wrote:

> This looks like some sort of error in your environment; I can't reproduce
> it::
>
>     $ ./manage.py shell
>     In [1]: import decimal
>
>     In [2]: class F(object):
>        ...:     d = decimal.Decimal('0')
>        ...:
>
>     In [3]:
>
>     $ ipython
>
>     In [1]: import decimal
>
>     In [2] >>> class F(object):
>        ...:     d = decimal.Decimal('0')
>        ...:
>
>     In [3]:
>
> Jacob
>
> On Wed, Aug 29, 2012 at 9:58 AM, Yo-Yo Ma <baxterstock...@gmail.com>
> wrote:
> > The following gist demonstrates a strange phenomenon, which occurs when I
> > use ``python manage.py shell``, but not when I use ``ipython`` alone.
> >
> > https://gist.github.com/f8c2fd97647de90d915a
> >
> > I'm not certain whether this is a known issue, or whether it's even a
> Django
> > bug, but certainly nothing of the sort occurs in iPython when used alone.
> > This occurs with ANY name. I first noticed it when I tried to create a
> form,
> > and there was a name error on ``forms`` on the line of my first field
> > declaration.
> >
> > IPython 0.12.1
> > Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34)
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django developers" group.
> > To view this discussion on the web visit
> > https://groups.google.com/d/msg/django-developers/-/0IjXTJb6WFYJ.
> > To post to this group, send email to django-developers@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-developers+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> > http://groups.google.com/group/django-developers?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers" group.
> To post to this group, send email to django-developers@googlegroups.com.
> To unsubscribe from this group, send email to
> django-developers+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-developers?hl=en.
>
>
I was able to reproduce this, no idea what the cause is though:
http://bpaste.net/show/Fyi0eK1ILaLKRPqnMc8M/

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to