Search Discussions
-
Hi: From what I've read of OOP, I don't get it. I have also found some articles profoundly critical of OOP. I tend to relate to these articles. However, those articles were no more objective than the ...
Chris Carlen
Jul 13, 2007 at 4:06 pm
Jul 26, 2007 at 9:20 pm -
70
From D
There are various things I like about the D language that I think Python too may enjoy. Here are few bits (mostly syntactical ones): 1) (we have discussed part of this in the past) You can put ...BearophileHUGS
Jul 24, 2007 at 10:19 am
Sep 9, 2008 at 7:31 am -
Is there any discussion of having real booleans in Python 3000? Say something along the line of the numpy implementation for arrays of type 'bool'? Hoping the bool type will be fixed will be fixed, ...
Alan Isaac
Jul 10, 2007 at 3:58 pm
Jul 13, 2007 at 2:57 pm -
Hi, I'm in the process of writing some code and noticed a strange problem while doing so. I'm working with PythonWin 210 built for Python 2.5. I noticed the problem for the last py file processed by ...
Bg_ie
Jul 30, 2007 at 2:36 pm
Aug 10, 2007 at 3:43 pm -
Hi, For experienced with Pyhton users, which developing software and enviroment would you suggest for Pyhton programming? Compiler+Editor +Debugger. Also what are your suggestions for beginners of ...
Kimiraikkonen
Jul 1, 2007 at 7:10 pm
Jul 10, 2007 at 5:47 pm -
Python is a better language, with php support, anyway, but I am fed up with attitudes of comp.lang.perl.misc. Assholes in this newsgroup ruin Perl experience for everyone. Instead of being helpful, ...
Martha_Jones
Jul 25, 2007 at 7:45 pm
Aug 12, 2007 at 3:03 pm -
In Python 2.5 on intel, the statement 2**2**2**2**2 evaluates to 20035299304068464649790723515602557504478254755697514192650169737108940595563114 ...
Jim Langston
Jul 10, 2007 at 4:21 am
Jul 17, 2007 at 1:18 am -
"Once you start down the Dark path, forever will it dominate your desiny. Consume you, it will." - Yoda I'm fairly new to web-development, and I'm trying out different technologies. Some people ...
Walterbyrd
Jul 25, 2007 at 5:42 pm
Jul 27, 2007 at 7:30 pm -
What is the best way to re-raise any exception with a message supplemented with additional information (e.g. line number in a template)? Let's say for simplicity I just want to add "sorry" to every ...
Christoph Zwerschke
Jul 5, 2007 at 1:53 pm
Jul 16, 2007 at 5:14 pm -
if key not in my_dict: my_obj = my_dict[key] = myobject() else: my_obj = my_dict[key] Note that this last one won't have the same result, since it won't store my_obj under my_dict[key]. You'd have to ...
Bruno Desthuilliers
Jul 19, 2007 at 4:29 am
Aug 2, 2007 at 10:20 pm -
Hi, If I have a number n and want to generate a list based on like the following: def f(n): l=[] while n 0: l.append(n%26) n /& return l I am wondering what is the 'functional' way to do the same. ...
Beginner
Jul 30, 2007 at 10:48 pm
Aug 14, 2007 at 10:46 am -
Hi, I want to be a professional python programmer, unfortunately I'm working on technical support and don't have the time/patience to start making projects my self. I tried to apply to some Python ...
NicolasG
Jul 23, 2007 at 4:52 pm
Aug 2, 2007 at 8:06 am -
I'm working on a distributed computing program and need to send Python objects over a TCP socket. Specifically, the objects that I'm working with subclass the builtin list type (I don't know whether ...
Walker Lindley
Jul 17, 2007 at 9:57 pm
Jul 27, 2007 at 7:26 am -
After an hour searching for a potential bug in XML parsing (PyXML), after updating from 2.4 to 2.5, I found this one: $ python2.5 Python 2.5 (release25-maint, Dec 9 2006, 14:35:53) [GCC 4.1.2 ...
Stefan Scholl
Jul 26, 2007 at 8:28 am
Jul 30, 2007 at 8:33 am -
Hi, I am wondering how do I 'flatten' a list or a tuple? For example, I'd like to transform[1, 2, (3,4)] or [1,2,[3,4]] to [1,2,3,4]. Another question is how do I pass a tuple or list of all the ...
Beginner
Jul 25, 2007 at 2:50 pm
Jul 26, 2007 at 6:51 am -
I'm simply trying to read a CSV into a dictionary. (if it matters, it's ZIP codes and time zones, i.e., 35983,CT 39161,CT 47240,EST Apparently the way to do this is: import csv dictZipZones = {} ...
Captain Poutine
Jul 5, 2007 at 4:34 pm
Jul 11, 2007 at 2:14 am -
This may be a silly question but is possible for os.wait() to lose track of child processes? I'm running Python 2.4.4 on Linux kernel 2.6.20 (i686), gcc4.1.1, and glibc-2.5. Here's what happened in ...
Jason Zheng
Jul 10, 2007 at 11:52 pm
Jul 13, 2007 at 11:52 pm -
def is_iterable(obj): try: iter(obj) return True except TypeError: return False Is there a better way? -- Neil Cerutti
Neil Cerutti
Jul 25, 2007 at 6:24 pm
Jul 26, 2007 at 10:10 pm -
A very simple question: I currently use a cumbersome-looking way of getting the first, second, etc. line of a text file: for i, line in enumerate( open( textfile ) ): if i == 0: print 'First line is: ...
Daniel Nogradi
Jul 25, 2007 at 7:44 pm
Apr 24, 2009 at 5:12 pm -
Hi, I'm not an experienced developer, and I came across this statement by reading a code. I search for explanation, but can't find anything meaningful. I read the entire document written by python's ...
Nvictor
Jul 19, 2007 at 7:31 am
Jul 23, 2007 at 6:48 pm -
I was going through the docs for module-random<http://docs.python.org/lib/module-random.html And I came through this, *shuffle*( x[, random]) Shuffle the sequence x in place. The optional argument ...
Shabda raaj
Jul 16, 2007 at 12:10 pm
Feb 20, 2009 at 11:15 pm -
Hello, In my previously post I have been talk about running code with exec in...... So now I have problem with code indentation, as Gabriel Genellina says: So......how can I do this????????????? I ...
...:::JA:::...
Jul 23, 2007 at 7:53 pm
Jul 27, 2007 at 12:43 am -
Hi, I am learning python by learning django, and I stumble upon decorator which is very cool, any beginners resources for python decorators, although I can google it, I just want to get a good ...
James_027
Jul 23, 2007 at 8:13 am
Mar 23, 2009 at 10:26 pm -
All, I can't seem to find an answer to this question anywhere, but I'm still looking. My problem is I have a list of values like this: l = [0xF0, 1, 2, 3, 0xF0, 4, 5, 6, 0xF1, 7, 8, 0xF2, 9, 10, 11, ...
Danmcleran
Jul 16, 2007 at 9:11 pm
Jul 20, 2007 at 3:35 pm -
Here's an implementation of the functionality I propose, as a free-standing function: def intersects(s1,s2): if len(s1) < len(s2): for x in s1: if x in s2: return True else: for x in s2: if x in s1 ...
David Abrahams
Jul 4, 2007 at 1:59 pm
Jul 6, 2007 at 1:00 am -
Hi, I have the following code: str = "C:/somepath/folder/file.txt" for char in str: if char == "\\": char = "/" The above doesn't modify the variable 'str' directly. I'm still pretty new to Python so ...
Robert Dailey
Jul 31, 2007 at 5:55 pm
Aug 1, 2007 at 7:50 am -
I have some code which relies on running each line of a file through a large number of regexes which may or may not apply. For each pattern I want to match I've been writing gotit = ...
Gordon Airporte
Jul 19, 2007 at 4:52 am
Jul 26, 2007 at 4:11 am -
hi, python's staticmethod is the equivalent of java staticmethod right? with classmethod, I can call the method without the need for creating an instance right? since the difference between the two ...
James_027
Jul 24, 2007 at 3:19 am
Jul 26, 2007 at 1:12 am -
Say that i want to get the keys of a, sorted. First thing I tried: None Doesn't work. Probably because I am actually trying to sort the keys of the dictionary without copying them first. If that is ...
Montyphyton
Jul 20, 2007 at 10:27 pm
Jul 22, 2007 at 9:03 am -
Of course there is the always the iteration method: list = [1, True, True, False, False, True] status = True for each in list: status = status and each but what is your best way to test for for False ...
Lex
Jul 8, 2007 at 11:43 pm
Jul 11, 2007 at 10:57 am -
Hi, I'm a newbie at Python. :) Right now it's not letting me import * from any relative package name--i.e., a name that starts with a dot. For instance, none of the following work: from . import * ...
Rbygscrsepda
Jul 27, 2007 at 6:11 pm
Aug 7, 2007 at 6:35 am -
Hi, Is there build-in or third party support for large integer types, such as 96 or 128 bits in size? I require such large sizes for precision issues (nanoseconds). Thanks.
Robert Dailey
Jul 27, 2007 at 4:45 pm
Jul 30, 2007 at 11:14 pm -
The mod_python manual says this under section 2.1 Prerequisites: ------ In order to compile mod_python you will need to have the include files for both Apache and Python, as well as the Python ...
7stud
Jul 14, 2007 at 4:47 pm
Jul 30, 2007 at 8:21 am -
Problem: how to get binary from integer and vice versa? The simplest way I know is: a = 0100 a 64 but: a = 100 (I want binary number) does not work that way. a.__hex__ exists a.__oct__ exists but ...
Mosi
Jul 17, 2007 at 11:09 am
Jul 18, 2007 at 7:53 am -
Hi, I noticed in Python all function parameters seem to be passed by reference. This means that when I modify the value of a variable of a function, the value of the variable externally from the ...
Robert Dailey
Jul 13, 2007 at 7:10 pm
Jul 16, 2007 at 5:55 pm -
Hi: I have begun learning Python by experimenting with the code snippets here: http://hetland.org/writing/instant-python.html In the section on functions, Magnus Lie Hetland writes: ...
Chris Carlen
Jul 13, 2007 at 12:51 am
Jul 14, 2007 at 5:43 am -
Hi, everyone, I'm implementing a simple client/server protocol. Now I've got a situation: client will send server command,header paires and optionally body. server checks headers and decides whether ...
Ahlongxp
Jul 7, 2007 at 2:51 pm
Jul 10, 2007 at 6:01 am -
(this question was also posted in the devshed python forum: http://forums.devshed.com/python-programming-11/parsing-xml-with-elementtree-unicode-problem-461518.html ). ----------------------------- ...
Oren Tsur
Jul 23, 2007 at 2:29 pm
Jul 26, 2007 at 3:05 pm -
Hi, The string format operator, %, provides a functionality similar to the snprintf function in C. In C, the function does not know the type of each of the argument and hence relies on the embedded ...
Karthik Gurusamy
Jul 17, 2007 at 12:10 am
Jul 18, 2007 at 7:39 am -
How do I access the value in the second row in the first position of a CSV? Or the 3rd row, in the fifth position? a,b,c,d,e,f,g,h,i j,k,l,m,n,o,p,q,r r,s,t,v,w,x,y,z I'd want to get at "j" and "w". ...
CarpeSkium
Jul 13, 2007 at 2:59 am
Jul 15, 2007 at 4:07 pm -
Hi, I packaged up an application I am developing into an executable. In the application, it has user configurable options. I would like a way to restart the application so that the new options the ...
Kyosohma
Jul 3, 2007 at 9:27 pm
Jul 10, 2007 at 3:16 am -
I need something like this: def func1(*args, **kwargs): if some_cond: return func2(*args, **kwargs) else: return func3(some_other_args, **kwargs) Thank you in advance, D.
Dmitrey
Jul 1, 2007 at 8:53 am
Jul 2, 2007 at 8:24 pm -
Hi Everyone, I am looking for a way to allow a standalone python process to easily interactive with a few web pages. It has to be able to easily receive requests from the web and post data to the ...
Beginner
Jul 31, 2007 at 4:25 pm
Aug 2, 2007 at 5:20 pm -
Hello all, I've been debugging the reason for a major slowdown in a piece of code ... and it turns out that it was the zip function. In the past the lists that were zipped were reasonably short, but ...
Istvan Albert
Jul 26, 2007 at 11:25 pm
Aug 1, 2007 at 2:40 pm -
Hello It looks like the development of the PyWin32 wrapper to the Win32 API stopped years ago, which is too bad because it means that writing GUI apps in Python even just for Windows means adding ...
Gilles Ganault
Jul 28, 2007 at 3:18 pm
Jul 31, 2007 at 7:53 pm -
How would one tell at runtime if a particular feature has been enabled by the "from __future__ import thing" statement? For example, I can do this: if 1/2 == 0: print "classic division in use" else: ...
Steven D'Aprano
Jul 30, 2007 at 12:29 pm
Jul 30, 2007 at 3:31 pm -
Hello, For a project, I need to develop a corpus of online news stories. I'm looking for an application that, given the url of a web page, "copies" the rendered text of the web page (not the source ...
Kublai
Jul 12, 2007 at 9:42 am
Jul 22, 2007 at 9:39 pm -
Hi fellas, I am experiencing problems reading a 2GB zipfile consisting of multiple zipped files. I found a thread http://mail.python.org/pipermail/python-dev/2005-April/053027.html that mentions a ...
Xamdam
Jul 15, 2007 at 4:35 am
Jul 16, 2007 at 10:29 pm -
Hello, I'm trying to find a way to convert an integer (8-bits long for starters) and converting them to a list, e.g.: num = 255 numList = [1,1,1,1,1,1,1,1] with the first element of the list being ...
Godzilla
Jul 12, 2007 at 10:34 pm
Jul 15, 2007 at 2:37 am -
i hope someone here can help me. basically, me and my friend have a summer project. in this project, we need something that would basically function as a blender. we know we'll need to buy a motor ...
Socialanxiety
Jul 9, 2007 at 12:06 am
Jul 9, 2007 at 9:23 am
Group Overview
group | python-list |
categories | python |
discussions | 711 |
posts | 3,764 |
users | 865 |
website | python.org |
865 users for July 2007
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)