Search Discussions

141 discussions - 854 posts

  • I hate to sound weird... But who are you all, what are you're ages, what do you do, marriage status, etc? You obviously don't have to answer, I'm just curious who I'm boldly sending emails to. Jacob ...
    Jacob S.Jacob S.
    Dec 27, 2004 at 10:31 pm
    Jan 2, 2005 at 8:39 am
  • I'm wondering if my timer3.py could have been written more simply and easily by using the time or datetime modules to get the number of seconds separating the time now and the time to which the alarm ...
    Dick MooresDick Moores
    Dec 5, 2004 at 5:17 pm
    Dec 11, 2004 at 5:03 pm
  • Hi all, in Marc's check_range thread, I had proposed: def check_in_range(value): in_range = False if 9 < value < 90: in_range = True return in_range and DogWalker suggested the better: def ...
    Brian van den BroekBrian van den Broek
    Dec 16, 2004 at 1:58 am
    Dec 18, 2004 at 8:15 am
  • Hi all, I am fairly new to both Python & programming, and am attempting to create a function that will test whether some user input is an integer between 10 and 89, but the check isn't happening... ...
    Marc GartlerMarc Gartler
    Dec 15, 2004 at 12:12 am
    Dec 16, 2004 at 12:23 pm
  • Hi Tutors, I am new to programming and so don't know "anything" much, yet. I am having problem with implementing a simple RPN calculator in python. I have tried editing some other programs I have ...
    Just IncaseJust Incase
    Dec 4, 2004 at 12:54 pm
    Dec 8, 2004 at 7:52 pm
  • Hello Tutors, I'm having trouble understanding the difference between eval and exec. Can anyone explain it to me please? Marilyn Davis --
    Marilyn DavisMarilyn Davis
    Dec 4, 2004 at 7:37 am
    Dec 7, 2004 at 12:15 am
  • After uninstalling Python 2.3.4, I installed Python 2.4 on my Windows 2000 workstation. For some reason IDLE won't launch. I see a hourglass cursor and a bit of hard drive activity, then nothing. I ...
    Mike HansenMike Hansen
    Dec 1, 2004 at 4:14 pm
    Dec 21, 2004 at 1:59 am
  • I got this error msg for this line of code: n = -(2(a**3.0)/27.0 - a*b/3.0 + c) (where a = 1, b = 2, c = 3) And was baffled until I realized the line should be n = -(2*(a**3.0)/27.0 - a*b/3.0 + c) ...
    Dick MooresDick Moores
    Dec 8, 2004 at 6:01 pm
    Dec 18, 2004 at 9:58 pm
  • Further to my previous post, please find some code below: Hope this helps, Matt #Complex number Roots #Matt Williams 9.12.04 import math number=complex(0.5,0) n=float(3) ...
    Matt WilliamsMatt Williams
    Dec 9, 2004 at 12:52 pm
    Dec 17, 2004 at 2:01 am
  • Hi all, I'm playing with a file, and attempting to replace a section with a string, and using the following command - seg=codeSt[element:endInd+len(endStr] codeSt=codeSt.replace(seg, hrefString) At ...
    Liam ClarkeLiam Clarke
    Dec 8, 2004 at 11:29 am
    Dec 10, 2004 at 2:10 pm
  • Dear group, I have two lists names x and seq. I am trying to find element of x in element of seq. I find them. However, I want to print element in seq that contains element of x and also the next ...
    Kumar sKumar s
    Dec 7, 2004 at 4:22 pm
    Dec 20, 2004 at 8:29 pm
  • Im sorry to bang on about Python structure, but I do struggle with it, having in the past got into very bad habits with loads of BASIC where everything was global, and Forth, and hand coded 8031, ...
    Dave SDave S
    Dec 16, 2004 at 12:03 am
    Dec 18, 2004 at 2:21 am
  • Couldn't tell if this got sent, so I'm re-sending. Apologies for duplicates: Well, one option is to use pickle (or cPickle, preferrably) to dump the python objects to a file: from cPickle import ...
    Rick MullerRick Muller
    Dec 4, 2004 at 2:28 pm
    Dec 16, 2004 at 3:36 am
  • I have two questions, both relating to lists. 1. Is there any easy way to compeltely reverse a list so that the last index becomes the first, etc.? 2. Is there any way to take seperate integers in a ...
    Dec 28, 2004 at 4:50 am
    Dec 28, 2004 at 9:52 pm
  • This is the most meaningful thing this newbie has ever done. Comments are appreciated: #!/usr/local/bin/python trashcan = "/home/anewby/.trashcan" import os, sys, shutil junk = [] for arg in ...
    Luis NLuis N
    Dec 22, 2004 at 2:06 am
    Dec 30, 2004 at 7:13 pm
  • I've got a silly question. ####################### P1 = "prefix1" P2 = "prefix2" def my_func(list, items): s = 0 out = "" for i in range(len(list)): if s == 0: p = P1 else: p = P2 for j in ...
    Jason ChildJason Child
    Dec 22, 2004 at 9:02 pm
    Dec 23, 2004 at 3:21 pm
  • OK I may be pushing it, ;-) I need a script to sleep from any point to 8:05AM when in needs to re-start. So I calculate the number of seconds with the following .... def secs_till_805(): # Returns ...
    Dave SDave S
    Dec 4, 2004 at 3:24 pm
    Dec 6, 2004 at 12:08 am
  • hi, I want to create a matrix in Python. For example 3x4 how can i create this? thanks
    Bugra CakirBugra Cakir
    Dec 19, 2004 at 4:33 pm
    Jan 13, 2005 at 6:00 am
  • Hello Python Tutors, I'm using tempfile. The doc says it is opened 'w+b' so that it can be read and written without closing and reopening. But, for the life of me, I can't find any way to rewind it ...
    Marilyn DavisMarilyn Davis
    Dec 23, 2004 at 11:17 pm
    Dec 29, 2004 at 5:05 am
  • Hi, I'm trying to implement a reasonably efficient table data structure, but ith a few quirks... The application I'm building is a CGI program which allows users to view a large table of data. In ...
    Thomas Clive RichardsThomas Clive Richards
    Dec 21, 2004 at 7:43 am
    Dec 22, 2004 at 2:06 am
  • Dear group, My Tab delimited text looks like this: HG-U95Av2 32972_at 432 117 HG-U95Av2 32972_at 499 631 HG-U95Av2 32972_at 12 185 HG-U95Av2 32972_at 326 83 HG-U95Av2 32972_at 62 197 I want to ...
    Kumar sKumar s
    Dec 9, 2004 at 5:50 pm
    Dec 18, 2004 at 10:35 pm
  • Anyone know where I can download the dbcp module for Python???? No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com
    Rene BourgoinRene Bourgoin
    Dec 16, 2004 at 2:10 am
    Dec 18, 2004 at 3:42 am
  • Hello! I am having some problems with a simple CGi application I am coding for my gf. It is supposed to be a video collection program. I can't manage to write the value of a dictionary key to a file. ...
    Guybrush ThreepwoodGuybrush Threepwood
    Dec 5, 2004 at 11:08 pm
    Dec 9, 2004 at 5:08 pm
  • def addvirt(): pass def remvirt(): pass PROVISION_ACTIONS=[('addvirt','Add Virt'),('remvirt','Remove Virt'),] formhandlers={} # this works formhandlers["addvirt"]=addvirt ...
    Mohamed LrhaziMohamed Lrhazi
    Dec 29, 2004 at 8:08 pm
    Jan 2, 2005 at 8:43 am
  • All, I hate to ask this but I have just installed 2.4 and I need to get some info from a subprocess (I think that is correct term). At the Linux command line if I input dtg I get back a string ...
    Ertl, JohnErtl, John
    Dec 22, 2004 at 6:49 pm
    Dec 23, 2004 at 2:55 am
  • Hi, I am trying to send information from an editor (vim) to an interative program (say the Python commandline, R, Matlab, etc.). I have tried to connect a named pipe to the interactive program using ...
    Vincent NijsVincent Nijs
    Dec 1, 2004 at 11:10 pm
    Dec 8, 2004 at 12:40 am
  • Hi there, I have some common data directories, like /home/dave/mygg/gg1.3/logs /home/dave/mygg/gg1.3/data /home/dave/mygg/gg1.3/datacore /home/dave/mygg/gg1.3/arch_data which increasing numbers of ...
    Dave SDave S
    Dec 4, 2004 at 11:43 am
    Dec 5, 2004 at 11:43 pm
  • Wandering how i could convert an entire tuple of unicode strings to python strings using str(u'string') stringtuple = () stringtuple = (u'string1',u'string2',u'string3') str(u stringtuple) # syntax ...
    Rene BourgoinRene Bourgoin
    Dec 1, 2004 at 3:36 am
    Dec 2, 2004 at 4:00 am
  • Just wanted to extend warm feelings to all the list members! Have a safe and happy season. -- Jason Christopher Child Computer Network Service Professionals VOZ Online
    Jason ChildJason Child
    Dec 24, 2004 at 5:53 pm
    Dec 25, 2004 at 1:51 am
  • Hi there, I am trying to run a least squares program (written by Konrad Hinsen) but I would like to only have positive values returned. Can anyone help is altering the code to do this? Thanks, matthew
    Dec 16, 2004 at 10:21 pm
    Dec 19, 2004 at 3:54 am
  • Hi Group: I have Question: How can I substitute an object as a pattern in making a pattern. My situation: I have a list of numbers that I have to match in another list and write them to a new file: ...
    Kumar sKumar s
    Dec 30, 2004 at 2:01 am
    Jan 2, 2005 at 9:26 am
  • Hello to all :-) I'm writing a CGI script (one of my first ever CGI programs and I'm using this tutor to learn CGI: http://www.oreilly.com/openbook/cgi/ This isn't a python tutor, but the ...
    Mark KelsMark Kels
    Dec 26, 2004 at 4:42 pm
    Dec 27, 2004 at 12:33 pm
  • Hi all, instead of sleeping, I've been up all night finally attacking my apprehension about classes. I think I'm mostly getting the hang of it -- I managed to convert a 300 line procedural script ...
    Brian van den BroekBrian van den Broek
    Dec 18, 2004 at 2:31 pm
    Dec 21, 2004 at 12:07 am
  • Hi all, I'm writing some code, and I want to take a given path + filename, and change the file extension to *.bak. In doing so, (entirely internal this function), I am assuming - That the file will ...
    Liam ClarkeLiam Clarke
    Dec 16, 2004 at 9:24 am
    Dec 19, 2004 at 9:42 am
  • I am trying to remove a directory that has other directories and files in it. I thought removedirs was supposed to do a recursive remove of files and directories. When I try it I get Traceback (most ...
    Ertl, JohnErtl, John
    Dec 16, 2004 at 9:26 pm
    Dec 17, 2004 at 4:32 am
  • Hi Tutors, I think I must be missing something here. I pickled a dictionary of lists into a file, using protocol 2, some weeks ago. Now I'm trying to load it and I can't. File is 21kB long, so I know ...
    Hugo González MonteverdeHugo González Monteverde
    Dec 1, 2004 at 12:16 am
    Dec 1, 2004 at 8:45 pm
  • Hello all, I am trying to use a least squares method (the one written by Konrad Hinsen), but I do not want the method to be able to generate negative values. Is there a way to stop least squares ...
    Dec 16, 2004 at 9:32 pm
    Dec 31, 2004 at 12:54 am
  • Hi all, A while ago, in a response: Danny Yoo said unto the world upon 2004-11-29 17:14: I've got a suggestion: would there be any interest among list members in picking one of the assignments, ...
    Brian van den BroekBrian van den Broek
    Dec 17, 2004 at 11:12 am
    Dec 19, 2004 at 6:07 am
  • This is weird. I have a script that checks walks through directories, checks to see if their name matches a certain format ( regular expression ), and then prints out what it finds. However, it ...
    Gooch, JohnGooch, John
    Dec 14, 2004 at 6:15 pm
    Dec 14, 2004 at 10:24 pm
  • Hey there. Does anyone know of a way to output PDFs with python? I have some data that I have processed from a series of textfiles that I would like to provide PDF format reports for.. Jason ...
    Jason ChildJason Child
    Dec 10, 2004 at 1:37 am
    Dec 11, 2004 at 3:18 pm
  • Hi all, I have a large amount of HTML that a previous person has liberally sprinkled a huge amount of applets through, instead of html links, which kills my browser to open. So, want to go through ...
    Liam ClarkeLiam Clarke
    Dec 7, 2004 at 12:03 pm
    Dec 9, 2004 at 12:11 pm
  • Hello, I'm building an app that needs to get input from the user and compare it to data that should be in some kind of data storage file. The problem is that I dont know what data storage file/module ...
    Mark KelsMark Kels
    Dec 1, 2004 at 6:14 pm
    Dec 3, 2004 at 3:26 am
  • hello I am using time.sleep(seconds) within a while loop. I don't understand the output from this loop. I pasted it below. When I push the go button I would expect first that the message "monitor ...
    Jeff PeeryJeff Peery
    Dec 1, 2004 at 8:31 pm
    Dec 2, 2004 at 7:06 pm
  • I installed 2.4 today and find that when using its IDLE, File|Open opens to \Documents and Settings\Dick, a long ways from \Python24. Actually, I'd prefer \Python24\MyScripts. Same for File|Save. Is ...
    Dick MooresDick Moores
    Dec 1, 2004 at 2:49 am
    Dec 1, 2004 at 7:38 pm
  • Dear group: I am trying to parse BLAST output (Basic Local Alignment Search Tool, size around more than 250 KB ). - <Hit <Hit_num 1</Hit_num <Hit_id gi|43442325|emb|BX956931.1|</Hit_id <Hit_def ...
    Kumar sKumar s
    Dec 31, 2004 at 11:15 pm
    Jan 2, 2005 at 8:31 am
  • Been a long time since I last posted to the list so this is only my third program in as many years :( Anyway the basic idea is to look through two csv files (seperated by tabs) enter both of them ...
    Mark BoydellMark Boydell
    Dec 27, 2004 at 7:18 pm
    Dec 28, 2004 at 3:35 am
  • Hi, I'm trying to figure out how to work with Tix. The lack of examples and avalaibility of documentation for TCL only do not help :-( It does not work because when I start the program, the red and ...
    Guillermo Fernandez CastellanosGuillermo Fernandez Castellanos
    Dec 21, 2004 at 6:16 am
    Dec 28, 2004 at 2:55 am
  • I haven't played with Tkinter in months, and always find it a frustrating experience (GUI stuff is non-intuitive to me). Taking the lazy way out, can anyone point me to a simple sample app that just ...
    Terry CarrollTerry Carroll
    Dec 25, 2004 at 3:06 am
    Dec 25, 2004 at 9:35 pm
  • I am a elative new comer to python. I wrote the following test snippet. #!/usr/bin/env python def main (): play_test() def play_test (): print "Hi! -- in play test" When I do "python test.py" ...
    Ken StevensKen Stevens
    Dec 23, 2004 at 6:32 pm
    Dec 24, 2004 at 1:01 am
  • Hi all , I got some Tkinter related questions for a project that I'm making: 1. How to add an image to a button ? 2. How can I print text using Tkinter (I want it to be cross platform, so I cant use ...
    Mark KelsMark Kels
    Dec 17, 2004 at 10:48 pm
    Dec 20, 2004 at 3:47 pm
Group Navigation
period‹ prev | Dec 2004 | next ›
Group Overview
grouptutor @

143 users for December 2004

Alan Gauld: 91 posts Kent Johnson: 80 posts Liam Clarke: 54 posts Jacob S.: 42 posts Brian van den Broek: 33 posts Danny Yoo: 33 posts Dick Moores: 24 posts Jasonchild: 21 posts Dave S: 19 posts Bob Gailer: 18 posts Jeff Shannon: 18 posts Marilyn Davis: 16 posts 沈洁元: 16 posts Kumar s: 15 posts Max Noel: 15 posts Terry Carroll: 14 posts Orri Ganel: 13 posts Robert, Andrew: 11 posts Ertl, John: 10 posts Tim Peters: 10 posts
show more