Re: OAuth 2.0 implementation

2012-03-27 Thread Stuart Bishop
il account') and OAuth ('post this message to your Facebook wall'). -- Stuart Bishop http://www.stuartbishop.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: how to write thread-safe module ? and pytz

2005-08-13 Thread Stuart Bishop
gt;> for t in threads: t.start() ... Exception in thread Thread-249: Traceback (most recent call last): File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap self.run() File "/usr/lib/python2.4/threading.py", line 422, in run self.__target(*self.__args, **self.__kwargs) File "", line 5, in doit IndexError: list assignment index out of range -- Stuart Bishop <[EMAIL PROTECTED]> http://www.stuartbishop.net/ signature.asc Description: OpenPGP digital signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Postgres PL/Python

2005-09-15 Thread Stuart Bishop
that talks to the internal database APIs you are still stuck with just the equivalent of 'print' as your toolkit. -- Stuart Bishop <[EMAIL PROTECTED]> http://www.stuartbishop.net/ signature.asc Description: OpenPGP digital signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Tabnanny really useful?

2004-12-23 Thread Stuart Bishop
will totally confuse someone with their editor misconfigured with 4 char tabs? - -- Stuart Bishop <[EMAIL PROTECTED]> http://www.stuartbishop.net/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFByp4nAfqZj7rGN0oRAoq9AJ4scAe0A3aFnx7jRZuqtRXXaxAcRgCfYkVf FbH2HBFA4/44KgZfpiPu

Re: I look for a list to convert time zone abbreviation to full time zone in python

2013-12-03 Thread Stuart Bishop
he database is corrected). Also, to correctly represent this you need to specify the point in time. EST in 'Tue Dec 3 20:44:00 EST 2013' maps to about 3 timezones. EST in 'Tue Dec 3 20:44:00 EST 2011' maps to about 6. -- Stuart Bishop http://www.stuartbishop.net/ -- https://mail.

Re: Encoding sniffer?

2006-01-11 Thread Stuart Bishop
(s, 'ISO-8859-15') except UnicodeDecodeError: pass Feel free to update your available code. Otherwise, I can probably post ours somewhere if necessary. -- Stuart Bishop <[EMAIL PROTECTED]> http://www.stuartbishop.net/ signature.asc Description: OpenPGP digital signature -- http://mail.python.org/mailman/listinfo/python-list

Re: psycopg2 faster way to retrieve last x records

2006-11-07 Thread Stuart Bishop
ly need the results in tempounix order, then: SELECT * FROM ( SELECT * FROM seconds ORDER BY tempounix DESC LIMIT 200 ) AS whatever ORDER BY tempounix; -- Stuart Bishop <[EMAIL PROTECTED]> http://www.stuartbishop.net/ signature.asc Description: OpenPGP digital signature -- http://mail.python.org/mailman/listinfo/python-list

Re: A critique of cgi.escape

2006-09-27 Thread Stuart Bishop
here are better approaches than making non-backwards compatible changes to functions people have been relying on since Python 1.5. -- Stuart Bishop <[EMAIL PROTECTED]> http://www.stuartbishop.net/ signature.asc Description: OpenPGP digital signature -- http://mail.python.org/mailman/listinfo/python-list

Re: PostgreSQL, psycopg2 and OID-less tables

2006-09-27 Thread Stuart Bishop
e and column name don't contain odd characters like = or ' or ., in which case you need to properly quote them). The reason it is better is that in odd cases the sequence name will not always be %(tableid)s_%(columnid)s_seq, such as after you have renamed a table. -- Stuart Bishop <

Re: does anybody earn a living programming in python?

2006-09-27 Thread Stuart Bishop
me. It indicated a level of care and pride about their profession rather than someone who just treated cutting code as a day job. That might be changing now that Python is becoming more visible on peoples radar. -- Stuart Bishop <[EMAIL PROTECTED]> http://www.stuartbishop.net/ signature.asc Description: OpenPGP digital signature -- http://mail.python.org/mailman/listinfo/python-list

Re: DB API 2.0 and transactions

2005-06-16 Thread Stuart Bishop
pygresql.org/cvsweb.cgi/pygresql/module/pgdb.py?rev=1.27 fwiw psycopg 1.1.18 has the correct behavior (as usual). I can add this test to the DB-API 2.0 Anal Compliance Test Suite if we want, although it sounds like it is only an issue with PostgreSQL drivers. - -- Stuart Bishop <[EMAIL P

Re: pytz2007c error

2007-03-06 Thread Stuart Bishop
is function. Is this a problem from Windows ? Looks like it. I've opened a bug. https://bugs.beta.launchpad.net/pytz/+bug/90096 Current workaround is to use an earlier release. This will be fixed as pytz needs to remain cross platform. -- Stuart Bishop <[EMAIL PROTECTED]> http