Search Discussions

904 discussions - 5,637 posts

  • 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 ZwerschkeChristoph 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 ...
    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. ...
    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 ...
    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 MuShi 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 ZwerschkeChristoph 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 ZwerschkeChristoph 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 FinneyBen 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 MountJohn 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 MeyerMike Meyer
    Nov 28, 2005 at 6:05 am
    Dec 14, 2005 at 9:20 pm
  • 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 krystian
    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ållbergGustav 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] = ... ?
    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 ...
    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 ...
    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 ReuillePierre 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 ...
    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 BethardSteven 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 MosleyPeter 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 VegaWilfredo 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
    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.
    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 GlodtYves 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 PetrosyanGregory 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 IsaacDavid 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 uitemMetiu 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 CrespoDaniel 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 TurnerStuart Turner
    Nov 3, 2005 at 12:11 pm
    Nov 5, 2005 at 10:12 am
  • 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 EverettChad 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 MartelliAlex 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 KshepitzkiGary 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 JianfengXiao Jianfeng
    Nov 18, 2005 at 3:01 am
    Nov 23, 2005 at 12:18 pm
  • 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 BushBen 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 ZsuZelzel 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 McListerClaire 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 ...
    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 MartelliAlex 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 LeeXah 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 CampbellLevi 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 ...
    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 ...
    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 ...
    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 ServerSU 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/AFDTieche 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 WatsonPaul 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 PerilloManlio 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. HastingsSteve R. Hastings
    Nov 22, 2005 at 9:48 pm
    Nov 24, 2005 at 8:37 am
  • 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 ...
    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 ...
    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 DoussaudDidier Doussaud
    Nov 28, 2005 at 1:30 pm
    Nov 30, 2005 at 6:36 pm
Group Navigation
period‹ prev | Nov 2005 | next ›
Group Overview
grouppython-list @

994 users for November 2005

Fredrik Lundh: 283 posts Mike Meyer: 241 posts Bonono: 206 posts Alex Martelli: 166 posts Steven D'Aprano: 152 posts Bengt Richter: 151 posts Steve Holden: 126 posts Christoph Zwerschke: 91 posts Antoon Pardon: 89 posts Peter Hansen: 75 posts Magnus Lycka: 68 posts Ben Finney: 62 posts Robert Kern: 55 posts Shi Mu: 46 posts Bruno: 41 posts Martin v. Löwis: 41 posts Grant Edwards: 40 posts Tony Nelson: 40 posts Diez B. Roggisch: 37 posts Jepler: 37 posts
show more