DbiDate object

2007-05-28 Thread revuesbio
Hi all I am using odbc to connect to Microsoft Access DB. When I send a request with a datetime column from the database, odbc returns something called a DbiDate object. ex : >>> x=data[0][2] >>> print x Fri Apr 20 07:27:45 2007 I would like to select columns where datetime ("DbiDate column")

Re: Is PEP-8 a Code or More of a Guideline?

2007-05-28 Thread Paul Rubin
Steven D'Aprano <[EMAIL PROTECTED]> writes: > There was also Hypercard from Apple in (by memory) 1988. Although case was > not significant, handlers were usually written mouseDown, mouseUp, > openStack, openCard, etc. Apple (*cough*) Xerox PARC (*cough*). I think that style got into the Macintosh

Re: itertools.groupby

2007-05-28 Thread Paul Rubin
Paul Rubin writes: > >See http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/259173 > But that recipe generates the groups in a random order depending on > the dict hashing, Correction, it generates the right order in this case, although it builds up an in-memo

Re: Tkinter error

2007-05-28 Thread BartlebyScrivener
On May 28, 4:57 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > >>> b1 = Button(win,text="One") > >>> b2 = Button(win,text="Two") That worked. Thank you. Rick -- http://mail.python.org/mailman/listinfo/python-list

Python command line error

2007-05-28 Thread Mick Duprez
Hi All, I've installed Python 2.5 on a number of machines but on one I'm having problems with the CLI. If I fire up the 'cmd' dos box and type 'python' I get a line of gibberish and it locks up the cli, if I run the 'command' dos box I get a few lines of garbage and it crashes/closes the dos box.

Re: Long double in Python

2007-05-28 Thread Alex Martelli
Charles Vejnar <[EMAIL PROTECTED]> wrote: > Hi, > > Thanks for both suggestions. > > I have indeed tried gmpy. For me, it's not very important to choose between > numpy or gmpy. > > I hope I won't be off topic. But, as I told you before, I have a C library > using "long double" numbers and I wo

Re: Is PEP-8 a Code or More of a Guideline?

2007-05-28 Thread Eric S. Johansson
Paul McGuire wrote: > At first, Guido seemed ambivalent, and commented on the > contentiousness of the issue, but it seems that the "non-English > speakers can more easily find word breaks marked with underscores" > justification tipped the scale in favor of > lower_case_with_underscores. > > Th

Re: gui application on cross platform

2007-05-28 Thread Ed Leafe
On May 28, 2007, at 2:01 AM, james_027 wrote: > I am using delphi to develop gui application, and wish to make a shift > to python. here are some of my question/concern... > > 1. is python develop gui application a cross platform? just like java > swing? wxPython is probably the best cros

Re: Python command line error

2007-05-28 Thread Max Erickson
Mick Duprez <[EMAIL PROTECTED]> wrote: > Hi All, > > I've installed Python 2.5 on a number of machines but on one I'm > having problems with the CLI. > If I fire up the 'cmd' dos box and type 'python' I get a line of > gibberish and it locks up the cli, if I run the 'command' dos box > I get a fe

Re: Python command line error

2007-05-28 Thread Mick Duprez
On May 29, 11:33 am, Max Erickson <[EMAIL PROTECTED]> wrote: > Mick Duprez <[EMAIL PROTECTED]> wrote: > > Hi All, > > > I've installed Python 2.5 on a number of machines but on one I'm > > having problems with the CLI. > > If I fire up the 'cmd' dos box and type 'python' I get a line of > > gibberi

Re: Issue of redirecting the stdout to both file and screen

2007-05-28 Thread 人言落日是天涯,望极天涯不见家
I see. Many thanks to you! -- http://mail.python.org/mailman/listinfo/python-list

Air Jordan Shoes on Sale - $75

2007-05-28 Thread www_ieshoes_com
ieshoes.com shop Jordan 1-21's Bape shoes On Sale Now $75 http://www.ieshoes.com msn:[EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Resize image NO PIL!!

