FAQ

Search Discussions

749 discussions - 4,174 posts

  • Hi all, I'm a recent, belated convert from Perl. I work in a physics lab and have been using Python to automate a lot of measurement equipment lately. It works fabulously for this purpose. Recently ...
    Dan LenskiDan Lenski
    Nov 8, 2006 at 6:38 pm
    Nov 17, 2006 at 6:12 am
  • I have used Matlab for years, and has recently changed to Python. In addition one needs NumPy and Matplotlib, and perhaps SciPy. Other useful packages are PyGTK for GUI, PyGame for multimedia, ...
    SturlamoldenSturlamolden
    Nov 16, 2006 at 9:09 pm
    Dec 15, 2006 at 8:07 pm
  • I don't know if this is a fair comparison or not. Any comments appreciated. - Python is more readable, and more general purpose - PHP has awful backward compatibility - PHP has a lower barrier to ...
    WalterbyrdWalterbyrd
    Nov 14, 2006 at 7:38 pm
    Nov 27, 2006 at 4:25 pm
  • I'd like to use multiple CPU cores for selected time consuming Python computations (incl. numpy/scipy) in a frictionless manner. Interprocess communication is tedious and out of question, so I ...
    RobertRobert
    Nov 2, 2006 at 6:32 pm
    Nov 11, 2006 at 8:52 am
  • Greetings all, Some of you may have noticed the launch of the Python Journal a while back. Due to artistic differences, the journal has now been re-launched as The Python Papers. It is available ...
    TleeuwenburgTleeuwenburg
    Nov 21, 2006 at 3:44 am
    Nov 27, 2006 at 11:14 pm
  • Hi all, At work I'm considering proposing a solution for our distributed processing system (a web based shopping cart that feeds an actual printing production line) based on Pyro. I've done some ...
    WritesonWriteson
    Nov 5, 2006 at 2:41 am
    Nov 9, 2006 at 12:14 pm
  • hi, from the documentation (http://docs.python.org/lib/os-file-dir.html) for os.listdir: "On Windows NT/2k/XP and Unix, if path is a Unicode object, the result will be a list of Unicode objects." i'm ...
    GaborGabor
    Nov 16, 2006 at 9:05 pm
    Nov 21, 2006 at 10:25 am
  • Hi List! I was thinking about secure Python code execution, and I'd really appreciate some comments from those who know Python better than I do. I was thinking that maybe it could be possible to load ...
    Fredrik TolfFredrik Tolf
    Nov 16, 2006 at 3:02 am
    Nov 20, 2006 at 5:47 am
  • Is there a way to use Decimal() by default in Python instead of float? I've no use for the float type, and I have some stuff that would require Decimal(), but it is kind of a pain to try and cast ...
    Michael B. TrauschMichael B. Trausch
    Nov 12, 2006 at 1:23 am
    Nov 18, 2006 at 12:50 am
  • both are interpreted oo langauges......
    GavinoGavino
    Nov 10, 2006 at 12:44 am
    Nov 13, 2006 at 3:26 pm
  • I looked around for an ElementTree-specific mailing list, but found none -- my apologies if this is too broad a forum for this question. I've been using the lxml variant of the ElementTree API, which ...
    Chas EmerickChas Emerick
    Nov 15, 2006 at 7:33 pm
    Nov 19, 2006 at 4:34 pm
  • Some think it will. Up untill now, Java has never been standard across different versions of Linux and Unix. Some think that is one reason that some developers have avoided Java in favor of Python. ...
    WalterbyrdWalterbyrd
    Nov 15, 2006 at 8:54 pm
    Nov 17, 2006 at 6:57 pm
  • According to the following page on Wikipedia: http://en.wikipedia.org/wiki/Python_%28programming_language%29#Future_development reduce is going to be removed in python 3.0. It talks of an ...
    DustanDustan
    Nov 11, 2006 at 10:10 pm
    Nov 15, 2006 at 8:02 am
  • Hi, Could anyone suggest me a simple IDE suitable for teaching Python as a first programming language to high school students? It is necessary that it has a good support for input/output in Cyrillic. ...
    Kirill SimonovKirill Simonov
    Nov 18, 2006 at 7:01 pm
    Nov 22, 2006 at 7:01 pm
  • I've seen a few posts, columns and articles which state that one of the advantages of Python is that code can be developed x times faster than languages such as <<Insert popular language name here . ...
    Chris BratChris Brat
    Nov 13, 2006 at 1:48 pm
    Nov 21, 2006 at 8:56 pm
  • The Python FAQ 1.4.5 gives 3 reasons for explicit self (condensed version): 1. Instance variables can be easily distinguished from local variables. 2. A method from a particular class can be called ...
    Peter MaasPeter Maas
    Nov 11, 2006 at 9:39 pm
    Nov 18, 2006 at 1:20 am
  • I wrote a few functions which IMHO are missing in python(s itertools). You can download them here: http://sourceforge.net/project/showfiles.php?group_id5721&package_id!2104 A short description to ...
    Mathias PanzenboeckMathias Panzenboeck
    Nov 19, 2006 at 8:35 pm
    Nov 21, 2006 at 8:14 am
  • I have a simple assignment for school but am unsure where to go. The assignment is to read in a text file, split out the words and say which line each word appears in alphabetical order. I have the ...
    NateastleNateastle
    Nov 18, 2006 at 5:54 am
    Nov 20, 2006 at 10:09 pm
  • 22

    Yield

    Hi. may someone explain "yield" function, please. how does it actually work and when do you use it? thanks in forward mateusz
    Mateuszk87Mateuszk87
    Nov 15, 2006 at 5:13 pm
    Jan 10, 2007 at 3:17 pm
  • Hi, I'm bringing over a thread that's going on on f.c.l.python. The point was to get rid of french accents from words. We noticed that len('?') != len('a') and I found the hack below to fix the ...
    HgHg
    Nov 22, 2006 at 6:38 pm
    Nov 29, 2006 at 11:08 pm
  • Hi, I'm planning to learn a language for 'client' software. Until now, i 'speak' only some web based languages, like php. As a kid i programmed in Basic (CP/M, good old days :'-) ) Now i want to ...
    LennartLennart
    Nov 13, 2006 at 5:11 pm
    Nov 22, 2006 at 8:09 am
  • I've discovered Python and have been trying it out lately as a possible replacement for computations that would ordinarily be done with a commercial package like Matlab or IDL. I'd like to mention a ...
    MattfMattf
    Nov 2, 2006 at 2:54 pm
    Nov 4, 2006 at 6:35 am
  • I couldn't find a routine to clean up, regularize, and reformat Python code, so I wrote one: http://www.lacusveris.com/PythonTidy/PythonTidy.python Now, I'm looking for beta-testers. Compensation is ...
    Chuck RhodeChuck Rhode
    Nov 30, 2006 at 2:45 am
    Dec 7, 2006 at 10:39 am
  • wtf
    GavinoGavino
    Nov 29, 2006 at 1:03 am
    Dec 1, 2006 at 9:06 am
  • Reading "Think Like a Computer Scientist" I am not sure I understand the way it describes the way objects work with Python. 1) Can attributes can added just anywhere? I create an object called point, ...
    WalterbyrdWalterbyrd
    Nov 21, 2006 at 11:03 pm
    Nov 24, 2006 at 7:04 pm
  • Hi there, are there other ways than the ones below to check for <type 'function' in a python script? (partly inspired by wrapping Tkinter :P) def f(): print "This is f(). Godspeed!" 1.: -- sort of ...
    EldericElderic
    Nov 2, 2006 at 10:06 am
    Nov 3, 2006 at 1:14 am
  • Hi, I have the following problem: I have a list like e = ['a', 'b', 'e'] and another list like l = ['A', 'a', 'c', 'D', 'E'] I would like to remove from l all the elements that appear in e ...
    Rares VernicaRares Vernica
    Nov 17, 2006 at 6:29 pm
    Nov 20, 2006 at 7:32 pm
  • I'm getting really annoyed with python in regards to unicode/ascii-encoding problems. The string below is the encoding of the norwegian word "f?dselsdag". I stored the string as "f?dselsdag" but ...
    Thomas WThomas W
    Nov 6, 2006 at 7:50 pm
    Nov 8, 2006 at 12:41 am
  • If I have a list of say, 10 elements and I need to slice it into irregular size list, I would have to create a bunch of temporary variables and then regroup them afterwords, like: # Just for ...
    John HenryJohn Henry
    Nov 30, 2006 at 6:58 pm
    Nov 30, 2006 at 11:20 pm
  • I want to join two mono wave file to a stereo wave file by only using the default python module. Here is my program, but it is much slower than the C version, so how can I increase the speed? I think ...
    HYRYHYRY
    Nov 28, 2006 at 7:32 am
    Nov 29, 2006 at 5:56 am
  • Is there a ready made function in numpy/scipy to compute the correlation y=mx+o of an X and Y fast: m, m-err, o, o-err, r-coef,r-coef-err ? Or a formula to to compute the 3 error ranges? -robert PS: ...
    RobertRobert
    Nov 11, 2006 at 11:02 am
    Nov 16, 2006 at 8:47 pm
  • Can Python not express the idea of a three-byte int? For instance, in the working example below, can we somehow collapse the three calls of struct.pack into one? 08 12 34 56 80 00 I ask because I'm ...
    P LavarreP Lavarre
    Nov 8, 2006 at 11:10 pm
    Nov 10, 2006 at 3:48 am
  • How to access to a variable (that value is not returned) from a module imported? And the variable is set at the module-level. That module is external to my program, it's from another project so I ...
    GinTonGinTon
    Nov 23, 2006 at 9:19 pm
    Nov 25, 2006 at 12:19 am
  • The Glk API (which I'm implementing in native Python code) defines 120 or so constants that users must use. The constants already have fairly long names, e.g., gestalt_Version, evtype_Timer, ...
    Neil CeruttiNeil Cerutti
    Nov 1, 2006 at 2:29 pm
    Nov 3, 2006 at 4:19 am
  • One of the things I find annoying about Python is that when you make a change to a method definition that change is not reflected in existing instances of a class (because you're really defining a ...
    Ron GarretRon Garret
    Nov 30, 2006 at 7:58 pm
    Dec 2, 2006 at 2:47 pm
  • I have two semi related questions... First, I am trying to output a list of strings to a csv file using the csv module. The output file separates each letter of the string with a comma and then puts ...
    Lisa EngblomLisa Engblom
    Nov 29, 2006 at 3:07 pm
    Dec 1, 2006 at 10:15 am
  • Let's say I'm making a game and I have this base class: class Character(object): def __init__(self, name, stats): self.name = name self.strength = stats[0] self.dexterity = stats[1] self.intelligence ...
    John SalernoJohn Salerno
    Nov 6, 2006 at 9:57 pm
    Nov 9, 2006 at 4:31 pm
  • ... return arg ... ('foo', 'bar') ... (('foo', 'bar'),) TV
    TuomasTuomas
    Nov 5, 2006 at 3:26 pm
    Nov 7, 2006 at 2:54 pm
  • Just wanted to report a delightful little surprise while experimenting with psyco. The program below performs astonoshingly well with psyco. It finds all the prime numbers < 10,000,000 Processor is ...
    Steve BergmanSteve Bergman
    Nov 29, 2006 at 9:54 pm
    Nov 30, 2006 at 9:14 pm
  • Hi, I want to know what type is a variable. For example, I get the contents of an xml but some content is a list or a string, and I need to know what type it is. Thanks
    Leandro ArdissoneLeandro Ardissone
    Nov 29, 2006 at 3:36 pm
    Nov 30, 2006 at 2:26 am
  • Dear all I tried to override methods of build in Python types, so as to change their behavior. I tried to override list.__getitem__ list.__setitem__ and some others alike The test case is: ...
    Michalis GiannakidisMichalis Giannakidis
    Nov 26, 2006 at 4:04 pm
    Nov 28, 2006 at 3:48 pm
  • While studying the SICP video lectures I have to twist my mind some to completely understand the lessons. I implement the programs shown there in both Python and Scheme, and I find the Python ...
    BearophileHUGSBearophileHUGS
    Nov 22, 2006 at 11:51 pm
    Nov 24, 2006 at 2:39 pm
  • This is just some dummy code to mimic what's being done in the real code. The actual code is python which is used as a scripting language in a third party app. The data structure returned by the app ...
    ChrisChris
    Nov 18, 2006 at 2:40 am
    Nov 18, 2006 at 10:46 pm
  • Ok, back to my so-called "game." I'm just curious if I've implemented the subclasses properly, because it seems like an awful lot of repetition with the parameters. And again, if I want to add a new ...
    John SalernoJohn Salerno
    Nov 8, 2006 at 6:21 pm
    Nov 9, 2006 at 3:32 pm
  • http://www.tiobe.com/index.htm?tiobe_index Python is the 7th most commonly used language, up from 8th. The only one gaining ground besides VB in the top 10. We're glad, our app is written in python. ...
    CcdetailCcdetail
    Nov 23, 2006 at 6:35 pm
    Dec 4, 2006 at 2:08 pm
  • Hi, (len(['']) is 1) == (len(['']) == 1) = True Is this the case for all numbers? I've tried running the following: for i in range(10000): for j in range(10000): if i != j: assert id(i) != id(j), ...
    Tor Erik SoenvisenTor Erik Soenvisen
    Nov 23, 2006 at 10:48 am
    Nov 23, 2006 at 9:57 pm
  • Hi experts, it's very common that I have a list and I want to print it with commas in between. How do I do this in an easy manner, whithout having the annoying comma in the end? <code list = ...
    Ernesto García GarcíaErnesto García García
    Nov 5, 2006 at 12:38 pm
    Nov 9, 2006 at 11:31 am
  • HI All, Does such a beast exist? Have been looking but haven't seen any. Any insight would be appreciated. Thanks. Chris
    Chris SeymourChris Seymour
    Nov 1, 2006 at 7:08 pm
    Jan 5, 2007 at 9:08 pm
  • My code does recursion loops through a couple of functions. Due to problematic I/O input this leads sometimes to "endless" recursions and after expensive I/O to the Python recursion exception. What ...
    RobertRobert
    Nov 29, 2006 at 2:52 pm
    Dec 2, 2006 at 5:24 pm
  • Hi I'm a Python newbie, and would like to rewrite this Perl scrip to be run with the Asterisk PBX: http://www.voip-info.org/wiki/view/Asterisk+NetCID Anyone knows if those lines are necessary, why, ...
    Vincent DelporteVincent Delporte
    Nov 27, 2006 at 11:23 pm
    Nov 30, 2006 at 3:45 pm
Group Navigation
period‹ prev | Nov 2006 | next ›
Group Overview
grouppython-list @
categoriespython
discussions749
posts4,174
users918
websitepython.org

918 users for November 2006

Fredrik Lundh: 300 posts John Machin: 131 posts Gagsl-Py: 105 posts Steve Holden: 79 posts Robert: 68 posts Steven D'Aprano: 58 posts Tony Nelson: 55 posts Robert Kern: 53 posts John Henry: 49 posts Peter Otten: 48 posts Ben Finney: 46 posts Hendrik van Rooyen: 46 posts Diez B. Roggisch: 41 posts Paul Boddie: 36 posts John Salerno: 34 posts Marc 'BlackJack' Rintsch: 34 posts Neil Cerutti: 32 posts BearophileHUGS: 30 posts Carl Banks: 30 posts Martin v. Löwis: 29 posts
show more
Archives