Small problem with Psyco

B

bearophileHUGS

I post it here because I am using a Psyco version that was compiled by
people here.
I am using Python 2.6.1, on Win, with Psyco (1, 6, 0, 'final', 0).

This minimized code:

from psyco.classes import psyobj
class Bar(psyobj):
def __init__(self, baz):
pass
b = Bar(0)

Produces:
C:\...\test.py:5: DeprecationWarning: object.__new__() takes no
parameters
b = Bar(0)

Bye,
bearophile
 
S

Stefan Behnel

I post it here because I am using a Psyco version that was compiled by
people here.
I am using Python 2.6.1, on Win, with Psyco (1, 6, 0, 'final', 0).

This minimized code:

from psyco.classes import psyobj
class Bar(psyobj):
def __init__(self, baz):
pass
b = Bar(0)

Produces:
C:\...\test.py:5: DeprecationWarning: object.__new__() takes no
parameters
b = Bar(0)

I noticed that, too, when using Cython to compile a Python class that
inherits from object into an extension type that inherits from its C
equivalent at the C level. I assume that psyco does something similar here.

Stefan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top