Search Discussions

113 discussions - 581 posts

  • Hi, i am looking for more informations about encoding in python: i've read that Amazon SimpleDB accepts every string encoded in UTF-8. How can I encode a string? And, what's the default string ...
    Mar 3, 2010 at 8:36 am
    Mar 10, 2010 at 1:40 pm
  • Hi, I am new to programming, altough i have read a few books about OOP and O'Reily's Learning Python. I would like some critique on my first program, is it normal for it to be this long to do ...
    Mar 12, 2010 at 10:03 am
    Mar 13, 2010 at 10:46 pm
  • Hi all, After six years of tutor posts my interest and energy have waned and I'm ready to move on to something new. I'm planning to stop reading and contributing to the list. I have handed over list ...
    Kent JohnsonKent Johnson
    Mar 3, 2010 at 1:17 pm
    Mar 5, 2010 at 4:51 pm
  • Hello, This is follow up on a question I had about algorithms. In the thread it was suggested I make my own sorting algorithm. Here are my results. #!/usr/bin/python def sort_(list_): for item1 in ...
    C.T. MatsumotoC.T. Matsumoto
    Mar 3, 2010 at 9:56 am
    Mar 13, 2010 at 2:11 am
  • Hello all: I've still been working towards learning the language, albeit slowly and I've been working on a project that is somewhat intense on the numerical calculation end of things. Running 10,000 ...
    James ReynoldsJames Reynolds
    Mar 19, 2010 at 4:41 pm
    Mar 22, 2010 at 10:45 am
  • Hello, I need a custom unicode subtype (with additional methods). This will not be directly used by the user, instead it is just for internal purpose. I would like the type to be able to cope with ...
    Mar 11, 2010 at 7:03 pm
    Mar 13, 2010 at 1:21 pm
  • Hi List I apologise in advance for the vagueness of this query, but I am looking for a decent modern introduction to modelling using Python. Specifically, I want something that is a good introduction ...
    Mar 27, 2010 at 3:21 pm
    Apr 15, 2010 at 1:17 am
  • Friends, I am sorry if this query is not appropriate to this forum. Is there any online magazine dedicated to python especially its features and How-to's that i can subscribe for. Thanks, Bala An ...
    Bala subramanianBala subramanian
    Mar 26, 2010 at 12:07 pm
    Mar 29, 2010 at 12:57 pm
  • Hi There, i would like to implement the following in lists assuming x = 3 y = 4 z = None i want to create a dynamic list such that mylist = [ x , y, z ] , if z in not None if z is None then mylist = ...
    Jojo MwebazeJojo Mwebaze
    Mar 3, 2010 at 8:31 am
    Mar 4, 2010 at 1:19 am
  • i am only a novice and just started programming.. i am having trouble running a .py file in the command prompt.. if anyone of you could help? An HTML attachment was scrubbed... URL: ...
    Oshan ModiOshan Modi
    Mar 29, 2010 at 2:00 am
    Mar 31, 2010 at 5:50 pm
  • What is a method I can use to find duplicated entry within a sorted numeric file? I was trying to read a file reading two lines at once but apparently, I can only read one line at a time. Can the ...
    Ken G.Ken G.
    Mar 20, 2010 at 4:34 pm
    Mar 21, 2010 at 8:20 am
  • Dear group: I have a large file 3GB. Each line is a tab delim file. example lines of it: 585 chr1 433 433 rs56289060 0 + - - -/C genomic insertion unknown 0 0 unknown between 1 585 chr1 491 492 ...
    Kumar sKumar s
    Mar 15, 2010 at 10:52 pm
    Mar 16, 2010 at 10:24 am
  • Hi! I am relatively new to python and turtle and I really need your help. Here what I wanted turtle to do: I created a function named carr? which would draw a square with 3 different parameters ...
    Marco RompréMarco Rompré
    Mar 11, 2010 at 3:11 pm
    Mar 12, 2010 at 5:19 pm
  • See Subject. 40K here, but other Python lists allow for larger (total) sizes. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: ...
    Wayne WatsonWayne Watson
    Mar 1, 2010 at 5:13 pm
    Mar 3, 2010 at 10:56 am
  • # geek_translator3.py # Pickle import pickle # Open Dictionary geekfile = open('geekdictionary3.txt', 'r+') new_geeks = pickle.load(geekfile) geekterms = new_geeks.keys() geekterms.sort() # start ...
    Shurui Liu (Aaron Liu)Shurui Liu (Aaron Liu)
    Mar 31, 2010 at 8:33 pm
    Apr 1, 2010 at 6:46 pm
  • Hi tutor, I have a large text file that has chunks of data like this: headerA n1 line 1 line 2 ... line n1 headerB n2 line 1 line 2 ... line n2 Where each chunk is a header and the lines that follow ...
    Andrew FithianAndrew Fithian
    Mar 2, 2010 at 6:22 am
    Mar 19, 2010 at 6:46 pm
  • Hello all, This is my first post to the Tutor at python.org mailing list. I am in the process of switching from Matlab to Python and there is one task that I am having a hard time doing and cannot ...
    Armstrong, Richard J.Armstrong, Richard J.
    Mar 10, 2010 at 9:20 pm
    Mar 10, 2010 at 11:22 pm
  • Hello, Is it possible at all to have a recursive generator? I think at a iterator for a recursive data structure (here, a trie). The following code does not work: it only yields a single value. Like ...
    Mar 7, 2010 at 12:58 pm
    Mar 7, 2010 at 6:43 pm
  • Hi, I'm trying to connect to a Linux box from my Windows machine and execute a series of commands - (ls, pwd, cat 'somefile', etc...). I'm using Putty to do the ssh and have set up with Putty's ...
    Mike BakerMike Baker
    Mar 30, 2010 at 4:29 pm
    Apr 21, 2010 at 8:32 pm
  • Hi, just started python at Uni and think i am in for a rough ride with zero prior experience in programming. Anyway my problem that i can't fix my self after googling. The exercise is to generate a ...
    TJ DackTJ Dack
    Mar 27, 2010 at 12:55 pm
    Mar 27, 2010 at 11:23 pm
  • Hi I am trying to Process list elements as consecutive pairs into consecutive pairs. Any pythonic suggestions? listin = [1,2,3,4,5,6,7,8,9,10] I want to process as consecutive pairs 1,2 3,4 5,6 7,8 ...
    Rüdiger WolfRüdiger Wolf
    Mar 5, 2010 at 5:56 pm
    Mar 7, 2010 at 7:48 am
  • Hello, In python like in most languages, I guess, objects (at least composite ones -- I don't know about ints, for instance -- someone knows?) are internally represented as associative arrays. Python ...
    Mar 4, 2010 at 7:47 am
    Mar 5, 2010 at 4:09 pm
  • I am writing a script to help me add line breaks at certain segments of HL7 messages. Not sure if anyone here is familiar with what an HL7 message is or not. We receive them out of our database with ...
    Spencer ParkerSpencer Parker
    Mar 31, 2010 at 3:20 pm
    Apr 3, 2010 at 9:04 am
  • Hello, I have a main module importing other modules and defining a top-level variable, call it 'w' [1]. I naively thought that the code from an imported module, when called from main, would know ...
    Spir ☣Spir ☣
    Mar 28, 2010 at 9:31 am
    Mar 29, 2010 at 1:32 am
  • Having a problem finding the first 1000 prime numbers, here is my code:- print(2) n =3 counter =1 while counter <00: for x in range(3,int((n**0.5)),2): if n%x != 0: print(n) n+=1 counter+=1 else: ...
    Mar 27, 2010 at 10:08 pm
    Mar 28, 2010 at 12:37 pm
  • Hello Tutor I have two problems, any help will be highly appreciated. How is possible to trace the all method calls, object instantiations, variables used in running an experiment dynamically, ...
    Jojo MwebazeJojo Mwebaze
    Mar 23, 2010 at 1:16 am
    Mar 23, 2010 at 2:28 pm
  • Hello, I want to do a executable for linux/unix from python scripts and thus o allow to run on machine which doesn't have recent version (2.0) of python. I found the compile() method but how can I ...
    Karim LiateniKarim Liateni
    Mar 19, 2010 at 7:09 pm
    Mar 21, 2010 at 3:01 pm
  • First a little preamble before my questions. Most of my work in Python has required modifying a program that uses modules that were imported by the original program. I've made some use of modules on ...
    Wayne WatsonWayne Watson
    Mar 4, 2010 at 1:24 am
    Mar 19, 2010 at 2:46 pm
  • I'm having problems with iterations and loops. So I'm curious about the best Python-way to do iterations of lists (in if, while etc statements) and breaking of loops. I have a list of tuples with 2 ...
    Karjer JdfjdfKarjer Jdfjdf
    Mar 17, 2010 at 3:02 pm
    Mar 18, 2010 at 8:50 am
  • Hello I have a little problem, I am trying to define a function ligneCar(n, ca) that would print n times the caracters ca. For now I have the user entering a short sentence corresponding to ca. Here ...
    Marco RompréMarco Rompré
    Mar 13, 2010 at 6:56 pm
    Mar 17, 2010 at 10:31 pm
  • Hello, There is one task that I am trying to do but I cannot find the answer on the web - I hope that you can help. It is a rather simple problem. I want to open up a dos program and then run it. I ...
    Armstrong, Richard J.Armstrong, Richard J.
    Mar 10, 2010 at 7:33 pm
    Mar 13, 2010 at 5:41 pm
  • Hi there, I am using the sqlite3 module with Python 3.1, and have some code which goes something like as follows... import sqlite3 con = sqlite3.connect('MyDatabase.db') try: execresult = ...
    Alan Harris-ReidAlan Harris-Reid
    Mar 10, 2010 at 2:37 am
    Mar 10, 2010 at 8:37 pm
  • Hi, I just read a few pages of tutorial on list comprehenion and generator expression. From what I gather the difference is "[ ]" and "( )" at the ends, better memory usage and the something the ...
    Mar 3, 2010 at 5:20 pm
    Mar 5, 2010 at 6:58 am
  • Hi im doin a programmin course at university and in one on my exercise i have to do that I had to define a class CompteBancaire(CompteBancaire is bankaccount in french), that would allow me to create ...
    Marco RompréMarco Rompré
    Mar 31, 2010 at 2:26 am
    Apr 5, 2010 at 11:15 pm
  • As a self-taught Python user I am still looking for insight on the most pythonic and programmatically-friendly way of accomplishing a given task. In this case, I have written a script that will ...
    Damon TimmDamon Timm
    Mar 30, 2010 at 2:27 pm
    Mar 31, 2010 at 10:40 pm
  • I'd like to learn to pythonically redirect the output from a line-oriented character device to a particular file or process, regardless of focus, on a generic graphical OS. But I don't want to ...
    Tom RocheTom Roche
    Mar 28, 2010 at 11:51 pm
    Mar 30, 2010 at 2:43 am
  • Here's the thing, I wanna change some wrong words from a text file like this: "I am a studaet." - "I am a student." I have tried to use this command: str = "I am a studaet." newstr = str[0:8] + "ent" ...
    Shurui Liu (Aaron Liu)Shurui Liu (Aaron Liu)
    Mar 28, 2010 at 9:23 pm
    Mar 29, 2010 at 12:02 am
  • I use this code to quit a completed program. If no is selected for the yes/no prompt, warning messages appear in the shell window. I'm executing from IDLE. Is there a way to just return to the prompt ...
    Wayne WatsonWayne Watson
    Mar 23, 2010 at 8:47 pm
    Mar 24, 2010 at 1:40 am
  • Hi, Im trying to use python to open up a password protected website(e.g. facebook / gmail) in Firefox. supplying the login and password automatically at runtime - so that I can interface my code with ...
    Richard westRichard west
    Mar 19, 2010 at 12:33 pm
    Mar 21, 2010 at 9:09 am
  • Hi all, I've committed myself to learning Python and have started reading "Learning Python" (Mark Lutz) and looking through various online resources. My career so far has involved a little high ...
    Kevin KirtonKevin Kirton
    Mar 18, 2010 at 11:42 am
    Mar 19, 2010 at 4:24 am
  • Hello, I am getting the following - '<a href="http://www.rayslinks.com" Ray\'s Links</a ' Note the magically appearing back slash in my result string. Now I tiry to escape the single quote. '<a ...
    Ray ParrishRay Parrish
    Mar 13, 2010 at 5:33 pm
    Mar 13, 2010 at 10:54 pm
  • Hi everyone, I've subscribed to ShowMeDo, but I feel something more than just video tutorials. Do you have any recommendations on where I can find workshops, Courses, Live Online Training where I can ...
    Khalid Al-GhamdiKhalid Al-Ghamdi
    Mar 11, 2010 at 4:38 pm
    Mar 12, 2010 at 4:00 pm
  • If the following program change list[2] to 2010, replacing 1997 (and it does), why doesn't the second program work in changing line[ 9:11] to 20 from 08? FIRST PROGRAM: list = ['physics', ...
    Ken G.Ken G.
    Mar 11, 2010 at 3:32 pm
    Mar 11, 2010 at 4:04 pm
  • OS = RHEL 5.4 32Bit Python = 2.4.3 #! /usr/bin/env python import pgdb, sys db = pgdb.connect (dsn='', user='postgres', password='') cursor = db.cursor () cursor.execute ("select ...
    Hithere thereHithere there
    Mar 7, 2010 at 9:09 pm
    Mar 11, 2010 at 1:13 pm
  • Hello, I'm trying to split 5 chars words (codes) into 2 variables. The first must contain the first 4 characters. The second variable will only contain the last character. I'm working in a loop ...
    Rafik OuerchefaniRafik Ouerchefani
    Mar 9, 2010 at 3:31 pm
    Mar 9, 2010 at 6:45 pm
  • I want to compare words in a text to a dictionary with values attached to the words. The dictionary? looks like: { word1: [1,2,3] word2: [2,3,4,a,b ] ... } I'm trying to find a way to achieve this, ...
    Karjer JdfjdfKarjer Jdfjdf
    Mar 8, 2010 at 4:05 pm
    Mar 8, 2010 at 6:12 pm
  • In Python, could space be counted as a character same as a letter? -- Shurui Liu (Aaron Liu) Computer Science & Engineering Technology University of Toledo
    Shurui Liu (Aaron Liu)Shurui Liu (Aaron Liu)
    Mar 31, 2010 at 5:29 am
    Mar 31, 2010 at 7:35 am
  • Hi, I've downloaded IDLE python for windows. I've also downloaded Eclipse with the python addition. I have simple programs that will run on both IDLE and Eclipse. How do I get more information about ...
    Mike BakerMike Baker
    Mar 30, 2010 at 3:23 pm
    Mar 30, 2010 at 3:37 pm
  • Since English is not my native language, so I got confused by some requirement of my assignment. I already done, just want to make sure what I did is what the assignment required, thank you! BTW, I ...
    Shurui Liu (Aaron Liu)Shurui Liu (Aaron Liu)
    Mar 28, 2010 at 4:26 pm
    Mar 28, 2010 at 6:02 pm
  • I tried readings some toots and tried reading alan's thing. I just still can't grok how to use subprocess. I am trying to call sox (fun fact: an early contributer to sox was none other than Guido van ...
    Kevin parksKevin parks
    Mar 27, 2010 at 7:55 am
    Mar 27, 2010 at 11:33 am
Group Navigation
period‹ prev | Mar 2010 | next ›
Group Overview
grouptutor @

131 users for March 2010

ALAN GAULD: 51 posts Steven D'Aprano: 51 posts Spir ☣: 37 posts Dave Angel: 24 posts Giorgio: 19 posts Ray Parrish: 15 posts Emile van Sebille: 13 posts Luke Paireepinart: 13 posts Stefan Behnel: 12 posts Wayne Werner: 11 posts Christian Witts: 10 posts Hugo Arts: 10 posts Lie Ryan: 10 posts Bob gailer: 9 posts C.T. Matsumoto: 9 posts Karjer Jdfjdf: 9 posts Ken G.: 9 posts Shurui Liu (Aaron Liu): 9 posts Karim Liateni: 8 posts Marco Rompré: 8 posts
show more