Search Discussions
-
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 ...
Sturlamolden
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 ...
BearophileHUGS
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 ...
Candide
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 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
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'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) ...
Process
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. ...
Drake
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 ...
Alexzive
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. 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 ...
Castironpi
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 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 ...
Bcurtu
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" 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 ...
Castironpi
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. 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 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 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 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 ...
Skip
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 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 ...
Est
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 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 ? ...
Mathieu
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 = [ "1.1.1.1", "1.2.2.2", "1.2.2.3", "1.3.1.2", "1.3.4.5"] I'd like to create a dict with ...
Simon 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 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 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 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.
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 ...
Hofer
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 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.
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 ...
HCB
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) # ...
Sotirac
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 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 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 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 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 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': ...
Andyhume
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 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', ...
Lee
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 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 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 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 ...
Python
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 ...
ToPostMustJoinGroup22
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'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 ...
Ruediger
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 Sharkey
Sep 25, 2008 at 7:17 pm
Oct 1, 2008 at 11:03 am
Group Overview
group | python-list |
categories | python |
discussions | 759 |
posts | 3,756 |
users | 812 |
website | python.org |
812 users for September 2008
Archives
- September 2015 (591)
- August 2015 (1,058)
- July 2015 (1,440)
- June 2015 (1,704)
- May 2015 (1,841)
- April 2015 (1,231)
- March 2015 (1,717)
- February 2015 (1,612)
- January 2015 (889)
- December 2014 (1,283)
- November 2014 (1,600)
- October 2014 (1,447)
- September 2014 (1,031)
- August 2014 (1,867)
- July 2014 (1,618)
- June 2014 (1,357)
- May 2014 (1,431)
- April 2014 (1,285)
- March 2014 (2,093)
- February 2014 (1,999)
- January 2014 (2,089)
- December 2013 (2,060)
- November 2013 (2,507)
- October 2013 (1,932)
- September 2013 (1,634)
- August 2013 (1,532)
- July 2013 (2,062)
- June 2013 (2,795)
- May 2013 (1,935)
- April 2013 (1,980)
- March 2013 (1,953)
- February 2013 (1,789)
- January 2013 (1,924)
- December 2012 (1,569)
- November 2012 (1,579)
- October 2012 (1,961)
- September 2012 (2,311)
- August 2012 (1,808)
- July 2012 (1,577)
- June 2012 (1,199)
- May 2012 (1,197)
- April 2012 (1,416)
- March 2012 (1,373)
- February 2012 (1,442)
- January 2012 (1,446)
- December 2011 (1,895)
- November 2011 (1,291)
- October 2011 (1,188)
- September 2011 (1,587)
- August 2011 (2,069)
- July 2011 (2,140)
- June 2011 (1,908)
- May 2011 (2,475)
- April 2011 (2,098)
- March 2011 (1,761)
- February 2011 (1,746)
- January 2011 (2,123)
- December 2010 (1,671)
- November 2010 (2,355)
- October 2010 (2,518)
- September 2010 (2,187)
- August 2010 (3,098)
- July 2010 (2,579)
- June 2010 (3,238)
- May 2010 (2,458)
- April 2010 (2,356)
- March 2010 (2,759)
- February 2010 (3,486)
- January 2010 (3,294)
- December 2009 (2,899)
- November 2009 (3,396)
- October 2009 (3,346)
- September 2009 (3,087)
- August 2009 (3,903)
- July 2009 (3,761)
- June 2009 (3,321)
- May 2009 (3,370)
- April 2009 (4,272)
- March 2009 (4,228)
- February 2009 (3,965)
- January 2009 (4,732)
- December 2008 (4,335)
- November 2008 (3,799)
- October 2008 (4,123)
- September 2008 (3,816)
- August 2008 (4,056)
- July 2008 (4,238)
- June 2008 (3,737)
- May 2008 (4,976)
- April 2008 (4,708)
- March 2008 (4,122)
- February 2008 (4,132)
- January 2008 (4,145)
- December 2007 (3,686)
- November 2007 (3,419)
- October 2007 (4,234)
- September 2007 (4,332)
- August 2007 (4,189)
- July 2007 (3,771)
- June 2007 (4,142)
- May 2007 (5,018)
- April 2007 (4,912)
- March 2007 (4,365)
- February 2007 (3,951)
- January 2007 (3,864)
- December 2006 (4,449)
- November 2006 (4,229)
- October 2006 (5,506)
- September 2006 (5,244)
- August 2006 (4,829)
- July 2006 (4,720)
- June 2006 (5,054)
- May 2006 (5,302)
- April 2006 (4,845)
- March 2006 (5,729)
- February 2006 (4,839)
- January 2006 (5,249)
- December 2005 (5,011)
- November 2005 (5,677)
- October 2005 (5,387)
- September 2005 (4,458)
- August 2005 (4,428)
- July 2005 (4,472)
- June 2005 (4,562)
- May 2005 (4,269)
- April 2005 (5,019)
- March 2005 (5,070)
- February 2005 (5,159)
- January 2005 (5,194)
- December 2004 (5,211)
- November 2004 (4,048)
- October 2004 (5,191)
- September 2004 (5,534)
- August 2004 (6,168)
- July 2004 (4,217)
- June 2004 (4,202)
- May 2004 (3,890)
- April 2004 (4,285)
- March 2004 (5,077)
- February 2004 (4,213)
- January 2004 (3,988)
- December 2003 (3,818)
- November 2003 (4,940)
- October 2003 (6,297)
- September 2003 (4,299)
- August 2003 (5,654)
- July 2003 (4,912)
- June 2003 (4,933)
- May 2003 (4,938)
- April 2003 (5,017)
- March 2003 (5,031)
- February 2003 (7,701)
- January 2003 (6,229)
- December 2002 (4,102)
- November 2002 (4,346)
- October 2002 (3,307)
- September 2002 (4,206)
- August 2002 (4,919)
- July 2002 (4,826)
- June 2002 (4,215)
- May 2002 (5,295)
- April 2002 (5,967)
- March 2002 (5,323)
- February 2002 (5,245)
- January 2002 (5,617)
- December 2001 (4,443)
- November 2001 (4,565)
- October 2001 (3,669)
- September 2001 (3,719)
- August 2001 (5,208)
- July 2001 (6,528)
- June 2001 (4,905)
- May 2001 (5,492)
- April 2001 (4,713)
- March 2001 (4,478)
- February 2001 (3,871)
- January 2001 (4,187)
- December 2000 (3,099)
- November 2000 (2,336)
- October 2000 (3,820)
- September 2000 (3,933)
- August 2000 (4,253)
- July 2000 (4,199)
- June 2000 (4,089)
- May 2000 (4,269)
- April 2000 (3,217)
- March 2000 (3,719)
- February 2000 (4,000)
- January 2000 (2,682)
- December 1999 (2,283)
- November 1999 (1,896)
- October 1999 (2,048)
- September 1999 (2,001)
- August 1999 (2,151)
- July 1999 (2,351)
- June 1999 (2,386)
- May 1999 (2,201)
- April 1999 (1,706)
- March 1999 (6)
- February 1999 (1)