Re: [Tutor] Logical Sorting [Off-Topic]

2006-07-09 Thread Alan Gauld
>> Or use 'ls -v'. (I said it's "off topic" on the subject, sorry! >> It >> might escaped you, but 'ls' _does_ have a proper sort by version.) >> > > Which OS? Most of them, its the GNU version of ls... works on cygwin, linux, bsd, solaris Alan G

[Tutor] keystroke via software

2006-07-09 Thread johnsonv3
Hi, How can one make a networked Windows XP  think a keystroke has been made every 13 minutes?  What would a python program to do this look like?   Thanks for your help. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo

Re: [Tutor] activestate

2006-07-09 Thread Daniel Watkins
Danny Yoo wrote: > If it turns out that this is a good long-term solution, we'll change the > links on the Tutor mailing list page from ActiveState's searchable archive > to the one on gmane. I've been using gmane for a few months now, without any problems. Dan __

Re: [Tutor] keystroke via software

2006-07-09 Thread Alan Gauld
> How can one make a networked Windows XP > think a keystroke has been made every 13 minutes? I've never done it over a network but I have done it in Delphi. The API function you need is: PostMessage(hwnd, idMessage, wParam, lParam) Post a message to a window. Parameters hwnd : int The hWnd

[Tutor] error: (10054, 'Connection reset by peer')

2006-07-09 Thread Grady Henry
Here is a program that I wrote using the first example at 12.2.13 Examples at the www.python.org website,   # Import smtplib for the actual sending functionimport smtplib   # Import the email modules we'll needfrom email.MIMEText import MIMEText   # Open a plain text file for reading.  For t

[Tutor] How to learn messages frim help()?

2006-07-09 Thread 韩宪平
Hi,all.For example,I want learn build-in function TYPE,do help(type) and get message as following: Help on class type in module __builtin__: class type(object) | type(object) -> the object's type | type(name, bases, dict) -> a new type | | Methods defined here: | | __call__(...) |

[Tutor] Splitting

2006-07-09 Thread Abhinav Gaurav
HI,   I was working on example of splitting using delimiter ;   Example :- >>> a="43;dsds;d" >>> >>> b=a.split(';')   Here I encountered the following error :-   Traceback (innermost last):  File "", line 1, in ?AttributeError: 'string' object has no attribute 'split'   Can anybody help

Re: [Tutor] Splitting

2006-07-09 Thread Daniel Watkins
Abhinav Gaurav wrote: > Example :- > >>> a="43;dsds;d" b=a.split(';') > Can anybody help on resolving this issue? This is what it looks like on my computer: >>> a="43;dsds;d" >>> b=a.split(";") >>> print b ['43', 'dsds', 'd'] This is using Pyt

Re: [Tutor] Splitting

2006-07-09 Thread Abhinav Gaurav
Hi,   Thanks for your help! I am wondering if it works fine then why it failing on my comp. And what is the remedy for it?   Thanks AbhinavDaniel Watkins <[EMAIL PROTECTED]> wrote: Abhinav Gaurav wrote:> Example :-> >>> a="43;dsds;d" b=a.split(';')> Can anybody help on resolving this

Re: [Tutor] Splitting

2006-07-09 Thread John Fouhy
On 10/07/06, Abhinav Gaurav <[EMAIL PROTECTED]> wrote: > > Hi, > > Thanks for your help! I am wondering if it works fine then why it failing on > my comp. And what is the remedy for it? What version of python are you running? -- John. ___ Tutor maillis

Re: [Tutor] Splitting

2006-07-09 Thread John Fouhy
On 10/07/06, Abhinav Gaurav <[EMAIL PROTECTED]> wrote: > John Fouhy <[EMAIL PROTECTED]> wrote: > > What version of python are you running? > 1.5.2 is the version. Right. Well, you're slightly over 7 years out of date :-) Do you have the ability to upgrade? You or your system administrator can d

Re: [Tutor] How to learn messages frim help()?

2006-07-09 Thread Luke Paireepinart
> and get message as following: [snip help output] > Have TYPE defined these methods? > What relation with __call__,__cam__ etc? don't think you're supposed to actually deal with the class called 'type'. I assume you're referring to typecasting variables. What it means when it says 'type()' is, fo