Search Discussions

828 discussions - 4,109 posts

  • I've been recommended reading of: http://www.python.org/dev/peps/pep-0008/ and in there i saw two things that i need to get elaborated. 1. When writing English, Strunk and White apply. Where can i ...
    K VilterstenK Viltersten
    Mar 7, 2008 at 4:31 pm
    Mar 18, 2008 at 6:01 pm
  • If the following seems unnecessarily harsh, it was even more harsh for me to discover that the time and money I had spent to get to my favorite conference had been sold to vendors, presenting me as a ...
    Bruce EckelBruce Eckel
    Mar 16, 2008 at 11:10 am
    Mar 27, 2008 at 8:02 pm
  • I don't know if this is the right place to discuss the death of < in Python 3.0, or if there have been any meaningful discussions posted before (hard to search google with '< ' keyword), but why ...
    Mar 29, 2008 at 10:55 am
    Apr 3, 2008 at 5:03 pm
  • For students 9th - 12th grade, with at least Algebra I. Do you think Python is a good first programming language for someone with zero programming experience? Using Linux and Python for first ...
    Mar 22, 2008 at 4:40 pm
    Mar 26, 2008 at 9:44 pm
  • Some time ago (2004) there were talks about prototype-based languages and Prothon emerged. Can someone tell me why class-based OO is better that Prototype based, especially in scripting langage with ...
    Mar 19, 2008 at 4:59 pm
    Apr 4, 2008 at 3:26 am
  • Is there a more efficient way to do this? def f(L): '''Return a set of the items that occur more than once in L.''' L = list(L) for item in set(L): L.remove(item) return set(L) set([0, 1, 2])
    Simon FormanSimon Forman
    Mar 18, 2008 at 9:57 am
    Mar 23, 2008 at 6:02 am
  • What is a class that is not a module?
    Mar 5, 2008 at 6:50 pm
    Mar 9, 2008 at 12:32 am
  • I'm asking about people in c.l.py's opinion about a _probably_ very Pythonic way of doing something if such features is implemented. It is to be known that I'm not a Python expert and actually ...
    Mar 9, 2008 at 3:51 am
    Mar 21, 2008 at 2:07 pm
  • Hi, it seems that Psyco's author will not port it for the upcoming Python 3000 release :( So, for us who use it we will continue to use CPython 2.5.x version for some time to come. Is there an ...
    King kikapuKing kikapu
    Mar 27, 2008 at 11:59 am
    May 18, 2008 at 11:38 am
  • So far in Python I've almost hated the 'else' of the 'for' loops: - I have problems to remember its meaning; - It gives me little problems when I later want to translate Python code to other ...
    Mar 4, 2008 at 1:27 pm
    Mar 12, 2008 at 7:15 pm
  • Notice anything funny about the "random" choices? import sympy import time import random f = [i for i in sympy.primerange(1000,10000)] for i in xrange(10): f1 = random.choice(f) print f1, f2 = ...
    Mar 3, 2008 at 8:40 pm
    Mar 5, 2008 at 10:08 pm
  • Hi, I have some code in which I have to change some path names to get it to work. The original code seems to have assumed that path names would not have any embedded spaces. I am not sure how to ...
    David SDavid S
    Mar 13, 2008 at 10:16 pm
    Mar 17, 2008 at 11:34 am
  • I want to hash values to keys. How do the alternatives compare?
    Mar 5, 2008 at 6:58 pm
    Mar 6, 2008 at 6:32 pm
  • Hello, This is my first post here. I'm getting my feet wet with Python and I need to know how can I check whether a variable is of type dictionary. Something like this: if isdict(a) then print "a is ...
    Mar 6, 2008 at 12:10 pm
    Mar 10, 2008 at 4:37 pm
  • Hello! We are thinking about writing a project for several customers in Python. This project would include (among others) wxPython, a C/C++ module. But what happens if this application generates a ...
    Mar 10, 2008 at 1:08 pm
    Mar 22, 2008 at 7:21 am
  • Hi, I would like to know if there is a module that converts a string to a value of the "most probable type" ; for instance : - if the string is "abcd" the value is the same string "abcd" - string ...
    Pierre QuentelPierre Quentel
    Mar 6, 2008 at 2:27 pm
    Mar 17, 2008 at 1:22 am
  • Hi, I am surprised that it took me so long to bloody my nose on this one. It must be well known - and I would like to find out how well known. So here is a CLOSED BOOK multiple choice question - no ...
    Hendrik van RooyenHendrik van Rooyen
    Mar 13, 2008 at 7:36 am
    Mar 16, 2008 at 9:55 am
  • Hi to all! I am new to python, and I encountered a weird problem. Here is my code ########## 8#################### #!/usr/bin/python # Filename: objvar.py class Person: '''Represents a person.''' ...
    Mar 24, 2008 at 12:01 am
    Mar 25, 2008 at 10:04 pm
  • given two classes: class Foo(object): def __init__(self): self.id = 1 def getid(self): return self.id class FooSon(Foo): def __init__(self): Foo.__init__(self) self.id = 2 def getid(self): a = ...
    Tzury Bar YochayTzury Bar Yochay
    Mar 25, 2008 at 11:44 am
    Mar 25, 2008 at 6:47 pm
  • Hi all, The subject says pretty much all, i would very appreciate an answer. I tried to search the various forums and groups, but didn't find any specific answer... Thanks, Alex.
    Mar 12, 2008 at 6:19 pm
    Mar 15, 2008 at 10:31 am
  • Howdy everyone, This is a big problem puzzles me for a long time. The core question is: How to dynamically create methods on a class or an instance? Let me state it step by step. 1. def gunc(self): ...
    Mar 4, 2008 at 8:22 am
    Mar 8, 2008 at 6:03 pm
  • Recently I woke up inclined to take up the task of learning another programming language. I've already dipped my toes in Perl (I've read online tutorials and wrote a couple of irrelevant pet ...
    Rui MacielRui Maciel
    Mar 31, 2008 at 4:40 pm
    Apr 1, 2008 at 11:17 pm
  • [Heavily off-topic fun stuff] Hi folks, This is a quick poll to have scientific data on our beloved troll community: Whose trolling behaviour is more professional? (check one) [ ] - Xah Lee [ ] - ...
    Daniel FetchinsonDaniel Fetchinson
    Mar 31, 2008 at 5:04 pm
    Apr 8, 2008 at 12:44 am
  • Hi, I'm trying to learn Python. I using Aquamac an emac implementation with mac os x. I have a program. If I go to the command prompt and type pythong myprog.py, it works. Can the program be run from ...
    Mar 20, 2008 at 3:09 pm
    Mar 26, 2008 at 3:19 am
  • Hi All, I would like create files of different size, taking size as user input. I need to check the data transfer rates from one network to another . In order to do this I will have to create files ...
    Mar 12, 2008 at 10:32 am
    Mar 16, 2008 at 7:39 pm
  • I'm having trouble explaining the benefits and tradeoffs of threads to my coworkers and countering their misconceptions about Python's threading model and facilities. They all come from C++ and are ...
    Mar 28, 2008 at 2:52 pm
    Apr 2, 2008 at 11:04 pm
  • Hi, In most of the languages ^ is used for 'to the power of'. In python we have ** for that. But what does ^ do? I could not get it just by using it ... some examples are: 1^1 returns 0 2^2 returns 0 ...
    Dark WindDark Wind
    Mar 25, 2008 at 10:02 pm
    Mar 27, 2008 at 10:59 am
  • I use a proprietary dll from Software Source (vbis5032.dll). I have successfully used it from Visual Basic 6, Fujitsu Cobol and from Perl. I would now like to use it from Python. The following is the ...
    Mar 20, 2008 at 6:09 pm
    Mar 26, 2008 at 11:27 am
  • Hi all, I'm seeing some behavior that is confusing me. I often use a simple function to tell if a file is growing...ie being copied into a certain location. (Can't process it until it's complete) My ...
    Sean DiZazzoSean DiZazzo
    Mar 18, 2008 at 8:58 pm
    Mar 21, 2008 at 9:17 pm
  • Hi, I'm reading the Python Reference Manual in order to gain a better understanding of Python under the hood. On the last paragraph of 3.1, there is a statement on immutable and mutable types as ...
    Bernard LimBernard Lim
    Mar 17, 2008 at 6:23 am
    Mar 19, 2008 at 4:47 am
  • I'm new to python and I was wondering if there are any intelligent date/time parsing modules out there. I've looked at strptime (or whichever it is) and mxDateTime from the eGenix package. I need ...
    Mar 7, 2008 at 10:08 pm
    Mar 10, 2008 at 2:37 pm
  • I am an experienced programmer (40 years). I've done Algol (if you've heard of that you must be old too), PL/1, VB,VBA, a little C, and a few other odd languages (e.g. Taskmate). I'm interested in ...
    Ira SolomonIra Solomon
    Mar 2, 2008 at 12:56 am
    Mar 3, 2008 at 3:43 pm
  • Hi all, There are a number of free tools for image matching but it's not very easy to decipher the actual algorithm from the code that includes db management, GUI, etc, etc. I have my own image ...
    Daniel FetchinsonDaniel Fetchinson
    Mar 10, 2008 at 6:32 am
    May 3, 2008 at 8:36 am
  • hello while trying to write a function that processes some numpy arrays and calculate euclidean distance ,i ended up with this code (though i used numpy ,i believe my problem has more to do with ...
    Mar 17, 2008 at 5:04 am
    Mar 29, 2008 at 2:00 pm
  • This is a query for information as to how to proceed. I am not a professional programmer, but I use Python a great deal to help me in my main job, which involves designing schedules for a global ...
    Nicholas F. FabryNicholas F. Fabry
    Mar 19, 2008 at 2:12 pm
    Mar 22, 2008 at 4:25 am
  • What are the considerations in choosing between: return [a, b, c] and return (a, b, c) # or return a, b, c Why is the immutable form the default?
    Mar 17, 2008 at 11:49 am
    Mar 21, 2008 at 1:28 pm
  • The following code has me mystified: In [4]: class A(object): ...: def show(self): ...: print 'hello' ...: ...: In [5]: a = A() In [6]: In [7]: x = a.show In [8]: y = getattr(a, 'show') In [9]: x ...
    Dave KuhlmanDave Kuhlman
    Mar 13, 2008 at 10:06 pm
    Mar 14, 2008 at 1:24 pm
  • I was surprised to see that comparison is slated for death in Python 3000. For example: http://www.python.org/dev/peps/pep-3100/ list.sort() and builtin.sorted() methods: eliminate cmp parameter [27] ...
    Alan IsaacAlan Isaac
    Mar 12, 2008 at 8:51 pm
    Mar 14, 2008 at 4:28 am
  • Hello! I am looking at developing an enterprise-grade distributed data sharing application - key requirements are productivity and platform portability. Will it be sensible to use C++ for ...
    Mar 9, 2008 at 11:41 pm
    Mar 12, 2008 at 2:49 am
  • I recall that Python guarantees that module objects are singletons, and that this must hold for any implementation, not just CPython: you can only ever create one instance of a module via the import ...
    Steven D'ApranoSteven D'Aprano
    Mar 6, 2008 at 1:44 am
    Mar 7, 2008 at 12:15 pm
  • is there any tutorial for super method (when/how to use it)? or maybe someone could explain me how it works? thx
    Mar 31, 2008 at 10:25 pm
    Apr 2, 2008 at 1:44 am
  • The timeit.Timer class times "code snippets" -- you pass it strings rather than function objects. That's good for what it's worth, but sometimes the code you want to time is too big to easily pass as ...
    Steven D'ApranoSteven D'Aprano
    Mar 29, 2008 at 10:33 am
    Apr 1, 2008 at 12:18 pm
  • Hello all, I'm fairly green to python and programming, so please go gently. The following code for display in secondary: self.("so_active_"+display) = wx.CheckBox(self.so_panel, -1, "checkbox_2") ...
    Jules StevensonJules Stevenson
    Mar 25, 2008 at 2:57 pm
    Mar 27, 2008 at 8:16 am
  • How do I factor a number? I mean how do I translate x! into proper Python code, so that it will always do the correct math? Thanks in advance, Nathan P.
    Nathan PinnoNathan Pinno
    Mar 10, 2008 at 5:08 am
    Mar 11, 2008 at 7:36 pm
  • 14


    i have this small script which after some router configurations works. ########################################################## #! /usr/bin/python import socket HOST = '' PORT = 1515 s = ...
    Mar 2, 2008 at 1:09 pm
    Mar 8, 2008 at 5:39 pm
  • Hi, list. I've got a simple asyncore-based server. However, I've modified the asyncore module to allow me to watch functions as well as sockets. The modified asyncore module is in a specific location ...
    Mar 1, 2008 at 11:56 pm
    Mar 7, 2008 at 10:23 am
  • It seems the development of Cython is going very well, quite differently from the dead-looking Pyrex. Hopefully Cython will become more user-friendly too (Pyrex is far from being user-friendly for ...
    Mar 16, 2008 at 2:32 pm
    Mar 29, 2008 at 2:31 am
  • Hi the list, I need to send a var to stdin of an external soft ("cat" command for example). How can I do this ? I would like a function like that : theFunction ('cat -', stdin=myVar) I don't need to ...
    Benjamin WatineBenjamin Watine
    Mar 13, 2008 at 11:13 am
    Mar 26, 2008 at 2:49 am
  • What's the cheapest way to test for an empty dictionary in Python? if len(dict.keys() 0) : is expensive for large dictionaries, and makes loops O(N^2). John Nagle
    John NagleJohn Nagle
    Mar 23, 2008 at 3:53 pm
    Mar 24, 2008 at 6:01 am
  • Hi, Is there a way to create a function that is equal to 0? I try to redefine __cmp__ but I am pretty stuck. Something like: ... True Thanks in advance Martin From http Fri Mar 21 20:52:12 2008 From: ...
    Martin MannsMartin Manns
    Mar 21, 2008 at 7:48 pm
    Mar 22, 2008 at 4:41 am
Group Navigation
period‹ prev | Mar 2008 | next ›
Group Overview
grouppython-list @

933 users for March 2008

Castironpi: 255 posts Gabriel Genellina: 184 posts Steven D'Aprano: 109 posts Diez B. Roggisch: 90 posts John Machin: 64 posts Terry Reedy: 55 posts Grant Edwards: 52 posts Michael Wieher: 50 posts Lie: 45 posts Arnaud Delobelle: 42 posts Jeff Schwab: 42 posts Sturlamolden: 41 posts Marc 'BlackJack' Rintsch: 38 posts Mike Driscoll: 37 posts Duncan Booth: 36 posts Bruno Desthuilliers: 35 posts Carl Banks: 35 posts George Sakkis: 32 posts Bryan Olson: 31 posts K Viltersten: 31 posts
show more