]> granicus.if.org Git - python/log
python
18 years ago- remove yet another reference to how commonly Tkinter is (thought to be) used
Fred Drake [Sun, 30 Jul 2006 05:55:39 +0000 (05:55 +0000)]
- remove yet another reference to how commonly Tkinter is (thought to be) used
- fix an internal section reference

18 years agoremove possibly-outdated comment on what GUI toolkit is most commonly used;
Fred Drake [Sun, 30 Jul 2006 05:49:49 +0000 (05:49 +0000)]
remove possibly-outdated comment on what GUI toolkit is most commonly used;
it is hard to know whether this is right, and it does not add valuable reference information
at any rate

18 years agoupdate information on wxPython, from Robin Dunn
Fred Drake [Sun, 30 Jul 2006 05:41:28 +0000 (05:41 +0000)]
update information on wxPython, from Robin Dunn

18 years agolots of markup nits, most commonly Unix/unix --> \UNIX
Fred Drake [Sun, 30 Jul 2006 03:03:43 +0000 (03:03 +0000)]
lots of markup nits, most commonly Unix/unix --> \UNIX

18 years agoWhitespace normalization.
Tim Peters [Sun, 30 Jul 2006 00:58:15 +0000 (00:58 +0000)]
Whitespace normalization.

18 years ago[Bug #793553] Correct description of keyword arguments for SSL authentication
Andrew M. Kuchling [Sun, 30 Jul 2006 00:37:56 +0000 (00:37 +0000)]
[Bug #793553] Correct description of keyword arguments for SSL authentication

18 years agoMinor typo fixes
Andrew M. Kuchling [Sun, 30 Jul 2006 00:27:34 +0000 (00:27 +0000)]
Minor typo fixes

18 years agomarkup cleanups
Fred Drake [Sat, 29 Jul 2006 23:34:57 +0000 (23:34 +0000)]
markup cleanups

18 years agoFix case for 'Unix'
Andrew M. Kuchling [Sat, 29 Jul 2006 21:30:21 +0000 (21:30 +0000)]
Fix case for 'Unix'

18 years agoFollow TeX's conventions for hyphens
Andrew M. Kuchling [Sat, 29 Jul 2006 21:27:12 +0000 (21:27 +0000)]
Follow TeX's conventions for hyphens

18 years agoDisable test_getnode too, since this is also unreliable.
Neal Norwitz [Sat, 29 Jul 2006 20:37:08 +0000 (20:37 +0000)]
Disable test_getnode too, since this is also unreliable.

18 years agofix minor markup error that introduced extra punctuation
Fred Drake [Sat, 29 Jul 2006 20:21:25 +0000 (20:21 +0000)]
fix minor markup error that introduced extra punctuation

18 years agoIf the executable doesn't exist, there's no reason to try to start it.
Neal Norwitz [Sat, 29 Jul 2006 20:20:52 +0000 (20:20 +0000)]
If the executable doesn't exist, there's no reason to try to start it.
This prevents garbage about command not found being printed on Solaris.

18 years agoAdd a comment to the csv reader documentation that explains why the
Skip Montanaro [Sat, 29 Jul 2006 20:06:05 +0000 (20:06 +0000)]
Add a comment to the csv reader documentation that explains why the
treatment of newlines changed in 2.5.  Pulled almost verbatim from a comment
by Andrew McNamara in <http://python.org/sf/1465014>.

18 years agoSF bug #1193966: Weakref types documentation misplaced
Fred Drake [Sat, 29 Jul 2006 20:04:42 +0000 (20:04 +0000)]
SF bug #1193966: Weakref types documentation misplaced

The information about supporting weakrefs with types defined in C extensions
is moved to the Extending & Embedding manual.  Py_TPFLAGS_HAVE_WEAKREFS is
no longer mentioned since it is part of Py_TPFLAGS_DEFAULT.

18 years ago[Patch #1068277] Clarify that os.path.exists() can return False depending on permissi...
Andrew M. Kuchling [Sat, 29 Jul 2006 19:50:37 +0000 (19:50 +0000)]
[Patch #1068277] Clarify that os.path.exists() can return False depending on permissions.  Fred approved committing this patch in December 2004!

18 years agoDisable these tests until they are reliable across platforms.
Neal Norwitz [Sat, 29 Jul 2006 19:29:35 +0000 (19:29 +0000)]
Disable these tests until they are reliable across platforms.
These problems may mask more important, real problems.

One or both methods are known to fail on: Solaris, OpenBSD, Debian, Ubuntu.
They pass on Windows and some Linux boxes.

18 years ago[Patch #1490989 from Skip Montanaro] Mention debugging builds in the API documentati...
Andrew M. Kuchling [Sat, 29 Jul 2006 19:24:04 +0000 (19:24 +0000)]
[Patch #1490989 from Skip Montanaro]  Mention debugging builds in the API documentation.  I've changed Skip's patch to point to Misc/SpecialBuilds and fiddled with the markup a bit.

18 years agoemphasize and oddball nuance of LaTeX comment syntax
Fred Drake [Sat, 29 Jul 2006 19:14:10 +0000 (19:14 +0000)]
emphasize and oddball nuance of LaTeX comment syntax

18 years agodocument the footnote usage pattern
Fred Drake [Sat, 29 Jul 2006 19:09:01 +0000 (19:09 +0000)]
document the footnote usage pattern

18 years agomake the reference to older versions of the documentation a link
Fred Drake [Sat, 29 Jul 2006 18:33:29 +0000 (18:33 +0000)]
make the reference to older versions of the documentation a link
to the right page on python.org

18 years agorestore test un-intentionally removed in the xmlcore purge (revision 50941)
Fred Drake [Sat, 29 Jul 2006 18:19:19 +0000 (18:19 +0000)]
restore test un-intentionally removed in the xmlcore purge (revision 50941)

18 years agoReorganize the docs for 'file' and 'open()' after some discussion with Fred.
Andrew M. Kuchling [Sat, 29 Jul 2006 18:14:07 +0000 (18:14 +0000)]
Reorganize the docs for 'file' and 'open()' after some discussion with Fred.

We want to encourage users to write open() when opening a file, but
open() was described with a single paragraph and
'file' had lots of explanation of the mode and bufsize arguments.

I've shrunk the description of 'file' to cross-reference to the 'File
objects' section, and to open() for an explanation of the arguments.

open() now has all the paragraphs about the mode string.  The bufsize
argument was moved up so that it isn't buried at the end; now there's
1 paragraph on mode, 1 on bufsize, and then 3 more on mode.  Various
other edits and rearrangements were made in the process.

It's probably best to read the final text and not to try to make sense
of the diffs.

18 years agoexpunge the xmlcore changes:
Fred Drake [Sat, 29 Jul 2006 16:56:15 +0000 (16:56 +0000)]
expunge the xmlcore changes:
  41667, 41668 - initial switch to xmlcore
  47044        - mention of xmlcore in What's New
  50687        - mention of xmlcore in the library reference

re-apply xmlcore changes to xml:
  41674        - line ending changes (re-applied manually), directory props
  41677        - add cElementTree wrapper
  41678        - PSF licensing for etree
  41812        - whitespace normalization
  42724        - fix svn:eol-style settings
  43681, 43682 - remove Python version-compatibility cruft from minidom
  46773        - fix encoding of \r\n\t in attr values in saxutils
  47269        - added XMLParser alias for cElementTree compatibility

additional tests were added in Lib/test/test_sax.py that failed with
the xmlcore changes; these relate to SF bugs #1511497, #1513611

18 years agoSet bug/patch count. Take a bow, everyone!
Andrew M. Kuchling [Sat, 29 Jul 2006 16:08:40 +0000 (16:08 +0000)]
Set bug/patch count.  Take a bow, everyone!

18 years ago[Bug #1528258] Mention that the 'data' argument can be None.
Andrew M. Kuchling [Sat, 29 Jul 2006 15:57:08 +0000 (15:57 +0000)]
[Bug #1528258] Mention that the 'data' argument can be None.

The constructor docs referred the reader to the add_data() method's docs,
but they weren't very helpful.  I've simply copied an earlier explanation
of 'data' that's more useful.

18 years agoFix typo
Matt Fleming [Sat, 29 Jul 2006 15:55:30 +0000 (15:55 +0000)]
Fix typo

18 years agoTweak wording
Andrew M. Kuchling [Sat, 29 Jul 2006 15:43:13 +0000 (15:43 +0000)]
Tweak wording

18 years agoTypo fix
Andrew M. Kuchling [Sat, 29 Jul 2006 15:42:46 +0000 (15:42 +0000)]
Typo fix

18 years ago[Bug #1530382] Document SSL.server(), .issuer() methods
Andrew M. Kuchling [Sat, 29 Jul 2006 15:35:21 +0000 (15:35 +0000)]
[Bug #1530382] Document SSL.server(), .issuer() methods

18 years ago[Bug #1414697] Change docstring of set/frozenset types to specify that the contents...
Andrew M. Kuchling [Sat, 29 Jul 2006 15:10:32 +0000 (15:10 +0000)]
[Bug #1414697] Change docstring of set/frozenset types to specify that the contents are unique.  Raymond, please feel free to edit or revert.

18 years agoFix docstring punctuation
Andrew M. Kuchling [Sat, 29 Jul 2006 14:43:55 +0000 (14:43 +0000)]
Fix docstring punctuation

18 years ago[Bug #1519571] Document some missing functions: setup(), title(), done()
Andrew M. Kuchling [Sat, 29 Jul 2006 14:42:48 +0000 (14:42 +0000)]
[Bug #1519571] Document some missing functions: setup(), title(), done()

18 years ago[Bug #1529157] Mention raw_input() and input(); while I'm at it, reword the descripti...
Andrew M. Kuchling [Sat, 29 Jul 2006 14:21:15 +0000 (14:21 +0000)]
[Bug #1529157] Mention raw_input() and input(); while I'm at it, reword the description a bit

18 years agoReword paragraph to match the order of the subsequent sections
Andrew M. Kuchling [Sat, 29 Jul 2006 14:08:15 +0000 (14:08 +0000)]
Reword paragraph to match the order of the subsequent sections

18 years agoUpdate URL
Andrew M. Kuchling [Sat, 29 Jul 2006 14:04:47 +0000 (14:04 +0000)]
Update URL

18 years agoAdd example
Andrew M. Kuchling [Sat, 29 Jul 2006 13:56:48 +0000 (13:56 +0000)]
Add example

18 years agoupdate target version number
Fred Drake [Sat, 29 Jul 2006 13:22:49 +0000 (13:22 +0000)]
update target version number

18 years agoRevert rev 42617, it was introduced to work around bug #1441397.
Georg Brandl [Sat, 29 Jul 2006 10:25:46 +0000 (10:25 +0000)]
Revert rev 42617, it was introduced to work around bug #1441397.
test_compiler now passes again.

18 years agoBug #1441397: The compiler module now recognizes module and function
Georg Brandl [Sat, 29 Jul 2006 09:33:26 +0000 (09:33 +0000)]
Bug #1441397: The compiler module now recognizes module and function
docstrings correctly as it did in Python 2.4.

18 years agoBug #835255: The "closure" argument to new.function() is now documented.
Georg Brandl [Sat, 29 Jul 2006 08:51:21 +0000 (08:51 +0000)]
Bug #835255: The "closure" argument to new.function() is now documented.

18 years agoPatch #1529514: More openbsd platforms for ctypes.
Thomas Heller [Fri, 28 Jul 2006 21:43:20 +0000 (21:43 +0000)]
Patch #1529514: More openbsd platforms for ctypes.
Regenerated Modules/_ctypes/libffi/configure with autoconf 2.59.

Approved by Neal.

18 years agoFix svn merge spew.
Phillip J. Eby [Fri, 28 Jul 2006 21:31:54 +0000 (21:31 +0000)]
Fix svn merge spew.

18 years agoBug #1529871: The speed enhancement patch #921466 broke Python's compliance
Phillip J. Eby [Fri, 28 Jul 2006 21:12:07 +0000 (21:12 +0000)]
Bug #1529871: The speed enhancement patch #921466 broke Python's compliance
with PEP 302.  This was fixed by adding an ``imp.NullImporter`` type that is
used in ``sys.path_importer_cache`` to cache non-directory paths and avoid
excessive filesystem operations during imports.

18 years agoRemove a useless XXX comment.
Thomas Heller [Fri, 28 Jul 2006 19:42:40 +0000 (19:42 +0000)]
Remove a useless XXX comment.
Cosmetic changes to the code so that the #ifdef _UNICODE block
doesn't mess emacs code formatting.

18 years agoFix spelling.
Georg Brandl [Fri, 28 Jul 2006 18:36:01 +0000 (18:36 +0000)]
Fix spelling.

18 years agoPatch #1529686: also run test_email_codecs with regrtest.py.
Georg Brandl [Fri, 28 Jul 2006 18:31:39 +0000 (18:31 +0000)]
Patch #1529686: also run test_email_codecs with regrtest.py.

18 years agoAdd example. Should I propagate this example to all the other DBM-ish modules, too?
Andrew M. Kuchling [Fri, 28 Jul 2006 12:48:07 +0000 (12:48 +0000)]
Add example.  Should I propagate this example to all the other DBM-ish modules, too?

18 years agoDon't overwrite built-in name; add some blank lines for readability
Andrew M. Kuchling [Fri, 28 Jul 2006 12:45:55 +0000 (12:45 +0000)]
Don't overwrite built-in name; add some blank lines for readability

18 years agoAdd example
Andrew M. Kuchling [Fri, 28 Jul 2006 12:33:19 +0000 (12:33 +0000)]
Add example

18 years agoAdd example
Andrew M. Kuchling [Fri, 28 Jul 2006 12:32:43 +0000 (12:32 +0000)]
Add example

18 years agoTypo fix
Andrew M. Kuchling [Fri, 28 Jul 2006 12:18:22 +0000 (12:18 +0000)]
Typo fix

18 years ago[Patch #1529811] Correction to description of r|* mode
Andrew M. Kuchling [Fri, 28 Jul 2006 12:07:12 +0000 (12:07 +0000)]
[Patch #1529811] Correction to description of r|* mode

18 years agoAllow socketmodule to compile on NetBSD -current, whose bluetooth API
Matt Fleming [Fri, 28 Jul 2006 11:27:27 +0000 (11:27 +0000)]
Allow socketmodule to compile on NetBSD -current, whose bluetooth API
differs from both Linux and FreeBSD. Accepted by Neal Norwitz.

18 years agoAdd UUID for upcoming 2.5b3.
Martin v. Löwis [Fri, 28 Jul 2006 07:45:49 +0000 (07:45 +0000)]
Add UUID for upcoming 2.5b3.

18 years agoTry to find the MAC addr on various flavours of Unix. This seems hopeless.
Neal Norwitz [Fri, 28 Jul 2006 07:21:27 +0000 (07:21 +0000)]
Try to find the MAC addr on various flavours of Unix.  This seems hopeless.
The reduces the test_uuid failures, but there's still another method failing.

18 years agoLive with that "the hardware address" is an ill-defined
Tim Peters [Fri, 28 Jul 2006 04:51:59 +0000 (04:51 +0000)]
Live with that "the hardware address" is an ill-defined
concept, and that different ways of trying to find "the
hardware address" may return different results.  Certainly
true on both of my Windows boxes, and in different ways
(see whining on python-dev).

18 years agoEnsure the actual number matches the expected count
Neal Norwitz [Fri, 28 Jul 2006 04:22:34 +0000 (04:22 +0000)]
Ensure the actual number matches the expected count

18 years ago- pybsddb Bug #1527939: bsddb module DBEnv dbremove and dbrename
Gregory P. Smith [Fri, 28 Jul 2006 01:35:25 +0000 (01:35 +0000)]
- pybsddb Bug #1527939: bsddb module DBEnv dbremove and dbrename
  methods now allow their database parameter to be None as the
  sleepycat API allows.

Also adds an appropriate test case for DBEnv.dbrename and dbremove.

18 years agoNews about the repaired memory leak in defaultdict.
Tim Peters [Fri, 28 Jul 2006 00:30:00 +0000 (00:30 +0000)]
News about the repaired memory leak in defaultdict.

18 years agodefdict_reduce(): Plug leaks.
Tim Peters [Fri, 28 Jul 2006 00:23:15 +0000 (00:23 +0000)]
defdict_reduce():  Plug leaks.

We didn't notice these before because test_defaultdict didn't
actually do anything before Georg fixed that earlier today.
Neal's next refleak run then showed test_defaultdict leaking
9 references on each run.  That's repaired by this checkin.

18 years agoEnable the building of the _types module on Windows.
Barry Warsaw [Thu, 27 Jul 2006 23:50:40 +0000 (23:50 +0000)]
Enable the building of the _types module on Windows.

Note that this has only been tested for VS 2003 since that's all I have.

18 years agoAdd missing svn:eol-style property to text files.
Tim Peters [Thu, 27 Jul 2006 23:46:36 +0000 (23:46 +0000)]
Add missing svn:eol-style property to text files.

18 years agoWhitespace normalization.
Tim Peters [Thu, 27 Jul 2006 23:45:48 +0000 (23:45 +0000)]
Whitespace normalization.

18 years agoBug #1529297: The rewrite of doctest for Python 2.4 unintentionally
Tim Peters [Thu, 27 Jul 2006 23:44:37 +0000 (23:44 +0000)]
Bug #1529297:  The rewrite of doctest for Python 2.4 unintentionally
lost that tests are sorted by name before being run.  ``DocTestFinder``
has been changed to sort the list of tests it returns.

18 years agoPatch #1520294: Support for getset and member descriptors in types.py,
Barry Warsaw [Thu, 27 Jul 2006 23:43:15 +0000 (23:43 +0000)]
Patch #1520294: Support for getset and member descriptors in types.py,
inspect.py, and pydoc.py.  Specifically, this allows for querying the type of
an object against these built-in C types and more importantly, for getting
their docstrings printed in the interactive interpreter's help() function.

This patch includes a new built-in module called _types which provides
definitions of getset and member descriptors for use by the types.py module.
These types are exposed as types.GetSetDescriptorType and
types.MemberDescriptorType.  Query functions are provided as
inspect.isgetsetdescriptor() and inspect.ismemberdescriptor().  The
implementations of these are robust enough to work with Python implementations
other than CPython, which may not have these fundamental types.

The patch also includes documentation and test suite updates.

I commit these changes now under these guiding principles:

1. Silence is assent.  The release manager has not said "no", and of the few
   people that cared enough to respond to the thread, the worst vote was "0".

2. It's easier to ask for forgiveness than permission.

3. It's so dang easy to revert stuff in svn, that you could view this as a
   forcing function. :)

Windows build patches will follow.

18 years agoAdd example
Andrew M. Kuchling [Thu, 27 Jul 2006 22:49:54 +0000 (22:49 +0000)]
Add example

18 years agoAdd example
Andrew M. Kuchling [Thu, 27 Jul 2006 22:49:38 +0000 (22:49 +0000)]
Add example

18 years agoReword paragraph
Andrew M. Kuchling [Thu, 27 Jul 2006 22:40:05 +0000 (22:40 +0000)]
Reword paragraph

18 years agocheck_node(): stop spraying mystery output to stderr.
Tim Peters [Thu, 27 Jul 2006 20:47:24 +0000 (20:47 +0000)]
check_node():  stop spraying mystery output to stderr.

When a node number disagrees, keep track of all sources & the
node numbers they reported, and stick all that in the error message.

Changed all callers to supply a non-empty "source" argument; made
the "source" argument non-optional.

On my box, test_uuid still fails, but with the less confusing output:

AssertionError: different sources disagree on node:
    from source 'getnode1', node was 00038a000015
    from source 'getnode2', node was 00038a000015
    from source 'ipconfig', node was 001111b2b7bf

Only the last one appears to be correct; e.g.,

C:\Code\python\PCbuild>getmac

Physical Address    Transport Name
=================== ==========================================================
00-11-11-B2-B7-BF   \Device\Tcpip_{190FB163-5AFD-4483-86A1-2FE16AC61FF1}
62-A1-AC-6C-FD-BE   \Device\Tcpip_{8F77DF5A-EA3D-4F1D-975E-D472CEE6438A}
E2-1F-01-C6-5D-88   \Device\Tcpip_{CD18F76B-2EF3-409F-9B8A-6481EE70A1E4}

I can't find anything on my box with MAC 00-03-8a-00-00-15, and am
not clear on where that comes from.

18 years agoIf binhex is higher-level than binascii, it should come first in the chapter
Andrew M. Kuchling [Thu, 27 Jul 2006 19:12:49 +0000 (19:12 +0000)]
If binhex is higher-level than binascii, it should come first in the chapter

18 years agoMention base64 module; rewrite last sentence to be more positive
Andrew M. Kuchling [Thu, 27 Jul 2006 19:11:07 +0000 (19:11 +0000)]
Mention base64 module; rewrite last sentence to be more positive

18 years agoAdd punctuation mark; add some examples
Andrew M. Kuchling [Thu, 27 Jul 2006 19:07:29 +0000 (19:07 +0000)]
Add punctuation mark; add some examples

18 years agoUpdate URL; add example
Andrew M. Kuchling [Thu, 27 Jul 2006 18:53:33 +0000 (18:53 +0000)]
Update URL; add example

18 years agoRepair typos
Andrew M. Kuchling [Thu, 27 Jul 2006 18:44:10 +0000 (18:44 +0000)]
Repair typos

18 years agoAdd missing word
Andrew M. Kuchling [Thu, 27 Jul 2006 18:42:41 +0000 (18:42 +0000)]
Add missing word

18 years agoTypo fix ('publically' is rare, poss. non-standard)
Andrew M. Kuchling [Thu, 27 Jul 2006 18:41:21 +0000 (18:41 +0000)]
Typo fix ('publically' is rare, poss. non-standard)

18 years agoRemove code that is no longer used (ctypes.com).
Thomas Heller [Thu, 27 Jul 2006 18:39:55 +0000 (18:39 +0000)]
Remove code that is no longer used (ctypes.com).

Fix the DllGetClassObject and DllCanUnloadNow so that they forward the
call to the comtypes.server.inprocserver module.

The latter was never documented, never used by published code, and
didn't work anyway, so I think it does not deserve a NEWS entry (but I
might be wrong).

18 years agoAdd example
Andrew M. Kuchling [Thu, 27 Jul 2006 18:37:33 +0000 (18:37 +0000)]
Add example

18 years agoMake uuid test suite pass on this box by requesting output with LC_ALL=C.
Georg Brandl [Thu, 27 Jul 2006 16:08:15 +0000 (16:08 +0000)]
Make uuid test suite pass on this box by requesting output with LC_ALL=C.

18 years agoAmend news entry.
Georg Brandl [Thu, 27 Jul 2006 15:38:33 +0000 (15:38 +0000)]
Amend news entry.

18 years agoWhitespace normalization.
Tim Peters [Thu, 27 Jul 2006 15:11:00 +0000 (15:11 +0000)]
Whitespace normalization.

18 years agoNews for patch #1529686.
Tim Peters [Thu, 27 Jul 2006 15:09:20 +0000 (15:09 +0000)]
News for patch #1529686.

18 years agoAdd test_main() methods. These three tests were never run
Georg Brandl [Thu, 27 Jul 2006 15:05:36 +0000 (15:05 +0000)]
Add test_main() methods. These three tests were never run
by regrtest.py.

We really need a simpler testing framework.

18 years agoReformat docstring; fix typo
Andrew M. Kuchling [Thu, 27 Jul 2006 12:18:20 +0000 (12:18 +0000)]
Reformat docstring; fix typo

18 years agoBump distutils version to 2.5, as several new features
Martin v. Löwis [Thu, 27 Jul 2006 06:38:16 +0000 (06:38 +0000)]
Bump distutils version to 2.5, as several new features
have been introduced since 2.4.

18 years agoNo functional change. Add comment and assert to describe why there cannot be overflo...
Neal Norwitz [Thu, 27 Jul 2006 04:04:50 +0000 (04:04 +0000)]
No functional change.  Add comment and assert to describe why there cannot be overflow which was reported by Klocwork.  Discussed on python-dev

18 years agoClosure can't be NULL at this point since we know it's a tuple.
Neal Norwitz [Thu, 27 Jul 2006 03:55:39 +0000 (03:55 +0000)]
Closure can't be NULL at this point since we know it's a tuple.

Reported by Klocwork # 74.

18 years agoDon't kill a normal instance of python running on windows when checking
Neal Norwitz [Thu, 27 Jul 2006 03:51:58 +0000 (03:51 +0000)]
Don't kill a normal instance of python running on windows when checking
to kill a cygwin instance.  build\\python.exe was matching a normal windows
instance.  Prefix that with a \\ to ensure build is a directory and not
PCbuild.  As discussed on python-dev.

18 years agoBug #1521947: possible bug in mystrtol.c with recent gcc.
Tim Peters [Thu, 27 Jul 2006 01:14:53 +0000 (01:14 +0000)]
Bug #1521947:  possible bug in mystrtol.c with recent gcc.

In general, C doesn't define anything about what happens when
an operation on a signed integral type overflows, and PyOS_strtol()
did several formally undefined things of that nature on signed
longs.  Some version of gcc apparently tries to exploit that now,
and PyOS_strtol() could fail to detect overflow then.

Tried to repair all that, although it seems at least as likely to me
that we'll get screwed by bad platform definitions for LONG_MIN
and/or LONG_MAX now.  For that reason, I don't recommend backporting
this.

Note that I have no box on which this makes a lick of difference --
can't really test it, except to note that it didn't break anything
on my boxes.

Silent change:  PyOS_strtol() used to return the hard-coded 0x7fffffff
in case of overflow.  Now it returns LONG_MAX.  They're the same only on
32-bit boxes (although C doesn't guarantee that either ...).

18 years agoWhitespace normalization.
Tim Peters [Wed, 26 Jul 2006 23:23:15 +0000 (23:23 +0000)]
Whitespace normalization.

18 years agoAllow the 'onerror' argument to walk_packages() to catch any Exception, not
Phillip J. Eby [Wed, 26 Jul 2006 19:48:27 +0000 (19:48 +0000)]
Allow the 'onerror' argument to walk_packages() to catch any Exception, not
just ImportError.  This allows documentation tools to better skip unimportable
packages.

18 years agoUse sys.exc_info()
Andrew M. Kuchling [Wed, 26 Jul 2006 18:15:45 +0000 (18:15 +0000)]
Use sys.exc_info()

18 years agoUse sys.exc_info()
Andrew M. Kuchling [Wed, 26 Jul 2006 18:03:12 +0000 (18:03 +0000)]
Use sys.exc_info()

18 years agoPut news item in right section
Andrew M. Kuchling [Wed, 26 Jul 2006 17:22:21 +0000 (17:22 +0000)]
Put news item in right section

18 years agoMinor grammar fix
Andrew M. Kuchling [Wed, 26 Jul 2006 17:19:39 +0000 (17:19 +0000)]
Minor grammar fix

18 years agoCorrect error message
Andrew M. Kuchling [Wed, 26 Jul 2006 17:18:01 +0000 (17:18 +0000)]
Correct error message

18 years ago[Bug #1471938] Fix build problem on Solaris 8 by conditionalizing the use of mvwgetns...
Andrew M. Kuchling [Wed, 26 Jul 2006 17:16:52 +0000 (17:16 +0000)]
[Bug #1471938] Fix build problem on Solaris 8 by conditionalizing the use of mvwgetnstr(); it was conditionalized a few lines below.  Fix from Paul Eggert.  I also tried out the STRICT_SYSV_CURSES case and am therefore removing the 'untested' comment.

18 years agoBug #978833: Really close underlying socket in _socketobject.close.
Martin v. Löwis [Wed, 26 Jul 2006 12:12:56 +0000 (12:12 +0000)]
Bug #978833: Really close underlying socket in _socketobject.close.
Fix httplib.HTTPConnection.getresponse to not close the
socket if it is still needed for the response.

18 years agoPart of bug #1523610: fix miscalculation of buffer length.
Georg Brandl [Wed, 26 Jul 2006 08:03:10 +0000 (08:03 +0000)]
Part of bug #1523610: fix miscalculation of buffer length.

Also add a guard against NULL in converttuple and add a test case
(that previously would have crashed).