Fred Drake [Tue, 10 Sep 2002 21:59:17 +0000 (21:59 +0000)]
Clarify who maintains Tkinter and who maintains Tk.
Guido van Rossum [Tue, 10 Sep 2002 21:57:14 +0000 (21:57 +0000)]
At Jim Fulton's request, increase the maxstring value of _saferepr to
a more reasonable value.
Backport candidate.
Tim Peters [Tue, 10 Sep 2002 21:19:55 +0000 (21:19 +0000)]
I left some debugging junk in here; removed it. Also replaced a few
more instances of the bizarre "del f; del m" ways to spell .close() (del
won't do any good here under Jython, etc).
Jack Jansen [Tue, 10 Sep 2002 21:15:44 +0000 (21:15 +0000)]
All set for 2.3 installer, except for upgrade of Vise version.
Tim Peters [Tue, 10 Sep 2002 20:49:15 +0000 (20:49 +0000)]
A few days ago a test was added here to ensure that creating an mmap
with a size larger than the underlying file worked on Windows. It
does <wink>. However, merely creating an mmap that way has the side
effect of growing the file on disk to match the specified size. A
*later* test assumed that the file on disk was still exactly as it was
before the new "size too big" test was added, but that's no longer true.
So added a hack at the end of the "size too big" test to truncate the
disk file back to its original size on Windows.
Jack Jansen [Tue, 10 Sep 2002 20:07:34 +0000 (20:07 +0000)]
Fixed typo spotted by Whomas Touters.
Barry Warsaw [Tue, 10 Sep 2002 16:14:56 +0000 (16:14 +0000)]
_parsebody(): Instead of raising a BoundaryError when no start
boundary could be found -- in a lax parser -- the entire body is
assigned to the message payload.
Barry Warsaw [Tue, 10 Sep 2002 16:13:45 +0000 (16:13 +0000)]
Import _isstring() from the compatibility layer.
_handle_text(): Use _isstring() for stringiness test.
_handle_multipart(): Add a test before the ListType test, checking for
stringiness of the payload. String payloads for multitypes means a
message with broken MIME chrome was parsed by a lax parser. Instead
of raising a BoundaryError in those cases, the entire body is assigned
to the message payload (but since the content type is still
multipart/*, the Generator needs to be updated too).
Barry Warsaw [Tue, 10 Sep 2002 16:09:06 +0000 (16:09 +0000)]
_isstring(): Factor out "stringiness" test, e.g. for StringType or
UnicodeType, which is different between Python 2.1 and 2.2.
Barry Warsaw [Tue, 10 Sep 2002 15:57:29 +0000 (15:57 +0000)]
_ascii_split(): Don't lstrip continuation lines. Closes SF bug #601392.
Barry Warsaw [Tue, 10 Sep 2002 15:46:44 +0000 (15:46 +0000)]
test_splitting_first_line_only_is_long(): New test for SF bug #601392,
broken wrapping of long ASCII headers.
Barry Warsaw [Tue, 10 Sep 2002 15:43:30 +0000 (15:43 +0000)]
A sample message with broken MIME boundaries.
Tim Peters [Tue, 10 Sep 2002 15:37:28 +0000 (15:37 +0000)]
extract_time(): Squash compiler warning about possibly information-
losing implicit double->long cast.
Martin v. Löwis [Tue, 10 Sep 2002 15:04:41 +0000 (15:04 +0000)]
Add missing return statement.
Raymond Hettinger [Tue, 10 Sep 2002 13:48:01 +0000 (13:48 +0000)]
Document type and semantics of the tp_print return value. Closes SF 606464.
Jack Jansen [Tue, 10 Sep 2002 12:32:47 +0000 (12:32 +0000)]
Added include guards and C++ extern "C" {} constructs. Partial fix for #607253.
Bugfix candidate.
Jack Jansen [Tue, 10 Sep 2002 12:22:32 +0000 (12:22 +0000)]
Reverted previous change, I was confused.
Martin v. Löwis [Tue, 10 Sep 2002 09:16:13 +0000 (09:16 +0000)]
Use utimes(2) where available to support microsecond timestamps.
Martin v. Löwis [Mon, 9 Sep 2002 16:17:47 +0000 (16:17 +0000)]
Always generate floats for stat_result; fix configure test.
Martin v. Löwis [Mon, 9 Sep 2002 14:24:16 +0000 (14:24 +0000)]
Patch #606592: Subsecond timestamps in stat_result.
Andrew M. Kuchling [Mon, 9 Sep 2002 12:16:58 +0000 (12:16 +0000)]
The .preprocess() method didn't work, because it didn't add the input file
to the command-line arguments. Fix this by adding the source filename.
Andrew M. Kuchling [Mon, 9 Sep 2002 12:10:00 +0000 (12:10 +0000)]
Include an empty body when checking for a header file
(Bugfix candidate for 2.2, and likely 2.1 as well)
Martin v. Löwis [Mon, 9 Sep 2002 06:17:05 +0000 (06:17 +0000)]
Fix escaping of non-ASCII characters.
Raymond Hettinger [Sun, 8 Sep 2002 22:26:13 +0000 (22:26 +0000)]
Fix typo. Close SF Bug 606354.
Raymond Hettinger [Sun, 8 Sep 2002 21:10:54 +0000 (21:10 +0000)]
Clarified that the footnote applies to versions 1.5 and after instead of
just version 1.5. Closes SF bug 577793.
Raymond Hettinger [Sun, 8 Sep 2002 20:43:59 +0000 (20:43 +0000)]
shutil.copyfile(src,dst) was clobbering the file when the src and dst were
the same. Added check to verify the two names are not the same. Does not
check the actual files to see if there is a symbolic link.
Closes SF bug 490165 and Tzot's patch 604600.
Raymond Hettinger [Sun, 8 Sep 2002 04:39:28 +0000 (04:39 +0000)]
Fix API typo. The write buffer is not const. Closes SF 606216.
Raymond Hettinger [Sun, 8 Sep 2002 03:42:01 +0000 (03:42 +0000)]
Extended IDLE's open module menu item to handle hierarchical module names.
Will look at doing something similar in import.c so that the effort won't
have to be repeated elsewhere.
Closes SF patch 600152.
Jeremy Hylton [Sun, 8 Sep 2002 00:14:54 +0000 (00:14 +0000)]
A little refactoring.
Add read(), write(), and readwrite() helper functions to shorten poll
functions. Use get() instead of try/except KeyError for lookup.
XXX How could the lookup ever fail?
Remove module-level DEBUG flag.
Use iteritems() instead of items() when walking the socket map.
Reformat the functions I touched so that are consistently Pythonic.
Skip Montanaro [Sat, 7 Sep 2002 18:48:14 +0000 (18:48 +0000)]
tightened up the definition of \b and \B some more based upon discussion
after the last checkin.
Neal Norwitz [Sat, 7 Sep 2002 05:56:21 +0000 (05:56 +0000)]
Try to get test to pass on Windows
Raymond Hettinger [Sat, 7 Sep 2002 04:48:03 +0000 (04:48 +0000)]
Change UserDict to IterableUserDict
Jack Jansen [Sat, 7 Sep 2002 00:10:31 +0000 (00:10 +0000)]
Next few steps towards a 2.3 installer.
Jack Jansen [Fri, 6 Sep 2002 23:37:07 +0000 (23:37 +0000)]
First steps towards a 2.3 installer.
Jack Jansen [Fri, 6 Sep 2002 23:33:40 +0000 (23:33 +0000)]
Enable _AH module.
Jack Jansen [Fri, 6 Sep 2002 23:33:31 +0000 (23:33 +0000)]
Import Carbon.AH, not Carbon.Help
Jack Jansen [Fri, 6 Sep 2002 23:03:32 +0000 (23:03 +0000)]
Reorganized order of help menu, and don't show Carbon documentation
entries on OS9 (where they are never available, and simply disabling
them might lead people to think otherwise).
Jack Jansen [Fri, 6 Sep 2002 22:59:00 +0000 (22:59 +0000)]
Silly me, I enabled the old help module. Fixed.
Jack Jansen [Fri, 6 Sep 2002 22:41:03 +0000 (22:41 +0000)]
Added carbon Help module.
Jack Jansen [Fri, 6 Sep 2002 21:59:21 +0000 (21:59 +0000)]
Upped the stack size to 256KB. test_class ran afoul of the 64K limit, and this is probably a better fix than lowering the recursion limit.
Jack Jansen [Fri, 6 Sep 2002 21:57:50 +0000 (21:57 +0000)]
Skip UDP testing for MacPython (for now), it hangs. This may be due to
GUSI/Threading interaction, I'm not sure, but I don't have the time to fix this right now.
Jack Jansen [Fri, 6 Sep 2002 21:55:47 +0000 (21:55 +0000)]
Updated the notes on building a binary installer.
Jack Jansen [Fri, 6 Sep 2002 21:55:13 +0000 (21:55 +0000)]
The script was very sloppy about which variables held source pathnames
and which held destination pathnames. Fixed.
Jack Jansen [Fri, 6 Sep 2002 21:00:55 +0000 (21:00 +0000)]
Fixed a typo in the binary install notes
rewrapped: as usual with my files everything was far wider than 80 chars.
Jack Jansen [Fri, 6 Sep 2002 20:43:28 +0000 (20:43 +0000)]
Get rid of non-ascii characters.
Jack Jansen [Fri, 6 Sep 2002 20:42:27 +0000 (20:42 +0000)]
Use PyString_CHECK_INTERNED.
Jack Jansen [Fri, 6 Sep 2002 20:24:51 +0000 (20:24 +0000)]
Started on documentation for building a MacOSX binary installer.
Unfinished.
Jack Jansen [Fri, 6 Sep 2002 20:23:09 +0000 (20:23 +0000)]
Remove .pyo files too.
Jack Jansen [Fri, 6 Sep 2002 19:47:49 +0000 (19:47 +0000)]
Script to generate .pkg packages, donated by Dinu Gherman. This is his
original code, it still needs fiddling to make it work in general
circumstances.
Raymond Hettinger [Fri, 6 Sep 2002 19:36:31 +0000 (19:36 +0000)]
Have os.environ() inherit from the iterable version of UserDict.
Closes SF bug 605731.
Raymond Hettinger [Fri, 6 Sep 2002 18:06:04 +0000 (18:06 +0000)]
Added a tutorial note and example regarding the scope of loop variables
in a list comprehension. Includes a justification and a comparision
to regular for-loops.
Closes SF bug 605047.
Walter Dörwald [Fri, 6 Sep 2002 17:21:40 +0000 (17:21 +0000)]
Add a test case that checks that the proper exception is raises
when the replacement from an encoding error callback is itself
unencodable.
Walter Dörwald [Fri, 6 Sep 2002 16:15:58 +0000 (16:15 +0000)]
Apply diff3.txt (plus additional documentation)
from SF patch http://www.python.org/sf/554192
This adds two new functions to mimetypes:
guess_all_extensions() which returns a list of all known
extensions for a mime type, and add_type() which adds one
mapping between a mime type and an extension.
Skip Montanaro [Fri, 6 Sep 2002 14:38:23 +0000 (14:38 +0000)]
update docs to reflect that \b considers underscore to be part of a word.
Barry Warsaw [Fri, 6 Sep 2002 03:56:26 +0000 (03:56 +0000)]
test_set_param(), test_del_param(): Test RFC 2231 encoding support by
Oleg Broytmann in SF patch #600096. Whitespace normalized by Barry.
Barry Warsaw [Fri, 6 Sep 2002 03:55:04 +0000 (03:55 +0000)]
_formatparam(), set_param(): RFC 2231 encoding support by Oleg
Broytmann in SF patch #600096. Specifically, the former function now
encodes the triplets, while the latter adds optional charset and
language arguments.
Barry Warsaw [Fri, 6 Sep 2002 03:41:27 +0000 (03:41 +0000)]
test_mondo_message(): "binary" is not a legal content type, so with
the previous RFC 2045, $5.2 repair to get_content_type() this
subpart's type will now be text/plain.
Barry Warsaw [Fri, 6 Sep 2002 03:39:59 +0000 (03:39 +0000)]
test_replace_header(): New test for Message.replace_header().
Barry Warsaw [Fri, 6 Sep 2002 03:38:12 +0000 (03:38 +0000)]
replace_header(): New method given by Skip Montanaro in SF patch
#601959. Modified slightly by Barry (who added the KeyError in case
the header is missing.
Neal Norwitz [Thu, 5 Sep 2002 21:48:07 +0000 (21:48 +0000)]
SF bug # 585792, Invalid mmap crashes Python interpreter
Raise ValueError if user passes a size to mmap which is larger
than the file.
Neal Norwitz [Thu, 5 Sep 2002 21:42:24 +0000 (21:42 +0000)]
Added "that" to correct grammar, the rest is due to wrapping
Neal Norwitz [Thu, 5 Sep 2002 21:32:55 +0000 (21:32 +0000)]
PyObject_RichCompareBool() already returns -1, 0, or 1, so return its value
Neal Norwitz [Thu, 5 Sep 2002 21:31:04 +0000 (21:31 +0000)]
--with(out)-thread is deprecated according to configure --help
Neal Norwitz [Thu, 5 Sep 2002 21:08:25 +0000 (21:08 +0000)]
SF # 555779, import user doesn't work with CGIs
Raymond Hettinger [Thu, 5 Sep 2002 20:18:08 +0000 (20:18 +0000)]
Micro-optimization for list_contains. Factored double if test
out of the loop.
Raymond Hettinger [Thu, 5 Sep 2002 14:23:49 +0000 (14:23 +0000)]
Micro-optimization for list_contains. Factored double if test
out of the loop.
Kurt B. Kaiser [Thu, 5 Sep 2002 02:31:20 +0000 (02:31 +0000)]
M PyShell.py
M RemoteDebugger.py
M ScriptBinding.py
Restart the execution server with a clean environment and execute the
active module from scratch upon activation of Run/F5.
Add functionality to PyShell.py to restart the execution server in a new
subprocess. The server makes a connection to the Idle client which sends a
block of code to be executed.
Modify ScriptBinding.py to restart the subprocess upon Run/F5, assuming that
an execution is not currently in progress. Remove Import Module functionality,
not required now that the code is executed in a clean environment.
If the Debugger is active, also restart the subprocess side of the split
debugger. Add functionality to RemoteDebugger.py to support this.
At this time breakpoints will be lost in the subprocess if Run/F5 is activated.
A subsequent checkin of PyShell.py will implement reloading of the breakpoints
into the subprocess debugger. I'm keeping this separate as the design may
change.
Raymond Hettinger [Thu, 5 Sep 2002 01:14:07 +0000 (01:14 +0000)]
smptlib did not handle empty addresses.
The problem was that it expected rfc822.parseaddr() to return None
upon a parse failure. The actual, documented return value for a
parse failure is (None, None).
Closes SF bug 602029.
Raymond Hettinger [Wed, 4 Sep 2002 23:52:42 +0000 (23:52 +0000)]
Fix typo
Walter Dörwald [Wed, 4 Sep 2002 20:31:32 +0000 (20:31 +0000)]
Change the unicode.translate docstring to document that
Unicode strings (with arbitrary length) are allowed
as entries in the unicode.translate mapping.
Add a test case for multicharacter replacements.
(Multicharacter replacements were enabled by the
PEP 293 patch)
Raymond Hettinger [Wed, 4 Sep 2002 15:12:07 +0000 (15:12 +0000)]
Fix typo
Guido van Rossum [Wed, 4 Sep 2002 11:29:45 +0000 (11:29 +0000)]
In doc strings, use 'k in D' rather than D.has_key(k).
Skip Montanaro [Tue, 3 Sep 2002 21:25:14 +0000 (21:25 +0000)]
added a bit about the change to the thread ticker
Guido van Rossum [Tue, 3 Sep 2002 21:10:10 +0000 (21:10 +0000)]
Delete the %c test from test_date_time() untill Brett Cannon has time
to fix it. (It fails when the day of the month is a 1-digit number,
because %c produces space+digit there, while strptime seems to expect
zero+digit somehow.)
Jeremy Hylton [Tue, 3 Sep 2002 20:49:06 +0000 (20:49 +0000)]
Move code for reading chunked responses in helper function,
along with some small changes (e.g. use of +=).
Skip Montanaro [Tue, 3 Sep 2002 20:24:31 +0000 (20:24 +0000)]
missed this one on the previous multi-file checkin - see
http://python.org/sf/602191
Guido van Rossum [Tue, 3 Sep 2002 20:24:09 +0000 (20:24 +0000)]
Add a custom __str__ method to KeyError that applies repr() to the
missing key. (Also added a guard to SyntaxError__str__ to prevent
calling PyString_Check(NULL).)
Skip Montanaro [Tue, 3 Sep 2002 20:19:06 +0000 (20:19 +0000)]
Bump default check interval to 100 instructions. Computers are much faster
than when this interval was first established. Checking too frequently just
adds needless overhead because most of the time there is nothing to do and
no other threads ready to run.
Skip Montanaro [Tue, 3 Sep 2002 20:10:45 +0000 (20:10 +0000)]
replace thread state objects' ticker and checkinterval fields with two
globals, _Py_Ticker and _Py_CheckInterval. This also implements Jeremy's
shortcut in Py_AddPendingCall that zeroes out _Py_Ticker. This allows the
test in the main loop to only test a single value.
The gory details are at
http://python.org/sf/602191
Jeremy Hylton [Tue, 3 Sep 2002 19:24:24 +0000 (19:24 +0000)]
SF bug [ 600488 ] Robustness tweak to httplib.py
If the transfer-encoding is unknown, ignore it. Suggested by Tom
Emerson.
Guido van Rossum [Tue, 3 Sep 2002 19:17:47 +0000 (19:17 +0000)]
testConnectTimeout(): set the timeout to a smaller value; 0.02
sometimes wasn't short enough.
Guido van Rossum [Tue, 3 Sep 2002 19:10:18 +0000 (19:10 +0000)]
Update the module doc comment.
Guido van Rossum [Tue, 3 Sep 2002 18:42:21 +0000 (18:42 +0000)]
(Most of) SF patch 601369 (Christos Georgiou): obmalloc,structmodule:
64bit, big endian (issue 2 only).
This adds a bunch of memcpy calls via a temporary variable to avoid
alignment errors. That's needed for some platforms.
Guido van Rossum [Tue, 3 Sep 2002 16:36:17 +0000 (16:36 +0000)]
Fix for SF bug 601077 by Zack Weinberg.
The new execvpe code would sometimes do the wrong thing when a
non-executable file existed earlier in the path and an executable file
of the same name existed later in the path. This patch restores the
proper behavior (which is to execute the second file). When only a
non-executable file exists, the correct error is still reported.
Tim Peters [Tue, 3 Sep 2002 15:39:58 +0000 (15:39 +0000)]
Removed reliance on gcc/C99 extension.
Walter Dörwald [Tue, 3 Sep 2002 13:53:40 +0000 (13:53 +0000)]
Check whether a string resize is necessary at the end
of PyString_DecodeEscape(). This prevents a call to
_PyString_Resize() for the empty string, which would
result in a PyErr_BadInternalCall(), because the
empty string has more than one reference.
This closes SF bug http://www.python.org/sf/603937
Skip Montanaro [Tue, 3 Sep 2002 13:25:17 +0000 (13:25 +0000)]
expose PYTHON_API_VERSION macro as sys.api_version. Closes patch # 601456.
Martin v. Löwis [Tue, 3 Sep 2002 11:52:44 +0000 (11:52 +0000)]
Ignore encoding declarations inside strings. Fixes #603509.
Andrew M. Kuchling [Tue, 3 Sep 2002 00:53:21 +0000 (00:53 +0000)]
Add reminder about PEP293
Kurt B. Kaiser [Mon, 2 Sep 2002 21:29:40 +0000 (21:29 +0000)]
(Re)Apply Sourceforge Python patch 520483, Sourceforge Idlefork patch
521908 (again) to MAIN
The patch applied by Steven was inadvertently reverted during the
transition to GRPC.
Python 2.3a0 (#3, May 8 2002, 23:37:01)
[GCC egcs-2.91.66
19990314/Linux (egcs-1.1.2 release)] on linux2
Type "copyright", "credits" or "license" for more information.
GRPC IDLE Fork 0.8.2
>>> print u'\xbfQu\xe9 pas\xf3?'
¿Qué pasó?
Modified Files:
OutputWindow.py
Walter Dörwald [Mon, 2 Sep 2002 18:22:32 +0000 (18:22 +0000)]
Check string for NULL before using it to format the error message.
(Spotted by Neal Norwitz)
Walter Dörwald [Mon, 2 Sep 2002 16:41:55 +0000 (16:41 +0000)]
Removed bogus PyUnicodeTranslateError_GetEncoding, as
UnicodeTranslateError doesn't have an encoding attribute.
(Spotted by Neal Norwitz)
Walter Dörwald [Mon, 2 Sep 2002 16:10:06 +0000 (16:10 +0000)]
Limit the length of attribute names in exception messages
to prevent buffer overflows (spotted by Neal Norwitz).
Fred Drake [Mon, 2 Sep 2002 15:54:06 +0000 (15:54 +0000)]
Minor change for symmetry with PyXML: PyDoc_STR should not include
the "safety" parentheses since some older compilers refuse to compile
the module then, claiming that static initializers are non-constant.
This doesn't actually make any difference for Python, since these
definitions are not used when compiling with a version of Python that
already defines the PyDoc_* macros.
Walter Dörwald [Mon, 2 Sep 2002 13:14:32 +0000 (13:14 +0000)]
PEP 293 implemention (from SF patch http://www.python.org/sf/432401)
Jack Jansen [Mon, 2 Sep 2002 12:29:11 +0000 (12:29 +0000)]
Generate pythonw.sh on the fly.
Use the build python for as many things as possible.
Jack Jansen [Mon, 2 Sep 2002 12:16:00 +0000 (12:16 +0000)]
Pass -x badsyntax to compileall.
Tweaks to make builds work for non-standard dstroot.
Barry Warsaw [Sun, 1 Sep 2002 21:04:43 +0000 (21:04 +0000)]
_structure(): Use .get_content_type()
Guido van Rossum [Sun, 1 Sep 2002 15:06:28 +0000 (15:06 +0000)]
SF bug 601775 - some int results that should be bool.
Raymond Hettinger [Sat, 31 Aug 2002 15:51:04 +0000 (15:51 +0000)]
Added comparison functions to dict proxies.
Now all non-mutating dict methods are in the proxy also.
Inspired by SF bug #602232,