Search Discussions
-
Hi, I'm new here. I'm working on a program that exposes C++ declarations to Python and I was wondering if there is any interest in it. It's a hobby project. I was originally using Boost.Python on ...
Rouslan Korneychuk
May 3, 2010 at 8:44 pm
May 20, 2010 at 10:42 pm -
Dear Friends, I'm looking for some help from the Python community. I hope this is the right place to ask for information. I'm putting together a website aimed at high school students and teachers, ...
Samuel Williams
May 3, 2010 at 12:05 pm
May 8, 2010 at 4:21 am -
Python 2.6.4 (r264:75706, Mar 7 2010, 02:18:40) [GCC 4.4.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. '/home/baz/tmp/xxx' Traceback (most recent call last): ...
Baz Walter
May 3, 2010 at 12:42 pm
May 12, 2010 at 11:25 am -
python is not a new programming language ,it has been there for the last .... 15+ years or so ? right ? however by having a look at this page http://wiki.python.org/moin/Applications i could not see ...
Deep_Feelings
May 21, 2010 at 10:21 am
May 31, 2010 at 3:58 pm -
... how many positive integers less than n have digits that sum up to m: In [197]: def prttn(m, n): tot = 0 for i in range(n): s = str(i) sum = 0 for j in range(len(s)): sum += int(s[j]) if sum == m: ...
Superpollo
May 19, 2010 at 7:58 pm
Jun 11, 2010 at 8:19 pm -
Dear Friends, Is Python a functional programming language? Is this a paradigm that is well supported by both the language syntax and the general programming APIs? I heard that lambdas were limited to ...
Samuel Williams
May 10, 2010 at 12:24 pm
May 16, 2010 at 5:05 pm -
Hello I am trying to find if there is a string OR list function that will search a list of strings for all the strings that start with 'a' & return a new list containing all the strings that started ...
Jimbo
May 10, 2010 at 8:40 am
May 12, 2010 at 4:32 pm -
I have a question about best practices when it comes to line wrapping/ continuation and indentation, specifically in the case of an if statement. When I write an if statement with many conditions, I ...
HH
May 27, 2010 at 12:22 pm
Jun 9, 2010 at 4:53 pm -
Hi This is a simple question. I'm looking for the fastest way to calculate the leading whitespace (as a string, ie ' '). Here are some different methods I have tried so far --- solution 1 a = ' some ...
Dasacc22
May 8, 2010 at 5:19 pm
May 12, 2010 at 4:10 am -
Just curious... in Microsoft's Visual Studio (and I would presume some other tools), for many languages (both interpreted and compiled!) there's an "edit and conitnue" option that, when you hit a ...
Joel Koltner
May 12, 2010 at 5:42 pm
May 22, 2010 at 1:03 pm -
Hi all, I am now trying to allow my classes, all of which subclass a single class (if that is the term), to provide optional arguments. Here is some of my code: class Craft(): def __init__(self, ...
Alex Hall
May 21, 2010 at 2:56 am
May 21, 2010 at 10:27 pm -
Hi, How can I set up global variables for the entire python applications? Like I can call and set this variables in any .py files. Think of it as a global variable in a single .py file but this is ...
AON LAZIO
May 16, 2010 at 5:50 pm
May 20, 2010 at 6:17 pm -
The major Red Hat based Linux distros are still shipping with Python 2.4. As a result, almost all hosting providers are running obsolete versions of Python. The big problem seems to be that "cPanel" ...
John Nagle
May 29, 2010 at 6:43 pm
Jun 2, 2010 at 5:40 am -
Say I have an XML document that begins with: <?xml version="1.0" encoding="utf-8"? <dsml:dsml xmlns:dsml="http://www.dsml.org/DSML" ... How can one access the namespaces define in this node? I've ...
Adam Tauno Williams
May 15, 2010 at 6:37 pm
May 16, 2010 at 3:55 pm -
I'm interested in improving my python design by studying a large, well-designed codebase. Someone (not a python programmer) suggested Django. I realize that Django is popular, but can someone comment ...
TomF
May 3, 2010 at 7:24 pm
May 13, 2010 at 12:37 pm -
Hi, I've a list that looks like following a = [ [1,2,3,4], [5,6,7,8] ] Currently, I'm iterating through it like for i in [k for k in a]: for a in i: print a but I was wondering if there is a shorter, ...
Oltmans
May 8, 2010 at 8:41 pm
May 10, 2010 at 11:30 am -
doesn't react to a keyboard interrupt until the timeout expires. Specifically, if I do s = socket.socket() select.select([s], [], [], 30) and then press Ctrl-C, Python waits for the 30 seconds before ...
Paul Moore
May 6, 2010 at 3:59 pm
May 9, 2010 at 4:46 pm -
Hi; I have this code: sql = "insert into %s (%s) values ('%%s');" % (personalDataTable, string.join(cols[1:], ', ')) # cursor.execute(sql, string.join(vals[1:], "', '")) cursor.execute('insert into ...
Victor Subervi
May 27, 2010 at 12:34 pm
May 28, 2010 at 3:32 pm -
15
fast regex
hi, I was working with regex on a very large text, really large but I have time constrained. Does python has any other regex library or string manipulation library that works really fast? Thanks, ...James_027
May 6, 2010 at 2:52 pm
May 11, 2010 at 7:46 pm -
This isn't about Python but I'm seeking suggestions as to the best way to access the newsgroup. It seems that messages are coming from a number of sources, such as gmane and google groups. The ...
Cjw
May 15, 2010 at 10:34 pm
May 19, 2010 at 5:19 pm -
13
parsing XML
Hi to all, let's say we have the following Xml <team <player name='Mick Fowler' age='27' height='1.96m' <points 17.1</points <rebounds 6.4</rebounds </player <player name='Ivan Ivanovic' age='29' ...Kaklis
May 14, 2010 at 2:57 pm
May 17, 2010 at 10:23 am -
Write a spell checking tool that will identify all misspelled word in a text file using a provided dictionary. The program will accept either one or two command line parameters. 1. The first command ...
Harry k
May 14, 2010 at 8:19 am
May 21, 2010 at 4:43 pm -
Hello there, I have a 22 GB binary file, a want to change values of specific positions. Because of the volume of the file, I doubt my code a efficient one: #! /usr/bin/env python #coding=utf-8 import ...
Jackie Lee
May 14, 2010 at 9:40 am
May 16, 2010 at 12:32 am -
this must be easy but its taken me a couple of hours already i have a=[2,3,3,4,5,6] i want to know the indices where a==3 (ie 1 and 2) then i want to reference these in a ie what i would do in IDL is ...
A
May 13, 2010 at 2:36 pm
May 14, 2010 at 12:18 am -
I'm unsure if this qualifies as a bug (it is also clearly user error) but I just ran into a situation where open() was inadvertantly called on a False, and I was somewhat surprised to see that this ...
Geremy condra
May 11, 2010 at 9:40 pm
May 13, 2010 at 3:04 am -
Hello, I apologize if this is not the appropriate forum for a question about Hudson (http://hudson-ci.org/), but I did not know where else to ask and my web searches have not been fruitful. I'm ...
J vickroy
May 7, 2010 at 6:44 pm
May 11, 2010 at 4:46 pm -
Hello World - I'm new to both Python and this list, but here's hoping someone can spot my problem. System: Mac OS-X, 10.6.3 (Intel dual quad processor) Using Python 2.6.1, and pyserial-2.5_rc2-py2.6 ...
William R. Wing (Bill Wing)
May 7, 2010 at 4:30 pm
May 8, 2010 at 2:49 am -
I have two long ints, both too long to convert to float, but their ratio is something reasonable. How can I compute that? The obvious "(1.*x)/y" does not work. Victor. -- Victor Eijkhout -- eijkhout ...
Victor Eijkhout
May 3, 2010 at 3:17 pm
May 6, 2010 at 9:26 am -
Hi to all, i'm creating a command line application using asyncore and cmd. At if __name__ == '__main__': import socket args = sys.argv[1:] if not args: print "Usage: %s querystring" % sys.argv[0] ...
Kaklis
May 25, 2010 at 8:42 am
May 26, 2010 at 8:29 am -
Hi All, I use Ubuntu 64 bit and need to develop a programme (ideally in Python) to work on data that is contained in a Microsoft Access 2003 database. I do not need to modify the database, simply ...
Jimoid
May 19, 2010 at 9:28 am
May 25, 2010 at 9:00 am -
Hi! I wrote a simple loop like this: d = {} ... for k in d: if some_condition(d[k]): d.pop(k) If I run this, Python complains that the dictionary size changed during iteration. I understand that the ...
Ulrich Eckhardt
May 11, 2010 at 3:08 pm
May 14, 2010 at 8:19 pm -
Hello I have a relatively simple thing to do; move an object from one to list into another. But I think my solution maybe inefficient & slow. Is there a faster better way to move my stock object from ...
Jimbo
May 1, 2010 at 2:16 am
May 7, 2010 at 9:51 pm -
I want Python pack that can run without being installed, mostly for testing programs. As I read, Movable Python can run without being installed. It needs no registry entries and knows the path to all ...
Balzer
May 5, 2010 at 12:47 pm
May 7, 2010 at 2:21 pm -
Hello, I want to announce that the publisher of "Python for Bioinformatis" (CRC Press) allowed me to publish a chapter from my book. I decided to publish the chapter about "Python and databases". I ...
Sebastian Bassi
May 28, 2010 at 2:45 am
May 31, 2010 at 8:22 am -
MySQLdb won't install as non-root on Python 2.6 because its "setup.py" file requires "setuptools". "setuptools", unlike "distutils", isn't part of the Python 2.6 distribution. IMPORTANT PACKAGES ...
John Nagle
May 30, 2010 at 6:56 am
May 30, 2010 at 10:57 pm -
Hello, let S be a python set which is not empty (http://docs.python.org/library/sets.html) i would like to obtain one element (anyone, it doesn't matter which one) and assign it to a variable. How ...
Gerardob
May 14, 2010 at 3:24 pm
May 17, 2010 at 4:24 pm -
I'm planning to create a human word program A human inputs a string "Give me the weather for London please." Then I will strip the string. "weather for london" Then I get the useful information. ...
Timo verbeek
May 15, 2010 at 11:02 am
May 17, 2010 at 7:26 am -
I want implement a function that walks through a directory tree and performs an analsysis of all the subdirectories found. The task has two essential requirements that, AFAICT, make it impossible to ...
Kj
May 11, 2010 at 7:49 pm
May 13, 2010 at 4:35 am -
Say you have a project with a lot of documentation in the form of Sphinx pages (for instance a book project). What is the the easiest way to publish it on the Web? I see that GitHub Pages allows you ...
Michele Simionato
May 4, 2010 at 5:57 am
May 10, 2010 at 3:53 pm -
Is there a pythonic way to collect and display multiple exceptions at the same time? For example let's say you're trying to validate the elements of a list and you'd like to validate as many of the ...
Ben Cohen
May 7, 2010 at 3:50 am
May 10, 2010 at 9:50 am -
Hello I'd like to build a prototype that will combine a web server as front-end (it must support GZIPping data to the remote client when there are a lot of data to return), and SQLite as back-end, ...
Gilles Ganault
May 3, 2010 at 7:46 am
May 4, 2010 at 4:31 pm -
I've been trying to write a Python C extension module that uses NumPy and has a subtype of numpy.ndarray written in C. However, I've run into a snag: calling numpy.ndarray.__new__(mysubtype, ...) ...
James Porter
May 2, 2010 at 6:03 am
May 3, 2010 at 12:41 am -
Hi at all, I have a small problem with Py_single_input, that I dont really know what it actually does. I created my own interactive interpreter loop and when I create objects like p = TestObject() ...
Moerchendiser2k3
May 29, 2010 at 12:34 pm
Jun 17, 2010 at 11:18 pm -
I vote for adding the Python package "pubsub" to the Python standard library. It has recently been added to wxpython (replacing the old wx.lib.pubsub package), but it has application to non-gui ...
Tom
May 26, 2010 at 11:26 am
Jun 4, 2010 at 5:50 am -
Hi, I'm using multiprocessing's BaseManager to create a server on one machine and a client on another. The client fires a request and the server does some work, the result of which ends up on a ...
Tim Arnold
May 26, 2010 at 6:47 pm
Jun 2, 2010 at 11:00 pm -
Hello all, I've been using Python properties quite a lot lately and I've found a few things that are a bit annoying about them in some cases. I wondered if I missed something or if anybody else has ...
Eb303
May 27, 2010 at 12:37 pm
May 28, 2010 at 3:01 pm -
Hi, The code below is giving me the error: Traceback (most recent call last): File "C:\Users\Administrat??r\Desktop\test.py", line 4, in <module UnicodeDecodeError: 'utf8' codec can't decode byte ...
Barry
May 25, 2010 at 7:13 pm
May 27, 2010 at 5:00 am -
I'd like to install python on an embedded system. It's a powerful x86- based computer with the only limitation of having a small-size flash ROM as its secondary storage. So there is no hard drive and ...
Nima
May 17, 2010 at 4:12 pm
May 19, 2010 at 8:32 pm -
... return "WOW" ... 'WOW' now, i would like to "list" the funcion definition, something like this: def myfun(): return "WOW" is there something like this around? bye
Superpollo
May 18, 2010 at 5:31 pm
May 19, 2010 at 2:36 am -
Hi, I have few files like this: file1: 22 110.1 33 331.5 22.7 5 271.9 17.2 33.4 4 55.1 file1 has total 4 column but some of them are missing in few row. file2: 5 H 22 0 file3: 4 T 5 B 22 C 121 S in ...
Mannu jha
May 16, 2010 at 7:02 am
May 17, 2010 at 7:35 pm
Group Overview
group | python-list |
categories | python |
discussions | 436 |
posts | 2,414 |
users | 508 |
website | python.org |
508 users for May 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)