summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Don't drop old slots if _unicode_to_string did not change anything.Martin v. Löwis2002-10-141-2/+4
|
* Allow Unicode strings in __slots__, converting them to byte strings.Martin v. Löwis2002-10-141-0/+39
|
* Allow Unicode strings as message and module name.Martin v. Löwis2002-10-141-2/+2
|
* [SF bug 620364]Guido van Rossum2002-10-141-0/+3
| | | | | In build_extensions(), don't proceed if srcdir is None. Probably somebody who tried this on Windows. :-)
* Convert empty string literal to string. Speed up creation of idmap.Martin v. Löwis2002-10-141-3/+4
|
* Fix for 1.33: urlsplit() should only add '//' if scheme != ''.Guido van Rossum2002-10-142-2/+7
| | | | Will add test and backport.
* I'd forgotten that tcsh was the default for 10.1, but SF's 10.1 systemBarry Warsaw2002-10-141-4/+5
| | | | | uses bash and so does my 10.2 system. "limit stacksize 2048" is the right invocation for tcsh/csh.
* There was a typo in the MacOSX section regarding the stacksize issue.Barry Warsaw2002-10-141-4/+5
| | | | | There's no limit command near as I can tell. Should be the bash builtin ulimit command.
* append(): Fixing the test for convertability after consultation withBarry Warsaw2002-10-141-14/+28
| | | | | | | Ben. If s is a byte string, make sure it can be converted to unicode with the input codec, and from unicode with the output codec, or raise a UnicodeError exception early. Skip this test (and the unicode->byte string conversion) when the charset is our faux 8bit raw charset.
* Use the same shade of blue as the site navigation areas.Fred Drake2002-10-141-2/+2
|
* Two new tests for splitting (or not splitting) 8-bit header data.Barry Warsaw2002-10-141-0/+21
|
* Bump the __version__Barry Warsaw2002-10-141-1/+1
|
* __init__(): Fix an invariant, that the charset item in a chunk tupleBarry Warsaw2002-10-141-2/+11
| | | | | | | | | | must be a Charset instance, not a string. The bug here was that self._charset wasn't being converted to a Charset instance so later .append() calls which used the default charset would break. _split(): If the charset of the chunk is '8bit', return the chunk unchanged. We can't safely split it, so this is the avenue of least harm.
* _split_header(): If we have a header which is a byte string containingBarry Warsaw2002-10-141-1/+17
| | | | | | | | | 8-bit data, we cannot split it safely, so return the original string unchanged. _is8bitstring(): Helper function which returns True when we have a byte string that contains non-ascii characters (i.e. mysterious 8-bit data).
* CHARSETS: Add faux '8bit' encoding for representing raw 8-bit data forBarry Warsaw2002-10-141-0/+2
| | | | which we know nothing else.
* Minor refactoring to avoid code duplication.Fred Drake2002-10-141-17/+10
|
* Update list of Windows buildnos for 2.2.2 final.Tim Peters2002-10-141-0/+2
|
* Add finditer to __all__ (when defining it at all).Guido van Rossum2002-10-141-0/+1
| | | | SF bug 585882. Will forward-port.
* Fix copyright date: the core of this code actually dates back to 1999Greg Ward2002-10-131-2/+2
| | | | (rev. 1.4 of distutils/fancy_getopt.py).
* Patch #611760: read archives with comments.Martin v. Löwis2002-10-131-23/+48
|
* Patch #621891: Add askopenfile{name}s.Martin v. Löwis2002-10-132-5/+38
|
* Patch #621205: Tkinter updates for tk8.4.Martin v. Löwis2002-10-133-26/+551
|
* _encode_chunks(), encode(): Don't modify self._chunks. As Ben says:Barry Warsaw2002-10-131-23/+22
| | | | | | | | | Also, it fixes a really egregious error in Header.encode() (really in Header._encode_chunks()) that could cause a header to grow and grow each time encode() was called if output_codec was different from input_codec. Also, fix a typo.
* Update the urls and other information about the add-on Japanese,Barry Warsaw2002-10-131-13/+8
| | | | Korean, and Chinese codecs.
* Fix tildes in URLs. Closes SF bug #614821.Fred Drake2002-10-121-3/+4
|
* Darn! Don't divide by zero. Bad fix. :-)Guido van Rossum2002-10-111-1/+1
|
* Fix a few docstrings, remove extra commasNeal Norwitz2002-10-111-3/+3
|
* SF # 539360, webbrowser.py and konqueror, by Andy McKayNeal Norwitz2002-10-111-2/+2
| | | | | | | Fix Konqueror so it can start when calling open(). The assert needed to be on the raw URL, not openURL 'url...' Will backport.
* SF #621948, update docstring for md5 by David M. Cooke. Will backport.Neal Norwitz2002-10-111-0/+1
|
* Clarify deprecation of the floor div operator, modulo operator,Raymond Hettinger2002-10-111-5/+4
| | | | | | and divmod() function for complex numbers. Closes SF Bug 621708: Unclear deprecation.
* Add checks for size overflow on list*n, list+list, tuple+tuple.Guido van Rossum2002-10-112-0/+6
| | | | Will backport.
* PyObject_Init[Var] is almost always called from the PyObject_NEW[_VAR]Guido van Rossum2002-10-111-10/+4
| | | | | | | | | | macros. The 'op' argument is then the result from PyObject_MALLOC, and that can of course be NULL. In that case, PyObject_Init[Var] would raise a SystemError with "NULL object passed to PyObject_Init[Var]". But there's nothing the caller of the macro can do about this. So PyObject_Init[Var] should call just PyErr_NoMemory. Will backport.
* The MS resource compiler simply cannot be convinced to do arithmeticTim Peters2002-10-112-2/+56
| | | | | | correctly. So field3.py is a Python program that can. This injects another manual step into the Python release process for Windows; so it goes.
* Repair the DLL name -- this has to match the major.minor version numbers.Tim Peters2002-10-111-1/+1
|
* Typo in docstringJeremy Hylton2002-10-111-1/+1
|
* Fix for SF bug #599836: Don't duplicate headers.Jeremy Hylton2002-10-111-2/+3
| | | | | If the request object has a header, it should override the default header provided by the OpenerDirector.
* Allow restricted code to get byteorder, getdefaultencoding(),Fred Drake2002-10-111-2/+3
| | | | getrefcount(), maxunicode, and version_info.
* Trying alphabet againJeremy Hylton2002-10-111-2/+2
|
* Sort names alphabetically.Jeremy Hylton2002-10-111-2/+2
|
* Add hexversion to list of safe sys names (SF bug 621447).Jeremy Hylton2002-10-111-1/+1
| | | | Bug fix candidate.
* Use fdopen() to create file from fd.Jeremy Hylton2002-10-111-1/+1
|
* A test for the recent overflow-in-format-crash bug.Michael W. Hudson2002-10-111-2/+14
| | | | | Only runs when sys.maxint == 2**32 - 1; different things go wrong on a 64-bit box.
* Back out news about SF patch 479898 -- it's withdrawn.Guido van Rossum2002-10-111-6/+0
|
* Back out #479898.Martin v. Löwis2002-10-114-90/+24
|
* Fix a nasty endcase reported by Armin Rigo in SF bug 618623:Guido van Rossum2002-10-112-4/+12
| | | | | | | | | | | | | '%2147483647d' % -123 segfaults. This was because an integer overflow in a comparison caused the string resize to be skipped. After fixing the overflow, this could call _PyString_Resize() with a negative size, so I (1) test for that and raise MemoryError instead; (2) also added a test for negative newsize to _PyString_Resize(), raising SystemError as for all bad arguments. An identical bug existed in unicodeobject.c, of course. Will backport to 2.2.2.
* Add Greg Copeland for SF # 585913, Adds Galeon support to webbrowser.pyNeal Norwitz2002-10-101-0/+1
|
* SF # 585913, Adds Galeon support to webbrowser.pyNeal Norwitz2002-10-101-1/+33
|
* Remove mentionings of DOS.Martin v. Löwis2002-10-107-13/+10
|
* Remove more DOS support.Martin v. Löwis2002-10-101-61/+0
|
* Document when unittest was added to Python.Fred Drake2002-10-101-0/+1
|