FAQ

Search Discussions

113 discussions - 515 posts

  • Use find() to get the nodes of interest. The text attribute of the node contains the text. For example: data = '''<biological_processess <biological_process Signal transduction </biological_process ...
    Kent JohnsonKent Johnson
    Dec 8, 2005 at 7:43 pm
    Dec 22, 2005 at 12:31 am
  • i added a list of rooms and rooms.append(self) to the Room initialization. then i run my program and create one room. there should now be two rooms. when i look at rooms i have three rooms! where did ...
    DavidDavid
    Dec 4, 2005 at 4:06 pm
    Dec 12, 2005 at 10:12 pm
  • Hello, I`m very new to Python and programming in general.I`ve been reading Dive in to Python as an introduction to the language and I think I`m doing pretty well,but I`m stuck on this problem. I`m ...
    MotorolaguyMotorolaguy
    Dec 28, 2005 at 9:26 pm
    Dec 31, 2005 at 6:18 pm
  • sir plz tell me the main differnces between java and python?And What are the advantages of python? An HTML attachment was scrubbed... URL: ...
    Shivayogi kumbarShivayogi kumbar
    Dec 21, 2005 at 10:13 am
    Dec 22, 2005 at 9:38 am
  • is there any tool like "run line or selection" in Pythonwin? Thanks!
    Linda.sLinda.s
    Dec 25, 2005 at 12:30 pm
    Feb 6, 2006 at 7:26 pm
  • I am trying to build a data structure that would be a dictionary of a dictionary of a list. In Perl I would build the structure like so $dictionary{key1}{key2}[0] = X I would iterate like so ... ...
    Paul KrausPaul Kraus
    Dec 28, 2005 at 3:18 pm
    Dec 31, 2005 at 4:02 pm
  • Hello, Can someone provide me with an error checking example about an x variable that needs to be number only? I used something like: def useridf(): print "" print "WARNING: If you don't understand ...
    Panagiotis AtmatzidisPanagiotis Atmatzidis
    Dec 23, 2005 at 6:15 pm
    Dec 24, 2005 at 2:53 pm
  • ::= is bnf notation for "is defined as" please spend that extra minute googling before you bother all the nice people on this list. ----- Original Message ----- From: david To: tutor at python.org ...
    DavidDavid
    Dec 10, 2005 at 12:31 pm
    Dec 19, 2005 at 7:41 pm
  • Any of you familar with SPE<http://freshmeat.net/projects/spe/?branch_idD185&release_id!4367 ? I found this just recently on freshmeat and was curious if anyone had used it? If so how well it works ...
    Will HarrisWill Harris
    Dec 12, 2005 at 7:50 pm
    Dec 14, 2005 at 4:29 pm
  • Afternoon all, My son asked me what books I would like for Christmas this year. So what would you recommend? I am a beginner here. Thanks Richard
    RichardRichard
    Dec 20, 2005 at 8:46 pm
    Dec 24, 2005 at 2:33 pm
  • Kent and all, Here is the latest code: import pickle rates = {'can_us' : 0.80276, 'us_can' : 1.245702, 'can_euro' : 1.488707, 'euro_can' : 0.671724} def save_rates(exch): store = open("exch.txt",'w') ...
    Nathan PinnoNathan Pinno
    Dec 16, 2005 at 10:37 pm
    Dec 20, 2005 at 11:10 pm
  • Hi! My first "ever" program that I've created is a simple game called "State Capitals". It's straight forward; 5 simple questions about state capitals in a non-GUI format. Can someone look over my ...
    Trent RigsbeeTrent Rigsbee
    Dec 8, 2005 at 4:09 am
    Dec 10, 2005 at 2:31 am
  • Hi all, I am planning to make a Python CD for advocating Python, and I need your suggestions about this, the objective is to build a CD that contains the basic material for Python beginner (e.g. ...
    Basem NarmokBasem Narmok
    Dec 2, 2005 at 9:53 pm
    Dec 4, 2005 at 1:28 am
  • Hello, Although I've been coding in PHP and ASP and JavaScript for a couple of years now, I'm relatively new to Python. For learning exercises, I'm writing small Python programs that do limited ...
    Eakin, WEakin, W
    Dec 27, 2005 at 3:59 pm
    Dec 28, 2005 at 10:23 pm
  • Hi + Season's Greetings! I have put together a program that queries and modifies a Gadfly database. I have captured my output. I now want to print it to paper. I have written the output to a text ...
    John CorryJohn Corry
    Dec 24, 2005 at 5:28 pm
    Dec 28, 2005 at 12:34 pm
  • I would recommend python programming for the absolute beginner. Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
    David HollandDavid Holland
    Dec 21, 2005 at 8:45 pm
    Dec 22, 2005 at 5:35 pm
  • Is it possible to access the next and previous items during an iteration? I want to use it to iterate through html files in a folder and add links in to the next and previous pages. For example for ...
    Ed SingletonEd Singleton
    Dec 16, 2005 at 10:10 am
    Dec 19, 2005 at 10:49 am
  • I got my function to work! It takes arguments and adds them: def adder(**args): argsList = args.values() sum = argsList[0] for x in argsList[1:]: sum = sum + x return sum print adder() print "---" ...
    Christopher SpearsChristopher Spears
    Dec 18, 2005 at 7:30 am
    Dec 19, 2005 at 9:23 am
  • Hi all, I have a python script that works out & emails my employer with parts that I have used. It has been great for 11ish months, now all my mail is classed as spam & junked :( Apparently the ...
    Dave sDave s
    Dec 6, 2005 at 8:40 pm
    Dec 11, 2005 at 6:32 am
  • I'd like to make a 30 minute timer. How an I do that? With time? Thanks, Joe -- There are 10 different types of people in the world. Those who understand binary and those who don't. An HTML ...
    Joseph QuigleyJoseph Quigley
    Dec 6, 2005 at 2:57 pm
    Dec 7, 2005 at 4:27 pm
  • Hi folks, How do I pass a list by value to a function. The foll: snippet of code produces the output as shown: Code: ----- def junk(x): x.append("20") return x a = ["10"] b = junk(a) print b print a ...
    Hans DushanthakumarHans Dushanthakumar
    Dec 6, 2005 at 12:36 am
    Dec 6, 2005 at 9:24 pm
  • I have been trying to write a guess my number game (using Michael Dawsons book), where the computer guesses the number that I thought of. Here is my code so far, #The Guess My Number Game # #The ...
    William MhlangaWilliam Mhlanga
    Dec 15, 2005 at 7:44 pm
    Dec 16, 2005 at 12:59 am
  • Looking for easiest way to get a files permissions in linux. Thanks
    Eric WalkerEric Walker
    Dec 7, 2005 at 7:06 pm
    Dec 7, 2005 at 11:28 pm
  • Hi, I use the following loop to parse some HTML code: for record in data: try: parser.feed(record['content']) except HTMLParseError, (msg): print "!!!Parsing error in", record['page_id'], ": ", msg ...
    Jan EdenJan Eden
    Dec 6, 2005 at 3:29 pm
    Dec 6, 2005 at 5:05 pm
  • Hi all, I'm a week or so into having switched from WinXP to linux (ubuntu breezy). There is a lot to learn about the differences in the OS'es and that's just fine. But, a couple of things have been ...
    Brian van den BroekBrian van den Broek
    Dec 28, 2005 at 10:29 pm
    Jan 2, 2006 at 6:29 pm
  • Hello, Finally, after a year and a half of learning and messing around with Python, I'm writing THE code that made learn Python in the first place: a render farm client management software. I may ...
    Bernard LebelBernard Lebel
    Dec 21, 2005 at 5:45 pm
    Dec 22, 2005 at 5:44 pm
  • Hi all, this is my first program in python. It's a currency converter mini-program, but I am not getting the desired output. What wrong am I doing here? *Program code:* #converts currencies to Indian ...
    Vikas mohanVikas mohan
    Dec 9, 2005 at 11:32 am
    Dec 10, 2005 at 12:22 am
  • Hi there, everyone; first time poster! Sorry if this isn't very closely related to Python, but I have encountered the issue while trying to learn Python, so I guess I can just ask here. My question ...
    Vlad PopescuVlad Popescu
    Dec 4, 2005 at 12:28 am
    Dec 4, 2005 at 10:08 am
  • The following code snippet is meant to test inheritance: class test: def __init__(self,v): self.__val = v def val(self): print self.__val class sub(test): def __init__(self): val() The following ...
    Tim JohnsonTim Johnson
    Dec 1, 2005 at 2:46 am
    Dec 1, 2005 at 4:48 am
  • How do you run a .exe from inside a python program. random example: print "What would you like to do today? " print "E - email" print "I - internet" what = input("Choose: ") if what == "E": Heres ...
    Robin BuyerRobin Buyer
    Dec 22, 2005 at 10:50 pm
    Dec 23, 2005 at 12:56 am
  • Hi all, I have installed Numeric (Suse 10.0) and it is in my site-packages folder, but I can't import the module. Any idea how to fix this/ TIA Johan
    Johan GeldenhuysJohan Geldenhuys
    Dec 22, 2005 at 12:58 pm
    Dec 22, 2005 at 3:35 pm
  • Hi all, I want to print out random letters from A - Z. I know how to do this with numbers, but don't know with letters. Any ideas wil be greatly appreciated. Johan
    Johan GeldenhuysJohan Geldenhuys
    Dec 21, 2005 at 8:07 pm
    Dec 22, 2005 at 12:08 am
  • what does 2 mean in %2.4f ?
    Linda.sLinda.s
    Dec 20, 2005 at 6:26 am
    Dec 20, 2005 at 12:32 pm
  • I was pleasantly surprised to notice in a previous thread that python can automagically retrieve a class name thru __class__.__name__ 1)Can someone point me to further documentation on this topic? ...
    Tim JohnsonTim Johnson
    Dec 15, 2005 at 12:02 am
    Dec 15, 2005 at 1:59 am
  • Hi all, I think I must be doing something incorrectly. I have a family of classes that all have the same arguments to their __init__ methods. I want to give them all __repr__ methods. From the docs, ...
    Brian van den BroekBrian van den Broek
    Dec 13, 2005 at 9:14 pm
    Dec 14, 2005 at 4:23 am
  • Hello again! I'm still working on that instant messenger (for science fair), and I have been reading about networking in some Java tutorials. In one part of it, it said to have a connection with ...
    John WaltonJohn Walton
    Dec 11, 2005 at 7:01 pm
    Dec 12, 2005 at 11:01 am
  • Hey there, what would be the best command to end a program with. i have an app that i want to start every day at 6am from cron but i want it to shutdown at 4pm i was going to check by time on every ...
    NephishNephish
    Dec 6, 2005 at 5:22 pm
    Dec 8, 2005 at 7:39 am
  • hi, I am a new python learner. i am trying to parse a file using regular expressions. LOCUS NM_005417 4145 bp mRNA linear PRI 04-DEC-2005 DEFINITION Homo sapiens v-src sarcoma (Schmidt-Ruppin A-2) ...
    Ps pythonPs python
    Dec 7, 2005 at 2:01 pm
    Dec 7, 2005 at 6:50 pm
  • Hello everyone, this is my first time using the tutor e-mail, so if I mess up any common format or something just let me know :). Alright, for a little background, I'm in the process of writing a ...
    Josh YagyJosh Yagy
    Dec 5, 2005 at 5:18 am
    Dec 6, 2005 at 12:04 am
  • I tried the error='replace' as you suggested and the program made it thru the list. However, here are some results: the gjenoppl???et gjenoppl??? from the gjenoppl?st det gjenoppl?ste kan v??? ...
    ØyvindØyvind
    Dec 1, 2005 at 9:32 am
    Dec 4, 2005 at 12:15 pm
  • Hi, I need to parse a CSV file using the csv module: "hotel","9,463","95","1.00" "hotels","7,033","73","1.04" "hotels hamburg","2,312","73","3.16" "hotel hamburg","2,708","42","1.55" ...
    Jan EdenJan Eden
    Dec 2, 2005 at 1:50 pm
    Dec 2, 2005 at 3:55 pm
  • Hi I am trying out learning python , using the book ?Python Programming for the absolute beginner ? by Michael Dawson I get File "page114.py", line 12 inventory = ("Sword","Armor","Shield","Healing ...
    John JosephJohn Joseph
    Dec 31, 2005 at 8:09 am
    Dec 31, 2005 at 2:00 pm
  • Hi I am trying to execute some MySQL commands using some python scripts I want to do a ?mysqldump? of my database ?john? to a file backup.date.sql the normal command to take a dump is mysqldump john ...
    John JosephJohn Joseph
    Dec 27, 2005 at 1:07 pm
    Dec 28, 2005 at 1:20 pm
  • Does anyone see anything that jumps out at them on why these regex strings aren't catching this line: Dec 18 10:04:45 dragon logger: TCPWRAP: SERVICE=sshd@::ffff:192.168.0.1 ...
    Will HarrisWill Harris
    Dec 27, 2005 at 7:05 am
    Dec 28, 2005 at 9:00 am
  • Hello, I am writing a function in order to check if a directory exists. If exists the functions must do nothing, otherwise must check the users permissions and if it's possible create the dir. ...
    Panagiotis AtmatzidisPanagiotis Atmatzidis
    Dec 24, 2005 at 1:20 pm
    Dec 26, 2005 at 11:34 am
  • sir, I would like to know about 'asser't keyword how it works in the fallowing program class myClass: count = 0 def __init__(self): myClass.count = myClass.count + 1 def __del__(self): myClass.count ...
    Shivayogi kumbarShivayogi kumbar
    Dec 23, 2005 at 11:18 am
    Dec 23, 2005 at 7:00 pm
  • I have one function that finds some values. Then I want that function to find new values based on the values it found first. However, by just looping, it starts on an eternal job. As illustrated in: ...
    ØyvindØyvind
    Dec 19, 2005 at 12:45 pm
    Dec 19, 2005 at 7:21 pm
  • Hi all, Using Beautiful Soup and regexes.. I've noticed that all the examples used regexes like so - anchors = parseTree.fetch("a", {"href":re.compile("pattern")} ) instead of precompiling the ...
    Liam ClarkeLiam Clarke
    Dec 17, 2005 at 7:59 am
    Dec 19, 2005 at 11:05 am
  • By some miracle of the gods smiling and the planets aligning, a comp.lang.python thread that started with the question "ElementTree - Why not part of the core?" has actually resulted in ElementTree ...
    Kent JohnsonKent Johnson
    Dec 14, 2005 at 8:06 pm
    Dec 17, 2005 at 1:59 am
  • Hi all, Just contemplating. If in Python I were organising a data index along the lines of - j = { "k_word1" : ["rec1","rec2","rec3","rec4"], ... "k_wordn" :["recX","rec4"] } and I was going to find ...
    Liam ClarkeLiam Clarke
    Dec 14, 2005 at 10:14 am
    Dec 16, 2005 at 1:41 pm
Group Navigation
period‹ prev | Dec 2005 | next ›
Group Overview
grouptutor @
categoriespython
discussions113
posts515
users105
websitepython.org

105 users for December 2005

Kent Johnson: 79 posts Danny Yoo: 54 posts Alan Gauld: 34 posts Brian van den Broek: 24 posts David: 18 posts Bob: 13 posts Nathan Pinno: 12 posts Tim: 11 posts Liam Clarke: 10 posts Ps python: 10 posts Pujo Aji: 10 posts W chun: 9 posts Jan Eden: 8 posts Panagiotis Atmatzidis: 8 posts John Fouhy: 7 posts Joseph Quigley: 7 posts Johan Geldenhuys: 6 posts Nephish: 6 posts Oswaldo Martinez: 6 posts Paul Kraus: 6 posts
show more
Archives