]> granicus.if.org Git - python/log
python
22 years agoEnable _AH module.
Jack Jansen [Fri, 6 Sep 2002 23:33:40 +0000 (23:33 +0000)]
Enable _AH module.

22 years agoImport Carbon.AH, not Carbon.Help
Jack Jansen [Fri, 6 Sep 2002 23:33:31 +0000 (23:33 +0000)]
Import Carbon.AH, not Carbon.Help

22 years agoReorganized order of help menu, and don't show Carbon documentation
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).

22 years agoSilly me, I enabled the old help module. Fixed.
Jack Jansen [Fri, 6 Sep 2002 22:59:00 +0000 (22:59 +0000)]
Silly me, I enabled the old help module. Fixed.

22 years agoAdded carbon Help module.
Jack Jansen [Fri, 6 Sep 2002 22:41:03 +0000 (22:41 +0000)]
Added carbon Help module.

22 years agoUpped the stack size to 256KB. test_class ran afoul of the 64K limit, and this is...
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.

22 years agoSkip UDP testing for MacPython (for now), it hangs. This may be due to
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.

22 years agoUpdated the notes on building a binary installer.
Jack Jansen [Fri, 6 Sep 2002 21:55:47 +0000 (21:55 +0000)]
Updated the notes on building a binary installer.

22 years agoThe script was very sloppy about which variables held source pathnames
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.

22 years agoFixed a typo in the binary install notes
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.

22 years agoGet rid of non-ascii characters.
Jack Jansen [Fri, 6 Sep 2002 20:43:28 +0000 (20:43 +0000)]
Get rid of non-ascii characters.

22 years agoUse PyString_CHECK_INTERNED.
Jack Jansen [Fri, 6 Sep 2002 20:42:27 +0000 (20:42 +0000)]
Use PyString_CHECK_INTERNED.

22 years agoStarted on documentation for building a MacOSX binary installer.
Jack Jansen [Fri, 6 Sep 2002 20:24:51 +0000 (20:24 +0000)]
Started on documentation for building a MacOSX binary installer.
Unfinished.

22 years agoRemove .pyo files too.
Jack Jansen [Fri, 6 Sep 2002 20:23:09 +0000 (20:23 +0000)]
Remove .pyo files too.

22 years agoScript to generate .pkg packages, donated by Dinu Gherman. This is his
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.

22 years agoHave os.environ() inherit from the iterable version of UserDict.
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.

22 years agoAdded a tutorial note and example regarding the scope of loop variables
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.

22 years agoAdd a test case that checks that the proper exception is raises
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.

22 years agoApply diff3.txt (plus additional documentation)
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.

22 years agoupdate docs to reflect that \b considers underscore to be part of a word.
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.

22 years agotest_set_param(), test_del_param(): Test RFC 2231 encoding support by
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.

22 years ago_formatparam(), set_param(): RFC 2231 encoding support by Oleg
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.

22 years agotest_mondo_message(): "binary" is not a legal content type, so with
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.

22 years agotest_replace_header(): New test for Message.replace_header().
Barry Warsaw [Fri, 6 Sep 2002 03:39:59 +0000 (03:39 +0000)]
test_replace_header(): New test for Message.replace_header().

22 years agoreplace_header(): New method given by Skip Montanaro in SF patch
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.

22 years agoSF bug # 585792, Invalid mmap crashes Python interpreter
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.

22 years agoAdded "that" to correct grammar, the rest is due to wrapping
Neal Norwitz [Thu, 5 Sep 2002 21:42:24 +0000 (21:42 +0000)]
Added "that" to correct grammar, the rest is due to wrapping

22 years agoPyObject_RichCompareBool() already returns -1, 0, or 1, so return its value
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

22 years ago--with(out)-thread is deprecated according to configure --help
Neal Norwitz [Thu, 5 Sep 2002 21:31:04 +0000 (21:31 +0000)]
--with(out)-thread is deprecated according to configure --help

22 years agoSF # 555779, import user doesn't work with CGIs
Neal Norwitz [Thu, 5 Sep 2002 21:08:25 +0000 (21:08 +0000)]
SF # 555779, import user doesn't work with CGIs

22 years agoMicro-optimization for list_contains. Factored double if test
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.

22 years agoMicro-optimization for list_contains. Factored double if test
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.

22 years agoM PyShell.py
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.

22 years agosmptlib did not handle empty addresses.
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.

22 years agoFix typo
Raymond Hettinger [Wed, 4 Sep 2002 23:52:42 +0000 (23:52 +0000)]
Fix typo

22 years agoChange the unicode.translate docstring to document that
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)

