[Pythonmac-SIG] Extensions for static versus frame
Tony Lownds
tony@lownds.com
Tue, 16 Jul 2002 16:12:14 -0700
>yes, it is. Just and myself had a session of heavy MachoPython
>design last week, and here's what we've come up with. please comment.
Nice!
>The thing that we now call /Applications/Python.app will become
>hidden: it will move into the Python.framework somewhere. It will
>also *not* advertise (in its .plist file) itself as capable of
>running Python scripts. It will be changed a little, mainly
>replacing macmain.c by the standard Modules/main.c with a little mod
>to allow it to look for __rawmain__.py or .pyc, so it can still be
>used for building applets. The tricky AppleEvent code to create
>sys.argv on startup will be re-implemented in Python, and applets
>that need it will get it in their __rawmain__.py (and that's the
>only place it will be used).
What will the __name__ inside __rawmain__.py be? I hope that it will
not be '__main__', so that __rawmain__.py can import the "real"
__main__
>There will be a new program /Applications/Python Launcher.app,
>modelled after Java's Applet Launcher (hmm, maybe it should go into
>Utilities?).
I'd vote for a /Applications/Python folder (consistent with
MacPython, and PythonWin)
/Applications/Python/Python Launcher.app
Will the Python Launcher be buildable from Python's source tree, or
another source tree?
>Python Launcher will get a couple of bells and whistles (modelled
>after how Stuffit Expander works, of all tools:-): if you
>option-drag or option-double-click a script you get a chance to add
>the verbose flag and other flags to Python
These are set by #! line in UNIX; will that line be consulted?
>, or pick a diffferent interpreter.
What does this do?
>Also, if you manually run the launcher you get access to it's
>preferences dialog, where you can set the defaults for these (or
>restore the "factory defaults"), separately for .py and .pyw scripts.
How do you get to an interactive Python interpreter? I mean, click an
icon, and see a window with:
Python 2.3a0 (#1, Jul 15 2002, 08:02:36)
[GCC 2.95.2 19991024 (release)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
>
>Please feel free to rain on my parade and tell us what we missed,
>where we seriously messed up the design or why this idea will never
>fly:-)
Thanks for thinking this through!
-Tony