Neal Norwitz
8a2bffc235
Backport 42932:
...
Try to be a bit more consistent on all platforms:
python .
python < .
both print a message, return non-zero and do not core dump.
This hopefully fixes the failure on Solaris.
2006-03-14 06:47:07 +00:00
Neal Norwitz
c2b7c59267
Backport:
...
SF bug #887946 , segfault if redirecting directory
Also provide a warning if a directory is passed on the command line.
Add minimal command line test.
2005-10-03 01:03:46 +00:00
Raymond Hettinger
db29e0fe8c
SF patch #1035498 : -m option to run a module as a script
...
(Contributed by Nick Coghlan.)
2004-10-07 06:46:25 +00:00
Martin v. Löwis
4d4dfb7a2b
Patch #1011822 : Display errno/strerror for inaccessible files.
2004-08-19 11:07:49 +00:00
Skip Montanaro
786ea6bc23
Add pystack definition to Misc/gdbinit with some explanation of its behavior
...
and add flag comments to ceval.c and main.c alerting people to the coupling
between pystack and the layout of those files.
2004-03-01 15:44:05 +00:00
Jack Jansen
fb2765666f
Getting rid of support for the ancient Apple MPW compiler.
2003-11-19 15:24:47 +00:00
Martin v. Löwis
6caea370ac
Patch #794400 : Let PYTHONSTARTUP influence the compiler flags.
2003-11-18 19:46:25 +00:00
Walter Dörwald
f0dfc7ac5c
Fix a bunch of typos in documentation, docstrings and comments.
...
(From SF patch #810751 )
2003-10-20 14:01:56 +00:00
Barry Warsaw
d86dcd3554
Py_Main(): Add a check for the PYTHONINSPECT environment variable
...
after running the script so that a program could do something like:
os.environ['PYTHONINSPECT'] = 1
to programmatically enter a prompt at the end.
(After a patch by Skip Montanaro w/ proposal by Troy Melhase
2003-06-29 17:07:06 +00:00
Martin v. Löwis
852ba7eb2a
Patch #672053 : Return a result from Py_Main, instead of exiting.
2003-03-30 17:09:58 +00:00
Martin v. Löwis
e98922fb80
Patch #695250 : Suppress COPYRIGHT if site.py is not read. Fixes #672614 .
...
Will backport to 2.2.
2003-03-30 17:00:39 +00:00
Jack Jansen
fbd861bbd3
An #endif was missing in Just's patch. Added.
2003-03-05 16:00:15 +00:00
Just van Rossum
2ac79ef9e3
removing one Mac hack and add another:
...
- The applet logic has been replaced to bundlebuilder's bootstrap script
- Due to Apple being extremely string about argv[0], we need a way to
specify the actual executable name for use with sys.executable. See
the comment embedded in the code.
2003-03-05 15:46:54 +00:00
Martin v. Löwis
7a924e6eb2
Patch #696645 : Remove VMS code with uncertain authorship.
2003-03-05 14:15:21 +00:00
Jack Jansen
0a116f3a29
Squashed compiler warnings by adding casts, making sure prototypes are in
...
scope and looking at types.
2002-12-23 21:03:36 +00:00
Martin v. Löwis
79acb9edfa
Patch #614055 : Support OpenVMS.
2002-12-06 12:48:53 +00:00
Fred Drake
5134a54df9
Fix minor whitespace nit, for consistency with Python's C style rules.
2002-10-17 20:37:50 +00:00
Sjoerd Mullender
9cf424b04b
On Cygwin, put stdin, stderr, and stdout in binary mode when the -u
...
flag is given (to mimic native Windows).
2002-08-09 13:35:18 +00:00
Jack Jansen
21ed16acbe
Added one call to Py_Main(), for OSX framework builds only, that will get the
...
actual script to run in case we are running from an applet. If we are indeed
running an applet we skip the normal option processing leaving it all to the
applet code.
This allows us to get use the normal python binary in the Python.app bundle,
giving us all the normal command line options through PythonLauncher while
still allowing Python.app to be used as the template for building applets.
Consequently, pythonforbundle is gone, and Mac/Python/macmain.c isn't used
on OSX anymore.
2002-08-02 14:11:24 +00:00
Mark Hammond
fe51c6d66e
Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype
...
for Py_Main().
Thanks to Kalle Svensson and Skip Montanaro for the patches.
2002-08-02 02:27:13 +00:00
Neal Norwitz
ce233b462d
Fix last checkin, can't use " inside a string
2002-07-28 13:53:05 +00:00
Martin v. Löwis
611a7101ca
Patch #552812 : Better description in "python -h" for -u.
2002-07-28 10:34:08 +00:00
Andrew MacIntyre
7bf6833e17
OS/2 EMX port changes (Modules part of patch #450267 ):
...
Modules/
_hotshot.c
dbmmodule.c
fcntlmodule.c
main.c
pwdmodule.c
readline.c
selectmodule.c
signalmodule.c
termios.c
timemodule.c
unicodedata.c
2002-03-03 02:59:16 +00:00
Marc-André Lemburg
aeff6687b5
Remove mentioning of -U option in "python -h" output.
2002-02-11 18:46:47 +00:00
Martin v. Löwis
cdc4451222
Include <unistd.h> in Python.h. Fixes #500924 .
2002-01-12 11:05:12 +00:00