Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #97822 > unrolled thread

Re: teacher need help!

Started byChris Angelico <rosuav@gmail.com>
First post2015-10-20 10:03 +1100
Last post2015-10-20 10:03 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: teacher need help! Chris Angelico <rosuav@gmail.com> - 2015-10-20 10:03 +1100

#97822 — Re: teacher need help!

FromChris Angelico <rosuav@gmail.com>
Date2015-10-20 10:03 +1100
SubjectRe: teacher need help!
Message-ID<mailman.44.1445295829.878.python-list@python.org>
On Tue, Oct 20, 2015 at 4:42 AM, jmp <jeanmichel@sequans.com> wrote:
> import turtle
>
> print turtle.__file__
>
> may help you find the offending file.
>
> jm

In general, yes. Sadly, that technique doesn't work when the file
attempts to import itself, and then errors out; your driver script
will simply get an ImportError. (That said, though: The ImportError
will include the traceback that gives the file name. But that's no
different from what we already know.)

ChrisA

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web