Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove call to nonexisting function (relic from Python 2.x) under #ifdef ↵ | Eli Bendersky | 2011-01-14 | 1 | -1/+0 |
| | | | | __INSURE__. Issue 9844 | ||||
* | Issue #10841: set binary mode on files; the parser translates newlines | Victor Stinner | 2011-01-07 | 1 | -3/+6 |
| | | | | | | On Windows, set the binary mode on stdin, stdout, stderr and all io.FileIO objects (to not translate newlines, \r\n <=> \n). The Python parser translates newlines (\r\n => \n). | ||||
* | Add sys.flags.quiet attribute for the new -q option, as noted missing by ↵ | Georg Brandl | 2010-12-28 | 1 | -3/+2 |
| | | | | Eric in #1772833. | ||||
* | #1772833: add -q command line option. | Georg Brandl | 2010-12-04 | 1 | -3/+10 |
| | |||||
* | Remove redundant includes of headers that are already included by Python.h. | Georg Brandl | 2010-11-30 | 1 | -1/+0 |
| | |||||
* | PyUnicode_EncodeFS() raises an exception if _Py_wchar2char() fails | Victor Stinner | 2010-11-08 | 1 | -1/+1 |
| | | | | | | * Add error_pos optional argument to _Py_wchar2char() * PyUnicode_EncodeFS() raises a UnicodeEncodeError or MemoryError if _Py_wchar2char() fails | ||||
* | Issue #10089: Add support for arbitrary -X options on the command-line. | Antoine Pitrou | 2010-10-21 | 1 | -3/+6 |
| | | | | They can be retrieved through a new attribute `sys._xoptions`. | ||||
* | run_file(): encode the filename with PyUnicode_EncodeFSDefault() instead of | Victor Stinner | 2010-10-17 | 1 | -2/+2 |
| | | | | PyUnicode_AsUTF8String() | ||||
* | Add an optional size argument to _Py_char2wchar() | Victor Stinner | 2010-10-16 | 1 | -2/+4 |
| | | | | | | _Py_char2wchar() callers usually need the result size in characters. Since it's trivial to compute it in _Py_char2wchar() (O(1) whereas wcslen() is O(n)), add an option to get it. | ||||
* | Py_Main() uses _Py_wchar2char() to encode the filename in error messages | Victor Stinner | 2010-10-14 | 1 | -11/+11 |
| | |||||
* | Issue #9992: Remove PYTHONFSENCODING environment variable. | Victor Stinner | 2010-10-13 | 1 | -3/+0 |
| | |||||
* | Create fileutils.c/.h | Victor Stinner | 2010-10-07 | 1 | -208/+0 |
| | | | | | | | * _Py_fopen() and _Py_stat() come from Python/import.c * (_Py)_wrealpath() comes from Python/sysmodule.c * _Py_char2wchar(), _Py_wchar2char() and _Py_wfopen() come from Modules/main.c * (_Py)_wstat(), (_Py)_wgetcwd(), _Py_wreadlink() come from Modules/getpath.c | ||||
* | Rewrite RunMainFromImporter() | Victor Stinner | 2010-10-06 | 1 | -25/+35 |
| | | | | | | | | | * fix argv0 reference counter if PyList_SetItem() fails * don't use complex if conditions, but a simple indentation and "goto error" * simplify error handling (remove Py_XDECREF(importer) from the error label) * don't set sys_path to NULL (it's useless, sys_path is a borrowed reference and sys_path is not a static variable) * try to write only one instruction per line for better readability | ||||
* | Isse #8589: Decode PYTHONWARNINGS from utf-8 on Mac OS X | Victor Stinner | 2010-09-12 | 1 | -2/+6 |
| | | | | Instead of the locale encoding. | ||||
* | Issue #8589: surrogateescape error handler is not available at startup | Victor Stinner | 2010-09-10 | 1 | -6/+11 |
| | | | | | Py_Main() uses _Py_wchar2char() + PyUnicode_FromWideChar() instead of PyUnicode_DecodeFSDefault(), because the PyCodec machinery is not ready yet. | ||||
* | PYTHONFSENCODING is not available on Windows or Mac OS X | Victor Stinner | 2010-08-19 | 1 | -7/+9 |
| | |||||
* | Improve error message if the command is not decodable | Victor Stinner | 2010-08-18 | 1 | -0/+1 |
| | |||||
* | Issue #8622: Add PYTHONFSENCODING environment variable to override the | Victor Stinner | 2010-08-18 | 1 | -0/+1 |
| | | | | | | filesystem encoding. initfsencoding() displays also a better error message if get_codeset() failed. | ||||
* | Issue #8202: Set sys.argv[0] to -m rather than -c while searching for the ↵ | Nick Coghlan | 2010-08-17 | 1 | -3/+2 |
| | | | | module to execute. Also updates all the cmd_line_script tests to validate the setting of sys.path[0] and the current working directory | ||||
* | Create _Py_wchar2char() function, reverse of _Py_char2wchar() | Victor Stinner | 2010-08-13 | 1 | -7/+87 |
| | | | | | * Use _Py_wchar2char() in _wstat() and _Py_wfopen() * Document _Py_char2wchar() | ||||
* | Reimplement addbuilddir() in C inside getpath.c, so as to execute it | Antoine Pitrou | 2010-08-13 | 1 | -5/+7 |
| | | | | | at interpreter startup before importing any non-builtin modules. Should fix #9589. | ||||
* | Issue #9425: Create run_file() subfunction | Victor Stinner | 2010-08-07 | 1 | -24/+36 |
| | | | | | | * Call Py_MakePendingCalls() before converting the filename from wchar_t* to char* * Use PyUnicode_AsUTF8String() instead of _PyUnicode_AsString() | ||||
* | Issue #9425: Create run_command() subfunction | Victor Stinner | 2010-08-07 | 1 | -15/+23 |
| | | | | Use PyUnicode_AsUTF8String() instead of _PyUnicode_AsString() | ||||
* | Issue #8589: Decode PYTHONWARNINGS environment variable with the file system | Victor Stinner | 2010-05-19 | 1 | -4/+5 |
| | | | | | encoding and surrogateespace error handler instead of the locale encoding to be consistent with os.environ. Add PySys_AddWarnOptionUnicode() function. | ||||
* | Issue #6697: Fix a crash if code of "python -c code" contains surrogates | Victor Stinner | 2010-05-17 | 1 | -4/+8 |
| | |||||
* | Recorded merge of revisions 81029 via svnmerge from | Antoine Pitrou | 2010-05-09 | 1 | -610/+610 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........ | ||||
* | Move _Py_char2wchar from python.c to main.c. | Ronald Oussoren | 2010-04-18 | 1 | -0/+104 |
| | | | | | | | This fixes issue #8441: python.c is not included in the framework while main.c is and without this patch you get a link error when building Python.framework on OSX. | ||||
* | strings from _Py_char2wchar need PyMem_Free | Philip Jenvey | 2010-04-14 | 1 | -1/+1 |
| | |||||
* | #7301: decode $PYTHONWARNINGS in the same way as argv, test non-ascii values | Philip Jenvey | 2010-04-14 | 1 | -13/+35 |
| | |||||
* | Merged revisions 79936 via svnmerge from | Benjamin Peterson | 2010-04-11 | 1 | -13/+18 |
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r79936 | philip.jenvey | 2010-04-10 15:27:15 -0500 (Sat, 10 Apr 2010) | 3 lines fix PYTHONWARNINGS handling to not modify the original env value and improve its tests ........ | ||||
* | woops these strings aren't kept around, free them | Philip Jenvey | 2010-04-07 | 1 | -0/+1 |
| | |||||
* | Merged revisions 79878-79880 via svnmerge from | Philip Jenvey | 2010-04-07 | 1 | -0/+19 |
| | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r79878 | philip.jenvey | 2010-04-06 16:24:45 -0700 (Tue, 06 Apr 2010) | 4 lines #7301: add the environment variable $PYTHONWARNINGS to supplement the -W command line option patch from Brian Curtin ........ r79879 | benjamin.peterson | 2010-04-06 16:32:27 -0700 (Tue, 06 Apr 2010) | 1 line tell people to update python.man, too ........ r79880 | philip.jenvey | 2010-04-06 16:38:57 -0700 (Tue, 06 Apr 2010) | 1 line document new PYTHONWARNINGS env var ........ | ||||
* | Merged revisions 78826 via svnmerge from | Victor Stinner | 2010-03-12 | 1 | -4/+10 |
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78826 | victor.stinner | 2010-03-10 23:30:19 +0100 (mer., 10 mars 2010) | 5 lines Issue #3137: Don't ignore errors at startup, especially a keyboard interrupt (SIGINT). If an error occurs while importing the site module, the error is printed and Python exits. Initialize the GIL before importing the site module. ........ | ||||
* | Merged revisions 75570 via svnmerge from | Antoine Pitrou | 2009-10-20 | 1 | -29/+0 |
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r75570 | antoine.pitrou | 2009-10-20 23:29:37 +0200 (mar., 20 oct. 2009) | 6 lines Issue #1722344: threading._shutdown() is now called in Py_Finalize(), which fixes the problem of some exceptions being thrown at shutdown when the interpreter is killed. Patch by Adam Olsen. ........ | ||||
* | Merged revisions 74051-74052 via svnmerge from | Alexandre Vassalotti | 2009-07-17 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74051 | alexandre.vassalotti | 2009-07-17 03:54:23 -0400 (Fri, 17 Jul 2009) | 2 lines Initialize variables in PyCurses_getsyx() to avoid compiler warnings. ........ r74052 | alexandre.vassalotti | 2009-07-17 04:09:04 -0400 (Fri, 17 Jul 2009) | 3 lines Fix GCC warning about fprintf used without a string literal and without format arguments. ........ | ||||
* | This fixes issue5143 and includes a test. | Ronald Oussoren | 2009-02-12 | 1 | -3/+16 |
| | | | | | Issue5143 notes that getpath.c and main.c pass a 'char*' where a 'wchar_t*' is expected on OSX. | ||||
* | Issue #4705: Fix the -u ("unbuffered binary stdout and stderr") command-line | Antoine Pitrou | 2009-01-09 | 1 | -4/+3 |
| | | | | | | flag to work properly. Furthermore, when specifying -u, the text stdout and stderr streams have line-by-line buffering enabled (the default being to buffer arbitrary chunks of data). Patch by Victor Stinner, test by me. | ||||
* | #4747: on Windows, starting a module with a non-ascii filename would print a ↵ | Amaury Forgeot d'Arc | 2009-01-01 | 1 | -4/+7 |
| | | | | | | | | | | useless "SyntaxError: None" when the script contains a "# coding:" declaration. The Python API expects char* to be utf-8 encoded. wcstombs should be avoided here. Reviewed by Benjamin. Will backport to 3.0 | ||||
* | #3705: Command-line arguments were not correctly decoded when the | Amaury Forgeot d'Arc | 2008-11-11 | 1 | -21/+19 |
| | | | | | | | | | terminal does not use UTF8. Now the code propagates the unicode string as far as possible, and avoids the conversion to char* which implicitely uses utf-8. Reviewed by Benjamin. | ||||
* | #3626: On cygwin, starting "python z" would not display any error message: | Amaury Forgeot d'Arc | 2008-10-30 | 1 | -2/+11 |
| | | | | printf("%ls") fails if the wide string is 1 char long :-( | ||||
* | Revert r33661, which broke all buildbots. | Amaury Forgeot d'Arc | 2008-09-09 | 1 | -19/+21 |
| | |||||
* | #3705: Fix crash when given a non-ascii value on the command line for the ↵ | Amaury Forgeot d'Arc | 2008-09-09 | 1 | -21/+19 |
| | | | | | | | | "-c" and "-m" parameters Second part, for Windows. Reviewed by Antoine Pitrou | ||||
* | Issue #3705: py3k aborts if "-c" or "-m" is given a non-ascii value. | Antoine Pitrou | 2008-09-06 | 1 | -19/+31 |
| | | | | Reviewed by Benjamin Peterson. | ||||
* | Fixed wording of python --help text. | Christian Heimes | 2008-09-03 | 1 | -2/+2 |
| | | | | The -b option was still using the old name 'buffer' instead of 'bytearray'. | ||||
* | Remove meaning of -ttt, but still accept -t option on cmdline for compatibility. | Georg Brandl | 2008-06-04 | 1 | -2/+1 |
| | |||||
* | Revert r63934 -- it was mixing two patches. | Georg Brandl | 2008-06-04 | 1 | -1/+2 |
| | |||||
* | Remove meaning of -ttt, but still accept -t option on cmdline for compatibility. | Georg Brandl | 2008-06-04 | 1 | -2/+1 |
| | |||||
* | Forward-port PYTHONIOENCODING. | Martin v. Löwis | 2008-06-02 | 1 | -0/+1 |
| | |||||
* | Merged revisions 62774-62775,62785,62787-62788 via svnmerge from | Christian Heimes | 2008-05-06 | 1 | -1/+10 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r62774 | georg.brandl | 2008-05-06 19:11:42 +0200 (Tue, 06 May 2008) | 2 lines #2773: fix description of 'g' and 'G' formatting spec. ........ r62775 | georg.brandl | 2008-05-06 19:20:54 +0200 (Tue, 06 May 2008) | 2 lines > != (!<). ........ r62785 | benjamin.peterson | 2008-05-07 00:18:11 +0200 (Wed, 07 May 2008) | 2 lines Fix logic error in Python/_warnings.c and add a test to verify ........ r62787 | benjamin.peterson | 2008-05-07 00:31:52 +0200 (Wed, 07 May 2008) | 2 lines Make the Python implementation of warnings compatible with the C implementation regarding non-callable showwarning ........ r62788 | christian.heimes | 2008-05-07 00:41:46 +0200 (Wed, 07 May 2008) | 1 line Implemented PEP 370 ........ | ||||
* | Merged revisions ↵ | Neal Norwitz | 2008-04-15 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 61440-61441,61443,61445-61448,61451-61452,61455-61457,61459-61464,61466-61467,61469-61470,61476-61477,61479,61481-61482,61485,61487,61490,61493-61494,61497,61499-61502,61505-61506,61508,61511-61514,61519,61521-61522,61530-61531,61533-61537,61541-61555,61557-61558,61561-61562,61566-61569,61572-61574,61578-61579,61583-61584,61588-61589,61592,61594,61598-61601,61603-61604,61607-61612,61617,61619-61620,61624,61626,61628-61630,61635-61638,61640-61643,61645,61648,61653-61655,61659-61662,61664,61666,61668-61671,61673,61675,61679-61680,61682,61685-61686,61689-61695,61697-61699,61701-61703,61706,61710,61713,61717,61723,61726-61730,61736,61738,61740,61742,61745-61752,61754-61760,61762-61764,61768,61770-61772,61774-61775,61784-61787,61789-61792,61794-61795,61797-61806,61808-61809,61811-61812,61814-61819,61824,61826-61833,61835-61840,61843-61845,61848,61850,61854-61862,61865-61866,61868,61872-61873,61876-61877,61883-61888,61890-61891,61893-61899,61901-61903,61905-61912,61914,61917,61920-61921,61927,61930,61932-61934,61939,61941-61942,61944-61951,61955,61960-61963,61980,61982-61983,61991,61994-61996,62001-62003,62008-62010,62016-62017,62022,62024,62027,62031-62034,62041,62045-62046,62055-62058,62060-62066,62068-62074,62076-62079,62081-62083,62086-62089,62092-62094,62098,62101,62104,62106-62109,62115-62122,62124-62125,62128,62130,62132,62134-62135,62137,62139-62140,62144,62146,62151,62155,62157,62162-62166,62171-62172,62175-62176,62178,62181-62186,62188-62192,62196,62200-62203,62206,62211-62213,62215-62218,62222,62224-62226,62228,62232,62236,62240-62245,62248,62250-62254,62256-62258,62262,62264-62265,62267-62270,62272-62276,62280-62288,62291-62292,62299-62301,62307,62312,62316-62318,62322-62331,62333-62337,62339-62344,62346-62348 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r62323 | brett.cannon | 2008-04-13 10:09:43 -0700 (Sun, 13 Apr 2008) | 3 lines Add an explicit check for output in a test to try to diagnose a failure on Windows. ........ r62324 | brett.cannon | 2008-04-13 10:41:31 -0700 (Sun, 13 Apr 2008) | 3 lines Fix spliting on colons on Windows machines with a file path by limiting the number of splits. ........ r62329 | benjamin.peterson | 2008-04-13 13:35:56 -0700 (Sun, 13 Apr 2008) | 2 lines #2627 Let it be known what pgen generates ........ r62330 | benjamin.peterson | 2008-04-13 13:40:03 -0700 (Sun, 13 Apr 2008) | 2 lines Added an ignore file for Bazaar #2510 ........ r62331 | georg.brandl | 2008-04-13 13:50:29 -0700 (Sun, 13 Apr 2008) | 2 lines Improve -X error message. ........ r62334 | andrew.kuchling | 2008-04-13 15:39:12 -0700 (Sun, 13 Apr 2008) | 1 line Add example ........ r62340 | amaury.forgeotdarc | 2008-04-14 12:55:40 -0700 (Mon, 14 Apr 2008) | 2 lines Update project files for all Windows supported compilers ........ r62341 | amaury.forgeotdarc | 2008-04-14 13:07:48 -0700 (Mon, 14 Apr 2008) | 6 lines Correct a refleak found by "regrtest.py -R:: test_structmembers" Some other minor updates in _warnings.c: - make a function static - rename a shadowing local variable ........ r62347 | andrew.kuchling | 2008-04-14 19:24:15 -0700 (Mon, 14 Apr 2008) | 1 line Various items; begin writing the SSL section ........ r62348 | neal.norwitz | 2008-04-14 20:46:21 -0700 (Mon, 14 Apr 2008) | 1 line Prevent namespace pollution, add static for internal functions ........ |