summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* --with(out)-thread is deprecated according to configure --helpNeal Norwitz2002-09-051-1/+1
|
* SF # 555779, import user doesn't work with CGIsNeal Norwitz2002-09-052-2/+6
|
* Micro-optimization for list_contains. Factored double if testRaymond Hettinger2002-09-051-7/+6
| | | | out of the loop.
* Micro-optimization for list_contains. Factored double if testRaymond Hettinger2002-09-051-8/+7
| | | | out of the loop.
* M PyShell.pyKurt B. Kaiser2002-09-053-57/+55
| | | | | | | | | | | | | | | | | | | | | | | | M RemoteDebugger.py M ScriptBinding.py Restart the execution server with a clean environment and execute the active module from scratch upon activation of Run/F5. Add functionality to PyShell.py to restart the execution server in a new subprocess. The server makes a connection to the Idle client which sends a block of code to be executed. Modify ScriptBinding.py to restart the subprocess upon Run/F5, assuming that an execution is not currently in progress. Remove Import Module functionality, not required now that the code is executed in a clean environment. If the Debugger is active, also restart the subprocess side of the split debugger. Add functionality to RemoteDebugger.py to support this. At this time breakpoints will be lost in the subprocess if Run/F5 is activated. A subsequent checkin of PyShell.py will implement reloading of the breakpoints into the subprocess debugger. I'm keeping this separate as the design may change.
* smptlib did not handle empty addresses.Raymond Hettinger2002-09-051-3/+3
| | | | | | | | The problem was that it expected rfc822.parseaddr() to return None upon a parse failure. The actual, documented return value for a parse failure is (None, None). Closes SF bug 602029.
* Fix typoRaymond Hettinger2002-09-041-1/+1
|
* Change the unicode.translate docstring to document thatWalter Dörwald2002-09-042-2/+5
| | | | | | | | | | Unicode strings (with arbitrary length) are allowed as entries in the unicode.translate mapping. Add a test case for multicharacter replacements. (Multicharacter replacements were enabled by the PEP 293 patch)
* Fix typoRaymond Hettinger2002-09-041-1/+1
|
* In doc strings, use 'k in D' rather than D.has_key(k).Guido van Rossum2002-09-041-2/+2
|
* added a bit about the change to the thread tickerSkip Montanaro2002-09-031-0/+9
|
* Delete the %c test from test_date_time() untill Brett Cannon has timeGuido van Rossum2002-09-031-2/+2
| | | | | | to fix it. (It fails when the day of the month is a 1-digit number, because %c produces space+digit there, while strptime seems to expect zero+digit somehow.)
* Move code for reading chunked responses in helper function,Jeremy Hylton2002-09-031-45/+52
| | | | along with some small changes (e.g. use of +=).
* missed this one on the previous multi-file checkin - seeSkip Montanaro2002-09-031-2/+0
| | | | http://python.org/sf/602191
* Add a custom __str__ method to KeyError that applies repr() to theGuido van Rossum2002-09-032-3/+41
| | | | | 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 fasterSkip Montanaro2002-09-031-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 twoSkip Montanaro2002-09-035-10/+15
| | | | | | | | | | 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
* SF bug [ 600488 ] Robustness tweak to httplib.pyJeremy Hylton2002-09-031-3/+1
| | | | | If the transfer-encoding is unknown, ignore it. Suggested by Tom Emerson.
* testConnectTimeout(): set the timeout to a smaller value; 0.02Guido van Rossum2002-09-031-1/+1
| | | | sometimes wasn't short enough.
* Update the module doc comment.Guido van Rossum2002-09-031-1/+3
|
* (Most of) SF patch 601369 (Christos Georgiou): obmalloc,structmodule:Guido van Rossum2002-09-031-27/+54
| | | | | | | 64bit, big endian (issue 2 only). This adds a bunch of memcpy calls via a temporary variable to avoid alignment errors. That's needed for some platforms.
* Fix for SF bug 601077 by Zack Weinberg.Guido van Rossum2002-09-031-5/+12
| | | | | | | | The new execvpe code would sometimes do the wrong thing when a non-executable file existed earlier in the path and an executable file of the same name existed later in the path. This patch restores the proper behavior (which is to execute the second file). When only a non-executable file exists, the correct error is still reported.
* Removed reliance on gcc/C99 extension.Tim Peters2002-09-031-1/+3
|
* Check whether a string resize is necessary at the endWalter Dörwald2002-09-032-4/+12
| | | | | | | | | of PyString_DecodeEscape(). This prevents a call to _PyString_Resize() for the empty string, which would result in a PyErr_BadInternalCall(), because the empty string has more than one reference. This closes SF bug http://www.python.org/sf/603937
* expose PYTHON_API_VERSION macro as sys.api_version. Closes patch # 601456.Skip Montanaro2002-09-033-0/+13
|
* Ignore encoding declarations inside strings. Fixes #603509.Martin v. Löwis2002-09-033-2/+18
|
* Add reminder about PEP293Andrew M. Kuchling2002-09-031-0/+14
|
* (Re)Apply Sourceforge Python patch 520483, Sourceforge Idlefork patchKurt B. Kaiser2002-09-021-1/+1
| | | | | | | | | | | | | | | | 521908 (again) to MAIN The patch applied by Steven was inadvertently reverted during the transition to GRPC. Python 2.3a0 (#3, May 8 2002, 23:37:01) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "copyright", "credits" or "license" for more information. GRPC IDLE Fork 0.8.2 >>> print u'\xbfQu\xe9 pas\xf3?' ¿Qué pasó? Modified Files: OutputWindow.py
* Check string for NULL before using it to format the error message.Walter Dörwald2002-09-021-3/+6
| | | | (Spotted by Neal Norwitz)
* Removed bogus PyUnicodeTranslateError_GetEncoding, asWalter Dörwald2002-09-022-6/+0
| | | | | UnicodeTranslateError doesn't have an encoding attribute. (Spotted by Neal Norwitz)
* Limit the length of attribute names in exception messagesWalter Dörwald2002-09-021-3/+3
| | | | to prevent buffer overflows (spotted by Neal Norwitz).
* Minor change for symmetry with PyXML: PyDoc_STR should not includeFred Drake2002-09-021-1/+1
| | | | | | | | | the "safety" parentheses since some older compilers refuse to compile the module then, claiming that static initializers are non-constant. This doesn't actually make any difference for Python, since these definitions are not used when compiling with a version of Python that already defines the PyDoc_* macros.
* PEP 293 implemention (from SF patch http://www.python.org/sf/432401)Walter Dörwald2002-09-0212-556/+2929
|
* Generate pythonw.sh on the fly.Jack Jansen2002-09-021-5/+7
| | | | Use the build python for as many things as possible.
* Pass -x badsyntax to compileall.Jack Jansen2002-09-021-4/+4
| | | | Tweaks to make builds work for non-standard dstroot.
* _structure(): Use .get_content_type()Barry Warsaw2002-09-011-1/+1
|
* SF bug 601775 - some int results that should be bool.Guido van Rossum2002-09-012-2/+3
|
* Added comparison functions to dict proxies.Raymond Hettinger2002-08-311-2/+14
| | | | | Now all non-mutating dict methods are in the proxy also. Inspired by SF bug #602232,
* Because MWH changed the bytecode again, moved the magic number *back*Guido van Rossum2002-08-311-1/+6
| | | | | to 62011. This should get the snake-farm to throw away its old .pyc files, amongst others.
* Implemented the Help menu. The Python manual can be viewed (if installed)Jack Jansen2002-08-311-0/+102
| | | | | | | | and the selection can be looked up, and so can the Carbon manual. From the help menu you can also get to the online documentation, the Python website and the MacPython page. Untested in MacPython-OS9.
* If there's an environment variable PYTHONIDEPATH it points to the IDEJack Jansen2002-08-311-1/+4
| | | | folder. This allows running the IDE from the source tree on OSX.
* MenuID's are signed.Jack Jansen2002-08-311-0/+2
|
* Typecode for AHTOCType was wrong. Fixed.Jack Jansen2002-08-302-2/+2
|
* Initialize self._helpmenu earlier, so we can use gethelpmenu() whileJack Jansen2002-08-301-1/+1
| | | | building the user menus.
* Fix for Jaguar: use ln for installing symlinks, install no longer works.Jack Jansen2002-08-301-2/+2
| | | | Fix for sh: use : in stead of an empty then clause in an if.
* Further SET_LINENO reomval fixes. See comments in patch #587933.Michael W. Hudson2002-08-307-55/+144
| | | | | | | | | | Use a slightly different strategy to determine when not to call the line trace function. This removes the need for the RETURN_NONE opcode, so that's gone again. Update docs and comments to match. Thanks to Neal and Armin! Also add a test suite. This should have come with the original patch...
* On Jaguar the default mode for files in the installed product is 444 (or 555)Jack Jansen2002-08-301-0/+1
| | | | | in stead of 644 (755). This makes a subsequent install fail. Changed the INSTALL_MODE_FLAG to fix this.
* Added support for the help menu. Application.gethelpmenu() will returnJack Jansen2002-08-291-0/+35
| | | | | | | it. Also fixed menu IDs to be signed in do_menudispatch. this is an incompatible change, but I don't think it'll hurt anyone.
* Revived the Carbon.Help module, but implementing the MacHelp API in steadJack Jansen2002-08-296-269/+152
| | | | | of the defunct Balloons API. Help tags are TBD, but at least this gives us access to the help menu.
* SF #561244: micro optimizations, builtins cannot be NULL, so use Py_INCREFNeal Norwitz2002-08-291-1/+1
|