Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Convert a pile of obvious "yes/no" functions to return bool. | Tim Peters | 2002-04-04 | 1 | -3/+3 |
| | |||||
* | Removed old Digital Creations copyright/license notices (with | Guido van Rossum | 2002-04-04 | 4 | -161/+1 |
| | | | | | permission from Paul Everitt). Also removed a few other references to Digital Creations and changed the remaining ones to Zope Corporation. | ||||
* | Add the 'bool' type and its values 'False' and 'True', as described in | Guido van Rossum | 2002-04-03 | 2 | -7/+57 |
| | | | | | | | | | | | | | PEP 285. Everything described in the PEP is here, and there is even some documentation. I had to fix 12 unit tests; all but one of these were printing Boolean outcomes that changed from 0/1 to False/True. (The exception is test_unicode.py, which did a type(x) == type(y) style comparison. I could've fixed that with a single line using issubtype(x, type(y)), but instead chose to be explicit about those places where a bool is expected. Still to do: perhaps more documentation; change standard library modules to return False/True from predicates. | ||||
* | Remove direct manipulation of the module dict. | Fred Drake | 2002-04-03 | 1 | -9/+3 |
| | |||||
* | Fix bugs: | Mark Hammond | 2002-04-03 | 1 | -1/+7 |
| | | | | | | | | | | | | | | | 457466: popenx() argument mangling hangs python 226766: popen('python -c"...."') tends to hang Fixes argument quoting in w9xpopen.exe for Windows 9x. w9xpopen.exe also never attempts to display a MessageBox when not executed interactively. Added test_popen() test. This test currently just executes "python -c ..." as a child process, and checks that the expected arguments were all recieved correctly by the child process. This test succeeds for me on Win9x, win2k and Linux, and I hope it does for other popen supported platforms too :) | ||||
* | Convert more METH_OLDARGS & PyArg_Parse() | Neal Norwitz | 2002-04-02 | 3 | -69/+69 |
| | | | | Please review. | ||||
* | Get rid of more PyArg_Parse & METH_OLDARGS. | Neal Norwitz | 2002-04-02 | 2 | -13/+14 |
| | | | | | PyArg_Parse( "s" ) -> PyString_AsString PyArg_Parse( "t#" ) -> PyString_AsStringAndSize | ||||
* | Reindent. Break long lines. Move comments before the statements. | Martin v. Löwis | 2002-04-01 | 1 | -3482/+3641 |
| | |||||
* | Use the PyModule_Add*() APIs instead of manipulating the module dict | Fred Drake | 2002-04-01 | 5 | -283/+280 |
| | | | | directly. | ||||
* | Remove all but one use of the module dict. | Fred Drake | 2002-04-01 | 1 | -44/+38 |
| | |||||
* | Remove unused variable and call to PyModule_GetDict(). | Fred Drake | 2002-04-01 | 1 | -2/+1 |
| | |||||
* | Switch to using METH_NOARGS where possible. | Fred Drake | 2002-04-01 | 1 | -38/+18 |
| | | | | Convert to use PyModule_*() instead of manipulating the module dict directly. | ||||
* | Remove UNLESS. | Martin v. Löwis | 2002-04-01 | 1 | -152/+152 |
| | |||||
* | Use the PyModule_*() API instead of manipulating the module dictionary | Fred Drake | 2002-04-01 | 2 | -11/+11 |
| | | | | directly. | ||||
* | Get rid of all METH_OLDARGS & PyArg_Parse. | Neal Norwitz | 2002-04-01 | 1 | -43/+35 |
| | | | | | Fix floating point exception if mpz.powm(10, 1, 0) (modulus == 0). Add a test. | ||||
* | mpz_float() only takes one parameter now | Neal Norwitz | 2002-03-31 | 1 | -5/+0 |
| | |||||
* | Get rid of warnings due to changing to METH_NOARGS | Neal Norwitz | 2002-03-31 | 1 | -5/+5 |
| | |||||
* | Convert METH_OLDARGS -> METH_NOARGS: remove args parameter | Neal Norwitz | 2002-03-31 | 1 | -243/+247 |
| | | | | Use METH_OLDARGS explicitly rather than implicitly. | ||||
* | Revert use of METH_OLDARGS (use 0) to support 1.5.2 | Neal Norwitz | 2002-03-31 | 1 | -2/+4 |
| | |||||
* | Convert METH_OLDARGS -> METH_VARARGS: also PyArg_Parse -> PyArg_ParseTuple | Neal Norwitz | 2002-03-31 | 3 | -47/+34 |
| | | | | Please review for correctness. | ||||
* | Remove METH_OLDARGS: | Neal Norwitz | 2002-03-31 | 11 | -164/+85 |
| | | | | | | | Convert METH_OLDARGS -> METH_VARARGS: also PyArg_Parse -> PyArg_ParseTuple Convert METH_OLDARGS -> METH_NOARGS: remove args parameter Please review. All tests pass, but some modules don't have tests. I spot checked various functions to try to make sure nothing broke. | ||||
* | Convert from using METH_OLDARGS to METH_NOARGS. | Neal Norwitz | 2002-03-31 | 3 | -85/+44 |
| | | | | These should be safe. | ||||
* | Fix whitespace | Neal Norwitz | 2002-03-31 | 1 | -2/+1 |
| | |||||
* | Use symbolic METH_VARARGS/METH_OLDARGS instead of 1/0 for ml_flags | Neal Norwitz | 2002-03-31 | 3 | -17/+17 |
| | |||||
* | Add missing typecast. | Neil Schemenauer | 2002-03-29 | 1 | -1/+2 |
| | |||||
* | [Patch #536769] Add -Xcompiler flag for adding arguments and switches for | Andrew M. Kuchling | 2002-03-29 | 1 | -0/+1 |
| | | | | the compiler | ||||
* | Make _PyObject_GC_UnTrack do nothing if WITH_CYCLE_GC is not defined. | Neil Schemenauer | 2002-03-29 | 1 | -0/+2 |
| | |||||
* | Add type cast. | Neil Schemenauer | 2002-03-28 | 1 | -1/+2 |
| | |||||
* | This is Neil's fix for SF bug 535905 (Evil Trashcan and GC interaction). | Guido van Rossum | 2002-03-28 | 1 | -1/+3 |
| | | | | | | | | The fix makes it possible to call PyObject_GC_UnTrack() more than once on the same object, and then move the PyObject_GC_UnTrack() call to *before* the trashcan code is invoked. BUGFIX CANDIDATE! | ||||
* | Add a simple test of the METH_CLASS and METH_STATIC flags for type methods. | Fred Drake | 2002-03-28 | 1 | -0/+28 |
| | |||||
* | Expose C library's gettext. Fixes #516412. | Martin v. Löwis | 2002-03-27 | 1 | -2/+96 |
| | |||||
* | Don't imply XPG4 constants from CODESET presence. Fixes #534153. | Martin v. Löwis | 2002-03-27 | 1 | -1/+4 |
| | | | | 2.2.2 candiate. | ||||
* | Missed change METH_OLDARGS to METH_NOARGS for two aliased functions | Neal Norwitz | 2002-03-26 | 1 | -2/+2 |
| | |||||
* | Remove last occurrance of PyArg_GetInt. It is deprecated, | Neal Norwitz | 2002-03-25 | 1 | -1/+1 |
| | |||||
* | Missed change METH_OLDARGS to METH_NOARGS for two aliased functions | Neal Norwitz | 2002-03-25 | 1 | -2/+2 |
| | |||||
* | Remove many uses of PyArg_NoArgs macro, change METH_OLDARGS to METH_NOARGS. | Neal Norwitz | 2002-03-25 | 8 | -122/+62 |
| | |||||
* | Due to interaction between the MSL C library and the GUSI I/O library I can ↵ | Jack Jansen | 2002-03-25 | 1 | -0/+5 |
| | | | | | | | | get reads from sockets to work consistently either for unbuffered binary files or for buffered binary files, but not for both:-( The workaround is to force socket.makefile() to disable buffering for binary files. Fixes bug 534625. 2.2.1 candidate. | ||||
* | Expose RLIM_INFINITY constant. Closes SF patch 489066. | Neil Schemenauer | 2002-03-24 | 1 | -1/+13 |
| | |||||
* | Add get_history_item, get_current_history_length, and redisplay functions. | Neil Schemenauer | 2002-03-24 | 1 | -2/+61 |
| | | | | Clarify the docstring for get_history_length. Closes SF patch 494066. | ||||
* | Match behavior of the pickle.py module more closely. | Neil Schemenauer | 2002-03-22 | 1 | -0/+5 |
| | |||||
* | Handle os.listdir("") case correctly on Windows. Closes bug 500705. | Neil Schemenauer | 2002-03-22 | 1 | -4/+5 |
| | |||||
* | Use pymalloc for realloc() as well. | Neil Schemenauer | 2002-03-22 | 1 | -2/+2 |
| | |||||
* | Use pymalloc if it's enabled. | Neil Schemenauer | 2002-03-22 | 1 | -4/+4 |
| | |||||
* | Remove compiler warnings on Solaris 8. | Neal Norwitz | 2002-03-20 | 3 | -3/+3 |
| | | | | Can go into 2.2.x, but not necessary. | ||||
* | Remove extraneous #define as per effbot's instructions in: | Neal Norwitz | 2002-03-18 | 1 | -2/+0 |
| | | | | [ 530285 ] redefining SRE_CODE in Modules/sre.h | ||||
* | Include Python.h first. Fixes #530159. | Martin v. Löwis | 2002-03-15 | 1 | -1/+1 |
| | |||||
* | Verify arguments for nl_langinfo. Fixes #528879. | Martin v. Löwis | 2002-03-12 | 1 | -84/+106 |
| | |||||
* | Change the example code to prefer PyModule_Add*() instead of using the | Fred Drake | 2002-03-12 | 2 | -12/+12 |
| | | | | | module dictionary directly. Also, be more careful about not re-initializing globals in the event of re-initialization of a C extension. | ||||
* | Update docstrings to use te attribute names of the new structures returned | Fred Drake | 2002-03-12 | 2 | -4/+7 |
| | | | | | by stat and time functions. This closes SF patch #523271. | ||||
* | Changed C++ comment into standard comment. | Sjoerd Mullender | 2002-03-11 | 1 | -1/+1 |
| |