summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* Test wether we are building on a case-insensitive filesystem (suchJack Jansen2001-12-061-0/+4
| | | | | as OSX HFS+) and if so add an extension to the python executable, but only in the build directory, not on the installed python.
* sys.platform is now "darwin" without digits appended.Jack Jansen2001-12-061-0/+2
|
* SF bug #488514: -Qnew needs workTim Peters2001-12-061-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Big Hammer to implement -Qnew as PEP 238 says it should work (a global option affecting all instances of "/"). pydebug.h, main.c, pythonrun.c: define a private _Py_QnewFlag flag, true iff -Qnew is passed on the command line. This should go away (as the comments say) when true division becomes The Rule. This is deliberately not exposed to runtime inspection or modification: it's a one-way one-shot switch to pretend you're using Python 3. ceval.c: when _Py_QnewFlag is set, treat BINARY_DIVIDE as BINARY_TRUE_DIVIDE. test_{descr, generators, zipfile}.py: fiddle so these pass under -Qnew too. This was just a matter of s!/!//! in test_generators and test_zipfile. test_descr was trickier, as testbinop() is passed assumptions that "/" is the same as calling a "__div__" method; put a temporary hack there to call "__truediv__" instead when the method name is "__div__" and 1/2 evaluates to 0.5. Three standard tests still fail under -Qnew (on Windows; somebody please try the Linux tests with -Qnew too! Linux runs a whole bunch of tests Windows doesn't): test_augassign test_class test_coercion I can't stay awake longer to stare at this (be my guest). Offhand cures weren't obvious, nor was it even obvious that cures are possible without major hackery. Question: when -Qnew is in effect, should calls to __div__ magically change into calls to __truediv__? See "major hackery" at tail end of last paragraph <wink>.
* SF patch #489680 (David Abrahams): h2py uses nonexistent method splitfields()Guido van Rossum2001-12-061-0/+1
|
* Fix SF bug #489581: __slots__ leak.Guido van Rossum2001-12-051-0/+3
| | | | | | It was easier than I thought, assuming that no other things contribute to the instance size besides slots -- a pretty good bet. With a test suite, no less!
* At the PythonLabs meeting someone mentioned it would make Jim reallyGuido van Rossum2001-12-051-0/+4
| | | | | | | | | happy if one could delete the __dict__ attribute of an instance. I love to make Jim happy, so here goes... - New-style objects now support deleting their __dict__. This is for all intents and purposes equivalent to assigning a brand new empty dictionary, but saves space if the object is not used further.
* Another no-longer-nameless contributor...Guido van Rossum2001-12-041-0/+1
|
* Add note about fixed hash() of mutable objects.Guido van Rossum2001-12-041-0/+5
|
* New about super.Guido van Rossum2001-12-031-0/+15
|
* Add Greg Chapman.Guido van Rossum2001-12-031-0/+1
|
* Fix for SF bug #485678.Guido van Rossum2001-12-031-0/+6
| | | | | | | | slot_tp_descr_set(): When deleting an attribute described by a descriptor implemented in Python, the descriptor's __del__ method is called by the slot_tp_descr_set dispatch function. This is bogus -- __del__ already has a different meaning. Renaming this use of __del__ is renamed to __delete__.
* Patch #487275: windows-1251 charset alias.Martin v. Löwis2001-12-021-0/+2
|
* SF bug 486278 SystemError: Python/getargs.c:1086: bad.Tim Peters2001-11-291-1/+8
| | | | | | | | | | vgetargskeywords(): Now that this routine is checking for bad input (rather than dump core in some cases), some bad calls are raising errors that previously "worked". This patch makes the error strings more revealing, and changes the exceptions from SystemError to RuntimeError (under the theory that SystemError is more of a "can't happen!" assert- like thing, and so inappropriate for bad arguments to a public C API function).
* SF bug 485175: buffer overflow in traceback.c.Tim Peters2001-11-271-0/+1
| | | | | | | Bugfix candidate. tb_displayline(): the sprintf format was choking off the file name, but used plain %s for the function name (which can be arbitrarily long). Limit both to 500 chars max.
* Properly set static options for tixBalloon and tixResizeHandle.Martin v. Löwis2001-11-251-0/+2
| | | | | Expose Tix.ResizeHandle.{detach_widget,hide,show}. Update Tix demos.
* Patch #484847: Default to netscape.exe on OS/2.Martin v. Löwis2001-11-251-0/+2
|
* Rename get_referents to get_referrers. Fixes #483815.Martin v. Löwis2001-11-241-0/+4
|
* Add skeleton for 2.2c1 news.Tim Peters2001-11-171-0/+27
|
* Merged in NEWS changes from the r22b2 branch.Barry Warsaw2001-11-161-3/+57
|
* Group dict[ionary] news together; and use dict() instead ofGuido van Rossum2001-11-151-5/+4
| | | | dictionary().
* Correct the description of mixed multiple inheritance: the codeGuido van Rossum2001-11-151-5/+3
| | | | | | | special-cases classic classes, it doesn't do anything about other cases where different metaclasses are involved (except for the trivial case where one metaclass is a subclass of the others). Also note that it's metaclass, not metatype.
* News about mixing classic and new-style classes in MI.Tim Peters2001-11-151-1/+14
|
* CVS patch #477161: New "access" keyword for mmap, from Jay T Miller.Tim Peters2001-11-131-1/+8
| | | | | | | | | | This gives mmap() on Windows the ability to create read-only, write- through and copy-on-write mmaps. A new keyword argument is introduced because the mmap() signatures diverged between Windows and Unix, so while they (now) both support this functionality, there wasn't a way to spell it in a common way without introducing a new spelling gimmick. The old spellings are still accepted, so there isn't a backward- compatibility issue here.
* Add note about assignment to __debug__ being an error.Jeremy Hylton2001-11-091-0/+4
|
* Patch #478654: Expose tk_chooseDirectory.Martin v. Löwis2001-11-071-0/+3
| | | | Also delegate kw arguments through ** calls.
* News about OS/2 Visual Age C++ patches.Tim Peters2001-11-051-0/+3
|
* Finish SF patch 477059: __del__ on new classes vs. GC.Tim Peters2001-11-031-0/+5
| | | | Just doc and NEWS here, about the change in gc.garbage meaning.
* Improved error msg when a symbolic group name is redefined. Added docsTim Peters2001-11-031-0/+6
| | | | | | and NEWS. Bugfix candidate? That's a dilemma for Anthony <wink>: /F did fix a longstanding bug here, but the fix can cause code to raise an exception that previously worked by accident.
* Patch #471120: Improved doc strings and new wrappers.Martin v. Löwis2001-11-021-0/+5
|
* Move a name into correct position.Tim Peters2001-10-311-1/+1
|
* SF patch #474485: pydoc generates some bad html, from Rich Salz.Tim Peters2001-10-311-0/+1
|
* SF patch #474500: Make OS/2 locks work like posix locks, from MichaelTim Peters2001-10-311-0/+1
| | | | Muller.
* SF bug #474077 2.2b1: Error compiling extns with BCCTim Peters2001-10-301-0/+1
| | | | | | Removed "#undef HAVE_HYPOT" line from Borland config, as suggested. Whether this will break some other Borland usage is a good question I can't answer.
* News and attribution for SF bug #473009.Guido van Rossum2001-10-302-0/+4
|
* Rename "dictionary" (type and constructor) to "dict".Tim Peters2001-10-291-0/+3
|
* Add __del__ callbacks. They are too useful to leave out.Guido van Rossum2001-10-291-0/+3
| | | | | | | | | | | | | | | | XXX Remaining problems: - The GC module doesn't know about these; I think it has its reasons to disallow calling __del__, but for now, __del__ on new-style objects is called when the GC module discards an object, for better or for worse. - The code to call a __del__ handler is really ridiculously complicated, due to all the different debug #ifdefs. I've copied this from the similar code in classobject.c, so I'm pretty sure I did it right, but it's not pretty. :-( - No tests yet.
* News about the socket type and the HP-UX port.Guido van Rossum2001-10-271-1/+8
|
* Updated this README to reality.Guido van Rossum2001-10-261-15/+6
|
* Some news.Guido van Rossum2001-10-261-1/+13
|
* Delete Makefile.pre.in (BDFL pronouncement)Andrew M. Kuchling2001-10-261-305/+0
|
* Generalize dictionary() to accept a sequence of 2-sequences. At theTim Peters2001-10-261-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | outer level, the iterator protocol is used for memory-efficiency (the outer sequence may be very large if fully materialized); at the inner level, PySequence_Fast() is used for time-efficiency (these should always be sequences of length 2). dictobject.c, new functions PyDict_{Merge,Update}FromSeq2. These are wholly analogous to PyDict_{Merge,Update}, but process a sequence-of-2- sequences argument instead of a mapping object. For now, I left these functions file static, so no corresponding doc changes. It's tempting to change dict.update() to allow a sequence-of-2-seqs argument too. Also changed the name of dictionary's keyword argument from "mapping" to "x". Got a better name? "mapping_or_sequence_of_pairs" isn't attractive, although more so than "mosop" <wink>. abstract.h, abstract.tex: Added new PySequence_Fast_GET_SIZE function, much faster than going thru the all-purpose PySequence_Size. libfuncs.tex: - Document dictionary(). - Fiddle tuple() and list() to admit that their argument is optional. - The long-winded repetitions of "a sequence, a container that supports iteration, or an iterator object" is getting to be a PITA. Many months ago I suggested factoring this out into "iterable object", where the definition of that could include being explicit about generators too (as is, I'm not sure a reader outside of PythonLabs could guess that "an iterator object" includes a generator call). - Please check my curly braces -- I'm going blind <0.9 wink>. abstract.c, PySequence_Tuple(): When PyObject_GetIter() fails, leave its error msg alone now (the msg it produces has improved since PySequence_Tuple was generalized to accept iterable objects, and PySequence_Tuple was also stomping on the msg in cases it shouldn't have even before PyObject_GetIter grew a better msg).
* Fix two typos, one noted by Noah Spurrier in SF bug #475166, theGuido van Rossum2001-10-261-0/+1
| | | | | second noted after a second's thought about what the next line should do. :-(
* I went back and figured out the release date for Python 2.2a1.Barry Warsaw2001-10-251-0/+1
|
* Fix SF bug #474538: Memory (reference) leak in poller.register (Dave Brueck)Guido van Rossum2001-10-251-0/+1
| | | | | | | | Replace some tortuous code that was trying to be clever but forgot to DECREF the key and value, by more longwinded but obviously correct code. (Inspired by but not copying the fix from SF patch #475033.)
* Note updated RISCOS port. Remove reference in the 2.1 release notesGuido van Rossum2001-10-241-4/+8
| | | | to os.extsep -- that variable actually didn't exist in that release!
* SF patch #474175 (Jay T Miller): file.readinto arg parsing bugGuido van Rossum2001-10-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | The C-code in fileobject.readinto(buffer) which parses the arguments assumes that size_t is interchangeable with int: size_t ntodo, ndone, nnow; if (f->f_fp == NULL) return err_closed(); if (!PyArg_Parse(args, "w#", &ptr, &ntodo)) return NULL; This causes a problem on Alpha / Tru64 / OSF1 v5.1 where size_t is a long and sizeof(long) != sizeof(int). The patch I'm proposing declares ntodo as an int. An alternative might be to redefine w# to expect size_t. [We can't change w# because there are probably third party modules relying on it. GvR]
* Doc and NEWS changes due to Jeremy adding traceback objects to gc.Tim Peters2001-10-231-0/+4
|
* Added two very tardy notes about the 2.2b1 release, fixed a typo.Fred Drake2001-10-221-1/+9
|
* Add curses-related news itemsAndrew M. Kuchling2001-10-221-0/+5
|
* Fix some typosAndrew M. Kuchling2001-10-221-4/+4
|