Search Discussions

797 discussions - 5,169 posts

  • behind using Java in major companies. Sure that Python, is used in some, but still Java is considered as a sure-job language. After being a python programmer for long time, I consider it painful to ...
    Sridhar RSridhar R
    Dec 30, 2004 at 4:58 pm
    Jan 9, 2005 at 4:01 am
  • That's easy. Define a hash function that doesn't use all the data in the object. class Foo: def __init__ (self, a, b, c): self.a = a self.b = b self.c = c def __hash__ (self): return (self.a + ...
    Roy SmithRoy Smith
    Dec 16, 2004 at 4:29 pm
    Dec 31, 2004 at 3:16 pm
  • I do find working with an interpreter easier than with a compiler. A _long_ time ago, I recall a boss telling me that I should write 5 lines of C a day and compile/debug them twice at most (since it ...
    Philippe C. MartinPhilippe C. Martin
    Dec 16, 2004 at 6:16 pm
    Jan 6, 2005 at 6:12 am
  • GvR has commented that he want to get rid of the lambda keyword for Python 3.0. Getting rid of lambda seems like a worthy goal, but I'd prefer to see it dropped in favour of a different syntax, ...
    Nick CoghlanNick Coghlan
    Dec 30, 2004 at 1:28 pm
    Jan 12, 2005 at 11:24 pm
  • I know this might not be the correct group to post this, but I thought I'd start here. A co-worker considers himself "old school" in that he hasn't seen the light of OOP.(It might be because he's in ...
    Dec 14, 2004 at 3:33 am
    Dec 31, 2004 at 12:16 pm
  • I am new to python; any insight on the following would be appreciated, even if it is the admonition to RTFM (as long as you can direct me to a relevant FM) Is there a standard approach to enumerated ...
    David WurmfeldDavid Wurmfeld
    Dec 19, 2004 at 12:04 pm
    Mar 15, 2005 at 9:20 pm
  • I use Python lambda quite a bit, and I don't understand the recent noise about problems with it, and its removal. I don't have a problem with lambdas. My personal gripe is this. I think the core ...
    Keith DartKeith Dart
    Dec 23, 2004 at 4:47 am
    Dec 28, 2004 at 9:50 pm
  • Hello, I thought about a new Python feature. Please tell me what you think about it. Say you want to write a base class with some unimplemented methods, that subclasses must implement (or maybe even ...
    Noam RaphaelNoam Raphael
    Dec 18, 2004 at 11:49 pm
    Jan 6, 2005 at 5:45 pm
  • I'm considering proposing to O'Reilly a 2nd edition of "Python in a Nutshell", that I'd write in 2005, essentially to cover Python 2.3 and 2.4 (the current 1st edition only covers Python up to 2.2). ...
    Alex MartelliAlex Martelli
    Dec 29, 2004 at 10:35 am
    Jan 18, 2005 at 9:21 pm
  • Adding Optional Static Typing to Python looks like a quite complex thing, but useful too: http://www.artima.com/weblogs/viewpost.jsp?thread�551 I have just a couple of notes: Boo ...
    Dec 23, 2004 at 9:49 am
    Jan 4, 2005 at 3:02 pm
  • I'll soon start development of a specialized small app and need to choose GUI for it. I have narrowed the choice to wxPython/PythonCard and QT/PyQT (buying commercial licenses is not a big problem, ...
    Dec 20, 2004 at 12:25 pm
    Dec 29, 2004 at 6:48 pm
  • Hey everybody, While I'm not absolutely positive, it looks like Python still doesn't have any official mascot or logo. Hence, here's something I came up with yesterday. Its by no means a final ...
    Dimitri TcaciucDimitri Tcaciuc
    Dec 12, 2004 at 8:54 pm
    Dec 17, 2004 at 5:55 pm
  • I am new to the Python language. How do I do something like this: I know that a = 3 y = "a" print eval(y) would give me a print out of 3 - but how do I do something to the effect of: eval(y) = 4 # ...
    It's meIt's me
    Dec 7, 2004 at 8:33 pm
    Dec 10, 2004 at 11:06 pm
  • Tuples are defined with regards to parentheses ()'s as everyone knows. This causes confusion for 1 item tuples since (5) can be interpreted as a tuple OR as the number 5 in a mathematical expression ...
    Dec 29, 2004 at 5:57 am
    Jan 6, 2005 at 10:11 am
  • Hi, I'm a newbie (oh no I can here you say.... another one...) How can I get Python to send emails using the default windows email client (eg outlook express)? I thought I could just do the following ...
    Dec 20, 2004 at 5:13 am
    Dec 27, 2004 at 1:23 pm
  • Here are some questions and suggestions of mine that I've collected in the last weeks on the language (please note that some (most?) of them are probably wrong/useless/silly, but I've seen that such ...
    Dec 29, 2004 at 2:23 am
    Jan 8, 2005 at 2:18 pm
  • Here is a question about list comprehensions [lc]. The question is dumb because I can do without [lc]; but I am posing the question because I am curious. This: ... for w in d: ... result.append(w) ...
    Will StuyvesantWill Stuyvesant
    Dec 13, 2004 at 8:51 pm
    Dec 27, 2004 at 8:10 am
  • I'm wondering why python still has limited lambda support. What's stopping the developers of python to support more lisp-like lambda function?
    Jason ZhengJason Zheng
    Dec 17, 2004 at 7:23 pm
    Dec 21, 2004 at 1:30 pm
  • I find that I use lambda functions mainly for callbacks to things like integration or root finding routines as follows. flow = integrate(lambda x: 2.0*pi * d(x)* v(x) * sin(a(x)),xBeg, xEnd) root = ...
    Charlie TaylorCharlie Taylor
    Dec 17, 2004 at 11:58 pm
    Dec 23, 2004 at 12:15 am
  • What IDE's do y'all recommend for Python? I'm using PythonWin atm, but I'd like something with more functionality. Chris
    Dec 14, 2004 at 4:36 pm
    Dec 30, 2004 at 2:51 am
  • Hi, I know that i can do readline() from a file object. However, how can I read till a specific seperator? for exmple, if my files are name profession id # name2 profession3 id2 I would like to read ...
    Dec 19, 2004 at 9:26 pm
    Jan 4, 2005 at 1:38 pm
  • I've done some Googling around on this and it seems like creating a here document is a bit tricky with Python. Trivial via triple-quoted strings if there's no need for variable interpolation but ...
    Jim HillJim Hill
    Dec 19, 2004 at 2:37 am
    Dec 22, 2004 at 7:38 pm
  • Hi, Is there a way to display how long a Win XP system has been up? Somewhat analogous to the *nix uptime command. Thanks, Esmail
    Esmail BonakdarianEsmail Bonakdarian
    Dec 11, 2004 at 9:56 pm
    Dec 14, 2004 at 10:51 am
  • Hello, Is there any technical description on internet of how python is designed? Or can somebody give a short description about this? I'm just curious. Thanks in advance, Limin
    Limin FuLimin Fu
    Dec 2, 2004 at 8:32 pm
    Dec 8, 2004 at 7:24 pm
  • Can someone explain to me why Python 2.4 on MS Windows has these backward compatibility problems? What am I missing? Why won't extensions compiled to run with 2.3 also work with 2.4? Why does it ...
    Dec 11, 2004 at 2:31 am
    Dec 15, 2004 at 8:49 pm
  • When I copy code from a source file into a Google Groups message, the indentation is messed up, making my Python code illegal and all my code ugly. Are there tricks to avoid this?
    Dec 31, 2004 at 6:03 pm
    Jan 10, 2005 at 2:00 pm
  • I thought it might be useful to put the recent lambda threads into perspective a bit. I was wondering what lambda gets used for in "real" code, so I grepped my Python Lib directory. Here are some of ...
    Steven BethardSteven Bethard
    Dec 31, 2004 at 6:53 am
    Jan 7, 2005 at 4:53 am
  • i am trying to remove an item 'e' from the list l but i keep getting IndexError. I know the size of the list l is changing in the for loop & its sort of trivial task but i found no other way than to ...
    Dec 22, 2004 at 7:41 pm
    Dec 27, 2004 at 11:23 am
  • PEP: XXX Title: A rational number module for Python Version: $Revision: 1.4 $ Last-Modified: $Date: 2003/09/22 04:51:50 $ Author: Mike Meyer <mwm at mired.org Status: Draft Type: Staqndards ...
    Mike MeyerMike Meyer
    Dec 18, 2004 at 3:29 am
    Dec 23, 2004 at 7:17 am
  • Can anyone explain the behaviour of python when running this script? ... bits.append(n) ... print bits ... [1] [1, 2] It's the same in python 1.5, 2.3 and 2.4 so it's not a bug. But I expected the ...
    Brian BirdBrian Bird
    Dec 21, 2004 at 9:45 am
    Jan 5, 2005 at 9:21 am
  • This version includes the input from various and sundry people. Thanks to everyone who contributed. <mike PEP: XXX Title: A rational number module for Python Version: $Revision: 1.4 $ Last-Modified: ...
    Mike MeyerMike Meyer
    Dec 26, 2004 at 4:18 am
    Dec 28, 2004 at 4:38 pm
  • So I end up writing code like this a fair bit: map = {} for key, value in sequence: map.setdefault(key, []).append(value) This code basically constructs a one-to-many mapping -- each value that a key ...
    Steven BethardSteven Bethard
    Dec 17, 2004 at 9:14 pm
    Dec 22, 2004 at 3:21 pm
  • Anyone know which is faster? I'm a PHP programmer but considering getting into Python ... did searches on Google but didn't turn much up on this. Thanks! Stephen
    Stephen MayerStephen Mayer
    Dec 22, 2004 at 10:03 pm
    Sep 25, 2012 at 10:41 am
  • Hi, I'm trying to make a windows dll reachable from a python script .. and I'm encountering troubles during link step .. I use "lcc" to compile and link I use python 2.3 under win XP Here's the ...
    Jean-Baptiste PERINJean-Baptiste PERIN
    Dec 20, 2004 at 2:23 pm
    Dec 21, 2004 at 8:03 pm
  • Is it possible to write a file open, then read program in C and then call the C program from a Python script like this: for root, files, dirs in os.walk(path) for f in files: try: EXECUTE_C_PROGRAM ...
    Brad TilleyBrad Tilley
    Dec 9, 2004 at 6:01 pm
    Dec 13, 2004 at 2:30 am
  • Hi all. Look at this snippet of code. ['a', 'b', 'c', 'd'] 'a' It prints the value 'a'. Fine so far :-) l[0] --- 'a' . l[0][0]--- 'a'[0] -- 'a'. l[0][0][0] --- 'a'[0][0] -- 'a'[0] -- 'a' Now why ...
    Dec 23, 2004 at 2:15 pm
    Dec 24, 2004 at 11:26 pm
  • This must be the silliest question ever: What about user input in Python? (like stdin) Where can I find it? I can't find any references to it in the documentation. Amir
    Amir DekelAmir Dekel
    Dec 17, 2004 at 4:40 pm
    Dec 20, 2004 at 6:51 pm
  • I read some discussion on this list before about how sometimes it's useful to create a generic object class that you can just stick attributes to. I was reading the PyPanel source (not written by me) ...
    Dec 12, 2004 at 10:57 am
    Dec 19, 2004 at 5:06 am
  • Hi all. I have a list that looks like [['N', 'F'], ['E'], ['D']] I try to make it flat one: ['N', 'F', 'E', 'D'] How can I archieve such an effect with list comprehension? Two cycles did the job, but ...
    Timothy BabytchTimothy Babytch
    Dec 6, 2004 at 9:26 am
    Dec 9, 2004 at 6:46 am
  • Greetings all. I will have about 2 weeks to pursue some Python related activities and would like to learn more about the graphical end of things. In that vein I would like some opinions regarding ...
    Esmail BonakdarianEsmail Bonakdarian
    Dec 28, 2004 at 1:54 am
    Dec 30, 2004 at 1:58 pm
  • Hi, What is the best book covering Python? Michael From d.lapasset Sun Dec 12 21:54:10 2004 From: d.lapasset (houbahop) Date: Sun, 12 Dec 2004 20:54:10 GMT Subject: for loop References: ...
    Michael McGarryMichael McGarry
    Dec 12, 2004 at 8:35 pm
    Dec 17, 2004 at 3:24 am
  • Hi, I am just starting to use Python. Does Python have all the regular expression features of Perl? Is Python missing any features available in Perl? Thanks, Michael
    Michael McGarryMichael McGarry
    Dec 11, 2004 at 4:48 pm
    Dec 16, 2004 at 5:31 am
  • Hi, suppose I am reading lines from a file or stdin. I want to just "peek" in to the next line, and if it starts with a special character I want to break out of a for loop, other wise I want to do ...
    Dec 13, 2004 at 7:09 pm
    Dec 14, 2004 at 4:26 pm
  • Hi all, I was wondering if someone can help me understand why __getslice__ has been deprecated, yet it remains necessary to implement it for simple slices (i:j), while __getitem__ gets called for ...
    Fernando PerezFernando Perez
    Dec 9, 2004 at 9:18 pm
    Dec 10, 2004 at 9:42 pm
  • QOTW: "I found the discussion of unicode, in any python book I have, insufficient." -- Thomas Heller "If you develop on a Mac, ... Objective-C could come in handy. . . . PyObjC makes mixing the two ...
    Cameron LairdCameron Laird
    Dec 30, 2004 at 12:47 pm
    Jan 5, 2005 at 10:09 am
  • Hi, i am so use to perl's regular expression that i find it hard to memorize the functions in python; so i would appreciate if people can tell me some equivalents. 1) In perl: $line = "The food is ...
    Dec 22, 2004 at 5:12 am
    Dec 24, 2004 at 6:46 am
  • I have a very strange bug. A thread in a .pyc stops dead. This program has many threads and queues and has worked great for months. One thread listens for UDP messages from other programs, and puts ...
    Dec 10, 2004 at 4:34 pm
    Dec 15, 2004 at 8:28 am
  • Yeah. I'm no Python guru, but I have a pretty good idea. Your intuition is correct - you're killing a local copy. Functions (and methods) have their own namespace. Variables declared within a ...
    Erik JohnsonErik Johnson
    Dec 11, 2004 at 3:17 am
    Dec 13, 2004 at 7:03 pm
  • Just started thinking about learning python. Is there any place where I can get some free examples, especially for following kind of problem ( it must be trivial for those using python) I have files ...
    Dec 15, 2004 at 3:55 pm
    Dec 17, 2004 at 4:08 pm
  • Helpful subjects help.... commands = [c.lower() for c in commands] -- Regards, Diez B. Roggisch
    Diez B. RoggischDiez B. Roggisch
    Dec 16, 2004 at 3:55 pm
    Dec 17, 2004 at 2:13 pm
Group Navigation
period‹ prev | Dec 2004 | next ›
Group Overview
grouppython-list @

953 users for December 2004

Fredrik Lundh: 234 posts Steven Bethard: 203 posts Steve Holden: 167 posts Peter Hansen: 123 posts Nick Coghlan: 121 posts Mike Meyer: 104 posts Alex Martelli: 92 posts Terry Reedy: 63 posts Michael Foord: 54 posts Jeff Shannon: 52 posts Ishwor Gurung: 51 posts Scott David Daniels: 51 posts It's me: 49 posts Diez B. Roggisch: 48 posts Mefjr75: 48 posts Doug Holton: 47 posts Jp Calderone: 46 posts Bengt Richter: 44 posts Whamoo: 42 posts Adam DePrince: 40 posts
show more