Re: problem with timezone parsing
Federico Di Gregorio <fog-NGVKUo/i/[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Organization | initd.org |
| Message-ID | <[email protected]> |
Il giorno mer, 25/02/2009 alle 13.04 +0100, Karsten Hilbert ha scritto: > On Tue, Feb 24, 2009 at 10:49:13AM +0100, Federico Di Gregorio wrote: > > > > > I'd like to add your code to cope with "bad" timezones to > > > > psycopg2.extras for next release. Do you care about tidying it and > > > > providing a call like register_uuid() or register_inet() that will > > > > install the type-caster? > > > Sure, what do I need to do ? > > > > Just have a look at extras.py and provide a single function there that > > install your type-caster. Then send a patch. Thanks! > > Would it be safe to assume that any Python version this is > going to be used against does have the logging module ? I'd > say yes. Please, don't add logging to anything to be distributed with psycopg. If you really need logging to debug is much better to use a custom, instrumented version of the libraries. federico -- Federico Di Gregorio http://people.initd.org/fog Debian GNU/Linux Developer [email protected] INIT.D Developer fog-NGVKUo/i/[email protected] We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. -- D.E.Knuth