Search Discussions
-
In answering the recent question by Mark Tarver, I think I finally hit on why Lisp programmers are the way they are (in particular, why they are often so hostile to the "There should only be one ...
Carl Banks
Apr 25, 2009 at 6:06 am
Apr 29, 2009 at 12:44 pm -
I'm coming from fortran and c background so I'm certainly biased by them. But if you could explain one thing to me: in fortran for example: for i=1,n goes from 1,2,3,4,...,n in python for example: ...
Lada Kugis
Apr 1, 2009 at 12:24 am
Apr 7, 2009 at 5:45 pm -
Hi I am looking for one of those experimental languages that might be combination of python+basic. Now thta sounds weird and awkward I know. The reason I am asking is that I always liked how I could ...
Baykus
Apr 17, 2009 at 8:37 pm
Apr 21, 2009 at 4:59 pm -
I propose the following PEP for inclusion to Python 3.1. Please comment. Regards, Martin Abstract ======== Namespace packages are a mechanism for splitting a single Python package across multiple ...
Martin v. Löwis
Apr 2, 2009 at 3:32 pm
Apr 29, 2009 at 6:41 am -
Is there any obvious reason why [False,True] and [True,True] gives [True, True] Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
Bdb112
Apr 20, 2009 at 7:03 am
Apr 29, 2009 at 2:35 am -
I want to compare two binary files and see if they are the same. I see the filecmp.cmp function but I don't get a warm fuzzy feeling that it is doing a byte by byte comparison of two files to see if ...
SpreadTooThin
Apr 13, 2009 at 7:54 pm
Apr 18, 2009 at 8:19 am -
Hello, Is there a way to easily build an object that behaves exactly like a float, but whose value can be changed? The goal is to maintain a list [x, y,?] of these float-like objects, and to modify ...
Eric Le Bigot
Apr 14, 2009 at 1:03 pm
May 1, 2009 at 7:19 am -
Hi there, Exploring the Python standard library, I was surprised to see that several packages (ConfigParser, logging...) use mixed case for methods all over the place. I assume that they were written ...
Emmanuel Surleau
Apr 19, 2009 at 4:43 pm
Apr 21, 2009 at 10:23 am -
Hi, I was getting some surprising false positives as a result of not expecting this: all(element in item for item in iterable) to return True when 'iterable' is empty. I guess it goes into hairy ...
John O'Hagan
Apr 12, 2009 at 4:00 am
Apr 20, 2009 at 4:22 pm -
python's list needs a thing list.clear() like c# arraylist and python needs a writeline() method
Online Service
Apr 2, 2009 at 10:25 pm
Apr 5, 2009 at 11:38 am -
Hello everyone, I am wanting to create an installer for my project. I first use py2exe to create win32 executables and then would like to have an easy to use (for the end user) installer. I would ...
Gabriel Rossetti
Apr 22, 2009 at 9:17 am
Apr 23, 2009 at 11:10 pm -
Hello I'd like to go through a list of e-mail addresses, and extract those that belong to well-known ISP's. For some reason I can't figure out, Python shows the whole list instead of just e-mails ...
Gilles Ganault
Apr 8, 2009 at 9:56 am
Apr 10, 2009 at 9:03 am -
I am going around in circles right now and have to admit I do not understand what is going on with import of hierarchical packages/modules. Perhaps someone can get me on the road again. Here is a ...
Dale Amon
Apr 29, 2009 at 5:52 pm
May 1, 2009 at 7:00 am -
Hi, I am trying to work out if its possible, to create a virtual serial port with Python? Would anyone know how to go about this in code? Any help would be greatly appreciated! :) I have a had a ...
Stuart Davenport
Apr 10, 2009 at 6:59 pm
Apr 19, 2009 at 7:30 pm -
Hi all, I am a programmer who works with some different kinds of programming languages, like python, C++(in COM), action script, C#, etc. Today, I realized that, what ever language I use, I always ...
一首诗
Apr 1, 2009 at 7:44 am
Apr 4, 2009 at 12:32 pm -
Hi, I've just stumbled over this (http://showmedo.com/) and being the very visual person I am, it seems like it could be a good way to learn about python. However, before I smack down $60, I wondered ...
Astley Le Jasper
Apr 28, 2009 at 3:09 pm
May 21, 2009 at 6:14 pm -
What is the rationale for considering all instances true of a user- defined type? Is it strictly a practical stipulation, or is there something conceptually true about objects? ''' ...
Aaron Brady
Apr 28, 2009 at 6:11 am
May 2, 2009 at 8:23 am -
I'm proposing the following PEP for inclusion into Python 3.1. Please comment. Regards, Martin PEP: 383 Title: Non-decodable Bytes in System Character Interfaces Version: $Revision: 71793 $ ...
Martin v. Löwis
Apr 22, 2009 at 6:50 am
Apr 30, 2009 at 11:02 pm -
It seems to me that mailbox.mbox.add() sets the access time of a mbox file as well as the modification time. This is not good for MUAs that detect new mail by looking to see if the access time is ...
Tinnews
Apr 23, 2009 at 10:50 pm
Apr 28, 2009 at 8:59 pm -
I have a program that is generated from a generic process. It's job is to check to see whether records (replicated from another system) exist in a local table, and if it doesn't, to add them. I have ...
Carbon Man
Apr 27, 2009 at 3:01 am
Apr 29, 2009 at 11:22 am -
What is the consensus of the Python community regarding these code checkers? In particular, are the stylistic recommendations that pylint makes considered sensible/valid? Are there any other tools ...
Esmail
Apr 22, 2009 at 1:11 am
Apr 27, 2009 at 8:17 pm -
from subprocess import * check_call(['mode', 'COM1:9600,N,8,1,P'],shell=True) while True: with open('com1', 'r') as f: for line in f: print('line') This works very well except for one thing. After a ...
Gert
Apr 2, 2009 at 5:01 pm
Apr 7, 2009 at 9:51 pm -
This page says that Python lists are often flexible arrays http://www.brpreiss.com/books/opus7/html/page82.html but also says that their representation is implementation dependent. As far as I see ...
Mark Tarver
Apr 24, 2009 at 3:19 pm
Apr 27, 2009 at 7:18 pm -
What is the best way to compare the *contents* of two different lists regardless of their respective order? The lists will have the same number of items, and be of the same type. E.g. a trivial ...
Esmail
Apr 24, 2009 at 1:31 am
Apr 25, 2009 at 11:39 pm -
[off but interesting topic] Hi folks, I've come across many times the claim that 'joins are bad' for large databases because they don't scale. Okay, makes sense, we agree. But what I don't get, ...
Daniel Fetchinson
Apr 16, 2009 at 6:45 pm
Apr 19, 2009 at 5:04 am -
Inspired by recent threads (and recalling my first message to Python edu-sig), I did some Internet searching on producing prime numbers using Python generators. Most algorithms I found don't go for ...
John Posner
Apr 4, 2009 at 6:50 pm
Apr 13, 2009 at 11:52 am -
Hi guys, I'm new to python, i downloaded version 2.5, opened windows (vista) command line and wrote "python", this should take me to the python command line, but it did not! i'm getting : python is ...
83nini
Apr 22, 2009 at 7:20 am
Apr 23, 2009 at 7:23 am -
I'm trying to design an iterator that produces two lists. The first list will be a list of unique pairings and the second will be a list of items that weren't used in the first list. After each ...
Ross
Apr 11, 2009 at 3:50 am
Apr 15, 2009 at 9:08 pm -
Hi all! I'm writing a program that presents a lot of numbers to the user, and I want to let the user apply moderately simple arithmentics to these numbers. One possibility that comes to mind is to ...
Joel Hedlund
Apr 9, 2009 at 3:56 pm
Apr 11, 2009 at 4:29 pm -
Give the following code.. ... def __init__(self): ... self.count = -1 ... def next(self): ... self.count +=1 ... if self.count < 4: ... return self.count ... else: ... raise StopIteration ... ... ...
Grocery_stocker
Apr 2, 2009 at 10:14 pm
Apr 3, 2009 at 9:57 am -
I guess I did not articulate myself well enough. I was just looking for a toy to play around. I never suggested that Python+Basic would be better than Python and everyone should use it. Python is ...
Baykus
Apr 17, 2009 at 9:21 pm
Apr 21, 2009 at 2:52 am -
Hi all, I have a problem with Condition.wait(), it doesn't return after the given timeout. The thing is that if I try to create a simple program, it works as expected, but in the actual code, the ...
Stephane Bisinger
Apr 18, 2009 at 1:20 am
Apr 19, 2009 at 7:41 pm -
I have a script like this myscript.py def func01() def func02() def func03() .... def funcnn() How can i execute my func in the code ? import myscript for i in range(1,n): myscript.func?? many thanks ...
Stefano
Apr 17, 2009 at 7:00 am
Apr 18, 2009 at 7:52 am -
Hi all, I'm having a weird problem with a regular expression (tested in 2.6 and 3.0): Basically, any of these: _re_comments = re.compile(r'^(([^\\]+|\\.|"([^"\\]+|\\.)*")*)#.*$') _re_comments = ...
David Liang
Apr 9, 2009 at 9:56 am
Apr 17, 2009 at 8:48 pm -
I want to start learning python and not wanna waste my time learning python 2.x ,so i need your advise to what IDE to use for python 3.0.1 thank you
Deep_Feelings
Apr 15, 2009 at 10:36 pm
May 4, 2009 at 12:29 pm -
Anybody have a solution for Windows (XP) Explorer search not finding ordinary text in *.py files? Thanks.
John Doe
Apr 4, 2009 at 4:21 am
Apr 27, 2009 at 7:55 pm -
Hello all, I wonder if someone could help me with sorting two corresponding lists. For instance the first list contains some items, and the second list contains their value (higher is better) items = ...
Esmail
Apr 20, 2009 at 4:10 pm
Apr 24, 2009 at 5:11 pm -
Hello all, I really like the lambda function for a particular task i have: I am writing some simulation software, working with many different materials. Each material with many different properties, ...
Mousemeat
Apr 15, 2009 at 1:47 pm
Apr 17, 2009 at 8:46 pm -
Hello, I'm python newbie and i need to write gui for my school work in python. I need to write it really quick, because i haven't much time .) So question is, which of gui toolkits should i pick and ...
Gabriel
Apr 12, 2009 at 1:07 pm
May 28, 2009 at 11:30 am -
i try to load a big file into a dict, which is about 9,000,000 lines, something like 1 2 3 4 2 2 3 4 3 4 5 6 code for line in open(file) arr=line.strip().split('\t') dict[arr[0]]=arr but, the dict is ...
Forrest yang
Apr 28, 2009 at 12:54 pm
Apr 30, 2009 at 7:43 am -
I'm using the CSV library to process a large amount of data - 28 files, each of 130MB. Just reading in the data from one file and filing it into very simple data structures (numpy arrays and a ...
Psaffrey
Apr 27, 2009 at 11:22 am
Apr 29, 2009 at 11:42 pm -
So I installed the module and tryed to make it work but... It gave me: Traceback (most recent call last): File "first.py", line 24, in <module client2.connect() File ...
Alejandro
Apr 28, 2009 at 3:52 pm
May 5, 2009 at 11:21 am -
Hello, I'm trying to do a if statement with a function inside it. I want to use that variable inside that if loop , without defining it. def Test(): return 'Vla' I searching something like this: if ...
GC-Martijn
Apr 24, 2009 at 10:00 am
May 4, 2009 at 10:49 pm -
Hi. I'm building a script that closely follows a producer-consumer model. In this case, the producer is disk-bound and the consumer is cpu-bound, so I'm using the multiprocessing module (python2.5 ...
Luis Zarrabeitia
Apr 30, 2009 at 8:49 pm
May 4, 2009 at 1:52 pm -
I have a subclass of int where I want all the standard arithmetic operators to return my subclass, but with no other differences: class MyInt(int): def __add__(self, other): return ...
Steven D'Aprano
Apr 14, 2009 at 9:09 am
Apr 18, 2009 at 8:33 pm -
On behalf of the Python community, I'm happy to announce the availability of Python 2.6.2. This is the latest production-ready version in the Python 2.6 series. Dozens of issues have been fixed since ...
Barry Warsaw
Apr 15, 2009 at 3:45 pm
Apr 17, 2009 at 11:13 pm -
Hello all, I have a question about the if/else aspect of list comprehension: I would like to go through a list and place quotes around an item if it is a string, and keep the item the same if it's ...
Mike H
Apr 10, 2009 at 9:07 pm
Apr 12, 2009 at 8:00 am -
A similar discussion has already occurred, over 4 years ago: ...
MooMaster
Apr 7, 2009 at 3:17 am
Apr 9, 2009 at 5:09 am -
Hi, I tried writing a small game on a pygame layer. The graphics are fine, and at the moment, it is not graphics intensive. It is multi- player, and for the communication, I am sending a pickle ...
Aaron Brady
Apr 2, 2009 at 12:58 am
Apr 5, 2009 at 2:11 am -
Hi: If I use an integer to represent bits: e.g. 99 represents '1100011' How can I locate, say the second bit of 99(i.e. '1')? Although bin(99)[4] could be used to locate it, this transform cost too ...
Li Wang
Apr 28, 2009 at 2:36 pm
Apr 30, 2009 at 2:35 am
Group Overview
group | python-list |
categories | python |
discussions | 668 |
posts | 4,157 |
users | 801 |
website | python.org |
801 users for April 2009
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)