FAQ

Search Discussions

790 discussions - 3,695 posts

  • Okay, so what I want my program to do it open a file, a music file in specific, and for this we will say it is an .mp3. Well, I am using the system() command from the os class. The problem I am ...
    AlexnbAlexnb
    Jun 10, 2008 at 4:28 pm
    Jun 11, 2008 at 10:36 pm
  • Is it possible to write a list comprehension for this so as to produce a list of two-item tuples? base_scores = range(8, 19) score_costs = [0, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3] print zip(base_scores, ...
    John SalernoJohn Salerno
    Jun 6, 2008 at 3:42 am
    Jun 10, 2008 at 11:45 pm
  • Hello, In a Python program I'm writing I need to dynamically generate functions[*] and store them in a dict. eval() can't work for me because a function definition is a statement and not an ...
    ElibenEliben
    Jun 20, 2008 at 5:01 am
    Jun 25, 2008 at 5:34 pm
  • Just out of curiosity, what are the chances of this happening (sort of like what happened with sqlite)? I read somewhere that Guido said the only reason Tkinter is still the standard GUI module ...
    John SalernoJohn Salerno
    Jun 12, 2008 at 2:18 pm
    Jun 17, 2008 at 5:44 pm
  • Abstract ======= This PEP proposes an ordered dictionary as a new data structure for the ``collections`` module, called "odict" in this PEP for short. The proposed API incorporates the experiences ...
    Armin RonacherArmin Ronacher
    Jun 16, 2008 at 8:37 am
    Aug 7, 2011 at 12:56 pm
  • Quick question: I have python code that does a lot of floating point arithmetic. How do I make it do the arithmetic in 64 bit? (I have a 64 bit CPU.) If I'll install a 64-bit operating system, will ...
    Ram RachumRam Rachum
    Jun 15, 2008 at 11:29 am
    Jun 18, 2008 at 7:02 pm
  • Hi all, I have a scenario where I have a list like this: User Score 1 0 1 1 1 5 2 3 2 1 3 2 4 3 4 3 4 2 And I need to add up the score for each user to get something like this: User Score 1 6 2 4 3 2 ...
    MarkMark
    Jun 12, 2008 at 1:48 pm
    Jun 14, 2008 at 9:15 pm
  • I don't want to be so mean here, but how hard it could be be writing a freesoftware which would automatically/intelligently auto complete Python code? (I mean something that really does the job, like ...
    Ali Servet DönmezAli Servet Dönmez
    Jun 30, 2008 at 9:46 pm
    Jul 10, 2008 at 9:16 am
  • Hi there, How can I kill a threading.Thread subclass from MainThread? My threads are waiting for data in Queue.get() method: class MyThread(threading.Thread): def run(self): while True: data = ...
    John DohnJohn Dohn
    Jun 6, 2008 at 10:30 am
    Jun 11, 2008 at 8:44 pm
  • Is there a simple/safe expression evaluator I can use in a python program. I just want to pass along a string in the form "1 + 44 / 3" or perhaps "1 + (-4.3*5)" and get a numeric result. I can do ...
    BvdpBvdp
    Jun 11, 2008 at 8:25 pm
    Jun 20, 2008 at 5:00 pm
  • I'm a bit confusing about whether "is not" equivelent to "!=" if a != b: ... if a is not b: ... What's the difference between "is not" and "!=" or they are the same thing?
    PirataPirata
    Jun 17, 2008 at 3:29 am
    Jun 19, 2008 at 6:34 am
  • Iam wondering why the peculiar behavior of map when the function in given as None: Help on built-in function map in module __builtin__: map(...) map(function, sequence[, sequence, ...]) - list Return ...
    PaddyPaddy
    Jun 12, 2008 at 7:05 pm
    Jun 14, 2008 at 1:10 pm
  • Hello everyone, I had read somewhere that it is preferred to use self.__class__.attribute over ClassName.attribute to access class (aka static) attributes. I had done this and it seamed to work, ...
    Gabriel RossettiGabriel Rossetti
    Jun 5, 2008 at 3:40 pm
    Jun 13, 2008 at 9:39 pm
  • Let me see if this question even makes sense...I'm reading Core Python Programming and I jumped ahead to the more specific topics like network programming. I plan to follow along with the example in ...
    John SalernoJohn Salerno
    Jun 14, 2008 at 4:31 pm
    Jun 16, 2008 at 3:00 am
  • I've been doing some research on web templates, and even though I read that they help enforce the MVC pattern, I don't really understand how they are keeping content and logic separated. Layout is ...
    John SalernoJohn Salerno
    Jun 27, 2008 at 4:09 pm
    Jul 3, 2008 at 7:41 pm
  • this is stopping my program from running properly. is there something wrong in my code when that happens?
    MaehhheeyyMaehhheeyy
    Jun 10, 2008 at 7:53 pm
    Jun 14, 2008 at 9:18 am
  • I have a python script whose output i want to dynamically display on a webpage which will be hosted using Apache. How do I do that? thanks
    AsdfAsdf
    Jun 10, 2008 at 11:58 pm
    Jul 10, 2008 at 2:53 am
  • is there an IDE for python of the same quality as Eclipse or DEVC++? I am currently using the editor that coems iwth python and it is all fine but for bigger projects it would be nice to have some ...
    CirfuCirfu
    Jun 23, 2008 at 4:15 pm
    Jun 25, 2008 at 3:11 pm
  • Hi, I'm studying python via the exellent book "How to think like a python programmer" by Allen Downey. Noob question follows... animals.txt is a list of animals, each on a separate line: "aardvard, ...
    TakayukiTakayuki
    Jun 16, 2008 at 1:23 am
    Jun 17, 2008 at 9:49 pm
  • Hello Since Python is such a productive language, I'd really like to be able to use it to write GUI apps for Windows, but business apps require rich widgets like (DB)grids, calendars, etc. The ones ...
    Gilles GanaultGilles Ganault
    Jun 1, 2008 at 11:59 am
    Jun 3, 2008 at 12:30 pm
  • Hi all I have a standard requirement for a 'decimal' type, to instantiate and manipulate numeric data that is stored in a database. I came up with a solution long before the introduction of the ...
    Frank MillmanFrank Millman
    Jun 9, 2008 at 8:11 am
    Jun 12, 2008 at 2:11 pm
  • I have never used the urllib or the urllib2. I really have looked online for help on this issue, and mailing lists, but I can't figure out my problem because people haven't been helping me, which is ...
    AlexnbAlexnb
    Jun 27, 2008 at 8:43 am
    Jun 29, 2008 at 10:30 pm
  • Hi all, I am currently planning to write my own web crawler. I know Python but not Perl, and I am interested in knowing which of these two are a better choice given the following scenario: 1) I/O ...
    DisappearedngDisappearedng
    Jun 9, 2008 at 5:48 pm
    Jun 27, 2008 at 4:22 am
  • Hi all, I'm looking to learn Python (as my first programming language) and I'm pretty sure I'd be more successful doing this with a group of other people. I've currently got one other person to learn ...
    Jonathan RobertsJonathan Roberts
    Jun 22, 2008 at 10:43 am
    Jun 27, 2008 at 3:56 am
  • I have twenty-five checkboxes I need to create (don't ask): self.checkbox1 = ... self.checkbox2 = ... . . . self.checkbox25 = ... Right now, my code has 25 lines in it, one for each checkbox, since ...
    TdahsuTdahsu
    Jun 13, 2008 at 3:11 pm
    Jun 16, 2008 at 2:02 pm
  • I have a stylistic question. In most languages words in var. name are separated by underscores or cap letters, resulting in var names like var_name, VarName and varName. I don't like that very much ...
    RainyRainy
    Jun 9, 2008 at 5:29 pm
    Jun 10, 2008 at 11:56 am
  • Recursion is awesome for writing some functions, like searching trees etc but wow how can it be THAT much slower for computing fibonacci- numbers? is the recursive definition counting fib 1 to fib ...
    SlixSlix
    Jun 29, 2008 at 4:06 am
    Jul 2, 2008 at 12:32 pm
  • Hi, I found one example which defines the addition of two vectors as a method of a class. It looks like that: class Vector: def __add__(self, other): data = [] for j in range(len(self.data)): ...
    Kurda YonKurda Yon
    Jun 27, 2008 at 10:17 pm
    Jun 30, 2008 at 8:09 pm
  • I'm trying to limit a value stored by object (either int or float): class Limited(object): def __init__(self, value, min, max): self.min, self.max = min, max self.n = value def set_n(self,value): if ...
    JosipJosip
    Jun 22, 2008 at 9:44 am
    Jun 26, 2008 at 4:21 pm
  • If Perl 6 ever does get on its feet and get released, how does it compare to Python 3000? Is Perl 6 more like Java now with Parrot? I just want to make sure that Python is staying competitive. If ...
    Corey G.Corey G.
    Jun 24, 2008 at 6:20 am
    Jun 24, 2008 at 6:07 pm
  • A Python newbie, but some basic understanding of how classes, objects etc work in eg VB.Net. However, I'm struggling a little to translate this knowledge into the Python context. I'm trying to teach ...
    John DannJohn Dann
    Jun 19, 2008 at 11:54 am
    Jun 20, 2008 at 7:00 pm
  • Greetings. The strip() method of strings works from both ends towards the middle. Is there a simple, built-in way to remove several characters from a string no matter their location? (besides ...
    Ethan FurmanEthan Furman
    Jun 16, 2008 at 4:58 pm
    Jun 17, 2008 at 7:42 pm
  • Hello, I have a dictionary and will get all keys which have the same values. d = {('a' : 1), ('b' : 3), ('c' : 2),('d' : 3),('e' : 1),('f' : 4)} I will something as : d.keys(where their values are ...
    NaderNader
    Jun 12, 2008 at 10:58 am
    Jun 17, 2008 at 9:18 am
  • I'd like some feedback on a solution to a variant of the producer- consumer problem. My first few attempts turned out to deadlock occasionally; this one seems to be deadlock-free so far but I can't ...
    George SakkisGeorge Sakkis
    Jun 11, 2008 at 3:33 am
    Jun 12, 2008 at 6:08 am
  • that is, there is no TABLE tag between a TABLE, for example <table something with out table tag</table what is the RE pattern? thanks the following is not right <table.*? [^table]*?</table
    OysterOyster
    Jun 26, 2008 at 1:53 pm
    Jul 1, 2008 at 5:25 pm
  • I wrote a binary search tree in python, explaining as I was doing it how and why I did it. I am very interested in receiving comments on the code, process, and anything else that will improve my ...
    Bart KastermansBart Kastermans
    Jun 15, 2008 at 2:03 pm
    Jun 30, 2008 at 8:04 pm
  • hi... can someone point me to where/how i would go about calling a ruby app from a python app, and having the python app being able to get a returned value from the ruby script. something like ...
    BruceBruce
    Jun 19, 2008 at 3:33 am
    Jun 20, 2008 at 3:52 am
  • Hi, I wish to know how two dict objects are compared. By browsing the archives I gathered that the number of items are first compared, but if the two dict objects have the same number of items, then ...
    Robert BossyRobert Bossy
    Jun 18, 2008 at 9:22 am
    Jun 19, 2008 at 4:37 pm
  • I'm keen on learning python, with a heavy lean on doing things the "pythonic" way, so threw the following script together in a few hours as a first-attempt in programming python. I'd like the ...
    Phillip B OldhamPhillip B Oldham
    Jun 12, 2008 at 2:27 pm
    Jun 14, 2008 at 8:17 pm
  • Hello, I'm trying to build an executable with py2exe, but unfortunately the version I have is 0.6.6, which has a rather annoying bug that doesn't let you rename the executable file if you bundle ...
    ChardishChardish
    Jun 10, 2008 at 3:04 pm
    Jun 11, 2008 at 6:35 pm
  • Writing this app in Python, not sure what the "best practice" would be. I want a bitfield global logging level that allows me to turn specific debugging modules on and off. If I was doing this in C, ...
    SkyeSkye
    Jun 9, 2008 at 9:00 pm
    Jun 10, 2008 at 11:58 pm
  • Hi Everyone, i have another question. What if i wanted to make n tuples, each with a list of coordinates. For example : coords = list() for h in xrange(1,11,1): for i in xrange(1, 5, 1) : for j in ...
    Victor HerasmeVictor Herasme
    Jun 4, 2008 at 9:57 pm
    Jun 5, 2008 at 6:38 pm
  • Here's an algorithm question: How should I efficiently merge a collection of mostly similar lists, with different lengths and arbitrary contents, while eliminating duplicates and preserving order as ...
    EtalEtal
    Jun 1, 2008 at 5:00 am
    Jun 3, 2008 at 7:58 pm
  • HI, When I check example of "cmd2" module (a enhancement of cmd module), I can not understand all, for example: the character "@", +++++++++++++++++++++++++++++++++++++++++++++++++++++ def ...
    EvanEvan
    Jun 27, 2008 at 2:48 pm
    Jun 30, 2008 at 10:08 am
  • Hello, I'm trying to assign data into an array with the nonzero function. There is my code. from numarray import * diff_temp=(logical_and(values[:,5] -2,values[:,5] < 2)).nonzero() This command works ...
    LajamLajam
    Jun 26, 2008 at 1:17 pm
    Jun 28, 2008 at 3:00 pm
  • I'm trying to build a try/except case, and I want to have the except function like such: try: # Do some code here var = 1 # For example except: #Do nothing here The only problem is if I leave a ...
    AmpedesignAmpedesign
    Jun 26, 2008 at 5:03 pm
    Jun 26, 2008 at 6:59 pm
  • Which tools would you use? I want the interface design to be as easy and fast as possible, all ideology aside. I'm considering either IronPython+Visual Studio or Python+Qt -- but I'm open for other ...
    ErokarErokar
    Jun 21, 2008 at 12:36 pm
    Jun 23, 2008 at 7:34 pm
  • I have a situation where one class can be customized with several orthogonal options. Currently this is implemented with (multiple) inheritance but this leads to combinatorial explosion of subclasses ...
    George SakkisGeorge Sakkis
    Jun 15, 2008 at 6:25 pm
    Jun 17, 2008 at 6:50 pm
  • The Python Client Library for Google Data APIs [1] has been licensed as Apache 2.0 -a free license- but at the same time they are restricting the rights of the users with these conditions [2], and I ...
    KlessKless
    Jun 9, 2008 at 6:36 pm
    Jun 11, 2008 at 8:10 pm
  • In xp when I try os.path.getmtime("%userprofile/dir/file%") Python bites back with "cannot find the path specified" Since my script has to run on machines where the username is unspecified I need a ...
    BsagertBsagert
    Jun 10, 2008 at 3:56 pm
    Jun 11, 2008 at 11:47 am
Group Navigation
period‹ prev | Jun 2008 | next ›
Group Overview
grouppython-list @
categoriespython
discussions790
posts3,695
users897
websitepython.org

897 users for June 2008

Lie: 76 posts John Machin: 68 posts Terry Reedy: 67 posts Bruno Desthuilliers: 56 posts Diez B. Roggisch: 56 posts Gabriel Genellina: 56 posts George Sakkis: 46 posts Peter Otten: 45 posts Larry Bates: 42 posts Mike Driscoll: 39 posts Alexnb: 38 posts John Salerno: 36 posts MRAB: 36 posts Cédric Lucantis: 34 posts Maric Michaud: 33 posts Klant: 32 posts Matimus: 32 posts John Salerno: 31 posts Russ P.: 31 posts Chris: 30 posts
show more
Archives