On Thu, May 22, 2014 at 12:24 AM, Mark H Harris <harrismh...@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 :)
Now, I could of course rename the .py files while still having it at
/1/ on the site, but that's cheating. :)