]> granicus.if.org Git - python/log
python
22 years agoSF # 539360, webbrowser.py and konqueror, by Andy McKay
Neal Norwitz [Fri, 11 Oct 2002 22:04:22 +0000 (22:04 +0000)]
SF # 539360, webbrowser.py and konqueror, by Andy McKay

Fix Konqueror so it can start when calling open().
The assert needed to be on the raw URL, not openURL 'url...'

Will backport.

22 years agoSF #621948, update docstring for md5 by David M. Cooke. Will backport.
Neal Norwitz [Fri, 11 Oct 2002 21:53:01 +0000 (21:53 +0000)]
SF #621948, update docstring for md5 by David M. Cooke.  Will backport.

22 years agoClarify deprecation of the floor div operator, modulo operator,
Raymond Hettinger [Fri, 11 Oct 2002 21:08:02 +0000 (21:08 +0000)]
Clarify deprecation of the floor div operator, modulo operator,
and divmod() function for complex numbers.

Closes SF Bug 621708: Unclear deprecation.

22 years agoAdd checks for size overflow on list*n, list+list, tuple+tuple.
Guido van Rossum [Fri, 11 Oct 2002 21:05:56 +0000 (21:05 +0000)]
Add checks for size overflow on list*n, list+list, tuple+tuple.

Will backport.

22 years agoPyObject_Init[Var] is almost always called from the PyObject_NEW[_VAR]
Guido van Rossum [Fri, 11 Oct 2002 20:37:24 +0000 (20:37 +0000)]
PyObject_Init[Var] is almost always called from the PyObject_NEW[_VAR]
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.

22 years agoThe MS resource compiler simply cannot be convinced to do arithmetic
Tim Peters [Fri, 11 Oct 2002 18:25:52 +0000 (18:25 +0000)]
The MS resource compiler simply cannot be convinced to do arithmetic
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.

22 years agoRepair the DLL name -- this has to match the major.minor version numbers.
Tim Peters [Fri, 11 Oct 2002 17:51:44 +0000 (17:51 +0000)]
Repair the DLL name -- this has to match the major.minor version numbers.

22 years agoTypo in docstring
Jeremy Hylton [Fri, 11 Oct 2002 17:27:55 +0000 (17:27 +0000)]
Typo in docstring

22 years agoFix for SF bug #599836: Don't duplicate headers.
Jeremy Hylton [Fri, 11 Oct 2002 17:26:46 +0000 (17:26 +0000)]
Fix for SF bug #599836: Don't duplicate headers.

If the request object has a header, it should override the default
header provided by the OpenerDirector.

22 years agoAllow restricted code to get byteorder, getdefaultencoding(),
Fred Drake [Fri, 11 Oct 2002 16:20:45 +0000 (16:20 +0000)]
Allow restricted code to get byteorder, getdefaultencoding(),
getrefcount(), maxunicode, and version_info.

22 years agoTrying alphabet again
Jeremy Hylton [Fri, 11 Oct 2002 16:05:07 +0000 (16:05 +0000)]
Trying alphabet again

22 years agoSort names alphabetically.
Jeremy Hylton [Fri, 11 Oct 2002 15:55:17 +0000 (15:55 +0000)]
Sort names alphabetically.

22 years agoAdd hexversion to list of safe sys names (SF bug 621447).
Jeremy Hylton [Fri, 11 Oct 2002 15:51:29 +0000 (15:51 +0000)]
Add hexversion to list of safe sys names (SF bug 621447).

Bug fix candidate.

22 years agoUse fdopen() to create file from fd.
Jeremy Hylton [Fri, 11 Oct 2002 14:36:24 +0000 (14:36 +0000)]
Use fdopen() to create file from fd.

22 years agoA test for the recent overflow-in-format-crash bug.
Michael W. Hudson [Fri, 11 Oct 2002 13:46:32 +0000 (13:46 +0000)]
A test for the recent overflow-in-format-crash bug.

Only runs when sys.maxint == 2**32 - 1; different things go wrong
on a 64-bit box.

22 years agoBack out news about SF patch 479898 -- it's withdrawn.
Guido van Rossum [Fri, 11 Oct 2002 11:47:28 +0000 (11:47 +0000)]
Back out news about SF patch 479898 -- it's withdrawn.

