FAQ

Search Discussions

196 discussions - 911 posts

  • Script is at: <http://www.rcblue.com/Python/wordFrequency/wordFrequency.txt Example text file for input: <http://www.rcblue.com/Python/wordFrequency/first3000linesOfDavidCopperfield.txt (142 kb) ...
    Dick MooresDick Moores
    Oct 10, 2005 at 7:53 pm
    Oct 12, 2005 at 6:00 pm
  • Hey all, I am trying to create a program that draws 6 numbers between 1 and 49 at random for creating lottery tickets. I want to have a better chance when I play. Can anyone help me code this or show ...
    Nathan PinnoNathan Pinno
    Oct 28, 2005 at 2:07 am
    Oct 29, 2005 at 10:21 pm
  • Hi all, I send a command to os.system(cmd) and want to send a break signal in the same way. Is this possible? The break signal is ctrl c (^c). I tried this, but it didn't work: os.system('\x03') I ...
    Johan GeldenhuysJohan Geldenhuys
    Oct 27, 2005 at 2:29 pm
    Oct 28, 2005 at 7:07 pm
  • Hello I'm having some trouble with my if, else statements. For some reason, the months that have 31 days work fine, but the months that have 28/30 do not work. Am I doing something wrong? it is ...
    Andrade1Andrade1
    Oct 14, 2005 at 5:11 am
    Oct 17, 2005 at 3:32 am
  • Sorry for potential double post, error with first send ---------------------------------------------------------------------- Hello all, I had a new question about python. I am pretty much in ...
    Nick EberleNick Eberle
    Oct 26, 2005 at 5:53 am
    Oct 27, 2005 at 2:05 pm
  • I have a class I am defining and then I call a function within that class. Getting error that function call is not defined. Does the function have to be created anywhere within a class or does it ...
    Eric WalkerEric Walker
    Oct 6, 2005 at 5:20 pm
    Oct 22, 2005 at 9:16 pm
  • Hi there, i wonder if i could post some of my scripts and anyone can tell me if there is a better way for coding the problem. In the way of some teaching class. ;-) Or is this mailing-list only for ...
    LmacLmac
    Oct 8, 2005 at 6:27 pm
    Oct 21, 2005 at 11:39 pm
  • I'm new to programming and python. I've have recently been experimenting with while/if/elif/else loops and I've created a simple number guessing game. Now I want to create a coin tossing game, but I ...
    Zameer ManjiZameer Manji
    Oct 31, 2005 at 10:36 pm
    Nov 2, 2005 at 6:09 pm
  • Hello I am trying to write a program that will figure out if a number is prime or not. Currently this is the code that I have: import math def main(): number=input("Please enter a positive whole ...
    Andrade1Andrade1
    Oct 30, 2005 at 4:37 pm
    Nov 1, 2005 at 4:34 am
  • Hello all, I've been working on a program for a week or two now that will convert all the wav files in a folder to mp3s, filling the id3 tags with the correct information as collected from ...
    Orri GanelOrri Ganel
    Oct 21, 2005 at 6:33 pm
    Oct 25, 2005 at 1:06 am
  • Hi I've got the problem that I need to find a certain group of file names within a lot of different file names. Those I want to match with a regular expression are a bit peculiar since they all look ...
    Christian MeestersChristian Meesters
    Oct 19, 2005 at 7:45 am
    Oct 21, 2005 at 8:03 am
  • hi. i'm new to Python ... i would like to extract the number of JPG files from the current directory and use that number as a parameter in my python script. i tried: a = os.system('ls *JPG | wc -l') ...
    Marc BuehlerMarc Buehler
    Oct 12, 2005 at 6:10 pm
    Oct 12, 2005 at 11:58 pm
  • hello, I am trying to find the source code for FFT. I found the FFT.py module athough I cannot find the actual code that runs the FFT. Is it in a compiled form or can I view its source? thanks. An ...
    Jeff PeeryJeff Peery
    Oct 12, 2005 at 5:42 pm
    Oct 31, 2005 at 11:13 pm
  • Hope this is not too off topic: I noticed that the Python in a Nutshell book is version 2.2 and a few years old. Does anyone know if there are plans to bring out a new edition anytime soon? I checked ...
    Carl BadgleyCarl Badgley
    Oct 24, 2005 at 6:05 pm
    Oct 25, 2005 at 8:41 pm
  • An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/tutor/attachments/20051012/17640946/attachment.html
    Nathan PinnoNathan Pinno
    Oct 12, 2005 at 6:11 pm
    Oct 20, 2005 at 10:41 pm
  • Forwarding to the list -------- Original Message -------- Subject: Re: [Tutor] Consistant Overhead Byte Stuffing (COBS) algorithm help Date: Tue, 4 Oct 2005 13:20:18 -0700 (PDT) From: Michael ...
    Kent JohnsonKent Johnson
    Oct 5, 2005 at 12:59 pm
    Oct 8, 2005 at 11:55 am
  • Does anyone know how I can update a line of console output without creating a new line? I'm not explaning this too well, so here's an example. When you download a file with wget, the console display ...
    Oliver MaunderOliver Maunder
    Oct 5, 2005 at 6:13 pm
    Oct 6, 2005 at 8:09 am
  • Hi all, Just got a bit of confusion with trying to use struct with unicode. What's the difference between x = "Hi" y = x.encode("UTF-16") and y = unicode(x, "UTF-16") Regards, Liam Clarke
    Liam ClarkeLiam Clarke
    Oct 2, 2005 at 7:05 am
    Oct 3, 2005 at 12:10 pm
  • I have script that calls a system command that I want to run for 5 minutes. """ import os cmd = 'tcpdump -n -i eth0' os.system(cmd) """ I can start a timer after the cmd is issued, but I don't know ...
    Johan GeldenhuysJohan Geldenhuys
    Oct 26, 2005 at 12:00 pm
    Nov 3, 2005 at 4:51 am
  • Hey there, i am writing some (for me) pretty complicated stuff for work that really needs to work. i have looked at exception handling in the Learning Python book. and i am using some try / except ...
    NephishNephish
    Oct 27, 2005 at 2:53 am
    Oct 27, 2005 at 11:50 am
  • def _pre_save(self): for field in [self.name, self.native_name]: if not field.istitle(): #print field.title() field = field.title() The change I try to do there (field = field.title()) is not being ...
    Jonas MelianJonas Melian
    Oct 19, 2005 at 11:16 pm
    Oct 20, 2005 at 5:56 pm
  • and stupid question of the morning (for me) i want to string.split() into a sequence, a la l = [] l = myString.split('|') but, of course it whines about too many values. what is the common way to do ...
    Randy BushRandy Bush
    Oct 18, 2005 at 8:30 pm
    Oct 18, 2005 at 11:30 pm
  • is it possible to take python code and compile it for use in a microprocessor? An HTML attachment was scrubbed... URL: ...
    Jeff PeeryJeff Peery
    Oct 12, 2005 at 6:55 pm
    Oct 14, 2005 at 7:14 pm
  • Greetings: I'm trying to improve my programming and Python skills. To that end I have implemented a word jumble program as a recursive function: given a string of arbitrary length, return a list of ...
    Carroll, BarryCarroll, Barry
    Oct 28, 2005 at 8:34 pm
    Oct 29, 2005 at 1:44 am
  • I've been reading about composition vs inheritance, and went back to "Learning Python" to look at something I found very confusing a year ago. Turns out I still find it very confusing :) The code at ...
    Andrew PAndrew P
    Oct 20, 2005 at 9:43 pm
    Oct 24, 2005 at 6:10 pm
  • Hi, Here's my directory listing as a list: ['ga041001.gif', 'ga041002.gif', 'ga041003.gif', 'ga041004.gif', 'ga041005.gif', 'ga041006.gif', 'ga041007.gif', 'ga041008.gif', 'ga041009.gif', ...
    Joseph QuigleyJoseph Quigley
    Oct 12, 2005 at 3:07 pm
    Oct 15, 2005 at 3:37 pm
  • If you've been wondering about how useful this is... Well, all I can say is, don't use them unless you need them, they're a lot of hassle. I created two versions of the same object, same attribute ...
    Liam ClarkeLiam Clarke
    Oct 12, 2005 at 12:17 pm
    Oct 14, 2005 at 12:23 pm
  • Hi all, I'm having an issue which resists my attempts to give a snappy label to it. I have a solution that doesn't feel entirely correct, and which I cannot actual apply to my original case. The ...
    Brian van den BroekBrian van den Broek
    Oct 8, 2005 at 6:56 am
    Oct 9, 2005 at 11:24 pm
  • As a newbie to Python I'd like to know if someone can tell me some strengths and weaknesses of this language. The reason I'm asking is a friend told me I should learn Perl over Python as it's more ...
    Scott ClausenScott Clausen
    Oct 31, 2005 at 1:29 am
    Oct 31, 2005 at 9:31 pm
  • Hello: # I have the following dictionary: next_phases = {"open":"review","review":"write","write":"open"} # a 'phase is extracted by next_phase = next_phases[self.phase Note that the value for each ...
    Tim JohnsonTim Johnson
    Oct 28, 2005 at 8:10 pm
    Oct 29, 2005 at 1:27 am
  • I hacked together my first script to learn threading. I'm seeing some weird output. This script will PING approximately 1,000 routers. I added a few print commands for debugging so I can see if it ...
    Chris HallmanChris Hallman
    Oct 22, 2005 at 10:07 pm
    Oct 26, 2005 at 9:59 am
  • Hello, all. It's been quite some time since I've sent a message to the Python tutor list. I would like to know if mxDateTime is still the recommended module to use for date calculations. I've been ...
    Lance E SloanLance E Sloan
    Oct 20, 2005 at 8:26 pm
    Oct 22, 2005 at 12:07 pm
  • I've begun to try out redemo.py to test and learn regular expressions. It doesn't seem to accept Python's raw strings as raw strings, e.g., r'python\.org' for matching python.org and nothing else. Am ...
    Dick MooresDick Moores
    Oct 13, 2005 at 7:51 pm
    Oct 14, 2005 at 10:04 am
  • Hello I am having trouble getting my program to calculate the correct total if the speed limit is over 90mph. For example when i enter 100 for the clocked speed and 50 for the actual speed it returns ...
    Andrade1Andrade1
    Oct 13, 2005 at 10:58 pm
    Oct 14, 2005 at 12:41 am
  • I'm looking to get the size (width, length) of a PDF file. Every pdf file has a 'tag' (in the file) that looks similar to this Example #1 MediaBox [0 0 612 792] or this Example #2 MediaBox [ 0 0 612 ...
    Bill BurnsBill Burns
    Oct 10, 2005 at 4:10 am
    Oct 11, 2005 at 4:11 am
  • New to Python and trying to do some class stuff with a simple task. Problem: 1) get a list of file names in a directory 2) create variables with the same name of each filename pulled from the ...
    Eric WalkerEric Walker
    Oct 5, 2005 at 9:41 pm
    Oct 6, 2005 at 3:35 am
  • Hello I am trying to create a program that will calculate the syracuse sequence which is also known as collatz or hailstone. the number that is input by the user may be either even or odd. the number ...
    Andrade1Andrade1
    Oct 28, 2005 at 5:22 am
    Oct 30, 2005 at 2:24 pm
  • Hi Folks, messing about with classes I've come across something basic that I don't understand. Take this class class T: def p(self): print x if __name__ == '__main__': x = 1 t = T() t.p() This ...
    Nick LuntNick Lunt
    Oct 28, 2005 at 9:16 pm
    Oct 29, 2005 at 6:37 pm
  • Apologies for not making things clearer last time. My specific problems are: why can I not get the readline() or readlines() functions to work, I'm told they are not defined whenever I try. Also the ...
    Mike HaftMike Haft
    Oct 27, 2005 at 7:18 pm
    Oct 28, 2005 at 1:26 pm
  • how can i use the os module (or something else?) to determine what platform the interpreter is running on? -- edward hotchkiss An HTML attachment was scrubbed... URL: ...
    Ed HotchkissEd Hotchkiss
    Oct 25, 2005 at 4:00 pm
    Oct 26, 2005 at 1:44 am
  • I have a list of lists of constant width (2 rows). I need to: 1. delete sub-lists with None element 2. sort it by any sub-list index say: [ ['c','d'], ['g',None], ['a','b',], ['e','f'] if sorted ...
    Vincent GulinaoVincent Gulinao
    Oct 24, 2005 at 2:29 pm
    Oct 25, 2005 at 9:58 am
  • I would get the local time of a country, using UTC (Universal Time Coordinated) and DST (Daylight SavingTime) of that country. An example, utc time -02:30 and dst +1 : country_utc = ...
    Jonas MelianJonas Melian
    Oct 20, 2005 at 9:18 pm
    Oct 24, 2005 at 8:12 pm
  • I typed: landUse = {'res': 1, 'com': 2, 'ind': 3, "other" :[4,5,6,7]} and when i checked landUse, I found it become: {'ind': 3, 'res': 1, 'other': [4, 5, 6, 7], 'com': 2} why the order is changed?
    Shi MuShi Mu
    Oct 24, 2005 at 7:13 am
    Oct 24, 2005 at 7:30 pm
  • I know that one should use IDLE or a choosen editor for any substantial Python coding! However, if one happens to have written some interesting doodlings on the regular command line interface (under ...
    CPIM RoninCPIM Ronin
    Oct 19, 2005 at 9:12 pm
    Oct 21, 2005 at 4:47 pm
  • Hello Pythoners, This is probably a very newbie question (after all I am one): I am trying to read a file with some 2500 lines and to do a scan for "not allowed" characters in there (such as accented ...
    Tomas MarkusTomas Markus
    Oct 20, 2005 at 7:10 pm
    Oct 20, 2005 at 9:03 pm
  • Hi, I'm planning on buying a book to help me learn Python. Some of the books I'm considering are a few years old and based on an older version of Python (e.g. 2.3). Is it wise to buy a book based on ...
    David StotijnDavid Stotijn
    Oct 18, 2005 at 9:35 pm
    Oct 20, 2005 at 11:48 am
  • Hi, I'm very new to Python. Today I downloaded the python-2.4.2.msi file from www.python.org I had previously installed the up-to-date Windows installer as instructed. Python installed without a ...
    Dave SheaDave Shea
    Oct 15, 2005 at 10:31 am
    Oct 17, 2005 at 6:50 pm
  • Python 2.3.2 came with the linux distribution which is located in /usr/lib. Installed 2.4.1 in /usr/local/Python-2.4.1 updated /etc/profile path so IDLE or "python" would point to the latest version ...
    Andy DaniAndy Dani
    Oct 14, 2005 at 5:51 pm
    Oct 15, 2005 at 11:14 pm
  • hi. i want to pass an argument (a number) to a python script when running it: i want to be able to use <number within script.py as a parameter. how do i set this up? marc ...
    Marc BuehlerMarc Buehler
    Oct 13, 2005 at 11:09 pm
    Oct 14, 2005 at 9:15 am
  • hello below is my code and everytime I input a value of 16 or more it keeps returning sophomore. could anyone help me figure out what to change so that it won't return sophmore for things greater ...
    Andrade1Andrade1
    Oct 13, 2005 at 1:04 am
    Oct 13, 2005 at 8:49 am
Group Navigation
period‹ prev | Oct 2005 | next ›
Group Overview
grouptutor @
categoriespython
discussions196
posts911
users171
websitepython.org

171 users for October 2005

Kent Johnson: 155 posts Alan Gauld: 76 posts Danny Yoo: 68 posts Liam Clarke: 27 posts Bob: 23 posts W chun: 23 posts Andrew P: 21 posts Dick Moores: 21 posts Shi Mu: 17 posts Johan Geldenhuys: 16 posts Eric Walker: 15 posts John Fouhy: 13 posts Hugo González Monteverde: 12 posts Joseph Quigley: 12 posts Paul brian: 11 posts Pujo Aji: 11 posts Andrade1: 10 posts R. Alan Monroe: 10 posts Michael Sparks: 9 posts Norman Silverstone: 9 posts
show more
Archives