[issue13665] TypeError: string or integer address expected instead of str instance

2012-01-17 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset b4d9243d16c9 by Ezio Melotti in branch '3.2':
#13665: s/string/bytes/ in error message.
http://hg.python.org/cpython/rev/b4d9243d16c9

New changeset 0c0ffebfccb0 by Ezio Melotti in branch 'default':
#13665: merge with 3.2.
http://hg.python.org/cpython/rev/0c0ffebfccb0

--
nosy: +python-dev

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



[issue13665] TypeError: string or integer address expected instead of str instance

2012-01-17 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
assignee:  - ezio.melotti
resolution:  - fixed
stage: commit review - committed/rejected
status: open - closed

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




[issue13665] TypeError: string or integer address expected instead of str instance

2012-01-16 Thread Meador Inge

Meador Inge mead...@gmail.com added the comment:

LGTM.  Thanks for fixing this.

--

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



[issue13665] TypeError: string or integer address expected instead of str instance

2012-01-15 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

Here's a patch.
I found a similar instance that says unicode string or integer address 
expected instead of %s instance, but it's inside an if 
(!PyUnicode_Check(value)) {} so it should be ok (unicode string could be 
replaced to 'str' though).

--
keywords: +patch
stage: needs patch - commit review
Added file: http://bugs.python.org/file24247/issue13665.diff

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



[issue13665] TypeError: string or integer address expected instead of str instance

2012-01-02 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti
stage:  - needs patch
type:  - enhancement

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



[issue13665] TypeError: string or integer address expected instead of str instance

2011-12-30 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
nosy: +amaury.forgeotdarc, meador.inge

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



[issue13665] TypeError: string or integer address expected instead of str instance

2011-12-26 Thread Jason R. Coombs

New submission from Jason R. Coombs jar...@jaraco.com:

When constructing a ctypes.c_char_p with a unicode string, a confusing error 
message is reported:

 python -c import ctypes; ctypes.c_char_p('foo')
Traceback (most recent call last):
  File string, line 1, in module
TypeError: string or integer address expected instead of str instance

Since string and str seem like essentially the same thing, the error 
message doesn't make sense.

This message is obviously due to the change to unicode as the default string 
instance in Python 3. The error message should probably be updated to read 
bytes or integer address expected instead of a str instance.

It's probably also worth scanning through the ctypes codebase for similar 
messages.

--
components: ctypes
messages: 150271
nosy: jason.coombs
priority: low
severity: normal
status: open
title: TypeError: string or integer address expected instead of str instance
versions: Python 3.2, Python 3.3

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