FAQ

Search Discussions

790 discussions - 4,786 posts

  • Hi, I've been thinking about Python vs. Lisp. I've been learning Python the past few months and like it very much. A few years ago I had an AI class where we had to use Lisp, and I absolutely hated ...
    63q2o4i0263q2o4i02
    Feb 19, 2006 at 4:41 am
    Mar 1, 2006 at 7:42 am
  • Howdy all, PEP 354: Enumerations in Python has been accepted as a draft PEP. The current version can be viewed online: <URL:http://www.python.org/peps/pep-0354.html Here is the reStructuredText ...
    Ben FinneyBen Finney
    Feb 27, 2006 at 2:49 am
    Mar 3, 2006 at 9:19 am
  • Yes, silly question, but it keeps me up at night. :) I know it comes from the suffix -tuple, which makes me think it's pronounced as 'toople', but I've seen (at m-w.com) that the first pronunciation ...
    John SalernoJohn Salerno
    Feb 13, 2006 at 3:51 am
    Feb 16, 2006 at 2:21 am
  • Someone asked me to write a brief essay regarding the value-add proposition for Python in the Fortran community. Slightly modified to remove a few climatology-related specifics, here it is. I would ...
    Michael TobisMichael Tobis
    Feb 14, 2006 at 5:13 pm
    Mar 9, 2006 at 7:58 pm
  • I have just started to learn python. Some said that its slow. Can somebody pin point the issue. Thans
    Diffuser78Diffuser78
    Feb 11, 2006 at 8:49 pm
    Mar 16, 2006 at 6:43 pm
  • Having read previous discussions on python-dev I think I'm not the only Python programmer who doesn't particularly like python's "self" parameter: class Foo: def bar(self, a,b): return a+b ...
    N EstnerN Estner
    Feb 2, 2006 at 10:08 pm
    Feb 14, 2006 at 7:50 am
  • Hi - I'm running Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on win32, and have a script that makes numerous checks on text files, (configuration files), so discrepancies ...
    Slogging_awaySlogging_away
    Feb 7, 2006 at 4:40 pm
    Feb 13, 2006 at 9:11 am
  • I contacted my domain host about how Python is implemented on their server, and got this response: ------------------- Hello John, Please be informed that the implementation of python in our server ...
    John SalernoJohn Salerno
    Feb 22, 2006 at 12:42 am
    Feb 24, 2006 at 9:18 pm
  • Greetings, I have a rough classification of languages into 2 classes: Zen languages and tool languages. A tool language is a language that is, well, a *tool* for programming a computer. C is the ...
    John ColemanJohn Coleman
    Feb 25, 2006 at 2:09 pm
    Mar 1, 2006 at 1:47 pm
  • Buenos dias, amigos! I have to write _simple_ gui library, for embedding into game. My first attempt was to use XML: isn't it cute to describe ui in such a way: <window <title Hello World!</title ...
    Gregory PetrosyanGregory Petrosyan
    Feb 13, 2006 at 7:26 pm
    Feb 23, 2006 at 12:44 am
  • When I run the following code in a terminal with the encoding set to UTF-8 I get garbage on the first line, but the correct output on the second. import curses s = curses.initscr() s.addstr('\xc3\x85 ...
    Ian WardIan Ward
    Feb 7, 2006 at 8:42 pm
    Feb 10, 2006 at 8:14 pm
  • Hi, My app runs in a loop looking for changes in a database, and like a good boy I call time.sleep(1) inside the loop. Unfortunately this sometimes runs for 200 seconds or so, presumably while my OS ...
    Paul ProbertPaul Probert
    Feb 23, 2006 at 9:26 pm
    Mar 1, 2006 at 12:41 pm
  • I'm relatively new to object oriented programming, so get confused about its usage once in a while. Suppose there is a class Image that has a number of methods, rotate, open, verify, read, close, ...
    Daniel NogradiDaniel Nogradi
    Feb 1, 2006 at 10:40 pm
    Feb 6, 2006 at 4:51 pm
  • I know this is probably a stupid question, but I'm learning Python, and am trying to get the if function to work with letters/words. Basicly, I'm trying to write a script that when run, says Please ...
    ByteByte
    Feb 5, 2006 at 3:52 pm
    Feb 6, 2006 at 4:14 pm
  • Hello, I have two lists, one with strings (filenames, actually), and one with a real-number rank, like: A=['hello','there','this','that'] B=[3,4,2,5] I'd like to sort list A using the values from B, ...
    Brian BlaisBrian Blais
    Feb 26, 2006 at 4:04 pm
    Feb 28, 2006 at 7:12 pm
  • Hi All. I was wondering why defining a __call__ attribute for a module doesn't make it actually callable. I don't have any reason for doing so, I was just wondering if it worked, and found out it ...
    Adam johnsonAdam johnson
    Feb 8, 2006 at 2:38 am
    Feb 11, 2006 at 12:03 am
  • Hi there, I've got a reasonably sized list of objects that I'd like to pull out all combinations of five elements from. Right now I have a way to do this that's quite slow, but manageable. I know ...
    SwrotebSwroteb
    Feb 8, 2006 at 8:50 pm
    Feb 17, 2006 at 4:06 am
  • ...with a twist. I'm undertaking my first semi-substantial Python GUI application after a long time dabbling with the language. I'm fairly experienced with Tcl/Tk, so Tkinter seems the obvious choice ...
    Kevin WalzerKevin Walzer
    Feb 11, 2006 at 12:16 am
    Feb 13, 2006 at 8:29 pm
  • Problem: You have a list of unknown length, such as this: list = [X,X,X,O,O,O,O]. You want to extract all and only the X's. You know the X's are all up front and you know that the item after the last ...
    MarkscalaMarkscala
    Feb 10, 2006 at 5:57 pm
    Feb 13, 2006 at 6:56 pm
  • # Spaces are present before and after the XXX filename = ' XXX ' new_filename = filename.strip() if new_filename != filename: print filename Macs allow these spaces in file and folder names. Which is ...
    RtilleyRtilley
    Feb 23, 2006 at 6:20 pm
    Mar 2, 2006 at 10:31 am
  • I miss being able to do something like this in Python 1f (I = a.find("3")) != -1: print "It's here: ", I else: print "No 3's here" where I gets assigned the index returned by find() AND the if ...
    Bob GreschkeBob Greschke
    Feb 23, 2006 at 6:40 pm
    Feb 26, 2006 at 2:08 am
  • Has anyone recompiled the Scientific Computing package using NumPy instead of Numeric? I need a least squares algorithm and a Newton Rhaphson algorithm which is contained in Numeric but all the ...
    MclaugbMclaugb
    Feb 6, 2006 at 11:29 am
    Feb 28, 2006 at 9:04 am
  • Hi ! I have a problem. I have a little tool that can get data about filesystems and wrote it in python. The main user asked me a GUI for this software. This user is needed a portable program, so I ...
    DurumdaraDurumdara
    Feb 21, 2006 at 9:14 am
    Feb 23, 2006 at 1:08 am
  • ... '''Small one man craft that can only harm other fighters on their own.''' ... def __init__(self,statsTuple=(50,5,0,(2,4),1)): ... self.fuel = statsTuple[0] ... self.life = statsTuple[1] ... ...
    ZefriaZefria
    Feb 20, 2006 at 8:35 am
    Feb 20, 2006 at 9:57 pm
  • Is it possible to embed a Python application within Internet explorer? If so how do people recommend going about it. As for the application it has to be able display simple animated graphics such as ...
    RodmcRodmc
    Feb 14, 2006 at 3:14 pm
    Feb 16, 2006 at 2:13 pm
  • Hi all! I use python for writing terminal applications and I have been bothered by how hard it seems to be to determine the terminal size. What is the best way of doing this? At the end I've included ...
    Joel HedlundJoel Hedlund
    Feb 5, 2006 at 1:30 pm
    Feb 15, 2006 at 5:52 pm
  • Which is Faster in Python and Why? jc = {}; m = [] x = [ [1,2,3,4,5,6,7,8,9],[..],.......] # upwards of 10000 entries def mcountb(): for item in x: b = item[:]; b.sort(); bc = 0 for bitem in b: bc += ...
    FarelFarel
    Feb 15, 2006 at 4:14 am
    Feb 23, 2006 at 1:56 pm
  • This decision appears to have been made nearly six years ago. It would be a good idea to revisit the decision, particularly since the reasons for rejection are not clearly spelled out. The ...
    Colin J. WilliamsColin J. Williams
    Feb 19, 2006 at 8:43 pm
    Feb 22, 2006 at 1:04 pm
  • I figured someone out there must have written a minimal code size prime number generator. I did not find one after a bit of searching around. For primes up to 100 the best I could do was 70 ...
    SwisscheeseSwisscheese
    Feb 11, 2006 at 10:03 am
    Feb 13, 2006 at 5:49 pm
  • Pardon me if this has been done to death but I can't find a simple explanation. I love Python for it's ease and speed of development especially for the "Programming Challenged" like me but why hasn't ...
    Simon FaulknerSimon Faulkner
    Feb 3, 2006 at 5:01 pm
    Feb 7, 2006 at 8:59 am
  • Hi, I'm thinking about writing a system for DJing in python, but I'm not sure if Python is fast enough to handle the realtime audio needed for DJing, could a guru shed some light on this subject and ...
    Levi CampbellLevi Campbell
    Feb 3, 2006 at 12:16 am
    Feb 6, 2006 at 11:08 am
  • Is this a good place to post python questions from newbie's, or would you suggest another board? Thx
    LittlePythonLittlePython
    Feb 12, 2006 at 4:07 pm
    Feb 28, 2006 at 7:06 am
  • Hello, I need a regularexpression, which trims trailing whitespaces. While with unix line endings, it works; but not with Window (Dos) CRLF's: 1) Windows 1 'erewr \r\nafjdskl' 2) Unix 2 ...
    Franz SteinhaeuslerFranz Steinhaeusler
    Feb 23, 2006 at 1:46 pm
    Feb 27, 2006 at 9:46 am
  • Hello all, I'm trying to detect line endings used in text files. I *might* be decoding the files into unicode first (which may be encoded using multi-byte encodings) - which is why I'm not letting ...
    FuzzymanFuzzyman
    Feb 6, 2006 at 2:35 pm
    Feb 8, 2006 at 12:10 pm
  • I'm a little confused about what's out there for database modules at: http://python.org/topics/database/modules.html What I'd like to do is use Python to access an Oracle 9.X database for exporting a ...
    DananrgDananrg
    Feb 24, 2006 at 10:02 pm
    Mar 3, 2006 at 3:01 pm
  • Hello at all sorry for my english but i'm Italian. I use pyserial to communicate via rs232 with an extarnal device called smartmouse. I write the exact line that i want , but when i read i read only ...
    Luca72Luca72
    Feb 16, 2006 at 4:05 pm
    Mar 2, 2006 at 3:03 pm
  • 17

    No

    Check this piece of code: #now add an image part part = writer.nextpart() part.addheader('Content-Transfer-Encoding', 'base64') body = part.startbody('image/jpeg') base64.encode(open('c:\check.jpg', ...
    GazGaz
    Feb 21, 2006 at 3:08 pm
    Feb 23, 2006 at 4:33 pm
  • Hi,all as we know, we can override the operator of one object(for example __eq__). my question is, how to override the basic operator? for example, for any object comparison operator(including ...
    Kanchy kangKanchy kang
    Feb 22, 2006 at 3:23 am
    Feb 23, 2006 at 4:29 pm
  • I would like to be able to define a loop statement (nevermind why) so that I can write something like loop 10: do_something instead of for i in range(10): do_something Possible? If so, how? Thanks, ...
    David IsaacDavid Isaac
    Feb 16, 2006 at 8:05 pm
    Feb 22, 2006 at 4:00 pm
  • Hi, Is it true that that "Python 3000" is dead ? Honestly I think that e.g. changing 5/2 to be 2.5 (instead of 2) would just break to much code :-( On the otherhand I'm using Python as "Matlab ...
    Seb HaaseSeb Haase
    Feb 13, 2006 at 5:53 am
    Feb 20, 2006 at 7:36 pm
  • What editor shall I use if my Python script must contain utf-8 characters? I use XP Thank you for reply l.b.
    LadLad
    Feb 8, 2006 at 2:48 pm
    Feb 13, 2006 at 8:15 am
  • I was wondering if python is a good language to build a web crawler with? For example, to construct a program that will routinely search x amount of sites to check the availability of a product. Or ...
    TempoTempo
    Feb 7, 2006 at 4:33 pm
    Feb 10, 2006 at 12:33 pm
  • I have a program running several threads. One of them must be done every (Specified time, usually 1 second). The whole point to having a thread is do this. However, I've noticed the following. When ...
    TuvasTuvas
    Feb 2, 2006 at 8:31 pm
    Feb 7, 2006 at 8:21 pm
  • It seems that lots of people don't like having to prefix self. in front of instance variables when writing methods in Python. Of course, whenever someone suggests doing away with 'self' many people ...
    PaullanierPaullanier
    Feb 28, 2006 at 11:54 pm
    Mar 1, 2006 at 6:57 pm
  • Hi to all, I want to print a PDF right from my python app transparently. With "transparently" I mean that no matter what program handles the print petition, the user shouldn't be noticed about it. ...
    Daniel CrespoDaniel Crespo
    Feb 17, 2006 at 2:02 pm
    Feb 21, 2006 at 3:26 pm
  • Hello. I try to open file with pathname length 282 bytes: E:\files\..................\something.dat On MSDN ...
    SergeySergey
    Feb 14, 2006 at 11:29 am
    Feb 15, 2006 at 7:40 pm
  • Hello, Is there a *direct* way of doing set operations on lists which preserve the order of the input lists ? For Ex. l1 = [1, 5, 3, 2, 4, 7] l2 = [3, 5, 10] and (l1 intersect l2) returns [5, 3] .... ...
    Amit KhemkaAmit Khemka
    Feb 10, 2006 at 4:58 pm
    Feb 13, 2006 at 7:30 am
  • I'm trying to implement a bookmark-url program, which accepts user input and puts the strings in a dictionary. Somehow I'm not able to iterate myDictionary of type Dict{} When I write print ...
    Cruella DeVilleCruella DeVille
    Feb 27, 2006 at 7:53 pm
    Mar 1, 2006 at 7:26 pm
  • Hi all. I would like to ask how I can implement string-like class using tuple or list. Does anyone know about some example codes of pure python implementation of string-like class? Because I am ...
    Akihiro KAYAMAAkihiro KAYAMA
    Feb 25, 2006 at 1:26 am
    Feb 26, 2006 at 10:49 pm
  • Can anyone tell me how complicated it might be to install Python on my server so I can use it for web apps? Is it a one-time process, or something to maintain? Thanks.
    John SalernoJohn Salerno
    Feb 10, 2006 at 8:22 pm
    Feb 14, 2006 at 8:15 pm
Group Navigation
period‹ prev | Feb 2006 | next ›
Group Overview
grouppython-list @
categoriespython
discussions790
posts4,786
users983
websitepython.org

983 users for February 2006

Fredrik Lundh: 111 posts Steven D'Aprano: 110 posts Steve Holden: 98 posts Magnus Lycka: 97 posts Alex Martelli: 96 posts Diez B. Roggisch: 71 posts Kent Johnson: 63 posts Peter Hansen: 62 posts John Salerno: 59 posts Bruno: 57 posts Fuzzyman: 54 posts Tony Nelson: 53 posts Rene Pijlman: 48 posts Grant Edwards: 46 posts Bonono: 44 posts Scott David Daniels: 42 posts Larry Bates: 41 posts Terry Hancock: 38 posts Felipe Almeida Lessa: 36 posts Xavier Morel: 35 posts
show more
Archives