Search Discussions
-
So I know what lambda functions are, they're syntax and how they're used. However I'm not sure *why* one would use a lambda function. What's the advantage that they offer over a regular function? ...
Britt A. Green
Jul 26, 2002 at 4:59 pm
Aug 23, 2002 at 8:16 am -
I'm running linux 2.4.18 and 2.4.19 with Python 2.2 and the linuxthreads library. I'm having a problem where the interpreter in ceval.c does not let threads run concurently. Any thread that holds the ...
Anton wilson
Jul 29, 2002 at 11:20 pm
Aug 9, 2002 at 6:15 pm -
109
Why self?
Why is it necessary to use a "self" argument to class methods in python? To me it seems a bit like doing object oriented programming in C... Why not make it implicit like "this" in C++? I do not find ...Jesper Olsen
Jul 5, 2002 at 9:36 am
Jul 17, 2002 at 2:01 am -
I notice that in every discussion of self, there's always a '.' in there. So, why not make a leading '.' mean self? AFAIK, it's otherwise currently illegal. The only drawback that I can think of is ...
David LeBlanc
Jul 9, 2002 at 10:10 pm
Aug 4, 2002 at 11:07 pm -
hello, i need to count lines in a file (that i *can't* keep in memory, so can't use readlines()) by now i use this : --- import os BUFFER_SIZE = 10000 def lineCount(filename, bufferSize = ...
Shagshag13
Jul 23, 2002 at 4:26 pm
Jul 31, 2002 at 6:27 pm -
Hello group (and list :-), I've used Python for several years (and followed this group until about 6 months ago). I work in a small company which specialises in collecting and procesing financial ...
Thomas Jensen
Jul 6, 2002 at 4:05 pm
Jul 11, 2002 at 10:51 am -
Hello, Recently my employer has asked me to do some computer work though I'm just savvy enough to write minor programs of little significance. My job is to write a program that will be generic enough ...
Mark
Jul 12, 2002 at 12:08 am
Jul 21, 2002 at 12:36 am -
I seem to remember seeing something somewhere about making a module callable, but I can't seem to find it in the docs. Basically I want to have a file foo.py, and be able to say (in another file): ...
Paul Rubin
Jul 22, 2002 at 5:04 am
Jul 31, 2002 at 7:17 am -
Our free web timesheet app is written totally in Python. One of our competitors is saying the following things about python to our customers. Help me make them look stupid. Please? ps. enjoy our free ...
Curt finch
Jul 8, 2002 at 11:18 pm
Jul 22, 2002 at 11:06 am -
Hi <<Essence of question Is there a guide or a recomended way to "get to know" the source code to the python interpreter? <<Some helping background I am creating a new language and an IDE intended ...
Tim Gahnström /Bladerman
Jul 26, 2002 at 12:36 pm
Jul 30, 2002 at 3:36 pm -
Hello All, Although it's in the Humor section I take the Python Zen (http://www.python.org/doc/Humor.html#zen) quite seriously. However I can understand what does “Sparse is better than ...
Miki Tebeka
Jul 11, 2002 at 11:28 am
Jul 15, 2002 at 2:47 pm -
In response to a question earlier today, I wrote a function I called make_color_switch: from __future__ import generators def make_color_switch(color1, color2): def color_switch(): i = 0 while True: ...
Mark McEahern
Jul 12, 2002 at 7:15 pm
Jul 16, 2002 at 1:43 pm -
Hello, I am trying to convert a hex string (for example: "0x12345678") to a number (0x12345678 or just 12345678). Can you help me please? Thanks, Tal.
Tal
Jul 9, 2002 at 10:52 am
Jul 10, 2002 at 7:19 pm -
Python has many fans in the open source community, but is it ready for the enterprise? Here are the advantages and disadvantages of using Python in the corporate environment. ...
Builder
Jul 10, 2002 at 9:02 pm
Jul 26, 2002 at 6:27 pm -
hello, i'm looking for an "efficient" way of sorting many arrays driven by one, for example drive = [1, 4, 2, 3] other1 = [a, b, c, d] other2 = [ k, j, h, l ] other3 = [14, 18, 19, 11] and i get : ...
Shagshag13
Jul 9, 2002 at 11:18 am
Jul 15, 2002 at 8:28 am -
Hello All, I often have the case where I need to loop through a bunch of elements, but do something special on for the last line of code. Currently, I can solve it this way: first = 1 for port in ...
Tom Verbeure
Jul 27, 2002 at 8:21 pm
Aug 8, 2002 at 10:02 pm -
I wrote a small python program to help me solve a math problem. When I tried to run it with large values, it ate all my RAM and I eventually had to kill it. I tried writing the same thing in C and it ...
Jeff Davis
Jul 26, 2002 at 8:25 pm
Jul 28, 2002 at 9:09 am -
Who knows how to send and receive a file(binary data) through sockets? thanx, Guyon
Guyon Morée
Jul 4, 2002 at 12:17 pm
Jul 9, 2002 at 8:09 pm -
Hello there. It seems to me that C.l.py is too overloaded today. Wouldn't it be nice if someone(not me - I think I don't have resources for it) bothered to setup a wiki for discussion about python ...
Kerim Borchaev
Jul 1, 2002 at 1:29 pm
Jul 10, 2002 at 8:01 pm -
22
Python 2.3
When Python 2.3 will be released? I've read the "what's new" and i'm waiting generators and true division :-) -- Rhymes rhymes at myself.com " ride or die "Rhymes
Jul 19, 2002 at 9:44 pm
Jul 20, 2002 at 8:07 pm -
I found Simon Foster's nice little SNTP client on the ASPN Cookbook site and adapted it to set the hardware clock under Linux: http://www.nightsong.com/phr/python/setclock.py I find it pretty useful ...
Paul Rubin
Jul 6, 2002 at 9:16 am
Jul 10, 2002 at 6:10 pm -
Does some kind soul out there happen to have a pointer to a tutorial/examples on fiddling with the Win32 registry from PythonWin? TIA, -- ...
Tim Daneliuk
Jul 10, 2002 at 8:20 am
Jul 30, 2002 at 12:34 am -
Book. It's out. From O'Reilly. See http://www.oreillynet.com/pub/a/network/2002/07/15/regexp.html Claims extensive Python re coverage. In addition to the other usual suspects, also covers Java, Ruby, ...
David LeBlanc
Jul 19, 2002 at 11:34 pm
Jul 27, 2002 at 9:10 am -
in my original post, i posted the doc they wrote. They sent it to a 200k opportunity after we won it. the competitor is clockware. i doubt if they have that particular doc available from their site ...
Curt finch
Jul 9, 2002 at 2:30 pm
Jul 15, 2002 at 12:46 pm -
Hi, what do you think about adding "repeat .... until" to python syntax? Often a "repeat-until" is better to use than a "while" loop. Guido 8-) ??? Ingo
Ingo Linkweiler
Jul 3, 2002 at 7:08 pm
Jul 15, 2002 at 9:47 am -
19
GUI toolkits
Hello all in my spare time I am writing a tool in python, with the intention of deliver it under GPL. I am now starting to approach the GUI part. I have read a lot about Tkinter, PyQT and wxWindows, ...Stefano Vedovelli
Jul 24, 2002 at 10:58 am
Jul 26, 2002 at 6:07 pm -
I'm looking at using unittest for a new project. This would be my first use of unittest, although I've rolled my own test suites a few times. How do people usually organize the test cases for a ...
Roy Smith
Jul 7, 2002 at 6:52 pm
Jul 26, 2002 at 8:14 am -
Hello, I often find myself using Python tuples in the same way I might use C structs. For example, I might store a "point" as "p = (x, y, color)". Unfortunately, this quickly becomes cumbersome when ...
Kevin O'Connor
Jul 7, 2002 at 3:12 am
Dec 27, 2002 at 8:52 am -
It's nice when you open up your reference book, and immediately find a section on what you want to do. It sucks large donkey rocks when that section is titled: "Difficulties and Impossiblies" ...
Dave Cinege
Jul 29, 2002 at 3:57 am
Aug 2, 2002 at 9:17 pm -
(1) Why are back ticks a failure? I love them. (2) I just wanted to submit a PEP in which I should have proposed to switch to prefix notation like CL. To judge from what you wrote, Mr Guido would not ...
JB
Jul 29, 2002 at 2:50 pm
Jul 31, 2002 at 9:05 am -
Is there something intrinsically hard about overriding an instance's special methods? I'm using python 2.2 and expected that it would be easy to wrap an existing __setattr__, but it seems the class ...
Robin Becker
Jul 3, 2002 at 6:53 pm
Jul 9, 2002 at 9:36 am -
Hello, If I instantiate a class in a function, leave the function via a return and then go back to the same function, will the instantiation of the class still be there or is it local to the function ...
Jeff Layton
Jul 21, 2002 at 3:00 pm
Sep 8, 2002 at 2:40 pm -
I'm a Python newby, but I have read several books, documentation, and email list archives, and I have not found a direct reference to how money calculations can be handled in Python. Specifically, ...
Terry
Jul 24, 2002 at 4:46 am
Jul 27, 2002 at 3:12 am -
hello, i need to process *each line* of many huge files ( 2 million lines) with xml processing, by now i do it with parseString from xml.dom.minidom and it's work. i do xml validation, extract ...
Shagshag13
Jul 24, 2002 at 3:10 pm
Jul 25, 2002 at 6:22 pm -
Hi, Is there a way to ask Python not to allow 2.2 constructs? Having Python complain when producing .pyc files would be good enough. Thanks. Edward ...
Edward K. Ream
Jul 12, 2002 at 2:54 pm
Jul 22, 2002 at 1:18 pm -
I have two lists <list1 and <list2 . The entries of these lists have the format (id,rest), where <id is a natural number. The list are sorted, the key is <id . I should like to write a funtion move: ...
JB
Jul 13, 2002 at 11:08 am
Jul 15, 2002 at 8:02 am -
I'm trying to create exhaustive lists of unicode character categories for use by parsers. In doing so, I'm parsing the unicode database and generating the category uni-strings from the category sets. ...
Mike C. Fletcher
Jul 2, 2002 at 3:43 am
Jul 10, 2002 at 1:27 pm -
hi, after playing around with all this metastuff it seems that isinstance is broken (but after all it could also be, that my brain finally broke down). here some script that checks for the ...
Robert Kuzelj
Jul 2, 2002 at 10:06 pm
Jul 5, 2002 at 12:47 am -
I have a file formatted like word1 int1 word2 int2 with 800,000+ lines like that. I want to load that file into a map m[word] = int and my original implementation was quite slow. So I have been ...
John Hunter
Jul 16, 2002 at 3:08 pm
Jul 18, 2002 at 9:45 am -
These people are dangerous, and will boot you if you do not agree to their narrow worldview. They are an affront to the python language--especially "dash".
Thinkit
Jul 7, 2002 at 5:06 pm
Jul 10, 2002 at 5:07 pm -
hello, i'm looking for a python script able to ask to a web search engine (google, altavista or another search engine) and/or able to parse a result page. any other helps / advices / urls are ...
Shagshag13
Jul 17, 2002 at 3:38 pm
Aug 2, 2002 at 5:39 pm -
Anyone know of a Python-callable HTML DOM parser? I mean a serious one that tries to understand the crappy malformed out there in the real-world Web, the way a browser does. If it can interpret ...
Paul Rubin
Jul 18, 2002 at 7:36 pm
Jul 20, 2002 at 1:36 am -
14
good books
what is a good book in python, If i can only afford to buy just one book?Percy Tambunan
Jul 23, 2002 at 6:13 am
Aug 18, 2002 at 6:21 pm -
Hi all, Can you recommend any good XML packages for Python? I looked at the PyXML but it seems to be lacking proper documentation (=unusable). Are you aware of any package that provides DOM/XPath for ...
M
Jul 30, 2002 at 10:42 am
Aug 5, 2002 at 2:28 pm -
Hi, I'm developing / already have some CGI scripts written in Python. Now I want to implement Session Management & User Authentication, which is a new area for me. I already have a simple session ID ...
Jan Felix Reuter
Jul 16, 2002 at 3:33 pm
Jul 25, 2002 at 5:33 pm -
Ok, I have the following data: data["A"] = [1,2,4,10,50] and I want to get: data["new"] = [?, 1, 2, 6, 40] That is, I want to get the successive differences into their proper place. I don't care what ...
Mark
Jul 23, 2002 at 2:40 pm
Jul 24, 2002 at 5:52 pm -
Ack! I've been trying to get into wxPython, but I'm finding the lack of documentation difficult. There's some, and I'm very grateful for everybody who's contributed it, but I'm somebody who really ...
Gabe Newcomb
Jul 18, 2002 at 9:19 pm
Jul 20, 2002 at 4:59 pm -
Is there a standard isA() function in Python? It should take two arguments, an instance and a class, and return true if the object is a member of the class or one of the class's ancestors. I know I ...
Roy Smith
Jul 13, 2002 at 9:00 pm
Jul 15, 2002 at 11:43 pm -
Greetings, I am trying to get a hang of the metaclass and some new features in v2.2. But, I am running into a problem or it is a limitation, I guess. I just need clarification. Here is the code, it ...
Holden Caulfield
Jul 3, 2002 at 9:17 pm
Jul 12, 2002 at 8:16 pm -
Hi folks, I downloaded and am using version 0.3.2 of the fantastic Pyrex extension language ( http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/ ) and am happily speeding up some crucial code using ...
Graham Fawcett
Jul 4, 2002 at 7:13 pm
Jul 10, 2002 at 8:34 pm
Group Overview
group | python-list |
categories | python |
discussions | 887 |
posts | 4,779 |
users | 928 |
website | python.org |
928 users for July 2002
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)