summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* mention unicode file name support on OSXJust van Rossum2003-02-101-0/+4
|
* mention unicode support in compile, eval and execJust van Rossum2003-02-101-0/+3
|
* Fix SF bug #683467, 'int' ability to generate longs not inheritedNeal Norwitz2003-02-101-0/+3
| | | | | | When subclassing from an int but not overriding __new__, long values were not converted properly. Try to convert longs into an int.
* Add tests and news entry about parser errors from bug #678518.Neal Norwitz2003-02-101-0/+2
|
* Alphabetize some namesNeal Norwitz2003-02-101-2/+3
| | | | Add Grant Olson for patch provided to fix bug #678518
* Comparison for timedelta, time, date and datetime objects: __eq__ andTim Peters2003-02-071-1/+16
| | | | | | | | | | | | | | | | | __ne__ no longer complain if they don't know how to compare to the other thing. If no meaningful way to compare is known, saying "not equal" is sensible. This allows things like if adatetime in some_sequence: and somedict[adatetime] = whatever to work as expected even if some_sequence contains non-datetime objects, or somedict non-datetime keys, because they only call __eq__. It still complains (raises TypeError) for mixed-type comparisons in contexts that require a total ordering, such as list.sort(), use as a key in a BTree-based data structure, and cmp().
* Added a note about getting rid of macfs usage (MacPython).Jack Jansen2003-02-061-0/+4
|
* Clarify that __module__ applies to various type of functions.Guido van Rossum2003-02-061-6/+7
|
* Add news item about __module__ attribute on functions.Jeremy Hylton2003-02-061-0/+8
|
* Small function call optimization and special build option for call stats.Jeremy Hylton2003-02-051-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | -DCALL_PROFILE: Count the number of function calls executed. When this symbol is defined, the ceval mainloop and helper functions count the number of function calls made. It keeps detailed statistics about what kind of object was called and whether the call hit any of the special fast paths in the code. Optimization: When we take the fast_function() path, which seems to be taken for most function calls, and there is minimal frame setup to do, avoid call PyEval_EvalCodeEx(). The eval code ex function does a lot of work to handle keywords args and star args, free variables, generators, etc. The inlined version simply allocates the frame and copies the arguments values into the frame. The optimization gets a little help from compile.c which adds a CO_NOFREE flag to code objects that don't have free variables or cell variables. This change allows fast_function() to get into the fast path with fewer tests. I measure a couple of percent speedup in pystone with this change, but there's surely more that can be done.