Search Discussions

759 discussions - 3,756 posts

  • I have recently been playing with a kd-tree for solving the "post office problem" in a 12-dimensional space. This is pure cpu bound number crunching, a task for which I suspected Python to be ...
    Sep 23, 2008 at 1:23 pm
    Feb 15, 2009 at 11:36 pm
  • Empty Python lists [] don't know the type of the items it will contain, so this sounds strange: Because that [] may be an empty sequence of someobject: In a statically typed language in that ...
    Sep 3, 2008 at 12:48 pm
    Nov 24, 2008 at 9:20 pm
  • Excerpt quoted from http://www.astro.ufl.edu/~warner/prog/python.html : "About Python: Python is a high level scripting language with object oriented features. (...) Python supports OOP and classes ...
    Sep 20, 2008 at 9:23 am
    Sep 30, 2008 at 9:54 am
  • As anyone knows, the state of Python GUI programming is a little fractured at this time, with many toolkits, wrappers and meta-wrappers dead and alive, with or without documentation. I've come across ...
    Michael PalmerMichael Palmer
    Sep 3, 2008 at 4:34 pm
    Oct 23, 2008 at 7:51 am
  • Hi, just a dumb question. Let a = [1,2,3,4,5] Why is the value of a.append(7) equal None and not [1,2,3,4,5,6,7] ?? --Armin
    Sep 15, 2008 at 8:24 pm
    Sep 18, 2008 at 5:19 pm
  • I have a class which is not intended to be instantiated. Instead of using the class to creating an instance and then operate on it, I use the class directly, with classmethods. Essentially, the class ...
    Steven D'ApranoSteven D'Aprano
    Sep 21, 2008 at 10:39 pm
    Sep 28, 2008 at 8:03 am
  • I have heard some criticism about Python, that it is not fully object- oriented. What is not an object in Python? Why isn't len implemented as a str.len and list.len method instead of a len(list) ...
    Sep 28, 2008 at 6:29 pm
    Oct 5, 2008 at 1:25 am
  • I have a general question of Python style, or perhaps just good programming practice. My group is developing a medium-sized library of general-purpose Python functions, some of which do I/O. ...
    Sep 23, 2008 at 8:25 pm
    Oct 4, 2008 at 3:40 am
  • Hello there :) , I am a python newbie and need to run following code for a task in an external simulation programm called "Abaqus" which makes use of python to access the mesh (ensamble of nodes with ...
    Sep 18, 2008 at 12:25 pm
    Sep 23, 2008 at 2:45 pm
  • Hi, after hearing a lot about decorators and never actually using one I have decided to give it a try. My particular usecase is that I have class that acts as a proxy to other classes (i.e. passes ...
    Dmitry S. MakoveyDmitry S. Makovey
    Sep 24, 2008 at 10:21 pm
    Sep 28, 2008 at 8:26 pm
  • I am concerned by the lack of follow-through on some responses to recent ideas I have described. Do I merely have a wrong understanding of group policy? Is it a good policy (defined with respect to ...
    Sep 7, 2008 at 9:00 pm
    Sep 13, 2008 at 2:37 pm
  • Hello everyone, I was wondering if anyone here has a moment of time to help me with 2 things that have been bugging me. 1. Multi dimensional arrays - how do you load them in python For example, if I ...
    Ivan ReborinIvan Reborin
    Sep 29, 2008 at 10:04 pm
    Oct 3, 2008 at 10:26 am
  • Hi, I have a BIIIIIG problem with the next query: cursor.execute(""" SELECT titem.object_id, titem.tag_id FROM tagging_taggeditem titem WHERE titem.object_id IN (%s) """,( eid_list)) eid_list is ...
    Sep 26, 2008 at 9:32 am
    Sep 29, 2008 at 9:11 am
  • Hello all, To me, this is a somewhat unintuitive behavior. I want to discuss the parts of it I don't understand. ... f[ n ]= lambda: n ... 9 9 I guess I can accept this part so far, though it took a ...
    Aaron "Castironpi" BradyAaron "Castironpi" Brady
    Sep 28, 2008 at 4:43 am
    Oct 5, 2008 at 1:47 am
  • I will try my idea again. I want to talk to people about a module I want to write and I will take the time to explain it. I think it's a "cool idea" that a lot of people, forgiving the slang, could ...
    Sep 9, 2008 at 9:59 pm
    Sep 16, 2008 at 12:58 pm
  • I'm not sure I follow this logic. Can someone explain why float and integer can be compared with each other and decimal can be compared to integer but decimal can't be compared to float? True True ...
    D'Arcy J.M. CainD'Arcy J.M. Cain
    Sep 23, 2008 at 11:20 am
    Oct 3, 2008 at 6:53 am
  • Hi. I wondered if anyone knew the rationale behind the naming of the Popen class in the subprocess module. Popen sounds like the a suitable name for a function that created a subprocess, but the ...
    Jeremy BanksJeremy Banks
    Sep 1, 2008 at 7:23 am
    Sep 4, 2008 at 2:08 am
  • Howdy all, Writing a Python program to become a Unix daemon is relatively well-documented: there's a recipe for detaching the process and running in its own process group. However, there's much more ...
    Ben FinneyBen Finney
    Sep 26, 2008 at 5:08 am
    Mar 30, 2009 at 6:03 am
  • Conceptually, an abstract class is a class that is not intented to be instanciated directly but used as a parent class. The simplest way to get such behaviour is to just write your base class and ...
    Bruno DesthuilliersBruno Desthuilliers
    Sep 14, 2008 at 3:33 pm
    Sep 15, 2008 at 3:02 pm
  • I took over spam filter management for the python.org mailing lists a couple months ago and made a few changes to the way the spam filter is trained. Things seem to be at a reasonable level as far as ...
    Sep 26, 2008 at 11:31 am
    Sep 27, 2008 at 3:34 pm
  • Let's say I've a class a, where I can write: -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/
    Marco BizzarriMarco Bizzarri
    Sep 4, 2008 at 10:57 am
    Sep 6, 2008 at 12:09 am
  • str( [object]) Return a string containing a nicely printable representation of an object. For strings, this returns the string itself. The difference with repr(object) is that str(object) does not ...
    Sep 28, 2008 at 5:37 am
    Sep 30, 2008 at 7:15 am
  • Hi, I currently have a dictionary object that I'm doing the following with: if lib not in stage_map: # ... do stuff ... However, this will perform a case-sensitive comparison between lib and each key ...
    Robert DaileyRobert Dailey
    Sep 4, 2008 at 10:14 pm
    Sep 15, 2008 at 12:42 pm
  • Hi there, I am trying to write something very simple to test if a list contains another one: a = [1,2,3] b = [3,2,1,4] but 'a in b' returns False. How do I check that a is indeed contained in b ? ...
    Sep 8, 2008 at 9:12 am
    Nov 16, 2008 at 11:45 pm
  • Hi, Let's say I have an arbitrary list of minor software versions of an imaginary software product: l = [ "", "", "", "", ""] I'd like to create a dict with ...
    Simon MullisSimon Mullis
    Sep 18, 2008 at 2:54 pm
    Sep 23, 2008 at 2:10 am
  • Hello I'm new to python and i can't figure out how to write a reverse for loop in python e.g. the python equivalent to the c++ loop for (i = 10; i = 0; --i)
    Alex SnastAlex Snast
    Sep 20, 2008 at 4:16 pm
    Sep 21, 2008 at 4:34 pm
  • Could whoever is responsible for the gateway that is grabbing my postings off of Usenet and e-mailing them out please fix the headers in the mail messages so that I don't get the bounce messages? ...
    Grant EdwardsGrant Edwards
    Sep 10, 2008 at 5:51 pm
    Sep 17, 2008 at 8:34 am
  • I need to create multi lingual invoices from reportlab. I think it is possible to use UTF 8 strings but there is a problem with the font. I could not find any free TTF font that can do latin1, ...
    Laszlo NagyLaszlo Nagy
    Sep 8, 2008 at 8:51 am
    Sep 13, 2008 at 3:33 am
  • To All, I was wondering if anyone has come across the issue of not being allowed to have the following within a Python script operating under Linux: time.sleep(0.0125) It appears that I am not ...
    Blubaugh, David A.Blubaugh, David A.
    Sep 23, 2008 at 2:09 am
    Oct 1, 2008 at 12:41 am
  • Hi, Let's take following perl code snippet: %myhash=( one = 1 , two = 2 , three = 3 ); ($v1,$v2,$v3) = @myhash{qw(one two two)}; # <-- line of interest print "$v1\n$v2\n$v2\n"; How do I translate the ...
    Sep 10, 2008 at 3:28 pm
    Sep 12, 2008 at 8:20 pm
  • Hi, I have a program that take a word as argument, and I would like to link this word to a class variable. eg. class foo(): width = 10 height = 20 a=foo() arg='height' a.__argname__= new_value rather ...
    Mathieu PrevotMathieu Prevot
    Sep 4, 2008 at 7:25 am
    Sep 6, 2008 at 10:58 am
  • To All, I was wondering if it was possible to have a situation where a programming project would utilized BOTH python and perl? Such as utilizing python for internet programming and then utilize perl ...
    Blubaugh, David A.Blubaugh, David A.
    Sep 29, 2008 at 5:16 pm
    Nov 3, 2008 at 11:54 pm
  • Hello: The book "Code Complete" recommends that you put only one class in a source file, which seems a bit extreme for me. It seems that many classes are small, so that putting several of them in a ...
    Sep 29, 2008 at 1:12 pm
    Oct 5, 2008 at 2:30 pm
  • Wondering if there is a better way to generate string of numbers with a length of 5 which also can have a 0 in the front of the number. <pre random_number = random.sample([0,1,2,3,4,5,6,7,8,9], 5) # ...
    Sep 28, 2008 at 7:59 pm
    Sep 29, 2008 at 7:48 pm
  • hello, How can I find the correct case of a filename ? Background in my program I use case sensitive filenames, just like Python requires. Now I've integrated pdb into the program, but pdb acts ...
    Stef MientkiStef Mientki
    Sep 25, 2008 at 10:36 am
    Sep 27, 2008 at 12:06 pm
  • In hindsight, I am disappointed with the choice of conditional syntax. I know it's too late to change. The problem is y = some thing or other if x else something_else When scanning this my eye tends ...
    Neal BeckerNeal Becker
    Sep 23, 2008 at 11:52 pm
    Sep 25, 2008 at 3:16 am
  • I have people running my compiled python applications on single and dual core processors with no problem. I suspect that you may just need to compile your application with some different switches, ...
    Mike DriscollMike Driscoll
    Sep 22, 2008 at 6:38 pm
    Apr 16, 2009 at 9:16 pm
  • I'm still learning python and would like to know what's a good way of organizing code. I am writing some scripts to scrape a number of different website that hold similar information and then ...
    Astley Le JasperAstley Le Jasper
    Sep 12, 2008 at 10:08 am
    Sep 15, 2008 at 2:41 pm
  • Hi all. In many parts of my code I've the following schema of code: def isInUseByOutgoingRegistrations(self, archivefolder): for instance in self.findActiveOutgoingRegistrationInstances(): if ...
    Marco BizzarriMarco Bizzarri
    Sep 12, 2008 at 1:50 pm
    Sep 13, 2008 at 6:08 pm
  • Hello... I have a dict of key/values and I want to change the keys in it, based on another mapping dictionary. An example follows: MAPPING_DICT = { 'a': 'A', 'b': 'B', } my_dict = { 'a': '1', 'b': ...
    Sep 7, 2008 at 9:51 pm
    Sep 8, 2008 at 11:33 pm
  • I've been trying to tackle this all morning, and so far I've been completely unsuccessful. I have a binary file that I have the structure to, and I'd like to read it into Python. It's not a ...
    Aaron ScottAaron Scott
    Sep 10, 2008 at 5:14 pm
    Sep 11, 2008 at 12:46 am
  • hi, i have a dictionary as follows : kev : {'phno': ['dgsd', 'gsdg', 'dfsdf', 'g'], 'email': ['dg', 'sgsd', 'sdfsdf', 'gdf'], 'name': ['ds', 'dsg', 'dsfds', 'fgdf'], 'address': ['sdg', 'dsgsdg', ...
    Sep 1, 2008 at 7:57 am
    Sep 1, 2008 at 7:08 pm
  • Hello, just noticed this: Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. {1: 2} ...
    Pekka LaukkanenPekka Laukkanen
    Sep 22, 2008 at 9:25 am
    Sep 24, 2008 at 10:15 am
  • hi group. I'm new to python and need some help and hope you can answer this question. I have a situation in my code where i need to create a file on the server and write to it. That's not a problem ...
    Bobby RobertsBobby Roberts
    Sep 23, 2008 at 12:37 pm
    Sep 24, 2008 at 10:09 am
  • Hello, I would like to create and manipulate Open Office documents using Python. I have found then UNO Python page and odfpy modules which seem to be exactly what I need. The odfpy manual is, to me, ...
    Greg LindstromGreg Lindstrom
    Sep 10, 2008 at 8:04 pm
    Sep 19, 2008 at 8:36 am
  • Hi there! I'm trying to match the results of an md5 checksum done in a tcsh shell. I keep getting different results and can't find anything on google... here's an example: Arno at Computer:~% echo ...
    Sep 10, 2008 at 4:25 pm
    Sep 10, 2008 at 6:06 pm
  • I'm coming from a .NET, VB, C background. C was good, and VB was better (with all of its libraries). Than .NET came along and all the libraries you can require are ready to go. I have no preference ...
    Sep 3, 2008 at 4:52 pm
    Sep 10, 2008 at 12:53 am
  • I find myself writing command line tools in Python where I wish to include "verbose" output to stdout. I start with a helper function: def print_(obj, level=0): if _verbosity = level: print obj And ...
    Steven D'ApranoSteven D'Aprano
    Sep 2, 2008 at 4:55 pm
    Sep 6, 2008 at 9:29 pm
  • Hello! Executing following little program gives me an TypeError. What makes me wonder is that foo does get an argument passed while bar doesn't. Can anyone explain why?????? Thanks Ruediger class ...
    Sep 4, 2008 at 8:26 pm
    Sep 6, 2008 at 5:59 pm
  • Hello all, Our development group at work seems to be heading towards adopting python as one of our standard "systems languages" for internal application development (yeah!). One of the issues that's ...
    Scott SharkeyScott Sharkey
    Sep 25, 2008 at 7:17 pm
    Oct 1, 2008 at 11:03 am
Group Navigation
period‹ prev | Sep 2008 | next ›
Group Overview
grouppython-list @

812 users for September 2008

Fredrik Lundh: 140 posts Castironpi: 125 posts Gabriel Genellina: 96 posts Terry Reedy: 87 posts Diez B. Roggisch: 80 posts Steven D'Aprano: 74 posts BearophileHUGS: 66 posts Thoma: 60 posts Bruno Desthuilliers: 56 posts Bruno Desthuilliers: 55 posts Marco Bizzarri: 46 posts Christian Heimes: 44 posts Grant Edwards: 40 posts Ben Finney: 38 posts Marc 'BlackJack' Rintsch: 37 posts Tino Wildenhain: 35 posts Chris Rebert: 34 posts John Machin: 33 posts Maric Michaud: 33 posts Steven D'Aprano: 33 posts
show more