FAQ

Search Discussions

721 discussions - 4,401 posts

  • How do you compare Python to Lisp? What specific advantages do you think that one has over the other? Note I'm not a Python person and I have no axes to grind here. This is just a question for my ...
    Mark TarverMark Tarver
    Dec 8, 2006 at 11:07 am
    Mar 15, 2007 at 8:10 pm
  • Every Python programmer gets this message occasionally: IndexError: list index out of range The message tells you where the error occurred, but it doesn't tell you what the range and the offending ...
    RussRuss
    Dec 4, 2006 at 12:38 am
    Dec 8, 2006 at 11:20 am
  • Why doesn't the tuple type have an index method? It seems such a bizarre restriction that there must be some reason for it. Yes, I know it's a fairly rare requirement. Regards, Nick Maclaren.
    Nick MaclarenNick Maclaren
    Dec 14, 2006 at 11:24 am
    Dec 22, 2006 at 4:57 am
  • Hello, I've always been using the has_key() method to test if a dictionary contains a certain key. Recently I tried the same using 'in', e.g. d = { ... } if k in d: ... and found that it seems to ...
    Paul MelisPaul Melis
    Dec 6, 2006 at 12:17 pm
    Dec 15, 2006 at 5:55 pm
  • Hi, I have a python script on a unix system that runs fine. I have a python script on a windows system that runs fine. Both use tabs to indent sections of the code. I now want to run them on the same ...
    BenBen
    Dec 27, 2006 at 6:12 pm
    Jan 26, 2007 at 5:06 pm
  • I've installed several different versions of Python across several different versions of MS Windows, and not a single time was the Python directory or the Scripts subdirectory added to the PATH ...
    Ben SizerBen Sizer
    Dec 25, 2006 at 1:16 am
    Jan 4, 2007 at 8:09 pm
  • I would like to spark the discussion about the following syntax problem I encounter. THE PROBLEM I have a lot times the following code: for x in [-2, -1, 0, 1, 2, 3, 4]: if x 0: ... more code... It ...
    AtAt
    Dec 13, 2006 at 2:56 pm
    Dec 16, 2006 at 4:00 pm
  • I come from a background of Java and C# where it is common practise to have one class per file in the file/project structure. As I have understood it, it is more common practice to have many classes ...
    Matias JanssonMatias Jansson
    Dec 12, 2006 at 8:29 am
    Dec 25, 2006 at 6:40 pm
  • When getting data from a database using the dbapi and an SQL query, how do you in general round trip the data? Especially date-time? An SQL datetime column translates nicely into a Python datetime ...
    DyorkDyork
    Dec 15, 2006 at 10:44 am
    Dec 18, 2006 at 5:00 pm
  • I have a program wherein I want one behavior when a file is set as executable and a different behavior if it is not. Is there a simple way to determine whether a given named file is executable that ...
    Tim DaneliukTim Daneliuk
    Dec 14, 2006 at 9:51 pm
    Dec 22, 2006 at 4:44 am
  • Or simply put parentheses around the tuple on the left, and use the ending parenthesis to get to the last line: (top, ip1, ip2, ip3, ip4, messageCounter, ackRequired, dataType, utc1, utc2, utc3, ...
    John RothJohn Roth
    Dec 7, 2006 at 3:20 pm
    Dec 8, 2006 at 9:57 am
  • hi All, instead of questions, my first success story: I converted my first MatLab algorithm into Python (using SciPy), and it not only works perfectly, but also runs much faster: MatLab: 14 msec ...
    Stef MientkiStef Mientki
    Dec 29, 2006 at 10:14 pm
    Jan 1, 2007 at 6:56 pm
  • Can someone recommend me a good API for writing a sexy looking (Rich UI like WinForms) shrink wrap application My requirement is that the application needs to look as good on Windows as on the Apple ...
    The Night BloggerThe Night Blogger
    Dec 16, 2006 at 8:22 pm
    Dec 21, 2006 at 1:48 pm
  • I'm not sure if this has been done before, but I couldn't easily find any prior work on Google, so here I present a simple decorator for documenting and verifying the type of function arguments. ...
    ChrisChris
    Dec 21, 2006 at 8:49 pm
    Dec 23, 2006 at 1:38 pm
  • Hello, I have a couple of classes where I teach introductory programming using Python. What I would love to have is for the students to go through a lot of very small programs, to learn the basic ...
    Brian BlaisBrian Blais
    Dec 14, 2006 at 5:27 pm
    Dec 20, 2006 at 11:38 am
  • It looks to me like python hosting, aka webfaction, have shut down access to all projects hosted under their free hosting for open source python projects program. Including mine (nose). With no ...
    Jpellerin+NoseJpellerin+Nose
    Dec 19, 2006 at 3:21 am
    Dec 23, 2006 at 12:59 am
  • Hi everyone- I've been away from coding for a while (I turned into a professional photographer)... So now I've taken up a project involving working with EXIF and XMP metadata in image files (mainly ...
    BrianBrian
    Dec 20, 2006 at 5:36 am
    Dec 24, 2006 at 5:31 pm
  • Hi Guys, I've been using the following IDE, "Pythonwin - Python IDE and GUI Framework for Windows. Copyright 1994-2001 Mark Hammond " With respect to my work, I had created my own modules (.py files) ...
    MohanMohan
    Dec 11, 2006 at 10:56 am
    Dec 15, 2006 at 10:03 am
  • Hi, It seems to me that measuring productivity in a programming language must take into account available tools and libraries. Eclipse for example provides such an amazing IDE for java that it is no ...
    Amir MichailAmir Michail
    Dec 1, 2006 at 9:24 am
    Dec 12, 2006 at 6:22 pm
  • Hi, while writing my last program I came upon the problem of accessing a common local variable by a bunch of functions. I wanted to have a function which would, depending on some argument, return ...
    Karl KofnarsonKarl Kofnarson
    Dec 1, 2006 at 9:33 pm
    Dec 12, 2006 at 2:14 pm
  • Is there a module that allows me to find errors that occur due to copy by reference? I am looking for something like the following: Traceback (most recent call last): File "<stdin ", line 1, in ? ...
    Niels L EllegaardNiels L Ellegaard
    Dec 9, 2006 at 5:22 am
    Dec 11, 2006 at 5:17 pm
  • Hi, The function len() is not mentioned in the Python 3000 PEPs. I suggest that at least lists, tupples, sets, dictionaries and strings get a len() method. I think the len function can stay, removing ...
    Thomas GuettlerThomas Guettler
    Dec 6, 2006 at 12:16 pm
    Dec 10, 2006 at 1:40 pm
  • I am sure this is a basic math issue, but is there a better way to ensure an int variable is divisible by 4 than by doing the following; x = 111 x = (x /4) * 4 Just seems a bit clunky to me.
    GeskerrettGeskerrett
    Dec 4, 2006 at 5:10 pm
    Dec 6, 2006 at 4:55 am
  • I'm trying to get data through my serial port from a CMUcam. This gizmo tracks a color and returns a packet of data. The packet has nine data points (well, really eight since the first point is just ...
    Lone WolfLone Wolf
    Dec 3, 2006 at 4:02 am
    Dec 4, 2006 at 3:48 pm
  • (Note: PEPs in the 3xxx number range are intended for Python 3000) PEP: 3107 Title: Function Annotations Version: $Revision: 53169 $ Last-Modified: $Date: 2006-12-27 20:59:16 -0800 (Wed, 27 Dec 2006) ...
    Tony LowndsTony Lownds
    Dec 29, 2006 at 11:00 pm
    Jan 1, 2007 at 11:01 pm
  • Hi, When I use dir() I don't see the underscore items. Is there anything that will show all the private vars and functions? johnf
    JohnfJohnf
    Dec 29, 2006 at 11:35 am
    Jan 1, 2007 at 5:50 am
  • The documentation for dedent says, "Remove any whitespace than can be uniformly removed from the left of every line in `text`", yet I'm finding that it's also modifying the '\t' characters, which is ...
    Tom PlunketTom Plunket
    Dec 16, 2006 at 8:26 pm
    Dec 30, 2006 at 5:55 am
  • Hi, I am writing a code that needs to iterate over 3 lists at the same time, i.e something like this: for x1 in l1: for x2 in l2: for x3 in l3: print "do something with", x1, x2, x3 What I need to do ...
    Gal DiskinGal Diskin
    Dec 13, 2006 at 1:47 pm
    Dec 27, 2006 at 7:45 pm
  • Is there a difference between <code class HelloWorld: def index(self): index.exposed = True return "Hello world!" </code and <code class HelloWorld: def index(self): self.exposed = True return "Hello ...
    Gert CuykensGert Cuykens
    Dec 18, 2006 at 7:40 pm
    Dec 22, 2006 at 4:12 pm
  • Comparing file system paths as strings is very brittle. Is there a better way to test if two paths point to the same file or directory (and that will work across platforms?) Thanks, -Sandra
    Sandra-24Sandra-24
    Dec 17, 2006 at 1:02 am
    Dec 17, 2006 at 5:14 pm
  • This month there was/is a 1000+ long thread called: "merits of Lisp vs Python" In comp.lang.lisp. If you followed even parts of the thread, AND previously used only one of the languages AND (and this ...
    Paddy3118Paddy3118
    Dec 28, 2006 at 4:51 pm
    Jan 6, 2007 at 4:12 pm
  • Hi, I'm writing a program which imports an external module writing in C and calls a function provided by the module to do my job. But the method produces a lot of output to the stdout, and this ...
    Fdu XiaojfFdu Xiaojf
    Dec 26, 2006 at 7:49 am
    Dec 30, 2006 at 5:47 pm
  • I don't know whether anyone can help, but I have an odd problem. I have a PSP (Spyce) script that makes many calls to populate a database. They all work without any problem except for one statement. ...
    BenBen
    Dec 29, 2006 at 11:09 am
    Dec 30, 2006 at 8:02 am
  • I'm looking for a module to do fuzzy comparison of strings. I have 2 item master files which are supposed to be identical, but they have thousands of records where the item numbers don't match in ...
    Steve BergmanSteve Bergman
    Dec 26, 2006 at 6:05 pm
    Dec 28, 2006 at 3:28 pm
  • I seem to always have hard time understaing how this regular expression works, especially how on earth do people bring it up as part of computer programming language. Natural language processing ...
    Asper FanerAsper Faner
    Dec 19, 2006 at 4:25 am
    Dec 25, 2006 at 11:33 pm
  • hi, how can i skip printing the last line using loops (for /while) eg for line in open("file): print line. I want to skip printing last line of the file.thanks
    Eight02645999Eight02645999
    Dec 15, 2006 at 6:47 am
    Dec 18, 2006 at 8:42 pm
  • No matter what I do I cant get the following code to do what I expect. I hadn't used subprocess t o read and write to pipes of a still-running app, and I just can't seem to get it right. What gives? ...
    Calvin SpealmanCalvin Spealman
    Dec 5, 2006 at 7:10 pm
    Dec 9, 2006 at 7:53 am
  • Hi. One of the things I'd like to do with Python is find a way to consistently implement Smalltalk's "loose methods". This is a capability whereby additional methods can be added dynamically to ...
    Jan Theodore GalkowskiJan Theodore Galkowski
    Dec 27, 2006 at 3:49 am
    Jan 26, 2007 at 3:53 pm
  • Hi all, While working on support at work, I have been picking away at Python - because I think it could be a valuable scripting tool for building utilities from. I have been reading the python.org ...
    Jonathan.beckettJonathan.beckett
    Dec 28, 2006 at 4:40 pm
    Jan 2, 2007 at 8:13 pm
  • 1. first of all, what is the English jargon (Optimize? But I think this is not a very good keyword :( )for this problem? So I can use it to search on the internet 2. is there any free/open lib for ...
    OysterOyster
    Dec 24, 2006 at 4:39 am
    Dec 30, 2006 at 4:24 pm
  • Hi all, I am fairly new to python, but not programming and embedded. I am having an issue which I believe is related to the hardware, triggered by the software read I am doing in pySerial. I am ...
    RobRob
    Dec 15, 2006 at 5:01 pm
    Dec 17, 2006 at 2:30 pm
  • Hi, i am new to python and i have a question about how decorators are working. I have understand HOW they do their magic but i am trying to figure out WHEN they do it... I have the following simple ...
    King kikapuKing kikapu
    Dec 4, 2006 at 5:56 pm
    Dec 5, 2006 at 4:30 pm
  • Of Interest: Introduction to 3D Graphics Programing http://xahlee.org/3d/index.html Currently, this introduction introduces you to the graphics format of Mathematica, and two Java Applet utilities ...
    Xah LeeXah Lee
    Dec 23, 2006 at 1:08 am
    Jan 22, 2007 at 5:34 am
  • With regexps you can search for strings matching it. For example, given the regexp: "foobar\d\d\d". "foobar123" would match. I want to do the reverse, from a regexp generate all strings that could ...
    BJörn LindqvistBJörn Lindqvist
    Dec 22, 2006 at 2:30 pm
    Dec 26, 2006 at 12:12 am
  • Hello I need to use some regular expressions for more than one line. And i would like to use some modificators like: /m or /s in perl. For example: re.sub("<script.* .*</script ","",data) will not ...
    VertigoVertigo
    Dec 19, 2006 at 7:15 pm
    Dec 20, 2006 at 1:29 pm
  • Hi, I have a python script that uses a C extention. I keep getting a recurring problem that causes a core dump a few lines after the C extention return data back tp python. I tried using pbd and gdb ...
    SheldonSheldon
    Dec 17, 2006 at 10:01 am
    Dec 19, 2006 at 9:34 pm
  • I'm getting a strange behaviour from the "pathname" and "lineno" formatter mapping keys. Instead of my file and my line number I get: /usr/lib/python2.4/logging/__init__.py as the file, and 1072 as ...
    TekkamanTekkaman
    Dec 13, 2006 at 5:02 pm
    Dec 15, 2006 at 11:14 am
  • I am studying Python language. I have Python 2.5 installed in my PC which is running on Windows XP. I placed the the script called "python_script" in C:\Python25 directory where all the other Python ...
    Rich murphyRich murphy
    Dec 14, 2006 at 1:16 am
    Dec 15, 2006 at 6:51 am
  • what is a good alternate language to learn? i just want something to expand my mind and hopefully reduce or delay any chance of alzheimer's. i would especially like to hear from those of you who ...
    BryanBryan
    Dec 11, 2006 at 7:13 am
    Dec 15, 2006 at 3:52 am
  • Hi all, I was going to write this script for a friend that notifies him via logging onto his Gmail account and sending him an email to his work email about some events occurring in the execution of ...
    PlacidPlacid
    Dec 12, 2006 at 4:16 am
    Dec 15, 2006 at 1:19 am
Group Navigation
period‹ prev | Dec 2006 | next ›
Group Overview
grouppython-list @
categoriespython
discussions721
posts4,401
users920
websitepython.org

920 users for December 2006

Fredrik Lundh: 199 posts Gagsl-Py: 166 posts John Machin: 84 posts Ken Tilton: 72 posts Steven D'Aprano: 66 posts Greg: 52 posts Hendrik van Rooyen: 50 posts Carl Banks: 49 posts Jon Harrop: 49 posts Raffael Cavallaro: 48 posts Duncan Booth: 46 posts Marc 'BlackJack' Rintsch: 43 posts Peter Otten: 40 posts George Sakkis: 38 posts Bill Atkins: 36 posts Pyenos: 34 posts Martin v. Löwis: 33 posts Johnny: 32 posts Bruno Desthuilliers: 30 posts Paul Boddie: 30 posts
show more
Archives