Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Last-minute fix for Jim H: don't die after del sys.stdout | Guido van Rossum | 1997-12-31 | 1 | -2/+11 |
| | |||||
* | Plug the most annoying recursive printing problem -- reset '_' to None | Guido van Rossum | 1997-12-26 | 1 | -3/+8 |
| | | | | | before printing and set it to the printed variable *after* printing (and only when printing is successful). | ||||
* | Oops -- '(' is also a legal start character of a new format... | Guido van Rossum | 1997-12-19 | 1 | -0/+1 |
| | |||||
* | Oops! Should've renamed dos_8x3 to dos-8x3 here, too. | Guido van Rossum | 1997-12-17 | 1 | -3/+3 |
| | |||||
* | For base 10, cast unsigned long to long before testing overflow. | Guido van Rossum | 1997-12-15 | 1 | -2/+8 |
| | | | | This prevents 4294967296 from being an acceptable way to spell zero! | ||||
* | Need a cast when comparing type object in isinstance() | Guido van Rossum | 1997-12-10 | 1 | -1/+1 |
| | |||||
* | Add explicit check for correct next character in format at end of | Guido van Rossum | 1997-12-09 | 1 | -0/+7 |
| | | | | | format. This will complain about illegal formats like "O#" instead of ignoring the '#'. | ||||
* | Fix subtle bug in cleanup code in PyErr_NormalizeException(), detected | Guido van Rossum | 1997-12-09 | 1 | -2/+2 |
| | | | | | by Marc Lemburg. There's a path through the code where *val is NULL, but value isn't, and value should be DECREF'ed. | ||||
* | Changed the finalization order again so that the reference count | Guido van Rossum | 1997-12-08 | 1 | -13/+18 |
| | | | | | printing (when Py_DEBUG is defined) happens while there's still a current thread... | ||||
* | Jeff Rush: add definition for S_IFMT for VisualAge C/C++ under OS2. | Guido van Rossum | 1997-12-05 | 1 | -0/+5 |
| | |||||
* | Add the flag RTLD_GLOBAL to the dlopen() options. | Guido van Rossum | 1997-12-02 | 1 | -3/+7 |
| | | | | | | | This exports symbols defined by the loaded extension to other extensions (loaded later). (I'm not quite sure about this but suppose it can't hurt...) | ||||
* | Make stdin unbuffered too, when PYTHONUNBUFFERED is specified. | Guido van Rossum | 1997-12-02 | 1 | -0/+1 |
| | |||||
* | Support type objects in isinstance(). | Guido van Rossum | 1997-12-02 | 1 | -10/+15 |
| | | | | | E.g. isinstance('',types.StringType) will return true now instead of raising a TypeError exception. This is for JPython compatibility. | ||||
* | Apply str() to sys.ps1 or sys.ps2 before using them as a prompt, so | Guido van Rossum | 1997-11-25 | 1 | -16/+14 |
| | | | | | you can assign an object whose str() evaluates to the current directory (or whatever). | ||||
* | os2 patch by Jeff Rush | Guido van Rossum | 1997-11-22 | 3 | -2/+44 |
| | |||||
* | Plug memory leak in Py_BuildValue when using {...} to construct dictionaries. | Guido van Rossum | 1997-11-20 | 1 | -3/+5 |
| | |||||
* | Fix importing of shared libraries from inside packages. | Guido van Rossum | 1997-11-19 | 2 | -3/+26 |
| | | | | | | | | This is a bit of a hack: when the shared library is loaded, the module name is "package.module", but the module calls Py_InitModule*() with just "module" for the name. The shared library loader squirrels away the true name of the module in _Py_PackageContext, and Py_InitModule*() will substitute this (if the name actually matches). | ||||
* | Two changes (here we go again :-( ). | Guido van Rossum | 1997-11-19 | 1 | -35/+3 |
| | | | | | | | | | | 1) The __builtins__ variable in the __main__ module is set to the __builtin__ module instead of its __dict__. 2) Get rid of the SIGHUP and SIGTERM handlers. They can't be made to work reliably when threads may be in use, they are Unix specific, and Python programmers can now program this functionality is a safer way using the signal module. | ||||
* | Give more detailed error message when the argument count isn't right. | Guido van Rossum | 1997-11-19 | 1 | -4/+6 |
| | |||||
* | Fix memory leak in exec statement with code object -- the None returned | Guido van Rossum | 1997-11-11 | 1 | -2/+4 |
| | | | | | | by PyEval_EvalCode() on success was never DECREF'ed. Fix by Bernhard Herzog. | ||||
* | Undo half of the previous change :-( | Guido van Rossum | 1997-11-04 | 1 | -7/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | Setting interp->builtins to the __builtin__ module instead of to its dictionary had the unfortunate side effect of always running in restricted execution mode :-( I will check in a different way of setting __main__.__builtins__ to the __builtin__ module later. Also, there was a typo -- a comment was unfinished, and as a result some finalizations were not being executed. In Bart Simpson style, I Will Not Check In Untested Changes. I Will Not Check In Untested Changes. I Will Not Check In Untested Changes. I Will Not Check In Untested Changes. I Will Not Check In Untested Changes. I Will Not Check In Untested Changes. I Will Not Check In Untested Changes. I Will Not Check In Untested Changes. I Will Not Check In Untested Changes. I Will Not Check In Untested Changes. | ||||
* | Get rid of another reference to _PyImport_Inittab (now a static array) | Guido van Rossum | 1997-11-04 | 1 | -2/+2 |
| | | | | | that should be PyImport_Inittab (a new pointer initialized to point to the array). | ||||
* | The warning about thread still having a frame now only happens in | Guido van Rossum | 1997-11-03 | 1 | -1/+1 |
| | | | | verbose mode. | ||||
* | Two independent changes (alas): | Guido van Rossum | 1997-11-03 | 1 | -19/+16 |
| | | | | | | | | | | | | - The interp->builtins variable (and hence, __main__.__builtins__) is once again initialized to the built-in *module* instead of its dictionary. - The finalization order is once again changed. Signals are finalized relatively early, because (1) it DECREF's the signal handlers, and if a signal handler happens to be a bound method, deleting it could cause problems when there's no current thread around, and (2) we don't want to risk executing signal handlers during finalization. | ||||
* | New policy for package imports: only a directory containing | Guido van Rossum | 1997-10-31 | 1 | -2/+38 |
| | | | | | | __init__.py (or __init__.pyc/.pyo, whichever applies) is considered a package. All other subdirectories are left alone. Should make Konrad Hinsen happy! | ||||
* | Instead of using _PyImport_Inittab[] directly, use the new "official" | Guido van Rossum | 1997-10-31 | 1 | -4/+8 |
| | | | | pointer *PyImport_Inittab which is initialized to _PyImport_Inittab. | ||||
* | Some patches to Lee Busby's fpectl mods that accidentally didn't make it | Guido van Rossum | 1997-10-20 | 1 | -2/+1 |
| | | | | into 1.5a4. | ||||
* | Don't use sscanf(s, "%x", &c) to parse \xX... escapes; hardcode it. | Guido van Rossum | 1997-10-20 | 1 | -3/+10 |
| | |||||
* | Shared libraries didn't quite work under AIX because of the change in | Guido van Rossum | 1997-10-10 | 1 | -0/+11 |
| | | | | | status of the GNU readline interface. Here's a patch, by Vladimir Marangozov. | ||||
* | Moved mac-specific speedup to a different place (Jack) | Guido van Rossum | 1997-10-08 | 1 | -5/+5 |
| | |||||
* | Fixed for WITHOUT_COMPLEX compilation (Jack) | Guido van Rossum | 1997-10-08 | 1 | -1/+2 |
| | |||||
* | New version of PyErr_NewException() that is compatible with -X option. | Guido van Rossum | 1997-10-03 | 1 | -14/+35 |
| | |||||
* | Initialize Py_UseClassExceptionsFlag to 1. | Guido van Rossum | 1997-10-03 | 1 | -1/+1 |
| | |||||
* | Remove unreachable "return 1" at end of ensure_fromlist(). | Guido van Rossum | 1997-10-03 | 1 | -1/+1 |
| | |||||
* | Fix small omission: with all the new code, sys.exit(None) would print | Guido van Rossum | 1997-10-03 | 1 | -0/+2 |
| | | | | "None"; this should be equivalent to sys.exit(0). | ||||
* | Change PyEval_SaveThread() and PyEval_RestoreThread() to always do the | Guido van Rossum | 1997-09-30 | 1 | -12/+9 |
| | | | | | | tstate swapping. Only the acquiring and releasing of the lock is conditional (twice, under ``#ifdef WITH_THREAD'' and inside ``if (interpreter_lock)''). | ||||
* | Fix a bug in this code that made it do the wrong thing when an option | Guido van Rossum | 1997-09-30 | 1 | -1/+4 |
| | | | | was a single '-'. Thanks to Andrew Kuchling. | ||||
* | PyErr_NormalizeException(): If the exception's type is a class and the | Barry Warsaw | 1997-09-30 | 1 | -0/+8 |
| | | | | | instance's class is a subclass of this, then use the instance's class as the exception type. | ||||
* | Get DLL version from a variable. | Guido van Rossum | 1997-09-29 | 1 | -1/+3 |
| | |||||
* | Release interpreter lock around readline call in [raw_]input(). | Guido van Rossum | 1997-09-26 | 1 | -0/+2 |
| | |||||
* | Py_Initialize(): move the call to _PyImport_FixupExtension() to after | Barry Warsaw | 1997-09-18 | 1 | -1/+1 |
| | | | | | the phase 2 init of the __builtin__ module, so that multiple interpreters will get the right exceptions. | ||||
* | initerrors(): Eliminate circular reference which was causing a small | Barry Warsaw | 1997-09-18 | 1 | -3/+3 |
| | | | | | | | | | | | | but annoying memory leak. This was introduced when PyExc_Exception was added; the loop above populating the PyExc_StandardError exception tuple started at index 1 in bltin_exc, but PyExc_Exception was added at index 0, so PyExc_StandardError was getting inserted in itself! How else can a tuple include itself?! Change the loop to start at index 2. This was a *fun* one! :-) | ||||
* | [Py_Exc]NumberError => [Py_Exc]ArithmeticError | Barry Warsaw | 1997-09-16 | 1 | -7/+7 |
| | |||||
* | PyErr_Print(): When printing a class exception, try to dig out the | Barry Warsaw | 1997-09-16 | 1 | -6/+21 |
| | | | | | __module__ string and if found, print <module>.<class>, unless <module> == "exceptions". | ||||
* | New API PyErr_NewException(name, base, dict) to create simple new exceptions. | Guido van Rossum | 1997-09-16 | 1 | -0/+31 |
| | |||||
* | Introduce PyExc_Exception as the conceptual root class for all exceptions. | Guido van Rossum | 1997-09-16 | 1 | -0/+7 |
| | |||||
* | Added docstrings. Not for the obsolete functions though. | Guido van Rossum | 1997-09-09 | 1 | -6/+46 |
| | |||||
* | Deleted find_module_in_package and find_module_in_directory -- they | Guido van Rossum | 1997-09-09 | 1 | -53/+0 |
| | | | | aren't needed and it was a mistake to add them. | ||||
* | Crrected a flow control error that caused the wrong error message when | Guido van Rossum | 1997-09-09 | 1 | -22/+6 |
| | | | | | | load-module() didn't find a built-in or frozen module. Also got rid of is_frozen(), which duplicated the functionality of find_frozen()!=NULL. | ||||
* | Added support for __all__, which should be a list of modules to be | Guido van Rossum | 1997-09-08 | 1 | -3/+16 |
| | | | | imported when the user says "from package import *". |