summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* The MacPython introductory help is now called MacPython Help, and theJack Jansen2003-03-164-25/+41
| | | | optional full documentation Python Documentation.
* - Don't ask for bring-to-front when quitting through an appleevent.Jack Jansen2003-03-161-6/+4
| | | | - Changed checkbox labels as suggested by Kevin Ollivier.
* Lots of textual changes suggested by Matthew Moelter.Jack Jansen2003-03-161-13/+13
|
* Eliminate data dependency in predict macro.Raymond Hettinger2003-03-161-2/+8
| | | | | | | | Added two predictions: GET_ITER --> FOR_ITER FOR_ITER --> STORE_FAST or UNPACK_SEQUENCE Improves timings on pybench and timeit.py. Pystone results are neutral.
* Fix comment and whitespace.Raymond Hettinger2003-03-161-3/+4
|
* Introduced macros for a simple opcode prediction protocol.Raymond Hettinger2003-03-161-6/+35
| | | | | | | | | | | | | | | | | | | Applied to common cases: COMPARE_OP is often followed by a JUMP_IF. JUMP_IF is usually followed by POP_TOP. Shows improved timings on PyStone, PyBench, and specific tests using timeit.py: python timeit.py -s "x=1" "if x==1: pass" python timeit.py -s "x=1" "if x==2: pass" python timeit.py -s "x=1" "if x: pass" python timeit.py -s "x=100" "while x!=1: x-=1" Potential future candidates: GET_ITER predicts FOR_ITER FOR_ITER predicts STORE_FAST or UNPACK_SEQUENCE Also, applied missing goto fast_next_opcode to DUP_TOPX.
* Change the default number of repetitions to 3, both in the Timer classGuido van Rossum2003-03-151-12/+21
| | | | | | | | | (from 10) and in main() (from 1). Add a -v option that shows the raw times. Repeating it cranks up the display precision. Always use the "best of N" form of output.
* If time.tzset doesn't exist, don't test it.Guido van Rossum2003-03-151-0/+3
|
* - New function time.tzset() provides access to the C library tzet()Guido van Rossum2003-03-147-76/+336
| | | | function, if supported. (SF patch #675422, by Stuart Bishop.)
* Implement some recommendations from Raymond H:Guido van Rossum2003-03-141-10/+48
| | | | | | | | | | - Make all local variables in the template start with an underscore, to prevent name conflicts with the timed code. - Added a method to print a traceback that shows source lines from the expanded template. - Use that method in main().
* Accept commas in unquoted attribute values.Fred Drake2003-03-144-2/+10
| | | | This closes SF patch #669683.
* SF patch #701907: More use of fast_next_opcodeRaymond Hettinger2003-03-141-11/+11
| | | | | | | | My previous patches should have used fast_next_opcode in a few places instead of continue. Also, applied one PyInt_AS_LONG macro in a place where the type had already been checked.
* Take out my (long since disabled) POSIX signal mask handling code.Michael W. Hudson2003-03-135-289/+6
| | | | | I'm not going to have the time or energy to get this working x-platform -- anyone who does is welcome to the code!
* Move setting of ioready 'wait' earlier in call chain, toKurt B. Kaiser2003-03-122-8/+24
| | | | rpc.SocketIO.main() and asyncreturn(). Improve comment.
* Filter out the depracation warning for macfs.Jack Jansen2003-03-121-0/+2
|
* SF bug #699237: Tutorial uses omitted slice indices before explaining themRaymond Hettinger2003-03-121-11/+11
| | | | Moved up the explanation of slice default arguments.
* SF bug #699934: Obscure error messageRaymond Hettinger2003-03-122-4/+11
| | | | Clarify error message for mro conflicts.
* Update the package version numberBarry Warsaw2003-03-121-2/+2
|
* test_whitespace_eater_unicode(): Make this test Python 2.1 compatible.Barry Warsaw2003-03-121-1/+4
|
* Python 2.1 doesn't have True and FalseBarry Warsaw2003-03-121-0/+3
|
* Add a simple Apple Help book to the framework.Jack Jansen2003-03-111-5/+14
|
* Adding MacPython online help. Only the basics are installed, with aJack Jansen2003-03-1121-0/+493
| | | | | | placeholder for the full documentation (pointing to the online docs and explaining you can also install them locally to make them searchable, etc).
* M rpc.pyKurt B. Kaiser2003-03-112-4/+4
| | | | | | M run.py 1. Clarify that rpc.SocketIO._getresponse() currently blocks on socket. 2. Improve exception handling in subprocess when GUI terminates abruptly.
* This file was terribly outdated. The example is still silly (and won'tJack Jansen2003-03-111-65/+28
| | | | work), but at least the rest of the text is okay now.
* Allow unicode pathnames where FSRefs are expected. Fixes 696253.Jack Jansen2003-03-113-4/+15
|
* Fix spelling.Raymond Hettinger2003-03-111-10/+10
|
* Open with O_NONBLOCK to avoid hanging on open().Greg Ward2003-03-111-1/+5
|
* Add 'audio' resource.Guido van Rossum2003-03-111-1/+5
| | | | | | | ALERT! A month ago or so I made test_ossaudiodev.py require the 'audio' resource, but I didn't make the necessary changes to regrtest.py. This means that *nobody* has been testing the oss module all that time!
* Patch by Andrew Straw: use urllib2 so proxie access works.Jack Jansen2003-03-111-7/+3
|
* Adjust tests for no newline appending to MIMEText.__init__()'s _textBarry Warsaw2003-03-111-2/+0
| | | | argument.
* beta 1Barry Warsaw2003-03-111-1/+1
|
* Adjust tests for no newline appending to MIMEText.__init__()'s _textBarry Warsaw2003-03-111-11/+7
| | | | argument.
* __init__(): Don't add a newline to _text if it doesn't already end inBarry Warsaw2003-03-111-4/+1
| | | | one. Possibly controversial.
* For email 2.5b1, we no longer add a trailing newline toBarry Warsaw2003-03-111-2/+1
| | | | | MIMEText.__init__()'s _text argument if it doesn't already end in a newline. This may be controversial.
* body_line_iterator(): Accept optional decode argument, pass through toBarry Warsaw2003-03-112-6/+12
| | | | Message.get_payload().
* body_line_iterator() now takes a decode argument.Barry Warsaw2003-03-111-1/+3
|
* get_payload(): Teach this about various uunencodedBarry Warsaw2003-03-111-10/+21
| | | | Content-Transfer-Encodings
* test_get_decoded_uu_payload(): A new test forBarry Warsaw2003-03-111-0/+11
| | | | Content-Transfer-Encoding: x-uuencode
* M PyShell.pyKurt B. Kaiser2003-03-102-1/+6
| | | | | M rpc.py Improve exception handing if peer process has terminated.
* A interruptmodule.cKurt B. Kaiser2003-03-102-1/+51
| | | | | | M setup.py Implements an interrupt extension module which allows a subthread to raise an interrupt in the main thread.
* specialsre, escapesre: In SF bug #663369, Matthew Woodcraft points outBarry Warsaw2003-03-101-2/+2
| | | | that backslashes must be escaped in character sets.
* test_escape_backslashes(): A test for SF bug #663369 by Matthew Woodcraft.Barry Warsaw2003-03-101-0/+8
|
* _bdecode(): Remove redundant check.Barry Warsaw2003-03-101-2/+0
|
* Fix base classBarry Warsaw2003-03-101-1/+1
|
* Use ndiffAssertEqual in a couple of places for better error reporting.Barry Warsaw2003-03-101-3/+6
|
* Describe what happens when decode=True and the payload has bogusBarry Warsaw2003-03-101-3/+4
| | | | base64 data.
* get_payload(): If we get a low-level binascii.Error when base64Barry Warsaw2003-03-101-5/+12
| | | | decoding the payload, just return it as-is.
* test_broken_base64_payload(): Test for crash in low-level binasciiBarry Warsaw2003-03-101-0/+8
| | | | module when decoding a message with broken base64.
* Patch #700839: Fix bugs in the plural handling.Martin v. Löwis2003-03-101-8/+17
|
* [Patch #649762] Fix for asynchat endless loopAndrew M. Kuchling2003-03-101-1/+1
| | | | | | When the null string is used as the terminator, it used to be the same as None, meaning "collect all the data". In the current code, however, it falls into an endless loop; this change reverts to the old behavior.