Search Discussions
-
Hi, first, python is one of my fav languages, and i'll definitely keep developing with it. But, there's 1 one thing what I -really- miss: data hiding. I know member vars are private when you prefix ...
Sh4wn
May 24, 2008 at 1:41 pm
Jun 12, 2008 at 12:33 pm -
I've read that one of the design goals of Python was to create an easy- to-use English-like language. That's also one of the design goals of Flaming Thunder at http://www.flamingthunder.com/ , which ...
Dave Parker
May 12, 2008 at 11:39 pm
Jun 28, 2008 at 5:47 pm -
I'd like to introduce a blog post by Stephen Wolfram, on the design process of Mathematica. In particular, he touches on the importance of naming of functions. ? Ten Thousand Hours of Design Reviews ...
Xahlee
May 7, 2008 at 11:13 pm
Sep 2, 2008 at 10:24 am -
I'm not posting this just to initiate some religious flame war, though it's the perfect subject to do so. No, I actaully want some serious advice about these two languages and since I think usenet is ...
Notbob
May 21, 2008 at 8:10 pm
May 30, 2008 at 8:46 pm -
Hello. I am new to Python. It seems a very interesting language to me. Its simplicity is very attractive. However, it is usually said that Python is not a compiled but interpreted programming ...
Vicent Giner
May 17, 2008 at 10:32 pm
May 26, 2008 at 5:49 pm -
On UNIX, some people use #!/usr/bin/env python While other use #!/usr/bin/python Why is one preferred over the other one ? Thanks. -- Yves. http://www.SollerS.ca
Yves Dorfsman
May 2, 2008 at 1:36 am
May 10, 2008 at 3:03 am -
I know it's popular and very handy, but I'm curious if there are purists out there who think that using something like: for x in range(10): #do something 10 times is unPythonic. The reason I ask is ...
John Salerno
May 11, 2008 at 2:19 am
May 20, 2008 at 2:51 am -
Python is slow. Almost all of the web applications written in Python are slow. Zope/Plone is slow, sloow, so very slooow. Even Google Apps is not faster. Neither is Youtube. Facebook and Wikipedia ...
Cm_gui
May 22, 2008 at 4:14 pm
Jun 8, 2008 at 10:38 pm -
I posted this code last night in response to another thread, and after I posted it I got to wondering if I had misused the list comprehension. Here's the two examples: Example 1: -------------------- ...
John Salerno
May 20, 2008 at 1:13 pm
Jun 3, 2008 at 10:22 am -
Hi list. What strategies do you use to ensure correctness of new code? Specifically, if you've just written 100 new lines of Python code, then: 1) How do you test the new code? 2) How do you ensure ...
David
May 24, 2008 at 12:34 pm
Jun 11, 2008 at 8:39 am -
http://reddit.com/r/programming/info/18td4/comments claims people take a lot of time to write a simple program like this: "Write a program that prints the numbers from 1 to 100. But for multiples of ...
Globalrev
May 11, 2008 at 1:12 am
Oct 6, 2008 at 9:50 am -
-1 The result is not correct, because every number (positive or negative) raised to the power of 0 is ALWAYS 1 (a positive number 1 that is). The problem is that Python parses -123**0 as -(123**0), ...
WxPythoner
May 8, 2008 at 10:54 pm
May 12, 2008 at 6:04 pm -
I did the following calculation: Generated a list of a million random numbers between 0 and 1, constructed a new list by subtracting the mean value from each number, and then calculated the mean ...
Szabolcs Horvát
May 3, 2008 at 4:50 pm
May 9, 2008 at 4:59 pm -
On SuSE 10.2/Xeon there seems to be a rounding bug for floating-point addition: dickinsm at weyl:~ python Python 2.5 (r25:51908, May 25 2007, 16:14:04) [GCC 4.1.2 20061115 (prerelease) (SUSE Linux)] ...
Mark Dickinson
May 21, 2008 at 6:38 pm
May 22, 2008 at 5:34 pm -
Studying OOP and noticed that Python does not have Interfaces. Is that correct? Is my schooling for nought on these OOP concepts if I use Python. Am I losing something if I don't use the "typical" ...
jmDesktop
May 6, 2008 at 1:44 pm
May 13, 2008 at 9:45 am -
(might not be the right forum for this but...) what is the definition of a highlevel-language? well there isnt one specifically and wikipedia and the like gives just a very general description obv ...
Notnorwegian
May 26, 2008 at 6:34 pm
Jun 14, 2008 at 5:06 am -
Look at the pickle and marshal modules.
Jeff
May 1, 2008 at 12:00 pm
May 2, 2008 at 4:47 pm -
Hi, I have a piece of software which uses threads in very massive way - like hundreds of them generated every second. there is also a piece of code which maintains the number of outstanding threads, ...
AlFire
May 1, 2008 at 2:56 pm
May 5, 2008 at 12:37 am -
Hello, I have an if-elif chain in which I'd like to match a string against several regular expressions. Also I'd like to use the match groups within the respective elif... block. The C-like idiom ...
Boblatest
May 21, 2008 at 9:38 am
May 24, 2008 at 1:52 pm -
i have a rough understanding of lambda but so far only have found use for it once(in tkinter when passing lambda as an argument i could circumvent some tricky stuff). what is the point of the ...
Globalrev
May 7, 2008 at 9:38 pm
May 20, 2008 at 7:21 am -
Is there anyway to tell python I don't care about a value ? Say I want today's year and day, I'd like to do something like: import time y, None, d, None, None, None, None = time.localtime() I know ...
Yves Dorfsman
May 12, 2008 at 2:28 am
May 13, 2008 at 10:20 am -
I'm wondering what is the canonical usage of the keywords 'is' and 'not' when you're writing conditionals and loops. The one I've been following is completely arbitrary--I use the symbols '==', '!=' ...
Destroooooy
May 19, 2008 at 7:39 pm
May 22, 2008 at 4:40 pm -
Hi All, Thanks in advance for any and all help! I have this code: g = open(fileName, 'a') where fileName is defined before the line it's used in. It works fine when I use it outside a thread class. ...
Bc90021
May 11, 2008 at 5:10 pm
May 12, 2008 at 7:20 am -
For what concerns the license, I would say that GPL3 is fine: for a tool basically any kind of license is fine, since the tool is external to the code, so this is a minor point. I am curious about ...
Michele Simionato
May 1, 2008 at 3:50 am
May 7, 2008 at 11:09 pm -
Some time ago I asked whether is would be possible that unittest would perform the test in order of appearence in the file. The answers seemed to be negative. Since I really would like this behaviour ...
Antoon Pardon
May 23, 2008 at 9:36 am
May 29, 2008 at 8:14 am -
Hey all. Just thought I'd ask a general question for my own interest. Every time I think of something I might do in Python, it usually involves creating a GUI interface, so I was wondering what kind ...
John Salerno
May 18, 2008 at 10:20 pm
May 20, 2008 at 10:29 am -
Hi all. I am trying to write to the Python newsgroup. I doubt (aha, but doubt) that I have come to the right place. (Incoming "this"!) Is this the Python newsgroup? I heard it was called ...
Castironpi
May 13, 2008 at 1:02 pm
May 15, 2008 at 12:40 am -
Hi! is there anyway to show the class of a method in an exception's traceback? For example, the next code class Some(object): def foo(self,x): raise Exception(x) obj = Some() obj.foo("some arg") ...
Agustin Villena
May 18, 2008 at 8:16 pm
May 30, 2008 at 8:08 pm -
I remember learning closures in Python and thought it was the dumbest idea ever. Why use a closure when Python is fully object oriented? I didn't grasp the power/reason for them until I started ...
Vbgunz
May 14, 2008 at 2:04 pm
May 15, 2008 at 9:25 pm -
Hi, i was reading/learning some hello world program in python. I think its very simillar to Java/C++/C#. What's different (except syntax) ? what can i do easily with python which is not easy in ...
Raxit
May 8, 2008 at 10:25 am
May 10, 2008 at 5:39 pm -
Hi to all python now has grown to a versatile language that can accomplish tasks for many different purposes. However, AFAIK, little is known about its ability of kernel coding. So I am wondering if ...
Jimmy
May 23, 2008 at 6:29 am
Jun 5, 2008 at 5:33 am -
Can anyone give me pointers/instructions/a template for writing a Python extension in assembly (or better, HLA)?
Inhahe
May 16, 2008 at 2:13 pm
May 22, 2008 at 9:48 am -
Hi all, I have a question on PyParsing. I am trying to create a parser for a hierarchical todo list format, but have hit a stumbling block. I have parsers for the header of the list (title and ...
Ant
May 16, 2008 at 11:43 am
May 20, 2008 at 8:16 pm -
I want to talk to the newsgroup. As I have found that its readers will be non-trivially attentive, I esteem it a worthwhile production, for finely divided values of worth & while. (Disclaimer: Don't ...
Castironpi
May 16, 2008 at 12:50 pm
May 18, 2008 at 10:44 am -
Hi All, I wrote a program that takes a string sequence and finds all the words inside a text file (one word per line) and prints them: def anagfind(letters): #find anagrams of these letters fin = ...
Dave
May 8, 2008 at 1:02 am
May 11, 2008 at 2:09 am -
Hi All, I have been developing websites in classic asp using VB script for a long while now. Due to the fact that I also took a detour to developing ColdFusion, and the fact the companies I work(ed) ...
Erik Oosterwaal
May 25, 2008 at 4:58 pm
May 27, 2008 at 3:30 pm -
im writing a webcrawler. after visiting a new site i want to store it in alphabetical order. so obv i want fast insert. i want to delete duplicates too. which datastructure is best for this?
Notnorwegian
May 25, 2008 at 6:37 am
May 26, 2008 at 2:42 am -
Having a hard time phrasing this in the form of a question... The other day I saw a thread where someone asked about overrideable properties and nobody offered the advice that properties are Bad. So ...
David C. Ullrich
May 14, 2008 at 9:15 pm
May 22, 2008 at 12:58 pm -
17
send yield
Why can't I write this?Castironpi
May 15, 2008 at 1:32 pm
May 16, 2008 at 8:17 am -
Hi - I have a list returned from popen/readlines, and am wondering how to go about iterating over each item which was returned (rather than currently having the whole lot returned). so far: returns ...
Dannywebster
May 13, 2008 at 10:28 am
May 14, 2008 at 11:59 am -
Just something that crosses my mind every time I delve into "Learning Python" each night. Does anyone see any value in learning Python when you don't need to for school, work, or any other reason? I ...
John Salerno
May 12, 2008 at 5:27 pm
May 13, 2008 at 5:50 am -
Is there a way to do: x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] x[0,2:6] That would return: [0, 3, 4, 5, 6] I am surprised this notation is not supported, it seems intuitive. A concrete example of the sort ...
Yves Dorfsman
May 7, 2008 at 11:29 pm
May 10, 2008 at 12:02 pm -
Hi! I'm currently working on a scientific computation software built in python. What I want to implement is a Matlab style command window <- workspace interaction. For example, you type 'a=1' in the ...
Lixinyi 23
May 29, 2008 at 6:47 am
Jun 1, 2008 at 6:55 pm -
Hello group, I'm just starting with Python and am extremely unexperienced with it so far. Having a strong C/C++ background, I wish to do something like if (q = getchar()) { printf("%d\n", q); } or ...
Johannes Bauer
May 23, 2008 at 10:59 pm
May 30, 2008 at 10:22 am -
Hi, I try to get a set of lambda functions that allows me executing each function code exactly once. Therefore, I would like to modify the set function to compare the func_code properties (or the ...
Martin Manns
May 25, 2008 at 11:43 am
May 27, 2008 at 12:36 am -
All: I'm getting different floating point values when I use numpy vs. unpack(). frgba = numpy.frombuffer(<string of bytes , dtype=float32) buffer = unpack("!f", byte) frgba[0] != buffer[0] why? This ...
Marlin Rowley
May 16, 2008 at 10:15 pm
May 19, 2008 at 8:47 pm -
When I started coding in python, these two things surprised me. 1. my code is inconsistently indented with the combination of tabs and spaces. Even lines looked intended, but it is not. 2. python ...
V4vijayakumar
May 8, 2008 at 7:06 am
May 18, 2008 at 2:25 pm -
hey folks, coming from java, new to python. i'm trying to port a java app to python that writes an inputstream to a buffer, then parses the buffer (specifically, i'm getting ID3 tags from mp3s ...
Max
May 15, 2008 at 1:08 pm
May 16, 2008 at 11:50 am -
15
New chairman
seems to be needed He doesn't seem to care much anyway now Or if he cares, he have many other assignments So should we try to elect a new chairman? I am probably not eligible. There must be many ...Sverker Nilsson
May 27, 2008 at 2:19 pm
May 30, 2008 at 2:58 am -
Hi guys, I'm trying to compress a string. E.g: "AAAABBBC" - "ABC" The code I have so far feels like it could be made clearer and more succinct, but a solution is currently escaping me. def ...
Matt Porter
May 18, 2008 at 6:06 pm
May 20, 2008 at 8:29 am
Group Overview
group | python-list |
categories | python |
discussions | 838 |
posts | 4,937 |
users | 924 |
website | python.org |
924 users for May 2008
Archives
- September 2015 (591)
- August 2015 (1,058)
- July 2015 (1,440)
- June 2015 (1,704)
- May 2015 (1,841)
- April 2015 (1,231)
- March 2015 (1,717)
- February 2015 (1,612)
- January 2015 (889)
- December 2014 (1,283)
- November 2014 (1,600)
- October 2014 (1,447)
- September 2014 (1,031)
- August 2014 (1,867)
- July 2014 (1,618)
- June 2014 (1,357)
- May 2014 (1,431)
- April 2014 (1,285)
- March 2014 (2,093)
- February 2014 (1,999)
- January 2014 (2,089)
- December 2013 (2,060)
- November 2013 (2,507)
- October 2013 (1,932)
- September 2013 (1,634)
- August 2013 (1,532)
- July 2013 (2,062)
- June 2013 (2,795)
- May 2013 (1,935)
- April 2013 (1,980)
- March 2013 (1,953)
- February 2013 (1,789)
- January 2013 (1,924)
- December 2012 (1,569)
- November 2012 (1,579)
- October 2012 (1,961)
- September 2012 (2,311)
- August 2012 (1,808)
- July 2012 (1,577)
- June 2012 (1,199)
- May 2012 (1,197)
- April 2012 (1,416)
- March 2012 (1,373)
- February 2012 (1,442)
- January 2012 (1,446)
- December 2011 (1,895)
- November 2011 (1,291)
- October 2011 (1,188)
- September 2011 (1,587)
- August 2011 (2,069)
- July 2011 (2,140)
- June 2011 (1,908)
- May 2011 (2,475)
- April 2011 (2,098)
- March 2011 (1,761)
- February 2011 (1,746)
- January 2011 (2,123)
- December 2010 (1,671)
- November 2010 (2,355)
- October 2010 (2,518)
- September 2010 (2,187)
- August 2010 (3,098)
- July 2010 (2,579)
- June 2010 (3,238)
- May 2010 (2,458)
- April 2010 (2,356)
- March 2010 (2,759)
- February 2010 (3,486)
- January 2010 (3,294)
- December 2009 (2,899)
- November 2009 (3,396)
- October 2009 (3,346)
- September 2009 (3,087)
- August 2009 (3,903)
- July 2009 (3,761)
- June 2009 (3,321)
- May 2009 (3,370)
- April 2009 (4,272)
- March 2009 (4,228)
- February 2009 (3,965)
- January 2009 (4,732)
- December 2008 (4,335)
- November 2008 (3,799)
- October 2008 (4,123)
- September 2008 (3,816)
- August 2008 (4,056)
- July 2008 (4,238)
- June 2008 (3,737)
- May 2008 (4,976)
- April 2008 (4,708)
- March 2008 (4,122)
- February 2008 (4,132)
- January 2008 (4,145)
- December 2007 (3,686)
- November 2007 (3,419)
- October 2007 (4,234)
- September 2007 (4,332)
- August 2007 (4,189)
- July 2007 (3,771)
- June 2007 (4,142)
- May 2007 (5,018)
- April 2007 (4,912)
- March 2007 (4,365)
- February 2007 (3,951)
- January 2007 (3,864)
- December 2006 (4,449)
- November 2006 (4,229)
- October 2006 (5,506)
- September 2006 (5,244)
- August 2006 (4,829)
- July 2006 (4,720)
- June 2006 (5,054)
- May 2006 (5,302)
- April 2006 (4,845)
- March 2006 (5,729)
- February 2006 (4,839)
- January 2006 (5,249)
- December 2005 (5,011)
- November 2005 (5,677)
- October 2005 (5,387)
- September 2005 (4,458)
- August 2005 (4,428)
- July 2005 (4,472)
- June 2005 (4,562)
- May 2005 (4,269)
- April 2005 (5,019)
- March 2005 (5,070)
- February 2005 (5,159)
- January 2005 (5,194)
- December 2004 (5,211)
- November 2004 (4,048)
- October 2004 (5,191)
- September 2004 (5,534)
- August 2004 (6,168)
- July 2004 (4,217)
- June 2004 (4,202)
- May 2004 (3,890)
- April 2004 (4,285)
- March 2004 (5,077)
- February 2004 (4,213)
- January 2004 (3,988)
- December 2003 (3,818)
- November 2003 (4,940)
- October 2003 (6,297)
- September 2003 (4,299)
- August 2003 (5,654)
- July 2003 (4,912)
- June 2003 (4,933)
- May 2003 (4,938)
- April 2003 (5,017)
- March 2003 (5,031)
- February 2003 (7,701)
- January 2003 (6,229)
- December 2002 (4,102)
- November 2002 (4,346)
- October 2002 (3,307)
- September 2002 (4,206)
- August 2002 (4,919)
- July 2002 (4,826)
- June 2002 (4,215)
- May 2002 (5,295)
- April 2002 (5,967)
- March 2002 (5,323)
- February 2002 (5,245)
- January 2002 (5,617)
- December 2001 (4,443)
- November 2001 (4,565)
- October 2001 (3,669)
- September 2001 (3,719)
- August 2001 (5,208)
- July 2001 (6,528)
- June 2001 (4,905)
- May 2001 (5,492)
- April 2001 (4,713)
- March 2001 (4,478)
- February 2001 (3,871)
- January 2001 (4,187)
- December 2000 (3,099)
- November 2000 (2,336)
- October 2000 (3,820)
- September 2000 (3,933)
- August 2000 (4,253)
- July 2000 (4,199)
- June 2000 (4,089)
- May 2000 (4,269)
- April 2000 (3,217)
- March 2000 (3,719)
- February 2000 (4,000)
- January 2000 (2,682)
- December 1999 (2,283)
- November 1999 (1,896)
- October 1999 (2,048)
- September 1999 (2,001)
- August 1999 (2,151)
- July 1999 (2,351)
- June 1999 (2,386)
- May 1999 (2,201)
- April 1999 (1,706)
- March 1999 (6)
- February 1999 (1)