summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* SF patch #667730: More DictMixinRaymond Hettinger2003-03-091-0/+1
| | | | | | | | * Adds missing pop() methods to weakref.py * Expands test suite to broaden coverage of objects with a mapping interface. Contributed by Sebastien Keim.
* SF 698520: Iterator for urllib.URLOpenerRaymond Hettinger2003-03-091-0/+3
| | | | Contributed by Brett Cannon.
* - The extended type structure used for heap types (new-styleGuido van Rossum2003-03-071-1/+3
| | | | | classes defined by Python code using a class statement) is now exported from object.h as PyHeapTypeObject. (SF patch #696193.)
* SF patch #693753: fix for bug 639806: default for dict.popRaymond Hettinger2003-03-061-0/+6
| | | | (contributed by Michael Stone.)
* Mention timeit.py.Guido van Rossum2003-03-061-0/+3
|
* Always initialize Py_FileSystemDefaultEncoding on Unix in Py_Initialize,Martin v. Löwis2003-03-051-0/+2
| | | | | and not as a side effect of setlocale. Expose it as sys.getfilesystemencoding. Adjust test case.
* Fix SF #692416, don't crash interpreter for _tkinter.deletefilehandlerNeal Norwitz2003-03-031-0/+4
| | | | in addition to createfilehandler and creaetetimerhandler.
* Patch #683592 revisited, after discussions with MvL:Just van Rossum2003-03-031-7/+5
| | | | | | | | | | | | | | | | | | - Implement the behavior as specified in PEP 277, meaning os.listdir() will only return unicode strings if it is _called_ with a unicode argument. - And then return only unicode, don't attempt to convert to ASCII. - Don't switch on Py_FileSystemDefaultEncoding, but simply use the default encoding if Py_FileSystemDefaultEncoding is NULL. This means os.listdir() can now raise UnicodeDecodeError if the default encoding can't represent the directory entry. (This seems better than silcencing the error and fall back to a byte string.) - Attempted to decribe the above in Doc/lib/libos.tex. - Reworded the Misc/NEWS items to reflect the current situation. This checkin also fixes bug #696261, which was due to os.listdir() not using Py_FileSystemDefaultEncoding, like all file system calls are supposed to.
* py-pdbtrack-grub-for-buffer(): Rectified some logic errors iKen Manheimer2003-03-031-6/+18
| | | | | | | | | introduced when shifting around some code, and added some redundancy to reduce chances of hitting the wrong source code. (This is experimental - it will improve the accuracy, but will reduce the ability of the user to deliberately select the buffer they want the buffer grubbing stuff to find. I think the accuracy improvement will be worth it, but am not sure, so may remove this.)
* Fix bugMichael W. Hudson2003-03-031-0/+3
| | | | | | | | [ 555817 ] Flawed fcntl.ioctl implementation. with my patch that allows for an array to be mutated when passed as the buffer argument to ioctl() (details complicated by backwards compatibility considerations -- read the docs!).
* Guard advancing past leading meta-comments.Ken Manheimer2003-03-031-4/+6
|
* Enhanced pdbtrack to provide for source code that's not findable byKen Manheimer2003-03-031-29/+105
| | | | | | | | | | | | | | | | | the reported path. (Eg, precompiled scripts with a file path suitable for a different host, scripts actually running on a remote system or with no valid path, like Zope through-the-web python scripts.) On failing to find the code on the reported path, pdbtrack takes the function name and looks through the buffers, from most to least recent, seeking the first python-mode buffer that either is named for the function or has a definition (def or class) for that function. So to get source tracking for code that's not located where the path indicates, you put a copy of the script in a buffer, and pdbtrack will find it. Also, fixed a small bug so pdbtrack now properly presents the overlay arrow when you run the pdb 'w'here command.
* SF bug 693121: Set == non-Set is a TypeError.Tim Peters2003-03-021-5/+12
| | | | | | | | | Allow mixed-type __eq__ and __ne__ for Set objects. This is messier than I'd like because Set *also* implements __cmp__. I know of one glitch now: cmp(s, t) returns 0 now when s and t are both Sets and s == t, despite that Set.__cmp__ unconditionally raises TypeError (and by intent). The rub is that __eq__ gets tried first, and the x.__eq__(y) True result convinces Python that cmp(x, y) is 0 without even calling Set.__cmp__.
* - New function sys.exc_clear() clears the current exception. This isGuido van Rossum2003-03-011-0/+6
| | | | | | rarely needed, but can sometimes be useful to release objects referenced by the traceback held in sys.exc_info()[2]. (SF patch #693195.) Thanks to Kevin Jacobs!
* Add news item for patch #695090Andrew M. Kuchling2003-02-281-0/+4
|
* Fix SF bugs #692951 and 692988, test_timeout.py needs 'network' resourceNeal Norwitz2003-02-281-1/+2
| | | | | require -u network to run test_timeout since it fails when not connected to a network.
* Fix SF bug #690012Neal Norwitz2003-02-281-0/+2
|
* Added a note about EasyDialogs dialogs having become movable.Jack Jansen2003-02-271-0/+2
|
* Patch #683592: unicode support for os.listdir()Just van Rossum2003-02-251-1/+8
| | | | | os.listdir() may now return unicode strings on platforms that set Py_FileSystemDefaultEncoding.
* note the demise of the dospath module (was actually in 2.3a2)Skip Montanaro2003-02-251-0/+3
|
* 2.3b1 patchesGuido van Rossum2003-02-241-2/+5
|
* Added a note about MacOS.WMAvailable().Jack Jansen2003-02-241-1/+2
|
* Deleting the 2.2 spec.Guido van Rossum2003-02-241-302/+0
|
* RPM spec file for 2.3a2, contributed by Sean Reifschneider.Guido van Rossum2003-02-241-0/+303
|
* Fix SF bug #691793, Python 2.3a2 build fails on Tru64Neal Norwitz2003-02-231-1/+2
|
* Fix SF bug #689659, 64-bit int and long hash keys incompatibleNeal Norwitz2003-02-231-1/+2
| | | | | On a 64-bit machine, a dictionary could contain duplicate int/long keys if the value was > 2**32.
* User requested changes to the itertools module.Raymond Hettinger2003-02-231-1/+3
| | | | | Subsumed times() into repeat(). Added cycle() and chain().
* Prepped for 2.3b1.Guido van Rossum2003-02-201-0/+57
| | | | Added an extra blank line before "What's New in Python 2.2 final?".
* Match parentheses.Guido van Rossum2003-02-201-1/+1
|
* Merge in changes made to the 2.3a2 release.Guido van Rossum2003-02-201-2/+28
|
* fixed markupDavid Goodger2003-02-191-8/+13
|
* Update versions/dates for release of 2.3a2. Added some last-minute news.Guido van Rossum2003-02-191-8/+6
|
* Add a note about the recent PEP 293 changes.Walter Dörwald2003-02-191-0/+4
|
* - PyEval_GetFrame() is now declared to return a PyFrameObject *Guido van Rossum2003-02-191-0/+3
| | | | instead of a plain PyObject *. (SF patch #686601 by Ben Laurie.)
* - sys.path[0] (the directory from which the script is loaded) is nowGuido van Rossum2003-02-191-0/+4
| | | | | turned into an absolute pathname, unless it is the empty string. (SF patch #664376, by Skip Montanaro.)
* Added a note that MacOSX applets can no longer be run from a terminal window.Jack Jansen2003-02-181-1/+3
|
* Make PyNumber_Check() a bit more careful, since all sorts of thingsGuido van Rossum2003-02-181-0/+8
| | | | now have tp_as_number. Check for nb_int or nb_float.
* Reword section about moving variables to os.path to match intent (orMichael W. Hudson2003-02-171-3/+4
| | | | at least, what I thought the intent was).
* Patch 686397:Andrew MacIntyre2003-02-171-0/+6
| | | | | move definition of platform dependent path related variables from os.py to platform dependent path modules (ntpath, etc).
* Added notes about pimp and bundlebuilder to the Mac section.Jack Jansen2003-02-161-0/+8
|
* - The audio driver tests (test_ossaudiodev.py andGuido van Rossum2003-02-141-0/+6
| | | | | | | test_linuxaudiodev.py) are no longer run by default. This is because they don't always work, depending on your hardware and software. To run these tests, you must use an invocation like ./python Lib/test/regrtest.py -u audio test_ossaudiodev
* Add SF reference to news item.Guido van Rossum2003-02-131-1/+1
|
* - Finally fixed the bug in compile() and exec where a string endingGuido van Rossum2003-02-131-0/+8
| | | | | | | | | with an indented code block but no newline would raise SyntaxError. This would have been a four-line change in parsetok.c... Except codeop.py depends on this behavior, so a compilation flag had to be invented that causes the tokenizer to revert to the old behavior; this required extra changes to 2 .h files, 2 .c files, and 2 .py files. (Fixes SF bug #501622.)
* SF patch #685738 by Michael Stone.Guido van Rossum2003-02-131-0/+6
| | | | | | | This changes the default __new__ to refuse arguments iff tp_init is the default __init__ implementation -- thus making it a TypeError when you try to pass arguments to a constructor if the class doesn't override at least __init__ or __new__.
* Provide access to the import lock, fixing SF bug #580952. This isGuido van Rossum2003-02-121-1/+7
| | | | | | | | mostly from SF patch #683257, but I had to change unlock_import() to return an error value to avoid fatal error. Should this be backported? The patch requested this, but it's a new feature.
* Issue a warning when int('0...', 0) returns an int with the signGuido van Rossum2003-02-121-1/+8
| | | | | | | | folded; this will change in Python 2.4. On a 32-bit machine, this happens for 0x80000000 through 0xffffffff, and for octal constants in the same value range. No warning is issued if an explicit base is given, *or* if the string contains a sign (since in those cases no sign folding ever happens).
* SF #660455 : patch by NNorwitz.Guido van Rossum2003-02-121-0/+12
| | | | | | | | | | "Unsigned" (i.e., positive-looking, but really negative) hex/oct constants with a leading minus sign are once again properly negated. The micro-optimization for negated numeric constants did the wrong thing for such hex/oct constants. The patch avoids the optimization for all hex/oct constants. This needs to be backported to Python 2.2!
* Implement another useful feature for proxies: in super(X, x), x mayGuido van Rossum2003-02-121-0/+3
| | | | now be a proxy for an X instance, as long as issubclass(x.__class__, X).
* SF #532767: isinstance(x, X) should work when x is a proxy for an XGuido van Rossum2003-02-121-0/+5
| | | | | instance, as long as x.__class__ is X or a subclass thereof. Did a little cleanup of PyObject_IsInstance() too.
* Fix from SF #681367: inherit tp_as_buffer. This only applies to CGuido van Rossum2003-02-111-0/+4
| | | | types -- Python types already inherited this.