Search Discussions

83 discussions - 416 posts

  • Hi, I wan't to buy some books about python 3. Do you have any recommendations? I started with no previous programming experience, and I've finished a few tutorials and I guess I can be considered a ...
    Khalid Al-GhamdiKhalid Al-Ghamdi
    Dec 9, 2009 at 5:37 am
    Dec 11, 2009 at 11:58 pm
  • def float_to_exact_number_stored_in_computer(f): """ Given a float, return the exact number stored in computer. See http://docs.python.org/3.1/tutorial/floatingpoint.html#representation-error """ ...
    Richard D. MooresRichard D. Moores
    Dec 15, 2009 at 9:46 pm
    Dec 17, 2009 at 3:40 pm
  • Hi, I am trying to represent a number as a list of bits: for example the bit representation of the integer 8. I did find a number of articles pertaining to a module called bitarray but I was unable ...
    Robert BermanRobert Berman
    Dec 2, 2009 at 6:08 pm
    Dec 3, 2009 at 9:13 pm
  • Hello all! I'm trying to use the append mode when opening and writing to a file but i cant get it to work my way. When run in the present code, the user inputs are expectedly 'appended' but not in a ...
    Biboy mendzBiboy mendz
    Dec 9, 2009 at 6:11 pm
    Dec 10, 2009 at 12:04 am
  • I have some functions that seem kind of long to me. One of them, with white space, comments, print statements, and some commented-out lines, is 118 lines long. If I remove all that, it is 57 lines ...
    Che MChe M
    Dec 8, 2009 at 1:37 am
    Dec 9, 2009 at 3:19 am
  • One of the drawbacks of Matplotlib is that it does not have the capability of drawing Kiviat diagrams. Does anyone know of a software package for drawing Kiviat diagrams written in Python? Daniel
    Dec 22, 2009 at 6:18 pm
    Dec 25, 2009 at 12:53 pm
  • Hi there, i have some logical problem. I dont get it done to write my for loops in that way that the ip address range which is given as arguments are correct processed. Meaning that only the ips are ...
    Dec 22, 2009 at 9:53 am
    Dec 23, 2009 at 10:14 am
  • My dept at work is reviewing all the different programming languages that we use and Python is kind of on the chopping block because I'm the only one using it so far. Basically, it would mean that no ...
    Dec 3, 2009 at 5:46 pm
    Dec 7, 2009 at 12:21 am
  • I have a list of 2300 strings. When I call max() on the list, it returned an item with 37 characters. I am only passing 1 argument to max(). I know for a fact that the largest item has 57 characters, ...
    Tony CappelliniTony Cappellini
    Dec 4, 2009 at 1:08 am
    Dec 4, 2009 at 11:52 am
  • My laptop, a Toshiba Satellite running Python 3.1 and Vista 64-bit SP2, with the speakers on and otherwise working, won't give me a beep: Traceback (most recent call last): File "<pyshell#1 ", line ...
    Richard D. MooresRichard D. Moores
    Dec 19, 2009 at 6:29 am
    Dec 19, 2009 at 2:44 pm
  • Hi everyone, I'm trying to apply some lessons from the recent list discussions on unit testing and Test-Driven Development, but I seem to have hit a sticking point. As part of my program, I'm ...
    Serdar TumgorenSerdar Tumgoren
    Dec 8, 2009 at 11:02 pm
    Dec 10, 2009 at 1:14 am
  • I need to setup a login page for a web application but I am not finding any code in the mod_python doc that shows me how to do this. What is need is the code to tell apache to get this login data ...
    Dec 5, 2009 at 11:26 am
    Dec 8, 2009 at 12:56 pm
  • In writing the following program in creating random numbers and writing them to the file, I get an type error in writing to file. I have tried number = random(10,99), number = randint(10.99), and ...
    Ken G.Ken G.
    Dec 25, 2009 at 8:00 pm
    Dec 26, 2009 at 11:25 am
  • Hi everyone! I'm using python 3.1 and I want to to know why is it when I enter the following in a dictionary comprehension: I get the following: {'a': 5, 'd': 5, 'i': 5, 'h': 5, 'k': 5, 'l': 5} ...
    Khalid Al-GhamdiKhalid Al-Ghamdi
    Dec 4, 2009 at 8:32 pm
    Dec 7, 2009 at 6:02 am
  • I am a beginner. I want to save the output data of the following programme in a file through the programme. Please suggest me the way. I am using Python 2.3.3 on mandrake linux 10 and using "Idle" to ...
    Prasad MehendalePrasad Mehendale
    Dec 4, 2009 at 7:43 am
    Dec 6, 2009 at 11:56 am
  • I am learning Python slowly.? I would like to begin learning all about how computers work from the bottom up.? I have an understanding of binary code.? Where should I go from here; can you suggest ...
    Richard HultgrenRichard Hultgren
    Dec 29, 2009 at 2:19 am
    Dec 30, 2009 at 3:26 pm
  • Dear Tutors, The purpose of this script is to see how many vocalized forms map to a single consonantal form. For example, the form "fn" could be fan, fin, fun. The input is a large list (taken from a ...
    Emad Nawfal (عمـ نوفل ـاد)Emad Nawfal (عمـ نوفل ـاد)
    Dec 21, 2009 at 4:40 pm
    Dec 22, 2009 at 10:27 pm
  • Can someone please let me know how to read a file one record at a time (just say fixed block for now - see?small example below) and assign columns to fields.? Then reference the field names with ...
    John FilbenJohn Filben
    Dec 18, 2009 at 1:57 pm
    Dec 19, 2009 at 2:35 am
  • I'm just a philosophy teacher, and I don't know much about mathematics or computers. I'm writing a python program (not the best language for this topic, but it is what I know), and I need to solve a ...
    Michael MorrisseyMichael Morrissey
    Dec 18, 2009 at 5:54 am
    Dec 18, 2009 at 3:00 pm
  • List, Unit testing functions and methods which rely on passed data is simple enough. However: How do I unit test something which relies on external data? For example, a function which creates a file ...
    Dec 9, 2009 at 10:46 pm
    Dec 11, 2009 at 2:09 pm
  • a = 0 b = 1 count = 0 max_count = 20 while count < max_count: ??? count = count + 1 ??? # we need to keep track of a since we change it ??? old_a = a????????????????# especially here ??? old_b = b ...
    Richard HultgrenRichard Hultgren
    Dec 7, 2009 at 7:53 pm
    Dec 9, 2009 at 12:02 am
  • Hi. Can someone explain me where is my mistake. ----------------------------------------------- class Error(Exception): def printer(self , value ): self.value = value print self.value def oops(): ...
    Grigor KolevGrigor Kolev
    Dec 29, 2009 at 8:47 pm
    Dec 31, 2009 at 2:58 pm
  • def prestrings2list(a_str): word = "" list_of_strings = [] length_of_a_string = len(a_str) for i, char in enumerate(a_str): if i == length_of_a_string - 1: word += char word = word.rstrip() ...
    Richard D. MooresRichard D. Moores
    Dec 18, 2009 at 12:57 am
    Dec 18, 2009 at 4:34 am
  • Hi everyone, To continue on the popular topic of unit tests, I was wondering if it's generally preferable to use a single unit test or a series of unit tests when testing against a regex pattern. In ...
    Serdar TumgorenSerdar Tumgoren
    Dec 15, 2009 at 10:56 pm
    Dec 16, 2009 at 3:48 pm
  • Forwarded from python-announce. A helpful summary of the differences between Python 2 and 3 (though some of the differences were introduced well before Python 3). Kent ---------- Forwarded message ...
    Kent JohnsonKent Johnson
    Dec 2, 2009 at 12:29 pm
    Dec 2, 2009 at 5:46 pm
  • I need to make a database from some PDFs. I need to extract logos as well as the information (i.e. name,address) beneath the logo and fill it up in database. The logo can be text as well as picture ...
    Shashwat AnandShashwat Anand
    Dec 29, 2009 at 7:33 am
    Dec 31, 2009 at 4:37 pm
  • List, How do I create a file which exists only in memory? (Think diskless.) I need to create an in-memory file. I need to pass this file, as a regular file object, to a subprocess. Unfortunately, the ...
    Dec 27, 2009 at 8:36 am
    Dec 28, 2009 at 3:57 am
  • Hi folks, I'm trying to do something like this: ... ?? ? ? for a in evildict: ... ? ? ? ?? ??? text=text.replace(a, evildict[a]) ... ? ? ? ? ? ?? return text ??? This works fine, but it soon gets too ...
    Dec 15, 2009 at 5:19 pm
    Dec 16, 2009 at 10:55 am
  • OpenHatch is a new web site that compiles entry-level opportunities with open-source programming projects. Many of the projects are in Python. If you are looking for a way to get involved with an ...
    Kent JohnsonKent Johnson
    Dec 12, 2009 at 9:32 pm
    Dec 16, 2009 at 5:17 am
  • Hi list, I finally manage to sort of complete my read-create-edit.py file (after finding precious free time). I appreciate your review and good/bad comments to my code. It look and runs ok from my ...
    Biboy mendzBiboy mendz
    Dec 13, 2009 at 7:35 pm
    Dec 14, 2009 at 7:19 am
  • hello, but this jumbles the phone number and also includes the 67000. how can i split the 'line' into a list? thanks norman
    Norman KhineNorman Khine
    Dec 31, 2009 at 1:49 pm
    Jan 1, 2010 at 11:14 am
  • Hello, I am trying to authenticate on http://commerce.sage.com/Solidarmonde/ using urllib but have a problem in that there are some hidden fields that use javascript to create a security token which ...
    Norman KhineNorman Khine
    Dec 26, 2009 at 3:46 pm
    Dec 28, 2009 at 9:17 pm
  • What is URL to online Python interpreter? Ben
    Benjamin CastilloBenjamin Castillo
    Dec 18, 2009 at 5:32 am
    Dec 18, 2009 at 3:19 pm
  • Hi, I have two computationally intensive commands that I would like to render simultaneously on two fifferent computers. When I run these two commands, os.system(theTerminalCommandMacPro4) ...
    Dec 17, 2009 at 2:29 pm
    Dec 17, 2009 at 4:51 pm
  • class Student: print"We have a new student " def __init__(self,name='',credit=0,grade=0,quality=0): self.name=name self.credit=credit self.grade=grade self.quality=quality def inputstudent(self): ...
    Roshan SRoshan S
    Dec 11, 2009 at 1:22 pm
    Dec 11, 2009 at 3:20 pm
  • I want to fill a database with the contents of a spreadsheet. The spreadsheet was created by OpenOffice and is a .sxc document. What is the best way to do this? I think the best approach is to save ...
    Christopher SpearsChristopher Spears
    Dec 10, 2009 at 6:05 am
    Dec 10, 2009 at 6:15 pm
  • I'm still learning, and this may be better served on a pygame mailing list but I thought I'd try here first. I'm following the python programming for absolute beginners which uses livewires and ...
    Tim GoddardTim Goddard
    Dec 10, 2009 at 5:30 am
    Dec 10, 2009 at 4:55 pm
  • Why don't you simply print out fname? This should point you to the error. Denis I did here: and it looks correct. On an WinXP, should I use shutil instead? Roy An HTML attachment was scrubbed... URL: ...
    Roy HinkelmanRoy Hinkelman
    Dec 8, 2009 at 8:27 pm
    Dec 9, 2009 at 10:52 am
  • ----- Forwarded Message ---- From: Richard Hultgren <hultgren1946 at yahoo.com To: tutor at python.org Sent: Mon, December 7, 2009 2:53:40 PM Subject: loops I'm quite new but determined.? Can you ...
    Richard HultgrenRichard Hultgren
    Dec 8, 2009 at 3:36 pm
    Dec 9, 2009 at 12:15 am
  • This is probably an easy one. When I was writing Matlab m-files, I really enjoyed the ability to stop the code to check how values were being stored or to 'step' into a function with the keyboard ...
    Tim GoddardTim Goddard
    Dec 4, 2009 at 4:10 pm
    Dec 4, 2009 at 10:46 pm
  • Your list is great. I've been lurking for the past two weeks while I learned the basics. Thanks. I am trying to loop thru 2 files and scrape some data, and the loops are not working. The script is ...
    Roy HinkelmanRoy Hinkelman
    Dec 3, 2009 at 8:09 am
    Dec 4, 2009 at 8:00 am
  • Can I use python to print xps or gif. An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/tutor/attachments/20091231/1c8bc4d8/attachment.htm
    Dec 31, 2009 at 1:43 pm
    Jan 1, 2010 at 6:05 am
  • Pythonistas, I have got a wx.gauge running and I cannot get it to go away! Any quick and dirty ideas or do you need my ugly syntax. I'm a newbie! Thanks Matt Matthew Pirritano, Ph.D. Research Analyst ...
    Pirritano, MatthewPirritano, Matthew
    Dec 30, 2009 at 11:49 pm
    Dec 31, 2009 at 3:59 pm
  • I do quite a lot of programming in Ruby. When I do so, my code tends to have the following layout: /path/to/src/my_project Inside my_project: lib/ test/ my_project.rb my_project.rb uses classes and ...
    Stephen Nelson-SmithStephen Nelson-Smith
    Dec 29, 2009 at 3:11 pm
    Dec 29, 2009 at 9:40 pm
  • Special offer for coders coding on Christmas day! I'm looking for the simplest way to decode/encode unicode ordinals (called 'codes' below) to/from utf8. Find this rather tricky, esp because of ...
    Dec 25, 2009 at 5:39 pm
    Dec 26, 2009 at 10:31 pm
  • Hi all, I'm having a design issue that's really bothering me. The code I'm writing is fairly large by now, but I've written what I think is a decent example that illustrates my problem. My app ...
    Brian JonesBrian Jones
    Dec 26, 2009 at 2:03 am
    Dec 26, 2009 at 4:06 pm
  • I'm working my way through Mr Lutz's "Learning Python", and I come to this snippet (page 271): while True: reply = input('Enter text:') if reply == 'stop': break print(reply.upper()) which works "as ...
    Dec 25, 2009 at 4:49 pm
    Dec 25, 2009 at 10:46 pm
  • ... (some variables) I then need a command that will list the variables I assigned like: a, b, c, ... (some variables), z Regards Mkhanyisi
    Mkhanyisi MadlavanaMkhanyisi Madlavana
    Dec 25, 2009 at 7:50 am
    Dec 25, 2009 at 12:57 pm
  • Hey all, I keep getting a connection error 111 connection refused. When i try to connect to a server at a remote ip address. I am using linux on both computers. the socket server looks like this: ...
    Shawn brightShawn bright
    Dec 21, 2009 at 5:25 pm
    Dec 24, 2009 at 3:25 pm
  • Hi all, suppose I need to import a module inside a class and that I need to use it in to different methods. Is this is the way to do it? class test(): import time def method1(self): print 'method 1: ...
    Robert JohanssonRobert Johansson
    Dec 22, 2009 at 9:14 pm
    Dec 22, 2009 at 9:36 pm
Group Navigation
period‹ prev | Dec 2009 | next ›
Group Overview
grouptutor @

103 users for December 2009

ALAN GAULD: 42 posts Kent Johnson: 36 posts Spir: 26 posts Dave Angel: 23 posts Lie Ryan: 18 posts Richard D. Moores: 17 posts Serdar Tumgoren: 12 posts Biboy mendz: 9 posts Luke Paireepinart: 9 posts Bob gailer: 8 posts Wayne Werner: 8 posts Alan Plum: 7 posts Emile van Sebille: 7 posts Hugo Arts: 7 posts Rich Lovely: 6 posts Shashwat Anand: 6 posts Григор: 6 posts Che M: 5 posts Rayon: 5 posts Richard Hultgren: 5 posts
show more