[Python-Dev] [issue2263] struct.pack() + numpy int raises SystemError

2009-02-12 Thread grubert

hello,

i took a look at unassigned open issue with the oldest activity
this happened to be issue2263

Original bug report:

  struct.pack() raises SystemError when fed a numpy integer in some cases.
  The following was run on MacOSX 10.4, little endian (I can only
  reproduce the error if I specify big endian for the struct format). Not
  sure if this could be a numpy bug.

i checked on ubuntu 8.04, Python 2.7a0 (trunk:69044) and numpy 1.2.1
and found

* signed always works, longlong also.
* unsigned native works half of the time
* unsigned little/big endian never works

digging into the source, for pack "B", ">B" and "http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Running Py2.6 with the -3 option

2008-07-16 Thread grubert

On Wed, 16 Jul 2008, engelbert gruber wrote:


On Wed, Jul 16, 2008 at 7:02 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote:


On Tue, Jul 15, 2008 at 11:50 PM, engelbert gruber
<[EMAIL PROTECTED]> wrote:

I see mostly ``dict.has_key() not supported in 3.x;`` and sometimes
``DeprecationWarning: callable() not supported in 3.x;`` .


Good catch, Engelbert.


isnt it that i throw and need someone who catches ?


But why would has_key() need a warning when 2to3 will fix it just fine?


for example, if has_key is the only problem in my module, it is
possible to support py22 to py3 with one source which i think would be
quite handy.


rather naive assumption of me.

anyway i'll file patches on case base.

all the best

--
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com