22 years agoBack out #479898.
Martin v. Löwis [Fri, 11 Oct 2002 05:37:59 +0000 (05:37 +0000)]
Back out #479898.

22 years agoFix a nasty endcase reported by Armin Rigo in SF bug 618623:
Guido van Rossum [Fri, 11 Oct 2002 00:43:48 +0000 (00:43 +0000)]
Fix a nasty endcase reported by Armin Rigo in SF bug 618623:
'%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.

22 years agoAdd Greg Copeland for SF # 585913, Adds Galeon support to webbrowser.py
Neal Norwitz [Thu, 10 Oct 2002 22:50:53 +0000 (22:50 +0000)]
Add Greg Copeland for SF # 585913, Adds Galeon support to webbrowser.py

22 years agoSF # 585913, Adds Galeon support to webbrowser.py
Neal Norwitz [Thu, 10 Oct 2002 22:49:29 +0000 (22:49 +0000)]
SF # 585913, Adds Galeon support to webbrowser.py

22 years agoRemove mentionings of DOS.
Martin v. Löwis [Thu, 10 Oct 2002 18:24:54 +0000 (18:24 +0000)]
Remove mentionings of DOS.

22 years agoRemove more DOS support.
Martin v. Löwis [Thu, 10 Oct 2002 18:17:08 +0000 (18:17 +0000)]
Remove more DOS support.

22 years agoDocument when unittest was added to Python.
Fred Drake [Thu, 10 Oct 2002 16:16:25 +0000 (16:16 +0000)]
Document when unittest was added to Python.

22 years agoAdd new posix functions
Andrew M. Kuchling [Thu, 10 Oct 2002 16:04:08 +0000 (16:04 +0000)]
Add new posix functions

22 years agoUpdate email micro release number.
Barry Warsaw [Thu, 10 Oct 2002 15:58:19 +0000 (15:58 +0000)]
Update email micro release number.

22 years agoDocument that the Charset constructor coerces its argument to lower
Barry Warsaw [Thu, 10 Oct 2002 15:23:38 +0000 (15:23 +0000)]
Document that the Charset constructor coerces its argument to lower
case.

22 years agoDocument that get_content_charset() coerces its return value to lower
Barry Warsaw [Thu, 10 Oct 2002 15:22:16 +0000 (15:22 +0000)]
Document that get_content_charset() coerces its return value to lower
case.

22 years agoBump version number to 2.4.2 to pick up the latest minor bug fixes.
Barry Warsaw [Thu, 10 Oct 2002 15:19:46 +0000 (15:19 +0000)]
Bump version number to 2.4.2 to pick up the latest minor bug fixes.

22 years agoNew tests to verify that charsets are case insensitive, and that by
Barry Warsaw [Thu, 10 Oct 2002 15:14:22 +0000 (15:14 +0000)]
New tests to verify that charsets are case insensitive, and that by
default get_body_encoding() cannot be SHORTEST.

22 years agoget_content_charset(): RFC 2046 $4.1.2 says charsets are not case
Barry Warsaw [Thu, 10 Oct 2002 15:13:26 +0000 (15:13 +0000)]
get_content_charset(): RFC 2046 $4.1.2 says charsets are not case
sensitive.  Coerce the argument to lower case.

22 years ago__init__(): RFC 2046 $4.1.2 says charsets are not case sensitive.
Barry Warsaw [Thu, 10 Oct 2002 15:11:20 +0000 (15:11 +0000)]
__init__(): RFC 2046 $4.1.2 says charsets are not case sensitive.
Coerce the argument to lower case.  Also, since body encodings can't
be SHORTEST, default the CHARSETS failobj's second item to BASE64.

22 years agoAdd .PHONY targets, to declare targets that aren't real files.
Guido van Rossum [Thu, 10 Oct 2002 15:04:04 +0000 (15:04 +0000)]
Add .PHONY targets, to declare targets that aren't real files.

Immediate benefit: when you use "make -t" to avoid a global recompile
after a trivial header file touchup, Make will no longer create files
named all, oldsharedmods, and sharedmods.

