Search Discussions
-
Python is built from C, Cobra is built from Cobra... Python does not require Microsoft .NET, nor MONO framework, Python has better community support, has a larger install base and developer ...
Harrismh777
Apr 6, 2011 at 8:03 am
Apr 18, 2011 at 7:34 am -
Good Afternoon, I'm looking for an IDE which offers syntax-highlighting, code-completion, tabs, an embedded interpreter and which is portable (for running from USB on Windows). Here's a mockup of the ...
Alec Taylor
Apr 16, 2011 at 3:20 am
May 24, 2011 at 5:19 am -
import os def fib(n): if n == 1: return(n) else: return (fib(n-1)+fib(n-2)) list=fib(20) print(list) The above function return the return (fib(n-1)+fib(n-2)) RuntimeError: maximum recursion depth ...
Lalit
Apr 30, 2011 at 3:22 am
May 15, 2011 at 7:29 pm -
I'm not a Pythonista, but I aspire to be. My current tools: Python, gvim, OS file system My current practices: When I write a Python app, I have several unorganized scripts in a directory (usually ...
Snorble
Apr 26, 2011 at 2:39 pm
May 13, 2011 at 3:53 am -
This is an idea I've had bouncing around in my head for a long time now. I propose the following syntax: return? expr be expanded to _temp = expr if _temp: return _temp It's a pattern I use all the ...
Zildjohn01
Apr 11, 2011 at 11:17 pm
Apr 21, 2011 at 10:13 am -
Consider the following code : # -------------------------------------- def bool_equivalent(x): return True if x else False # testing ... def foo(x): return 10*x class C: pass for x in [42, ...
Candide
Apr 16, 2011 at 8:24 pm
Apr 28, 2011 at 5:18 pm -
Hey everyone. I've written an online interactive Python tutorial atop Google App Engine: http://www.learnpython.org. All you need to do is log in using your Google account and edit the wiki to add ...
Ron
Apr 20, 2011 at 5:15 pm
Apr 26, 2011 at 1:06 am -
I'm have problems figuring out how to receive UDP broadcast packets on Linux. Here's the receiving code: ------------------------------receive.py------------------------------- #!/usr/bin/python ...
Grant Edwards
Apr 19, 2011 at 10:21 pm
Apr 21, 2011 at 2:22 pm -
You know Python is the best damn scripting language in the world. However we harbor a collective secret, an elephant sized skeleton in the community closet, a shameful scarlet letter of heartlessness ...
Rantingrick
Apr 14, 2011 at 12:39 am
Apr 16, 2011 at 4:06 pm -
Hello, I am planning to teach Python to a group of high school students, who have in-depth interest in programming, hacking etc. I am looking for some good material, what I could use as a basic guide ...
Passiday
Apr 19, 2011 at 10:42 pm
Apr 22, 2011 at 1:49 pm -
31
Python CPU
Hi All, I've heard of Java CPUs. Has anyone implemented a Python CPU in VHDL or Verilog? -BradBrad
Apr 1, 2011 at 3:38 pm
Apr 4, 2011 at 10:11 pm -
Hi folks, I'm developing some custom neural network code. I'm using Python 2.6, Numpy 1.5, and Ubuntu Linux 10.10. I have an AMD 1090T six-core CPU, and I want to take full advantage of it. I love to ...
John Ladasky
Apr 4, 2011 at 8:20 pm
Apr 11, 2011 at 7:25 pm -
About the standard function bool(), Python's official documentation tells us the following : bool([x]) Convert a value to a Boolean, using the standard truth testing procedure. In this context, what ...
Candide
Apr 8, 2011 at 4:26 pm
Apr 26, 2011 at 2:38 am -
For anybody interested in composition instead of multiple inheritance, I have posted this recipe on ActiveState (for python 2.6/7, not 3.x): ...
Ethan Furman
Apr 28, 2011 at 5:15 pm
Apr 30, 2011 at 12:39 am -
Hi coders... Before I start I don`t expect an easy answer except "No it can`t be done!". I have not tried it yet, I`m only asking for opinions ATM. (Except on the classic AMIGA and it DOES work for ...
Wisecracker
Apr 17, 2011 at 12:15 pm
Apr 18, 2011 at 10:42 pm -
Hello, after inserting this line if "@" in mail and comment not in ("????????? ? ??????? ?? ???????....", ""): iam getting the following error which i dont understand ...
Νικόλαος Κούρας
Apr 2, 2011 at 4:26 pm
Apr 6, 2011 at 9:08 pm -
19
Vectors
Hi, Are there any modules for vector algebra (three dimensional vectors, vector addition, subtraction, multiplication [scalar and vector]. Could you give me a reference to such module? platform - ...Algis Kabaila
Apr 20, 2011 at 7:47 am
Apr 26, 2011 at 11:26 am -
Apologies for interrupting the vital off-topic discussion, but I have a real Python question to ask. I'm doing something that needs to scan a dictionary for elements that have a particular beginning ...
Chris Angelico
Apr 15, 2011 at 2:10 am
Apr 15, 2011 at 4:10 pm -
I have an SQLite query that returns a list of tuples: [('0A',), ('1B',), ('2C',), ('3D',),... What is the most Pythonic way to loop through the list returning a list like this?: ['0A', '1B', '2C', ...
Gnarlodious
Apr 26, 2011 at 3:28 am
Apr 27, 2011 at 7:31 pm -
So I'm in a startup where we are considering using python as our primary development language for all the wonderful reasons you would expect. However, I've had a couple of things come up from mentors ...
Chris H
Apr 15, 2011 at 4:33 pm
Apr 20, 2011 at 8:01 pm -
Hello Python users, I'm working on a Python module in C - that's a cryptographic module, which uses a 3rd-party lib from a provider (a bank). This module will encrypt and decrypt the messages for the ...
Ervin Hegedüs
Apr 26, 2011 at 9:48 am
May 2, 2011 at 7:07 am -
I wonder if anyone has any experience with this ... I try to set up a simple client-server system to do some number crunching, using a simple ad hoc protocol over TCP/IP. I use two Queue objects on ...
Hans Georg Schaathun
Apr 26, 2011 at 7:55 pm
Apr 27, 2011 at 6:28 pm -
Let's say I have the following.... class BaseHandler: def foo(self): print "Hello" class HomeHandler(BaseHandler): pass Then I do the following... test = HomeHandler() test.foo() How can HomeHandler ...
Chad
Apr 21, 2011 at 3:43 pm
Apr 24, 2011 at 12:03 am -
Context: Embedded Python interpreter, version 2.6.6 I have a list of dictionaries, where each dictionary has a "type" element which is a string. I want to reduce the list to just the dictionaries ...
Chris Angelico
Apr 20, 2011 at 3:10 am
Apr 20, 2011 at 6:35 pm -
Hi all, I'd like to ask for comments or advice on a simple code for testing a "subdict", i.e. check whether all items of a given dictionary are present in a reference dictionary. Sofar I have: def ...
Vlastimil Brom
Apr 22, 2011 at 1:55 pm
Apr 23, 2011 at 7:26 am -
Hi, I have terrible performance for multiplication when one number gets very close to zero. I'm using cython by writing the following code: cdef int i cdef double x = 1.0 for 0 <= i < 10000000: x *= ...
Mihai Badoiu
Apr 26, 2011 at 1:40 pm
Apr 27, 2011 at 7:03 pm -
I apologize if this has been answered before or if it is easy to find in the docs. (I couldn't find it but might have missed it) I'm trying to understand the differences between namespaces in class ...
Gerald Britton
Apr 17, 2011 at 7:30 pm
Apr 20, 2011 at 3:59 am -
My interactive scripts are giving errors on the input(). I discovered another fairly significant change in Python3, as discussed in PEP 3111. I was a little flabbergasted to discover that input() was ...
Harrismh777
Apr 22, 2011 at 6:22 am
Apr 25, 2011 at 10:08 pm -
... return a ... 42 23 Is this an accident of implementation, or can I trust that changing function defaults in this fashion is guaranteed to work? -- Steven
Steven D'Aprano
Apr 24, 2011 at 9:58 am
Apr 25, 2011 at 2:24 pm -
Hello, I'm a newbie. What's the defference between and ?
Vino19
Apr 21, 2011 at 9:38 am
Apr 22, 2011 at 12:25 am -
Hi, I'm trying to understand how to pickle Python objects over a TCP socket. In the example below (based on code from Foundations of Python Network Programming), a client creates a dictionary (lines ...
Roger Alexander
Apr 19, 2011 at 6:53 pm
Apr 20, 2011 at 9:41 am -
Given this iterator: class SomeIterableObject(object): .... .... def __iter__(self): ukeys = self.updates.keys() for key in ukeys: if self.updates.has_key(key): yield self.updates[key] for rec in ...
Laszlo Nagy
Apr 20, 2011 at 12:52 pm
May 8, 2011 at 7:42 pm -
Hello guys, I need to detect the newline characters used in the file I am reading. For this purpose I am using the following code: def _read_lines(self): with ...
Daniel Geržo
Apr 23, 2011 at 6:09 pm
Apr 24, 2011 at 1:35 pm -
Hi, I'm having a go at using ipython as a command prompt for data analysis. Coming from Matlab, I'm used to typing multiple commands on the same line then using the up arrow to go through my history. ...
Phil Winder
Apr 16, 2011 at 1:55 pm
Apr 18, 2011 at 6:12 am -
Hi. My name is Alexander. I spend a lot of time in writing a new service checkio.org It's all about python, learn python, find the best solution in python. And Im looking for feedback from peoples ...
Alexander Lyabah
Apr 30, 2011 at 7:22 pm
May 5, 2011 at 9:43 am -
Greetings, I am just now learning python and am trying to use the index function with variables. list1 = ['pig', 'horse', 'moose'] list2 = ['62327', '49123', '79115'] a = list2[list1.index('horse')] ...
Rusty Scalf
Apr 28, 2011 at 12:42 am
Apr 29, 2011 at 5:43 pm -
Is there a simple way to find the external interface and bind a socket to it, when the hostname returned by socket.gethostname() maps to localhost? What seems to be the standard ubuntu configuration ...
Hans Georg Schaathun
Apr 25, 2011 at 7:37 pm
Apr 26, 2011 at 9:24 am -
setdefault should take **kw args in the case of needing to set multiple defaults at one time. I would even settle for an *arg list if i had to. Anything is better than... d.setdefault(blah, blah) ...
Rantingrick
Apr 11, 2011 at 9:35 pm
Apr 25, 2011 at 2:23 pm -
11
PYTHONPATH
Hi, An elementary question that is bugging me, regarding sys.path values.sys.path can be altered easily, but the changes last for the current session only. I would like the changes to stay for ...Algis Kabaila
Apr 15, 2011 at 8:33 am
Apr 18, 2011 at 3:31 pm -
I have lost the convenient feature that to edit a .py file I could right-click on the file name and reach the menu item "Edit with IDLE". The workaround is not hard, but it wouild be nice to get this ...
Uncle Ben
Apr 28, 2011 at 4:28 pm
Oct 21, 2011 at 2:33 pm -
Has anyone found a good system for literate programming in python? I have been trying to use pylit/sphinx/pdflatex to generate technical documentation. The application is scientific/numerical ...
Hans Georg Schaathun
Apr 7, 2011 at 6:09 pm
Apr 11, 2011 at 4:39 pm -
Here is my problem: Want to program in python to run sysadmin commands across 1000s of servers and gather the result in one place. Many times the commands need to be run as root. We cannot use ssh as ...
Babu
Apr 5, 2011 at 2:51 pm
Apr 10, 2011 at 2:42 pm -
I had a problem for which I've already found a "satisfactory" work-around, but I'd like to ask you if there is a better/nicer looking solution. Perhaps I'm missing something obvious. The code looks ...
R
Apr 8, 2011 at 3:55 pm
Apr 9, 2011 at 12:02 pm -
is there any fighting games(street fighter, mortal kombat, etc) made in python?
Neil harper
Apr 7, 2011 at 1:51 pm
Apr 8, 2011 at 3:58 am -
what are the advantages? if it wasn't for python 3 breaking backwards compatibility would it be the better choice?
Neil
Apr 5, 2011 at 12:42 pm
Apr 6, 2011 at 8:14 pm -
I'm using ElementTree to parse an XML file, but it stops at the second record (id = 002), which contains a non-standard ascii character, ?. Here's the XML: <?xml version="1.0"? <snapshot time="Mon ...
Mike
Apr 27, 2011 at 6:26 pm
Apr 28, 2011 at 6:24 am -
Hi everybody, how could I concatenate unicode strings ??? What I want to do is this: unicode('this an example language ') + unicode('espa?ol') but I get an: Traceback (most recent call last): File ...
Ariel
Apr 26, 2011 at 3:58 pm
Apr 26, 2011 at 6:03 pm -
8
Can you advice a Python library to query a lan subnet with SNMP and collect MAC addresses of nodes?
Hello All, in my specific problem I will be happy of a response where possible to: 1. distinguish different operating systems of answering nodes 2. collect responses of Wyse thin-clients with "Thin ...Aldo Ceccarelli
Apr 15, 2011 at 9:00 am
Apr 19, 2011 at 6:16 am
Group Overview
group | python-list |
categories | python |
discussions | 306 |
posts | 2,092 |
users | 420 |
website | python.org |
420 users for April 2011
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)