FAQ

Search Discussions

128 discussions - 617 posts

  • An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/tutor/attachments/20090406/df82d404/attachment.htm
    Bob gailerBob gailer
    Apr 6, 2009 at 2:41 pm
    Apr 8, 2009 at 3:46 pm
  • I am trying to open a text file and read multiple lines containing the following: 745777686,Alam,Gaus,CIS,15,30,25,15,5,31,15,48,70,97 888209279,Anderson,Judy,Math Ed,14,30,30,13,11,30,16,18,58,72 I ...
    Chris CastilloChris Castillo
    Apr 19, 2009 at 11:45 pm
    Apr 22, 2009 at 12:11 pm
  • I'm processing tens of thousands of html files and a few of them contain mismatched tags and ElementTree throws the error: "Unexpected error opening J:/F2/663/blahblah.html: mismatched tag: line 124, ...
    Dinesh B VadhiaDinesh B Vadhia
    Apr 28, 2009 at 12:54 pm
    Apr 29, 2009 at 9:23 am
  • I am getting information from .txt files and posting them in fields on a web site. I need to break up single strings so they are around 80 characters then a new line because when I enter the info to ...
    DavidDavid
    Apr 28, 2009 at 9:43 pm
    Apr 29, 2009 at 11:58 pm
  • Since # the list seems thick with OOP questions at the moment, I thought this might # be relevant. Digest and enjoy. class Item ( object ): def __init__( self ): self._FullName = '' self._Recovery = ...
    Carnell, James ECarnell, James E
    Apr 15, 2009 at 5:27 pm
    Apr 16, 2009 at 11:32 pm
  • I'm writing a small cgi application for children to use and I want to check that the name they enter isn't a swear word. I've populated a database with a swear word list and then check this list ...
    AdamCAdamC
    Apr 6, 2009 at 7:30 am
    Apr 7, 2009 at 3:56 pm
  • An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/tutor/attachments/20090407/4fb93499/attachment.htm
    Wayne WatsonWayne Watson
    Apr 7, 2009 at 6:15 pm
    Apr 9, 2009 at 2:34 am
  • I'm looking at recursion in "Think Python", and this is the bit of code: #!/usr/bin/env python def countdown(n): if n <= 0: print 'Blastoff!' else: print n countdown(n-1) I've typed that in vim and ...
    Dayo AdewunmiDayo Adewunmi
    Apr 26, 2009 at 9:35 pm
    Apr 28, 2009 at 8:38 am
  • I am new in python , so need a good books , previously read python Bible and swaroop but not satisfied . so tell me good books in pdf format those contents good problems also An HTML attachment was ...
    Sudhanshu gautamSudhanshu gautam
    Apr 14, 2009 at 5:07 am
    Apr 26, 2009 at 11:14 am
  • Hi, I'd like to edit and not run a .py file programmatically. os.path(filename.py) runs the file using python. What I'd like is to only edit the file using Idle or Notepad++ or Spe... I could do this ...
    DominiqueDominique
    Apr 12, 2009 at 7:13 am
    Apr 13, 2009 at 9:07 am
  • I need to be able to decompose a formatted text file into identifiable, possibly named pieces. To tokenize it, in other words. There seem to be a vast array of modules to do this with (simpleparse, ...
    William WittemanWilliam Witteman
    Apr 22, 2009 at 6:35 pm
    Apr 23, 2009 at 2:24 pm
  • Hey everyone, First post to this list. I hope I'm doing it right. Let's say I want to run func 10 times Is there a more pythonic way to do it than this: for i in xrange(10): func() Thanks. An HTML ...
    MattMatt
    Apr 20, 2009 at 1:48 pm
    Apr 20, 2009 at 10:56 pm
  • Hey everyone, I'm hoping someone here can help me solve an odd problem (bug?). I'm having trouble with string encoding, object deletion, and the xml.etree library. If this isn't the right list to be ...
    MattMatt
    Apr 20, 2009 at 2:46 pm
    Apr 20, 2009 at 10:00 pm
  • I have a flat file database that I want to get information from. The basic text looks like this: ITEM { "FULLNAME" "apps114.chgit.com!file:/etc" "RECOVERY" "0" } They are all on a separate line in ...
    Spencer ParkerSpencer Parker
    Apr 10, 2009 at 3:01 pm
    Apr 10, 2009 at 5:48 pm
  • Hello, The following code returns 'abc123abc45abc789jk'. How do I revise the pattern so that the return value will be 'abc789jk'? In other words, I want to find the pattern 'abc' that is closest to ...
    KelieKelie
    Apr 28, 2009 at 8:03 am
    Apr 28, 2009 at 10:36 am
  • Using Windows XP, Python 2.6 & Al Sweigart's "Invent Your Own...", I keyed in the Hangman Program. So far as I can tell it is totally proofed out. Still, I get an error message which makes no sense ...
    WM.WM.
    Apr 22, 2009 at 6:57 pm
    Apr 23, 2009 at 12:44 pm
  • Hello! I?m not a programmer and am a beginner with Python, I would like suggestion about ways of tackling the task I had to do. I have bee been using the xlrd package to get data from some ...
    Eduardo VieiraEduardo Vieira
    Apr 22, 2009 at 2:49 pm
    Apr 22, 2009 at 11:46 pm
  • Dear ALL, What is really the importance of Docstring in Python??? Regards, Henry An HTML attachment was scrubbed... URL: ...
    Mbikinyi bratMbikinyi brat
    Apr 16, 2009 at 9:04 am
    Apr 17, 2009 at 10:31 pm
  • Hello everyone, I have one account number. I want to replace all this account numbers and convert them as URLS. but I don't want to convert existing urls which has account numbers. e.g. 1234-4578 ...
    KumarKumar
    Apr 6, 2009 at 2:23 pm
    Apr 10, 2009 at 6:39 am
  • Dear Tutors, I have a file from which I want to extract lines that end in certain strings and print to a second file. More specifically, I want to: 1) iterate over each line in the file, and if it ...
    Dan LiangDan Liang
    Apr 25, 2009 at 2:01 pm
    Apr 28, 2009 at 8:16 am
  • I have a script that I want to test MySQL sonnections with. The way I have the script working is to just create connections, but I realized that it is going to wait for the first one to stop before ...
    Spencer ParkerSpencer Parker
    Apr 24, 2009 at 9:26 pm
    Apr 27, 2009 at 4:46 pm
  • I am dealing with a database field that can only store strings. I want to save the list to the field and when I retrieve the string convert it back to a list. But this does NOT work. mylist=[1,2,3,4] ...
    JohnfJohnf
    Apr 16, 2009 at 10:52 pm
    Apr 17, 2009 at 12:54 am
  • Dear All, Greetings I have developed an application in Python 2.4.2, TurboGears 1.0, cherryPy 2.3.1. Now, I have to develop a server, which listens to a specific port (104) and save the file to a ...
    ShivKumar AnandShivKumar Anand
    Apr 10, 2009 at 5:58 am
    Apr 14, 2009 at 10:35 am
  • Hello, I would like to refactor tests of an application in a consistent form. I have a ton of tests for each module, but they are all ad hoc things. doctest looks great. The issue is it seems based ...
    SpirSpir
    Apr 23, 2009 at 12:55 pm
    Apr 29, 2009 at 3:44 pm
  • Hi, following the example from http://docs.python.org/3.0/howto/regex.html If I execute the following code on the python shell (3.1a1): I get the msg: <_sre.SRE_Pattern object at 0x013A3440 instead ...
    Emilio CasbasEmilio Casbas
    Apr 28, 2009 at 10:51 pm
    Apr 29, 2009 at 1:42 pm
  • Hello, I have a series of lists that I need to output into files with a specific format. Specifically, I need to have line breaks after each entry of the list, and I need to do away with the ['..'] ...
    Matt DomeierMatt Domeier
    Apr 25, 2009 at 3:57 am
    Apr 27, 2009 at 7:09 am
  • Hi, hope this mailing list is still active. I'm learning phyton. I can write simple programs, and i've studied all examples provided by the Google App Engine Documentation. As i understood, i can ...
    Giorgio BonfiglioGiorgio Bonfiglio
    Apr 15, 2009 at 2:40 pm
    Apr 16, 2009 at 6:00 pm
  • Hi tutors, How can I sort the following list in a way that takes care of the right order of numbers? The sorted function compares strings here as far as I can see, but I want to have filepath2 follow ...
    Emad Nawfal (عماد نوفل)Emad Nawfal (عماد نوفل)
    Apr 14, 2009 at 11:39 pm
    Apr 15, 2009 at 10:48 am
  • Hi tutors, So I finally made my program. When I run it with python, it works perfectly! But when I convert it to an executable using py2exe (correctly), I get an error: Traceback (most recent call ...
    Chris LeeChris Lee
    Apr 10, 2009 at 9:22 pm
    Apr 11, 2009 at 7:07 pm
  • I've collected my training materials plus a few more advanced topics and I've also written up a reasonably large set of Python exercises. Then, I turned all of the above into a "book". If you have ...
    Dave KuhlmanDave Kuhlman
    Apr 11, 2009 at 12:25 am
    Apr 11, 2009 at 4:02 pm
  • I need some help converting the fractional (right side of the decimal) to base 10. I have this but it doesn't work mynum = raw_input("Please enter a number: ") myint, myfrac = mynum.split(".") base = ...
    Chris CastilloChris Castillo
    Apr 5, 2009 at 8:36 pm
    Apr 6, 2009 at 5:04 pm
  • An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/tutor/attachments/20090404/d55ba6a1/attachment-0001.htm
    Wayne WatsonWayne Watson
    Apr 5, 2009 at 4:03 am
    Apr 5, 2009 at 11:01 pm
  • Python for i,j in topgirls, richgirls: print i,j Cheetah #for $i,$j in $topgirls, $richgirls$i, $j #end for This doesnt work -- Bidegg worlds best auction site http://bidegg.com An HTML attachment ...
    MobiledreamersMobiledreamers
    Apr 30, 2009 at 6:31 am
    Apr 30, 2009 at 3:15 pm
  • Trying to print something with a { in it. Probably extremely simple, but it's frustrating me. :( print ('The \"This is a test \" {') i get this error ValueError: Single '{' encountered in format ...
    Dave CrouseDave Crouse
    Apr 29, 2009 at 6:42 pm
    Apr 30, 2009 at 2:34 am
  • hello, i have the following code: if unique_id is not None: training = self.get_site_root() from training import Training # link back to news item root = context.root formats = ['itinerary', 'news'] ...
    Norman KhineNorman Khine
    Apr 29, 2009 at 7:05 am
    Apr 29, 2009 at 12:25 pm
  • when we work on the oops in the python then we have to pass the first parameter as a self then the value of the other parameters . for example: class Student: def __init__(self,name): self.name=name ...
    Sudhanshu gautamSudhanshu gautam
    Apr 27, 2009 at 5:08 pm
    Apr 27, 2009 at 11:16 pm
  • Hi, I am trying to create a program where I open a file full of lists and process them. However when the program does not recognize the lists as lists. Here is the relevant code :- def ...
    David HollandDavid Holland
    Apr 26, 2009 at 6:03 pm
    Apr 27, 2009 at 8:21 pm
  • helloI wrote a function to fetch data using urllib and displaying the data using internet Explorer. it is not preparing the html file So opening blank Explorer after complaining th html file not ...
    Prasad raoPrasad rao
    Apr 25, 2009 at 9:38 am
    Apr 25, 2009 at 1:44 pm
  • I tried to compile and install python3.0 from source,but after "make",it shows: Python build finished, but the necessary bits to build these modules were not found: _dbm _gdbm _hashlib _sqlite3 _ssl ...
    Shaofeng NIuShaofeng NIu
    Apr 24, 2009 at 6:41 am
    Apr 25, 2009 at 11:48 am
  • Anyone know how to program this using Python Add up the prices for items in a shopping cart. Some items are taxable and some items are not. You may assume a 7% tax rate for all taxable items. Apply a ...
    IT_ForMeIT_ForMe
    Apr 22, 2009 at 4:08 pm
    Apr 25, 2009 at 8:00 am
  • I'm trying to comfirm an address is a good address via google. Meaning does google report that the address exist. If I do urllib.urlopen( "http://maps.google.com/maps/geo?%s" % params ) with the ...
    JohnfJohnf
    Apr 23, 2009 at 3:27 pm
    Apr 23, 2009 at 9:41 pm
  • Hi All, This is not to flame any war; I just wanted to know the key features to consider among the two web frame works. What advantage and disadvantages you have when you decide using any one of ...
    Vishwajeet singhVishwajeet singh
    Apr 19, 2009 at 10:52 am
    Apr 21, 2009 at 4:44 am
  • Hi Tutors, I tried to install this edit distance module but failed: http://www.mindrot.org/projects/py-editdist/ I'm running Ubuntu Linux. The error message is below. Your help appreciated emad at ...
    Emad Nawfal (عماد نوفل)Emad Nawfal (عماد نوفل)
    Apr 20, 2009 at 4:38 pm
    Apr 20, 2009 at 6:16 pm
  • Hi, For some reason, I'm having a bit of trouble figuring this one out. I know it has to be relatively easy but it just isn't "working" for me at the moment. I want to re-direct the logs from ...
    Scott SAScott SA
    Apr 18, 2009 at 9:07 pm
    Apr 20, 2009 at 1:11 am
  • Dear ALL, I am a beginner in python and I just copied the code in blue below and execute and had the result in green. Then I thought letter should be a special word in python. Then I now replace ...
    Mbikinyi bratMbikinyi brat
    Apr 16, 2009 at 8:45 pm
    Apr 17, 2009 at 2:01 am
  • hey all, i'm trying to collate a complete newbie-to-programming list of resources and was wondering if you could help me fill in the holes... thx in advance! BOOKS Python Programming for the Absolute ...
    Wesley chunWesley chun
    Apr 16, 2009 at 8:36 pm
    Apr 16, 2009 at 9:52 pm
  • Sometime ago, one of my posts brought a response brief exchange on event handling*. Where might I find more about event handling with respect to the keyboard, and particularly with a mouse. In the ...
    Wayne WatsonWayne Watson
    Apr 13, 2009 at 3:05 pm
    Apr 13, 2009 at 6:47 pm
  • Hello Tutors, I am having some issues with a malformed tag in a html page. BeautifulSoup barfs with the following. raceback (most recent call last): File "<pyshell#140 ", line 1, in <module tsoup = ...
    Sander SweersSander Sweers
    Apr 10, 2009 at 9:08 pm
    Apr 12, 2009 at 6:15 pm
  • Hello Tutors! I was trying to make some groups optional in a regular expression, but I couldn't do it. For example, I have the string: and the pattern: This works when all the groups are present. ...
    Moos HeintzenMoos Heintzen
    Apr 11, 2009 at 10:46 pm
    Apr 12, 2009 at 3:07 am
  • Hi guys, I am a relative newbie to python and OOP concepts and am trying to work through wxpython. I've seen understanding classes is essential to this and have been trying to work through them. I ...
    Stefan LesicnikStefan Lesicnik
    Apr 10, 2009 at 6:44 pm
    Apr 10, 2009 at 11:51 pm
Group Navigation
period‹ prev | Apr 2009 | next ›
Group Overview
grouptutor @
categoriespython
discussions128
posts617
users122
websitepython.org

122 users for April 2009

ALAN GAULD: 77 posts Kent Johnson: 67 posts Spir: 38 posts Wayne Watson: 33 posts Bob gailer: 20 posts David: 19 posts Sander Sweers: 16 posts Emile van Sebille: 15 posts Martin Walsh: 14 posts W W: 12 posts Dinesh B Vadhia: 11 posts Johnf: 10 posts Dave Angel: 9 posts Emad Nawfal (عماد نوفل): 9 posts Mbikinyi brat: 9 posts Pirritano, Matthew: 9 posts Wesley chun: 9 posts A.T.Hofkamp: 8 posts Robert Berman: 8 posts Spencer Parker: 8 posts
show more
Archives