Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Chris Herborth writes: | Guido van Rossum | 1999-01-04 | 1 | -38/+4 |
| | | | | Donn Cave tells me the PyImport_BeImageID() function isn't needed anymore. | ||||
* | Add sys.hexversion, which is an integer encoding the version in hexadecimal. | Guido van Rossum | 1999-01-03 | 1 | -0/+2 |
| | | | | | | In other words, hex(sys.hexversion) == 0x010502b2 for Python 1.5.2b2. This is derived from the new variable PY_VERSION_HEX defined in patchlevel.h. (Cute, eh?) | ||||
* | Use PY_VERSION instead of PATCHLEVEL. | Guido van Rossum | 1999-01-03 | 1 | -1/+2 |
| | |||||
* | Call PyInitFrozenExtensions() as requested by Mark Hammond (his patch). | Guido van Rossum | 1999-01-02 | 1 | -0/+4 |
| | |||||
* | Oops, forgot a pair of {}'s. (Greg Couch) | Guido van Rossum | 1998-12-23 | 1 | -1/+2 |
| | |||||
* | Add 'N' format character to Py_BuildValue -- like 'O' but doesn't INCREF. | Guido van Rossum | 1998-12-23 | 1 | -1/+3 |
| | | | | Patch and suggestion by Greg Couch. | ||||
* | Improve comment for PyImport_Import() as suggested by Bill Tutt. | Guido van Rossum | 1998-12-21 | 1 | -1/+4 |
| | |||||
* | Thanks to Chris Herborth, the thread primitives now have proper Py* | Guido van Rossum | 1998-12-21 | 13 | -412/+412 |
| | | | | | names in the source code (they already had those for the linker, through some smart macros; but the source still had the old, un-Py names). | ||||
* | Use PyThreadState_GET() macro. | Guido van Rossum | 1998-12-21 | 2 | -2/+2 |
| | |||||
* | Make current_tstate a global, _PyThreadState_Current. This is to | Guido van Rossum | 1998-12-21 | 1 | -10/+10 |
| | | | | support a macro in pystate.h. | ||||
* | Chris H. writes: | Guido van Rossum | 1998-12-18 | 1 | -1/+1 |
| | | | | | If we're going to put the PyOS_strtol() proto in intobject.h we should include it here or the symbol isn't exported on PowerPC. | ||||
* | Patch by Chris Herborth: | Guido van Rossum | 1998-12-17 | 1 | -0/+4 |
| | | | | have to use a const-correct prototype on BeOS or the compiler gets uppity. | ||||
* | Move the prototype for dump_counts() to before where it is used. | Guido van Rossum | 1998-12-15 | 1 | -4/+4 |
| | | | | (This only applies when COUNT_ALLOCS is defined.) | ||||
* | Remove prototypes for PyOS_strto[u]l -- Chris Herborth. | Guido van Rossum | 1998-12-10 | 1 | -3/+0 |
| | |||||
* | Add more SET_LINENO instructions in long argument lists | Guido van Rossum | 1998-12-10 | 1 | -1/+7 |
| | |||||
* | Adding thread support for BeOS by Chris Herborth. | Guido van Rossum | 1998-12-07 | 1 | -0/+388 |
| | |||||
* | Use PyInt_AS_LONG macro instead of explicit inlining. | Guido van Rossum | 1998-12-04 | 1 | -6/+6 |
| | |||||
* | Need to add default decl of DL_IMPORT, for mymalloc.h | Guido van Rossum | 1998-12-04 | 1 | -0/+5 |
| | |||||
* | Added new builtin standard exception: NotImplementedError (its C | Barry Warsaw | 1998-12-01 | 1 | -0/+2 |
| | | | | counterpart is PyExc_NotImplementedError). | ||||
* | Fix cosmetic bug in delattr docstring discovered by JvR. | Guido van Rossum | 1998-11-23 | 1 | -1/+1 |
| | |||||
* | Whoops! One the "redundant" initializations removed by Vladimir in | Guido van Rossum | 1998-11-23 | 1 | -2/+2 |
| | | | | | the previous patch wasn't -- there was a path through the code that bypassed all initializations. Thanks to Just for reporting the bug! | ||||
* | Remove some redundant initializations -- patch by Vladimir Marangozov. | Guido van Rossum | 1998-11-17 | 1 | -4/+4 |
| | |||||
* | Jim Fulton writes: | Guido van Rossum | 1998-10-22 | 1 | -0/+1 |
| | | | | | | | | """ I had originally not realized that PyEval_GetGlobals did not INCREF it's return value. The fix is to add the INCREF, as shown below. """ | ||||
* | When errno is zero, avoid calling strerror() and use "Error" for the | Guido van Rossum | 1998-10-14 | 1 | -2/+7 |
| | | | | message. | ||||
* | Replace fprintf(stderr, ...) with PySys_WriteStderr(...). | Guido van Rossum | 1998-10-12 | 2 | -23/+23 |
| | |||||
* | Patches for mywrite() by Marc Lemburg: save/restore the error state | Guido van Rossum | 1998-10-12 | 1 | -3/+6 |
| | | | | reliably; check return value of vsprintf(). | ||||
* | Implement new format character 't#'. This is like s#, accepting an | Guido van Rossum | 1998-10-08 | 1 | -0/+25 |
| | | | | | object that implements the buffer interface, but requires a buffer that contains 8-bit character data. Greg Stein. | ||||
* | The previous checkin contained an experiment of Greg Stein's that wasn't | Guido van Rossum | 1998-10-08 | 1 | -1/+1 |
| | | | | meant for checkin, and which broke marshal.loads(). | ||||
* | On Win32, use | Guido van Rossum | 1998-10-08 | 1 | -1/+4 |
| | | | | | LoadLibraryEx(pathname, NULL, LOAD_WITH_ALTERED_SEARCH_PATH) to search dependent DLLs in the directory of the pathname. | ||||
* | Changes to deal with the sigcheck+intrcheck vs. signalmodule controversy. | Guido van Rossum | 1998-10-07 | 1 | -3/+7 |
| | |||||
* | Changes to support other object types besides strings | Guido van Rossum | 1998-10-07 | 3 | -13/+40 |
| | | | | | as the code string of code objects, as long as they support the (readonly) buffer interface. By Greg Stein. | ||||
* | BSDI specific patches, inspired by Nigel Head and otto@mail.olympus.net. | Guido van Rossum | 1998-10-07 | 1 | -1/+22 |
| | | | | | | | | | | | Also (non-BSDI specific): - Change the CHECK_STATUS() macro so it tests for nonzero error codes instead of negative error codes only (this was needed for BSDI, but appears to be correct according to the PTHREADS spec). - use memset() to zero out the allocated lock structure. Again, this was needed for BSDI, but can't hurt elsewhere either. | ||||
* | Support PYTHONOPTIMIZE variable; by Marc Lemburg. | Guido van Rossum | 1998-10-07 | 1 | -0/+2 |
| | |||||
* | Eh, better error message for the previous change. It now says | Guido van Rossum | 1998-10-02 | 1 | -1/+1 |
| | | | | "non-default argument follows default argument". | ||||
* | Treat def f(a, b=1, c): ... as an error (missing default for c) | Guido van Rossum | 1998-10-02 | 1 | -7/+4 |
| | | | | instead of silently supplying a default of None fore c. | ||||
* | Renamed thread.h to pythread.h. | Guido van Rossum | 1998-10-01 | 1 | -15/+15 |
| | | | | (Also removed whitespace after # in some BEOS related cpp directives.) | ||||
* | Renamed thread.h to pythread.h. | Guido van Rossum | 1998-10-01 | 4 | -4/+4 |
| | |||||
* | On second though, NEXITFUNCS should be defined here and not in | Guido van Rossum | 1998-10-01 | 1 | -1/+1 |
| | | | | | pystate.h; pystate.h doesn't use it (I thought I wanted to move the array there but that won't work). | ||||
* | builtin_apply(): Second argument type check is relaxed to allow any sequence. | Barry Warsaw | 1998-10-01 | 1 | -6/+18 |
| | |||||
* | While scalling sys.modules, skip entries that don't have string keys, | Guido van Rossum | 1998-10-01 | 1 | -4/+4 |
| | | | | | to protect us from jokers who put items with non-string keys in sys.modules. Reported by Greg Stein. | ||||
* | In FreeBSD when using ELF, an underscore is needed in front of the | Guido van Rossum | 1998-09-30 | 1 | -1/+1 |
| | | | | function name. (Vladimir Kushnir by way of Thomas Gellekum.) | ||||
* | Remove redundant definition of NEXITFUNCS. | Guido van Rossum | 1998-09-28 | 1 | -1/+1 |
| | | | | (Reported by Jeff Rush.) | ||||
* | Several changes that Python carry on in the face of errors in the | Barry Warsaw | 1998-09-14 | 1 | -26/+61 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | initialization of class exceptions. Specifically: init_class_exc(): This function now returns an integer status of the class exception initialization. No fatal errors in this method now. Also, use PySys_WriteStderr() when writing error messages. When an error occurs in this function, 0 is returned, but the partial creation of the exception classes is not undone (this happens elsewhere). Things that could trigger the fallback: - exceptions.py fails to be imported (due to syntax error, etc.) - one of the exception classes is missing (e.g. due to library version mismatch) - exception class can't be inserted into __builtin__'s dictionary - MemoryError instance can't be pre-allocated - some other PyErr_Occurred newstdexception(): Changed the error message. This is still a fatal error because if the string based exceptions can't be created, we really can't continue. initerrors(): Be sure to xdecref the .exc field, which might be non-NULL if class exceptions init was aborted. _PyBuiltin_Init_2(): If class exception init fails, print a warning message and reinstate the string based exceptions. | ||||
* | Mac-specific mod to enable aliases on import paths. | Guido van Rossum | 1998-09-14 | 2 | -9/+35 |
| | | | | (Jack Jansen and/or Just van Rossum) | ||||
* | Apparently on AIX when using gcc you need to call pthread_init() | Guido van Rossum | 1998-09-10 | 1 | -0/+3 |
| | | | | | (which is not a POSIX threads call!). Reported and confirmed by Brad Howes. | ||||
* | Correct typo in #ifdef: PY_THREAD_D4, should be PY_PTHREAD_D4. | Guido van Rossum | 1998-09-04 | 1 | -1/+1 |
| | | | | Reported by Jonathan Giddy. | ||||
* | Should no longer surround PyOS_Readline() call with | Guido van Rossum | 1998-09-03 | 1 | -4/+0 |
| | | | | | Py_{BEGIN,END}_ALLOW_THREADS macros. Also get rid of the declaration for it (it's now in pythonrun.h). | ||||
* | Add a 'volatile' to the declaration of threadid in get_thread_ident(). | Guido van Rossum | 1998-08-27 | 1 | -1/+1 |
| | | | | | According to Vladimir Marangozov, this is necessary for AIX, where high optimization levels inline this function and then get it wrong :-( | ||||
* | Don't release the interpreter lock around PyParser_ParseFile(). | Guido van Rossum | 1998-08-27 | 1 | -4/+0 |
| | | | | It is needed so that tokenizer.c can use PySys_WriteStderr(). | ||||
* | __file__ used to be always set to the .pyc (or .pyo) file, even if | Guido van Rossum | 1998-08-25 | 1 | -1/+2 |
| | | | | | | | that file in fact did not exist or at least was not used. Change this so that __file__ is *only* set to the .pyc/.pyo file when it actually read the code object from it; otherwise __file__ is set to the .py file. |