Search Discussions
-
This is probably a FAQ, but I dare to ask it nevertheless since I haven't found a satisfying answer yet: Why isn't there an "ordered dictionary" class at least in the standard list? Time and again I ...
Christoph Zwerschke
Nov 20, 2005 at 12:47 pm
Dec 2, 2005 at 2:04 am -
This has to do with class variables and instances variables. Given the following: <code class _class: var = 0 #rest of the class instance_b = _class() _class.var=5 print instance_b.var # - 5 print ...
Graham
Nov 3, 2005 at 9:43 am
Nov 8, 2005 at 10:14 am -
Dear all, This is just to let you know that the lastest version Dao language is released. This Dao was previously called Tao, and now is changed to Dao to avoid confusion with another Tao langauge. ...
Phoolimin
Nov 28, 2005 at 10:48 am
Dec 13, 2005 at 11:54 am -
Are there any commercial, or otherwise obfuscators for python source code or byte code and what are their relative advantages or disadvantages. I wonder because there are some byte code protection ...
Petantik
Nov 9, 2005 at 6:16 pm
Dec 28, 2005 at 10:21 am -
[6, 3, 1] [4, 3, 1] {1: [[6, 3, 1], [4, 3, 1]], 2: [[6, 3, 1]]} {1: [[6, 3, 1], [1, 3, 4]], 2: [[6, 3, 1], None]} #why c can not append the sorted b?? [1, 3, 4]
Shi Mu
Nov 20, 2005 at 1:32 pm
Dec 1, 2005 at 9:12 pm -
Sometimes I find myself stumbling over Python issues which have to do with what I perceive as a lack of orthogonality. For instance, I just wanted to use the index() method on a tuple which does not ...
Christoph Zwerschke
Nov 28, 2005 at 1:12 am
Dec 3, 2005 at 5:49 am -
Ok, the answer is easy: For historical reasons - built-in sets exist only since Python 2.4. Anyway, I was thinking about whether it would be possible and desirable to change the old behavior in ...
Christoph Zwerschke
Nov 23, 2005 at 11:15 pm
Nov 29, 2005 at 1:43 am -
Howdy all, How can a (user-defined) class ensure that its instances are immutable, like an int or a tuple, without inheriting from those types? What caveats should be observed in making immutable ...
Ben Finney
Nov 23, 2005 at 10:50 pm
Dec 2, 2005 at 6:18 am -
we have some Python code we're planning to GPL. However, bits of it were cut&pasted from some wxPython-licenced code to use as a starting point for implementation. It is possible that some fragments ...
John Perks and Sarah Mount
Nov 22, 2005 at 6:09 pm
Nov 27, 2005 at 6:34 pm -
It seems that the distinction between tuples and lists has slowly been fading away. What we call "tuple unpacking" works fine with lists on either side of the assignment, and iterators on the values ...
Mike Meyer
Nov 28, 2005 at 6:05 am
Dec 14, 2005 at 9:20 pm -
54
python speed
Hi are there any future perspectives for Python to be as fast as java? i would like to use Python as a language for writing games. best regards krystianKrystian
Nov 30, 2005 at 1:05 am
Jan 7, 2006 at 1:33 pm -
I tried finding a discussion around adding the possibility to have optional underscores inside numbers in Python. This is a popular option available in several "competing" scripting langauges, that I ...
Gustav Hållberg
Nov 8, 2005 at 2:02 am
Nov 21, 2005 at 7:25 pm -
Isn't there an easier way than lst[len(lst) - 1] = ... ?
Pinkfloydhomer
Nov 8, 2005 at 9:00 am
Nov 17, 2005 at 8:51 am -
I have function which takes an argument. My code needs that argument to be an iterable (something i can loop over)...so I dont care if its a list, tuple, etc. So I need a way to make sure that the ...
Py
Nov 15, 2005 at 7:01 pm
Nov 23, 2005 at 10:01 pm -
I've been watching the flame war about licenses with some interest. There are many motivations for those who participate in this sector, so disagreements over licenses reflect those agendas. I don't ...
Mojosam
Nov 25, 2005 at 7:30 pm
Dec 1, 2005 at 2:05 pm -
Please, note that I am entirely open for every points on this proposal (which I do not dare yet to call PEP). Abstract ======== This proposal suggests to add symbols into Python. Symbols are objects ...
Pierre Barbier de Reuille
Nov 12, 2005 at 5:59 pm
Nov 17, 2005 at 1:02 pm -
I was trying to advocate using Python for an upcoming prototype, so my boss went out to take a look at the documentation and try and get a feel for what the language is all about. First comment; "I ...
CppNewB
Nov 1, 2005 at 5:45 pm
Nov 4, 2005 at 3:04 am -
[Duncan Booth] And in fact, it is defined behavior for itertools.izip() [1]. I don't see why it's such a big deal to make it defined behavior for zip() too. STeVe ...
Steven Bethard
Nov 22, 2005 at 10:42 pm
Nov 25, 2005 at 8:25 am -
I am trying to learn GUI programming in Python, but have to confess I am finding it difficult. I am not an experienced programmer - just someone who from time to time writes small programs for my ...
Peter Mosley
Nov 25, 2005 at 2:02 pm
Dec 28, 2005 at 6:23 pm -
I'm having some issues around namespace handling with XML: <DOM Element: href at 0x1443e68 '<?xml version="1.0" ? \n<href/ ' Note that the namespace wasn't emitted. If I have PyXML, xml.dom.ext.Print ...
Wilfredo Sánchez Vega
Nov 18, 2005 at 12:32 am
Dec 19, 2005 at 1:39 pm -
hello, is it legal to return inside a for loop or am I obliged to break out of the loop before returning ? thanks yomgui
Yomgui
Nov 23, 2005 at 11:11 pm
Nov 29, 2005 at 3:21 am -
Hi, I am wondering if there is such a thing, as python is moving away from FP functions like dropwhile/takewhile etc.
Bonono
Nov 10, 2005 at 3:24 am
Nov 12, 2005 at 10:27 am -
Hello, if I do this: for row in sqlsth: ________pkcolumns.append(row[0].strip()) ________etc without a prior: pkcolumns = []; I get this error on first iteration: UnboundLocalError: local variable ...
Yves Glodt
Nov 9, 2005 at 12:46 pm
Nov 10, 2005 at 9:00 pm -
Hello everybody! I have little problem: class A: def __init__(self, n): self.data = n def f(self, x = ????) print x All I want is to make self.data the default argument for self.f(). (I want to use ...
Gregory Petrosyan
Nov 15, 2005 at 4:03 pm
Nov 18, 2005 at 9:54 am -
What's the good way to produce a cumulative sum? E.g., given the list x, cumx = x[:] for i in range(1,len(x)): cumx[i] = cumx[i]+cumx[i-1] What's the better way? Thanks, Alan Isaac
David Isaac
Nov 21, 2005 at 4:13 am
Nov 28, 2005 at 6:05 pm -
Say you have a flat list: ['a', 1, 'b', 2, 'c', 3] How do you efficiently get [['a', 1], ['b', 2], ['c', 3]] I was thinking of something along the lines of: for (key,number) in list: print key, ...
Metiu uitem
Nov 22, 2005 at 10:57 am
Nov 24, 2005 at 9:26 am -
Hi! I would like to know how can I do the PHP ternary operator/statement (... ? ... : ...) in Python... I want to something like: a = {'Huge': (quantity 90) ? True : False} Any suggestions? Thanks ...
Daniel Crespo
Nov 18, 2005 at 6:53 pm
Nov 24, 2005 at 8:15 pm -
Hi Everyone, I'm working hard trying to get Python 'accepted' in the organisation I work for. I'm making some good in-roads. One chap sent me the text below on his views of Python. I wondered if ...
Stuart Turner
Nov 3, 2005 at 12:11 pm
Nov 5, 2005 at 10:12 am -
27
Newb ??
Hi all, I am new to the group. Trying to learn Python programming on my own. I am working through Michael Dawson's Book Python Programming for the absolute beginner. I am tring to write a program ...Chad Everett
Nov 9, 2005 at 2:58 am
Nov 17, 2005 at 3:20 pm -
Having fixed a memory leak (not the leak of a Python reference, some other stuff I wasn't properly freeing in certain cases) in a C-coded extension I maintain, I need a way to test that the leak is ...
Alex Martelli
Nov 15, 2005 at 2:29 am
Dec 1, 2005 at 11:58 pm -
Hello I would like to create an API for a piece of Python code. The API is for use by non Python code. It should support interaction in both directions, both accessing functions on the API and the ...
Gary Kshepitzki
Nov 14, 2005 at 6:31 pm
Nov 30, 2005 at 2:27 am -
Hi, I need to print a long sting, which is two long so it must expand two lines. I know that we can use backslash(\) to explicitly join two lines into a logical line, but this doesn't work for string ...
Xiao Jianfeng
Nov 18, 2005 at 3:01 am
Nov 23, 2005 at 12:18 pm -
25
compare list
I have four lists: lisA=[1,2,3,4,5,6,9] lisB=[1,6,5] lisC=[5,6,3] lisD=[11,14,12,15] how can I write a function to compare lisB, lisC and lisD with lisA, if they share two continuous elements (the ...Ben Bush
Nov 14, 2005 at 11:51 am
Nov 16, 2005 at 1:38 am -
which feature of python do you like most? I've heard from people that python is very useful. Many people switch from perl to python because they like it more. I am quite familiar with perl, I've ...
Zelzel Zsu
Nov 8, 2005 at 12:21 pm
Nov 13, 2005 at 11:42 pm -
We've been working with Google Maps, and have created a web service to map origins of emails to a group. As a trial, we've developed a map of emails to this group at: ...
Claire McLister
Nov 7, 2005 at 5:21 pm
Nov 9, 2005 at 6:42 pm -
They are all the same as you don't have specific requirements mentioned. Based on the way you ask, I would say some debian derivative like ubuntu. debian is not programmer friendly but admin friendly ...
Bonono
Nov 5, 2005 at 10:39 am
Nov 8, 2005 at 3:31 pm -
I have fixed almost all of the outstanding bugreports and feature request for gmpy: divm doesn't leak memory any more, truediv and floordiv are implemented for all types, etc -- in the current CVS ...
Alex Martelli
Nov 7, 2005 at 5:40 am
Nov 13, 2005 at 12:13 am -
Python Doc Problem Example: gzip Xah Lee, 20050831 Today i need to use Python to compress/decompress gzip files. Since i've read the official Python tutorial 8 months ago, have spent 30 minutes with ...
Xah Lee
Nov 5, 2005 at 10:24 am
Nov 9, 2005 at 2:00 pm -
Hi, I'm working on a random number generator using the internet as a way to gather entropy, I have two questions. 1. is there a way to capture the internet stream? 2. how would I skip every 2nd, 3rd, ...
Levi Campbell
Nov 2, 2005 at 6:21 pm
Nov 28, 2005 at 3:25 am -
When I start Python Shell I can see that some names or loaded automatically, ready for me to use ['__builtins__', '__doc__', '__name__'] I have written some functions in a file called btools.py. I ...
Bobueland
Nov 15, 2005 at 8:08 pm
Nov 17, 2005 at 11:05 am -
hi, I have an object defined with a number of hardcoded methods. Class soandso: def __init__(self): self.this = 0 self.that = 1 def meth1(self): ... def meth2(self): ... def custom(self): pass I want ...
Flavio
Nov 27, 2005 at 11:38 pm
Dec 1, 2005 at 3:20 am -
I wrote this function which does the following: after readling lines from file.It splits and finds the word occurences through a hash table...for some reason this is quite slow..can some one help me ...
Pkilambi
Nov 10, 2005 at 5:53 pm
Nov 13, 2005 at 10:03 pm -
I've struggled with this for quite a while and I'm am just not sure what is going on. I have the following code import os def buildList( directory='/Users/mkonrad' ) dirs = [ ] listing = ...
SU News Server
Nov 11, 2005 at 9:20 pm
Nov 13, 2005 at 3:27 am -
I am new to python, Could someone explain (in English) how and when to use self? I have been reading, and haven't found a good example/explanation Bruce Tieche (bruce.tieche at usmtm.sppn.af.mil)
Tieche Bruce A MSgt USMTM/AFD
Nov 3, 2005 at 8:22 am
Nov 7, 2005 at 11:02 pm -
What are the options? The user to hits a web page, downloads code (Python I hope), execute it, and be able to return the results. It needs to be able to go through standard HTTP so that it could be ...
Paul Watson
Nov 18, 2005 at 7:14 pm
Nov 21, 2005 at 11:07 pm -
Regards. On my system: Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32, Windows XP I have this problem: Traceback (most recent call last): File "xxx", line xxx, in ? ...
Manlio Perillo
Nov 23, 2005 at 10:15 am
Nov 24, 2005 at 2:36 pm -
I have been studying Python recently, and I read a comment on one web page that said something like "the people using Python for heavy math really wish they could define their own operators". The ...
Steve R. Hastings
Nov 22, 2005 at 9:48 pm
Nov 24, 2005 at 8:37 am -
17
Zope vs Php
We are building a web app and the our backend is currently using python with php front end. We would like to do everything in python but php for our front end is so easy to use. We would like to use ...Steve
Nov 17, 2005 at 9:21 pm
Nov 18, 2005 at 4:33 pm -
Hi all, I've been doing a fair bit of python gui programming on and off, jumping between different widget sets along the way, from anygui, to pythoncard, to tkinter/PMW, then to wxPython/wxGlade, and ...
Aum
Nov 7, 2005 at 12:23 am
Nov 9, 2005 at 5:45 pm -
I have a stange side effect in my project : in my project I need to write "gobal" to use global symbol : ... import math ... def f() : global math # necessary ?????? else next line generate an error ...
Didier Doussaud
Nov 28, 2005 at 1:30 pm
Nov 30, 2005 at 6:36 pm
Group Overview
group | python-list |
categories | python |
discussions | 904 |
posts | 5,637 |
users | 994 |
website | python.org |
994 users for November 2005
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)