Hi, Von: Jeff Hardy > Keith's point is that 'from x import *' would be potentially dangerous (as > you don't know what the properties might do when get is called), unlike > explicit property imports. Unlikely, yes, but possible. > > If someone provides some code to prove that the property getters are safe, > it would be OK, but I'm not counting on it.
In our code, we have a lot of property getters which internally implement lazy initialization for expensive resources. This would be broken by "import *" automatically evaluating them. Regards, Markus Schaber ___________________________ We software Automation. 3S-Smart Software Solutions GmbH Markus Schaber | Entwicklung Memminger Str. 151 | 87439 Kempten | Tel. +49-831-54031-0 | Fax +49-831-54031-50 Email: [email protected] | Web: http://www.3s-software.com CoDeSys Internet-Forum: http://forum.3s-software.com Geschäftsführer: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Handelsregister: Kempten HRB 6186 | USt-IDNr.: DE 167014915 _______________________________________________ Ironpython-users mailing list [email protected] http://mail.python.org/mailman/listinfo/ironpython-users
