FAQ

Search Discussions

871 discussions - 4,902 posts

  • I was looking for a function or method that would return the index to the first matching element in a list. Coming from a C++ STL background, I thought it might be called "find". My first stop was ...
    C.L.C.L.
    Apr 6, 2007 at 2:46 am
    Apr 16, 2007 at 4:57 pm
  • From the introduction to PyObjC, the Python-Objective-C bridge on Mac OS X: "As described in Objective-C for PyObjC users the creation of Objective-C objects is a two-stage process. To initialize ...
    Kevin WalzerKevin Walzer
    Apr 18, 2007 at 9:35 pm
    Apr 25, 2007 at 1:12 am
  • I wonder what everybody uses for Python editor/IDE on Linux? I use PyScripter on Windows, which is very good. Not sure if there's something handy like that on Linux. I need to do some development ...
    JackJack
    Apr 13, 2007 at 6:20 pm
    Apr 16, 2007 at 10:27 pm
  • A friend of mine with a programming background in Java and Perl places each class in its own separate file in . I informed him that keeping all related classes together in a single file is more in ...
    Chris LasherChris Lasher
    Apr 4, 2007 at 9:23 pm
    Apr 10, 2007 at 11:38 pm
  • I'm really annoyed at Python - and not for the reasons already mentioned on this list. Everyone know that programming is supposed to be a dark art, nearly impossible to learn. Computer code is ...
    AndréAndré
    Apr 28, 2007 at 7:57 pm
    May 6, 2007 at 2:12 am
  • Hi all. I'm learning python these days. I'm going to use this thread to post, from time to time, my annoyances with python. I hope someone will clarify things to me where I have misunderstood them. ...
    FlifusFlifus
    Apr 25, 2007 at 10:50 pm
    Apr 30, 2007 at 1:03 pm
  • Hi, I have a list like ['0024', 'haha', '0024'] and as output I want ['haha'] If I myList.remove('0024') then only the first instance of '0024' is removed. It seems like regular expressions is the ...
    BahooBahoo
    Apr 3, 2007 at 6:20 pm
    Apr 9, 2007 at 12:09 am
  • Cal Tech is the ELITE of ELITE in physics. If Feynman were alive, he would point his finger straight at the 911 criminal operators, the yank bastards themselves ....... ...
    Stj911Stj911
    Apr 25, 2007 at 2:13 am
    May 13, 2007 at 1:28 pm
  • The following is part of the explanation on slices in the tutorial: The best way to remember how slices work is to think of the indices as pointing between characters, with the left edge of the first ...
    Antoon PardonAntoon Pardon
    Apr 23, 2007 at 12:38 pm
    Apr 28, 2007 at 3:11 pm
  • This is like the previous one. Please check for sanity and approve for posting at python-dev. I would like to have something like "option base" in Visual Basic. IIRC it used to allow me to choose ...
    SamjnaaSamjnaa
    Apr 14, 2007 at 10:27 am
    Apr 18, 2007 at 10:21 am
  • Laziness, Perl, and Larry Wall Xah Lee, 20021124 In the unix community there's quite a large confusion and wishful thinking about the word laziness. In this post, i'd like to make some ...
    Xah LeeXah Lee
    Apr 15, 2007 at 4:25 pm
    Apr 21, 2007 at 12:02 pm
  • False True Explanation appreciated. Thanks, Alan Isaac
    Alan G IsaacAlan G Isaac
    Apr 18, 2007 at 11:05 pm
    Apr 21, 2007 at 3:25 am
  • There is discussion by the Python Software Foundation of offering cash bounties or perhaps periodic awards to the "best of" for magazine articles, video/screencast clips and such. If YOU would be ...
    Jeff RushJeff Rush
    Apr 24, 2007 at 9:24 am
    Apr 26, 2007 at 2:06 pm
  • It's a great idea. Look at ShedSkin, PyPy, and Jython, all of which tried to do it, and none of which really became finished products. John Nagle
    John NagleJohn Nagle
    Apr 19, 2007 at 3:59 pm
    May 3, 2007 at 6:24 am
  • Please help me think of an example where immutable tuples are essential. It seems that everywhere a tuple is used one could just as easily use a list instead. chris
    SeberinoSeberino
    Apr 20, 2007 at 5:06 pm
    Apr 25, 2007 at 2:55 pm
  • I've been trying to find out what the future of Python is with regard to Tk. It seems there are several interfaces that make use of new functionality, including "Tile" and "Ttk". If I want to write a ...
    BcwhiteBcwhite
    Apr 18, 2007 at 1:28 am
    Apr 20, 2007 at 1:12 pm
  • I thought that an iterator was any object that follows the iterator protocol, that is, it has a next() method and an __iter__() method. But I'm having problems writing a class that acts as an ...
    Steven D'ApranoSteven D'Aprano
    Apr 18, 2007 at 5:39 am
    Apr 20, 2007 at 3:34 am
  • Hello. Please tell me whether this feature request is sane (and not done before) for python so it can be posted to the python-dev mailing list. I should say first that I am not a professional ...
    SamjnaaSamjnaa
    Apr 14, 2007 at 10:21 am
    Apr 20, 2007 at 6:30 pm
  • Please check for sanity and approve for posting at python-dev. In Visual Basic there is the keyword "with" which allows an object- name to be declared as governing the following statements. For ...
    SamjnaaSamjnaa
    Apr 14, 2007 at 10:42 am
    Apr 17, 2007 at 4:54 am
  • I can't break out of the for loop in this example: ------ import sys lst = [] for line in sys.stdin: lst.append(line) break print lst ----------- But, I can break out of the for loop when I do this: ...
    7stud7stud
    Apr 12, 2007 at 8:20 am
    Apr 15, 2007 at 9:04 pm
  • hello, i have a small function which mimics binary counting. it runs fine as long as the input is not too long, but if i give it input longer than 8 characters it gives RuntimeError: maximum ...
    ProctorProctor
    Apr 22, 2007 at 6:49 pm
    Apr 23, 2007 at 10:30 am
  • Here's my code. It's a teeny weeny little HTTP server. (I'm not really trying to reinvent the wheel here. What I'm really doing is writing a dispatching proxy server, but this is the shortest way to ...
    Ron GarretRon Garret
    Apr 22, 2007 at 6:21 am
    Apr 23, 2007 at 9:07 pm
  • Microsoft Antigen for Exchange found a message matching a filter. The message is currently Purged. Message: "Python_list Digest_ Vol 43_ Issue 24" Filter name: "KEYWORD= spam: horrible" Sent from: ...
    Antigen_VITORIAAntigen_VITORIA
    Apr 2, 2007 at 3:07 pm
    Apr 18, 2007 at 9:28 pm
  • Hello, after reading some of the book Programming Python it seems that python is something I would like to delve deeper into. The only thing is, I have no idea what I should try and write. So I was ...
    EricEric
    Apr 15, 2007 at 12:46 am
    Apr 18, 2007 at 8:42 am
  • One thing I sometimes miss, which is common in some other languages (c++), is idea of block scope. It would be useful to have variables that did not outlive their block, primarily to avoid name ...
    Neal BeckerNeal Becker
    Apr 6, 2007 at 4:07 pm
    Apr 10, 2007 at 9:53 pm
  • I need to be able to generate a PDF report which consists mostly of vector images (which I can generate as encapsulated Postscript, PDF, or SVG). What I need is a way to combine these figures into a ...
    Grant EdwardsGrant Edwards
    Apr 23, 2007 at 4:30 pm
    May 19, 2007 at 12:33 am
  • Python is not VB and Python is not Java and Python is not Ruby and Python is not any other language that is not Python. 1. Functions cannot be called without the parens (like in VB) 2. Python uses ...
    Paul McGuirePaul McGuire
    Apr 27, 2007 at 3:34 pm
    May 9, 2007 at 1:23 am
  • Hi All, Now that I am really diving into Python, I encounter a lot of things that us newbies find difficult to get right. I thought I understood how super() worked, but with 'private' members it does ...
    Jorgen BoddeJorgen Bodde
    Apr 12, 2007 at 8:47 am
    Apr 20, 2007 at 2:39 pm
  • Hi all. I want to create a large list like: aaaa ~ zzzz Is there any good algorithm to do this? Thanx Jia Lu
    Jia LuJia Lu
    Apr 13, 2007 at 3:16 am
    Apr 13, 2007 at 8:12 pm
  • Hi to all, i am coming from the Microsoft (.net) world and at the quest of finding the right GUI toolkit that i can use from Python, i have two obvious choices to choose from: wxPython and Qt. Both ...
    King kikapuKing kikapu
    Apr 10, 2007 at 7:29 pm
    Apr 12, 2007 at 9:32 am
  • I would like to gauge interest in the following proposal: Problem: Assignment statements cannot be used as expressions. Performing a list of mutually exclusive checks that require data processing can ...
    TimeHorseTimeHorse
    Apr 5, 2007 at 7:51 pm
    Apr 10, 2007 at 8:24 am
  • Once in while I too have something to ask. This is a little problem that comes from a Scheme Book (I have left this thread because this post contains too much Python code for a Scheme newsgroup): ...
    BearophileHUGSBearophileHUGS
    Apr 17, 2007 at 12:14 am
    Apr 20, 2007 at 5:23 pm
  • Free Seo Consulting http://seo-optimizer.blogspot.com/
    Leisure 210Leisure 210
    Apr 29, 2007 at 12:59 am
    May 9, 2007 at 7:03 am
  • Am I the only one who finds that I'm writing more documentation than code? I recently needed to write a function to generate a rank table from a list. That is, a list of ranks, where the rank of an ...
    Steven D'ApranoSteven D'Aprano
    Apr 29, 2007 at 8:12 am
    May 2, 2007 at 2:49 pm
  • Hi, does anyone happen to know of a script that would return the number of seconds in a month if I give it a month and a year? My python is a little weak, but if anyone could offer some suggestions I ...
    EdfialkEdfialk
    Apr 16, 2007 at 4:22 pm
    Apr 24, 2007 at 2:20 am
  • So I read quite a few things about this phenomenon in Python 2.4.x but I can hardly believe that there is really no solution to my problem. We use a commercial tool that has a macro functionality. ...
    LeuchteLeuchte
    Apr 25, 2007 at 2:08 pm
    Apr 26, 2007 at 1:41 pm
  • As was seen in another thread[1], there's a great deal of confusion with regard to surrogates. Most programmers assume Python's unicode type exposes only complete characters. Even CPython's own ...
    Adam OlsenAdam Olsen
    Apr 19, 2007 at 11:34 pm
    Apr 24, 2007 at 11:43 am
  • how to use the combination function in python ? For example 9 choose 2 (written as 9C2) = 9!/7!*2!6 Please help, I couldnt find the function through help.
    DanielJohnsonDanielJohnson
    Apr 15, 2007 at 5:43 am
    Apr 17, 2007 at 1:42 am
  • Hello, I'm writing a simple FTP log parser that sums file sizes as it runs. I have a yearTotals dictionary with year keys and the monthTotals dictionary as its values. The monthTotals dictionary has ...
    IamIanIamIan
    Apr 11, 2007 at 6:57 pm
    Apr 21, 2007 at 7:49 pm
  • What's the best way to portably generate binary floating point infinity and NaNs? I only know two solutions: 1. Using the fpconst module proposed in IEEE 754, which I believe shifts bits around. 2. ...
    Michael HoffmanMichael Hoffman
    Apr 12, 2007 at 7:07 pm
    Apr 16, 2007 at 9:59 am
  • Newbie question: Why is 1 == True and 2 == True (even though 1 != 2), but 'x' != True (even though if 'x': works)?
    SzabolcsSzabolcs
    Apr 28, 2007 at 12:33 pm
    Apr 30, 2007 at 12:18 am
  • I'd go one step further and implement Queue.__iter__(). The worker than would do for item in q: ... I find that argument convincing. Peter
    Peter OttenPeter Otten
    Apr 16, 2007 at 7:07 am
    Apr 18, 2007 at 7:37 am
  • I'm going to start grouping all my questions in one post as this is my second today, and sorta makes me feel dumb to keep having to bother you all with trivial questions. I'll just seperate my ...
    ScottScott
    Apr 12, 2007 at 10:38 pm
    Apr 15, 2007 at 9:07 am
  • Hi, When troubleshooting code that's saved in a text file, I often find that I want to make a change to it, re-save it, then reimport it. However, just typing import myTestCode doesn't always seem to ...
    T. CraneT. Crane
    Apr 30, 2007 at 5:49 pm
    May 1, 2007 at 3:44 pm
  • Hello Guys, I'm Looking to build a quick if/else statement that checks a dictionary for a key like follows. If myDict contains ThisKey: Do this... Else Do that... Thats the best way of doing this? ...
    Robert Rawlins - Think BlueRobert Rawlins - Think Blue
    Apr 24, 2007 at 5:28 pm
    Apr 27, 2007 at 2:24 am
  • Hi, I am using Python Thread library for my parallel processing course project. I am doing matrix convolution on a multi-processor machine running Solaris. I just found out that no speed-up is ...
    Danfan1981Danfan1981
    Apr 21, 2007 at 9:02 pm
    Apr 24, 2007 at 3:39 pm
  • Is it possible to prevent modification of a python file once its been deployed? File permissions of the OS could be used..but that doesn't seem very secure. The root of my question is verifying the ...
    Ts-devTs-dev
    Apr 5, 2007 at 1:04 am
    Apr 6, 2007 at 5:51 pm
  • Hi, I'm puzzled by some strange behavior when my Python/Tkinter application quits (on linux): the terminal from which I started Python is messed up. If start up python, then import the code below, ...
    ChrisChris
    Apr 18, 2007 at 7:33 am
    May 9, 2007 at 7:25 am
  • Hi, I'm currently writing a command-line program in Python, which takes commands in the form of: ./myprog.py [OPTIONS] ARGS So pretty standard stuff. In my case, ARGS is a list of image files. One of ...
    Pieter EdelmanPieter Edelman
    Apr 26, 2007 at 7:04 am
    Apr 27, 2007 at 6:48 pm
  • This may be pretty obvious for most of you: When I have an object (an instance of a class "Foo") I can access attributes via dot notation: aFoo.bar however when I have a dictionary aDict = ...
    Martin DrautzburgMartin Drautzburg
    Apr 22, 2007 at 6:54 am
    Apr 23, 2007 at 8:45 pm
Group Navigation
period‹ prev | Apr 2007 | next ›
Group Overview
grouppython-list @
categoriespython
discussions871
posts4,902
users929
websitepython.org

929 users for April 2007

Steve Holden: 179 posts Gabriel Genellina: 150 posts 7stud: 143 posts Alex Martelli: 110 posts Kyosohma: 94 posts James Stroud: 85 posts Michael Hoffman: 76 posts Antoon Pardon: 74 posts Bruno Desthuilliers: 64 posts Steven D'Aprano: 57 posts John Machin: 54 posts Martin v. Löwis: 54 posts Carsten Haese: 52 posts John Nagle: 51 posts Paul McGuire: 50 posts Robert Kern: 46 posts Robert Rawlins - Think Blue: 46 posts Diez B. Roggisch: 44 posts Larry Bates: 44 posts Marc 'BlackJack' Rintsch: 44 posts
show more
Archives