summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* [680789] Debug with long array takes foreverTim Peters2003-02-051-0/+3
| | | | | Added array.array to the types repr.py knows about, after a suggestion from Jurjen N.E. Bos.
* If a float is passed where a int is expected, issue a DeprecationWarningNeil Schemenauer2003-02-041-3/+4
| | | | instead of raising a TypeError. Closes #660144 (again).
* Fix typo.Walter Dörwald2003-02-031-1/+1
|
* - Thanks to Scott David Daniels, a subtle bug in how the zlibGuido van Rossum2003-02-032-0/+6
| | | | | | | | extension implemented flush() was fixed. Scott also rewrite the zlib test suite using the unittest module. (SF bug #640230 and patch #678531.) Backport candidate I think.
* brainoSkip Montanaro2003-02-031-2/+2
|
* add note about new db2pickle.py and pickle2db.py scriptsSkip Montanaro2003-02-031-2/+19
|
* Add some notes that got python to work on the snake farmNeal Norwitz2003-02-021-0/+16
|
* long(string, base) now takes time linear in len(string) when base is aTim Peters2003-02-021-0/+3
| | | | | power of 2. Enabled the tail end of test_long() in pickletester.py because it no longer takes forever when run from test_pickle.py.
* There's no good reason for datetime objects to expose __getstate__()Tim Peters2003-02-011-2/+2
| | | | | | anymore either, so don't. This also allows to get rid of obscure code making __getnewargs__ identical to __getstate__ (hmm ... hope there wasn't more to this than I realize!).
* Move itertools module from the sandbox and into production.Raymond Hettinger2003-02-011-0/+3
|
* The various datetime object __setstate__() methods are no longer publicTim Peters2003-01-311-1/+6
| | | | | | | | (pickling no longer needs them, and immutable objects shouldn't have visible __setstate__() methods regardless). Rearranged the code to put the internal setstate functions in the constructor sections. Repaired the timedelta reduce() method, which was still producing stuff that required a public timedelta.__setstate__() when unpickling.
* Patch #669198: Add cflags to RC compile.Thomas Heller2003-01-311-0/+3
|
* Fix SF bug# 676155, RuntimeWarning with tp_compareNeal Norwitz2003-01-281-0/+4
| | | | Check return value of PyLong_AsDouble(), it can return an error.
* Support socket timeout in SSL, by Geoff Talvola.Guido van Rossum2003-01-272-0/+4
| | | | (SF patch #675750, to fix SF bug #675552.)
* Moving pickletools.py from the sandbox into the std library. I startedTim Peters2003-01-271-2/+6
| | | | | this over the weekend, and it made faster & better progress than I expected -- it's already useful <wink>.
* Attempting to keep the Mac section of the NEWS file up-to-date, in steadJack Jansen2003-01-271-1/+5
| | | | of the usual frantic editing at the last moment:-)
* Patch #670715: Universal Unicode Codec for POSIX iconv.Martin v. Löwis2003-01-261-0/+3
|