marylinh / pyv8

Automatically exported from code.google.com/p/pyv8
0 stars 0 forks source link

__defineGetter__ should work on the object instead of type #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

http://groups.google.com/group/pyv8/browse_thread/thread/c401d7ecd9ce93fd?hl=en

What is the expected output? What do you see instead?

__defineGetter__ should work on the object instead of type

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by flier...@gmail.com on 15 Dec 2010 at 4:59

GoogleCodeExporter commented 9 years ago
Please verify the issue with SVN trunk after r310

The current implementation base on a internal __properties__ field, which was 
used to store property at the object level, since Python only support binding 
property at type level. 

There are some hard code in CPythonObject::NamedEnumerator method, which try to 
hide the internal field (starts/ends with '__') from 'for key in object' 
syntax, that may break some exist code.

Original comment by flier...@gmail.com on 15 Dec 2010 at 5:21