Search Discussions

436 discussions - 2,414 posts

  • 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 KorneychukRouslan 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 WilliamsSamuel 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 WalterBaz 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 ...
    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: ...
    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 WilliamsSamuel 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 ...
    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 ...
    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 ...
    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 KoltnerJoel 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 HallAlex 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 ...
    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 NagleJohn 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 WilliamsAdam 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 ...
    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, ...
    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 MoorePaul 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 SuberviVictor Subervi
    May 27, 2010 at 12:34 pm
    May 28, 2010 at 3:32 pm
  • 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, ...
    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 ...
    May 15, 2010 at 10:34 pm
    May 19, 2010 at 5:19 pm
  • 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' ...
    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 kHarry 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 LeeJackie 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 ...
    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 condraGeremy 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 vickroyJ 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)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 EijkhoutVictor 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] ...
    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 ...
    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 EckhardtUlrich 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 ...
    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 ...
    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 BassiSebastian 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 NagleJohn 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 ...
    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 verbeekTimo 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 ...
    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 SimionatoMichele 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 CohenBen 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 GanaultGilles 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 PorterJames 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() ...
    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 ...
    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 ArnoldTim 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 ...
    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 ...
    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 ...
    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
    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 jhaMannu jha
    May 16, 2010 at 7:02 am
    May 17, 2010 at 7:35 pm
Group Navigation
period‹ prev | May 2010 | next ›
Group Overview
grouppython-list @

508 users for May 2010

Patrick Maupin: 109 posts Terry Reedy: 76 posts Chris Rebert: 69 posts Steven D'Aprano: 62 posts Stefan Behnel: 57 posts Superpollo: 52 posts Lawrence D'Oliveiro: 44 posts Ed Keith: 40 posts Aahz: 39 posts Paul Boddie: 36 posts Carl Banks: 35 posts Peter Otten: 35 posts Adam Tauno Williams: 30 posts Tim Chase: 30 posts MRAB: 29 posts James Mills: 28 posts Kaklis: 27 posts Bryan: 26 posts Lie Ryan: 25 posts Jean-Michel Pichavant: 24 posts
show more