Search Discussions

818 discussions - 4,135 posts

  • I'm pretty new to Python, and even newer to Image/Video processing, and trying to get started on a project similar to GRL Vienna's laser marker. I found some sample code here ...
    Dongie AgnirDongie Agnir
    Jan 9, 2008 at 7:11 pm
    Jan 17, 2008 at 12:53 am
  • My expertise, if any, is in assembler. I'm trying to understand Python scripts and modules by examining them after they have been disassembled in a Windows environment. I'm wondering if a Python ...
    Jan 22, 2008 at 10:24 pm
    Feb 11, 2008 at 1:45 pm
  • There is a pattern that occurs fairly often in constructors in Python and other OOP languages. Let's take an example: class Server(object): def __init__(self, host, port, protocol, bufsize, timeout): ...
    Jan 27, 2008 at 5:06 pm
    Jan 29, 2008 at 11:55 am
  • Ever since I learnt to program I've always loved writing solvers for the Countdown numbers game problem in different languages, and so now I'm wondering what the most elegant solution in Python is. ...
    Dg Google GroupsDg Google Groups
    Jan 20, 2008 at 5:41 pm
    Feb 17, 2008 at 10:19 pm
  • A while back I came across a tentative proposal from way back in 2000 for optional static typing in Python: http://www.python.org/~guido/static-typing Two motivations were given: -- faster code -- ...
    Russ P.Russ P.
    Jan 27, 2008 at 10:19 pm
    Jan 30, 2008 at 2:18 pm
  • Hi. I'd like to be able to write a loop such as: for i in range(10): pass but without the i variable. The reason for this is I'm using pylint and it complains about the unused variable i. I can ...
    Erik gartzErik gartz
    Jan 9, 2008 at 10:25 pm
    Jan 11, 2008 at 10:41 pm
  • I want to generate sequential pairs from a list. Here is a way:: from itertools import izip, islice for x12 in izip(islice(x,0,None,2),islice(x,1,None,2)): print x12 (Of course the print statement is ...
    Alan IsaacAlan Isaac
    Jan 22, 2008 at 3:20 am
    Jan 24, 2008 at 10:23 am
  • Hi, say I have a string like the following: s1 = 'hi_cat_bye_dog' and I want to replace the even '_' with ':' and the odd '_' with ',' so that I get a new string like the following: s2 = ...
    Jan 9, 2008 at 10:34 am
    Jan 12, 2008 at 3:26 am
  • This issue may have been referred to in news:<mailman.1864.1196703799.13605.python-list at python.org but I didn't entirely understand the explanation. Basically I have this: 6.0 nan 6.0 nan Before I ...
    Albert HopkinsAlbert Hopkins
    Jan 21, 2008 at 3:15 am
    Feb 4, 2008 at 7:37 pm
  • I'm new to Python, and OOP. I've read most of Mark Lutz's book and more online and can write simple modules, but I still don't get when __init__ needs to be used as opposed to creating a class ...
    Erik LindErik Lind
    Jan 13, 2008 at 12:35 am
    Jan 17, 2008 at 5:55 pm
  • Hi Can anyone suggest a really simple XML reader for python? I just want to be able to do something like this: xmlDoc = xml.open("file.xml") element = xmlDoc.GetElement("foo/bar") ... to read the ...
    Simon PicklesSimon Pickles
    Jan 27, 2008 at 5:35 pm
    Feb 2, 2008 at 2:48 pm
  • I'm a Java guy who's been doing Python for a month now and I'm convinced that 1) a multi-paradigm language is inherently better than a mono-paradigm language 2) Python writes like a talented figure ...
    Jan 7, 2008 at 1:09 pm
    Jan 15, 2008 at 5:53 pm
  • Hello, I hope someone can illuminate this situation for me. Here's the nutshell: 1. On start I call locale.setlocale(locale.LC_ALL,''), the getlocale. 2. If this returns "C" or anything without ...
    Donn IngleDonn Ingle
    Jan 12, 2008 at 8:25 am
    Jan 15, 2008 at 6:08 am
  • Hello, This is a question for the best method (in terms of performance only) to choose a random element from a list among those that satisfy a certain property. This is the setting: I need to pick ...
    Jan 4, 2008 at 7:55 pm
    Jan 7, 2008 at 11:44 am
  • Hi, I'm new to Python and have come across a problem I don't know how to solve, enter com.lang.python :) I'm writing some small apps to learn the language, and I like it a lot so far. My problem I've ...
    Sacred HeartSacred Heart
    Jan 17, 2008 at 12:21 pm
    Jan 18, 2008 at 10:25 am
  • Hello, In writing some non-trivial amount of Python code I keep running into an organizational issue. I will try to state the problem fairly generally, and follow up with a (contrived) example. The ...
    Peter SchullerPeter Schuller
    Jan 23, 2008 at 9:49 am
    Feb 4, 2008 at 10:46 pm
  • I would value the opinion of fellow Pythoneers who have also contributed to Wikipedia, on the issue of "Is Python Standardized". Specifically in the context of this table: ...
    Jan 28, 2008 at 12:32 am
    Feb 2, 2008 at 5:09 pm
  • I use chinese charactors as an example here. "'\\xc4\\xe3\\xba\\xc3\\xc2\\xf0'" My first question is : what strategy does 'decode' use to tell the way to seperate the words. I mean since s1 is an ...
    Jan 24, 2008 at 3:49 am
    Jan 28, 2008 at 11:10 am
  • Hi all, I am newbie in Python, my wish would be to create python applications for both Linux/Win32. I am stucked on creating a function to get the Python install directory (and site-packages ...
    Jan 20, 2008 at 11:03 am
    Jan 21, 2008 at 11:14 am
  • ... if x == 3: ... a.remove(x) ... print x ... 1 2 3 5 [1, 2, 4, 5] Sure, the resulting list is correct. But 4 is never printed during the loop! What I was really trying to do was this: apps = [name ...
    William McBrineWilliam McBrine
    Jan 29, 2008 at 4:34 pm
    Feb 1, 2008 at 5:22 pm
  • I do not understand why no one has answered the following question: Has anybody worked with Gene Expression Programming???? David Blubaugh -----Original Message----- From: ...
    Blubaugh, David A.Blubaugh, David A.
    Jan 31, 2008 at 12:40 am
    Feb 2, 2008 at 12:14 pm
  • Hello. I have a string like 'LNAME PASTA ZONE'. I want to create a list of those words and basically replace all the whitespace between them with one space so i could just do lala.split(). Thank you! ...
    Ryan kRyan k
    Jan 23, 2008 at 6:50 pm
    Jan 24, 2008 at 3:30 pm
  • Hi, I have a list of numbers each with a +/- margin of error. I need to identify which ones overlab each other. For example: 55 +/- 3 20 +/- 2 17 +/- 4 60 +/- 3 #base, max, min list = [ (55, 58, 52), ...
    Jan 31, 2008 at 4:12 pm
    Feb 8, 2008 at 4:06 pm
  • given a list such as ['messages', 'recipients', 'viruses'] how would I iterate over the list and use the values as variables and open the variable names a files? I tried for outfile in ['messages', ...
    BJ SwopeBJ Swope
    Jan 8, 2008 at 2:04 am
    Jan 9, 2008 at 2:40 pm
  • Hello all, For some reason, the following does not work : class C: TYPES = [None] DICT = {} for Type in TYPES: DICT.update((E,Type) for E in [1]) What do you think? Is this a bug?
    Jan 17, 2008 at 3:05 pm
    Jan 19, 2008 at 12:07 pm
  • Hello, I saw this statement in Core Python Programming book, All arguments of function calls are made by reference, meaning that any changes to these parameters within the function affect the ...
    J. PengJ. Peng
    Jan 16, 2008 at 3:09 am
    Jan 16, 2008 at 3:52 pm
  • Hello all, I am playing around w/ Python's object system and decorators and I decided to write (as an exercise) a decorator that (if applied to a method) would call the superclass' method of the same ...
    Richard SzopaRichard Szopa
    Jan 12, 2008 at 6:45 pm
    Jan 15, 2008 at 8:54 pm
  • There's a lot of dumb stuff out there. "Algorithms should be coded efficiently ..." Thanks, I'll keep that in mind. van Rossum's guidelines tend toward "pick something and stick to it" which is OK if ...
    Jan 7, 2008 at 1:25 pm
    Jan 10, 2008 at 2:21 pm
  • Hello all, I have an Unicode text file with 1.6 billon lines (~2GB) that I'd like to sort based on first two characters. I'd greatly appreciate if someone can post sample code that can help me do ...
    Ira KovacIra Kovac
    Jan 24, 2008 at 7:18 pm
    Feb 2, 2008 at 2:40 pm
  • Working on parser for my language, I see that all classes (Token, Production, Statement, ...) have one thing in common. They all maintain start and stop positions in the source text. So it seems ...
    Jan 5, 2008 at 10:31 am
    Jan 21, 2008 at 5:26 pm
  • Please, how to adapt the following script (to delete blank lines) to delete lines containing a specific word, or words? f=open("output.pdb", "r") for line in f: line=line.rstrip() if line: print line ...
    Francesco PietraFrancesco Pietra
    Jan 6, 2008 at 5:21 pm
    Jan 7, 2008 at 12:43 pm
  • I found a bug in my code today, and spent an hour trying to locate it and then minimize the testcase. Once I did it, I'm still confused about the behavior and I could not find any reference to this ...
    Zbigniew BranieckiZbigniew Braniecki
    Jan 18, 2008 at 5:09 pm
    Jan 23, 2008 at 5:16 pm
  • Any ideas for a thread-safe list.removeall( X ): removing all occurrences of X within list L, when L might be modified concurrently? Sincerely, Aaron
    Jan 11, 2008 at 8:22 pm
    Jan 12, 2008 at 10:41 pm
  • As a Perl monkey in the process of learning Python, I just stepped on the "'1' (string) is not the same as 1 (integer) in regards to keys for dictionaries/hashes" landmine. Is there a good way to ...
    Reedick, AndrewReedick, Andrew
    Jan 3, 2008 at 10:56 pm
    Jan 8, 2008 at 8:48 am
  • Hi, (Gnu/Linux - Python 2.4/5) Given these two examples: 1. ./fui.py *.py 2. ls *.py | ./fui.py How can I capture a list of the arguments? I need to get all the strings (file or dir names) passed via ...
    Donn IngleDonn Ingle
    Jan 24, 2008 at 3:17 pm
    Feb 1, 2008 at 10:34 am
  • class genital: def pubic_hair(self): pass def remove(self): del(self.pubic_hair) "Removing pubic hair methods" xikom01 at yahoo.com.tw wrote: -- Posted via a free Usenet account from ...
    Jan 29, 2008 at 7:48 pm
    Jan 31, 2008 at 7:42 am
  • I am using things like "%-20s%-60s%-10s" in tkinter listbox to make it look like a table, with mono sized font like lucie system. But this does not work with data contains "Les mis?rables", because ...
    Peter PeiPeter Pei
    Jan 27, 2008 at 3:58 am
    Jan 27, 2008 at 5:14 pm
  • I thought I would share this nasty little gotcha with the group. Consider the following code fragment: <start print 'starting kbd thread' keyboard_thread = thread.start_new_thread(kbd_driver ...
    Hendrik van RooyenHendrik van Rooyen
    Jan 15, 2008 at 3:07 pm
    Jan 18, 2008 at 7:23 am
  • Hi All, I am trying to make a debian package. I am following the tutorial by Horst Jens (http://showmedo.com/videos/video?name=linuxJensMakingDeb&fromSeriesID7) and it is very informative. However ...
    Jorgen BoddeJorgen Bodde
    Jan 12, 2008 at 11:02 am
    Jan 16, 2008 at 9:02 am
  • Hi pals I have a list like this mylist=['','tom=boss','mike=manager','paul=employee','meaningless'] I'd like to remove the first and the last item as they are irrevalent, and convert it to the dict: ...
    Louis SoninhuLouis Soninhu
    Jan 9, 2008 at 6:56 pm
    Jan 9, 2008 at 10:54 pm
  • The annual Linux Journal survey is online now for any Linux users who want to vote for Python. http://www.linuxjournal.com/node/1006101
    Jan 24, 2008 at 1:14 am
    Feb 4, 2008 at 5:18 pm
  • I apologize if this has already been discussed - funnily enough my googling did bring up a previous thread about it on this mailing list, but despite the promising subject line, seemed to mainly be ...
    Henry BaxterHenry Baxter
    Jan 25, 2008 at 9:37 pm
    Jan 27, 2008 at 1:02 pm
  • Sorry for the noob question, but I've gone through the documentation on python.org, tried some of the diveintopython and boddie's examples, and looked through some of the numerous posts in this group ...
    Jan 22, 2008 at 5:31 am
    Jan 23, 2008 at 9:14 pm
  • Hello, this question has come by repeatedly in several guises over the past years but has never been solved in this forum as far as I have been able to Google. However since so many people are asking ...
    Paul SijbenPaul Sijben
    Jan 11, 2008 at 9:44 am
    Jan 14, 2008 at 10:24 pm
  • I'm learning Python by reading David Beazley's "Python Essential Reference" book and writing a few toy programs. To get a feel for hashes and sorting, I set myself this little problem today (not ...
    Andrew SavigeAndrew Savige
    Jan 9, 2008 at 10:58 am
    Jan 11, 2008 at 5:11 pm
  • So, in between skiing runs I noticed a Business Week cover story on "cloud computing". The article had lots of interesting information in it like about how somebody's mom used to be an airline ...
    Aaron WattersAaron Watters
    Jan 1, 2008 at 9:26 pm
    Jan 5, 2008 at 10:27 am
  • Hi all. I'm just getting introduced to Python (mostly through Dive Into Python), and I've decided to use it for a project where I have to write my own Genetic Algorithm. Even if you don't know about ...
    Jan 27, 2008 at 11:09 pm
    Jan 28, 2008 at 10:34 pm
  • I just thought python's way of assigning value to a variable is really different to other language like C,perl. :) Below two ways (python and perl) are called "pass by reference", but they get ...
    J. PengJ. Peng
    Jan 17, 2008 at 3:34 am
    Jan 22, 2008 at 12:23 pm
  • I have three lists... for instance a = ['big', 'small', 'medium']; b = ['old', 'new']; c = ['blue', 'green']; I want to take those and end up with all of the combinations they create like the ...
    Jan 16, 2008 at 7:15 pm
    Jan 17, 2008 at 11:36 pm
  • Hi, I'm a freshman in college and I'm going to be taking an intro to programming course next semester which mainly uses Python, so I thought it might be a good time to pick up Python beyond the scope ...
    Jan 12, 2008 at 7:03 am
    Jan 17, 2008 at 9:41 am
Group Navigation
period‹ prev | Jan 2008 | next ›
Group Overview
grouppython-list @

895 users for January 2008

Fredrik Lundh: 109 posts Gagsl-Py2: 87 posts Steven D'Aprano: 87 posts John Machin: 86 posts Diez B. Roggisch: 77 posts Arnaud Delobelle: 74 posts Ben Finney: 65 posts Bruno Desthuilliers: 65 posts Mike Driscoll: 58 posts Paddy: 58 posts Christian Heimes: 48 posts George Sakkis: 46 posts Jeroen Ruigrok van der Werven: 45 posts Martin v. Löwis: 43 posts Tim Chase: 42 posts Neil Cerutti: 39 posts BearophileHUGS: 37 posts Marc 'BlackJack' Rintsch: 37 posts Grant Edwards: 34 posts Guilherme Polo: 34 posts
show more