22 years agoFix typo
Raymond Hettinger [Wed, 4 Sep 2002 15:12:07 +0000 (15:12 +0000)]
Fix typo

22 years agoIn doc strings, use 'k in D' rather than D.has_key(k).
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).

22 years agoadded a bit about the change to the thread ticker
Skip Montanaro [Tue, 3 Sep 2002 21:25:14 +0000 (21:25 +0000)]
added a bit about the change to the thread ticker

22 years agoDelete the %c test from test_date_time() untill Brett Cannon has time
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.)

22 years agoMove code for reading chunked responses in helper function,
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 +=).

22 years agomissed this one on the previous multi-file checkin - see
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

22 years agoAdd a custom __str__ method to KeyError that applies repr() to the
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).)

22 years agoBump default check interval to 100 instructions. Computers are much faster
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.

22 years agoreplace thread state objects' ticker and checkinterval fields with two
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

22 years agoSF bug [ 600488 ] Robustness tweak to httplib.py
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.

22 years agotestConnectTimeout(): set the timeout to a smaller value; 0.02
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.

22 years agoUpdate the module doc comment.
Guido van Rossum [Tue, 3 Sep 2002 19:10:18 +0000 (19:10 +0000)]
Update the module doc comment.

22 years ago(Most of) SF patch 601369 (Christos Georgiou): obmalloc,structmodule:
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.

22 years agoFix for SF bug 601077 by Zack Weinberg.
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.

22 years agoRemoved reliance on gcc/C99 extension.
Tim Peters [Tue, 3 Sep 2002 15:39:58 +0000 (15:39 +0000)]
Removed reliance on gcc/C99 extension.

22 years agoCheck whether a string resize is necessary at the end
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

22 years agoexpose PYTHON_API_VERSION macro as sys.api_version. Closes patch # 601456.
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.

22 years agoIgnore encoding declarations inside strings. Fixes #603509.
Martin v. Löwis [Tue, 3 Sep 2002 11:52:44 +0000 (11:52 +0000)]
Ignore encoding declarations inside strings. Fixes #603509.

22 years agoAdd reminder about PEP293
Andrew M. Kuchling [Tue, 3 Sep 2002 00:53:21 +0000 (00:53 +0000)]
Add reminder about PEP293

22 years ago(Re)Apply Sourceforge Python patch 520483, Sourceforge Idlefork patch
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

22 years agoCheck string for NULL before using it to format the error message.
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)

22 years agoRemoved bogus PyUnicodeTranslateError_GetEncoding, as
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)

22 years agoLimit the length of attribute names in exception messages
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).

22 years agoMinor change for symmetry with PyXML: PyDoc_STR should not include
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.

22 years agoPEP 293 implemention (from SF patch http://www.python.org/sf/432401)
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)

22 years agoGenerate pythonw.sh on the fly.
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.

22 years agoPass -x badsyntax to compileall.
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.

22 years ago_structure(): Use .get_content_type()
Barry Warsaw [Sun, 1 Sep 2002 21:04:43 +0000 (21:04 +0000)]
_structure(): Use .get_content_type()

22 years agoSF bug 601775 - some int results that should be bool.
Guido van Rossum [Sun, 1 Sep 2002 15:06:28 +0000 (15:06 +0000)]
SF bug 601775 - some int results that should be bool.

22 years agoAdded comparison functions to dict proxies.
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,

22 years agoBecause MWH changed the bytecode again, moved the magic number *back*
Guido van Rossum [Sat, 31 Aug 2002 15:16:14 +0000 (15:16 +0000)]
Because MWH changed the bytecode again, moved the magic number *back*
to 62011.  This should get the snake-farm to throw away its old .pyc
files, amongst others.

22 years agoImplemented the Help menu. The Python manual can be viewed (if installed)
Jack Jansen [Sat, 31 Aug 2002 01:25:17 +0000 (01:25 +0000)]
Implemented the Help menu. The Python manual can be viewed (if installed)
and the selection can be looked up, and so can the Carbon manual. From the
help menu you can also get to the online documentation, the Python website
and the MacPython page.

Untested in MacPython-OS9.

22 years agoIf there's an environment variable PYTHONIDEPATH it points to the IDE
Jack Jansen [Sat, 31 Aug 2002 01:22:37 +0000 (01:22 +0000)]
If there's an environment variable PYTHONIDEPATH it points to the IDE
folder. This allows running the IDE from the source tree on OSX.

22 years agoMenuID's are signed.
Jack Jansen [Sat, 31 Aug 2002 01:20:53 +0000 (01:20 +0000)]
MenuID's are signed.

