Search Discussions

754 discussions - 4,322 posts

  • Hi I don't know much about Python, but I looked at this comparison between Python and Common Lisp ( http://www.norvig.com/python-lisp.html ), and I couldn't help but wonder why Python is popular, ...
    Nov 8, 2002 at 12:54 pm
    Dec 16, 2002 at 2:52 pm
  • Hi, this morning it struck me that it would be nice to have Parrot not only run Perl 6 and similar byte code, but that any of the common interpreted languages be compiled to this same byte code. Then ...
    Daniel PfeifferDaniel Pfeiffer
    Nov 5, 2002 at 9:10 pm
    Nov 15, 2002 at 10:05 pm
  • When I started learning Python one of the things that surprised me was that you couldn't do assignments inside the if clause, e.g.: if myvar = someFunction(): My question is, what is the rationale ...
    André NæssAndré Næss
    Nov 24, 2002 at 1:59 pm
    Dec 3, 2002 at 4:42 pm
  • Dear Python Community, I use Python in several projects. One of the main benefits of doing so is that my programmers can quickly learn Python and get productive. Python is a great language to read. ...
    Nov 14, 2002 at 3:38 pm
    Nov 20, 2002 at 12:55 am
  • Hello, I just read Guido's "python regret's" slide's from OSCON, http://www.google.com/search?hl=en&ie=ISO-8859-1&q=OSCON+%22python+regrets%22 and one thing i can't work out is, he is saying we can ...
    Simon BurtonSimon Burton
    Nov 24, 2002 at 1:35 am
    Nov 30, 2002 at 2:45 pm
  • Greetings all, Any help in finding a university level textbook on the subject of "Scripting languages" I am mainly looking for a book that covers Perl and Python only as the 2 main scripting ...
    Nov 1, 2002 at 10:53 pm
    Nov 20, 2002 at 12:30 pm
  • Kind of like we have multiple assignments in a line (oldx,oldy=x,y), what do you think of the ability to have multiple tests in an if statement with only one == or =. This would mean that lines like ...
    Richard DillinghamRichard Dillingham
    Nov 18, 2002 at 9:49 pm
    Nov 26, 2002 at 8:45 pm
  • Hi guys, I am a python newbie, and I am sure there is an easy answer but, Is there any equivalent to C's static variables in Python? If not, how can you have variables inside a function, that ...
    Nov 19, 2002 at 4:18 am
    Nov 28, 2002 at 7:55 am
  • An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/python-list/attachments/20021127/adccd24a/attachment.htm
    Malik martinMalik martin
    Nov 27, 2002 at 10:27 am
    Dec 10, 2002 at 7:43 pm
  • If I want to write an empty class, I do this: class foo: pass If I want to write an empty function, I write this: def foo(): pass -or- def foo(): return If I want to write an empty generator, I write ...
    Cameron HornCameron Horn
    Nov 13, 2002 at 8:37 pm
    Nov 21, 2002 at 6:06 pm
  • My Perl-addicted friend shows me that he can find fibanicci series in a single line of code. perl -le '$b=1; print $a+=$b while print $b+=$a' can python do something like this?
    Nov 11, 2002 at 3:20 pm
    Nov 12, 2002 at 7:02 pm
  • Hi all, I quite often find myself doing things like: xMax = None for -whatever-: -big calculation leading to a value of x- if xMax is None: xMax = x else: xMax = max(x, xMax) or the same kind of ...
    Eric BrunelEric Brunel
    Nov 22, 2002 at 2:25 pm
    Nov 27, 2002 at 2:58 am
  • My jonpy modules are producing the following warning when compiled under Python 2.3 (current cvs): FutureWarning: hex/oct constants sys.maxint will return positive values in Python 2.4 and up The ...
    Jon RibbensJon Ribbens
    Nov 6, 2002 at 6:57 pm
    Nov 17, 2002 at 3:07 pm
  • So I've been having a friendly argument for a long time with a friend of mine who's a real Java booster. The current iteration was sparked by a discussion of extreme programming, where along the way ...
    Nov 2, 2002 at 4:06 am
    Nov 9, 2002 at 3:12 pm
  • I'm trying to figure out how WaitCommEvent() works in Python, and it looks like there's a problem when it's used in overlapped mode. My understanding is that (in C) you: 1) Call WaitCommEvent() and ...
    Grant EdwardsGrant Edwards
    Nov 19, 2002 at 8:56 pm
    Nov 25, 2002 at 11:31 am
  • Hi all, For some time I am thinking about what firms or programmers can afford to develop open/free software. I myself have been using free programming languages ( Perl and now Python) for about 4 ...
    Nov 29, 2002 at 2:12 pm
    Dec 25, 2002 at 12:06 am
  • Hi Can any one please explain how to write a Inline Function in Python? Is Inline Functions available in python? Thank you, regards b.arivazhagan
    Nov 14, 2002 at 5:14 am
    Nov 25, 2002 at 1:32 pm
  • Here's a toy example. I just want to make a function that efficiently uses (here just returns) something from a module. Compare: ... from math import pi ... return pi ... 0 SET_LINENO 1 3 SET_LINENO ...
    Bengt RichterBengt Richter
    Nov 12, 2002 at 6:49 pm
    Nov 29, 2002 at 1:05 pm
  • Hi: I'm confused by the following behavior of new-style classes and operators: class MyInt(object): def __init__(self, val): self.val = val def __getattr__(self, attr): return getattr(self.val, attr) ...
    Jan DecaluweJan Decaluwe
    Nov 25, 2002 at 12:21 pm
    Dec 2, 2002 at 3:19 pm
  • Python Dicktatorshit. ?Connect? Looking up host "irc.debian.org"... ?Connect? Attempting connection to host "irc.freenode.net" ( on port 6667... ?Connect? Connected. Now doing login... ...
    Timothy RueTimothy Rue
    Nov 23, 2002 at 3:58 am
    Nov 27, 2002 at 2:30 am
  • That doesn't reveal anything interesting. For example, the gnu.org site might be a lot faster than the one that you were testing, you might have been experiencing transient network problems when ...
    Brian QuinlanBrian Quinlan
    Nov 20, 2002 at 12:59 am
    Nov 24, 2002 at 5:27 am
  • This note is mostly for entertainment purposes. (1, 2, 3) [1, 2, 3, 4, 5, 6] Yes, I understand why this happens. No, I'm not proposing to change it. I do think that people teaching Python should be ...
    Andrew KoenigAndrew Koenig
    Nov 12, 2002 at 5:39 pm
    Nov 13, 2002 at 1:52 pm
  • How does one match multiple regexs to a single line as in a compiler in Python? I'm used to doing the following in Perl, for example: $line = < ; if ( $line ~= /regex1/ ) {...} elsif ( $line ~= ...
    Alexander SendzimirAlexander Sendzimir
    Nov 12, 2002 at 8:04 pm
    Nov 22, 2002 at 9:51 am
  • If one wishes use an OSI-approved license for one's own code, there are many to choose from, two of which are GPL and the PSF license. If one chooses GPL, there are explicit instructions at the Gnu ...
    Donnal WalterDonnal Walter
    Nov 5, 2002 at 9:01 pm
    Nov 10, 2002 at 4:28 am
  • sorry guys/girls, but i had to vent this :) i am using wxPython at the moment as my python gui. Coming from a nice IDE like Delphi it's really frustrating to get a nice layout together. I tried some ...
    Nov 13, 2002 at 9:21 am
    Nov 18, 2002 at 10:04 pm
  • Greetings! I am the lead developer in a upcoming game company that will start work on a new game at the beginning of 2003. We are (like everyone else in the gaming industry right now) searching for a ...
    Nov 23, 2002 at 3:39 pm
    Nov 27, 2002 at 7:28 am
  • What's the most efficient way to merge two lists inside a single one with the resulting list having only one instance of each element (ie not having two elements with the same value)? The order of ...
    Pierre RouleauPierre Rouleau
    Nov 17, 2002 at 3:44 am
    Nov 18, 2002 at 11:19 am
  • I'm having a little play with python, just to try it out; and one thing that I find I miss from other languages is something like lisp's if: (if x y z) which returns y if x is true and z otherwise. I ...
    Paul RudinPaul Rudin
    Nov 11, 2002 at 9:38 am
    Nov 12, 2002 at 7:49 am
  • I've read the books, tried some code, and I still just don't get it. If some kind soul can explain the (high level) process, I can figure out the details, I think. What I want to do is call (or ...
    Nov 9, 2002 at 3:48 am
    Nov 11, 2002 at 6:57 pm
  • I'm trying to understand the possible type errors for ** The language reference states that The power operator has the same semantics as the built-in pow() function, when called with two arguments: ...
    Anton wilsonAnton wilson
    Nov 5, 2002 at 9:02 pm
    Nov 8, 2002 at 10:56 am
  • The global statement as in def f(x): global y ... is a directive to the parser. Internally the parser must keep a list of the "locally-globalled" names. Yes, you guessed right, out of pure curiosity: ...
    Hung Jung LuHung Jung Lu
    Nov 27, 2002 at 1:26 pm
    Nov 29, 2002 at 7:33 pm
  • I had already posted this under a different subject, this is a more detailed description of the problem (and my question): When porting an extension from Windows to Linux, I got crashes when C code ...
    Thomas HellerThomas Heller
    Nov 20, 2002 at 7:56 am
    Nov 23, 2002 at 6:29 pm
  • In a partially successful attempt at wrapping all methods in a module I used the appended code. It does add a traceback wrapper to each method, but the tracebacks don't continue back very far ie I ...
    Robin BeckerRobin Becker
    Nov 15, 2002 at 11:53 am
    Nov 18, 2002 at 3:53 pm
  • Hi, If i am to develop a full fledge commercial application using Python : a. Can i compile my python source into binary ? I have read about py2exe for windows. Is there one for Linux ? b. Can I ...
    Nov 1, 2002 at 8:35 am
    Nov 3, 2002 at 3:03 pm
  • Hi, I'm quite new to Python. So far I find it to be easy to learn and simple to program. However, one thing that I missed, especially someone coming from C language, is 'struct'. It seems that when ...
    Alfredo P. RicafortAlfredo P. Ricafort
    Nov 29, 2002 at 11:56 am
    Dec 2, 2002 at 9:33 am
  • Is there a way to find out what arguments can be passed to a raised exception of specific class? Python has a set of built-in exceptions (as described in ...
    Pierre RouleauPierre Rouleau
    Nov 30, 2002 at 5:32 pm
    Dec 1, 2002 at 8:50 pm
  • Could someone provide me an HTML email marketing (mailing list) script that allow me to capture the prospects' email list from MySQL and send HTML email through Windows 2000, IIS (Internet ...
    Terence NgTerence Ng
    Nov 12, 2002 at 3:41 am
    Nov 15, 2002 at 6:04 am
  • Suggested PEP: Treat { and } when encountered at the end of a statement like this: When you see a {, generate an error if the next statement is not indented more than the previous statement. When you ...
    Russell NelsonRussell Nelson
    Nov 10, 2002 at 6:34 am
    Nov 14, 2002 at 11:17 pm
  • I want to extract the first part, i.e. '(a*(b+c*(2-x))+d)'. Now if I use a greedy regular expression I obtain to much, the full expression: '(a*(b+c*(2-x))+d)+f(s1)' On the other hand, if I use a ...
    Michele SimionatoMichele Simionato
    Nov 4, 2002 at 8:24 pm
    Nov 6, 2002 at 2:59 pm
  • In python I can write: a, b = i, j but the following is not legal: a, b += i, j Is there a reason that allowing this would be bad? Why does Python forbid this? Thanks, Steven Rumbalski
    Steven RumbalskiSteven Rumbalski
    Nov 26, 2002 at 8:54 pm
    Nov 27, 2002 at 7:22 pm
  • I recently announced ctypes, see http://starship.python.net/crew/theller/ctypes.html I've got some enthusiastic responses, and also some requests to port this to other systems. So I'm currently ...
    Thomas HellerThomas Heller
    Nov 19, 2002 at 7:28 pm
    Nov 21, 2002 at 9:25 pm
  • If you were writing a program aking about peoples favourite flavour of ice cream and you input the number of votes for 5 flavours, how do you get your program to display the most popular (the one ...
    Nov 16, 2002 at 10:12 am
    Nov 20, 2002 at 3:54 pm
  • I have been using Python for some pretty basic CGI scripts using the cgi module and the like on a simple http server running over the CGIHTTPServer. I am now wondering if it would be possible to ...
    Pierre RouleauPierre Rouleau
    Nov 27, 2002 at 4:05 am
    Dec 1, 2002 at 12:03 pm
  • I have created a quaternion class which I am using for rotations in OpenGL. Usage goes something like this: q = Quaternion(zRot, 0.0, 0.0, 1.0) glMultMatrixf(q.matrix) Does anyone have any idea how I ...
    Simon Wittber (Maptek)Simon Wittber (Maptek)
    Nov 12, 2002 at 7:44 am
    Nov 13, 2002 at 1:03 am
  • Well I've been tinkering with pyqt for a few days now. I must say it is excellent. Developing a gui takes next to no time! And I love the signal/slot mechanism. Piec of cake!! Rog
    Rob HallRob Hall
    Nov 3, 2002 at 4:39 pm
    Nov 6, 2002 at 9:37 pm
  • Under 2.1 I used a version of the SimpleXMLRPCServer module that contained support for intermittent XMLRCPC via a class called CGIXMLRPCRequestHandler. Under 2.2 it seems that SimpleXMLRPCServer has ...
    Robin BeckerRobin Becker
    Nov 4, 2002 at 11:01 am
    Nov 4, 2002 at 10:30 pm
  • I am considering writing a little program to control the amount of time a certain user is allowed to access a Linux system i.e. 10 minutes, 1 hour, etc. I was wondering if there might be any ...
    Nov 2, 2002 at 4:09 pm
    Nov 11, 2002 at 9:45 pm
  • Hi, I have a custom sequence-class (actually a proxy for a native type) and would like to use this just like a normal list. This is mostly working just fine by defining __getitem__ et.al., but I ...
    Ronald OussorenRonald Oussoren
    Nov 2, 2002 at 4:15 pm
    Nov 6, 2002 at 6:38 am
  • Hi, I want to put each line off a logfile in a different class. But I cant seem to, dynamicly, create new classes. I am having problems using variables when creating new classes. class TEST: pass x=0 ...
    Nov 3, 2002 at 4:44 pm
    Nov 4, 2002 at 7:13 pm
  • I'm wondering if anybody knows of an encryption module which allows a client/server to set up a SSH type connection. Eg. the server pushes over a static publick key and an hourly generated key, the ...
    Paul NilssonPaul Nilsson
    Nov 20, 2002 at 5:55 pm
    Nov 25, 2002 at 11:24 pm
Group Navigation
period‹ prev | Nov 2002 | next ›
Group Overview
grouppython-list @

899 users for November 2002

Alex Martelli: 143 posts Bengt Richter: 125 posts Erik Max Francis: 120 posts Michael Hudson: 91 posts Martin v. Löwis: 83 posts Dennis Lee Bieber: 69 posts Terry Reedy: 64 posts Grant Edwards: 55 posts John Hunter: 46 posts Greg Ewing: 45 posts Robin Munn: 45 posts Anton Vredegoor: 39 posts Cameron Laird: 39 posts Fernando Pérez: 39 posts Pascal Costanza: 39 posts Robin Becker: 39 posts Sismex01: 39 posts Martin Maney: 36 posts Holger krekel: 35 posts Skip Montanaro: 35 posts
show more