Search Discussions
-
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 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 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 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 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 ...
Meyer
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 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 ...
Axwack
Jun 6, 2006 at 11:48 am
Jun 22, 2006 at 9:10 am -
37
Immutability
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 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 Maclaren
Jun 14, 2006 at 11:46 am
Jun 15, 2006 at 4:46 pm -
im just asking out of curiosity.
Hacker1017
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#: ...
Neuruss
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 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 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 ...
A.M
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 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 ...
Filipe
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 = ...
Digitalorganics
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 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 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 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 ...
Joh12005
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 ...
Alok
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
Nicolasg
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 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 Blais
Jun 26, 2006 at 11:14 pm
Jun 29, 2006 at 5:25 pm -
can someone tell me how to use them thanks
A
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 ...
MTD
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 ...
MilkmanDan
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 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. 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 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 ...
Diffuser78
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. ...
Diffuser78
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 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 ...
Digitalorganics
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 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 ...
Bryan
Jun 8, 2006 at 3:52 am
Jun 8, 2006 at 11:51 am -
16
re beginner
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 ...SuperHik
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 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 ...
Dylpkls91
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 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 ...
Kydavis77
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 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 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.
Lad
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 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 ...
Alsmeirelles
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 Maclaren
Jun 29, 2006 at 8:26 am
Jun 30, 2006 at 8:58 am -
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 Sahani
Jun 20, 2006 at 9:14 am
Jun 21, 2006 at 5:45 pm
Group Overview
group | python-list |
categories | python |
discussions | 841 |
posts | 4,977 |
users | 970 |
website | python.org |
970 users for June 2006
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)