Skip to content
murmot

Results for “python string array example question practice site:mail.python.org code”

  • mail.python.org

    [Tutor] reading a string into an array - Python

    Previous message: [Tutor] finding special character string Next message: [Tutor] reading a string into an array Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] More information about the Tutor mailing list

  • mail.python.org

    [Mailman-Users] use of Python strings in template files

    The most >>significant is the Python strings that parse information into links, >>specifically %(listinfo_url)s and %(emailaddr)s . If I insert >>%(emailaddr)s into the newlist.txt file, when I generate a new list, >>the exact text %(emailaddr)s shows in the message and it.

  • mail.python.org

    [Tutor] Python Challange - ord chr incrementing alphabet

    What does this do and how would it help with > this problem? > > Paul > Here's what I came up with for that challenge: def pyc_map ():#1 import string t = string.maketrans ("abcdefghijklmnopqrstuvwxyz", "cdefghijklmnopqrstuvwxyzab") s = "g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc dmp. bmgle gr gl zw fylb gq glcddgagclr ylb ...

  • mail.python.org

    [Tutor] Accesing "column" of a 2D list

    Next message: [Tutor] operating system key-bindings that call Python scripts. Messages sorted by: [ date ] [ thread ] [ subject ] [ author ].Don't use 'list' as the name of a list, it shadows the builtin 'list' which is the <type> of list. Similarly, avoid str, dict, set and file as names.

  • mail.python.org

    [Tutor] Array of structures - Python

    May 22, 2001 · On Tue, 22 May 2001, Glen Barnett wrote: > Is there an equivalent Python script for the C language array of > structures? An example C program is: > =20 > struct day > { > =09char month [3]; > =09int day; > =09int year; > }; Almost. Python's list structures can hold arbitrary elements: ### >>> mylist =3D [1, "two", "iii", 4] >>> mylist [1, 'two', 'iii', 4] ### which will also allows us to ...

  • mail.python.org

    [Python-Dev] Re: list += string??

    [Python-Dev] Re: list += string?? David Abrahams dave at boost-consulting.com Fri Aug 27 01:12:30 CEST 2004.self.body is a list of strings, and s is a string. Later ''.join(self.body) gets called, so for many cases the bug was hidden.

  • mail.python.org

    [Tutor] string to int or float - Python

    Nov 3, 2003 · So we construct one and use its first element. 8-) ) Regards, Gregor Previous message: [Tutor] string to int or float Next message: [Tutor] socket programming Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] More information about the Tutor mailing list

  • mail.python.org

    [Numpy-discussion] Concatenating string arrays

    [Numpy-discussion] Concatenating string arrays. Thomas Robitaille thomas.robitaille at gmail.com Wed Mar 18 14:30:19 EDT 2009.I am trying to find an efficient way to concatenate the elements of two same-length numpy str arrays. For example if I define the following arrays

  • mail.python.org

    [Python-Dev] RFD: how to build strings from lots of slices?

    Feb 27, 2000 · when hacking on SRE's substitution code, I stumbled upon a problem. to do a substitution, SRE needs to merge slices from the target strings and from the sub- stitution pattern. here's a simple example: re.sub ( " (perl|tcl|java)", "python (not \\1)", "perl rules" ) contains a "substitution pattern" consisting of three parts: "python (not " (a slice from the substitution string) group 1 (a ...

  • mail.python.org

    [Tutor] noob question (Windows, Python 3.1)

    Aug 6, 2009 · Michael Connors wrote: > 2009/8/6 Joshua Harper < joshharper27 at gmail.com > > > >> Ok, so I am trying to learn python, and I am reading many tutorial type >> things and I am kind of stuck with implementing some of the code... so for >> example the tutorial says "*To get the examples working properly, write >> the programs in a text file and then run that with the interpreter*" >> Alright ...