FAQ

Search Discussions

711 discussions - 3,764 posts

  • Hi: From what I've read of OOP, I don't get it. I have also found some articles profoundly critical of OOP. I tend to relate to these articles. However, those articles were no more objective than the ...
    Chris CarlenChris Carlen
    Jul 13, 2007 at 4:06 pm
    Jul 26, 2007 at 9:20 pm
  • There are various things I like about the D language that I think Python too may enjoy. Here are few bits (mostly syntactical ones): 1) (we have discussed part of this in the past) You can put ...
    BearophileHUGSBearophileHUGS
    Jul 24, 2007 at 10:19 am
    Sep 9, 2008 at 7:31 am
  • Is there any discussion of having real booleans in Python 3000? Say something along the line of the numpy implementation for arrays of type 'bool'? Hoping the bool type will be fixed will be fixed, ...
    Alan IsaacAlan Isaac
    Jul 10, 2007 at 3:58 pm
    Jul 13, 2007 at 2:57 pm
  • Hi, I'm in the process of writing some code and noticed a strange problem while doing so. I'm working with PythonWin 210 built for Python 2.5. I noticed the problem for the last py file processed by ...
    Bg_ieBg_ie
    Jul 30, 2007 at 2:36 pm
    Aug 10, 2007 at 3:43 pm
  • Hi, For experienced with Pyhton users, which developing software and enviroment would you suggest for Pyhton programming? Compiler+Editor +Debugger. Also what are your suggestions for beginners of ...
    KimiraikkonenKimiraikkonen
    Jul 1, 2007 at 7:10 pm
    Jul 10, 2007 at 5:47 pm
  • Python is a better language, with php support, anyway, but I am fed up with attitudes of comp.lang.perl.misc. Assholes in this newsgroup ruin Perl experience for everyone. Instead of being helpful, ...
    Martha_JonesMartha_Jones
    Jul 25, 2007 at 7:45 pm
    Aug 12, 2007 at 3:03 pm
  • In Python 2.5 on intel, the statement 2**2**2**2**2 evaluates to 20035299304068464649790723515602557504478254755697514192650169737108940595563114 ...
    Jim LangstonJim Langston
    Jul 10, 2007 at 4:21 am
    Jul 17, 2007 at 1:18 am
  • "Once you start down the Dark path, forever will it dominate your desiny. Consume you, it will." - Yoda I'm fairly new to web-development, and I'm trying out different technologies. Some people ...
    WalterbyrdWalterbyrd
    Jul 25, 2007 at 5:42 pm
    Jul 27, 2007 at 7:30 pm
  • What is the best way to re-raise any exception with a message supplemented with additional information (e.g. line number in a template)? Let's say for simplicity I just want to add "sorry" to every ...
    Christoph ZwerschkeChristoph Zwerschke
    Jul 5, 2007 at 1:53 pm
    Jul 16, 2007 at 5:14 pm
  • if key not in my_dict: my_obj = my_dict[key] = myobject() else: my_obj = my_dict[key] Note that this last one won't have the same result, since it won't store my_obj under my_dict[key]. You'd have to ...
    Bruno DesthuilliersBruno Desthuilliers
    Jul 19, 2007 at 4:29 am
    Aug 2, 2007 at 10:20 pm
  • Hi, If I have a number n and want to generate a list based on like the following: def f(n): l=[] while n 0: l.append(n%26) n /& return l I am wondering what is the 'functional' way to do the same. ...
    BeginnerBeginner
    Jul 30, 2007 at 10:48 pm
    Aug 14, 2007 at 10:46 am
  • Hi, I want to be a professional python programmer, unfortunately I'm working on technical support and don't have the time/patience to start making projects my self. I tried to apply to some Python ...
    NicolasGNicolasG
    Jul 23, 2007 at 4:52 pm
    Aug 2, 2007 at 8:06 am
  • I'm working on a distributed computing program and need to send Python objects over a TCP socket. Specifically, the objects that I'm working with subclass the builtin list type (I don't know whether ...
    Walker LindleyWalker Lindley
    Jul 17, 2007 at 9:57 pm
    Jul 27, 2007 at 7:26 am
  • After an hour searching for a potential bug in XML parsing (PyXML), after updating from 2.4 to 2.5, I found this one: $ python2.5 Python 2.5 (release25-maint, Dec 9 2006, 14:35:53) [GCC 4.1.2 ...
    Stefan SchollStefan Scholl
    Jul 26, 2007 at 8:28 am
    Jul 30, 2007 at 8:33 am
  • Hi, I am wondering how do I 'flatten' a list or a tuple? For example, I'd like to transform[1, 2, (3,4)] or [1,2,[3,4]] to [1,2,3,4]. Another question is how do I pass a tuple or list of all the ...
    BeginnerBeginner
    Jul 25, 2007 at 2:50 pm
    Jul 26, 2007 at 6:51 am
  • I'm simply trying to read a CSV into a dictionary. (if it matters, it's ZIP codes and time zones, i.e., 35983,CT 39161,CT 47240,EST Apparently the way to do this is: import csv dictZipZones = {} ...
    Captain PoutineCaptain Poutine
    Jul 5, 2007 at 4:34 pm
    Jul 11, 2007 at 2:14 am
  • This may be a silly question but is possible for os.wait() to lose track of child processes? I'm running Python 2.4.4 on Linux kernel 2.6.20 (i686), gcc4.1.1, and glibc-2.5. Here's what happened in ...
    Jason ZhengJason Zheng
    Jul 10, 2007 at 11:52 pm
    Jul 13, 2007 at 11:52 pm
  • def is_iterable(obj): try: iter(obj) return True except TypeError: return False Is there a better way? -- Neil Cerutti
    Neil CeruttiNeil Cerutti
    Jul 25, 2007 at 6:24 pm
    Jul 26, 2007 at 10:10 pm
  • A very simple question: I currently use a cumbersome-looking way of getting the first, second, etc. line of a text file: for i, line in enumerate( open( textfile ) ): if i == 0: print 'First line is: ...
    Daniel NogradiDaniel Nogradi
    Jul 25, 2007 at 7:44 pm
    Apr 24, 2009 at 5:12 pm
  • Hi, I'm not an experienced developer, and I came across this statement by reading a code. I search for explanation, but can't find anything meaningful. I read the entire document written by python's ...
    NvictorNvictor
    Jul 19, 2007 at 7:31 am
    Jul 23, 2007 at 6:48 pm
  • I was going through the docs for module-random<http://docs.python.org/lib/module-random.html And I came through this, *shuffle*( x[, random]) Shuffle the sequence x in place. The optional argument ...
    Shabda raajShabda raaj
    Jul 16, 2007 at 12:10 pm
    Feb 20, 2009 at 11:15 pm
  • Hello, In my previously post I have been talk about running code with exec in...... So now I have problem with code indentation, as Gabriel Genellina says: So......how can I do this????????????? I ...
    ...:::JA:::......:::JA:::...
    Jul 23, 2007 at 7:53 pm
    Jul 27, 2007 at 12:43 am
  • Hi, I am learning python by learning django, and I stumble upon decorator which is very cool, any beginners resources for python decorators, although I can google it, I just want to get a good ...
    James_027James_027
    Jul 23, 2007 at 8:13 am
    Mar 23, 2009 at 10:26 pm
  • All, I can't seem to find an answer to this question anywhere, but I'm still looking. My problem is I have a list of values like this: l = [0xF0, 1, 2, 3, 0xF0, 4, 5, 6, 0xF1, 7, 8, 0xF2, 9, 10, 11, ...
    DanmcleranDanmcleran
    Jul 16, 2007 at 9:11 pm
    Jul 20, 2007 at 3:35 pm
  • Here's an implementation of the functionality I propose, as a free-standing function: def intersects(s1,s2): if len(s1) < len(s2): for x in s1: if x in s2: return True else: for x in s2: if x in s1 ...
    David AbrahamsDavid Abrahams
    Jul 4, 2007 at 1:59 pm
    Jul 6, 2007 at 1:00 am
  • Hi, I have the following code: str = "C:/somepath/folder/file.txt" for char in str: if char == "\\": char = "/" The above doesn't modify the variable 'str' directly. I'm still pretty new to Python so ...
    Robert DaileyRobert Dailey
    Jul 31, 2007 at 5:55 pm
    Aug 1, 2007 at 7:50 am
  • I have some code which relies on running each line of a file through a large number of regexes which may or may not apply. For each pattern I want to match I've been writing gotit = ...
    Gordon AirporteGordon Airporte
    Jul 19, 2007 at 4:52 am
    Jul 26, 2007 at 4:11 am
  • hi, python's staticmethod is the equivalent of java staticmethod right? with classmethod, I can call the method without the need for creating an instance right? since the difference between the two ...
    James_027James_027
    Jul 24, 2007 at 3:19 am
    Jul 26, 2007 at 1:12 am
  • Say that i want to get the keys of a, sorted. First thing I tried: None Doesn't work. Probably because I am actually trying to sort the keys of the dictionary without copying them first. If that is ...
    MontyphytonMontyphyton
    Jul 20, 2007 at 10:27 pm
    Jul 22, 2007 at 9:03 am
  • Of course there is the always the iteration method: list = [1, True, True, False, False, True] status = True for each in list: status = status and each but what is your best way to test for for False ...
    LexLex
    Jul 8, 2007 at 11:43 pm
    Jul 11, 2007 at 10:57 am
  • Hi, I'm a newbie at Python. :) Right now it's not letting me import * from any relative package name--i.e., a name that starts with a dot. For instance, none of the following work: from . import * ...
    RbygscrsepdaRbygscrsepda
    Jul 27, 2007 at 6:11 pm
    Aug 7, 2007 at 6:35 am
  • Hi, Is there build-in or third party support for large integer types, such as 96 or 128 bits in size? I require such large sizes for precision issues (nanoseconds). Thanks.
    Robert DaileyRobert Dailey
    Jul 27, 2007 at 4:45 pm
    Jul 30, 2007 at 11:14 pm
  • The mod_python manual says this under section 2.1 Prerequisites: ------ In order to compile mod_python you will need to have the include files for both Apache and Python, as well as the Python ...
    7stud7stud
    Jul 14, 2007 at 4:47 pm
    Jul 30, 2007 at 8:21 am
  • Problem: how to get binary from integer and vice versa? The simplest way I know is: a = 0100 a 64 but: a = 100 (I want binary number) does not work that way. a.__hex__ exists a.__oct__ exists but ...
    MosiMosi
    Jul 17, 2007 at 11:09 am
    Jul 18, 2007 at 7:53 am
  • Hi, I noticed in Python all function parameters seem to be passed by reference. This means that when I modify the value of a variable of a function, the value of the variable externally from the ...
    Robert DaileyRobert Dailey
    Jul 13, 2007 at 7:10 pm
    Jul 16, 2007 at 5:55 pm
  • Hi: I have begun learning Python by experimenting with the code snippets here: http://hetland.org/writing/instant-python.html In the section on functions, Magnus Lie Hetland writes: ...
    Chris CarlenChris Carlen
    Jul 13, 2007 at 12:51 am
    Jul 14, 2007 at 5:43 am
  • Hi, everyone, I'm implementing a simple client/server protocol. Now I've got a situation: client will send server command,header paires and optionally body. server checks headers and decides whether ...
    AhlongxpAhlongxp
    Jul 7, 2007 at 2:51 pm
    Jul 10, 2007 at 6:01 am
  • (this question was also posted in the devshed python forum: http://forums.devshed.com/python-programming-11/parsing-xml-with-elementtree-unicode-problem-461518.html ). ----------------------------- ...
    Oren TsurOren Tsur
    Jul 23, 2007 at 2:29 pm
    Jul 26, 2007 at 3:05 pm
  • Hi, The string format operator, %, provides a functionality similar to the snprintf function in C. In C, the function does not know the type of each of the argument and hence relies on the embedded ...
    Karthik GurusamyKarthik Gurusamy
    Jul 17, 2007 at 12:10 am
    Jul 18, 2007 at 7:39 am
  • How do I access the value in the second row in the first position of a CSV? Or the 3rd row, in the fifth position? a,b,c,d,e,f,g,h,i j,k,l,m,n,o,p,q,r r,s,t,v,w,x,y,z I'd want to get at "j" and "w". ...
    CarpeSkiumCarpeSkium
    Jul 13, 2007 at 2:59 am
    Jul 15, 2007 at 4:07 pm
  • Hi, I packaged up an application I am developing into an executable. In the application, it has user configurable options. I would like a way to restart the application so that the new options the ...
    KyosohmaKyosohma
    Jul 3, 2007 at 9:27 pm
    Jul 10, 2007 at 3:16 am
  • I need something like this: def func1(*args, **kwargs): if some_cond: return func2(*args, **kwargs) else: return func3(some_other_args, **kwargs) Thank you in advance, D.
    DmitreyDmitrey
    Jul 1, 2007 at 8:53 am
    Jul 2, 2007 at 8:24 pm
  • Hi Everyone, I am looking for a way to allow a standalone python process to easily interactive with a few web pages. It has to be able to easily receive requests from the web and post data to the ...
    BeginnerBeginner
    Jul 31, 2007 at 4:25 pm
    Aug 2, 2007 at 5:20 pm
  • Hello all, I've been debugging the reason for a major slowdown in a piece of code ... and it turns out that it was the zip function. In the past the lists that were zipped were reasonably short, but ...
    Istvan AlbertIstvan Albert
    Jul 26, 2007 at 11:25 pm
    Aug 1, 2007 at 2:40 pm
  • Hello It looks like the development of the PyWin32 wrapper to the Win32 API stopped years ago, which is too bad because it means that writing GUI apps in Python even just for Windows means adding ...
    Gilles GanaultGilles Ganault
    Jul 28, 2007 at 3:18 pm
    Jul 31, 2007 at 7:53 pm
  • How would one tell at runtime if a particular feature has been enabled by the "from __future__ import thing" statement? For example, I can do this: if 1/2 == 0: print "classic division in use" else: ...
    Steven D'ApranoSteven D'Aprano
    Jul 30, 2007 at 12:29 pm
    Jul 30, 2007 at 3:31 pm
  • Hello, For a project, I need to develop a corpus of online news stories. I'm looking for an application that, given the url of a web page, "copies" the rendered text of the web page (not the source ...
    KublaiKublai
    Jul 12, 2007 at 9:42 am
    Jul 22, 2007 at 9:39 pm
  • Hi fellas, I am experiencing problems reading a 2GB zipfile consisting of multiple zipped files. I found a thread http://mail.python.org/pipermail/python-dev/2005-April/053027.html that mentions a ...
    XamdamXamdam
    Jul 15, 2007 at 4:35 am
    Jul 16, 2007 at 10:29 pm
  • Hello, I'm trying to find a way to convert an integer (8-bits long for starters) and converting them to a list, e.g.: num = 255 numList = [1,1,1,1,1,1,1,1] with the first element of the list being ...
    GodzillaGodzilla
    Jul 12, 2007 at 10:34 pm
    Jul 15, 2007 at 2:37 am
  • i hope someone here can help me. basically, me and my friend have a summer project. in this project, we need something that would basically function as a blender. we know we'll need to buy a motor ...
    SocialanxietySocialanxiety
    Jul 9, 2007 at 12:06 am
    Jul 9, 2007 at 9:23 am
Group Navigation
period‹ prev | Jul 2007 | next ›
Group Overview
grouppython-list @
categoriespython
discussions711
posts3,764
users865
websitepython.org

865 users for July 2007

Steve Holden: 129 posts Gabriel Genellina: 93 posts Bruno Desthuilliers: 65 posts Marc 'BlackJack' Rintsch: 57 posts Diez B. Roggisch: 56 posts Neil Cerutti: 55 posts Ben Finney: 54 posts Kyosohma: 52 posts Carsten Haese: 49 posts Steven D'Aprano: 46 posts Bruno Desthuilliers: 42 posts Hendrik van Rooyen: 39 posts John Machin: 36 posts Stefan Behnel: 36 posts Alex Martelli: 34 posts Alex Popescu: 33 posts James Stroud: 32 posts John Nagle: 32 posts Martin v. Löwis: 32 posts Duncan Booth: 31 posts
show more
Archives