summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* Add MSVC8 project files to create wininst-8.exe.Martin v. Löwis2006-10-041-0/+2
|
* Forward-port of r52136,52138: a review of overflow-detecting code.Armin Rigo2006-10-041-2/+8
| | | | | | | | | | | | | | | | | | | | | | | * unified the way intobject, longobject and mystrtoul handle values around -sys.maxint-1. * in general, trying to entierely avoid overflows in any computation involving signed ints or longs is extremely involved. Fixed a few simple cases where a compiler might be too clever (but that's all guesswork). * more overflow checks against bad data in marshal.c. * 2.5 specific: fixed a number of places that were still confusing int and Py_ssize_t. Some of them could potentially have caused "real-world" breakage. * list.pop(x): fixing overflow issues on x was messy. I just reverted to PyArg_ParseTuple("n"), which does the right thing. (An obscure test was trying to give a Decimal to list.pop()... doesn't make sense any more IMHO) * trying to write a few tests...
* Fix integer negation and absolute value to not relyMartin v. Löwis2006-10-041-0/+3
| | | | | on undefined behaviour of the C compiler anymore. Will backport to 2.5 and 2.4.
* Convert test_imp over to unittest.Brett Cannon2006-10-031-0/+2
|
* Fix test for uintptr_t. Fixes #1568842.Martin v. Löwis2006-10-021-0/+2
| | | | Will backport.
* Bug #1546052: clarify that PyString_FromString(AndSize) copies theGeorg Brandl2006-09-301-0/+3
| | | | string pointed to by its parameter.
* Bug #1446043: correctly raise a LookupError if an encoding name givenGeorg Brandl2006-09-301-0/+3
| | | | to encodings.search_function() contains a dot.
* Bug #1556784: allow format strings longer than 127 characters inGeorg Brandl2006-09-301-0/+3
| | | | datetime's strftime function.
* Bug #1560617: in pyclbr, return full module name not only for classes,Georg Brandl2006-09-301-0/+3
| | | | but also for functions.
* Bug #1457823: cgi.(Sv)FormContentDict's constructor now takesGeorg Brandl2006-09-301-0/+3
| | | | keep_blank_values and strict_parsing keyword arguments.
* Bug #1566602: correct failure of posixpath unittest when $HOME endsGeorg Brandl2006-09-301-0/+3
| | | | with a slash.
* Bug #1566663: remove obsolete example from datetime docs.Georg Brandl2006-09-301-0/+2
|
* Bug #1566800: make sure that EnvironmentError can be called with anyGeorg Brandl2006-09-301-0/+3
| | | | number of arguments, as was the case in Python 2.4.
* Patch #1567691: super() and new.instancemethod() now don't acceptGeorg Brandl2006-09-301-0/+4
| | | | | keyword arguments any more (previously they accepted them, but didn't use them).
* Bug #1565661: in webbrowser, split() the command for the defaultGeorg Brandl2006-09-301-0/+3
| | | | GNOME browser in case it is a command with args.
* wording changeGregory P. Smith2006-09-301-1/+1
|
* Add news item for rev. 51815Andrew M. Kuchling2006-09-271-0/+6
|
* Make the error message for when the time data and format do not match clearer.Brett Cannon2006-09-261-0/+3
|
* Fix a bug in traceback.format_exception_only() that led to an errorGeorg Brandl2006-09-241-0/+4
| | | | | being raised when print_exc() was called without an exception set. In version 2.4, this printed "None", restored that behavior.
* Fix a bug in the parser's future statement handling that led to "with"Georg Brandl2006-09-241-0/+4
| | | | | not being recognized as a keyword after, e.g., this statement: from __future__ import division, with_statement
* Fix webbrowser.BackgroundBrowser on Windows.Georg Brandl2006-09-241-0/+3
|
* Bug #1557232: fix seg fault with def f((((x)))) and def f(((x),)).Neal Norwitz2006-09-221-0/+2
| | | | | | | These tests should be improved. Hopefully this fixes variations when flipping back and forth between fpdef and fplist. Backport candidate.
* Fix %zd string formatting on Mac OS X so it prints negative numbers.Neal Norwitz2006-09-221-0/+2
| | | | | | | | | | In addition to testing positive numbers, verify negative numbers work in configure. In order to avoid compiler warnings on OS X 10.4, also change the order of the check for the format character to use (PY_FORMAT_SIZE_T) in the sprintf format for Py_ssize_t. This patch changes PY_FORMAT_SIZE_T from "" to "l" if it wasn't defined at configure time. Need to verify the buildbot results. Backport candidate (if everyone thinks this patch can't be improved).
* added itertools.count(-n) fixJack Diederich2006-09-211-0/+2
|
* Make python.vim output more deterministic.Brett Cannon2006-09-203-32/+36
|
* Allow exceptions to be directly sliced againBrett Cannon2006-09-201-0/+2
| | | | | | | (e.g., ``BaseException(1,2,3)[0:2]``). Discovered in Python 2.5.0 by Thomas Heller and reported to python-dev. This should be backported to 2.5 .
* Accidentally didn't commit Misc/NEWS entry on when __unicode__() was removedBrett Cannon2006-09-201-0/+3
| | | | from exceptions.
* Fixes a bug with bsddb.DB.stat where the flags and txn keywordGregory P. Smith2006-09-191-0/+2
| | | | | | arguments are transposed. (reported by Louis Zechtzer) ..already committed to release24-maint ..needs committing to release25-maint
* Patch #1557515: Add RLIMIT_SBSIZE.Martin v. Löwis2006-09-161-0/+2
|
* Forward-port of rev. 51857:Georg Brandl2006-09-111-0/+3
| | | | | | | | | | | Building with HP's cc on HP-UX turned up a couple of problems. _PyGILState_NoteThreadState was declared as static inconsistently. Make it static as it's not necessary outside of this module. Some tests failed because errno was reset to 0. (I think the tests that failed were at least: test_fcntl and test_mailbox). Ensure that errno doesn't change after a call to Py_END_ALLOW_THREADS. This only affected debug builds.
* Forward port of 51850 from release25-maint branch.Neal Norwitz2006-09-111-0/+2
| | | | | | | As mentioned on python-dev, reverting patch #1504333 because it introduced an infinite loop in rev 47154. This patch also adds a test to prevent the regression.
* Add missing NEWS entry for rev 51803Nick Coghlan2006-09-081-0/+3
|
* Typo fixAndrew M. Kuchling2006-09-071-1/+1
|
* Fixed subprocess bug #1531862 again, after removing testsGustavo Niemeyer2006-09-071-0/+2
| | | | offending buildbot
* Add news item for bug fix of SF bug report #1546372.Marc-André Lemburg2006-09-061-0/+7
|
* Fix missing import of the types module in logging.config.Georg Brandl2006-09-061-0/+6
|
* with and as are now keywords. There are some generated files I can't recreate.Neal Norwitz2006-09-061-0/+2
|
* Bug #1550983: emit better error messages for erroneous relativeGeorg Brandl2006-09-061-0/+3
| | | | imports (if not in package and if beyond toplevel package).
* Bug #1551427: fix a wrong NULL pointer check in the win32 versionGeorg Brandl2006-09-061-0/+3
| | | | of os.urandom().
* Revert 51758 because it broke all the buildbotsNeal Norwitz2006-09-061-2/+0
|
* Fixing #1531862: Do not close standard file descriptors in theGustavo Niemeyer2006-09-061-0/+2
| | | | subprocess module.
* Fix a typo: 2013 -> 0213Hye-Shik Chang2006-09-051-1/+1
|
* Fix a few bugs on cjkcodecs found by Oren Tirosh:Hye-Shik Chang2006-09-051-0/+6
| | | | | | | | - gbk and gb18030 codec now handle U+30FB KATAKANA MIDDLE DOT correctly. - iso2022_jp_2 codec now encodes into G0 for KS X 1001, GB2312 codepoints to conform the standard. - iso2022_jp_3 and iso2022_jp_2004 codec can encode JIS X 2013:2 codepoints now.
* Bug #1520864 (again): unpacking singleton tuples in list comprehensions andNeal Norwitz2006-09-051-0/+5
| | | | | | | | | | | | | generator expressions (x for x, in ... ) works again. Sigh, I only fixed for loops the first time, not list comps and genexprs too. I couldn't find any more unpacking cases where there is a similar bug lurking. This code should be refactored to eliminate the duplication. I'm sure the listcomp/genexpr code can be refactored. I'm not sure if the for loop can re-use any of the same code though. Will backport to 2.5 (the only place it matters).
* Patch #1540470, for OpenBSD 4.0. Backport candidate for 2.[34].Neal Norwitz2006-09-051-0/+2
|
* Add a NEWS entry for str.rpartition() changeNeal Norwitz2006-09-051-0/+3
|
* This was found by Guido AFAIK on p3yk (sic) branch.Neal Norwitz2006-09-051-0/+3
|
* Fix SF bug #1546288, crash in dict_equal.Neal Norwitz2006-09-051-1/+3
|
* "Conceptual" merge of rev 51711 from the 2.5 branch.Tim Peters2006-09-051-2/+5
| | | | | | | | | | | | i_divmod(): As discussed on Python-Dev, changed the overflow checking to live happily with recent gcc optimizations that assume signed integer arithmetic never overflows. This differs from the corresponding change on the 2.5 and 2.4 branches, using a less obscure approach, but one that /may/ tickle platform idiocies in their definitions of LONG_MIN. The 2.4 + 2.5 change avoided introducing a dependence on LONG_MIN, at the cost of substantially goofier code.
* NEWS entry on trunk for decimal module changesNick Coghlan2006-09-031-2/+5
|