2007-05-28 Thread cbmeeks
I have created an image hosting site and when a user uploads an image, I want a service to run on the server to create a few thumbnails while the user does other things. My stupid host (pair.com) doesn't have PIL installed and I'm too much of a stupid newbie to figure out how to get it to work wit

Patch to pydoc (partial) to handle encodings other than ascii

2007-05-28 Thread w . m . gardella . sambeth
Hello Pythonists: I am using SPE as python IDE on Windows, with Python 2.5.1 installed (official distro). As my mother tongue is Spanish, I had documented some modules in it (I now, I should have documented all in English, except if I were 110% sure than nobody else would read my docs, but they are

Re: itertools.groupby

2007-05-28 Thread Gordon Airporte
Paul Rubin wrote: > It chops up the iterable into a bunch of smaller ones, but the total > size ends up the same. "Telescope", "compact", "collapse" etc. make > it sound like the output is going to end up smaller than the input. Good point... I guess I was thinking in terms of the number of iter

Re: Is PEP-8 a Code or More of a Guideline?

2007-05-28 Thread Frank Swarbrick
Roy Smith wrote: > I really like lisp's convention of using dashes instead of underscores, > i.e. ip-address and snmp-manager. I think the only reason most languages > don't use that is the parsing ambiguity, but if you required white space > around all operators, then "ip-address" would unambi

Re: Resize image NO PIL!!

2007-05-28 Thread Dave Benjamin
cbmeeks wrote: > I have created an image hosting site and when a user uploads an image, > I want a service to run on the server to create a few thumbnails while > the user does other things. > > My stupid host (pair.com) doesn't have PIL installed and I'm too much > of a stupid newbie to figure ou

Re: itertools.groupby

2007-05-28 Thread Paul Rubin
Gordon Airporte <[EMAIL PROTECTED]> writes: > "itertools.groupby_except_the_notion_of_uniqueness_is_limited_to- > _contiguous_runs_of_elements_having_the_same_key()" doesn't have much > of a ring to it. I guess this gets back to documentation problems, > because the help string says nothing about t

Re: itertools.groupby

2007-05-28 Thread Carsten Haese
On Mon, 28 May 2007 23:02:31 -0400, Gordon Airporte wrote > ''' > class groupby(__builtin__.object) > | groupby(iterable[, keyfunc]) -> create an iterator which returns > | (key, sub-iterator) grouped by each value of key(value). > | > ''' > > "Each" seems to imply uniqueness here. Yes, I

Circular imports

2007-05-28 Thread Ron Provost
Hello, I'm in the process of porting a project from Java to python. The original project is very poorly organized. Nearly each class is depentant upon nearly every other class. Before I go playing around with the logic by moving things around and cleaning up the code, I want to get it workin

Storing tracebacks

2007-05-28 Thread George Sakkis
I'm reading the docs on sys.exc_info() but I can't tell for sure whether I'm using it safely to get a snapshot of an exception and reraise it later. The use case is a class which acts like a deferred callable, a callable that will be called at some point in the future (possibly in a different threa

Re: Circular imports

2007-05-28 Thread Carsten Haese
On Mon, 28 May 2007 23:46:00 -0400, Ron Provost wrote > [...] python is not happy about my circular imports [...] A circular import is not a problem in itself. I'm guessing you're running into a situation like this: Module A imports module B and then defines an important class. Module B imports

how to print the GREEK CAPITAL LETTER delta under utf-8 encoding

2007-05-28 Thread 人言落日是天涯,望极天涯不见家
I lookup the utf-8 form of delta from the link. http://www.fileformat.info/info/unicode/char/0394/index.htm and then I want to print it in the python ( I work under windows) #!/usr/bin/python #coding=utf-8 print "\xce\x94" but the result is not the 'delta' but an unknown character. -- http://

RE: gui application on cross platform

2007-05-28 Thread Eiwot
Yes, Python can develop cross platform application. I'm using PyGTK which is a binding between GTK and Python. Check it out at http://pyarticles.blogspot.com Cheers> Date: Mon, 28 May 2007 18:52:08 +1000> From: [EMAIL PROTECTED]> Subject: Re: gui application on cross platform> To: python-list@

Re: DbiDate object

2007-05-28 Thread Frank Millman
On May 29, 12:51 am, revuesbio <[EMAIL PROTECTED]> wrote: > Hi all > > I am using odbc to connect to Microsoft Access DB. When I send a > request with a datetime column from the database, odbc returns > something called a DbiDate object. > ex :>>> x=data[0][2] > > >>> print x > > Fri Apr 20 07:27

Re: The Concepts and Confusions of Prefix, Infix, Postfix and Fully Functional Notations

2007-05-28 Thread Jon Harrop
Markus E Leypold wrote: > The answer to your question is very simple: Xah Lee is a troll. In this context, I believe he is marketing/advertising himself as a consultant and some kind of vampiric man-whore according to this page: http://xahlee.org/PageTwo_dir/Personal_dir/xah.html "... I'm tech

Re: Module listing in order.

2007-05-28 Thread Nick Craig-Wood
Ramashish Baranwal <[EMAIL PROTECTED]> wrote: > > > I want a way to get the contents in the order of their declaration, > > > i.e. [B, A, D]. Does anyone know a way to get it? > > > > My suggestion would be to actually parse the text of the module. "Brute > > force" is what it's called ;). But doin

Re: how to print the GREEK CAPITAL LETTER delta under utf-8 encoding

2007-05-28 Thread Martin v. Lo
人言落日是天涯,望极天涯不见家 schrieb: > I lookup the utf-8 form of delta from the link. > http://www.fileformat.info/info/unicode/char/0394/index.htm > > and then I want to print it in the python ( I work under windows) > > #!/usr/bin/python > #coding=utf-8 > > print "\xce\x94" > > but the result is not the

3D libraries (was The Concepts and Confusions of Prefix, Infix, Postfix and Fully Functional Notations)

2007-05-28 Thread Ville Oikarinen
On Tue, 29 May 2007, Jon Harrop wrote: > Anyway, are there any libraries to do hardware accelerated vector graphics > in Perl, Python, Lisp, Java or any functional language (except OCaml and F# > and excluding WPF and Silverlight)? I believe there are OpenGL bindings for quite many languages, her

Re: gui application on cross platform

2007-05-28 Thread Etienne Hilson
> > james_027 wrote: > > > Hi, > > > > > > I am using delphi to develop gui application, and wish to make a shift > > > to python. here are some of my question/concern... > > > > > > 1. is python develop gui application a cross platform? just like java > > > swing? My first programming language wa

Periodic tasks.

2007-05-28 Thread Ramashish Baranwal
Hi, I am trying to execute some tasks periodically, those familiar with unix can think of it as equivalent to cron jobs. I have tried looking around, but couldn't find a way. Would appreciate any pointers or clues.. Thanks, -Ram -- http://mail.python.org/mailman/listinfo/python-list

Re: itertools.groupby

2007-05-28 Thread Raymond Hettinger
On May 28, 8:36 pm, "Carsten Haese" <[EMAIL PROTECTED]> wrote: > And while > we're at it, it probably should be keyfunc(value), not key(value). No dice. The itertools.groupby() function is typically used in conjunction with sorted(). It would be a mistake to call it keyfunc in one place and not

Re: how to print the GREEK CAPITAL LETTER delta under utf-8 encoding

2007-05-28 Thread 人言落日是天涯,望极天涯不见家
On 5月29日, 下午1时34分, "Martin v. Lo"wis" <[EMAIL PROTECTED]> wrote: > 人言落日是天涯,望极天涯不见家 schrieb: > > > I lookup the utf-8 form of delta from the link. > >http://www.fileformat.info/info/unicode/char/0394/index.htm > > > and then I want to print it in the python ( I work under windows) > > > #!/usr/bin/p

<    1   2