Search Discussions
-
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-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. 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 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 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 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
Dwbarne
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 ...
MK
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 ...
Skrabbit
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 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. 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 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 ...
Rayon
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.
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-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 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 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 (عمـ نوفل ـاد)
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 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 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 ...
Modulok
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 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 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. 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 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 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 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 ...
Modulok
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 ...
Luhmann
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 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 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 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 Khine
Dec 26, 2009 at 3:46 pm
Dec 28, 2009 at 9:17 pm -
What is URL to online Python interpreter? Ben
Benjamin 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) ...
Pedro
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 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 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 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 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 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 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 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
Rayon
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, 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-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 ...
Spir
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 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 ...
Rick
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 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 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 Johansson
Dec 22, 2009 at 9:14 pm
Dec 22, 2009 at 9:36 pm
Group Overview
group | tutor |
categories | python |
discussions | 83 |
posts | 416 |
users | 103 |
website | python.org |
103 users for December 2009
Archives
- September 2015 (83)
- August 2015 (315)
- July 2015 (101)
- June 2015 (227)
- May 2015 (308)
- April 2015 (116)
- March 2015 (76)
- February 2015 (126)
- January 2015 (1)
- December 2014 (106)
- November 2014 (20)
- October 2014 (1)
- September 2014 (3)
- May 2014 (16)
- April 2014 (1)
- March 2014 (9)
- February 2014 (1)
- January 2014 (1)
- November 2013 (2)
- October 2013 (1)
- September 2013 (1)
- July 2013 (3)
- June 2013 (1)
- April 2013 (2)
- March 2013 (1)
- February 2013 (1)
- January 2013 (2)
- December 2012 (2)
- October 2012 (3)
- September 2012 (3)
- August 2012 (12)
- July 2012 (4)
- May 2012 (7)
- April 2012 (23)
- March 2012 (11)
- February 2012 (305)
- January 2012 (8)
- December 2011 (57)
- November 2011 (895)
- October 2011 (2)
- September 2011 (378)
- August 2011 (546)
- July 2011 (150)
- June 2011 (151)
- May 2011 (559)
- April 2011 (468)
- March 2011 (540)
- February 2011 (241)
- January 2011 (676)
- December 2010 (609)
- November 2010 (605)
- October 2010 (631)
- September 2010 (911)
- August 2010 (739)
- July 2010 (616)
- June 2010 (542)
- May 2010 (410)
- April 2010 (424)
- March 2010 (581)
- February 2010 (778)
- January 2010 (424)
- December 2009 (416)
- November 2009 (696)
- October 2009 (635)
- September 2009 (342)
- August 2009 (27)
- July 2009 (790)
- June 2009 (704)
- May 2009 (543)
- April 2009 (617)
- March 2009 (634)
- February 2009 (740)
- January 2009 (919)
- December 2008 (454)
- November 2008 (406)
- October 2008 (552)
- September 2008 (526)
- August 2008 (589)
- July 2008 (698)
- June 2008 (669)
- May 2008 (452)
- April 2008 (612)
- March 2008 (589)
- February 2008 (484)
- January 2008 (586)
- December 2007 (486)
- November 2007 (542)
- October 2007 (765)
- September 2007 (773)
- August 2007 (756)
- July 2007 (940)
- June 2007 (492)
- May 2007 (524)
- April 2007 (468)
- March 2007 (525)
- February 2007 (659)
- January 2007 (665)
- December 2006 (424)
- November 2006 (787)
- October 2006 (950)
- September 2006 (589)
- August 2006 (667)
- July 2006 (528)
- June 2006 (477)
- May 2006 (446)
- April 2006 (744)
- March 2006 (676)
- February 2006 (591)
- January 2006 (637)
- December 2005 (515)
- November 2005 (910)
- October 2005 (911)
- September 2005 (780)
- August 2005 (878)
- July 2005 (794)
- June 2005 (575)
- May 2005 (777)
- April 2005 (899)
- March 2005 (813)
- February 2005 (935)
- January 2005 (918)
- December 2004 (854)
- November 2004 (690)
- October 2004 (770)
- September 2004 (536)
- August 2004 (804)
- July 2004 (585)
- June 2004 (439)
- May 2004 (303)
- April 2004 (589)
- March 2004 (403)
- February 2004 (542)
- January 2004 (661)
- December 2003 (642)
- November 2003 (549)
- October 2003 (575)
- September 2003 (500)
- August 2003 (491)
- July 2003 (1)
- May 2003 (1)
- April 2003 (2)
- March 2003 (1)
- February 2003 (1)
- January 2003 (1)
- December 2002 (1)
- November 2002 (1)
- October 2002 (1)
- August 2002 (2)
- June 2002 (1)
- May 2002 (2)
- April 2002 (1)
- March 2002 (1)
- February 2002 (1)
- January 2002 (1)
- December 2001 (1)
- November 2001 (1)
- October 2001 (1)
- August 2001 (1)
- July 2001 (2)
- June 2001 (1)
- April 2001 (2)
- March 2001 (1)
- February 2001 (1)
- January 2001 (1)
- December 2000 (1)
- November 2000 (1)
- October 2000 (1)
- September 2000 (1)
- July 2000 (2)
- June 2000 (1)
- May 2000 (1)
- April 2000 (1)
- March 2000 (1)
- February 2000 (1)
- January 2000 (1)
- December 1999 (1)
- November 1999 (1)
- October 1999 (1)
- September 1999 (1)
- August 1999 (1)
- July 1999 (1)
- June 1999 (1)
- May 1999 (1)
- April 1999 (1)
- March 1999 (1)
- January 1998 (1)
- January 1980 (1)