[issue6347] hpux11.00-parisc: dtoa.c: "Failed to find an exact-width 32-bit integer type"

2009-06-27 Thread Mark Dickinson

Changes by Mark Dickinson :


--
assignee:  -> marketdickinson
nosy: +marketdickinson
priority:  -> high

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6347] hpux11.00-parisc: dtoa.c: "Failed to find an exact-width 32-bit integer type"

2009-06-27 Thread Mark Dickinson

Mark Dickinson  added the comment:

Thanks for the report!

Is the operating system you're using HP-UX 11.00, or am I misunderstanding 
the issue title?  Isn't HP-UX 11.00 quite old?  (wikipedia says 1997).  
Does the problem exist with more recent versions of HP-UX 11?

>From the log file you supplied (thank you!) it looks as though the issue 
is that this version of HP-UX doesn't have the stdint.h standard header 
file that's required by C99.  This would hardly be surprising if the 1997 
date is accurate.

I have some questions and requests:

1. Please could you attach your post-configuration pyconfig.h file,
and also, if possible, the config.log file?

2. Does inttypes.h on your system define int32_t and uint32_t?

3. Does inttypes.h on your system define INT32_MAX and UINT32_MAX?

4. Does the attached patch fix the problem for you?  (Note: I'm not
yet proposing applying such a patch to the Python source;  I'm just
trying to diagnose the problem.)

For questions 2 and 3, be aware that there might be some #ifdef magic in 
inttypes.h so that what's actually defined depends on various compiler 
flags or preprocessor constants.  (For example, on some systems, I believe 
exports of INT32_MAX and friends from stdint.h are suppressed when using a 
C++ compiler instead of a C compiler.)

--
keywords: +patch
Added file: http://bugs.python.org/file14370/issue6347.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6347] hpux11.00-parisc: dtoa.c: "Failed to find an exact-width 32-bit integer type"

2009-06-27 Thread Mark Dickinson

Mark Dickinson  added the comment:

Sorry:  additional bit for question 2:

2a:  if inttypes.h defines int32_t and uint32_t, are they C macros or 
typedefs?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6226] Inconsistent 'file' vs 'stream' kwarg in pprint, other stdlibs

2009-06-27 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +Merwok

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6349] email.Maildir cannot roundtrip messages.

2009-06-27 Thread David Bremner

New submission from David Bremner :

if mailbox is an email.Maildir object  the following lines 
cause an exception for me.

for key in mailbox.keys():
msg=mailbox[key]
mailbox[key]=msg

I attach the whole script. I'm happy to send a tar file of the maildir
I used to test with.

--
files: test.py
messages: 89754
nosy: bremner
severity: normal
status: open
title: email.Maildir cannot roundtrip messages.
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file14371/test.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6350] Example at end of HTMLParser documentation uses old-style print syntax

2009-06-27 Thread Mitchell Model

New submission from Mitchell Model :

Change the print statements in the example at the bottom of the
documentation for HTMLParser to function calls.

--
assignee: georg.brandl
components: Documentation
messages: 89755
nosy: MLModel, georg.brandl
severity: normal
status: open
title: Example at end of HTMLParser documentation uses old-style print syntax
versions: Python 3.0, Python 3.1

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6350] Example at end of HTMLParser documentation uses old-style print syntax

2009-06-27 Thread Mitchell Model

Mitchell Model  added the comment:

Also, while you're at it I think the example should show a call to feed
since HTMLParser is unusual in not taking a contents argument when it is
created. Nothing wrong with the design, and it is clearly stated at the
beginning, but I like examples to be comprehensible at a glance and as
self-sufficient as can be conveniently achieved.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6344] mmap.read() crashes when passed a negative argument

2009-06-27 Thread Hirokazu Yamamoto

Hirokazu Yamamoto  added the comment:

Hmm, I cannot reproduce the crash. I created the patch experimentally,
but I'm not confident with this patch. Especially here

+   if (n < 0)
+   n = PY_SSIZE_T_MAX;

because I don't have so much memory.

--
keywords: +patch
Added file: http://bugs.python.org/file14372/fix_mmap_read.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6349] email.Maildir cannot roundtrip messages.

2009-06-27 Thread R. David Murray

R. David Murray  added the comment:

Please cut and paste the traceback.

--
components: +Library (Lib)
nosy: +r.david.murray
priority:  -> normal
stage:  -> test needed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6350] Example at end of HTMLParser documentation uses old-style print syntax

2009-06-27 Thread Ezio Melotti

Ezio Melotti  added the comment:

Fixed in r73592.
Thanks!

--
nosy: +ezio.melotti
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6349] email.Maildir cannot roundtrip messages.

2009-06-27 Thread David Bremner

David Bremner  added the comment:

[ 61 pivot ~/config/scripts ] python test.py
Traceback (most recent call last):
  File "test.py", line 11, in 
mailbox[key]=msg
  File "/usr/lib/python2.5/mailbox.py", line 293, in __setitem__
temp_key = self.add(message)
  File "/usr/lib/python2.5/mailbox.py", line 245, in add
self._dump_message(message, tmp_file)
  File "/usr/lib/python2.5/mailbox.py", line 220, in _dump_message
raise TypeError('Invalid message type: %s' % type(message))
TypeError: Invalid message type: 

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5896] timeit documentation

2009-06-27 Thread Ezio Melotti

Ezio Melotti  added the comment:

Fixed in r73595.
Thanks!

--
nosy: +ezio.melotti
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5555] optparse

2009-06-27 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +gward
priority:  -> low

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5254] Formatting error in "findertools" header

2009-06-27 Thread Ezio Melotti

Ezio Melotti  added the comment:

The original source of that page is:
:mod:`findertools` --- The :program:`finder`'s Apple Events interface
Apparently the ' is automatically replaced by a ‘ when Sphinx generates
the doc but if it's preceded by `something` Sphinx uses ‘ instead of ’.

--
nosy: +ezio.melotti
resolution:  -> invalid
status: open -> pending

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6351] Compiler warning in _cursesmodule.c

2009-06-27 Thread Hagen Fürstenau

New submission from Hagen Fürstenau :

My gcc complains that the variables x and y might be used uninitialized
in the function PyCurses_getsyx in Modules/_cursesmodule.c. This is
because the macro getsyx of curses.h apparently only sets x and y if
newscr is not NULL. There seems to have been a related discussion last year:

http://mail.python.org/pipermail/python-dev/2008-March/077496.html

--
components: Build
messages: 89763
nosy: hagen
severity: normal
status: open
title: Compiler warning in _cursesmodule.c
versions: Python 3.1

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6352] Compiler warning in unicodeobject.c

2009-06-27 Thread Hagen Fürstenau

New submission from Hagen Fürstenau :

Compiling --with-wide-unicode there's a warning that encodeUCS4 is
defined, but not used. A trivial patch for this is attached.

--
files: warning.patch
keywords: patch
messages: 89764
nosy: hagen
severity: normal
status: open
title: Compiler warning in unicodeobject.c
versions: Python 3.1
Added file: http://bugs.python.org/file14373/warning.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4856] Remove checks for win NT

2009-06-27 Thread Hirokazu Yamamoto

Hirokazu Yamamoto  added the comment:

OK, 3.1 was out. Can I commit this to trunk and merge it to py3k?

--
versions: +Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com