Search Discussions

841 discussions - 4,977 posts

  • in March, i posted a essay ?What is Expressiveness in a Computer Language?, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic paper ...
    Xah LeeXah Lee
    Jun 9, 2006 at 5:04 am
    Jul 22, 2006 at 3:50 pm
  • I know there's a request for a good IDE at least once a week on the ng, but hopefully this question is a little different. I'm looking for suggestions for a good cross-platform text editor (which the ...
    John SalernoJohn Salerno
    Jun 15, 2006 at 5:12 pm
    Jun 20, 2006 at 3:19 pm
  • With the inclusion of ElementTree (an XML-parser) in Python25 and recent developments concerning JSON (a very Pythonesque but somewhat limited XML notation scheme, let's call it statically typed XML) ...
    Anton VredegoorAnton Vredegoor
    Jun 17, 2006 at 12:46 pm
    Jun 29, 2006 at 6:03 pm
  • I have to say, I'm having a very enjoyable time learning and using Python. I spent a year playing around with C# and I feel like I learned/know less about it than I do about Python from just the past ...
    John SalernoJohn Salerno
    Jun 15, 2006 at 1:50 pm
    Jun 27, 2006 at 3:45 pm
  • Hi everyone, which compiler will Python 2.5 on Windows (Intel) be built with? I notice that Python 2.4 apparently has been built with the VS2003 toolkit compiler, and I read a post from Scott David ...
    Jun 15, 2006 at 10:25 am
    Jun 19, 2006 at 4:51 pm
  • The following script puzzles me. It creates two nested lists that compare identically. After identical element assignments, the lists are different. In one case, a single element is replaced. In the ...
    Michael F EllisMichael F Ellis
    Jun 1, 2006 at 3:02 pm
    Jun 5, 2006 at 2:24 pm
  • I wrote a program that takes an XML file into memory using Minidom. I found out that the XML document is 10gb. I clearly need SAX or something else? Any suggestions on what that something else is? Is ...
    Jun 6, 2006 at 11:48 am
    Jun 22, 2006 at 9:10 am
  • The way that I read it, Python allows only values (and hence types) to be immutable, and not class members. The nearest approach to the latter is to use the name hiding conventions. Is that correct? ...
    Nick MaclarenNick Maclaren
    Jun 28, 2006 at 7:37 am
    Jul 1, 2006 at 8:23 am
  • The numerical robustness of Python is very poor - this is not its fault, but that of IEEE 754 and (even more) C99. In particular, erroneous numerical operations often create apparently valid numbers, ...
    Nick MaclarenNick Maclaren
    Jun 14, 2006 at 11:46 am
    Jun 15, 2006 at 4:46 pm
  • im just asking out of curiosity.
    Jun 4, 2006 at 7:31 pm
    Jun 12, 2006 at 10:41 pm
  • I'm sorry for asking about another language here, but since I only know Python and I'm trying to write something in C#, I guess this is the best place... I'd like to know how to write this in C#: ...
    Jun 2, 2006 at 2:09 am
    Jun 6, 2006 at 8:37 am
  • Hi all, I wish to generate a sequence of the form 'aaa', 'aab', aac'.... 'aba', 'abb', 'abc' etc. all the way to 'zzz'. How would you construct a generator to acheive this? A simple, working but ...
    Rob CowieRob Cowie
    Jun 9, 2006 at 9:49 pm
    Jun 13, 2006 at 1:40 am
  • Hi ng, what the preferred way for see if the dict has a key? We have a lot of solutions: key in dict key in dict.keys() dict.has_key(key) ... but what the better or the more "pythonic"? Thanks, ...
    Michele PetrazzoMichele Petrazzo
    Jun 30, 2006 at 10:19 am
    Jun 30, 2006 at 7:31 pm
  • Hi, I am new to Python, with C#/Java background Is there any built-in Hash implementation in Python? I am looking for a container that I can access to it's items by name. Something like this: Print ...
    Jun 1, 2006 at 2:42 pm
    Jun 29, 2006 at 12:36 pm
  • You will often hear that for reasons of fault minimization, you should use a programming language with strict typing: http://turing.une.edu.au/~comp284/Lectures/Lecture_18/lecture/node1.html I just ...
    Christoph ZwerschkeChristoph Zwerschke
    Jun 3, 2006 at 9:23 pm
    Jun 5, 2006 at 10:07 am
  • Hi all, I'm starting to learn python but am having some difficulties with how it handles the encoding of data I'm reading from a database. I'm using pymssql to access data stored in a SqlServer ...
    Jun 28, 2006 at 2:55 pm
    Jul 8, 2006 at 4:46 pm
  • How can an object replace itself using its own method? See the following code: class Mixin: def mixin(object, *classes): NewClass = type('Mixin', (object.__class__,) + classes, {}) newobj = ...
    Jun 26, 2006 at 3:57 pm
    Jul 4, 2006 at 5:20 pm
  • Is it better to do: message = """This is line1. This is line2 This is line3\n""" or message = "This is line1.\n message = message + "This is line2\n" message = message + "This is line3\n" Since the ...
    Hari SekhonHari Sekhon
    Jun 26, 2006 at 9:07 am
    Jul 4, 2006 at 10:14 am
  • Languages with Full Unicode Support As far as i know, Java and JavaScript are languages with full, complete unicode support. That is, they allow names to be defined using unicode. (the JavaScript ...
    Xah LeeXah Lee
    Jun 25, 2006 at 4:08 pm
    Jul 6, 2006 at 3:51 am
  • Hello, I discovered that I needed a small change to the Python grammar. I would like to hear what you think about it. In two lines: Currently, the expression "x[]" is a syntax error. I suggest that ...
    Spam NoamSpam Noam
    Jun 8, 2006 at 9:10 pm
    Jun 10, 2006 at 11:53 pm
  • hello, i'm looking for a way to have a list of number grouped by consecutive interval, after a search, for example : [3, 6, 7, 8, 12, 13, 15] = [[3, 4], [6,9], [12, 14], [15, 16]] (6, not following ...
    Jun 1, 2006 at 9:17 pm
    Jun 4, 2006 at 6:12 pm
  • While posting a comment on http://www.reddit.com I got an error page with the following curious statement on it. "reddit broke (sorry)" "looks like we shouldn't have stopped using lisp..." See ...
    Jun 30, 2006 at 12:22 am
    Jul 1, 2006 at 8:42 am
  • does anyone know a module or something to convert numbers like integer to binary format ? for example I want to convert number 7 to 0111 so I can make some bitwise operations... Thanks
    Jun 1, 2006 at 7:19 pm
    Jun 5, 2006 at 3:11 am
  • Hi all This is probably old hat to most of you, but for me it was a revelation, so I thought I would share it in case someone has a similar requirement. I had to convert an old program that does a ...
    Frank MillmanFrank Millman
    Jun 13, 2006 at 6:29 am
    Jun 15, 2006 at 1:37 am
  • Hello, I want to replace a method in a class during run-time with another function. I tried the obvious, but it didn't work: class This(object): def update(self,val): print val def ...
    Brian BlaisBrian Blais
    Jun 26, 2006 at 11:14 pm
    Jun 29, 2006 at 5:25 pm
  • can someone tell me how to use them thanks
    Jun 29, 2006 at 4:58 pm
    Jul 4, 2006 at 3:17 am
  • Hello all, I've been messing about for fun creating a trial division factorizing function and I'm naturally interested in optimising it as much as possible. I've been told that iteration in python is ...
    Jun 20, 2006 at 12:54 pm
    Jun 22, 2006 at 1:44 am
  • I'll be a college freshman this fall, attending Florida Institute of Tech studying electrical engineering. I was considering taking some classes in programming and computer science, and I happened to ...
    Jun 25, 2006 at 7:35 am
    Jun 27, 2006 at 5:11 am
  • I have a function def f(the_arg): ... and I want to state that the_arg must be only of a certain type (actually a list). Is there a way to do that? Thnx PAolo -- if you have a minute to spend please ...
    Paolo PantaleoPaolo Pantaleo
    Jun 20, 2006 at 9:56 am
    Jun 23, 2006 at 1:39 pm
  • Just in case anybody has the same problem, here's my first attempt at implementing a subset of the PNG spec in pure Python. I license it to you under the terms of the GNU GPL. ...
    Johann C. RochollJohann C. Rocholl
    Jun 9, 2006 at 11:43 am
    Jun 14, 2006 at 11:51 pm
  • I have a list of strings all of length k. For every pair of k length strings which have k-1 characters in common, i want to generate a k+1 length string(the k-1 common characters + 2 not common ...
    Girish SahaniGirish Sahani
    Jun 8, 2006 at 2:39 am
    Jun 9, 2006 at 11:01 am
  • I am a newbie in python. I want to learn and implement a small networking concept. Please help me. Every help is appreciated. I have one Linux Box and one Windows PC. I want to have a daemon running ...
    Jun 22, 2006 at 7:02 pm
    Jun 23, 2006 at 6:08 pm
  • I want to write a python program and call OS specific commands in it. So basically, instead of typing in on the command line argument I want to have it in a python program and let it do the action. ...
    Jun 20, 2006 at 5:30 am
    Jun 21, 2006 at 10:41 pm
  • Hi A short newbie question. I would like to extract some values from a given text file directly into python variables. Can this be done simply by either standard library or other libraries? Some ...
    Preben RandholPreben Randhol
    Jun 16, 2006 at 8:36 am
    Jun 18, 2006 at 10:06 pm
  • What's the difference between initializing class variables within the class definition directly versus initializing them within the class's __init__ method? Is there a reason, perhaps in certain ...
    Jun 11, 2006 at 3:58 pm
    Jun 12, 2006 at 7:03 am
  • I have a few small questions subjecting python functionality, most importantly the "alias_method". - *IMPORT* I would like to know, if this construct is valid, or if it can result in problems (that I ...
    Ilias LazaridisIlias Lazaridis
    Jun 8, 2006 at 12:28 pm
    Jun 10, 2006 at 6:41 pm
  • does anyone know if there is a collection somewhere of common python mistakes or inefficiencies or unpythonic code that java developers make when first starting out writing python code? if not, maybe ...
    Jun 8, 2006 at 3:52 am
    Jun 8, 2006 at 11:51 am
  • hi all, I'm trying to understand regex for the first time, and it would be very helpful to get an example. I have an old(er) script with the following task - takes a string I copy-pasted and wich ...
    Jun 4, 2006 at 6:34 pm
    Jun 5, 2006 at 5:35 pm
  • Hi all, I just stepped on a thing that I can't explain. Here is some code showing the problem: ----------------------------- class C: f = None def __init__(self): if self.f is not None: self.x = ...
    Eric BrunelEric Brunel
    Jun 1, 2006 at 11:12 am
    Jun 2, 2006 at 9:03 am
  • I have been researching this topic and come up with some code to make it work. It uses SSL and requires the 3rd party package Paramiko (which requires PyCrypto). However, at this moment I have no ...
    Jun 27, 2006 at 3:23 am
    Jul 19, 2006 at 1:13 am
  • Hi! The following program in an UTF-8 encoded file: # -*- coding: UTF-8 -*- FIELDS = ("F?cher", ) FROZEN_FIELDS = frozenset(FIELDS) FIELDS_SET = set(FIELDS) print u"F?cher" in FROZEN_FIELDS print ...
    Dennis BenzingerDennis Benzinger
    Jun 27, 2006 at 6:46 pm
    Jun 29, 2006 at 9:02 pm
  • I am doing alot of reading and trying to teach myself how to program. I can not figure out how to make "Write a program that continually reads in numbers from the user and adds them together until ...
    Jun 26, 2006 at 5:25 pm
    Jun 26, 2006 at 7:42 pm
  • I have a list of strings ls = [s_1,s_2,...,s_n] and want to create a regular expression sx from it, such that sx.match(s) yields a SRE_Match object when s starts with an s_i for one i in [0,...,n]. ...
    Kay SchluehrKay Schluehr
    Jun 18, 2006 at 5:07 pm
    Jun 20, 2006 at 3:12 pm
  • I was wondering if there was a way to take a txt file and, while keeping most of it, replace only one line. See, I'd have a file like: Tommy 555 Bob 62 Joe 529 And I'd want to set it to be: Tommy 555 ...
    Tommy BTommy B
    Jun 6, 2006 at 6:41 am
    Jun 9, 2006 at 6:08 am
  • Hello , is it possible to add( with PYTHON language) several image files into one? Thanks for reply L.
    Jun 5, 2006 at 12:48 pm
    Jun 7, 2006 at 2:42 pm
  • Specifically, I'm using UltraEdit and perhaps there's no way perfect way to implement code folding with it, given how it uses its syntax highlighting file to do so (i.e., you have to specify an ...
    John SalernoJohn Salerno
    Jun 15, 2006 at 4:03 pm
    Jun 16, 2006 at 12:53 am
  • Hi, I'm building a multithreaded application and I encountered a tiny and annoying problem. I use a select to wait for data to be read from a socket, after some reads, the select simply blocks and ...
    Jun 8, 2006 at 3:27 am
    Jun 9, 2006 at 1:37 pm
  • Currently logins are disabled to sourceforge.net, and (despite the comments) it won't let me report a bug anonymously. Does anyone know whether this is short or long term? I have a bug in 2.5 to ...
    Nick MaclarenNick Maclaren
    Jun 29, 2006 at 8:26 am
    Jun 30, 2006 at 8:58 am
  • Hello I have to make an easy operation but reading the pycrypto doc. a never see AES example I have to cript this key 'ea523a664dabaa4476d31226a1e3bab0' with the AES. Can you help me for make it with ...
    Jun 16, 2006 at 8:35 am
    Jun 26, 2006 at 8:07 pm
  • Hi, I want to truncate every number to 2 digits after the decimal point. I tried the following but it doesnt work. 0.67000000000000004 Inspite of specifying 2 in 2nd attribute of round, it outputs ...
    Girish SahaniGirish Sahani
    Jun 20, 2006 at 9:14 am
    Jun 21, 2006 at 5:45 pm
Group Navigation
period‹ prev | Jun 2006 | next ›
Group Overview
grouppython-list @

970 users for June 2006

Fredrik Lundh: 250 posts Bruno Desthuilliers: 137 posts John Machin: 87 posts Steve Holden: 79 posts Tony Nelson: 77 posts Diez B. Roggisch: 65 posts John Salerno: 62 posts Maric Michaud: 59 posts Bruno Desthuilliers: 56 posts Grant Edwards: 54 posts Marshall: 53 posts Scott David Daniels: 53 posts Chris Smith: 51 posts Alex Martelli: 50 posts David Hopwood: 50 posts Digitalorganics: 41 posts Pascal Costanza: 41 posts Joachim Durchholz: 40 posts Serge Orlov: 40 posts Sreeram Kandallu: 40 posts
show more