Anthony Baxter
ac6bd46d5c
spread the extern "C" { } magic pixie dust around. Python itself builds now
...
using a C++ compiler. Still lots and lots of errors in the modules built by
setup.py, and a bunch of warnings from g++ in the core.
2006-04-13 02:06:09 +00:00
Anthony Baxter
64182fe0b3
Some more changes to make code compile under a C++ compiler.
2006-04-11 12:14:09 +00:00
Nick Coghlan
e2ebb2d7f7
Implement PEP 338 which has been marked as accepted by GvR
2006-03-15 11:00:26 +00:00
Neal Norwitz
72c2c062d7
Try to be a bit more consistent on all platforms:
...
python .
python < .
both print a message, return non-zero and do not core dump.
2006-03-09 05:58:11 +00:00
Jeremy Hylton
ec97a28b60
Fix a bunch of imports to use code.h instead of compile.h.
...
Remove duplicate declarations from compile.h
2005-10-21 14:58:06 +00:00
Neal Norwitz
11bd119226
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.
Will backport.
2005-10-03 00:54:56 +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