Search Discussions
-
Does anyone have (or know of) accurate totals and percentages on how Python is used? I'm particularly interested in the following groupings: - new development vs. stable code-bases - categories (web, ...
Eric Snow
Feb 11, 2012 at 9:02 pm
Feb 26, 2012 at 10:32 pm -
I get sick and tired of doing this!!! if maxlength == UNLIMITED: allow_passage() elif len(string) maxlength: deny_passage() What Python needs is some constant that can be compared to ANY numeric type ...
Rick Johnson
Feb 24, 2012 at 1:37 pm
Feb 27, 2012 at 12:25 pm -
The book I'm reading about using Tkinter only does this when creating the top-level window: app = Application() app.mainloop() and of course the Application class has subclassed the tkinter.Frame ...
John Salerno
Feb 29, 2012 at 5:06 am
Mar 5, 2012 at 7:45 pm -
New Science Discovery: Perl Idiots Remain Idiots After A Decade! A excerpt from the new book ?Modern Perl?, just published, chapter 4 on ?Operators?. Quote: ?The associativity of an operator governs ...
Xah Lee
Feb 29, 2012 at 8:09 am
Mar 12, 2012 at 8:20 pm -
-60.950000000000045 That's wrong. Proof http://www.wolframalpha.com/input/?i00.00-1041.00-555.74%2B530.74-794.95 -60.95 aka (-(1219/20)) Is there a reason Python math is only approximated? - Or is ...
Alec Taylor
Feb 22, 2012 at 6:13 pm
Feb 28, 2012 at 5:56 pm -
First of all: I don't have any first hand experience of smartphones but now that my trusted old GSM phone is getting old I decided I am in for an up-grade. It struck me it might be nice to get ...
Martin Schöön
Feb 15, 2012 at 8:58 pm
Feb 27, 2012 at 1:44 pm -
24
frozendict
Hi all, I've been trying for a few days (only a little bit at a time) to come up with a way of implementing a frozendict that doesn't suck. I'm gradually converging to a solution, but I can't help ...Evan Driscoll
Feb 9, 2012 at 1:23 am
Feb 13, 2012 at 9:15 pm -
PIL, PyCrypto and many other modules require a C compiler and linker. Unfortunately neither install on my computer, with a PATH with the following: C:\Program Files (x86)\Microsoft Visual Studio ...
Alec Taylor
Feb 5, 2012 at 2:40 pm
Aug 22, 2012 at 6:39 pm -
Hi I am new to python language. On my first day, somebody told me that if any python script file is opened with any editor except python editor, the file is corrupted. Some spacing or indentation is ...
Manish Sharma
Feb 23, 2012 at 10:13 pm
Feb 25, 2012 at 2:36 am -
I feel like the design of sum() is inconsistent with other language features of python. Often python doesn't require a specific type, only that the type implement certain methods. Given a class that ...
Buck Golemon
Feb 23, 2012 at 9:19 pm
Feb 24, 2012 at 9:58 pm -
So suppose I want to modify the sys.path on the fly before running some code which imports from one of the modules added. at run time I do sys.path.extend(paths_to_add) but it still doesn't work and ...
Andrea Crotti
Feb 1, 2012 at 4:15 pm
Feb 10, 2012 at 8:58 pm -
I am learning python and maybe this is obvious but I have not been able to see a solution. What I would like to do is to be able to execute a function within the namespace I would have obtained with ...
Olive
Feb 1, 2012 at 5:11 pm
Feb 2, 2012 at 12:34 am -
Sarge, a cross-platform library which wraps the subprocess module in the standard library, has been released. What does it do? ---------------- Sarge tries to make interfacing with external programs ...
Vinay Sajip
Feb 10, 2012 at 7:28 pm
Feb 17, 2012 at 5:29 pm -
How do you round down ALWAYS to nearest 100? Like, if I have number 3268, I want that rounded down to 3200. I'm doing my rounding like But, how to round DOWN?
Noydb
Feb 10, 2012 at 12:30 am
Feb 11, 2012 at 10:26 am -
In Python textbooks that I have read, it is usually not mentioned that we can very easily program Common LISP-style closures with Python. It is done as follows: ------------------------------------- ...
Antti J Ylikoski
Feb 4, 2012 at 12:27 am
Feb 10, 2012 at 7:55 am -
Hello experts, I am having trouble accessing the content of my list. my list content has 2-pair value with the exception of one which has single value. here is an example? ['a', 1, 'b', 1, 'c', 3, ...
Sammy Danso
Feb 7, 2012 at 12:27 pm
Feb 8, 2012 at 1:50 am -
This week I was slightly surprised by a behaviour that I've not considered before. I've long used for i, x in enumerate(seq): # do stuff as a standard looping-with-index construct. In Python for ...
Alex Willmer
Feb 24, 2012 at 12:30 am
Feb 29, 2012 at 12:18 am -
Hi! What is the best way to iterate thru a huge list having the 1st element a different process? I.e.: process1(mylist[0]) for el in mylist[1:]: process2(el) This way mylist is almost duplicated, ...
Paulo da Silva
Feb 1, 2012 at 1:39 am
Feb 2, 2012 at 7:38 am -
Has it been considered to add shell features to python, such that it can be used as a default shell, as a replacement for bash, etc. I'm sure everyone would agree that doing this would make the ...
SherjilOzair
Feb 18, 2012 at 6:58 pm
Feb 22, 2012 at 10:15 pm -
This is only peripherally a Python problem, but in case anyone has any good ideas I'm going to ask it. I have a routine to calculate an approximation of Lambert's W function, and then apply a ...
Steven D'Aprano
Feb 12, 2012 at 6:41 am
Feb 21, 2012 at 2:21 am -
I'm looking at a way of cycling around a sequence i.e. starting at some given location in the middle of a sequence and running to the end before coming back to the beginning and running to the start ...
Mark Lawrence
Feb 8, 2012 at 1:10 am
Feb 9, 2012 at 10:34 am -
Hi, I have this working function: def as_xml(self): out = etree.Element("or") for k in sorted(self.keys()): out.append(etree.Element("hostname", attrib={'op': '=', 'value': random.choice(self[k])})) ...
Matej Cepl
Feb 6, 2012 at 1:27 am
Feb 7, 2012 at 3:11 pm -
Hi all I seem to have a recurring battle with circular imports, and I am trying to nail it once and for all. Let me say at the outset that I don't think I can get rid of circular imports altogether. ...
Frank Millman
Feb 26, 2012 at 10:42 am
Feb 28, 2012 at 5:58 pm -
Hi, Could someone please tell me what the following sorting algorithm is called? Let an array contain the elements a_1, a_2, ..., a_N. Then: for i = 1 to N-1: for j = i+1 to N: if a_j < a_i then ...
Jabba Laci
Feb 14, 2012 at 3:01 pm
Feb 14, 2012 at 8:59 pm -
Hello, I've been looking for something similar to CoffeeScript, but for python. Does anyone know of such project? So far I haven't found any attempt to do this, so I took few regular expressions and ...
Michal Hantl
Feb 2, 2012 at 2:09 pm
Feb 7, 2012 at 3:52 am -
I'm trying to compute the total CPU load of an external process and it's children. (so I cannot use resource.getrusage) For the load of the process I can just grab it from /proc/X/stat. How do I get ...
Mihai Badoiu
Feb 28, 2012 at 6:33 pm
Feb 29, 2012 at 6:09 pm -
Hi, I'm implementing Python 3 extension using the Python C API. I am familiar with defining new types, implementing get/set for attributes, etc. I'm wondering, is there any mean to implement ...
Mateusz Loskot
Feb 9, 2012 at 11:43 am
Feb 13, 2012 at 11:57 am -
c = [1, 2, 3, 4, 5] class TEST(): c = [5, 2, 3, 4, 5] def add( self ): c[0] = 15 a = TEST() a.add() print( c, a.c, TEST.c ) result : [15, 2, 3, 4, 5] [5, 2, 3, 4, 5] [5, 2, 3, 4, 5] why a.add() do ...
Xixiliguo
Feb 24, 2012 at 5:55 am
Feb 28, 2012 at 2:06 pm -
I want to download content asynchronously. This would be straightforward to do threaded or across processes, but difficult asynchronously so people seem to rely on external libraries (twisted / ...
Plumo
Feb 23, 2012 at 6:58 am
Feb 25, 2012 at 9:44 pm -
Hi folks, often times in science one expresses a value (say 1.03789291) and its error (say 0.00089) in a short way by parentheses like so: 1.0379(9) One can vary things a bit, but let's take the ...
Daniel Fetchinson
Feb 16, 2012 at 12:18 am
Feb 17, 2012 at 12:13 pm -
It's a rare occurrence, but sometimes my script will terminate and I get this: Traceback (most recent call last): File "C:\path\to\script\script.py", line 992, in <module That's it. And the line ...
Andrew Berg
Feb 3, 2012 at 8:14 pm
Feb 15, 2012 at 9:41 pm -
Guide to: Learning Python Decorators New Book http://tinyurl.com/python-decorartor
Sajuptpm
Feb 9, 2012 at 5:56 pm
Feb 12, 2012 at 11:48 am -
Hello. I am admittedly a Python novice, and ran into some trouble trying to write a program that will pull multiple excel files all into one file, with each file on a different sheet. I am confident ...
SMac2347
Feb 7, 2012 at 6:14 pm
Feb 9, 2012 at 9:07 pm -
We're pleased to announce the immediate availability of release candidates for Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3 . The main impetus for these releases is fixing a security issue in Python's hash ...
Benjamin Peterson
Feb 25, 2012 at 5:56 pm
Feb 27, 2012 at 9:30 pm -
hello, I have a python script using only the standard libraries. Currently I use a Windows VM to generate exe's, which is cumbersome. Has anyone had success generating exe's from within Linux? Richard
Plumo
Feb 22, 2012 at 12:12 pm
Feb 26, 2012 at 11:57 am -
$ cd /usr/bin $ ls -l python* -rwxr-xr-x 2 root root 9496 Oct 27 02:42 python lrwxrwxrwx 1 root root 6 Oct 29 19:34 python2 - python -rwxr-xr-x 2 root root 9496 Oct 27 02:42 python2.7 $ diff -s ...
HoneyMonster
Feb 23, 2012 at 7:11 pm
Feb 24, 2012 at 5:22 pm -
Hi, I want to log time taken to complete database requests inside a method/ function using decorator . is it possible ???? I think, i have to inject log code inside the method/fuctions or modify it. ...
Sajuptpm
Feb 10, 2012 at 12:30 pm
Feb 11, 2012 at 7:53 am -
Hello there is it possible to have multiple namespaces within a single python module? I have a small app which is in three or four .py files. For various reasons I would like to (perhaps optionally) ...
Jkn
Feb 9, 2012 at 6:32 pm
Feb 10, 2012 at 4:28 pm -
I am quite new to Python (2.7 on Linux), and have built a few modules using wxPython/wxGlade for GUI elements and Psycopg2 for database access. I adhere mostly to the PEP8 guidelines, and use Pylint ...
HoneyMonster
Feb 8, 2012 at 5:15 pm
Feb 9, 2012 at 9:57 pm -
What is the cost of calling primes(n) below ? I'm mainly interested in knowing if the call to append is O(1), even amortized. Do lists in Python 3 behave like ArrayList in Java (if the capacity is ...
Franck Ditter
Feb 15, 2012 at 6:20 pm
Feb 16, 2012 at 12:41 am -
Hey Pythonistas, Consider the regular expression "$*". Compilation fails with the exception, "sre_constants.error: nothing to repeat". Consider the regular expression "(?=$)*". As far as I know it is ...
Devin Jeanpierre
Feb 14, 2012 at 4:38 am
Feb 15, 2012 at 1:43 pm -
How do you format a number to print with commas? Some quick searching, i came up with: '2,348,721' I'm a perpetual novice, so just looking for better, slicker, more proper, pythonic ways to do this. ...
Noydb
Feb 9, 2012 at 8:08 pm
Feb 10, 2012 at 3:06 am -
Below is some pretty simple code and the resulting output. Sometimes the code runs through but sometimes it just freezes for no apparent reason. The output pasted is where it just got frozen on me. ...
Eric Frederich
Feb 23, 2012 at 5:59 pm
Feb 28, 2012 at 6:12 pm -
Hi All, I'm pleased to announce the release of xlrd 0.7.2. This release, like the xlwt release, is long overdue and has been over 2.5 years in the making! The highlights: - All messaging and debug ...
Chris Withers
Feb 21, 2012 at 9:17 am
Feb 23, 2012 at 5:28 pm -
Hi, I am getting more and more discouraged from using XSLT for a transformation from one XML scheme to another one. Does anybody could share any experience with porting moderately complicated XSLT ...
Matej Cepl
Feb 13, 2012 at 11:20 am
Feb 17, 2012 at 9:11 pm -
Hey folks, I looked all through the list of mailing lists on the mail.python.orgserver and this seems to be the only one that might apply to me other than maybe the German list which did not seem to ...
Alan McKay
Feb 15, 2012 at 9:51 pm
Feb 16, 2012 at 4:29 pm -
I have the following very simplified situation from atexit import register def goodbye(): print("saying goodbye") def main(): while True: var = raw_input("read something") if __name__ == '__main__': ...
Andrea Crotti
Feb 15, 2012 at 1:12 pm
Feb 15, 2012 at 9:31 pm -
how to tell a method is class method or static method or instance method?
Zheng Li
Feb 13, 2012 at 6:59 am
Feb 15, 2012 at 6:31 pm -
I'd like to read in a stream of data which looks like this: the device sends out a byte-string of 11 bytes roughly every second: B0B0B0B0B03131B0B50D8A B0B0B0B0B03131B0B50D8A B0B0B031B63131B0310D8A ...
Jean Dupont
Feb 6, 2012 at 9:40 pm
Feb 7, 2012 at 5:44 pm -
I hope you are aware that this is about the slowest possible algorithm (well, the slowest one that doesn't do anything unnecessary). Since none of this is required when parsing or generating XHTML, I ...
Stefan Behnel
Feb 1, 2012 at 8:26 am
Feb 2, 2012 at 12:40 pm
Group Overview
group | python-list |
categories | python |
discussions | 270 |
posts | 1,442 |
users | 349 |
website | python.org |
349 users for February 2012
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)