Bug#464751: cython: cannot use the 'unicode' built-in function

2008-02-08 Thread Jakub Wilk

Package: cython
Version: 0.9.6.11.ds-1
Severity: normal


$ cat buggy.pyx
x = basestring # OK
x = str # OK
x = unicode # fails


$ cython buggy.pyx

Error converting Pyrex file to C:

...
x = basestring # OK
x = str # OK
x = unicode # fails
  ^


/tmp/buggy.pyx:3:19: Cannot convert 'object (object)' to Python object


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (900, 'testing'), (600, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=pl_PL (charmap=ISO-8859-2)
Shell: /bin/sh linked to /bin/dash

Versions of packages cython depends on:
ii  python2.4.4-6An interactive high-level object-o
ii  python-support0.7.6  automated rebuilding support for p

cython recommends no packages.

-- no debconf information

--
Jakub Wilk



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#464751: cython: cannot use the 'unicode' built-in function

2008-02-08 Thread Ondrej Certik
Hi Jakub,

 $ cat buggy.pyx
 x = basestring # OK
 x = str # OK
 x = unicode # fails


 $ cython buggy.pyx

 Error converting Pyrex file to C:
 
 ...
 x = basestring # OK
 x = str # OK
 x = unicode # fails
^
 

 /tmp/buggy.pyx:3:19: Cannot convert 'object (object)' to Python object

Thanks very much for the bug report! I reported it upstream:

http://codespeak.net/pipermail/cython-dev/2008-February/38.html

Feel free to follow it in there or help upstream fixing it.

Ondrej



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]