Re: [Tutor] Hi

2007-03-16 Thread Rikard Bosnjakovic
On 3/16/07, Ben <[EMAIL PROTECTED]> wrote: > Is anyone can point me where I can find a good tutorial about pywin for > someone like me? Pywin itself is not a package for making GUIs, it's merely a IDE for Windows and got the win32all-package included. For GUIs, you want to look at wxPython, pygt

Re: [Tutor] convert hex number to decimal

2007-03-16 Thread Johan Geldenhuys
>>> ord('\x0D') 13 Johan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rikard Bosnjakovic Sent: 16 March 2007 01:12 PM To: Tutor@python.org Subject: Re: [Tutor] convert hex number to decimal On 3/16/07, ammar azif <[EMAIL PROTECTED]> wrote: > Is the

Re: [Tutor] Built-in function to check a character is ASCII character?

2007-03-16 Thread Luke Paireepinart
ammar azif wrote: > Is there any Built-in function to check whether a character is an > ASCII character? > > I am trying to learn event driven programming in python. Heres my code: > > while 1: > key=msvcrt.getch() > if key==255: > continue Here's your problem. >>> import msvcrt

Re: [Tutor] cookie expiration date format

2007-03-16 Thread Luke Paireepinart
Tim Johnson wrote: > Hi: > I want to be able to expire a cookie programmatically. > In other languages, I just set the expiration date to 'yesterday'. > If I look at the documentation at: > http://docs.python.org/lib/node644.html > for the Cookie object, I see the following: > -

[Tutor] Built-in function to check a character is ASCII character?

2007-03-16 Thread ammar azif
Is there any Built-in function to check whether a character is an ASCII character? I am trying to learn event driven programming in python. Heres my code: while 1: key=msvcrt.getch() if key==255: continue else: print "the key is ", key But the output is:- the key

[Tutor] cookie expiration date format

2007-03-16 Thread Tim Johnson
Hi: I want to be able to expire a cookie programmatically. In other languages, I just set the expiration date to 'yesterday'. If I look at the documentation at: http://docs.python.org/lib/node644.html for the Cookie object, I see the following: --

[Tutor] Passing a list, dict or tuple to MySQLdb?

2007-03-16 Thread Alan Wardroper
> I think what you want is ...(*list_of_tuples) similar to the syntax used > when calling functions with position arguments from a list. Thanks, that bypasses the "TypeError: not all arguments converted during string formatting" error but raises a new error "TypeError: execute() takes at m

Re: [Tutor] fine in interpreter, hangs in batch

2007-03-16 Thread Jerry Hill
On 3/16/07, Switanek, Nick <[EMAIL PROTECTED]> wrote: > After creating a list of words ('wordlist'), I can run the following > code in the interactive window of PythonWin in about ten seconds. If I > run the script containing the code, the script seems to hang on the > loop. I'd be grateful for hel

[Tutor] fine in interpreter, hangs in batch

2007-03-16 Thread Switanek, Nick
Hi, After creating a list of words ('wordlist'), I can run the following code in the interactive window of PythonWin in about ten seconds. If I run the script containing the code, the script seems to hang on the loop. I'd be grateful for help as to why; I often seem to have something that works in

[Tutor] Hi

2007-03-16 Thread Ben
Hi all, I am a newbie to Python. I just learned python for two weeks, and I have to say I feel very comfortable with the language. The stumbling blocks for me is the development of the GUI. I am currently learning pywin (PythonWin) to develop a gui. But I found it is very difficult. I have been s

Re: [Tutor] Is generator function similar to multi threading?

2007-03-16 Thread Michael Sparks
On Friday 16 March 2007 06:52, ammar azif wrote: > Is generator function similar to multi threading? Yes, however unlike threads they are more general. They can be used in two main ways: * To generate a sequence of values * To achieve something similar to multithreading, but without using

Re: [Tutor] convert hex number to decimal

2007-03-16 Thread Rikard Bosnjakovic
On 3/16/07, ammar azif <[EMAIL PROTECTED]> wrote: > Is there any built-in function to convert a hex number to a decimal number? >>> int("ff", 16) 255 -- - Rikard. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] convert hex number to decimal

2007-03-16 Thread ammar azif
HI, Is there any built-in function to convert a hex number to a decimal number? - Need Mail bonding? Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.___ Tutor maillist - Tutor@python.org http://mail

Re: [Tutor] Is generator function similar to multi threading?

2007-03-16 Thread Kent Johnson
ammar azif wrote: > Is generator function similar to multi threading? Only in that they can be alternative ways to solve the same problem. Generator functions are similar to co-routines and can be used to create multiple lightweight tasks. SimPy (http://simpy.sourceforge.net/) is an example of

Re: [Tutor] windows file permissions

2007-03-16 Thread Tim Golden
Kirk Bailey wrote: > I answered my own question digging around and testing stuff. I can't tell you how glad I am to hear that: I was just girding my loins (so to speak) to embark on an explanation of the Win32 ACL model which would have involved seven levels of explanation at the end of which you