FAQ

Search Discussions

644 discussions - 3,730 posts

  • Hello fellow Python Advocates! Help me promote Python to a larger audience. An introduction to SketchUp: ==================== I don't know if you are familiar with "Google Sketchup". It is the best ...
    RR
    Nov 27, 2008 at 11:18 pm
    Dec 6, 2008 at 4:52 pm
  • Will that raise an exception? And, if so, why are they doing this? How is this helpful? Is this new "enhancement" Pythonic?
    WalterbyrdWalterbyrd
    Nov 8, 2008 at 6:20 pm
    Nov 26, 2008 at 3:19 am
  • I'm new to Python, and just downloaded Py2.6. I also want to use Nose. So I downloaded the latest sources, but it's not at all clear what's the best way to put this stuff into the Python package ...
    Alan BaljeuAlan Baljeu
    Nov 13, 2008 at 7:25 pm
    Nov 19, 2008 at 11:44 am
  • Let me preface this by saying that I think I "get" the concept of duck- typing. However, I still want to sprinkle my code with assertions that, for example, my parameters are what they're supposed to ...
    Joe StroutJoe Strout
    Nov 12, 2008 at 3:06 pm
    Nov 15, 2008 at 2:21 pm
  • I want my productivity back. In Python 2.x, I could easily write things like -- print "f" / print "add" / print "done" -- to a lot of different places in my code, which allowed me to find bugs that I ...
    CptnwillardCptnwillard
    Nov 25, 2008 at 3:44 pm
    Dec 3, 2008 at 1:17 am
  • Hello All, Why is python designed so that b and c (according to code below) actually share the same list object? It seems more natural to me that each object would be created with a new list object ...
    Rick GiulyRick Giuly
    Nov 15, 2008 at 9:40 am
    Nov 21, 2008 at 10:33 am
  • herald: Python surpasses Perl in popularity! According to ?TIOBE Programming Community Index for November 2008? at http://www.tiobe.com/content/paperinfo/tpci/index.html it seems that Python has ...
    Xah LeeXah Lee
    Nov 25, 2008 at 1:06 am
    Dec 5, 2008 at 12:10 pm
  • Hi, In the name of self-education can anyone share some pointers, links, modules, etc that I might use to begin learning how to do some "metaprogramming". That is, using code to write code (right?) ...
    RafeRafe
    Nov 25, 2008 at 10:08 am
    Dec 15, 2008 at 5:08 pm
  • Hello group, I'm porting some code of mine to Python 3. One class has the __cmp__ operator overloaded, but comparison doesn't seem to work anymore with that: Traceback (most recent call last): File ...
    Johannes BauerJohannes Bauer
    Nov 20, 2008 at 9:18 pm
    Nov 23, 2008 at 7:04 pm
  • Hi all, I am a Python beginner, reading through 2.6 tutorial. I am wondering where are structures? On the other hand, I think I might have the answer. Since Python focus on having one way to do it ...
    Paulo J. MatosPaulo J. Matos
    Nov 3, 2008 at 11:25 am
    Nov 4, 2008 at 4:20 pm
  • comp.lang.lisp,comp.lang.functional,comp.lang.perl.misc,comp.lang.python,comp.lang.java.programmer 2008-11-25 Recently, Steve Yegge implemented Javascript in Emacs lisp, and compared the 2 languages. ...
    Xah LeeXah Lee
    Nov 26, 2008 at 6:29 am
    Dec 10, 2008 at 4:31 am
  • If you were a beginning programmer and willing to make an investment in steep learning curve for best returns down the road, which would you pick? I know this topic has been smashed around a bit ...
    JoshJosh
    Nov 29, 2008 at 8:44 pm
    Dec 2, 2008 at 4:46 am
  • Hi All, I dont understand why the following code cannot find the variable "tree". It is very simple but I could not find the answer to this on the Python Tutorials. Here is the code, input and ...
    JoemacbusinessJoemacbusiness
    Nov 29, 2008 at 3:53 am
    Dec 12, 2008 at 8:01 pm
  • I looked online and in books, but couldn't find a definitive answer to this. I have an array and set multiple elements to either True or False at one time. Question: Which way is faster (or does it ...
    JzakiyaJzakiya
    Nov 17, 2008 at 6:50 pm
    Dec 4, 2008 at 7:21 pm
  • Hi everybody, another question on unit testing, admittedly not necessarily a python- specific one... I have a class method about 60 lines long (*) and due to some 9 non- trivial IFs statements (3 and ...
    Emanuele D'ArrigoEmanuele D'Arrigo
    Nov 27, 2008 at 2:54 am
    Nov 30, 2008 at 3:24 pm
  • in trying to make programming in Python more accessible to disabled programmers (specifically mobility impaired speech recognition users), and hitting a bit of a wall. The wall (for today) is ...
    Eric S. JohanssonEric S. Johansson
    Nov 14, 2008 at 7:41 pm
    Nov 27, 2008 at 2:47 pm
  • Hey guys. I'm working on a little program to help my wife catalog her/ our coupons. I found a good resource but need help formatting the text data so that I can import it into a mysql database. ...
    Chuck ConnorsChuck Connors
    Nov 21, 2008 at 3:18 pm
    Nov 23, 2008 at 11:13 pm
  • I'm parsing some text files, and I want to strip blank lines in the process. Is there a simpler way to do this than what I have here? lines = filter(lambda line: len(line.strip()) 0, lines) Thomas
    TmallenTmallen
    Nov 4, 2008 at 9:27 pm
    Nov 6, 2008 at 12:19 am
  • Hi guys, I'm learning Python by teaching myself, and after going through several tutorials I feel like I've learned the basics. Since I'm not taking a class or anything, I've been doing ...
    BtkuhnBtkuhn
    Nov 19, 2008 at 12:39 am
    Dec 9, 2008 at 2:01 am
  • Hello, I started to write a lexer in Python -- my first attempt to do something useful with Python (rather than trying out snippets from tutorials). It is not complete yet, but I would like some ...
    Thomas MlynarczykThomas Mlynarczyk
    Nov 8, 2008 at 8:55 pm
    Nov 24, 2008 at 8:25 pm
  • whoever I ask, everyone tells me when it come to python and GUI-s and that there is the best way to use WX. I am browsing for the 10th time during the last year and I can still not bealive that there ...
    AzraelAzrael
    Nov 8, 2008 at 7:35 pm
    Nov 10, 2008 at 6:48 pm
  • I have some old Common Lisp functions I'd like to rewrite in Python (I'm still new to Python), and one thing I miss is not having to declare local variables. For example, I have this Lisp function: ...
    DpapathanasiouDpapathanasiou
    Nov 13, 2008 at 8:22 pm
    Nov 19, 2008 at 7:00 pm
  • Dear all, Can you give me some hint on getting a directory file descriptor in Python? Besides, what's good about os.fchdir() if I can't get a directory fd in the first place? Thanks for your reply. ...
    Cong MaCong Ma
    Nov 25, 2008 at 7:05 am
    Nov 27, 2008 at 12:03 am
  • Hello After downloading a web page, I need to search for several patterns, and if found, extract information and put them into a database. To avoid a bunch of "if m", I figured maybe I could use a ...
    Gilles GanaultGilles Ganault
    Nov 23, 2008 at 5:40 pm
    Nov 26, 2008 at 12:57 pm
  • Hi all, On a (sun) webserver that I use, there is python 2.5.1 installed. I'd like to use sqlite3 with this, however sqlite3 is not installed on the webserver. If I were able to compile sqlite using ...
    TimotooleTimotoole
    Nov 10, 2008 at 11:33 pm
    Nov 13, 2008 at 8:31 pm
  • Hi, I am in a situation where I feel I am being forced to abandon a clean module structure in favor of a large single module. If anyone can save my sanity here I would be forever grateful. My problem ...
    RafeRafe
    Nov 20, 2008 at 4:13 am
    Nov 25, 2008 at 8:44 pm
  • Hi, I know there can be only one __init__ method (at least, I think). Often I need an object to be created in different ways, for example passing a string as argument, or an integer, or another ...
    Mr.SpOOnMr.SpOOn
    Nov 6, 2008 at 3:49 pm
    Nov 7, 2008 at 8:27 pm
  • Here is the situation: $ ls test $ cd test $ ls __init__.py data.py $ cat __init__.py $ cat data.py DATA = {} $ cd .. $ python {'something': 33} {} Is this a bug?
    Viktor KerkezViktor Kerkez
    Nov 27, 2008 at 5:42 pm
    Dec 2, 2008 at 6:48 am
  • The thread on sorting in Python 3 got me to thinking. How could I sort a list of complex numbers using key? [(0.32672251849959244+0.41428983433288791j), (0.35238056484609881+0.92758203977208264j), ...
    SkipSkip
    Nov 9, 2008 at 2:44 pm
    Nov 21, 2008 at 9:08 am
  • Hi There, I know you can use eval to dynamically generate the name of a function you may want to call. Can it (or some equivalent method) also be used to do the same thing for the variables of a ...
    R0gR0g
    Nov 20, 2008 at 12:44 am
    Nov 24, 2008 at 8:25 am
  • Hi, I am trying to understand the following line: # a is an integer array max([(sum(a[j:i]), (j,i)) Can you please tell me what that means, I think sum(a[j:i] means find the some from a[j] to a[i] ...
    Silverburgh MerylSilverburgh Meryl
    Nov 16, 2008 at 4:41 am
    Nov 18, 2008 at 12:20 am
  • I'm translating a program in Python that has this IF Then chain IF x1 < limit: --- do a --- IF x2 < limit: --- do b --- IF x3 < limit: --- do c --- .----- ------ IF x10 < limt: --- do j --- THEN THEN ...
    JzakiyaJzakiya
    Nov 13, 2008 at 10:06 pm
    Nov 17, 2008 at 1:17 am
  • Hi there, I've been looking for a snippet manager and found PySnippet but it requires PyGTK. Do you know any other option that doesn't need much? I'm sort of new to python and user interfaces seem a ...
    EdwinEdwin
    Nov 6, 2008 at 1:55 am
    Nov 11, 2008 at 4:01 pm
  • Hi, I try to "build" and "install" pysqlite? After I type "python setup.py build" I get a lot of error messages? The first error is "src/ connection.h:33:21: error: sqlite3.h: No such file or ...
    Kurda YonKurda Yon
    Nov 5, 2008 at 1:47 am
    Nov 7, 2008 at 3:11 am
  • I'm a newbie to python. Can anyone tell me why the following little program complains about incorrect dimensions? <snip import pylab from pylab import * n = 10; m = 2*n; A = randn(m,n); b = ...
    Joe HaysJoe Hays
    Nov 6, 2008 at 9:14 pm
    Dec 12, 2008 at 8:07 pm
  • hashlib.md5 does not appear to like unicode, UnicodeEncodeError: 'ascii' codec can't encode character u'\xa6' in position 1650: ordinal not in range(128) After googling, I've found BDFL and others on ...
    Jeff HJeff H
    Nov 28, 2008 at 4:11 pm
    Dec 3, 2008 at 12:34 am
  • The regex below identifies words in all languages I tested, but not in Hindi: # -*- coding: utf-8 -*- import re pat = re.compile('^(\w+)$', re.U) langs = ('English', '??', '??????') for l in langs: m ...
    ShiaoShiao
    Nov 28, 2008 at 3:47 pm
    Nov 30, 2008 at 1:34 am
  • Hello, The most common way of dynamically producing HTML is via template engines like genshi, cheetah, makotemplates, etc. These engines are 'inline' --- they intersperse programming constructs with ...
    Terrence BrannonTerrence Brannon
    Nov 2, 2008 at 8:48 am
    Nov 7, 2008 at 3:25 pm
  • I wrote a trivial backup script that does the following: If tonight is the first day of the month: save last month's archive do a full backup of the system else: save last night's differential backup ...
    Chris JonesChris Jones
    Nov 5, 2008 at 3:11 am
    Nov 6, 2008 at 10:01 pm
  • Is it better to do this: class Class_a(): def __init__(self, args): self.a = args.a self.b = args.b self.c = args.c self.d = args.d def method_ab(self): return self.a + self.b def method_cd(self): ...
    John O'HaganJohn O'Hagan
    Nov 25, 2008 at 7:27 am
    Nov 26, 2008 at 7:23 pm
  • Hi guys, I am struggling writing fast UDP server. It has to handle around 10000 UDP packets per second. I started building that with non blocking socket and threads. Unfortunately my approach does ...
    Krzysztof RetelKrzysztof Retel
    Nov 20, 2008 at 3:03 pm
    Nov 25, 2008 at 9:12 pm
  • IDLE 2.6 '.' running XP this result is fine ... ! IDLE 3.0rc3 Traceback (most recent call last): File "<pyshell#1 ", line 1, in <module os.extsep AttributeError: 'module' object has no attribute ...
    bMotubMotu
    Nov 23, 2008 at 11:59 pm
    Nov 25, 2008 at 7:57 am
  • I have a function that takes a reference to a class, and then instantiates that class (and then does several other things with the new instance). This is easy enough: item = cls(self, **itemArgs) ...
    Joe StroutJoe Strout
    Nov 21, 2008 at 10:11 pm
    Nov 24, 2008 at 6:36 pm
  • QOTW: "I stopped paying much attention to this thread a while ago, but you've got to admire the persistence of somebody who soldiers on even though Aahz, Fredrik Lund, and Steve Holden are all on the ...
    Gabriel GenellinaGabriel Genellina
    Nov 17, 2008 at 3:54 pm
    Nov 19, 2008 at 8:00 am
  • Hi everybody! Given a dictionary, I want to create a clustered version of it, collecting keys that have the same value: {1:['a', 'c', 'd'], 2:['b', 'e'], 3:['f']} That is, generate a new dict which ...
    Florian BruckerFlorian Brucker
    Nov 14, 2008 at 1:16 pm
    Nov 16, 2008 at 6:45 pm
  • Hi, I was googling quite some time before finding the answer to my question: 'what are the names for the encodings supported by python?' I found the answer at ...
    News123News123
    Nov 10, 2008 at 12:00 am
    Nov 12, 2008 at 12:10 am
  • Hi, I'm trying to create a class which inherit a list to change some behavior. This list should contain other instance objects and has to manage these instances in a particular way. 1) I need to sort ...
    Mr.SpOOnMr.SpOOn
    Nov 16, 2008 at 4:16 pm
    Nov 18, 2008 at 10:01 am
  • Hi all; I am looking for a little direction in moving from novice python MySQL to real world processing. I can connect to MySQL databases and have performed most of the various select, create, ...
    LenLen
    Nov 13, 2008 at 8:25 pm
    Nov 17, 2008 at 3:56 pm
  • Hi, In a couple of weeks I'm starting a medium-size project (using a web framework) involving a workflow implementation. Are you aware of any open source workflow engines/libraries that I could base ...
    Grzegorz StaniakGrzegorz Staniak
    Nov 8, 2008 at 3:14 pm
    Nov 11, 2008 at 4:12 am
  • Hello, can someone please help. I found the following code at http://code.activestate.com/recipes/252178/ def all_perms(str): if len(str) <=1: yield str else: for perm in all_perms(str[1:]): for i in ...
    SillyhatSillyhat
    Nov 2, 2008 at 9:34 pm
    Nov 4, 2008 at 7:27 pm
Group Navigation
period‹ prev | Nov 2008 | next ›
Group Overview
grouppython-list @
categoriespython
discussions644
posts3,730
users730
websitepython.org

730 users for November 2008

Steve Holden: 122 posts Terry Reedy: 110 posts Arnaud Delobelle: 104 posts Steven D'Aprano: 100 posts Aaron Brady: 96 posts John Machin: 69 posts Sad and Confused: 69 posts Joe Strout: 61 posts Chris Rebert: 59 posts Diez B. Roggisch: 58 posts George Sakkis: 56 posts R: 56 posts Martin v. Löwis: 54 posts Alex23: 52 posts BearophileHUGS: 51 posts Ben Finney: 48 posts Greg: 43 posts Marc 'BlackJack' Rintsch: 43 posts Gagsl-Py2: 40 posts Steven D'Aprano: 38 posts
show more
Archives