|
From: Anders P. <an...@gm...> - 2008-11-03 21:12:40
|
David's mail had me remember the problems I've encountered myself.
Here's the list of issues in beta 4.beta26.
Please don't take it as critique, I really like the new features! Just
some small things to sort out.
Converting from a color to vector no longer works:
vector(sphere().color)
Traceback (most recent call last):
File "<pyshell#25>", line 1, in <module>
vector(a.color)
ArgumentError: Python argument types in
vector.__init__(vector, tuple)
did not match C++ signature:
__init__(_object*, cvisual::vector)
__init__(_object*)
__init__(_object*, double)
__init__(_object*, double, double)
__init__(_object*, double, double, double)
(I did this to interpolate transitions between two colors)
It is illegal to slice a vector?!
>>> from visual import vector
>>> a = vector(1,2,3)
>>> a[:2]
Traceback (most recent call last):
File "<pyshell#14>", line 1, in <module>
a[:2]
ArgumentError: Python argument types in
vector.__getitem__(vector, slice)
did not match C++ signature:
__getitem__(cvisual::vector {lvalue}, int)
Doesn't work:
pickle.dump(scene.forward, file)
pickle.dump(vector(scene.forward), output)
File "C:\Python25\lib\pickle.py", line 1362, in dump
Pickler(file, protocol).dump(obj)
File "C:\Python25\lib\pickle.py", line 224, in dump
self.save(obj)
File "C:\Python25\lib\pickle.py", line 331, in save
self.save_reduce(obj=obj, *rv)
File "C:\Python25\lib\pickle.py", line 401, in save_reduce
save(args)
File "C:\Python25\lib\pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
File "C:\Python25\lib\pickle.py", line 562, in save_tuple
save(element)
File "C:\Python25\lib\pickle.py", line 295, in save
self.save_global(obj)
File "C:\Python25\lib\pickle.py", line 748, in save_global
(obj, module, name))
PicklingError: Can't pickle <type 'Boost.Python.instance'>: it's not
found as Boost.Python.instance
I accidently did
box.height = 3
instead of object.box.height = 3
with very curious effects. Should it be possible to set dimensions for
all objects in this way?
/Anders Petersson
|