FAQ

Search Discussions

539 discussions - 3,074 posts

  • Python's concept of immutability is useful, but it could be more general. In the beginning, strings, tuples, and numbers were immutable, and everything else was mutable. That was simple enough. But ...
    John NagleJohn Nagle
    Sep 3, 2009 at 6:03 pm
    Sep 8, 2009 at 10:44 pm
  • Write the definition of a function twice , that receives an int parameter and returns an int that is twice the value of the parameter. how can i do this
    DaggerdvmDaggerdvm
    Sep 20, 2009 at 8:27 pm
    Dec 28, 2009 at 11:42 am
  • I'm looking for something that can draw simple bar and pie charts in Python. I'm trying to find a Python package, not a wrapper for some C library, as this has to run on both Windows and Linux and ...
    John NagleJohn Nagle
    Sep 15, 2009 at 5:25 pm
    Sep 22, 2009 at 8:29 am
  • Hi, I need to extract a string after a matching a regular expression. For example I have the string... s = "FTPHOST: e4ftl01u.ecs.nasa.gov" and once I match "FTPHOST" I would like to extract ...
    MartinMartin
    Sep 8, 2009 at 12:56 pm
    Sep 11, 2009 at 7:50 pm
  • Hi I've a multi-threaded C++ program, in which I want to use embedded python interpreter for each thread. I am using Python 2.6.2 on Linux for this. When I tried to embed python interpreter per ...
    GrbgooglefanGrbgooglefan
    Sep 7, 2009 at 5:17 am
    Sep 8, 2009 at 7:37 am
  • Why don't work this code on Python 2.6? Or how can I do this job? _MAP = { # LATIN u'?': 'A', u'?': 'A', u'?': 'A', u'?': 'A', u'?': 'A', u'?': 'A', u'?': 'AE', u'?':'C', u'?': 'E', u'?': 'E', u'?': ...
    GentlestoneGentlestone
    Sep 30, 2009 at 7:34 am
    Oct 6, 2009 at 9:06 am
  • Hi, I did a google search and found various parser in python that can be used to parse different files in various situation. I don't see a page that summarizes and compares all the available parsers ...
    Peng YuPeng Yu
    Sep 19, 2009 at 8:21 pm
    Sep 26, 2009 at 11:43 am
  • Hi All, I find several places in my code where I would like to have a variable scope that is smaller than the enclosing function/class/module definition. One representative example would look like: ...
    Johan GrönqvistJohan Grönqvist
    Sep 11, 2009 at 5:36 pm
    Sep 24, 2009 at 11:33 am
  • There's something wonderfully clear about code like this: # (1) def spam(filename): for line in file(filename): do_something_with(line) It is indeed pseudo-codely beautiful. But I gather that it is ...
    KjKj
    Sep 5, 2009 at 4:14 pm
    Sep 23, 2009 at 10:44 am
  • I've just found out that a subclass shares the class variables of its superclass until it's instantiated for the first time, but not any more afterwards: Python 3.1 (r31:73574, Jun 26 2009, 20:21:35) ...
    Henry 'Pi' JamesHenry 'Pi' James
    Sep 8, 2009 at 2:21 am
    Sep 16, 2009 at 11:40 pm
  • Hi! I write small games in Python/PyGame. I want to find a way to make a downloadable package/installer/script to put on my webpage, especially for Ubuntu users. I've skimmed a couple of tutorials on ...
    Olof BjarnasonOlof Bjarnason
    Sep 25, 2009 at 6:15 am
    Sep 26, 2009 at 12:46 am
  • I'm trying to NOT create a parser to do this .... and I'm sure that it's easy if I could only see the light! Is it possible to take an arbitrary string in the form "1:2", "1", ":-1", etc. and feed it ...
    BvdpBvdp
    Sep 2, 2009 at 9:55 pm
    Sep 3, 2009 at 4:29 pm
  • Hi all, A simple and silly if-else question. I saw some code that has the following structure. My question is why else is used there though removing else has the same result. More important, is it ...
    SandySandy
    Sep 29, 2009 at 3:50 pm
    Oct 1, 2009 at 10:00 am
  • Hi all, I would like to code a simple podcast catcher in Python merely as an exercise in internet programming. I am a CS student and new to Python, but understand Java fairly well. I understand how ...
    ChuckChuck
    Sep 11, 2009 at 2:20 pm
    Sep 19, 2009 at 7:38 pm
  • I have never used a call to "locals()" in my code. Can you show me a use case where it is valuable and Pythonic? ~Sean
    Sean DiZazzoSean DiZazzo
    Sep 14, 2009 at 3:06 am
    Sep 18, 2009 at 9:17 pm
  • I have created the following class definition with the idea of making a clean syntax for non-programmers to created structured data within a python environment. I would appreciate comments on this ...
    Ken NewtonKen Newton
    Sep 3, 2009 at 10:46 pm
    Sep 8, 2009 at 2:53 pm
  • I'm inexperienced with some of the fancy list slicing syntaxes where python shines. If I have a list of tuples: k=[("a", "bob", "c"), ("p", "joe", "d"), ("x", "mary", "z")] and I want to pull the ...
    RossRoss
    Sep 15, 2009 at 9:51 pm
    Sep 22, 2009 at 10:21 pm
  • Hi, I want to understand why python use indentation to denote block of code. What are the advantages of it? Is there a style in python to denote a block of code the same as that of C++ (with '{}')? ...
    Peng YuPeng Yu
    Sep 13, 2009 at 10:12 pm
    Sep 14, 2009 at 11:00 pm
  • I have a peculiar problem that involves multiple inheritance and method calling. I have a bunch of classes, one of which is called MyMixin and doesn't inherit from anything. MyMixin expects that it ...
    The Music GuyThe Music Guy
    Sep 4, 2009 at 10:01 am
    Sep 11, 2009 at 3:53 pm
  • Hello everyone, the standard structure of a python-program which is taught in all of the books I on python I read by now is simply something like: #!/usr/bin/python print "Hello, world!" ^D While ...
    Manuel GrauneManuel Graune
    Sep 4, 2009 at 5:55 am
    Sep 5, 2009 at 10:22 pm
  • Does anyone have experience building a data warehouse in python? Any thoughts on custom vs using an out-of-the-box product like Talend or Informatica? I have an integrated system Dashboard project ...
    SnfctechSnfctech
    Sep 22, 2009 at 8:00 pm
    Oct 2, 2009 at 9:55 am
  • This is a bit vague, I'm afraid, but is there any way for me to take code like: a = Foo() beta = Bar() and somehow attach the string "a" to the Foo instance and "beta" to the Bar instance. At some ...
    Andrew cookeAndrew cooke
    Sep 24, 2009 at 12:15 am
    Sep 25, 2009 at 1:53 pm
  • ok i have a class and in it's constructor i want to create a copy of it as an attribute, i have tried super, __new__, and noting seems to work, please help! class A(base): def __init__(self): ...
    RantingrickRantingrick
    Sep 18, 2009 at 3:27 am
    Sep 20, 2009 at 1:03 am
  • I have two threads, one running min() and the other running max() over the same list. I'm getting some mysterious results which I'm having trouble debugging. Are min() and max() thread-safe, or am I ...
    Steven D'ApranoSteven D'Aprano
    Sep 17, 2009 at 4:33 am
    Sep 17, 2009 at 10:56 pm
  • code practice: test = open ("test.txt", "r") readData = test.readlines() #set up a sum sum = 0; for item in readData: sum += int(item) print sum test file looks something like this: 34 23 124 432 12 ...
    MaggieMaggie
    Sep 6, 2009 at 7:00 am
    Sep 7, 2009 at 5:04 pm
  • Hello everyone, I'm a big time python fan and it has helped me write code fast and push it out quickly. We have a medium sized telecom product written 90% in Python and 10% in Java. The problem is, ...
    NashNash
    Sep 27, 2009 at 7:13 am
    Sep 30, 2009 at 7:52 am
  • Hi, Sorry I did not want to bother the group, but I really do not understand this seeming trivial problem. I am reading from a textfile, where each line has 2 values, with spaces before and between ...
    HelvinHelvin
    Sep 15, 2009 at 1:49 am
    Sep 16, 2009 at 8:08 am
  • I am a self-taught Python programmer with a liberal arts degree (Cross- cultural studies). I have been programming for several years now and would like to get a job as a python programmer. ...
    JonathanBJonathanB
    Sep 2, 2009 at 3:31 pm
    Sep 3, 2009 at 6:33 pm
  • I'm just starting learning python, and coding in emacs. I usually split emacs window into two, coding in one, and run script in the other, which is not very convenient. anyone can help me with it? is ...
    DevilkinDevilkin
    Sep 26, 2009 at 3:54 pm
    Dec 23, 2009 at 12:34 am
  • I am new to Python but I have studied hard and written a fairly big (to me) script/program. I have solved all of my problems by Googling but this one has got me stumped. I want to check a string for ...
    ScottScott
    Sep 28, 2009 at 4:54 pm
    Sep 29, 2009 at 2:15 pm
  • I need help searching a large python dictionary. The dictionary is setup like so ...
    Support DeskSupport Desk
    Sep 22, 2009 at 9:50 pm
    Sep 24, 2009 at 12:59 am
  • Hi, I need to do some basic website testing (log into account, add item to cart, fill out and submit forms, check out, etc.). What modules would be good to use for webapp testing like this? hasn't ...
    Schif SchafSchif Schaf
    Sep 16, 2009 at 5:00 am
    Sep 23, 2009 at 8:23 pm
  • I've often come across the idea that good Python style deals with potential errors using an EAFP ("easier to ask forgiveness than permission") strategy rather than a LBYL ("look before you leap") ...
    KjKj
    Sep 18, 2009 at 6:54 pm
    Sep 21, 2009 at 2:50 pm
  • Building on the code that I posted in one of the previous posts.. I need to find a cumulative sum of the file of the times in the test file: here is the code i have: #!/usr/bin/python import os.path ...
    MaggieMaggie
    Sep 8, 2009 at 7:29 pm
    Sep 10, 2009 at 5:12 pm
  • Hi Since I have been told in this group to post wxPython related topics in the wxPython-users mailing list instead of here, I just tried doing that. However, I always get an error message back when ...
    MmannsMmanns
    Sep 7, 2009 at 4:50 pm
    Sep 8, 2009 at 8:22 pm
  • Hello, I don't know how to report presumed "bugs" to the Python development team.. in the past, the very few bugs I found were always fixed by a more recent version. On of my students has installed ...
    Pascale MourierPascale Mourier
    Sep 4, 2009 at 4:39 pm
    Sep 6, 2009 at 4:02 pm
  • Dear Python users, I just start to use python and love this language. I met this problem when I try to save my functions in a separate file. The question is how I can pass a global variable to a ...
    Mars creatureMars creature
    Sep 29, 2009 at 4:40 pm
    Oct 1, 2009 at 12:11 am
  • I don't understand why I'm getting the following behaviour when using super() with multiple inheritance. The following is a minimal example demonstrating the behaviour. I have a diamond class ...
    Steven D'ApranoSteven D'Aprano
    Sep 26, 2009 at 2:36 am
    Sep 28, 2009 at 6:25 am
  • Hi all, reliably finding distribution data from your program seems to be an unsolved issue for programs packaged with distutils. I have seen a lot of code that manipulates mod.__file__ to solve this ...
    Wolodja WentlandWolodja Wentland
    Sep 19, 2009 at 3:03 pm
    Sep 26, 2009 at 3:00 am
  • just for fits and giggles and also because i'm getting fed up of using web browsers as part of the pyjs development cycle instead of the command-line, the pyjamas pyv8run.py has been brought back ...
    LkclLkcl
    Sep 18, 2009 at 9:17 pm
    Sep 21, 2009 at 1:27 am
  • Hi, I have the following code. The last line does not print the members ("x" and "y") of 'my_bin'. I am wondering if there is a way to reload the print function for bin, so that the last line print ...
    Peng YuPeng Yu
    Sep 20, 2009 at 2:28 am
    Sep 21, 2009 at 1:08 am
  • Hello, Is there someway I can improve the following code(pythonically)? (Copying from IDLE) match=[1,2,3,4,5] def elementsPresent(aList): result=False if not aList: return False for e in aList: if e ...
    OltmansOltmans
    Sep 15, 2009 at 1:08 am
    Sep 19, 2009 at 6:00 am
  • Can anybody show me a better looking alternative for this elif structure ? http://code.google.com/p/appwsgi/source/browse/appwsgi/wsgi/appointment.wsgi
    GertGert
    Sep 17, 2009 at 7:38 pm
    Sep 18, 2009 at 1:13 am
  • Hello, Scripts that have "#!/usr/bin/python" at the top do not parse correctly. Bash treats scripts with that shebang as if they are bash scripts. E.g.: blaine at attila ~/apps/rs-mu $ ...
    BlaineBlaine
    Sep 17, 2009 at 3:25 am
    Sep 17, 2009 at 9:24 pm
  • Hi, I just start python programming. That is, I don't have any legacy code. I notice that there are different versions of python. I would guess that older version of python has the more libraries ...
    Peng YuPeng Yu
    Sep 12, 2009 at 8:47 pm
    Sep 13, 2009 at 10:26 pm
  • If I do this: import re a=re.search(r'hello.*?money', 'hello how are you hello funny money') I would expect a.group(0) to be "hello funny money", since .*? is a non-greedy match. But instead, I get ...
    Gburdell1Gburdell1
    Sep 7, 2009 at 2:46 am
    Sep 7, 2009 at 5:08 pm
  • While the random module allows one to generate randome numbers with a variety of distributions, some useful distributions are omitted - the Student's t being among them. This distribution is easily ...
    Thomas PhilipsThomas Philips
    Sep 2, 2009 at 1:51 pm
    Sep 3, 2009 at 11:07 am
  • Hello, I'm a novice in Python and got one question related to the information storage for my application. I'm currently working on rewriting my own the program that stores everyday information ...
    VladVlad
    Sep 17, 2009 at 8:37 am
    Oct 6, 2009 at 3:29 am
  • When creating a script that converts digits to words I've come across some unexplainable python. The script works fine until I use a 5 digit number and get a 'IndexError: string index out of range'. ...
    DadsDads
    Sep 27, 2009 at 2:37 am
    Sep 27, 2009 at 7:16 pm
  • Sorry to ask a simple question but I am a little confused how to combine the input function and the date time module. Simply at the start of the program I want to prompt the user to enter the date, ...
    FlebberFlebber
    Sep 24, 2009 at 10:13 am
    Sep 25, 2009 at 9:50 am
Group Navigation
period‹ prev | Sep 2009 | next ›
Group Overview
grouppython-list @
categoriespython
discussions539
posts3,074
users666
websitepython.org

666 users for September 2009

Chris Rebert: 68 posts MRAB: 59 posts Terry Reedy: 59 posts R: 57 posts Dave Angel: 56 posts Steven D'Aprano: 54 posts Carl Banks: 51 posts Steven D'Aprano: 46 posts Gabriel Genellina: 45 posts Peng Yu: 43 posts Sean DiZazzo: 39 posts Hendrik van Rooyen: 38 posts Ethan Furman: 34 posts Kj: 33 posts Diez B. Roggisch: 32 posts Simon Forman: 30 posts Sturlamolden: 30 posts Exarkun: 29 posts Robert Kern: 28 posts Ben Finney: 26 posts
show more
Archives