|
From: Bruce S. <Bru...@nc...> - 2008-11-03 22:33:50
|
These bugs are gone from the Visual 5.0 about to be released. More below.
Anders Petersson wrote:
> 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)
This works in Visual 5.0.
>
> 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]
This works in Visual 5.0.
>
> 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)
This doesn't work but never has. Doesn't work in Visual 3 nor in Visual 5.0.
>
> 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?
What are the "curious effects"? I too am puzzled about this syntax.
>
>
> /Anders Petersson
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Visualpython-users mailing list
> Vis...@li...
> https://lists.sourceforge.net/lists/listinfo/visualpython-users
|