FAQ

Search Discussions

630 discussions - 4,127 posts

  • I've never had any call to use floating point numbers and now that I want to, I can't! *** Python 2.5.1 (r251:54863, May 1 2007, 17:47:05) [MSC v.1310 32 bit (Intel)] on win32. *** ...
    RobinsieblerRobinsiebler
    Feb 13, 2008 at 11:01 pm
    Mar 12, 2008 at 3:47 pm
  • ( Surely if this question has been asked for a zillion of times... ) ( and sorry for my english! ) I'm impressed with python. I'm very happy with the language and I find Python+Pygame a very powerful ...
    Santiago RomeroSantiago Romero
    Feb 5, 2008 at 8:19 am
    Feb 14, 2008 at 10:35 am
  • This is part of a series examining the strengths and weaknesses of various scripting languages, with particular attention to enterprise (read: big company) use. You Used Python to Write WHAT? Python ...
    EstherschindlerEstherschindler
    Feb 20, 2008 at 11:22 am
    Feb 29, 2008 at 4:25 am
  • Hi all. In C, an assignment statement returns the value assigned. For instance: int x int y = (x = 3) In the above example, (x=3) returns 3, which is assigned to y. In python, as far as I can tell, ...
    MrstephengrossMrstephengross
    Feb 21, 2008 at 9:43 pm
    Feb 27, 2008 at 2:35 pm
  • I'd like to turn off ZeroDivisionError. I'd like 0./0. to just give NaN, and when output, just print 'NaN'. I notice fpconst has the required constants. I don't want to significantly slow floating ...
    Neal BeckerNeal Becker
    Feb 9, 2008 at 10:03 pm
    Feb 17, 2008 at 2:44 am
  • I'm a little dissatisfied, and just thinking aloud. Some of the ideas that have been proposed on Python-ideas as well as Python, have received partial evaluation from the alphas. Lesser individuals ...
    CastironpiCastironpi
    Feb 19, 2008 at 3:14 am
    Feb 23, 2008 at 7:21 pm
  • Hi guys, I've been using Python for some time now, and am very impressed with its lack of red tape and its clean syntax -- both probably due to the BDFL's ability to know when to say "no". Most of ...
    BenhoytBenhoyt
    Feb 18, 2008 at 10:28 pm
    Feb 23, 2008 at 8:32 pm
  • What is dream hardware for the Python interpreter?
    CastironpiCastironpi
    Feb 12, 2008 at 6:05 pm
    Feb 17, 2008 at 8:31 pm
  • what would be the best python GUI toolkit, it must be cross platform. i have tried gtk, but it interface are real bad and its coding was difficult so i dropped it, the only remaining are qt4 and wx, ...
    DefaultDefault
    Feb 3, 2008 at 3:18 pm
    Feb 17, 2008 at 5:51 am
  • Specify def thloop( th ): while th.cont: with th.step[2]: th.ret= th.cmd+ 1 def acq( th ): with th.step[1]: th.cmd= 100 with th.step[3]: ret1= th.ret th.step.reset() assert ret1== 101 Is it enough?
    CastironpiCastironpi
    Feb 26, 2008 at 3:30 am
    Feb 29, 2008 at 4:47 pm
  • Why does list have no 'get' method with exactly the same semantics as dict's get, that is "return an element if there is one, but do NOT raise an exception if there is not.": def get(self, item, ...
    Denis BilenkoDenis Bilenko
    Feb 7, 2008 at 5:31 am
    Feb 11, 2008 at 9:35 am
  • To All, I have been evaluating the python environment ever more closer. I believe I can interface python with a development environment known as the ImpulseC environment. The ImpulseC environment ...
    Blubaugh, David A.Blubaugh, David A.
    Feb 1, 2008 at 1:36 am
    Feb 9, 2008 at 12:22 am
  • Ruby has a neat little convenience when writing loops where you don't care about the loop index: you just do n.times do { ... some code ... } where n is an integer representing how many times you ...
    Miller Paul WMiller Paul W
    Feb 3, 2008 at 2:03 am
    Feb 5, 2008 at 9:12 pm
  • I have the following two identical clients #test1.py:----------- import socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) host = 'localhost' port = 5052 #server port s.connect((host, ...
    7stud7stud
    Feb 25, 2008 at 8:51 am
    Feb 27, 2008 at 3:27 pm
  • Maybe this is a very primative question, but I just get a bit confused about 'set' and 'Set' module in python. I understand 'set' is a build in type in python after 2.4(or 2.3) and Set a seperate ...
    SunSun
    Feb 12, 2008 at 1:45 pm
    Feb 16, 2008 at 10:12 pm
  • Hi all, the url http://torquedev.blogspot.com/2008/02/changes-in-air.html (blog of a game developers) says IronPython is faster than CPython in 1.6 times. Is it really true? If yes, what are ...
    DmitreyDmitrey
    Feb 5, 2008 at 5:31 pm
    Feb 12, 2008 at 9:10 pm
  • I'm pleased to announce the release of Phatch which is a powerful batch processor and renamer. Phatch exposes a big part of the Python Imaging Library through an user friendly GUI. (It is using ...
    SPE - Stani's Python EditorSPE - Stani's Python Editor
    Feb 18, 2008 at 2:58 pm
    Apr 7, 2008 at 1:15 pm
  • Alright so me and my friend are having argument. Ok the problem we had been asked a while back, to do a programming exercise (in college) That would tell you how many days there are in a month given ...
    NexesNexes
    Feb 15, 2008 at 4:24 pm
    Mar 10, 2008 at 2:11 am
  • Hi! Can somebody of you make me a sample how to define a function based on "call by reference" ??? I am a python newbie and I am not getting smart how to define functions, that should modify the ...
    Tamer HigaziTamer Higazi
    Feb 28, 2008 at 12:02 am
    Mar 16, 2008 at 8:01 am
  • Hi, I need a generator which produces all ways to place n indistinguishable items into k distinguishable boxes. For n=4, k=3, there are (4+3-1)!/(3-1)!/4! = 15 ways. (0,0,4) (0,4,0) (4,0,0) (0,2,2) ...
    Michael RobertsonMichael Robertson
    Feb 28, 2008 at 2:40 am
    Feb 28, 2008 at 7:54 pm
  • Readability of the Pickle module. Can one export to XML, from cost of speed and size, to benefit of user-readability? It does something else: plus functions do not export their code, either in ...
    CastironpiCastironpi
    Feb 13, 2008 at 9:43 pm
    Feb 19, 2008 at 1:50 am
  • Hello All, I have several .NET DLL (I have no source code for them), is there anyway to use them from python instead of from C#. Thanks, Huayang
    Huayang XiaHuayang Xia
    Feb 6, 2008 at 9:27 pm
    Feb 15, 2008 at 12:22 pm
  • How would I go about "flattening" a dict with many nested dicts within? The dicts might look like this: {"mays" : {"eggs" : "spam"}, "jam" : {"soda" : {"love" : "dump"}}, "lamba" : 23 } I'd like it ...
    BenjaminBenjamin
    Feb 17, 2008 at 3:56 am
    Feb 22, 2008 at 4:08 am
  • print dir(type) #__mro__ attribute is in here print dir(object) #no __mro__ attribute class Mammals(object): pass class Dog(Mammals): pass print issubclass(Dog, type) #False print Dog.__mro__ ...
    7stud7stud
    Feb 4, 2008 at 3:36 am
    Feb 4, 2008 at 9:46 pm
  • I had a global variable holding a count. One source Google found suggested that I wouldn't need the global if I used an object. So I created a Singleton class that now holds the former global as an ...
    MartinRinehartMartinRinehart
    Feb 21, 2008 at 12:16 pm
    Feb 23, 2008 at 9:44 pm
  • I went to Python.org, DL'd Python 2.5 source code per the usual inadequate instructions and ran the make files successfully (sort of). Python 2.5 works fine. But "from Tkinter import *" gets a ...
    MartinRinehartMartinRinehart
    Feb 17, 2008 at 7:38 pm
    Feb 22, 2008 at 1:40 pm
  • See Subject. It's a simple txt file, each line is a Python stmt, but I need up to four digits added to each line with a space between the number field and the text. Perhaps someone has already done ...
    W. WatsonW. Watson
    Feb 14, 2008 at 6:54 am
    Feb 18, 2008 at 3:22 pm
  • This is the best praise of semantic indentation I have read so far, by Chris Okasaki: http://okasaki.blogspot.com/2008/02/in-praise-of-mandatory-indentation-for.html A quotation: I have appreciated ...
    BearophileHUGSBearophileHUGS
    Feb 26, 2008 at 1:36 pm
    Feb 29, 2008 at 5:26 pm
  • Is there any way to tell between whether a keyword arg has been explicitly specified (to the same value as the default for it) or not... For example: def func(key=None): do something with key But the ...
    Mario ruggierMario ruggier
    Feb 3, 2008 at 11:00 am
    Feb 5, 2008 at 7:43 pm
  • Is there a open souce IDE writen by C( C++) or partly writen by C( C+ +)?
    ZaleyZaley
    Feb 22, 2008 at 2:58 am
    Feb 25, 2008 at 10:49 am
  • I've been looking at the Python source code recently, more specifically trying to figure out how it's garbage collector works. I've gathered that it uses refcounting as well as some cycle-detection ...
    Pie SquaredPie Squared
    Feb 17, 2008 at 6:32 pm
    Feb 20, 2008 at 4:26 pm
  • I'm trying to execute a function in its own thread, due to this method taking a very long time to complete. I really don't see the need to inherit the Thread class, as basically every online example ...
    SkawaiiSkawaii
    Feb 16, 2008 at 12:14 am
    Feb 19, 2008 at 9:12 pm
  • True False Thanks, Tobiah -- Posted via a free Usenet account from http://www.teranews.com
    TobiahTobiah
    Feb 13, 2008 at 10:19 pm
    Feb 19, 2008 at 5:54 pm
  • Do you think it is relatively easy to write sort algorithms such as the common Bubble sort in Python as compared to other high level programming langauges
    T3chn0n3rdT3chn0n3rd
    Feb 9, 2008 at 1:00 am
    Feb 10, 2008 at 6:43 pm
  • Hi pythoneans, I'm looking for a simple text based GUI definition format and associated python modules to work with it that is capable of defining simple GUI's for *both* the web and the desktop. I ...
    Daniel FetchinsonDaniel Fetchinson
    Feb 3, 2008 at 3:42 am
    Feb 3, 2008 at 8:43 pm
  • I need a data structure that will let me do: - attribute access (or index) - maintain the order (for iter and print) - be mutable. in case there isn't one. I was thinking having a base class like ...
    Jorge VargasJorge Vargas
    Feb 20, 2008 at 1:12 pm
    Feb 27, 2008 at 9:13 am
  • Hey guys and gals. What are all the cool kids using these days to document their code? My goal is to create in-line documentation of each package/module/class/method and create some semi-nice looking ...
    Preston LandersPreston Landers
    Feb 15, 2008 at 4:59 pm
    Feb 21, 2008 at 2:23 am
  • Which library could you recommend to perform simple editing of Python code (from Python program)? For example, open *.py file, find specific function definition, add another function call inside, ...
    AlexAlex
    Feb 9, 2008 at 11:38 am
    Feb 11, 2008 at 5:15 am
  • This has me completely mystified. Some SELECT operations performed through MySQLdb produce different results than with the MySQL graphical client. This failed on a Linux server running Python 2.5, ...
    John NagleJohn Nagle
    Feb 4, 2008 at 7:30 pm
    Feb 7, 2008 at 4:21 pm
  • Hi I'm very much a beginner with Python. I want to write a function to convert celcius to fahrenheit like this one: def celciusToFahrenheit(tc): tf = (9/5)*tc+32 return tf I want the answer correct ...
    Helen M FlynnHelen M Flynn
    Feb 25, 2008 at 10:44 am
    Mar 10, 2008 at 3:24 pm
  • I hav read on this forum that SQL coding (A) below is preferred over (B), but I find (B) is much faster (20-40% faster) (A) sqla= 'INSERT INTO DTABLE1 VALUES (%d, %d, %d, %f)' % values ...
    MdboldinMdboldin
    Feb 29, 2008 at 3:35 am
    Mar 4, 2008 at 4:09 pm
  • I've been teaching myself the python language over the past few months using Mark Lutz' Learning Python, 3ed. Python is also the first programming language I've ever taken up. I find the language ...
    BenoitBenoit
    Feb 27, 2008 at 11:24 pm
    Mar 1, 2008 at 9:17 am
  • Hi, I'm trying to devise a scheme to encrypt/obfuscate a short string that basically contains the user's username and record number from the database. I'm using this encrypted string to identify ...
    ErikcwErikcw
    Feb 11, 2008 at 7:45 pm
    Feb 20, 2008 at 3:06 am
  • On behalf of the Python development team and the Python community, I'm happy to announce the release of Python 2.5.2 (release candidate 1). This is the second bugfix release of Python 2.5. Python 2.5 ...
    Martin v. LöwisMartin v. Löwis
    Feb 14, 2008 at 9:28 pm
    Feb 16, 2008 at 3:29 am
  • Are there any Python libraries implementing measurement of similarity of two strings of Latin characters? I'm writing a script to guess-merge two tables based on people's names, which are not ...
    AgenkinAgenkin
    Feb 6, 2008 at 10:01 pm
    Feb 7, 2008 at 10:31 pm
  • I'm considering writing a little interpreter for a python-like language and I'm looking for name suggestions. :-) Basically, I don't want to change a whole lot about Python. In fact, I see myself ...
    Miller Paul WMiller Paul W
    Feb 3, 2008 at 6:17 pm
    Feb 5, 2008 at 11:04 pm
  • I spent too long Googling for Python's BNF. Eventually found it at Python.org, but only by accident. I've put Python's BNF here: http://www.martinrinehart.com/articles/python-parse-bnf.html ...
    MartinRinehartMartinRinehart
    Feb 27, 2008 at 5:23 pm
    Mar 2, 2008 at 3:30 pm
  • Hi, I would like to raise an exception any time a subprocess tries to read from STDIN: latexprocess = subprocess.Popen( \ 'pdflatex' + " " \ + 'test' + " 2 &1", \ shell=True, \ cwd=os.getcwd(), \ ...
    Michael GoerzMichael Goerz
    Feb 27, 2008 at 4:25 pm
    Feb 29, 2008 at 5:07 pm
  • Is there an easy way to make string-formatting smart enough to gracefully handle iterators/generators? E.g. transform = lambda s: s.upper() pair = ('hello', 'world') print "%s, %s" % pair # works ...
    Tim ChaseTim Chase
    Feb 27, 2008 at 4:23 pm
    Feb 28, 2008 at 2:43 am
  • Essence: * Trac is deficient, cause of "proud to be an egoism driven amateur" developers * Python and it's communities is excellent for learning. Not programming, but to "learn from deficiency", ...
    Ilias LazaridisIlias Lazaridis
    Feb 16, 2008 at 12:16 pm
    Feb 19, 2008 at 12:51 am
Group Navigation
period‹ prev | Feb 2008 | next ›
Group Overview
grouppython-list @
categoriespython
discussions630
posts4,127
users779
websitepython.org

779 users for February 2008

Steve Holden: 178 posts Castironpi: 171 posts Gabriel Genellina: 156 posts Jeff Schwab: 139 posts Steven D'Aprano: 105 posts Grant Edwards: 65 posts 7stud: 63 posts Arnaud Delobelle: 60 posts Diez B. Roggisch: 54 posts Stefan Behnel: 53 posts Ben Finney: 51 posts Christian Heimes: 51 posts Bruno Desthuilliers: 49 posts BearophileHUGS: 47 posts Carl Banks: 46 posts Marc 'BlackJack' Rintsch: 45 posts Tim Chase: 38 posts Martin v. Löwis: 37 posts Guilherme Polo: 34 posts Duncan Booth: 30 posts
show more
Archives