zepolen wrote: > Say you make a class based on formencode Schema. > > class TestSchema(formencode.Schema): > pass > > TestSchema.to_python will always refer to a single instance whereas > > TestSchema().to_python will create a new instance. > > Is there any downside from using the first one, eg. thread safety, > assuming you don't use any of the mutating methods like add_field, and > just use the to_python method?
No, there's no problem, in fact TestScheme.to_python just instantiates the class and then calls to_python on the instance. -- Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
