FAQ

Search Discussions

773 discussions - 4,147 posts

  • What's with the index() function of lists throwing an exception on not found? Let's hope this is rectified in Python 3. If nothing else, add a function that doesn't throw an exception. There are a ...
    ZzbbaaddZzbbaadd
    Aug 30, 2007 at 6:44 am
    Sep 5, 2007 at 6:35 am
  • I just stumbled onto PEP 316: Programming by Contract for Python (http://www.python.org/dev/peps/pep-0316/). This would be a great addition to Python, but I see that it was submitted way back in ...
    RussRuss
    Aug 29, 2007 at 1:04 am
    Sep 2, 2007 at 6:19 pm
  • Hello, I have a simple question. Say you have the following function: def f(x, y = []): y.append(x) return y print f(23) # prints [23] print f(42) # prints [23, 42] As far as I understand, the ...
    Lee FlemingLee Fleming
    Aug 6, 2007 at 6:50 am
    Aug 13, 2007 at 11:44 pm
  • Like in math where you put letters that represent numbers for place holders to try to find the answer type complex numbers? An HTML attachment was scrubbed... URL: ...
    Lamonte HarrisLamonte Harris
    Aug 31, 2007 at 1:11 am
    Sep 9, 2007 at 11:29 am
  • Hello, While I don't pretend to be an authority on the subject, a few days of research has lead me to believe that a discussion needs to be started (or continued) on the state and direction of ...
    Justin T.Justin T.
    Aug 10, 2007 at 10:01 am
    Aug 23, 2007 at 12:58 am
  • Hall?chen! Some LaTeX users in Aachen thought about a general-use markup language this spring. I wrote some code and a rough project description, however, we could need some help. If you are ...
    Torsten BrongerTorsten Bronger
    Aug 23, 2007 at 5:29 pm
    Sep 1, 2007 at 10:58 pm
  • hello, I discovered that boolean evaluation in Python is done "fast" (as soon as the condition is ok, the rest of the expression is ignored). Is this standard behavior or is there a compiler switch ...
    Stef MientkiStef Mientki
    Aug 2, 2007 at 9:47 pm
    Aug 6, 2007 at 7:44 am
  • Would someone like to suggest a replacement for this? It works ok, but it doesn't look like any of the other code: tempList = ['1','2','3','4','5','6','7','8'] sampleList=[] for port in tempList: ...
    BambamBambam
    Aug 23, 2007 at 9:45 am
    Aug 27, 2007 at 6:44 pm
  • True False Why? Thanks, Dick Moores
    Dick MooresDick Moores
    Aug 9, 2007 at 5:38 pm
    Aug 12, 2007 at 5:22 pm
  • I'm surprised to read this: http://en.wikipedia.org/wiki/Python_3 """Note that while there is no explicit requirement that code be able to run unmodified in both versions, in practice it is quite ...
    John J. LeeJohn J. Lee
    Aug 5, 2007 at 5:52 pm
    Aug 10, 2007 at 8:28 am
  • Hello list: I have tried various times to use an IDE for python put have always been disapointed. I haven't revisited the idea in about a year and was wondering what the python people use. I have ...
    Joel Andres GranadosJoel Andres Granados
    Aug 21, 2007 at 10:00 am
    Aug 30, 2007 at 9:51 am
  • I'd like to refresh the display before I start the main loop. I have code like this: app = App() app.Show() app.long_slow_init() app.MainLoop() The main frame partly loads at Show, but because the ...
    DavidDavid
    Aug 9, 2007 at 5:25 am
    Aug 21, 2007 at 8:10 am
  • Hi All. I'd like to do the following in more succint code: if k in b: a=b[k] else: a={} b[k]=a a['A']=1 In perl it is just one line: $a=$b- {"A"} ||={}. Thanks, Geoffrey
    BeginnerBeginner
    Aug 16, 2007 at 10:35 pm
    Aug 18, 2007 at 12:41 pm
  • Hi, I have read the source code of the built-in random module, random.py. After also reading Wiki article on Knuth Shuffle algorithm, I wonder if the shuffle method implemented in random.py produces ...
    Tooru hondaTooru honda
    Aug 24, 2007 at 7:38 am
    Sep 10, 2007 at 7:52 am
  • Hi, i have strings which look like money values (ie 34.45) is there a way to convert them into float variables? everytime i try I get this error: "numb = float(my_line) ValueError: empty string for ...
    Luca bertiniLuca bertini
    Aug 30, 2007 at 2:14 pm
    Sep 1, 2007 at 4:28 am
  • Hi, I've been very confused about why this doesn't work. I mean I don't see any reason why this has been made not to work. class Log: def __init__(self, verbose, lock = None): if verbose is True: ...
    Ritesh Raj SarrafRitesh Raj Sarraf
    Aug 10, 2007 at 9:53 pm
    Aug 16, 2007 at 5:25 pm
  • Hi all. I guess i have a conceptual question: Im planing using a quite simple decorator to be used as a conditional for the execution of the function. I mean something like that: @is_logued_in def ...
    Gerardo HerzigGerardo Herzig
    Aug 16, 2007 at 8:16 pm
    Sep 3, 2007 at 11:40 am
  • Hi all, I need to do syntax parsing of simple naturual languages, for example, "weather of London" or "what is the time", simple things like these, with Unicode support in the syntax. In Java, there ...
    JackJack
    Aug 18, 2007 at 10:22 pm
    Aug 27, 2007 at 2:36 pm
  • Reviews of latest models of best guitars, fender, gibson, yamaha, and many more, with pictures and prices. http://pro-guitars.blogspot.com/ And if you want to win a free guitar go here ...
    MobilenddMobilendd
    Aug 19, 2007 at 5:34 pm
    Aug 21, 2007 at 9:30 pm
  • Hello, What would be the best cross-platform GUI library to use for a vector based CAD program ( something like Visio on Windows ) WxWidgets, Tk, PyQt, Java Swing, Java SWT,???? I need the capibility ...
    Chewie54Chewie54
    Aug 17, 2007 at 1:27 pm
    Aug 20, 2007 at 8:37 pm
  • This is probably a simple code. I am a truck driver who gets paid by stops and cases. I am trying to figure out how to code my stop pay. I get 40 cents per stop up to 22 stops, and $1.40 per stops ...
    HD1956HD1956
    Aug 20, 2007 at 2:23 pm
    Aug 21, 2007 at 6:25 pm
  • Hi All, This is just a very simple question about a python trick. In perl, I can write __END__ in a file and the perl interpreter will ignore everything below that line. This is very handy when ...
    BeginnerBeginner
    Aug 1, 2007 at 3:53 am
    Aug 2, 2007 at 10:07 pm
  • Wingware <info at wingware.com wrote in news:46AF8ED7.2070206 at wingware.com: There is one feature that I would like to suggest: open module in project. Currently you need to Navigate inside the ...
    Alex PopescuAlex Popescu
    Aug 1, 2007 at 12:10 am
    Aug 2, 2007 at 5:26 pm
  • Hi, I'm trying to create a tar file of the contents of the current directory right now there is only one file "text.xml" in the current dir, I'm using"." current dir as source but that gives syntax ...
    Brian McCannBrian McCann
    Aug 23, 2007 at 5:27 pm
    Aug 24, 2007 at 6:54 pm
  • Hi, this is actually a question to those of us who use Eclipse and Pydev as their main Python developing environment. As i use Eclipse (3.3 Europa) only for Python and i have nothing to do with Java, ...
    King kikapuKing kikapu
    Aug 3, 2007 at 2:58 pm
    Aug 14, 2007 at 8:11 am
  • "simply indispensable", I don't know. FWIW, most of the features of Python are not "simply indispensable" !-) Most of what you can do with a callable instance can be done with closures (and is ...
    Bruno DesthuilliersBruno Desthuilliers
    Aug 2, 2007 at 2:30 pm
    Aug 3, 2007 at 11:23 pm
  • Hi, does anyone have a good example of how to read a line in a file? say you have a file build.log and in the file are values like buildnum = 1 date = 20070820 I know how to read the contents and ...
    Brian McCannBrian McCann
    Aug 20, 2007 at 5:10 pm
    Aug 21, 2007 at 1:53 pm
  • After a fair amount of troubleshooting of why my lists were coming back a handful of digits short, and the last digit rounded off, I determined the str() function was to blame: 0.0071299720384678782 ...
    Adam W.Adam W.
    Aug 11, 2007 at 4:40 pm
    Aug 16, 2007 at 4:51 pm
  • Hello, I'm new to this group, I've read through the subject of a lot of the group but can't find anything relevant. Perhaps my question is too basic but I'm still stuck. Classes and Dictionaries. If ...
    Special_dragonflySpecial_dragonfly
    Aug 9, 2007 at 8:22 am
    Aug 11, 2007 at 5:10 am
  • Hello All, Say I have this code: import AModule import ModuleUser ModuleUser.do_something_with(AModule, 'some_function_name') But say the functions are defined in the same module that contains the ...
    James StroudJames Stroud
    Aug 4, 2007 at 12:22 am
    Aug 4, 2007 at 10:07 am
  • Hello everyone. I've searched through the archives here, and it seems that questions similar to this one have come up in the past, but I was hoping that I could pick your Pythonic brains a bit. ...
    JeffJeff
    Aug 29, 2007 at 4:07 am
    Sep 4, 2007 at 11:29 pm
  • Important Research Project (Related to computer programming) Posted by E.D.G. on August 30, 2007 edgrsprj at ix.netcom.com This report is being posted to a number of Internet Newsgroups to see if ...
    E.D.G.E.D.G.
    Aug 30, 2007 at 1:12 pm
    Sep 2, 2007 at 1:50 am
  • When I create a subfolder, python is not seeing it. Can someone please explain this behaviour ? I just started with python, read the tutorial over the weekend and am writing my very first script. So ...
    Mr_gadgetMr_gadget
    Aug 30, 2007 at 8:30 am
    Aug 31, 2007 at 12:57 pm
  • For reasons that I won't explain, as they are too complicated and not terribly relevant, I am interested in discovering what people actually use regular expressions for. Not the subject domain, but ...
    Nick MaclarenNick Maclaren
    Aug 24, 2007 at 10:58 am
    Aug 25, 2007 at 2:29 pm
  • I have a huge log file which contains 3,453,299,000 lines with different lengths. It is not possible to calculate the absolute position of the beginning of the one billionth line. Are there efficient ...
    Sullivan WxPyQtKinterSullivan WxPyQtKinter
    Aug 8, 2007 at 6:23 am
    Aug 12, 2007 at 12:50 pm
  • newbie question: Is there a 'K&R" type of Python book? The book that you'd better have on your shelf if you are going into Python?
    DhrDhr
    Aug 4, 2007 at 1:23 pm
    Aug 8, 2007 at 5:32 pm
  • Could anyone put me on the right track to developing Python with emacs please : modes to consider, debugging etc hopefully all within emacs. Any help and shared experiences much appreciated.
    HadronHadron
    Aug 1, 2007 at 2:37 pm
    Aug 8, 2007 at 1:37 am
  • For a file hashing system (finding similar files, rather than identical ones), I need to be able to efficiently and quickly sum the ordinals of the bytes of a file and their squares. Because of the ...
    Erik Max FrancisErik Max Francis
    Aug 12, 2007 at 9:26 am
    Aug 19, 2007 at 12:55 am
  • I've got a wxPython program that needs to do some drawing on a DC on a regular basis, whether or not a paint event happens. I know how to make a ClientDC to do the drawing in, and I know what drawing ...
    Matt BittenMatt Bitten
    Aug 10, 2007 at 1:46 am
    Aug 13, 2007 at 10:44 pm
  • Hello I'm trying to chain two programs with a pipe (the output of one feeding the input of the other). I managed to capture the output and feeding the input of each program independently with popen, ...
    AvishayAvishay
    Aug 21, 2007 at 10:09 pm
    Aug 28, 2007 at 11:18 pm
  • To become part of a larger script that will read through all files on a given drive, I was playing around with reading files and wanted to see if there was an optimum value for a read size on my ...
    SignalSignal
    Aug 21, 2007 at 4:06 am
    Aug 22, 2007 at 11:58 am
  • Hello all. I realize that proposals dealing with alternatives to indentation have been brought up (and shot down) before, but I would like to take another stab at it, because it is rather important ...
    AaronAaron
    Aug 18, 2007 at 6:22 pm
    Aug 21, 2007 at 4:45 pm
  • Hi folks, I am currently using Eclipse+PyDev when developping Python projects but I lack a fast, simple editor for tiny bit of scripts. So here is my question: what is, for you, the current best ( ...
    SébastienSébastien
    Aug 19, 2007 at 9:47 am
    Aug 20, 2007 at 6:18 pm
  • Hi all, I'm generating a binding from Python to C using SWIG. On the C side I have iterators over some data structures. On the Python side I currently use code like the following: def get_data(obj): ...
    Stefan BellonStefan Bellon
    Aug 7, 2007 at 10:28 pm
    Aug 12, 2007 at 4:06 am
  • Hi, I've been looking at stackless python a little bit, and it's awesome. My question is, why hasn't it been integrated into the upstream python tree? Does it cause problems with the current ...
    Justin T.Justin T.
    Aug 9, 2007 at 9:00 am
    Aug 10, 2007 at 6:41 pm
  • i dont know how to convert a txt file into a zip file (i.e.,)i have a file named packages and i want the packages file with a ".gz" extension by implementing a python program
    Cool VimalsmailCool Vimalsmail
    Aug 2, 2007 at 9:31 am
    Aug 3, 2007 at 6:02 pm
  • Rise up and shine, white sons and daughters Rise up and shine, you gotta fight to part those waters When we swim in the light, all will be okay The black, yellow and brown man will wash away. ...
    Nenad Milicevic - The Aryan SerbNenad Milicevic - The Aryan Serb
    Aug 27, 2007 at 7:13 am
    Sep 6, 2007 at 5:24 am
  • # using old-style classes: import new def repmeth( self ): print "repmeth" class CC: def __init__( self ): self.m1 = new.instancemethod(repmeth, self, type(self)) print 'Hello from init' def m1 ( ...
    Bruno DesthuilliersBruno Desthuilliers
    Aug 22, 2007 at 5:30 am
    Aug 27, 2007 at 3:07 pm
  • I'd appreciate opinions about this new Python book. Title: Python Power!: The Comprehensive Guide Author: Matt Telles Publisher: Course Technology Pub. Date: Jul 27, 2007 Edition: 1st edition ...
    Dick MooresDick Moores
    Aug 14, 2007 at 12:05 pm
    Aug 17, 2007 at 3:47 pm
  • Hi, I just started with python, and have a for loop question In c++ (or a number of other languages) I can do this: for (int i=0, j=0; i < i_len, j< j_len; ++i, ++j) {} If I have this in python: l = ...
    BryanBryan
    Aug 14, 2007 at 4:22 pm
    Aug 15, 2007 at 6:22 pm
Group Navigation
period‹ prev | Aug 2007 | next ›
Group Overview
grouppython-list @
categoriespython
discussions773
posts4,147
users967
websitepython.org

967 users for August 2007

Steve Holden: 164 posts Kyosohma: 111 posts Bruno Desthuilliers: 71 posts Neil Cerutti: 68 posts Marc 'BlackJack' Rintsch: 66 posts Chris Mellon: 64 posts Gabriel Genellina: 55 posts Peter Otten: 53 posts James Stroud: 52 posts Alex Martelli: 51 posts Bjoern Schliessmann: 50 posts Carsten Haese: 45 posts Diez B. Roggisch: 45 posts Beginner: 43 posts Tony: 43 posts Ben Finney: 38 posts Bruno Desthuilliers: 37 posts Robert Dailey: 36 posts Paul McGuire: 34 posts Jay Loden: 31 posts
show more
Archives