Skip to content
murmot

Results for “python split example code server error site:mail.python.org request”

  • mail.python.org

    [Python-Dev] string.split

    Feb 20, 2004 · However, I must agree that the documentation for the string method is somewhat lacking. The documentation of the split function in the string module is much clearer. Method: split ( [sep [,maxsplit]]) Return a list of the words in the string, using sep as the delimiter string. If maxsplit is given, at most maxsplit splits are done.

  • mail.python.org

    [Python-Dev] Half-baked proposal: * (and **?) in assignments

    (cmd, req1, req2, req3, *opts) = input.split() execute_cmd(cmd, req1, req2, req3, opts). A really interesting possibility is: (first, *middle, last) = input.split(). This breaks the parallel to parameter passing, but would be very handy.

  • mail.python.org

    [Tutor] Splitting strings and undefined variables - Python

    Feb 10, 2009 · [Tutor] Splitting strings and undefined variables Andreas Kostyrka andreas at kostyrka.org Tue Feb 10 19:45:47 CET 2009 Previous message: [Tutor] Splitting strings and undefined variables Next message: [Tutor] Simple PassGen Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  • mail.python.org

    [Doc-SIG] hotshot example code doesn't work

    This peice of code will not work (anymore?): benchtime, stones = prof.runcall(test.pystone.pystones). It will raise this error: TypeError: unpack non-sequence. The documentation for "runcall" says that the return is the return from the function.

  • mail.python.org

    [Tutor] Iterating through tokens from a split command - Python

    Hi Vicki, A couple of things here. First you only ever read a single line from the file. You then iterate over the tokens in that line but never stop - hence the index error! You probably want to restructure it soomething like: for line in inputfile.readlines (): #readlines, plural! tokens = line.split ['|'] for token in tokens: # iterates over the tokens if token == '0x11': new = '0x02 ...

  • mail.python.org

    [Mailman-Users] Internal Server Error

    I was wondering whether there's any information available on possible reasons for 500 Internal Server Errors, apart from mailman's locks. I have been working on the admin interface of our list this morning, and while I've had no problems with the membership, general options...

  • mail.python.org

    [Tutor] So close! But ... error: (10054, 'Connection reset by ...

    Jul 16, 2006 · For this example, assume that # the text file contains only ASCII characters. fp = open (r'C:\Documents and Settings\User\Desktop\\text3.txt') # Create a text/plain message msg = MIMEText (fp.read ()) fp.close () # me == the sender's email address # you == the recipient's email address msg ['Subject'] = 'The contents of %s' % 'C:\Documents and ...

  • mail.python.org

    [python-win32] Python Service error 1053: the service did not ...

    Jan 17, 2009 · The traceback in python says: > python MyService.py Collecting Python Trace Output... Traceback (most recent call last): File "C:\Python26\Lib\site-packages\win32\lib\win32serviceutil.py", line 399, in StartService win32service.StartService (hs, args) pywintypes.error: (1053, 'StartService', 'The service did not respond to the sta rt or control ...