FAQ

Search Discussions

390 discussions - 2,252 posts

  • Hi, My python program has an extension system where the extension can have a optional magic python modules. Meaning if the extension module exists, the program will use it and if not, it will ...
    Jon DufresneJon Dufresne
    Nov 6, 2010 at 6:22 pm
    Nov 13, 2010 at 12:26 am
  • Hey Everyone, Just curious - I'm working on a program which includes a calculation of a circle, and I found myself trying to use pi*radius^2, and getting errors that data types float and int are ...
    Matty SarroMatty Sarro
    Nov 5, 2010 at 1:43 pm
    Nov 11, 2010 at 6:22 pm
  • Hi, I've been coding in PHP and Java for years, and their documentation is concise, well structured and easy to scan. Others have mentioned this apparently for years (see: ...
    JkJk
    Nov 2, 2010 at 10:42 am
    Nov 5, 2010 at 1:21 am
  • Hi, Sorry if I am baking too many ideas today. I am just having trouble with the backslashes.... I would like to have comments after the line continuation backslash. and b 0: #do something here This ...
    Yingjie LanYingjie Lan
    Nov 1, 2010 at 6:13 am
    Nov 10, 2010 at 5:02 pm
  • Hope this isn't too O/T - I was just wondering how people read/send to this mailing list, eg. normal email client, gmane, some other software or online service? My normal inbox is getting ...
    John BondJohn Bond
    Nov 3, 2010 at 8:02 am
    Nov 6, 2010 at 11:26 am
  • Here are some proposals. They are quite useful at my opinion and I'm interested for suggestions. It's all about some common patterns. First of all: how many times do you write something like t = ...
    Dmitry GroshevDmitry Groshev
    Nov 15, 2010 at 6:39 am
    Dec 2, 2010 at 6:18 pm
  • hi all, i've this on python 2.6.6: ... int_value = 10 ... ... def change_list(list): ... list[0] = 10 ... ... a = 1 ... l = [1,1,1] ... ... change_integer(a) ... change_list(l) ... ... print a ... ...
    TracubikTracubik
    Nov 13, 2010 at 1:46 pm
    Nov 16, 2010 at 2:29 pm
  • I'm writing-up more guidance on how to use super() and would like to point at some real-world Python examples of cooperative multiple inheritance. Google searches take me to old papers for C++ and ...
    Raymond HettingerRaymond Hettinger
    Nov 24, 2010 at 8:08 pm
    May 19, 2011 at 4:24 am
  • Hi, I am rather confused by these results below. I am not a re expert at all. the module version of re is 2.2.1 with python 3.1.2 ['Mar', 'has', ' a ', 'lam'] ['Mar', '', '', 'lam', '', ''] ['Mar', ...
    Yingjie LanYingjie Lan
    Nov 2, 2010 at 4:31 am
    Nov 4, 2010 at 9:14 am
  • Hello all. Newbie question. Sorry. Can you mention applications/systems/solutions made with Python that are well known and used by public in general? ANd that maybe we do not know they are done with ...
    Jorge BiquezJorge Biquez
    Nov 9, 2010 at 12:18 am
    Nov 11, 2010 at 12:15 pm
  • I've got a couple of programs that read filenames from stdin, and then open those files and do things with them. These programs sort of do the *ix xargs thing, without requiring xargs. In Python 2, ...
    Dan StrombergDan Stromberg
    Nov 30, 2010 at 5:26 am
    Dec 6, 2010 at 5:01 am
  • I have situation where I need to be able to get the current active user, and catch user switching eg user1 locks screen, leaves computer, user2 comes, and logs on. basically, when there is any type ...
    MpnordlandMpnordland
    Nov 30, 2010 at 10:47 pm
    Dec 31, 2010 at 12:59 am
  • I guess this is a question to folks with some numpy background (but not necessarily). I'm using fractions.Fraction as entries in a matrix because I need to have very high precision and ...
    Daniel FetchinsonDaniel Fetchinson
    Nov 24, 2010 at 1:02 pm
    Nov 28, 2010 at 12:56 am
  • Now that PyXML (and thus xmlproc) is defunct, does anyone know any handy modules (apart from re :) for parsing DTDs?
    Asun FriereAsun Friere
    Nov 10, 2010 at 2:06 am
    Nov 11, 2010 at 6:08 am
  • What is the difference between a program, an application, and software?
    Boštjan MejakBoštjan Mejak
    Nov 17, 2010 at 6:38 pm
    Nov 19, 2010 at 4:53 pm
  • I'm using a menu for my command line app using this method. choice = "foobar" while choice != "q": if choice == "c": temp = input("Celsius temperature:") print ...
    Braden faulknerBraden faulkner
    Nov 4, 2010 at 1:19 am
    Nov 5, 2010 at 3:15 am
  • There has been little or no activity at all in this project in the last months, and the last comments on their mailing list seem to conrfim that it's future is uncertain. It's also very strange the ...
    LaspiLaspi
    Nov 16, 2010 at 10:30 pm
    Nov 20, 2010 at 8:02 pm
  • Hello all. Quick question. I know some of you are with Python since started, some other maybe later. I was wondering if you can share what was the strategy you followed to master Python (Yes I know I ...
    Jorge BiquezJorge Biquez
    Nov 14, 2010 at 10:32 pm
    Nov 19, 2010 at 4:46 pm
  • Hi Folks, I am quite new to python and I don't have a lot of experience with it yet. I have two simple questions: 1. Is there a way to limit the number of times a list comprehension will execute? ...
    Felipe VinturiniFelipe Vinturini
    Nov 10, 2010 at 12:36 pm
    Nov 11, 2010 at 9:49 am
  • Hello, I am pretty new to all this. I have some coding experience, and am currently most comfortable with Python. I also have database design experience with MS Access, and have just created my first ...
    ShelShel
    Nov 20, 2010 at 10:40 pm
    Nov 25, 2010 at 8:18 pm
  • Hi all, I have encountered a strange problem with some code I am writing to search the system process list for certain running processes. I am using subprocess.Popen() to call '/bin/ps -e'. When I ...
    Roger DavisRoger Davis
    Nov 17, 2010 at 2:33 am
    Nov 19, 2010 at 11:47 am
  • *** FBI gets a warm welcome in Chicago for their EXCELLENT performance - cheers to NEW CONS *** http://www.youtube.com/watch?v=eq2ZvSd-z0M&feature=player_embedded&related ...
    Silver lightSilver light
    Nov 2, 2010 at 1:10 am
    Nov 7, 2010 at 9:01 pm
  • Hello All, I would appreciate some guidance on this. I'm a newbe, sorry if I sound dumb - I kind of am on this stuff! I have an executable that I want to run within python code. The exe requires an ...
    NoydbNoydb
    Nov 18, 2010 at 3:47 am
    Nov 20, 2010 at 2:39 am
  • hello, finally got Python running at my server. Now I would like to replace the PHP server scripts with Python ( for easier maintenance). But I can't find how th get to PHP's equivalent of $_Post and ...
    Stef MientkiStef Mientki
    Nov 11, 2010 at 2:22 pm
    Nov 15, 2010 at 2:00 pm
  • Sorry, to clarify I heard that when you declare a variable in python you have to use some sort of standard boiler plate _variable_ however this has not been my experience using IDLE so is this even ...
    BradenfBradenf
    Nov 1, 2010 at 3:37 am
    Nov 2, 2010 at 9:37 am
  • I have an existing hunk of Makefile code: CPPFLAGS = "$(filter -D* -I* -i* -U*,$(TARGET_CFLAGS))" For those not familiar with GNU makeisms, this means "assemble a string which consists of all the ...
    SeebsSeebs
    Nov 8, 2010 at 11:32 pm
    Nov 10, 2010 at 12:42 am
  • Hi all, Sorry, newbie question: I have database in a plain text file (could be .txt or .dat, it's the same) that I need to read in python in order to do some data validation. In other files I read ...
    JavivdJavivd
    Nov 30, 2010 at 9:31 pm
    Dec 13, 2010 at 11:29 pm
  • Hi! Can you, please, try to help me with Python? I try to convert a MATLAB program to Python. Here are the MATLAB codes: http://pastebin.com/eJetYizv http://pastebin.com/0eXTVfyN Here is my Python ...
    MATLABdudeMATLABdude
    Nov 17, 2010 at 8:04 am
    Nov 27, 2010 at 12:42 pm
  • I am fairly new to Python (no development experience) and brand new to using sqlite through Python. With that said, I created a database with two tables. The first has about 30,000 rows of static ...
    FuglyduckyFuglyducky
    Nov 16, 2010 at 8:00 pm
    Nov 19, 2010 at 12:39 pm
  • Hi Folks How convert list to nested dictionary? ['k1', 'k2', 'k3', 'k4', 'k5'] {'k1': {'k2': {'k3': {'k4': {'k5': {}}}}}} Regards macm
    MacmMacm
    Nov 4, 2010 at 6:48 pm
    Nov 11, 2010 at 8:36 am
  • Hi! I'm writing tests and I'm wondering how to achieve a few things most elegantly with Python's unittest module. Let's say I have two flags invert X and invert Y. Now, for testing these, I would ...
    Ulrich EckhardtUlrich Eckhardt
    Nov 22, 2010 at 11:38 am
    Nov 24, 2010 at 6:17 pm
  • I do a recursive evaluation of an expression involving fractions and unsurprisingly the numerator and denominator grows pretty quickly. After 10-20 iterations the number of digits in the numerator ...
    Daniel FetchinsonDaniel Fetchinson
    Nov 18, 2010 at 4:27 pm
    Nov 20, 2010 at 12:59 pm
  • Say I have following log file, which records the code usage. I want to read this file and do the summarize how much total CPU time consumed for each user. Is Python able to do so or say easy to ...
    HuiskyHuisky
    Nov 17, 2010 at 9:45 pm
    Nov 18, 2010 at 9:13 am
  • I'm trying to parse some basic details and a thumbnail from ~12,000 PDFs for my company, but a few hundred of them are copy protected. To make matters worse, I can't seem to trap the error it causes: ...
    Brett BowmanBrett Bowman
    Nov 11, 2010 at 8:28 pm
    Nov 14, 2010 at 10:00 am
  • I was wondering what the best method was in Python programming for 2 discontinued ranges. e.g. I want to use the range 3 to 7 and 17 to 23. Am I obliged to use 2 for loops defining the 2 ranges like ...
    XoffXoff
    Nov 10, 2010 at 5:08 pm
    Nov 11, 2010 at 10:37 am
  • Hi Folks, dict1 = {'ab':[[1,2,3,'d3','d4',5],12],'ac':[[1,3,'78a','79b'], 54],'ad': [[56,57,58,59],34], 'ax': [[56,57,58,59],34]} dict2 = ...
    MacmMacm
    Nov 9, 2010 at 5:32 pm
    Nov 11, 2010 at 10:04 am
  • PyQt v4.8.1 has been released and is available from http://www.riverbankcomputing.com/software/pyqt/. PyQt is a comprehensive set of bindings for the Qt application and UI framework from Nokia. It ...
    Phil ThompsonPhil Thompson
    Nov 1, 2010 at 10:52 am
    Nov 10, 2010 at 9:20 pm
  • Hope this isn't too O/T - I was just wondering how people read/send to this mailing list, eg. normal email client, gmane, some other software or online service? My normal inbox is getting ...
    John BondJohn Bond
    Nov 2, 2010 at 7:48 pm
    Dec 12, 2010 at 4:22 pm
  • Dear List I'm writing an application that has to create and populate an SQLite database. I'm doing pretty well, but now I'm facing a problem I can not solve. I create a table with a primary key ...
    TinauserTinauser
    Nov 29, 2010 at 6:12 pm
    Nov 29, 2010 at 10:19 pm
  • Hello, In the framework of a project on evolutionary linguistics I wish to have a program to process words and simulate the effect of sound shift, for instance following the Rask's-Grimm's rule. I ...
    Dax BloomDax Bloom
    Nov 6, 2010 at 2:17 am
    Nov 27, 2010 at 1:25 pm
  • Hi folks, My niece is interested in programming and python looks like a good choice (she already wrote a couple of lines :)) She is 10 and I thought it would be good to have a bunch of playful coding ...
    Daniel FetchinsonDaniel Fetchinson
    Nov 1, 2010 at 8:31 pm
    Nov 26, 2010 at 4:58 pm
  • Hello Pythonistas! I'm trying to get floating point division to work; I'm using Python 2.6.5. When I enter 'from _future_ import division' at the command line, I get the ImportError, no module named ...
    OtenkiOtenki
    Nov 14, 2010 at 2:51 pm
    Nov 20, 2010 at 5:23 pm
  • Hi everybody ! First time I write to this mailing list :) I started writing in python last week, that's probably why I can't understand the following problem... I create a list called web_site_list. ...
    Romaric DEFAUXRomaric DEFAUX
    Nov 16, 2010 at 4:47 pm
    Nov 18, 2010 at 1:24 pm
  • Hi. I'm using CPython 2.7 and Linux. In order to make parallel computations on a large list of objects I want to use multiple processes (by using multiprocessing module). In the first step I fill the ...
    Artur SiekielskiArtur Siekielski
    Nov 14, 2010 at 7:08 pm
    Nov 16, 2010 at 11:44 am
  • Hi, I usually use csh for my simulation control scripts, but these scripts are becoming more complex, so I plan to use python for the next project. To this end, I am looking at subprocess.Popen() to ...
    MoogydMoogyd
    Nov 4, 2010 at 2:06 pm
    Nov 9, 2010 at 12:49 am
  • Hi, Apologies if this has been discussed in this list before. Google has not been very helpful in locating any such previous discussion. Are there any promises made with regard to final state of the ...
    Shashank SinghShashank Singh
    Nov 4, 2010 at 4:42 pm
    Nov 6, 2010 at 9:31 am
  • HypoNt: I need to turn a human-readable list into a list(): print re.search(r'(?:(\w+), |and (\w+))+', 'whatever a, bbb, and c').groups() That currently returns ('c',). I'm trying to match "any word ...
    PhlipPhlip
    Nov 25, 2010 at 4:46 am
    Nov 26, 2010 at 7:57 pm
  • Hi All, I have to eliminate diacritics in a fairly large file. Inspired by http://code.activestate.com/recipes/81330/, I came up with the following code: #! /usr/bin/env python import re ...
    Sorin SchwimmerSorin Schwimmer
    Nov 18, 2010 at 4:21 am
    Nov 18, 2010 at 9:38 pm
  • Hello, how does one write a raw unicode docstring? If I have backslashes in the docstring, I must tuck an 'r' in front of it, like this: r"""This is a raw docstring.""" If I have foreign letters in ...
    Boštjan MejakBoštjan Mejak
    Nov 16, 2010 at 9:56 pm
    Nov 17, 2010 at 11:14 pm
  • Does Komodo have to be shut down individually every time I want to restart Windows XP? Is there some way to eliminate the persistent Workspace Restore error after every restart? I have tried setting ...
    John DoeJohn Doe
    Nov 15, 2010 at 12:00 am
    Nov 16, 2010 at 10:16 pm
Group Navigation
period‹ prev | Nov 2010 | next ›
Group Overview
grouppython-list @
categoriespython
discussions390
posts2,252
users489
websitepython.org

489 users for November 2010

TuckerTherese: 103 posts Seebs: 71 posts Mark Wooding: 62 posts Steven D'Aprano: 58 posts Peter Otten: 56 posts Chris Rebert: 54 posts MRAB: 54 posts Tim Harig: 53 posts Steve Holden: 50 posts Terry Reedy: 47 posts Grant Edwards: 41 posts Ben Finney: 36 posts Robert Kern: 35 posts Ian Kelly: 34 posts Yingjie Lan: 33 posts Emile van Sebille: 27 posts John Nagle: 26 posts Roy Smith: 25 posts Tim Chase: 25 posts R0g: 23 posts
show more
Archives