Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Squashed compiler warnings by adding casts, making sure prototypes are in | Jack Jansen | 2002-12-23 | 2 | -2/+2 |
| | | | | scope and looking at types. | ||||
* | Oops. Roll back that last change. It wasn't ready for release. :-( | Guido van Rossum | 2002-12-23 | 1 | -96/+30 |
| | |||||
* | Add warning for assignment to None, True and False. This is patch | Guido van Rossum | 2002-12-23 | 1 | -30/+96 |
| | | | | 549213 by Jeremy (checking in for him since he's away and busy). | ||||
* | SF # 654960, remove unnecessary static variable | Neal Norwitz | 2002-12-18 | 1 | -9/+3 |
| | | | | | The static variable (implicit) was not necessary. The c_globals can be None or True now. | ||||
* | Fixing bug | Gustavo Niemeyer | 2002-12-16 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | [#448679] Left to right * Python/compile.c (com_dictmaker): Reordered evaluation of dictionaries to follow strict LTR evaluation. * Lib/compiler/pycodegen.py (CodeGenerator.visitDict): Reordered evaluation of dictionaries to follow strict LTR evaluation. * Doc/ref/ref5.tex Documented the general LTR evaluation order idea. * Misc/NEWS Documented change in evaluation order of dictionaries. | ||||
* | Got rid of old (non-carbon-ppc and even cfm68k) file extensions for | Jack Jansen | 2002-12-16 | 1 | -8/+0 |
| | | | | extension modules. | ||||
* | Fixed potential crash: v can be NULL here, so use Py_XDECREF rather than ↵ | Just van Rossum | 2002-12-15 | 1 | -1/+1 |
| | | | | Py_DECREF | ||||
* | Added missing casts. | Jack Jansen | 2002-12-13 | 2 | -4/+4 |
| | |||||
* | Enhance issubclass() and PyObject_IsSubclass() so that a tuple is | Walter Dörwald | 2002-12-12 | 1 | -1/+3 |
| | | | | | | | | | | | supported as the second argument. This has the same meaning as for isinstance(), i.e. issubclass(X, (A, B)) is equivalent to issubclass(X, A) or issubclass(X, B). Compared to isinstance(), this patch does not search the tuple recursively for classes, i.e. any entry in the tuple that is not a class, will result in a TypeError. This closes SF patch #649608. | ||||
* | Constify filenames and scripts. Fixes #651362. | Martin v. Löwis | 2002-12-11 | 4 | -61/+63 |
| | |||||
* | Patch #650415: Avoid redefinition of macros. | Martin v. Löwis | 2002-12-11 | 1 | -0/+12 |
| | |||||
* | Patch #614055: Support OpenVMS. | Martin v. Löwis | 2002-12-06 | 2 | -2/+18 |
| | |||||
* | reformat for PEP-7 style conformance | Andrew MacIntyre | 2002-12-04 | 1 | -121/+132 |
| | |||||
* | typo fix: declaration required for VACPP not EMX+gcc | Andrew MacIntyre | 2002-12-04 | 1 | -1/+1 |
| | |||||
* | Add compile-time errors for unsupported systems. | Martin v. Löwis | 2002-12-02 | 1 | -0/+5 |
| | |||||
* | Slightly improved version of patch #642578: "Expose PyImport_FrozenModules | Just van Rossum | 2002-11-29 | 1 | -0/+147 |
| | | | | | in imp". This adds two functions to the imp module: get_frozenmodules() and set_frozenmodules(). | ||||
* | Patch #632973: Implement _getdefaultlocale for OS X. | Martin v. Löwis | 2002-11-26 | 1 | -5/+16 |
| | |||||
* | Properly compute array size even for --disable-unicode. | Martin v. Löwis | 2002-11-21 | 1 | -1/+1 |
| | |||||
* | Wrap uargs declaration in a #ifdef Py_USING_UNICODE, so that | Walter Dörwald | 2002-11-21 | 1 | -0/+2 |
| | | | | | the --disable-unicode build doesn't complain about an unused variable. | ||||
* | Move three variables that are only used inside an if block into the block, | Walter Dörwald | 2002-11-21 | 1 | -3/+3 |
| | | | | so the --disable-unicode build doesn't complain about unused variables. | ||||
* | Fix PEP 293 related problems with --disable-unicode builds | Walter Dörwald | 2002-11-21 | 2 | -0/+12 |
| | | | | | reported by Michael Hudson in http://mail.python.org/pipermail/python-dev/2002-November/030299.html | ||||
* | Remove _Py_ResetReferences. Fixes bug #529750 "Circular reference makes | Neil Schemenauer | 2002-11-17 | 1 | -4/+0 |
| | | | | | | Py_Init crash". refchain cannot be cleared because objects can live across Py_Finalize() and Py_Initialize() if they are kept alive by circular references. | ||||
* | Make private functions static so we don't pollute the namespace | Neal Norwitz | 2002-11-10 | 1 | -1/+1 |
| | |||||
* | Restore to ANSI C. | Michael W. Hudson | 2002-11-09 | 1 | -2/+2 |
| | |||||
* | This is Richie Hindle's patch: | Michael W. Hudson | 2002-11-08 | 1 | -7/+16 |
| | | | | | | | [ 631276 ] Exceptions raised by line trace function It conflicted with the patches from Armin I just checked it, so I had to so some bits by hand. | ||||
* | Assorted patches from Armin Rigo: | Michael W. Hudson | 2002-11-08 | 2 | -42/+59 |
| | | | | | | | | [ 617309 ] getframe hook (Psyco #1) [ 617311 ] Tiny profiling info (Psyco #2) [ 617312 ] debugger-controlled jumps (Psyco #3) These are forward ports from 2.2.2. | ||||
* | Got rid of the python.rsrc resource file. The error message strings and | Jack Jansen | 2002-11-07 | 1 | -0/+34 |
| | | | | | | | | | | dialogs are now stored in Mac/Lib, and loaded on demand through macresource. Not only does this simplify a MacPython based on Apple's Python, but it also makes Mac error codes come out symbolically when running command line python (if you have Mac/Lib in your path). The resource files are copied from Mac/Resources. The old ones will disappear after the OS9 build procedure has been adjusted. | ||||
* | Handle really big steps in extended slices. | Michael W. Hudson | 2002-11-06 | 1 | -1/+1 |
| | | | | Fixes a test failure on 64 bit platforms (I hope). | ||||
* | Fix SF # 551504, python -v sometimes fails to find init (HPUX) | Neal Norwitz | 2002-11-02 | 1 | -1/+1 |
| | | | | | Joseph Winston recommends removing DYNAMIC_PATH, since it can cause some dynamic libraries to not load on HP-UX 11. | ||||
* | Patch #512981: Update readline input stream on sys.stdin/out change. | Martin v. Löwis | 2002-10-26 | 1 | -3/+5 |
| | |||||
* | Made MacOS.Error a class style exception (at last!). | Jack Jansen | 2002-10-19 | 1 | -1/+1 |
| | |||||
* | If we have a filename and __main__.__file__ hasn't already been set, | Fred Drake | 2002-10-17 | 1 | -1/+11 |
| | | | | | set it. Closes SF issue #624729. | ||||
* | Add os.path.supports_unicode_filenames for all platforms, | Mark Hammond | 2002-10-08 | 1 | -0/+37 |
| | | | | | | sys.getwindowsversion() on Windows (new enahanced Tim-proof <wink> version), and fix test_pep277.py in a few minor ways. Including doc and NEWS entries. | ||||
* | s/_alloca/alloca/g; Windows doesn't need the former, at least not unless | Tim Peters | 2002-10-05 | 1 | -2/+2 |
| | | | | __STDC__ is defined (or something like that ...). | ||||
* | Patch #618347: Work around Solaris 2.6 pthread.h bug. Will backport to 2.2. | Martin v. Löwis | 2002-10-04 | 1 | -2/+2 |
| | |||||
* | Fix [ 616716 ] Bug in PyErr_SetExcFromWindows | Mark Hammond | 2002-10-04 | 1 | -9/+28 |
| | | | | | | Ensure that even if FormatMessage fails we (a) don't crash, and (b) provide something useful. Bugfix candidate. | ||||
* | Fix errors to pep277 checkin identified by Neal Norwitz. | Mark Hammond | 2002-10-04 | 1 | -3/+3 |
| | |||||
* | One last tweak to the tracing machinery: this actually computes what I intended | Michael W. Hudson | 2002-10-03 | 1 | -1/+3 |
| | | | | | | | all along. Before instr_lb tended to be too high. I don't think this actually makes any difference, given what the compiler produces, but it makes me a bit happier. | ||||
* | Clamp code objects' tp_compare result to [-1, 1]. | Michael W. Hudson | 2002-10-03 | 1 | -3/+3 |
| | | | | Bugfix candidate. | ||||
* | Patch 594001: PEP 277 - Unicode file name support for Windows NT. | Mark Hammond | 2002-10-03 | 1 | -10/+82 |
| | |||||
* | Fix for the recursion_level bug Armin Rigo reported in sf | Michael W. Hudson | 2002-10-02 | 1 | -0/+4 |
| | | | | | | | patch #617312, both on the trunk and the 22-maint branch. Also added a test case, and ported the test_trace I wrote for HEAD to 2.2.2 (with all those horrible extra 'line' events ;-). | ||||
* | Add encoding name in LookupError. Fixes #615013. Will backport to 2.2. | Martin v. Löwis | 2002-09-26 | 1 | -2/+2 |
| | |||||
* | Two more cases of switch(PySequence_Size()) without checking for case -1. | Neal Norwitz | 2002-09-18 | 1 | -0/+7 |
| | | | | | | | (Same problem as last checkin for SF bug 610610) Need to clear the error and proceed. Backport candidate | ||||
* | Fix SF bug 610610 (reported by Martijn Pieters, diagnosed by Neal Norwitz). | Guido van Rossum | 2002-09-18 | 1 | -0/+3 |
| | | | | | | | | The switch in Exception__str__ didn't clear the error if PySequence_Size() raised an exception. Added a case -1 which clears the error and falls through to the default case. Definite backport candidate (this dates all the way to Python 2.0). | ||||
* | A slight change to SET_LINENO-less tracing. | Michael W. Hudson | 2002-09-11 | 1 | -5/+18 |
| | | | | | This makes things a touch more like 2.2. Read the comments in Python/ceval.c for more details. | ||||
* | missed this one on the previous multi-file checkin - see | Skip Montanaro | 2002-09-03 | 1 | -2/+0 |
| | | | | http://python.org/sf/602191 | ||||
* | Add a custom __str__ method to KeyError that applies repr() to the | Guido van Rossum | 2002-09-03 | 1 | -2/+40 |
| | | | | | missing key. (Also added a guard to SyntaxError__str__ to prevent calling PyString_Check(NULL).) | ||||
* | Bump default check interval to 100 instructions. Computers are much faster | Skip Montanaro | 2002-09-03 | 1 | -2/+2 |
| | | | | | | than when this interval was first established. Checking too frequently just adds needless overhead because most of the time there is nothing to do and no other threads ready to run. | ||||
* | replace thread state objects' ticker and checkinterval fields with two | Skip Montanaro | 2002-09-03 | 2 | -4/+9 |
| | | | | | | | | | | globals, _Py_Ticker and _Py_CheckInterval. This also implements Jeremy's shortcut in Py_AddPendingCall that zeroes out _Py_Ticker. This allows the test in the main loop to only test a single value. The gory details are at http://python.org/sf/602191 | ||||
* | expose PYTHON_API_VERSION macro as sys.api_version. Closes patch # 601456. | Skip Montanaro | 2002-09-03 | 1 | -0/+3 |
| |