Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #71859
| References | <mailman.10190.1400680014.18130.python-list@python.org> <537CB71E.5060506@gmail.com> |
|---|---|
| Date | 2014-05-22 00:40 +1000 |
| Subject | Re: All-numeric script names and import |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.10194.1400683267.18130.python-list@python.org> (permalink) |
On Thu, May 22, 2014 at 12:24 AM, Mark H Harris <harrismh777@gmail.com> wrote: > On the other hand, if you open IDLE and then open the 1.py module (yes, > that's a dumb name) and then click run--> run module it will import and > run... assuming 1.py contains some valid python code. Oh, it runs fine as an application, just not importably. > Why must you have a numbered script? > > You're just pulling someone's chain, right? Heh. No, I'm actually finally getting around to rewriting something in Python. It's been called 1 for as long as it's ever existed, having made the jump from a flat file in my personal directory to a web site, and since then from MySQL to PostgreSQL, and finally now I'm getting rid of the last artefact of the old web host by ditching PHP. Yes, I wrote it in PHP because it was hosted on a server that didn't support Python, and when I moved everything onto my own server, I didn't rewrite it. But that's no excuse for changing the name now :) http://rosuav.com/1/ Now, I could of course rename the .py files while still having it at /1/ on the site, but that's cheating. :) ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
All-numeric script names and import Chris Angelico <rosuav@gmail.com> - 2014-05-21 23:46 +1000
Re: All-numeric script names and import Mark H Harris <harrismh777@gmail.com> - 2014-05-21 09:24 -0500
Re: All-numeric script names and import Chris Angelico <rosuav@gmail.com> - 2014-05-22 00:40 +1000
Re: All-numeric script names and import Mark H Harris <harrismh777@gmail.com> - 2014-05-21 09:24 -0500
Re: All-numeric script names and import Rustom Mody <rustompmody@gmail.com> - 2014-05-22 19:08 -0700
Re: All-numeric script names and import Chris Angelico <rosuav@gmail.com> - 2014-05-23 13:26 +1000
Re: All-numeric script names and import Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> - 2014-05-23 10:58 +0200
Re: All-numeric script names and import Chris Angelico <rosuav@gmail.com> - 2014-05-23 19:02 +1000
Re: All-numeric script names and import Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> - 2014-05-23 11:22 +0200
Re: All-numeric script names and import Chris Angelico <rosuav@gmail.com> - 2014-05-23 19:28 +1000
Re: All-numeric script names and import Michael Torrie <torriem@gmail.com> - 2014-05-23 16:52 -0600
csiph-web