Search Discussions

306 discussions - 2,092 posts

  • 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 ...
    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 TaylorAlec 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 ...
    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 ...
    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 ...
    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, ...
    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 ...
    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 EdwardsGrant 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 ...
    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 ...
    Apr 19, 2011 at 10:42 pm
    Apr 22, 2011 at 1:49 pm
  • Hi All, I've heard of Java CPUs. Has anyone implemented a Python CPU in VHDL or Verilog? -Brad
    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 LadaskyJohn 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 ...
    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 FurmanEthan 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 ...
    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
  • Hey, I released a new version (0.2.5) of my pythonic text-editor called Deditor. It is a text-editor aimed to fasten your python development. (it perfectly handels other languages too) Some features ...
    Apr 27, 2011 at 3:53 pm
    May 2, 2011 at 9:33 am
  • 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 KabailaAlgis 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 AngelicoChris 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', ...
    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 HChris 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üsErvin 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 SchaathunHans 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 ...
    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 AngelicoChris 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 BromVlastimil 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 BadoiuMihai 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 BrittonGerald 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 ...
    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'ApranoSteven 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 ?
    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 AlexanderRoger 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 NagyLaszlo 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žoDaniel 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 WinderPhil 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 LyabahAlexander 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 ScalfRusty 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 SchaathunHans 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) ...
    Apr 11, 2011 at 9:35 pm
    Apr 25, 2011 at 2:23 pm
  • 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 KabailaAlgis 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 BenUncle 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 SchaathunHans Georg Schaathun
    Apr 7, 2011 at 6:09 pm
    Apr 11, 2011 at 4:39 pm
  • I have unpacked the PyVISA files into the Python/lib/site-packages dir and from the IDLE GUI I get and error import visa Traceback (most recent call last): File "<pyshell#25 ", line 1, in <module ...
    Apr 1, 2011 at 3:29 pm
    Apr 23, 2011 at 12:26 am
  • 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 ...
    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 ...
    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 harperNeil 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?
    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 ...
    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 ...
    Apr 26, 2011 at 3:58 pm
    Apr 26, 2011 at 6:03 pm
  • 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 CeccarelliAldo Ceccarelli
    Apr 15, 2011 at 9:00 am
    Apr 19, 2011 at 6:16 am
Group Navigation
period‹ prev | Apr 2011 | next ›
Group Overview
grouppython-list @

420 users for April 2011

Chris Angelico: 145 posts Steven D'Aprano: 90 posts Mark: 80 posts Terry Reedy: 70 posts Dan Stromberg: 53 posts Ben Finney: 44 posts Chris Rebert: 42 posts Geremy condra: 36 posts Westley Martínez: 36 posts Peter Otten: 34 posts Grant Edwards: 31 posts Ian Kelly: 27 posts Thomas Rachel: 27 posts James Mills: 26 posts Paul Rubin: 26 posts Algis Kabaila: 23 posts Candide: 23 posts Hans Georg Schaathun: 23 posts MRAB: 23 posts Ethan Furman: 22 posts
show more