(Not sure if I tracked down all such targets.  Not sure if I care.)

22 years agoPatch #612602: Streamline configure methods.
Martin v. Löwis [Thu, 10 Oct 2002 14:36:13 +0000 (14:36 +0000)]
Patch #612602: Streamline configure methods.

22 years agoPatch #569139: Implementation of major, minor and makedev.
Martin v. Löwis [Thu, 10 Oct 2002 14:27:30 +0000 (14:27 +0000)]
Patch #569139: Implementation of major, minor and makedev.

22 years ago[Bug #621039] Fix broken link
Andrew M. Kuchling [Thu, 10 Oct 2002 11:32:30 +0000 (11:32 +0000)]
[Bug #621039] Fix broken link

22 years ago[Bug #621038] Remove duplicated item
Andrew M. Kuchling [Thu, 10 Oct 2002 11:31:48 +0000 (11:31 +0000)]
[Bug #621038] Remove duplicated item

22 years agoM CallTips.py Add support for getting calltip from subprocess,
Kurt B. Kaiser [Thu, 10 Oct 2002 08:25:24 +0000 (08:25 +0000)]
M CallTips.py      Add support for getting calltip from subprocess,
                   refactor a bit and clean up.

M PyShell.py       Cosmetic changes, delete blank lines, add # on some
                   blank lines.

M rpc.py           Add more debugging capability

M run.py           Add support for getting calltip from subprocess
                   Move import statements

22 years agoSF #614596, fix for urllib2.AbstractBasicAuthHandler, John Williams (johnw42)
Neal Norwitz [Wed, 9 Oct 2002 23:17:04 +0000 (23:17 +0000)]
SF #614596, fix for urllib2.AbstractBasicAuthHandler, John Williams (johnw42)

Make the regex case insensitive for some web sites which use Realm.

22 years agoAccept Armin's documentation patch for SF bug #558179.
Fred Drake [Wed, 9 Oct 2002 22:33:23 +0000 (22:33 +0000)]
Accept Armin's documentation patch for SF bug #558179.
Adjusted some markup to make the descriptions more consistent.

22 years agoNews about repr() and 8-bit characters, and setlocale() in the
Guido van Rossum [Wed, 9 Oct 2002 21:40:48 +0000 (21:40 +0000)]
News about repr() and 8-bit characters, and setlocale() in the
readline module.

22 years agoMacOSX linker doesn't understand -R flag at all, no matter how you feed it
Skip Montanaro [Wed, 9 Oct 2002 21:37:18 +0000 (21:37 +0000)]
MacOSX linker doesn't understand -R flag at all, no matter how you feed it
the flag.  Punt and return a -L flag instead (returning "" gums up the
command to be forked).

22 years agoGNU readline() mistakenly sets the LC_CTYPE locale.
Guido van Rossum [Wed, 9 Oct 2002 21:27:33 +0000 (21:27 +0000)]
GNU readline() mistakenly sets the LC_CTYPE locale.
This is evil.  Only the user or the app's main() should do this!
We must save and restore the locale around the rl_initialize() call.

22 years agoUndo this part of the previous checkin:
Guido van Rossum [Wed, 9 Oct 2002 19:14:30 +0000 (19:14 +0000)]
Undo this part of the previous checkin:

  Also fixed an error message -- %s argument has non-string str()
  doesn't make sense for %r, so the error message now differentiates
  between %s and %r.

because PyObject_Repr() and PyObject_Str() ensure that this can never
happen.  Added a helpful comment instead.

22 years agoThe string formatting code has a test to switch to Unicode when %s
Guido van Rossum [Wed, 9 Oct 2002 19:07:53 +0000 (19:07 +0000)]
The string formatting code has a test to switch to Unicode when %s
sees a Unicode argument.  Unfortunately this test was also executed
for %r, because %s and %r share almost all of their code.  This meant
that, if u is a unicode object while repr(u) is an 8-bit string
containing ASCII characters, '%r' % u is a *unicode* string containing
only ASCII characters!

Fixed by executing the test only for %s.

Also fixed an error message -- %s argument has non-string str()
doesn't make sense for %r, so the error message now differentiates
between %s and %r.

22 years agoAdd special consideration for rlcompleter. As a side effect of
Guido van Rossum [Wed, 9 Oct 2002 18:17:06 +0000 (18:17 +0000)]
Add special consideration for rlcompleter.  As a side effect of
initializing GNU readline, setlocale(LC_CTYPE, "") is called, which
changes the <ctype.h> macros to use the "default" locale (which isn't
the *initial* locale -- the initial locale is the "C" locale in which
only ASCII characters are printable).  When the default locale is e.g.
Latin-1, the repr() of string objects can include 8-bit characters
with the high bit set; I believe this is due to the recent
PRINT_MULTIBYTE_STRING changes to stringobject.c.  This in turn screws
up test_pyexpat and test_rotor, which depend on the repr() of 8-bit
strings with high bit characters.

The solution (for now) is to force the LC_CTYPE locale to "C" after
importing rlcompleter.  This is the locale required by the test suite
anyway.

22 years agoRemove more DOS support.
Martin v. Löwis [Wed, 9 Oct 2002 17:23:29 +0000 (17:23 +0000)]
Remove more DOS support.

22 years agoAdd a few people who were in the ACKS file in the 2.2.2 branch but not
Guido van Rossum [Wed, 9 Oct 2002 16:37:03 +0000 (16:37 +0000)]
Add a few people who were in the ACKS file in the 2.2.2 branch but not
on the trunk.

22 years agoMinor edits and markup fixes
Andrew M. Kuchling [Wed, 9 Oct 2002 12:11:10 +0000 (12:11 +0000)]
Minor edits and markup fixes

22 years agoDon't try to access sys.getwindowsversion unless it exists (ntpath is
Tim Peters [Wed, 9 Oct 2002 07:56:04 +0000 (07:56 +0000)]
Don't try to access sys.getwindowsversion unless it exists (ntpath is
imported on systems other than Windows, and in particular is imported
by test___all__; the compile farm reported that all Linux tests failed
due to this; isn't anyone in PythonDevLand running CVS on Linux?!).

22 years agoLogic for determining whether skipping test_pep277 is expected: whether
Tim Peters [Wed, 9 Oct 2002 01:07:11 +0000 (01:07 +0000)]
Logic for determining whether skipping test_pep277 is expected:  whether
ths "should be" skipped depends on os.path.supports_unicode_filenames,
not really on the platform.  Fiddled the expected-skip constructor
appropriately.

22 years agoThe
Tim Peters [Tue, 8 Oct 2002 21:01:07 +0000 (21:01 +0000)]
The
        list(xrange(sys.maxint / 4))
test.  Changed 4 to 2.

The belief is that this test intended to trigger a bit of code in
listobject.c's NRESIZE macro that's looking for arithmetic overflow.  As
written, it doesn't achieve that, though, and leaves it up to the platform
realloc() as to whether it wants to allocate 2 gigabytes.  Some platforms
say "sure!", although they don't appear to mean it, and disaster ensues.

Changing 4 to 2 (just barely) manages to trigger the arithmetic overflow
test instead, leaving the platform realloc() out of it.

I'll backport this to the 2.2 branch next.

22 years agoAdd os.path.supports_unicode_filenames for all platforms,
Mark Hammond [Tue, 8 Oct 2002 02:44:31 +0000 (02:44 +0000)]
Add os.path.supports_unicode_filenames for all platforms,
sys.getwindowsversion() on Windows (new enahanced Tim-proof <wink>
version), and fix test_pep277.py in a few minor ways.
Including doc and NEWS entries.

22 years agoDocument PEP 293.
Martin v. Löwis [Mon, 7 Oct 2002 19:01:07 +0000 (19:01 +0000)]
Document PEP 293.

22 years agoDocument PEP 277 changes.
Martin v. Löwis [Mon, 7 Oct 2002 18:52:29 +0000 (18:52 +0000)]
Document PEP 277 changes.

22 years agoInclude wctype.h.
Martin v. Löwis [Mon, 7 Oct 2002 18:26:16 +0000 (18:26 +0000)]
Include wctype.h.

22 years agoCheck for wctype.h.
Martin v. Löwis [Mon, 7 Oct 2002 17:45:56 +0000 (17:45 +0000)]
Check for wctype.h.

22 years agoopenfile(): Go back to opening the files in text mode. This undoes
Barry Warsaw [Mon, 7 Oct 2002 17:27:55 +0000 (17:27 +0000)]
openfile(): Go back to opening the files in text mode.  This undoes
the change in revision 1.11 (test_email.py) in response to SF bug
#609988.  We now think that was the wrong fix and that WinZip was the
real culprit there.

22 years ago_parsebody(): Use get_content_type() instead of the deprecated
Barry Warsaw [Mon, 7 Oct 2002 17:27:35 +0000 (17:27 +0000)]
_parsebody(): Use get_content_type() instead of the deprecated
get_type().  Also, one of the regular expressions is constant so might
as well make it a module global.  And, when splitting up digests,
handle lineseps that are longer than 1 character in length
(e.g. \r\n).

22 years agoUse escaped Unicode literals, according to PEP 8.
Martin v. Löwis [Mon, 7 Oct 2002 17:27:15 +0000 (17:27 +0000)]
Use escaped Unicode literals, according to PEP 8.

22 years agoBump the version to 2.4.1 (not 2.5 as previously mentioned) to sync it
Barry Warsaw [Mon, 7 Oct 2002 17:20:25 +0000 (17:20 +0000)]
Bump the version to 2.4.1 (not 2.5 as previously mentioned) to sync it
with the standalone mimelib package.

22 years agoModified presentation of the grammar for calls to be easier to read
Fred Drake [Mon, 7 Oct 2002 16:28:38 +0000 (16:28 +0000)]
Modified presentation of the grammar for calls to be easier to read
for both HTML and typeset renderings.  Corresponds to revision
1.53.4.8 on the r22-maint branch.

22 years agoPatch #479898: Use multibyte C library for printing strings if available.
Martin v. Löwis [Mon, 7 Oct 2002 13:55:50 +0000 (13:55 +0000)]
Patch #479898: Use multibyte C library for printing strings if available.

22 years agoPatch #448038: Add move(). Report errors from copytree as in shutil.Error.
Martin v. Löwis [Mon, 7 Oct 2002 13:23:24 +0000 (13:23 +0000)]
Patch #448038: Add move(). Report errors from copytree as in shutil.Error.

22 years agoApply file system default encoding to exec and spawn path and arguments.
Martin v. Löwis [Mon, 7 Oct 2002 06:44:21 +0000 (06:44 +0000)]
Apply file system default encoding to exec and spawn path and arguments.

22 years agoFix quoting for Solaris LDSHARED. Will backport to 2.2.
Martin v. Löwis [Mon, 7 Oct 2002 06:21:41 +0000 (06:21 +0000)]
Fix quoting for Solaris LDSHARED. Will backport to 2.2.

22 years agoPatch #619493: Prefer rpmbuild over rpm if available. Backported to 2.2.
Martin v. Löwis [Mon, 7 Oct 2002 05:57:21 +0000 (05:57 +0000)]
Patch #619493: Prefer rpmbuild over rpm if available. Backported to 2.2.

22 years agoAdd test_pep277 to the expected skips on Linux. (This test seems to
Guido van Rossum [Sun, 6 Oct 2002 20:36:31 +0000 (20:36 +0000)]
Add test_pep277 to the expected skips on Linux.  (This test seems to
be skipped everywhere except on Windows NT and descendants, but I'm
only going to add it to the skip list for the platform I can test.)

22 years agoPatch #572031: AUTH method LOGIN for smtplib
Martin v. Löwis [Sun, 6 Oct 2002 17:55:08 +0000 (17:55 +0000)]
Patch #572031: AUTH method LOGIN for smtplib
(most of the patch hides in rev. 1.59). Backported to 2.2.

22 years agoMake sure the email test suite can be run both stand-alone and under
Guido van Rossum [Sun, 6 Oct 2002 14:37:11 +0000 (14:37 +0000)]
Make sure the email test suite can be run both stand-alone and under
supervision of regrtest.py.  Will backport to 2.2.2.

22 years agoAlso look in -lposix4 for sem_init. Fixes #618615.
Martin v. Löwis [Sun, 6 Oct 2002 11:48:09 +0000 (11:48 +0000)]
Also look in -lposix4 for sem_init. Fixes #618615.

22 years agoUpdate info for impending 2.2.2.
Tim Peters [Sun, 6 Oct 2002 04:04:46 +0000 (04:04 +0000)]
Update info for impending 2.2.2.

22 years agoApply Josh Robb's Patch:
Kurt B. Kaiser [Sun, 6 Oct 2002 01:57:45 +0000 (01:57 +0000)]
Apply Josh Robb's Patch:
[ 617097 ] EditorWindow.py: underline recent files

Added a couple of mods to reduce the indentation level.

Note that the recent files menu doesn't update until
Idle is restarted, pre-existing bug, at least on Linux.

22 years agoThis test fails on Win98, which is fine, but when it failed it left
Tim Peters [Sat, 5 Oct 2002 17:54:56 +0000 (17:54 +0000)]
This test fails on Win98, which is fine, but when it failed it left
a junk directory behind that caused 4 other tests to fail later.  Now
it cleans up after itself, and the 4 bogus later failures don't happen.

22 years agoDocument patch #594001.
Martin v. Löwis [Sat, 5 Oct 2002 09:46:48 +0000 (09:46 +0000)]
Document patch #594001.

22 years agos/_alloca/alloca/g; Windows doesn't need the former, at least not unless
Tim Peters [Sat, 5 Oct 2002 01:47:34 +0000 (01:47 +0000)]
s/_alloca/alloca/g; Windows doesn't need the former, at least not unless
__STDC__ is defined (or something like that ...).

22 years agoAdd a section to be written; remove reference to deleted code
Andrew M. Kuchling [Fri, 4 Oct 2002 22:34:11 +0000 (22:34 +0000)]
Add a section to be written; remove reference to deleted code

22 years agoJosh Robb's Patch
Kurt B. Kaiser [Fri, 4 Oct 2002 21:54:41 +0000 (21:54 +0000)]
Josh Robb's Patch
[ 617109 ] WindowList.py: fix win98 quit.

22 years agoApply Josh Robb's Patch
Kurt B. Kaiser [Fri, 4 Oct 2002 21:33:57 +0000 (21:33 +0000)]
Apply Josh Robb's Patch
[ 617125 ] EditorWindow.py: Fix the wrap
(used 'none' instead of NONE)

22 years agoWhen looking for an alias, first look for the normalized name (which
Guido van Rossum [Fri, 4 Oct 2002 20:49:05 +0000 (20:49 +0000)]
When looking for an alias, first look for the normalized name (which
still may contain dots), then if that doesn't exist look for the name
with dots replaced by underscores.  This is a little more forgiving.

22 years ago.iterkeys() is not needed.
Raymond Hettinger [Fri, 4 Oct 2002 20:01:48 +0000 (20:01 +0000)]
.iterkeys() is not needed.

22 years agoRemove some unnecessary dependencies (minor).
Fred Drake [Fri, 4 Oct 2002 19:23:06 +0000 (19:23 +0000)]
Remove some unnecessary dependencies (minor).

22 years agoAdded refcount information for PyObject_GetIter().
Fred Drake [Fri, 4 Oct 2002 18:58:58 +0000 (18:58 +0000)]
Added refcount information for PyObject_GetIter().

22 years agoUndo the removal. Guido mentioned that the encoding name is in active
Marc-André Lemburg [Fri, 4 Oct 2002 16:30:42 +0000 (16:30 +0000)]
Undo the removal. Guido mentioned that the encoding name is in active
by some email headers.

22 years agoRemove unneeded alias.
Marc-André Lemburg [Fri, 4 Oct 2002 15:57:03 +0000 (15:57 +0000)]
Remove unneeded alias.

22 years agoSF # 607253, header file problems by Ralf W. Grosse-Kunstleve
Neal Norwitz [Fri, 4 Oct 2002 12:43:02 +0000 (12:43 +0000)]
SF # 607253, header file problems by Ralf W. Grosse-Kunstleve

Don't pollute the namespace when protecting against multiple header inclusion.
Prefix with Py_ and use standard naming convention Py_FILENAME_H.

22 years agoFix doc-string.
Marc-André Lemburg [Fri, 4 Oct 2002 11:58:24 +0000 (11:58 +0000)]
Fix doc-string.

22 years agoNews item about the new encoding normalization scheme.
Marc-André Lemburg [Fri, 4 Oct 2002 11:55:21 +0000 (11:55 +0000)]
News item about the new encoding normalization scheme.

22 years agoAdapt lookup names to new more general encoding name normalization
Marc-André Lemburg [Fri, 4 Oct 2002 11:51:39 +0000 (11:51 +0000)]
Adapt lookup names to new more general encoding name normalization
scheme.

22 years agoExtending the encoding name normalization to handle more non-alphanumeric
Marc-André Lemburg [Fri, 4 Oct 2002 11:45:38 +0000 (11:45 +0000)]
Extending the encoding name normalization to handle more non-alphanumeric
characters.

22 years agoDisable LFS if Solaris/gcc bug is detected. Fixes #618095.
Martin v. Löwis [Fri, 4 Oct 2002 10:22:02 +0000 (10:22 +0000)]
Disable LFS if Solaris/gcc bug is detected. Fixes #618095.

22 years agoPulling Mark Alexander's contribution from CVS.
Marc-André Lemburg [Fri, 4 Oct 2002 09:30:06 +0000 (09:30 +0000)]
Pulling Mark Alexander's contribution from CVS.

22 years agoPatch #618347: Work around Solaris 2.6 pthread.h bug. Will backport to 2.2.
Martin v. Löwis [Fri, 4 Oct 2002 07:21:24 +0000 (07:21 +0000)]
Patch #618347: Work around Solaris 2.6 pthread.h bug. Will backport to 2.2.

22 years agoFix [ 616716 ] Bug in PyErr_SetExcFromWindows
Mark Hammond [Fri, 4 Oct 2002 00:13:02 +0000 (00:13 +0000)]
Fix [ 616716 ] Bug in PyErr_SetExcFromWindows

Ensure that even if FormatMessage fails we (a) don't crash, and (b) provide something useful.

Bugfix candidate.

22 years agoFix errors to pep277 checkin identified by Neal Norwitz.
Mark Hammond [Fri, 4 Oct 2002 00:09:38 +0000 (00:09 +0000)]
Fix errors to pep277 checkin identified by Neal Norwitz.

22 years agoTests for pep277 - Unicode file names on Windows NT.
Mark Hammond [Thu, 3 Oct 2002 23:14:10 +0000 (23:14 +0000)]
Tests for pep277 - Unicode file names on Windows NT.

22 years agoOne last tweak to the tracing machinery: this actually computes what I intended
Michael W. Hudson [Thu, 3 Oct 2002 09:53:11 +0000 (09:53 +0000)]
One last tweak to the tracing machinery: this actually computes what I intended
all along.  Before instr_lb tended to be too high.

I don't think this actually makes any difference, given what the compiler
produces, but it makes me a bit happier.

22 years agoClamp code objects' tp_compare result to [-1, 1].
Michael W. Hudson [Thu, 3 Oct 2002 09:50:47 +0000 (09:50 +0000)]
Clamp code objects' tp_compare result to [-1, 1].

Bugfix candidate.

22 years agoUpdates to track Grammar changes. The patch to token.py loosens the regexp to
Michael W. Hudson [Thu, 3 Oct 2002 09:42:01 +0000 (09:42 +0000)]
Updates to track Grammar changes.  The patch to token.py loosens the regexp to
allow "testlist1" to be snagged.

22 years agoTrivial fix to the pep277 checkin: ensure that exceptions always have a filename...
Mark Hammond [Thu, 3 Oct 2002 07:24:48 +0000 (07:24 +0000)]
Trivial fix to the pep277 checkin: ensure that exceptions always have a filename attribute (previously did only when string filenames were passed, but not when unicode)

22 years agoPatch 594001: PEP 277 - Unicode file name support for Windows NT.
Mark Hammond [Thu, 3 Oct 2002 05:10:39 +0000 (05:10 +0000)]
Patch 594001: PEP 277 - Unicode file name support for Windows NT.