Search Discussions
-
Hi, I've a project with tabs and spaces mixed (yes I know it's bad). I edit each file to remove tabs, but it's so easy to make a mistake. Do you know a tools to compare the initial file with the ...
Jf
Oct 31, 2010 at 12:02 pm
Nov 10, 2010 at 4:41 am -
In "The Zen of Python", one of the "maxims" is "flat is better than nested"? Why? Can anyone give me a concrete example that illustrates this point? TIA! ~kj PS: My question should not be construed ...
Kj
Oct 25, 2010 at 10:07 am
Nov 10, 2010 at 5:08 am -
So, I'm messing around with pylint. Quite a lot of what it says is quite reasonable, makes sense to me, and all that. There's a few exceptions. One: I am a big, big, fan of idiomatic short names ...
Seebs
Oct 19, 2010 at 7:57 pm
Oct 22, 2010 at 5:42 pm -
So, I'm new to Python, though I've got a bit of experience in a few other languages. My overall impressions are pretty mixed, but overall positive; it's a reasonably expressive language which has a ...
Seebs
Oct 12, 2010 at 7:14 pm
Oct 14, 2010 at 10:48 pm -
I found two similar questions in the mailing list, but I didn't understand the explanations. I ran this code on Ubuntu 10.04 with Python 2.6.5. Why do the functions g and gggg behave differently? If ...
Sean Choi
Oct 21, 2010 at 9:36 pm
Nov 9, 2010 at 9:14 pm -
it may be assembler, too bad scheme libs are scattered around written in far too many different flavors of assembler... It warms my heart though to realize that Scheme's usual small size and ...
Namekuseijin
Oct 13, 2010 at 9:09 pm
Nov 27, 2010 at 4:51 pm -
Hello. I have a class A that contains two classes B and C: class A: class B: self.x = 2 class C: Is there a way to access the x defined in B in class C? Thanks. -- F. Delente
Fab
Oct 18, 2010 at 1:09 pm
Oct 20, 2010 at 7:11 pm -
I was somewhat surprised to discover that Python 3 no longer allows an exception to be raised in an except clause (or rather that it reports it as a separate exception that occurred during the ...
Steve Holden
Oct 24, 2010 at 5:01 am
Nov 6, 2010 at 4:10 am -
In <i9n9ed$q03$1 at reader1.panix.com gb345 <gb345 at invalid.com writes: Thank you all for your comments and suggestions. Here's where I am now. 1. I first implemented a GUI using wx, but later ...
Gb345
Oct 22, 2010 at 2:25 pm
Oct 30, 2010 at 1:51 am -
haha, I've read some of the comics before. It's truly remarkably funny, no matter the language of your choice... going well down the rabbit hole should convince one... :)
Namekuseijin
Oct 27, 2010 at 6:00 pm
Feb 9, 2011 at 8:02 pm -
Hello all, So, I started learning python just recently. I got inspired by a project that related to the semantic web. I can see why this would be a language chosen for the applications that help to ...
B. M. Whealton
Oct 5, 2010 at 2:31 am
Oct 15, 2010 at 4:46 am -
PEP 249 says about executemany(): Prepare a database operation (query or command) and then execute it against all parameter sequences or mappings found in the sequence seq_of_parameters. are there ...
Roy Smith
Oct 12, 2010 at 3:10 pm
Oct 17, 2010 at 12:02 am -
Dijkstra came to his conclusion after seeing the results of students using the programming language Mesa, which does support all 4 forms of interval.
MRAB
Oct 5, 2010 at 7:41 pm
Oct 13, 2010 at 9:41 am -
Hi there. I am used to some languages like C, but I am just a complete newbie with Python and, while writing some small snippets, I had encountered some problems, with which I would sincerely ...
Rogério Brito
Oct 7, 2010 at 11:10 pm
Oct 11, 2010 at 4:55 pm -
I'm building a turn based RPG game as a hobby. The design is becoming increasingly complicated and confusing, and I think I may have tendency to over-engineer simple things. Can anybody please check ...
Dex
Oct 18, 2010 at 7:28 am
Nov 15, 2010 at 10:52 pm -
Hello all: I have a need to read .msg files exported from Outlook. Google search came out with a few very old posts about the topic but nothing really useful. The email module in Python is no help - ...
John Henry
Oct 10, 2010 at 9:51 pm
Oct 22, 2010 at 4:55 pm -
The short version of this question is: where can I find the algorithm used by the tuple class's __hash__ method? Now, for the long version of this question, I'm working with some complext Python ...
Kj
Oct 6, 2010 at 6:58 pm
Oct 10, 2010 at 8:57 pm -
I am a beginner in Python and would ask for a help. I was searching for smaller version of code to calculate factorial . Found this one def fact(x): return x 1 and x * fact(x - 1) or 1 But I don't ...
Geobird
Oct 27, 2010 at 6:25 am
Nov 1, 2010 at 4:41 pm -
Two modules: x.py: class x(object): pass y.py: from x import x class y(x): pass Now from the python command line: ['__builtins__', '__doc__', '__file__', '__name__', '__package__', 'x', 'y'] I do not ...
Brendan
Oct 21, 2010 at 6:09 pm
Oct 30, 2010 at 9:57 am -
Here's an obscure bit of Python semantics which is close to being a bug: ... classvar = 1 ... ... def fn1(self) : ... print("fn1: classvar = %d" % (self.classvar,)) ... self.classvar = 2 ... ...
John Nagle
Oct 10, 2010 at 5:30 am
Oct 15, 2010 at 11:50 pm -
recently wrote a article based on a debate here. (can't find the original thread on Google at the moment) ? ?What's List Comprehension and Why is it Harmful?? ...
Xah Lee
Oct 26, 2010 at 9:31 am
Nov 22, 2010 at 7:19 am -
It's clear but tedious to write: if 'monday" in days_off or "tuesday" in days_off: doSomething I currently am tending to write: if any([d for d in ['monday', 'tuesday'] if d in days_off]): ...
Cbrown
Oct 28, 2010 at 4:16 pm
Nov 1, 2010 at 1:38 am -
Hi. I installed eclipse/pydev today. I created a pydev project and added python source files with utf-8 BOM. Eclipse/Pydev reports lexical error : Lexical error at line 1, column 1. Encountered: ...
TheOne
Oct 4, 2010 at 8:03 am
Oct 31, 2010 at 9:26 pm -
i've looked on the web and here but i didn't find an answer : here is my code zlib.decompress(""" x???=??H?s~???\??? ...
Bussiere bussiere
Oct 11, 2010 at 9:37 am
Oct 16, 2010 at 2:13 pm -
Hi everyone i need a hint regarding the following exercise question: "Write a program that generates all Pythagorean triples whose small sides are no larger than n. Try it with n <= 200." what is "n" ...
Baba
Oct 21, 2010 at 10:51 am
Oct 24, 2010 at 11:56 pm -
I have been using generators for the first time and wanted to check for an empty result. Naively I assumed that generators would give appopriate boolean values. For example def xx(): l = [] for x in ...
Tony
Oct 14, 2010 at 9:16 am
Oct 15, 2010 at 4:12 pm -
I've been reading about the Unicode today. I'm only vaguely understanding what it is and how it works. Please correct my understanding where it is lacking. Unicode is really just a database of ...
Tobiah
Oct 19, 2010 at 7:02 pm
Oct 26, 2010 at 5:07 pm -
Hi all :) I've really been wondering about the following lately. The question is this: if there are no (real) private or protected members in Python, how can you be sure, when inheriting from another ...
Rock
Oct 3, 2010 at 8:07 pm
Oct 5, 2010 at 1:29 am -
I've been playing a bit with Python3.2a2, and frankly its charset handling looks _less_ safe than in Python 2. The offender is bytes.__str__: str(b'foo') == "b'foo'". It's often not clear from ...
Hallvard B Furuseth
Oct 7, 2010 at 9:33 pm
Oct 12, 2010 at 3:48 pm -
I am working with differential equations of the higher roots of negative one. (dividing enormous numbers into other enormous numbers to come out with very reasonable numbers). I am mixing this in to ...
Bj Raz
Oct 29, 2010 at 4:41 am
Nov 24, 2010 at 9:02 am -
I am loathe to duplicate programming in files that should just load a copy from a module. I tried all kinds of tricks to import a module from one level up. What's the secret? It works if I say: from ...
Gnarlodious
Oct 31, 2010 at 3:06 pm
Nov 4, 2010 at 2:48 am -
Given the following.. #!/usr/bin/python import urllib2 import sys import time while 1: try: con = urllib2.urlopen("http://www.google.com") data = con.read() print "connected" #The loop doesn't exit ...
Chad
Oct 5, 2010 at 2:38 am
Oct 13, 2010 at 9:08 am -
Following a suggestion from MRAB, I attempted to implement a frozendict class. My implementation took a lot more work than something this simple should take, and it still sucks. So I'm hoping someone ...
Kj
Oct 7, 2010 at 9:39 pm
Oct 10, 2010 at 12:54 am -
The documentation of the sqlite module at http://docs.python.org/library/sqlite3.html says: "...allows accessing the database using a nonstandard variant of the SQL..." But if you see SQLite website ...
Ravi
Oct 2, 2010 at 8:06 pm
Oct 4, 2010 at 9:04 pm -
`all_ascii(L)` is a function that accepts a list of strings L, and returns True if all of those strings contain only ASCII chars, False otherwise. What's the fastest way to implement `all_ascii(L)`? ...
Dun Peal
Oct 17, 2010 at 7:59 pm
Oct 29, 2010 at 8:57 pm -
I'm considering a nested mapping class for the collections module and would like to solicit feedback from people here on comp.lang.python: ...
Raymond Hettinger
Oct 21, 2010 at 11:19 pm
Oct 29, 2010 at 6:19 am -
Not Hyp: def _scrunch(**dict): result = {} for key, value in dict.items(): if value is not None: result[key] = value return result That says "throw away every item in a dict if the Value is None". ...
Phlip
Oct 21, 2010 at 4:32 am
Oct 22, 2010 at 6:38 pm -
Hello, When transmitting via UDP to a PLC, I run into a strange problem where socket.sendto returns double the number of characters sent in the datagram. I thought this was an error and used ...
Todd Walter
Oct 20, 2010 at 8:20 pm
Oct 22, 2010 at 5:41 pm -
Which is better for a beginner to get started in Python with? Thanks! An HTML attachment was scrubbed... URL: ...
Braden Faulkner
Oct 27, 2010 at 12:16 am
Oct 31, 2010 at 11:13 pm -
I tried the following... #!/usr/bin/python class foo: def first(self): print "Chad " def last(self): print "A " x = foo() y = x.first() y.last() But when I ran it, I got the following... [cdalten at ...
Chad
Oct 24, 2010 at 10:47 pm
Oct 25, 2010 at 5:48 pm -
I'm getting my Python environment set up on a new Snow Leopard machine, and I'd like to compile everything in 32 bit mode for the time being, because some of the extensions I need use APIs that ...
Gregory Ewing
Oct 13, 2010 at 12:29 am
Oct 15, 2010 at 2:00 am -
I have been programing in python for a while now and by in large love it. One thing I don't love though is that as far as I know iterators have no has_next type functionality. As a result if I want ...
Kelson Zawack
Oct 21, 2010 at 11:08 am
Oct 25, 2010 at 5:54 pm -
Hello Everyone, I'm new in this group and I hope it is ok to directly ask a question. My short question: I'm searching for a nice way to merge a list of tuples with another tuple or list. Short ...
Daniel Wagner
Oct 20, 2010 at 12:16 am
Oct 21, 2010 at 2:07 am -
Hi, I am new to this group, please forgive me if this is a repeat question. I am a new Python programmer but experienced in C/Unix. I am converting a shell script to Python which essentially loops ...
Roger Davis
Oct 13, 2010 at 9:58 pm
Oct 16, 2010 at 2:05 am -
First off, greetings from a newbie! Here's the deal. I gained a passable knowledge of Python nearly ten years ago. Then I decided a career in the computer sciences wasn't for me, and I let it go. Now ...
Craig McRoberts
Oct 28, 2010 at 6:14 pm
Oct 30, 2010 at 12:08 pm -
Hi All I have made a tool for load testing of my company's web-server product. The tool is written using Python 3.1. The tool basically does a HTTP or HTTPS post, gets response and parses the ...
Ashish Vyas
Oct 12, 2010 at 12:40 pm
Oct 14, 2010 at 12:32 pm -
Hello, how i can save a binary file, i read in the manual in the IO area but doesn' t show how to save it. Here is the code what i am using: s = open('/home/hidura/test.jpeg', 'wb') ...
Hidura
Oct 5, 2010 at 9:11 pm
Oct 10, 2010 at 4:46 am -
hi I am trying to write a compare method which takes two strings and find how many characters have changed. def compare_strings(s1,s2): pass text1="goat milk" text2="cow milk" print ...
Harryos
Oct 9, 2010 at 8:44 am
Oct 9, 2010 at 9:05 pm
Group Overview
group | python-list |
categories | python |
discussions | 444 |
posts | 2,391 |
users | 535 |
website | python.org |
535 users for October 2010
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)