22 years agoTypecode for AHTOCType was wrong. Fixed.
Jack Jansen [Fri, 30 Aug 2002 23:02:09 +0000 (23:02 +0000)]
Typecode for AHTOCType was wrong. Fixed.

22 years agoInitialize self._helpmenu earlier, so we can use gethelpmenu() while
Jack Jansen [Fri, 30 Aug 2002 23:01:28 +0000 (23:01 +0000)]
Initialize self._helpmenu earlier, so we can use gethelpmenu() while
building the user menus.

22 years agoFix for Jaguar: use ln for installing symlinks, install no longer works.
Jack Jansen [Fri, 30 Aug 2002 15:14:02 +0000 (15:14 +0000)]
Fix for Jaguar: use ln for installing symlinks, install no longer works.
Fix for sh: use : in stead of an empty then clause in an if.

22 years agoFurther SET_LINENO reomval fixes. See comments in patch #587933.
Michael W. Hudson [Fri, 30 Aug 2002 13:09:51 +0000 (13:09 +0000)]
Further SET_LINENO reomval fixes.  See comments in patch #587933.

Use a slightly different strategy to determine when not to call the line
trace function.  This removes the need for the RETURN_NONE opcode, so
that's gone again.  Update docs and comments to match.

Thanks to Neal and Armin!

Also add a test suite.  This should have come with the original patch...

22 years agoOn Jaguar the default mode for files in the installed product is 444 (or 555)
Jack Jansen [Fri, 30 Aug 2002 12:56:08 +0000 (12:56 +0000)]
On Jaguar the default mode for files in the installed product is 444 (or 555)
in stead of 644 (755). This makes a subsequent install fail. Changed
the INSTALL_MODE_FLAG to fix this.

22 years agoAdded support for the help menu. Application.gethelpmenu() will return
Jack Jansen [Thu, 29 Aug 2002 22:04:15 +0000 (22:04 +0000)]
Added support for the help menu. Application.gethelpmenu() will return
it.

Also fixed menu IDs to be signed in do_menudispatch. this is an incompatible
change, but I don't think it'll hurt anyone.

22 years agoRevived the Carbon.Help module, but implementing the MacHelp API in stead
Jack Jansen [Thu, 29 Aug 2002 21:09:00 +0000 (21:09 +0000)]
Revived the Carbon.Help module, but implementing the MacHelp API in stead
of the defunct Balloons API. Help tags are TBD, but at least this gives
us access to the help menu.

22 years agoSF #561244: micro optimizations, builtins cannot be NULL, so use Py_INCREF
Neal Norwitz [Thu, 29 Aug 2002 20:25:46 +0000 (20:25 +0000)]
SF #561244: micro optimizations, builtins cannot be NULL, so use Py_INCREF

22 years agoDon't copy the documentation when using Python.app as an applet template.
Jack Jansen [Thu, 29 Aug 2002 20:20:24 +0000 (20:20 +0000)]
Don't copy the documentation when using Python.app as an applet template.

22 years agoMany hopefully benign style clean ups. Still passes the test suite of
Barry Warsaw [Thu, 29 Aug 2002 16:24:50 +0000 (16:24 +0000)]
Many hopefully benign style clean ups.  Still passes the test suite of
course.

22 years agostrptime(): The code that was adding 12 to PM hours was incorrect
Barry Warsaw [Thu, 29 Aug 2002 15:29:49 +0000 (15:29 +0000)]
strptime(): The code that was adding 12 to PM hours was incorrect
because it added it to 12 PM too.  12 PM should be hour 12 not hour
24.

Also cleaned up a minor style nit.  There are more style problems in
this file that I'll clean up next (but I didn't want them to overwhelm
the substance of this fix).

22 years agoThe test I saw failing this morning just happened to be run at 8am
Barry Warsaw [Thu, 29 Aug 2002 15:25:04 +0000 (15:25 +0000)]
The test I saw failing this morning just happened to be run at 8am
localtime, which in -0400 is 12 noon GMT.  The bug boiled down to
broken conversion of 12 PM to hour 12 for the '%I %p' format string.

Added a test for this specific condition: Strptime12AMPMTests.  Fix to
_strptime.py coming momentarily.

22 years agoSped _update().
Raymond Hettinger [Thu, 29 Aug 2002 15:13:50 +0000 (15:13 +0000)]
Sped _update().
Uses the fast update() method when a dictionary is available.

22 years agoUndo Barry's change. This file is not imported, it's fed as input to
Guido van Rossum [Thu, 29 Aug 2002 15:10:30 +0000 (15:10 +0000)]
Undo Barry's change.  This file is not imported, it's fed as input to
the tokenize module by test_tokenize.py.  The FutureWarnings only
appeared during installation, and I've figured out a way to suppress
those in a different way.

