Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #80618
| References | <CAPTjJmpVVfPzwrbeornk9Txyfiz+H5MDfHG2nY_9va7RCUEmEw@mail.gmail.com> <CAPTjJmrhz7crC2_x+ZN9sLgPvd8B1Yn8skzMSTBXJ6gSj55TqQ@mail.gmail.com> <CANc-5UybJQu+QgUrL-kS4XUH5iQHHuWJfaqDu-y00PcvszY5PQ@mail.gmail.com> <CAPTjJmrikcja8MbhgwmHvFDdgigQaHwsYo+tLR5q6OLfhPHcJQ@mail.gmail.com> <CANc-5UwzcXC=syQZZw=kuwJEdh8eQxqRb0eOzgkwi8HkSymmKQ@mail.gmail.com> |
|---|---|
| Date | 2014-11-13 05:12 +1100 |
| Subject | Re: __missing__ for the top-level Python script |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.15734.1415815966.18130.python-list@python.org> (permalink) |
On Thu, Nov 13, 2014 at 5:09 AM, Skip Montanaro <skip.montanaro@gmail.com> wrote: > On Wed, Nov 12, 2014 at 12:49 PM, Chris Angelico <rosuav@gmail.com> wrote: >> Interesting data point there - that you actually have it handy and >> choose not to use it. > > And, I believe I wrote it. Can't have a worse recommendation than > that. A cook who doesn't eat his own cooking. :-) I think I disabled > its import sometime in the distant past when it interacted badly with > something else, but for the life of me, I can't remember the details > anymore. It doesn't ideally handle loops, as it'll go back to the top of the loop - that was my first thought. As it has to go and exec stuff all over again, it's entirely possible it'll have other issues. > I will occasionally paste functions from Python source files into the > interactive interpreter. This autoload functionality can be kind of > handy there so you don't have to go back and also grab the imports > from the top of the source file. Yeah, that does help. Of course, it can't handle a from import, but I wouldn't expect anything to catch those. ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: __missing__ for the top-level Python script Chris Angelico <rosuav@gmail.com> - 2014-11-13 05:12 +1100
csiph-web