Search Discussions

887 discussions - 4,779 posts

  • 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. GreenBritt 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 wilsonAnton wilson
    Jul 29, 2002 at 11:20 pm
    Aug 9, 2002 at 6:15 pm
  • 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 OlsenJesper 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 LeBlancDavid 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 = ...
    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 JensenThomas 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 ...
    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 RubinPaul 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 finchCurt 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 /BladermanTim 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 &#8220;Sparse is better than ...
    Miki TebekaMiki 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 McEahernMark 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.
    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. ...
    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 : ...
    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 VerbeureTom 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 DavisJeff 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éeGuyon 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 BorchaevKerim Borchaev
    Jul 1, 2002 at 1:29 pm
    Jul 10, 2002 at 8:01 pm
  • 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 "
    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 RubinPaul 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 DaneliukTim 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 LeBlancDavid 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 finchCurt 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 LinkweilerIngo Linkweiler
    Jul 3, 2002 at 7:08 pm
    Jul 15, 2002 at 9:47 am
  • 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 VedovelliStefano 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 SmithRoy 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'ConnorKevin 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 CinegeDave 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 ...
    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 BeckerRobin 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 LaytonJeff 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, ...
    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 ...
    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. ReamEdward 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: ...
    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. FletcherMike 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 KuzeljRobert 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 HunterJohn 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".
    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 ...
    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 RubinPaul Rubin
    Jul 18, 2002 at 7:36 pm
    Jul 20, 2002 at 1:36 am
  • what is a good book in python, If i can only afford to buy just one book?
    Percy TambunanPercy 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 ...
    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 ReuterJan 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 ...
    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 NewcombGabe 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 SmithRoy 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 CaulfieldHolden 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 FawcettGraham Fawcett
    Jul 4, 2002 at 7:13 pm
    Jul 10, 2002 at 8:34 pm
Group Navigation
period‹ prev | Jul 2002 | next ›
Group Overview
grouppython-list @

928 users for July 2002

Alex Martelli: 236 posts Gerhard Häring: 111 posts Fredrik Lundh: 106 posts Chris Liechti: 97 posts Paul Rubin: 87 posts Peter Hansen: 76 posts David LeBlanc: 73 posts Tim Peters: 70 posts Jonathan Hogg: 64 posts Mark McEahern: 61 posts Michael Hudson: 61 posts Shagshag13: 58 posts Bo M. Maryniuck: 51 posts Bengt Richter: 49 posts Martin v. Loewis: 48 posts Tim Rowe: 47 posts Sean 'Shaleh' Perry: 45 posts Steve Holden: 45 posts Emile van Sebille: 44 posts John Hunter: 44 posts
show more