22 years agoSuppress warnings when byte-compiling the installed library modules.
Guido van Rossum [Thu, 29 Aug 2002 15:04:37 +0000 (15:04 +0000)]
Suppress warnings when byte-compiling the installed library modules.
This seems the sanest thing to do.

22 years agoRestore the hex/oct constant tests that Barry commented out for fear
Guido van Rossum [Thu, 29 Aug 2002 14:57:26 +0000 (14:57 +0000)]
Restore the hex/oct constant tests that Barry commented out for fear
of FutureWarnings.  Added a comment explaining the situation.

22 years agocomplex() was the only numeric constructor that created a new instance
Raymond Hettinger [Thu, 29 Aug 2002 14:22:51 +0000 (14:22 +0000)]
complex() was the only numeric constructor that created a new instance
when given its own type as an argument.

22 years agoFixed three exceptions in the Plain integers test, although I'm not
Barry Warsaw [Thu, 29 Aug 2002 13:09:47 +0000 (13:09 +0000)]
Fixed three exceptions in the Plain integers test, although I'm not
sure these are the best fixes.

- Test maxint-1 against the negative octal constant -020000000000

- Comment out the tests for oct -1 and hex -1, since 037777777777 and
  0xffffffff raise FutureWarnings now and in Python 2.4 those
  constants will produce positive values, not negative values.  So the
  existing test seems to test something that won't be true in 2.4.

22 years agoThe test_tokenize output has changed slightly, by the addition of some
Barry Warsaw [Thu, 29 Aug 2002 12:56:59 +0000 (12:56 +0000)]
The test_tokenize output has changed slightly, by the addition of some
trailing `L's.

22 years agoDistutils-based script by Bill Fancher to download the Python documentation
Jack Jansen [Wed, 28 Aug 2002 22:22:10 +0000 (22:22 +0000)]
Distutils-based script by Bill Fancher to download the Python documentation
HTML tarball and use it to create a documentation tree readable and
searchable with Apple Help Viewer. The documentation also shows up in
Project Builder (if you add Python.framework to your project).

22 years ago- Install a symlink to the documentation (which lives in the framework)
Jack Jansen [Wed, 28 Aug 2002 21:27:02 +0000 (21:27 +0000)]
- Install a symlink to the documentation (which lives in the framework)
  in Python.app, and refer to it in Info.plist. This makes Apple Help
  Viewer recognize the Python documentation.
- Changed the externally visible name of Python.app to "Python" (was PythonW).

22 years agoDistutils-based script by Bill Fancher to download the Python documentation
Jack Jansen [Wed, 28 Aug 2002 21:23:53 +0000 (21:23 +0000)]
Distutils-based script by Bill Fancher to download the Python documentation
HTML tarball and use it to create a documentation tree readable and
searchable with Apple Help Viewer. The documentation also shows up in
Project Builder (if you add Python.framework to your project).

22 years agoThis file never made it to the repository, somehow.
Jack Jansen [Wed, 28 Aug 2002 21:19:26 +0000 (21:19 +0000)]
This file never made it to the repository, somehow.

22 years agoThese were regenerated some time ago (with ascii chars only and
Jack Jansen [Wed, 28 Aug 2002 21:18:37 +0000 (21:18 +0000)]
These were regenerated some time ago (with ascii chars only and
fully qualified imports) but somehow not checked in yet.

22 years agoInterface to Apple Help Viewer.
Jack Jansen [Wed, 28 Aug 2002 21:16:53 +0000 (21:16 +0000)]
Interface to Apple Help Viewer.

22 years agoQuite down some FutureWarnings.
Barry Warsaw [Wed, 28 Aug 2002 16:36:11 +0000 (16:36 +0000)]
Quite down some FutureWarnings.

22 years agoadd warning about exception messages
Skip Montanaro [Wed, 28 Aug 2002 01:14:57 +0000 (01:14 +0000)]
add warning about exception messages

22 years agoNote change in behavior from 1.5.2. The new argument to NameError is
Raymond Hettinger [Tue, 27 Aug 2002 23:53:23 +0000 (23:53 +0000)]
Note change in behavior from 1.5.2.  The new argument to NameError is
an error message and not just the missing name.

Closes SF Bug 599869.

22 years agoWhitespace normalization.
Barry Warsaw [Tue, 27 Aug 2002 22:38:50 +0000 (22:38 +0000)]
Whitespace normalization.

22 years agoTypo
Barry Warsaw [Tue, 27 Aug 2002 22:34:44 +0000 (22:34 +0000)]
Typo