Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | New private API functions _PyFloat_{Pack,Unpack}(4,8}. This is a | Tim Peters | 2003-03-20 | 4 | -446/+382 |
| | | | | | refactoring to get all the duplicates of this delicate code out of the cPickle and struct modules. | ||||
* | SF bug 705836: struct.pack of floats in non-native endian order | Tim Peters | 2003-03-20 | 4 | -18/+115 |
| | | | | | | | | | | | | | | pack_float, pack_double, save_float: All the routines for creating IEEE-format packed representations of floats and doubles simply ignored that rounding can (in rare cases) propagate out of a long string of 1 bits. At worst, the end-off carry can (by mistake) interfere with the exponent value, and then unpacking yields a result wrong by a factor of 2. In less severe cases, it can end up losing more low-order bits than intended, or fail to catch overflow *caused* by rounding. Bugfix candidate, but I already backported this to 2.2. In 2.3, this code remains in severe need of refactoring. | ||||
* | - apply SF patch #700798: fixes and cleanups for descriptor info | Fred Drake | 2003-03-20 | 1 | -13/+13 |
| | | | | - use a TeX "tie" to prevent word-wrapping in "section x.y"-like text | ||||
* | add descriptions of {get,set}defaulttimeout. | Skip Montanaro | 2003-03-20 | 1 | -0/+14 |
| | |||||
* | - explain what a UNC path is in the makedirs() description, since | Fred Drake | 2003-03-20 | 1 | -8/+6 |
| | | | | | | they're actually mentioned there - remove some extraneous paragraph separations - \versionadded --> \versionchanged in one place | ||||
* | Skip the ioctl test if we can't open /dev/tty. This happens on | Neal Norwitz | 2003-03-20 | 1 | -0/+6 |
| | | | | | Solaris (and probably other Unixes) when run without a terminal (eg, from cron or at). | ||||
* | GetCreatorAndType and SetCreatorAndType have been undeprecated. Spotted by | Jack Jansen | 2003-03-19 | 1 | -2/+2 |
| | | | | Just. | ||||
* | Fixed SF bug #663074. The codec system was using global static | Gustavo Niemeyer | 2003-03-19 | 5 | -92/+80 |
| | | | | | | | | | variables to store internal data. As a result, any atempts to use the unicode system with multiple active interpreters, or successive interpreter executions, would fail. Now that information is stored into members of the PyInterpreterState structure. | ||||
* | replace obsolete 'exceptions' implicit by 'warnings' | Just van Rossum | 2003-03-18 | 1 | -1/+1 |
| | |||||
* | Fix SF bug #697556, test_posix fails: getlogin | Neal Norwitz | 2003-03-18 | 1 | -6/+0 |
| | | | | getlogin() can fail for too many reasons, so remove the test | ||||
* | _encode_chunks(): Throw out empty chunks. | Barry Warsaw | 2003-03-17 | 1 | -0/+2 |
| | |||||
* | test_long_lines_with_different_header(): Another test from Jason. | Barry Warsaw | 2003-03-17 | 1 | -0/+16 |
| | |||||
* | Renamed PyObject_GenericGetIter to PyObject_SelfIter | Raymond Hettinger | 2003-03-17 | 13 | -25/+25 |
| | | | | | | to more accurately describe what the function does. Suggested by Thomas Wouters. | ||||
* | test_getaddresses_nasty(): A test for mimelib SF bug # 697641. | Barry Warsaw | 2003-03-17 | 1 | -0/+10 |
| | |||||
* | getaddrlist(): Make sure this consumes all the data, and if there is | Barry Warsaw | 2003-03-17 | 1 | -2/+2 |
| | | | | | | | no address there (perhaps because of invalid characters, it appends ('', '') to the result set. Closes mimelib SF bug # 697641. | ||||
* | Test for UnicodeError instead of ImportError to determine whether | Martin v. Löwis | 2003-03-17 | 1 | -1/+1 |
| | | | | the test file name can be encoded. | ||||
* | Get rid of Mac.pth: plat-mac is now added through the normal mechanism. | Jack Jansen | 2003-03-17 | 2 | -4/+0 |
| | |||||
* | Added a define EXTRAMACHDEPPATH which can be used to add sys.path items | Jack Jansen | 2003-03-17 | 4 | -6/+24 |
| | | | | | | | | for specific platforms. Use this to add plat-mac and plat-mac/lib-scriptpackages on MacOSX. Also tested for not having adverse effects on Linux, and I think this code isn't used on Windows anyway. Fixes #661521. | ||||
* | Add Hye-Shik Chang for SF patch/bugreport #703471. | Thomas Wouters | 2003-03-17 | 1 | -0/+1 |
| | |||||
* | binascii_a2b_base64: Properly return an empty string if the input was all | Thomas Wouters | 2003-03-17 | 2 | -1/+12 |
| | | | | | | | invalid, rather than returning a string of random garbage of the estimated result length. Closes SF patch #703471 by Hye-Shik Chang. Will backport to 2.2-maint (consider it done.) | ||||
* | Capturing the exit status for the build process didn't work. Using | Jack Jansen | 2003-03-17 | 1 | -6/+7 |
| | | | | popen2.Popen4() makes it work. Fixes #702180. | ||||
* | Created PyObject_GenericGetIter(). | Raymond Hettinger | 2003-03-17 | 3 | -24/+3 |
| | | | | Factors out the common case of returning self. | ||||
* | Created PyObject_GenericGetIter(). | Raymond Hettinger | 2003-03-17 | 10 | -147/+30 |
| | | | | Factors out the common case of returning self. | ||||
* | The MacPython introductory help is now called MacPython Help, and the | Jack Jansen | 2003-03-16 | 4 | -25/+41 |
| | | | | optional full documentation Python Documentation. | ||||
* | - Don't ask for bring-to-front when quitting through an appleevent. | Jack Jansen | 2003-03-16 | 1 | -6/+4 |
| | | | | - Changed checkbox labels as suggested by Kevin Ollivier. | ||||
* | Lots of textual changes suggested by Matthew Moelter. | Jack Jansen | 2003-03-16 | 1 | -13/+13 |
| | |||||
* | Eliminate data dependency in predict macro. | Raymond Hettinger | 2003-03-16 | 1 | -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 Hettinger | 2003-03-16 | 1 | -3/+4 |
| | |||||
* | Introduced macros for a simple opcode prediction protocol. | Raymond Hettinger | 2003-03-16 | 1 | -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 class | Guido van Rossum | 2003-03-15 | 1 | -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 Rossum | 2003-03-15 | 1 | -0/+3 |
| | |||||
* | - New function time.tzset() provides access to the C library tzet() | Guido van Rossum | 2003-03-14 | 7 | -76/+336 |
| | | | | function, if supported. (SF patch #675422, by Stuart Bishop.) | ||||
* | Implement some recommendations from Raymond H: | Guido van Rossum | 2003-03-14 | 1 | -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 Drake | 2003-03-14 | 4 | -2/+10 |
| | | | | This closes SF patch #669683. | ||||
* | SF patch #701907: More use of fast_next_opcode | Raymond Hettinger | 2003-03-14 | 1 | -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. Hudson | 2003-03-13 | 5 | -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, to | Kurt B. Kaiser | 2003-03-12 | 2 | -8/+24 |
| | | | | rpc.SocketIO.main() and asyncreturn(). Improve comment. | ||||
* | Filter out the depracation warning for macfs. | Jack Jansen | 2003-03-12 | 1 | -0/+2 |
| | |||||
* | SF bug #699237: Tutorial uses omitted slice indices before explaining them | Raymond Hettinger | 2003-03-12 | 1 | -11/+11 |
| | | | | Moved up the explanation of slice default arguments. | ||||
* | SF bug #699934: Obscure error message | Raymond Hettinger | 2003-03-12 | 2 | -4/+11 |
| | | | | Clarify error message for mro conflicts. | ||||
* | Update the package version number | Barry Warsaw | 2003-03-12 | 1 | -2/+2 |
| | |||||
* | test_whitespace_eater_unicode(): Make this test Python 2.1 compatible. | Barry Warsaw | 2003-03-12 | 1 | -1/+4 |
| | |||||
* | Python 2.1 doesn't have True and False | Barry Warsaw | 2003-03-12 | 1 | -0/+3 |
| | |||||
* | Add a simple Apple Help book to the framework. | Jack Jansen | 2003-03-11 | 1 | -5/+14 |
| | |||||
* | Adding MacPython online help. Only the basics are installed, with a | Jack Jansen | 2003-03-11 | 21 | -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.py | Kurt B. Kaiser | 2003-03-11 | 2 | -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't | Jack Jansen | 2003-03-11 | 1 | -65/+28 |
| | | | | work), but at least the rest of the text is okay now. | ||||
* | Allow unicode pathnames where FSRefs are expected. Fixes 696253. | Jack Jansen | 2003-03-11 | 3 | -4/+15 |
| | |||||
* | Fix spelling. | Raymond Hettinger | 2003-03-11 | 1 | -10/+10 |
| | |||||
* | Open with O_NONBLOCK to avoid hanging on open(). | Greg Ward | 2003-03-11 | 1 | -1/+5 |
| |