summaryrefslogtreecommitdiffstats
path: root/Modules/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Py3k warnings now automatically include -Qwarn for division.Raymond Hettinger2009-02-181-0/+2
|
* be more specific in -3 option helpBenjamin Peterson2009-01-091-1/+1
|
* This reverts r63675 based on the discussion in this thread:Gregory P. Smith2008-06-091-1/+1
| | | | | | | http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread.
* New environment variable PYTHONIOENCODING.Martin v. Löwis2008-06-011-0/+1
|
* Renamed PyString to PyBytesChristian Heimes2008-05-261-1/+1
|
* Implemented PEP 370Christian Heimes2008-05-061-1/+10
|
* Improve -X error message.Georg Brandl2008-04-131-1/+1
|
* Applied patch #2617 from Frank Wierzbicki wit some extras from meChristian Heimes2008-04-121-1/+5
| | | | -J and -X are now reserved for Jython and non-standard arguments (e.g. IronPython). I've added some extra comments to make sure the reservation don't get missed in the future.
* Backport #1442: report exception when startup file cannot be run.Georg Brandl2008-03-291-0/+9
|
* Merged revisions ↵Christian Heimes2008-03-261-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 61750,61752,61754,61756,61760,61763,61768,61772,61775,61805,61809,61812,61819,61917,61920,61930,61933-61934 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/trunk-bytearray ........ r61750 | christian.heimes | 2008-03-22 20:47:44 +0100 (Sat, 22 Mar 2008) | 1 line Copied files from py3k w/o modifications ........ r61752 | christian.heimes | 2008-03-22 20:53:20 +0100 (Sat, 22 Mar 2008) | 7 lines Take One * Added initialization code, warnings, flags etc. to the appropriate places * Added new buffer interface to string type * Modified tests * Modified Makefile.pre.in to compile the new files * Added bytesobject.c to Python.h ........ r61754 | christian.heimes | 2008-03-22 21:22:19 +0100 (Sat, 22 Mar 2008) | 2 lines Disabled bytearray.extend for now since it causes an infinite recursion Fixed serveral unit tests ........ r61756 | christian.heimes | 2008-03-22 21:43:38 +0100 (Sat, 22 Mar 2008) | 5 lines Added PyBytes support to several places: str + bytearray ord(bytearray) bytearray(str, encoding) ........ r61760 | christian.heimes | 2008-03-22 21:56:32 +0100 (Sat, 22 Mar 2008) | 1 line Fixed more unit tests related to type('') is not unicode ........ r61763 | christian.heimes | 2008-03-22 22:20:28 +0100 (Sat, 22 Mar 2008) | 2 lines Fixed more unit tests Fixed bytearray.extend ........ r61768 | christian.heimes | 2008-03-22 22:40:50 +0100 (Sat, 22 Mar 2008) | 1 line Implemented old buffer interface for bytearray ........ r61772 | christian.heimes | 2008-03-22 23:24:52 +0100 (Sat, 22 Mar 2008) | 1 line Added backport of the io module ........ r61775 | christian.heimes | 2008-03-23 03:50:49 +0100 (Sun, 23 Mar 2008) | 1 line Fix str assignement to bytearray. Assignment of a str of size 1 is interpreted as a single byte ........ r61805 | christian.heimes | 2008-03-23 19:33:48 +0100 (Sun, 23 Mar 2008) | 3 lines Fixed more tests Fixed bytearray() comparsion with unicode() Fixed iterator assignment of bytearray ........ r61809 | christian.heimes | 2008-03-23 21:02:21 +0100 (Sun, 23 Mar 2008) | 2 lines str(bytesarray()) now returns the bytes and not the representation of the bytearray object Enabled and fixed more unit tests ........ r61812 | christian.heimes | 2008-03-23 21:53:08 +0100 (Sun, 23 Mar 2008) | 3 lines Clear error PyNumber_AsSsize_t() fails Use CHARMASK for ob_svall access disabled a test with memoryview again ........ r61819 | christian.heimes | 2008-03-23 23:05:57 +0100 (Sun, 23 Mar 2008) | 1 line Untested updates to the PCBuild directory ........ r61917 | christian.heimes | 2008-03-26 00:57:06 +0100 (Wed, 26 Mar 2008) | 1 line The type system of Python 2.6 has subtle differences to 3.0's. I've removed the Py_TPFLAGS_BASETYPE flags from bytearray for now. bytearray can't be subclasses until the issues with bytearray subclasses are fixed. ........ r61920 | christian.heimes | 2008-03-26 01:44:08 +0100 (Wed, 26 Mar 2008) | 2 lines Disabled last failing test I don't understand what the test is testing and how it suppose to work. Ka-Ping, please check it out. ........ r61930 | christian.heimes | 2008-03-26 12:46:18 +0100 (Wed, 26 Mar 2008) | 1 line Re-enabled bytes warning code ........ r61933 | christian.heimes | 2008-03-26 13:20:46 +0100 (Wed, 26 Mar 2008) | 1 line Fixed a bug in the new buffer protocol. The buffer slots weren't copied into a subclass. ........ r61934 | christian.heimes | 2008-03-26 13:25:09 +0100 (Wed, 26 Mar 2008) | 1 line Re-enabled bytearray subclassing - all tests are passing. ........
* Remove all traces of HAVE_STRERROR.Brett Cannon2008-03-181-5/+1
| | | | | The removal of strerror.c led to the function check being removed from configure.in.
* Coverity CID #168Christian Heimes2008-01-181-0/+1
| | | | leaked_storage: Returned without freeing storage "fp"
* patch #1668: clarify envvar docs; rename THREADDEBUG to PYTHONTHREADDEBUG.Georg Brandl2008-01-071-1/+1
|
* Patch #602345 by Neal Norwitz and me: add -B option and ↵Georg Brandl2008-01-071-6/+14
| | | | PYTHONDONTWRITEBYTECODE envvar to skip writing bytecode.
* Backport some main.c cleanup from the py3k branchNick Coghlan2007-11-201-12/+13
|
* Patch #1739468: Directories and zipfiles containing __main__.py are now ↵Nick Coghlan2007-11-181-40/+80
| | | | executable
* Fix Coverity 168: Close the file before returning (exiting).Neal Norwitz2007-10-121-0/+1
|
* Fix bug 1764407 - the -i switch now does the right thing when using the -m ↵Nick Coghlan2007-08-251-5/+4
| | | | switch
* Add -3 option to the interpreter to warn about features that areNeal Norwitz2007-05-231-1/+6
| | | | | | | deprecated and will be changed/removed in Python 3.0. This patch is mostly from Anthony. I tweaked some format and added a little doc.
* Variant of patch #697613: don't exit the interpreter on a SystemExitGeorg Brandl2007-03-071-11/+11
| | | | | | | exception if the -i command line option or PYTHONINSPECT environment variable is given, but break into the interactive interpreter just like on other exceptions or normal program exit. (backport)
* Silence a warning from gcc 4.0.1 by specifying a function's parameter list isBrett Cannon2007-01-051-1/+1
| | | | 'void' instead of just a set of empty parentheses.
* Bug #1566280: Explicitly invoke threading._shutdown from Py_Main,Martin v. Löwis2007-01-041-0/+29
| | | | | to avoid relying on atexit. Will backport to 2.5.
* Rewrite help message to remove some of the parentheticals. (There were a ↵Andrew M. Kuchling2006-09-141-9/+9
| | | | lot of them.)
* Make --help mention that -v can be supplied multiple timesAndrew M. Kuchling2006-09-141-0/+1
|
* Accept long options "--help" and "--version".Georg Brandl2006-07-121-3/+4
|
* Make the -m switch conform to the documentation of sys.path by behaving like ↵Nick Coghlan2006-06-121-2/+3
| | | | the -c switch
* Patch #1492356: Port to Windows CE (patch set 1).Martin v. Löwis2006-05-221-0/+2
|
* spread the extern "C" { } magic pixie dust around. Python itself builds nowAnthony Baxter2006-04-131-0/+9
| | | | | 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.
* Some more changes to make code compile under a C++ compiler.Anthony Baxter2006-04-111-2/+2
|
* Implement PEP 338 which has been marked as accepted by GvRNick Coghlan2006-03-151-42/+37
|
* Try to be a bit more consistent on all platforms:Neal Norwitz2006-03-091-1/+2
| | | | | | | python . python < . both print a message, return non-zero and do not core dump.
* Fix a bunch of imports to use code.h instead of compile.h.Jeremy Hylton2005-10-211-1/+1
| | | | Remove duplicate declarations from compile.h
* SF bug #887946, segfault if redirecting directoryNeal Norwitz2005-10-031-0/+8
| | | | | | | Also provide a warning if a directory is passed on the command line. Add minimal command line test. Will backport.
* SF patch #1035498: -m option to run a module as a scriptRaymond Hettinger2004-10-071-7/+73
| | | | (Contributed by Nick Coghlan.)
* Patch #1011822: Display errno/strerror for inaccessible files.Martin v. Löwis2004-08-191-2/+7
|
* Add pystack definition to Misc/gdbinit with some explanation of its behaviorSkip Montanaro2004-03-011-0/+3
| | | | | and add flag comments to ceval.c and main.c alerting people to the coupling between pystack and the layout of those files.
* Getting rid of support for the ancient Apple MPW compiler.Jack Jansen2003-11-191-7/+0
|
* Patch #794400: Let PYTHONSTARTUP influence the compiler flags.Martin v. Löwis2003-11-181-9/+14
|
* Fix a bunch of typos in documentation, docstrings and comments.Walter Dörwald2003-10-201-1/+1
| | | | (From SF patch #810751)
* Py_Main(): Add a check for the PYTHONINSPECT environment variableBarry Warsaw2003-06-291-0/+9
| | | | | | | | | | 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
* Patch #672053: Return a result from Py_Main, instead of exiting.Martin v. Löwis2003-03-301-9/+9
|
* Patch #695250: Suppress COPYRIGHT if site.py is not read. Fixes #672614.Martin v. Löwis2003-03-301-3/+6
| | | | Will backport to 2.2.
* An #endif was missing in Just's patch. Added.Jack Jansen2003-03-051-0/+1
|
* removing one Mac hack and add another:Just van Rossum2003-03-051-26/+16
| | | | | | | - 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.
* Patch #696645: Remove VMS code with uncertain authorship.Martin v. Löwis2003-03-051-33/+8
|
* Squashed compiler warnings by adding casts, making sure prototypes are inJack Jansen2002-12-231-0/+4
| | | | scope and looking at types.
* Patch #614055: Support OpenVMS.Martin v. Löwis2002-12-061-0/+57
|
* Fix minor whitespace nit, for consistency with Python's C style rules.Fred Drake2002-10-171-1/+1
|
* On Cygwin, put stdin, stderr, and stdout in binary mode when the -uSjoerd Mullender2002-08-091-2/+2
| | | | flag is given (to mimic native Windows).
* Added one call to Py_Main(), for OSX framework builds only, that will get theJack Jansen2002-08-021-1/+17
| | | | | | | | | | | | | 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.