id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc
48	yaml.load does not call __init__ of objects	aymanbahrain@…	xi	"I noticed that my __init__ code is not called when an object is created via yaml.load.  
Try this one:
In this example, fy.secret will raise an error about secret not an attribute of fy object.

{{{
import yaml

class Field:
    def __init__(self):
        print 'init called'
        self.secret = 'password'
        
f = Field()

print f.secret

fy = yaml.load(file('fld.yaml', 'r'))
print fy.hide_value               
print fy.secret

have fld.yaml contain:
!!python/object:__main__.Field 
hide_value: true

}}}
"	defect	closed	normal	pyyaml	normal	wontfix		
