Search Discussions
-
87
The real problem with Python 3 - no business case for conversion (was "I strongly dislike Python 3")
That's the real issue, not parentheses on the "print" statement. Where's the business case for moving to Python 3? It's not faster. It doesn't do anything you can't do in Python 2.6. There's no ...John Nagle
Jul 2, 2010 at 7:07 pm
Jul 8, 2010 at 1:44 pm -
Just a little reminder: Microsoft has withdrawn VS2008 in favor of VS2010. The express version is also unavailable for download. :(( We can still get a VC++ 2008 compiler required to build extensions ...
Sturlamolden
Jul 6, 2010 at 3:50 pm
Jul 29, 2010 at 9:47 am -
I'm an old Perl-hacker, and am trying to Dive in Python. I have some easy issues (Python 2.6) which probably can be answered in two seconds: 1. ?Why is it that I cannot use print in booleans?? ?e.g.: ...
Wheres pythonmonks
Jul 11, 2010 at 5:48 pm
Aug 6, 2010 at 7:41 pm -
Hi folks, If I'm only interested in linux and windows I know I can do ################################ import os import platform if platform.system( ) == 'Linux': clear = 'clear' else: clear = 'cls' ...
Daniel Fetchinson
Jul 27, 2010 at 12:54 pm
Aug 6, 2010 at 2:42 am -
Let me tell you folks about a recent case of culo rojo i experianced whilst creating a customized bin packer with Python. First i want to say that i actually like the fact that i can do this.. py a = ...
Rantingrick
Jul 11, 2010 at 5:38 am
Jul 13, 2010 at 6:33 pm -
Why is the default value of an int zero? <type 'int' How do I build an "int1" type that has a default value of 1? [Hopefully no speed penalty.] I am thinking about applications with ...
Wheres pythonmonks
Jul 29, 2010 at 6:12 pm
Dec 8, 2010 at 4:04 am -
43
Builtn super() function. How to use it with multiple inheritance? And why should I use it at all?
Hi! I have two super classes: class SuperClass1(object): def __init__(self, word): print word class SuperClass2(object): def __init__(self, word, word2): print word, word2 Also I have subclass of ...Lacrima
Jul 24, 2010 at 7:47 am
Aug 2, 2010 at 9:28 pm -
I was just looking at Debian's benchmarks. It seems LuaJIT is now (on median) beating Intel Fortran! C (gcc) is running the benchmarks faster by less than a factor of two. Consider that Lua is a ...
Sturlamolden
Jul 4, 2010 at 3:30 am
Jul 13, 2010 at 3:38 pm -
Are there any documents about multiple versionsof Python coexisting in the same OS ( Windows in my case ) and what pitfalls to look out for ? I have already run into a number of them. I installed ...
Edward Diener
Jul 24, 2010 at 3:17 am
Jul 26, 2010 at 5:37 pm -
Dear Python-User, today i create some slides about floating point arithmetic. I used an example from http://docs.python.org/tutorial/floatingpoint.html so i start the python shell on my linux ...
David mainzer
Jul 7, 2010 at 11:52 am
Jul 9, 2010 at 3:41 pm -
why is this group being spammed?
Be.krul
Jul 18, 2010 at 5:01 am
Jul 27, 2010 at 4:27 am -
"Democracy is sick in the US, government monitors your Internet" http://www.youtube.com/watch?v+fCJq_zIdk&feature=fvsr Enjoy .....
Bolega
Jul 7, 2010 at 8:56 pm
Aug 5, 2010 at 2:26 pm -
i have been asked to guarantee that a proposed Python application will run continuously under MS Windows for two months time. And i am looking to know what i don't know. The app would read instrument ...
Les Schaffer
Jul 9, 2010 at 7:13 pm
Jul 16, 2010 at 2:13 pm -
Hello, this is obviously a Python OO question: Since Python isn't stringly typed, single-dispatch isn't available per se. So is the "double-dispatch" Visitor pattern, which is usually used in OO ...
Karsten Wutzke
Jul 15, 2010 at 5:58 pm
Jul 18, 2010 at 8:09 am -
Hi, I've got an Ascii file with some latin characters. Specifically \xe1 and \xfc. I'm trying to import it into a Postgresql database that's running in Unicode mode. The Unicode converter chokes on ...
Joe Goldthwaite
Jul 28, 2010 at 6:32 pm
Jul 31, 2010 at 2:06 am -
hi all, I have a class (FuncDesigner oofun) that has no attribute "size", but it is overloaded in __getattr__, so if someone invokes "myObject.size", it is generated (as another oofun) and connected ...
Dmitrey
Jul 20, 2010 at 10:10 am
Jul 28, 2010 at 4:59 pm -
hello, friendliest prog lang community on earth ;) i'm feeling that (0) delegation pattern thru descriptor encourages dedicated delegate for each task, if feeling: print(benefits) (1) the delegate is ...
Kedra marbun
Jul 2, 2010 at 1:28 pm
Jul 10, 2010 at 2:02 am -
source at: http://github.com/lkcl/grailbrowser $ python grail.py (note the lack of "python1.5" or "python2.4") conversion of the 80 or so regex's to re has been carried out. entirely successfully or ...
Luke Kenneth Casson Leighton
Jul 11, 2010 at 3:59 am
Jul 14, 2010 at 8:47 pm -
A new python convert is now looking for a replacement for another perl idiom. In particular, since Perl is weakly typed, I used to be able to use unpack to unpack sequences from a string, that I ...
Wheres pythonmonks
Jul 28, 2010 at 1:15 pm
Aug 8, 2010 at 4:34 am -
Why doesn't python's list append() method return the list itself? For that matter, even the reverse() and sort() methods? I found this link (http://code.google.com/edu/languages/google-python- ...
Dhruvbird
Jul 11, 2010 at 3:59 pm
Jul 16, 2010 at 5:40 pm -
I mean to get the man page for '[' like in the following code. x=[1,2,3] But help('[') doesn't seem to give the above usage. ########### Mutable Sequence Types ********************** List objects ...
Peng Yu
Jul 16, 2010 at 5:01 pm
Jul 18, 2010 at 4:45 pm -
Another source of asininity seems to be the naming conventions of the Python language proper! True/False start with an upper case and i applaud this. However str, list, tuple, int, float --need i go ...
Rantingrick
Jul 11, 2010 at 7:26 am
Jul 16, 2010 at 12:59 am -
On behalf of the Python development team, I'm jocund to announce the second release candidate of Python 2.7. Python 2.7 will be the last major version in the 2.x series. However, it will also have an ...
Benjamin Peterson
Jul 4, 2010 at 3:34 pm
Jul 8, 2010 at 3:30 pm -
I am having some problems with unicode from json. This is the error I get UnicodeEncodeError: 'ascii' codec can't encode character u'\x93' in position 61: ordinal not in range(128) I have kind of ...
Dirknbr
Jul 23, 2010 at 10:14 am
Aug 7, 2010 at 2:37 pm -
19
Hello
Hello! I am new to python and pretty new to programming (I have some expertise wit R statistical programming language). I am just starting, so my questions may be a little bit stupid. Can anyone ...Dani Valverde
Jul 9, 2010 at 4:31 pm
Jul 13, 2010 at 8:47 pm -
Hello, I have a list of integers: x = [ 0, 1, 2, 1, 1, 0, 0, 2, 3 ] And would like to compute the cumulative sum of all the integers from index zero into another array. So for the array above, I ...
Dhruvbird
Jul 19, 2010 at 11:18 am
Aug 2, 2010 at 5:29 pm -
17
rstrip()
$ python Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55) [GCC 4.4.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. 'x.vs' I expected 'x.vsd' as a return value.Jason Friedman
Jul 16, 2010 at 4:58 pm
Jul 19, 2010 at 7:06 am -
[Cross-posted comp.lang.python and comp.lang.c++] I lack experience with shared libraries in *nix and so I need to ask... This is about "cppy", some support for writing Python extensions in C++ that ...
Alf P. Steinbach /Usenet
Jul 9, 2010 at 3:52 pm
Jul 14, 2010 at 10:39 am -
I develop in an IDLE window. Module M says 'from service import *'. Next I correct a mistake in function 'service.f'. Now 'service.f' works fine. I do 'reload (service); reload (M)'. The function ...
Frederic Rentsch
Jul 9, 2010 at 1:02 pm
Jul 18, 2010 at 12:09 am -
Hi, R_HOME is set in my shell (bash). But os.environ doesn't have it. I'm not sure what it does when os module is imported. But it seems that os.environ doesn't capture all the environment variable ...
Peng Yu
Jul 26, 2010 at 11:36 pm
Aug 12, 2010 at 4:16 am -
hello guys.. I'm new at python programming and i'm having some problems with a script that i have been developing for my final project of my graduation. I have a script that is supposed to make a ...
Ritchy lelis
Jul 5, 2010 at 11:45 am
Jul 16, 2010 at 5:41 am -
14
floatref
Hi all, I have two objects that should both be able to alter a shared float. So i need something like a mutable float object, or a float reference object. Does anybody know if something like that ...Roald de Vries
Jul 13, 2010 at 5:26 pm
Jul 15, 2010 at 9:48 am -
Hello, I want to send error messages with SMTPHandler logging. But SMTPHandler does not seem to be unicode aware. Is there something doable without playing with sys.setdefaultencoding ? import ...
Norbert
Jul 5, 2010 at 10:07 am
Jan 14, 2012 at 8:25 am -
This is a style question rather than a programming question. How large (how many KB, lines, classes, whatever unit of code you like to measure in) should a module grow before I should break it up ...
Steven D'Aprano
Jul 9, 2010 at 4:37 am
Jul 9, 2010 at 9:38 pm -
Hi; I have this code: sql = 'insert into personalDataKeys values (%s, %s, %s)' % (store, user, ', %s'.join('%s' * len(col_vals)) cursor.execute(sql, col_vals) Is this open to injection attacks? If ...
Victor Subervi
Jul 7, 2010 at 6:38 pm
Jul 8, 2010 at 5:48 pm -
Terry Reedy
Jul 4, 2010 at 11:14 pm
Jul 6, 2010 at 10:27 am -
Hi I'm still kind of confused about the terminology on classes in python. Could you please let me know what the equivalent terms for the following C++ terms? constructor destructor member function ...
Peng Yu
Jul 26, 2010 at 9:52 pm
Aug 24, 2010 at 8:06 pm -
Hi guys, I was wondering what would be better to do some medium to heavy book keeping in memory - Ordered Dictionary or a plain simple Dictionary object?? Regards, N4v
Navkirat Singh
Jul 29, 2010 at 1:47 am
Aug 3, 2010 at 8:37 am -
I'm trying to read in and parse an ascii type file that contains information that can span several lines. Example: createNode animCurveTU -n "test:master_globalSmooth"; setAttr ".tan" 9; setAttr -s 4 ...
Brandon Harris
Jul 21, 2010 at 2:42 pm
Jul 22, 2010 at 12:25 am -
Is there any way to expose the PEP 3118 buffer interface for objects that aren't extension types? Currently, I can expose the NumPy array interface (using either __array_interface__ or ...
Ken Watford
Jul 20, 2010 at 10:09 pm
Jul 21, 2010 at 9:58 am -
The escape sequence \ENTER allows to split a string over 2 consecutive lines. On the other hand, it seems impossible to split a numeric litteral across multiple lines, compare : ... 000\ ... 000" ...
Candide
Jul 15, 2010 at 1:30 am
Jul 17, 2010 at 1:02 am -
If I write things with the intermediate variables like below, everything works: ['q', 'u', 'i', 'c', 'k', ' ', 'b', 'r', 'o', 'w', 'n', ' ', 'f', 'o', 'x', ' ', 'j', 'u', 'm', 'p', 's', ' ', 'o', ...
Mladen Gogala
Jul 1, 2010 at 3:50 am
Jul 2, 2010 at 1:18 am -
Hi, I want to measure a function run time. I read http://docs.python.org/library/time.html?but I?am confused and don't know which one is suitable. I don't?know is daylight timing important or not.... ...
Mahmood Naderan
Jul 29, 2010 at 12:34 pm
Aug 7, 2010 at 5:02 pm -
Hi, I am making a first large project in python and am having quite a bit of difficulty unscrambling various python versions and what they can/cannot do. To wit, I must communicate with certain ...
Jeffrey Gaynor
Jul 28, 2010 at 11:41 pm
Jul 31, 2010 at 6:06 pm -
This webpage http://www.python.org/dev/peps/pep-0008/ recommends the following. It looks to me that both styles are fine. Could anybody let me know what the rationale is behind this recommendation? - ...
Peng Yu
Jul 26, 2010 at 10:20 pm
Jul 31, 2010 at 1:00 am -
Hi, I'm not a Python programmer but I'm interested in it and I found this table from Norvig that dates for some years (I re-posted it temporarily on my site below to take it out of context a little). ...
Francogrex
Jul 24, 2010 at 12:45 pm
Jul 28, 2010 at 2:26 am -
Hi, guys. As a regular user of python, I am often annoyed by the fact that the official python docementation is too short and too simple to satisfy my requirement. While working with socket, I want ...
March
Jul 23, 2010 at 3:18 am
Jul 24, 2010 at 8:17 pm -
The blist package contains several container types to supplement those built-in to Python. These types closely mirror the built-in types' methods, so the learning curve is close to zero. The package ...
Daniel Stutzbach
Jul 21, 2010 at 2:47 pm
Jul 23, 2010 at 9:26 pm -
I'm pleased to announce the release of inflect.py v0.1.8, a module that correctly generates: * the plural of singular nouns and verbs * the singular of plural nouns * ordinals * indefinite articles * ...
Paul
Jul 15, 2010 at 11:00 am
Jul 16, 2010 at 4:59 pm -
I get sometimes a Errno 9 Bad file descriptor the code is too long to show it here but what are the circumstances this could happen? A web search showed nothing. I have especially the feeling Python ...
Joblack
Jul 12, 2010 at 12:48 am
Jul 16, 2010 at 12:07 am
Group Overview
group | python-list |
categories | python |
discussions | 436 |
posts | 2,555 |
users | 529 |
website | python.org |
529 users for July 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)