Search Discussions

683 discussions - 3,952 posts

  • Hi everybody, I am an engineer. I am trying to improve my software development abilities. I have started programming with ruby. I like it very much but i want to add something more. According to my ...
    Feb 16, 2009 at 9:34 am
    Mar 6, 2009 at 7:03 am
  • Hi all what IDE is the best to write python? thanks from Peter (mcheung63 at hotmail.com)
    Feb 1, 2009 at 7:42 am
    Feb 10, 2009 at 6:20 pm
  • Hello everybody, Any better solution than this? def flatten(x): res = [] for el in x: if isinstance(el,list): res.extend(flatten(el)) else: res.append(el) return res a = [1, 2, 3, [4, 5, 6], [[7, 8], ...
    Feb 5, 2009 at 1:17 pm
    Feb 9, 2009 at 5:07 pm
  • I mean this [code] def fib(n): if n<=1: return 1 return fib(n-1)+fib(n-2) useCore(1) timeit(fib(500)) #this show 20 seconds useCore(2) timeit(fib(500)) #this show 10 seconds [/code] Is it possible? ...
    Feb 10, 2009 at 6:28 am
    Feb 23, 2009 at 9:32 am
  • What's the Pythonic way to determine if a string is a number? By number I mean a valid integer or float. I searched the string and cMath libraries for a similar function without success. I can think ...
    Feb 15, 2009 at 5:46 pm
    Feb 17, 2009 at 3:45 pm
  • I'm using IDLE for editing, but execute programs directly. If there are execution or "compile" errors, the console closes before I can see what it contains. How do I prevent that? -- W. eWatson ...
    W. eWatsonW. eWatson
    Feb 20, 2009 at 4:06 am
    Jul 15, 2012 at 4:40 pm
  • Hello. I've been scouring the web looking for something to clear up a little confusion about the use of "super()" but haven't found anything that really helps. Here's my simple example: class Parent: ...
    Feb 9, 2009 at 11:20 pm
    Feb 11, 2009 at 4:52 am
  • With "bytearray", the element type is considered to be "unsigned byte", or so says PEP 3137: "The element data type is always 'B' (i.e. unsigned byte)." Let's try: Python 2.6.1 (r261:67517, Dec 4 ...
    John NagleJohn Nagle
    Feb 15, 2009 at 6:10 am
    Mar 13, 2009 at 1:21 am
  • I'm writing a little wiki that I call ?Wiki. That's a lowercase Greek mu at the beginning (it's pronounced micro-wiki). It's working, except that I can't actually enter the name of the wiki into the ...
    Ron GarretRon Garret
    Feb 20, 2009 at 2:57 am
    Feb 23, 2009 at 1:16 am
  • Sometimes I really get confused when looking out for a modul for some kind of need. Sometimes I get frightened when I get the resaults. 8 wraper for this, 7 wrapers for that, 10 modules for anything. ...
    Feb 12, 2009 at 8:04 pm
    Feb 14, 2009 at 5:41 am
  • Hi, how is the rule in Python, if i pass objects to a function, when is this done by reference and when is it by value? def f1(a): a = 7 b = 3 f1(b) print b = 3 Integers are obviously passed by ...
    Torsten MohrTorsten Mohr
    Feb 22, 2009 at 3:13 pm
    Feb 24, 2009 at 2:19 pm
  • Hi Folks, Python newbie here. I'm trying to open (for reading) a text file with the following filenaming convension: "MyTextFile.slc.rsc" My code is as follows: Filepath = "C:\\MyTextFile.slc.rsc" ...
    Feb 2, 2009 at 6:36 pm
    Feb 3, 2009 at 10:27 pm
  • Hi. This must be a simple command but I just can't find it in the Phthon manual. How do I delete all items with a certain condition from a list? For instance: L=['a', 'b', 'c', 'a'] I want to delete ...
    Feb 26, 2009 at 11:05 am
    Feb 28, 2009 at 5:46 pm
  • It appears if one moves between IDLE and pythonWin (pyWin) that two separate loops (threads?) can occur, and that IDLE can produce incorrect results. Since I have preferred IDLE over pyWin, that ...
    W. eWatsonW. eWatson
    Feb 12, 2009 at 12:43 pm
    Feb 15, 2009 at 12:09 am
  • I used a CPD (copy/paste detector) in PMD to analyze the code duplication in Python source code. I found that Python3.0 contains more duplicated code than the previous versions. The CPD tool is far ...
    Feb 7, 2009 at 5:50 am
    Feb 8, 2009 at 11:21 pm
  • Do to laking knowledge my google searches have not turned up an answer for me. I know this is wrong it uses the items in the list as the filename, how do I refer to the dataname and not the items in ...
    Vincent DavisVincent Davis
    Feb 4, 2009 at 4:24 pm
    Feb 6, 2009 at 1:03 am
  • I need to test strings to determine if one of a list of chars is in the string. A simple example would be to test strings to determine if they have a vowel (aeiouAEIOU) present. I was hopeful that ...
    Feb 16, 2009 at 5:17 am
    Feb 22, 2009 at 12:53 am
  • Dear Community Now I'm standing here, having this great idea for a brand new rocking app... But where do I start? I want it to be multi-platform (Linux, Mac OS X, Windows). It should be easy to ...
    Marcel LuethiMarcel Luethi
    Feb 22, 2009 at 10:55 am
    Mar 29, 2009 at 10:51 pm
  • Choosing the right data structure is usually a matter of compromises, and sometimes the best you can do is to change some data structures and look for the faster running time. To do this it helps to ...
    Feb 5, 2009 at 9:47 am
    Feb 8, 2009 at 11:31 pm
  • Hello all, It has long been my dream to create an open source 3D CAD program and i am starting to crawl my way into the first steps. I now believe i am ready to start this endeavor and i am currently ...
    Feb 9, 2009 at 8:58 pm
    Mar 17, 2009 at 6:29 pm
  • hello, I often get an error message like this self.Brick.Par [ self.EP[2] ]['FileName'] = filename IndexError: list index out of range Now it would be very welcome, if the error message specified ...
    Stef MientkiStef Mientki
    Feb 22, 2009 at 1:43 pm
    Mar 15, 2009 at 11:32 pm
  • So, we think something is working and send of a bug fix to our client :) I'm not sure I understand this at all and wonder if there is bug? 'c:\\Program Files\\test' so far, so good. 'c:\\Program ...
    Feb 23, 2009 at 10:05 pm
    Feb 24, 2009 at 9:13 pm
  • Hi. Does anyone know how to scan a file character by character and have each character so I can put it into a variable. I am attempting to make a chatbot and need this to read the saved input to look ...
    Feb 5, 2009 at 6:48 am
    Feb 22, 2009 at 3:21 pm
  • I would have thought that the answer would be: the default encoding (duh!) But empirically this appears not to be the case: Traceback (most recent call last): File "<stdin ", line 1, in <module ...
    Ron GarretRon Garret
    Feb 20, 2009 at 7:48 pm
    Feb 21, 2009 at 8:48 pm
  • Hi, Apologies if this was answered somewhere else, I have not found anything similar anywhere. I have SUSE 11.0 and I am trying to install a program called mnemosyne. I need easy_install for this, ...
    David SevillaDavid Sevilla
    Feb 3, 2009 at 9:24 pm
    Feb 17, 2009 at 7:25 pm
  • Can Python's serial port support be made to run at 45.45 baud, the old "60 speed" Teletype machine speed? I've restored a Model 15 teletype from WWII. Works great after cleaning, oiling, and ...
    John NagleJohn Nagle
    Feb 14, 2009 at 4:27 pm
    Feb 16, 2009 at 4:49 am
  • (duck) 542 comp.lang.python rtfm 467 comp.lang.python shut+up 263 comp.lang.perl rtfm 45 comp.lang.perl shut+up Code: import urllib2 import re import time def fillurlfmt(args): urlfmt, ggroup, gkw = ...
    Feb 5, 2009 at 4:00 pm
    Feb 7, 2009 at 3:00 pm
  • Hello all: I've crafted several classes and exceptions which I've stored in a file called "DataFileType.py". I then invoke them from within other files like this: # Top of file import sys ...
    Feb 20, 2009 at 11:33 pm
    Mar 13, 2009 at 7:44 pm
  • Here's a proposed implementation for Py2.7 and Py3.1: http://code.activestate.com/recipes/576669/ Would like you guys to kick the tires, exercise it a bit, and let me know what you think. The recipe ...
    Raymond HettingerRaymond Hettinger
    Feb 26, 2009 at 9:12 am
    Mar 1, 2009 at 3:12 pm
  • anyone interested in looking at the following problem. we are trying to express numbers as minimal expressions using only the digits one two and three, with conventional arithmetic. so for instance ...
    Trip TechnicianTrip Technician
    Feb 20, 2009 at 2:31 pm
    Feb 27, 2009 at 4:49 am
  • I must not be understanding something. This is a simple recursive function that prints all HTML files in argv[1] as its scans the directory's contents. Why do I get a RuntimeError for recursion depth ...
    Thomas AllenThomas Allen
    Feb 17, 2009 at 9:46 pm
    Feb 19, 2009 at 7:58 pm
  • Hi, I had python 2.5 installed on my Mac osx 10.4.11 and idle stopped opening and running after I ran a few programs. I installed python 2.6 hoping this would allow me to open idle and start learning ...
    Kevin hayesKevin hayes
    Feb 21, 2009 at 12:52 am
    Mar 2, 2009 at 10:29 pm
  • Dear python-list, I'm having some trouble decoding an email header using the standard imaplib.IMAP4 class and email.message_from_string method. In particular, email.message_from_string() does not ...
    Roy H. HanRoy H. Han
    Feb 25, 2009 at 12:07 am
    Feb 25, 2009 at 6:59 pm
  • Hi all, I'm quite new to python as I've only just started to learn about it a few days ago... I am trying to do something and after reading about it, I'm still not sure whether or not it can be done. ...
    Feb 2, 2009 at 7:05 am
    Feb 10, 2009 at 4:13 pm
  • After reading the docs and seeing a few examples i think this should work ? Am I forgetting something here or am I doing something stupid ? Anyway I see my yellow screen, that has to count for ...
    Feb 17, 2009 at 4:55 pm
    Mar 27, 2009 at 8:35 am
  • I started learning Java for fun, and the first project assignment in the book is to create a game like "Battleship." So, of course, I wrote it in Python first, just for fun. I haven't had the time to ...
    Shawn MilochikShawn Milochik
    Feb 25, 2009 at 4:29 pm
    Mar 26, 2009 at 7:24 pm
  • Hello all, I'm currently writing a Python <- MATLAB interface with ctypes and array.array class, using which I'll need to push large amounts of data to MATLAB. Everything is working well, but there ...
    Maxim KhitrovMaxim Khitrov
    Feb 19, 2009 at 6:52 pm
    Mar 12, 2009 at 12:48 am
  • Hi, I have a class derived from two parents (in blue below), which gives me the following error: $ python -u ./failover_pickle_demo09.py Traceback (most recent call last): File ...
    Barak, RonBarak, Ron
    Feb 19, 2009 at 1:01 pm
    Feb 23, 2009 at 5:29 pm
  • Hi, I am building some computational web services using soaplib. This creates a WSGI application. However, since some of these services are computationally intensive, and may be long running, I was ...
    Feb 11, 2009 at 9:50 am
    Feb 12, 2009 at 10:08 am
  • Hi I have a list of Records with some details.(more than 15 million records) with duplication I need to iterate through every record and need to eliminate duplicate records. Currently i am using a ...
    Shanmuga RajanShanmuga Rajan
    Feb 26, 2009 at 8:37 pm
    Mar 3, 2009 at 9:09 pm
  • Hi all, Recently I am studying some python ORM libraries, such as sqlalchemy. These are very powerful technologies to handle database. But I think my project are not complicated to enough to benefit ...
    Feb 17, 2009 at 12:27 pm
    Feb 26, 2009 at 12:19 pm
  • My program in IDLE bombed with: ============== Exception in Tkinter callback Traceback (most recent call last): File "C:\Python25\lib\lib-tk\Tkinter.py", line 1403, in __call__ return ...
    W. eWatsonW. eWatson
    Feb 11, 2009 at 4:28 pm
    Feb 15, 2009 at 12:53 pm
  • Whilst doing some portability testing with reportlab I noticed a strange speedup for our unittest suite with python2.5 host win32 xp3 unittest timeB.2 seconds vmware RHEL x64 unittest time0.9 seconds ...
    Robin BeckerRobin Becker
    Feb 3, 2009 at 5:36 pm
    Feb 5, 2009 at 10:12 am
  • Dear all, I'd like to know how to elegantly check a list for the membership of any of its items to another list. Not caring for elegance, I would use the following code: blah = [1,2,3] yadda = ...
    Feb 1, 2009 at 7:54 pm
    Feb 2, 2009 at 10:40 pm
  • I'm having some problems with the memory recycling/garbage collecting of the following testing code: This takes 635m/552m/2044 memory (VIRT/RES/SHR) ... b[str(i)]=i Then the memory usage increased to ...
    Yuanxin XiYuanxin Xi
    Feb 17, 2009 at 5:21 am
    Feb 26, 2009 at 6:40 pm
  • Hello, everybody. I have this signature-changing decorator <http://paste.chrisarndt.de/paste/15aac02a90094a41a13a1b9b85a14dd6 which I want to turn into a signature-preserving one. Here's my try ...
    Gustavo NareaGustavo Narea
    Feb 13, 2009 at 11:56 pm
    Feb 16, 2009 at 4:58 pm
  • Having issue on Windows cmd. This gives a unicode error. Works fine in IDLE, PythonWin, and my Macbook but I need to run this from a windows batch. Character should look like this "?". Please help!
    Feb 11, 2009 at 6:35 pm
    Feb 12, 2009 at 4:16 am
  • What are your thoughts on this module I created? ''' A Python Module created by a High School Student. Includes rev(), reet(), and leet(). Import nift Function: nift.rev() Description: Reverses a ...
    Feb 8, 2009 at 6:42 pm
    Feb 10, 2009 at 8:55 pm
  • Hey, I have a log file that doesn't contain the word "Haskell" at all, I'm just trying to do a little performance comparison: ++++++++++++++ from datetime import time, timedelta, datetime start = ...
    Hussein BHussein B
    Feb 1, 2009 at 11:22 am
    Feb 2, 2009 at 9:55 pm
  • How do I achieve something like this using python ? spaces = (form.has_key('spaces') ? form.getvalue('spaces') == 1 ? True : False : False) spaces = True if form.getvalue('spaces') == 1 if ...
    Anjanesh LekshminarayananAnjanesh Lekshminarayanan
    Feb 27, 2009 at 3:11 am
    Mar 4, 2009 at 12:07 am
Group Navigation
period‹ prev | Feb 2009 | next ›
Group Overview
grouppython-list @

775 users for February 2009

Gabriel Genellina: 152 posts Steve Holden: 145 posts Chris Rebert: 108 posts MRAB: 82 posts Terry Reedy: 71 posts Christian Heimes: 61 posts Diez B. Roggisch: 61 posts Andrew cooke: 58 posts John Machin: 55 posts Scott David Daniels: 52 posts Rdmurray: 49 posts Stephen Hansen: 43 posts Steven D'Aprano: 41 posts Hendrik van Rooyen: 40 posts Martin v. Löwis: 38 posts W. eWatson: 37 posts Lionel: 36 posts Rhodri James: 36 posts Tim Rowe: 36 posts BearophileHUGS: 34 posts
show more