summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* - add notes about os.link() emulation;Andrew MacIntyre2003-12-021-82/+87
| | | | - various minor cleanups and updates.
* - add build support for curses extension to be a normal DLL as well asAndrew MacIntyre2003-12-021-5/+12
| | | | | a Python extension, so that the curses_panel extension works. - minor compiler switch tweak.
* use same compiler switches as core for extensionsAndrew MacIntyre2003-12-021-2/+2
|
* SF patch #852140: keyword.py - use __contains__ and boolRaymond Hettinger2003-12-021-5/+1
| | | | Use a set instead of dict with values equal to one.
* Convert a 0/1 to False/True.Raymond Hettinger2003-12-021-2/+2
|
* Py_Finalize(): disabled the second call of cyclic gc, and added extensiveTim Peters2003-12-012-2/+37
| | | | | | | comments about why both calls to cyclic gc here can cause problems. I'll backport to 2.3 maint. Since the calls were introduced in 2.3, that will be the end of it.
* Convert path objects to strings in askdirectory. Fixes #852314.Martin v. Löwis2003-12-011-0/+6
| | | | Backported to 2.3.
* Apply extract functions instead of lambda.Raymond Hettinger2003-12-012-3/+4
|
* Revert previous change. MAL preferred the old version.Raymond Hettinger2003-12-011-4/+41
|
* As discussed on python-dev, added two extractor functions to theRaymond Hettinger2003-12-014-2/+302
| | | | operator module.
* Simplifed the code.Raymond Hettinger2003-12-011-41/+4
|
* Add testcases for _winreg segfault (SF 851056).Guido van Rossum2003-11-301-1/+3
|
* Add news item for _winreg fix (SF bug 851056).Guido van Rossum2003-11-301-0/+5
|
* Remove all uses of alloca() from this module. The alloca() return valueGuido van Rossum2003-11-301-16/+48
| | | | | | | | | | isn't checked, and it *is* possible that a very large alloca() call is made, e.g. when a large registry value is being read. I don't know if alloca() in that case returns NULL or returns a pointer pointing outside the stack, and I don't want to know -- I've simply replaced all calls to alloca() with either PyMem_Malloc() or PyString_FromStringAndSize(NULL,) as appropriate, followed by a size check. This addresses SF buf 851056. Will backport to 2.3 next.
* Fix a bug discovered by Kalle Svensson: comparing sys.maxint toGuido van Rossum2003-11-291-1/+1
| | | | 2**32-1 makes no sense. Use 2**31-1 instead.
* - Removed FutureWarnings related to hex/oct literals and conversionsGuido van Rossum2003-11-2911-148/+120
| | | | | | | | | | and left shifts. (Thanks to Kalle Svensson for SF patch 849227.) This addresses most of the remaining semantic changes promised by PEP 237, except for repr() of a long, which still shows the trailing 'L'. The PEP appears to promise warnings for operations that changed semantics compared to Python 2.3, but this is not implemented; we've suffered through enough warnings related to hex/oct literals and I think it's best to be silent now.
* Make sure the list.sort's decorate step unwinds itself before returningRaymond Hettinger2003-11-282-2/+16
| | | | | an exception raised by the key function. (Suggested by Michael Hudson.)
* See SF #848614: distutils' msvccompiler now tries to detect that MSVC6Thomas Heller2003-11-282-0/+13
| | | | | | | is installed but the registry settings are incomplete because the gui has never been run. Already backported to release23-maint.
* Fix (workaround, actually) for bug #844676: deselecting "show hidden" canJack Jansen2003-11-271-0/+2
| | | | | cause an index error. We now select the first package if this threatens to happen. Will backport.
* Package Mnager error dialogs could refer to hidden packages, which wasJack Jansen2003-11-271-0/+5
| | | | | confusing. To be on the safe side we always show hidden packages before showing error dialogs. Will backport.
* 2.4a0 Package Manager shouldn't attempt to use the 2.3 database.Jack Jansen2003-11-271-1/+1
| | | | | Things will definitely change before 2.4, but for now use a slightly different URL.
* the "idle" script has moved from Lib/idlelib to Tools/scripts.Jack Jansen2003-11-271-2/+2
|
* Patch #849350: Update to document bool return values. Backported to 2.3.Martin v. Löwis2003-11-274-4/+4
|
* Patch #849595: Add socket.shutdown() constants.Martin v. Löwis2003-11-273-4/+29
|
* - clean up generated HTMLFred Drake2003-11-261-7/+20
| | | | - make the output more XHTML friendly
* Fix typo and mark-up; shorten textAndrew M. Kuchling2003-11-261-5/+3
|
* Fix typosAndrew M. Kuchling2003-11-261-2/+2
|
* Nits from a review of the documentation update.Raymond Hettinger2003-11-264-12/+24
|
* Add version changed doc for addition of fillchar to ljust/rjust/centerNeal Norwitz2003-11-261-0/+3
|
* Add optional fillchar argument to ljust(), rjust(), and center() string methods.Raymond Hettinger2003-11-267-50/+96
|
* As discussed on python-dev, banish apply(), buffer(), coerce(), andRaymond Hettinger2003-11-251-51/+68
| | | | intern() to a separate region in the docs.
* Expose dict_contains() and PyDict_Contains() with is about 10% fasterRaymond Hettinger2003-11-255-12/+26
| | | | | | | than PySequence_Contains() and more clearly applicable to dicts. Apply the new function in setobject.c where __contains__ checking is ubiquitous.
* make the generated HTML more XHTML friendlyFred Drake2003-11-251-7/+8
|
* Fix a typo introduced at 1.21Kurt B. Kaiser2003-11-251-1/+1
| | | | | | M IOBinding.py Backported to 23-maint
* Factor out more duplicate code.Raymond Hettinger2003-11-241-77/+51
|
* Note the addition of set() and frozenset().Raymond Hettinger2003-11-241-0/+44
|
* Keybindings with the Shift modifier now work correctly. So do bindingsKurt B. Kaiser2003-11-245-74/+83
| | | | | | | | | | | | | | | | which use the Space key. Limit unmodified user keybindings to the function keys. Python Bug 775353, IDLEfork Bugs 755647, 761557 Improve error handling during startup if there's no Tkinter. M NEWS.txt M PyShell.py M config-keys.def M configHandler.py M keybindingDialog.py Backport candidate.
* Stop GCC warning about int literal that's so long that it becomes anGuido van Rossum2003-11-241-1/+1
| | | | | unsigned int (on a 32-bit machine), by adding an explicit 'u' to the literal (a prime used to improve the hash function for frozenset).
* Silence GCC warning when asserts are turned off.Guido van Rossum2003-11-241-2/+1
|
* Update NEWS.txt to include some items missed earlier. Update theKurt B. Kaiser2003-11-242-1/+14
| | | | | | IDLE version to 1.1a0. Modified Files: NEWS.txt idlever.py
* * Checkin remaining documentationRaymond Hettinger2003-11-244-152/+328
| | | | | | | * Add more tests * Refactor and neaten the code a bit. * Rename union_update() to update(). * Improve the algorithms (making them a closer to sets.py).
* test_guess_all_types(): Use a more robust test for checking thatBarry Warsaw2003-11-231-4/+7
| | | | | | | | | | guess_all_extensions() returns (at least) what we expect. As Jeff Epler suggests in http://mail.python.org/pipermail/python-dev/2003-September/038264.html We use a set to test the results. This fixes the test when test_urllib2 is run before test_mimetypes.
* * Simplify hash function and add test to show effectiveness of the hashRaymond Hettinger2003-11-232-27/+98
| | | | | | | | | | | | | | | function. * Add a better test for deepcopying. * Add tests to show the __init__() function works like it does for list and tuple. Add related test. * Have shallow copies of frozensets return self. Add related test. * Have frozenset(f) return f if f is already a frozenset. Add related test. * Beefed-up some existing tests.
* - When method objects have an attribute that can be satisfied eitherGuido van Rossum2003-11-222-28/+39
| | | | | | | | | | by the function object or by the method object, the function object's attribute usually wins. Christian Tismer pointed out that that this is really a mistake, because this only happens for special methods (like __reduce__) where the method object's version is really more appropriate than the function's attribute. So from now on, all method attributes will have precedence over function attributes with the same name.
* Extend temporary hashability to remove() and discard().Raymond Hettinger2003-11-222-11/+62
| | | | Brings the functionality back in line with sets.py.
* More words: gave more motivation, and added cautions about the specialTim Peters2003-11-211-10/+51
| | | | dangers of trying to iterate over weak dicts.
* Add a missing import. Closes SF # 816344.Barry Warsaw2003-11-211-0/+1
|
* Allow temporary hashability for the __contains__ test.Raymond Hettinger2003-11-212-1/+19
| | | | (Requested by Alex Martelli.)
* issubset() and issuperset() to work with general iterablesRaymond Hettinger2003-11-212-5/+19
|
* Three minor performance improvements:Raymond Hettinger2003-11-201-12/+41
| | | | | | | | | | * Improve the hash function to increase the chance that distinct sets will have distinct xor'd hash totals. * Use PyDict_Merge where possible (it is faster than an equivalent iter/set pair). * Don't rebuild dictionaries where the input already has one.