FAQ

Search Discussions

887 discussions - 5,222 posts

  • Python, Lambda, and Guido van Rossum Xah Lee, 2006-05-05 In this post, i'd like to deconstruct one of Guido's recent blog about lambda in Python. In Guido's blog written in 2006-02-10 at ...
    Xah LeeXah Lee
    May 6, 2006 at 12:26 am
    May 24, 2006 at 6:33 pm
  • Software Needs Philosophers by Steve Yegge, 2006-04-15. Software needs philosophers. This thought has been nagging at me for a year now, and recently it's been growing like a tumor. One that plenty ...
    Xah LeeXah Lee
    May 21, 2006 at 9:15 am
    Jun 13, 2006 at 7:16 am
  • Tabs versus Spaces in Source Code Xah Lee, 2006-05-13 In coding a computer program, there's often the choices of tabs or spaces for code indentation. There is a large amount of confusion about which ...
    Xah LeeXah Lee
    May 15, 2006 at 2:04 am
    May 23, 2006 at 3:14 pm
  • This is just anecdotal, but I still find it interesting. Take it for what it's worth. I'm interested in hearing others' perspectives, just please don't turn this into a pissing contest. I'm in the ...
    Edward ElliottEdward Elliott
    May 17, 2006 at 1:18 am
    May 21, 2006 at 11:13 pm
  • Hi all. I have the need to store a large (10M) number of keys in a hash table, based on a tuple of (long_integer, integer). The standard python dictionary works well for small numbers of keys, but ...
    Chris FooteChris Foote
    May 15, 2006 at 12:43 pm
    Jun 12, 2006 at 11:44 pm
  • Is there a way to assign multiple variables to the same value, but so that an identity test still evaluates to False? e.g.: False False True True # not sure if this is harmful The first line above is ...
    John SalernoJohn Salerno
    May 2, 2006 at 4:58 pm
    May 10, 2006 at 9:48 am
  • I am trying to figure out why so little web development in Python uses Flash as a display technology. It seems most Python applications choose HTML/CSS/JS as the display technology, yet Flash is a ...
    SamFeltusSamFeltus
    May 18, 2006 at 6:51 am
    May 27, 2006 at 7:03 pm
  • Just as a pedantic exercise to try and understand Python a bit better, I decided to try to make a generator or class that would allow me to unpack an arbitrary number of calculatible values. In this ...
    Tim ChaseTim Chase
    May 4, 2006 at 3:09 pm
    May 5, 2006 at 8:29 pm
  • Hi guys Tried searching for a solution to this, but the error message is so generic, that I could not get any meaningfull results. Anyways - errormessage: ...
    HolgerHolger
    May 1, 2006 at 11:10 am
    May 8, 2006 at 6:53 pm
  • I have new a list , when it hava large number of values, I wonna to delete all the values in it,how to do? And, if a list have 801 values, I want to get its values index from 300 to 400, could use ...
    PythonPython
    May 25, 2006 at 1:49 pm
    May 29, 2006 at 10:08 am
  • i I would like to extend python so that you could create hiercical tree structures (XML, HTML etc) easier and that resulting code would be more readable than how you write today with packages like ...
    GlomdeGlomde
    May 17, 2006 at 9:24 pm
    May 19, 2006 at 6:10 pm
  • Hi, I'm interested in using python to start writing a CAD program for electrical design. I just got done reading Steven Rubin's book, I've used "real" EDA tools, and I have an MSEE, so I know what I ...
    63q2o4i0263q2o4i02
    May 16, 2006 at 6:49 am
    May 24, 2006 at 8:50 pm
  • u'\xbd' Traceback (most recent call last): File "<stdin ", line 1, in ? UnicodeEncodeError: 'ascii' codec can't encode character u'\xbd' in position 0: ordinal not in range(128)
    Ron GarretRon Garret
    May 18, 2006 at 9:23 pm
    May 21, 2006 at 10:07 am
  • What is the best way of altering something (in my case, a file) while you are iterating over it? I've tried this before by accident and got an error, naturally. I'm trying to read the lines of a file ...
    John SalernoJohn Salerno
    May 19, 2006 at 7:11 pm
    May 22, 2006 at 8:17 am
  • I probably should find an RE group to post to, but my news server at work doesn't seem to have one, so I apologize. But this is in Python anyway :) So my question is, how can find all occurrences of ...
    John SalernoJohn Salerno
    May 10, 2006 at 2:29 pm
    May 13, 2006 at 1:17 pm
  • Hi, Can anyone tell me a good python editor/IDE? It would be great if you can provide the download link also. Thank You, -Manoj- "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - ...
    Manoj Kumar PManoj Kumar P
    May 31, 2006 at 10:03 am
    Jun 2, 2006 at 4:14 pm
  • I have been getting ready to learn programming for a long time, installed a GNU/Linux operating system, learnt the ins and outs but I think it is time to pick up a book and learn to now program. I ...
    HerraoticHerraotic
    May 24, 2006 at 12:11 pm
    May 26, 2006 at 2:04 pm
  • I have a million-line text file with 100 characters per line, and simply need to determine how many of the lines are distinct. On my PC, this little program just goes to never-never land: def ...
    R.e.s.R.e.s.
    May 18, 2006 at 9:51 pm
    May 20, 2006 at 6:16 am
  • I've been reading the recent cross-posted flamewar, and read Guido's article where he posits that embedding multi-line lambdas in expressions is an unsolvable puzzle. So for the last 15 minutes I ...
    Kaz KylhekuKaz Kylheku
    May 9, 2006 at 12:10 am
    May 12, 2006 at 6:22 am
  • Dear python experts, I am new to python and this site, so I apologize if this is off topic (i.e. is it a SciPy question?). I will try to demonstrate my problem below: ...
    Andy McDonaghAndy McDonagh
    May 3, 2006 at 5:00 pm
    May 6, 2006 at 10:19 pm
  • I would like to make a function that takes a list, more specificaly a list of strings, and shuffles its elements, like a pile of cards. The following is a script I tryed to make that implements pile ...
    GreenflameGreenflame
    May 31, 2006 at 3:18 am
    Jun 2, 2006 at 11:50 am
  • Hello, Are there any recommendations for which Windows python version to use? I'd like to see a pros-and-cons description of each, given that different uses might dictate different versions. The ...
    Brian BlaisBrian Blais
    May 11, 2006 at 12:38 pm
    May 19, 2006 at 7:26 am
  • Just a quickie for today: Is it common (and also preferred, which are two different things!) to create a function that has the sole job of calling another function? Example: for fun and exercise, I'm ...
    John SalernoJohn Salerno
    May 15, 2006 at 6:26 pm
    May 17, 2006 at 11:57 am
  • I might be missing something obvious here, but I decided to experiment with writing a program that involves a class, so I'm somewhat new to this in Python. Anyway, what is the best way to create a ...
    John SalernoJohn Salerno
    May 7, 2006 at 11:54 pm
    May 9, 2006 at 2:19 pm
  • Is there a good reason why when you try to take an element from an already exausted iterator, it throws StopIteration instead of some other exception ? I've lost quite some times already because I ...
    ChristopheChristophe
    May 17, 2006 at 4:00 pm
    May 20, 2006 at 8:48 pm
  • is python search module by paths in sys.path? how to change it manuallly?
    Ju HuiJu Hui
    May 23, 2006 at 7:38 am
    May 25, 2006 at 3:03 pm
  • Hi, I've a big memory problem with my application. First, an example: If I write: a = range(500*1024) I see that python process allocate approximately 80Mb of memory. What can i do for DEALLOCATE ...
    Mariano DifeliceMariano Difelice
    May 11, 2006 at 11:06 am
    May 12, 2006 at 1:14 pm
  • I have a python code which is running on a huge data set. After starting the program the computer becomes unstable and gets very diffucult to even open konsole to kill that process. What I am ...
    Diffuser78Diffuser78
    May 9, 2006 at 1:15 am
    May 12, 2006 at 6:57 am
  • It would be useful if list.sort() accepted two more optional parameters, start and stop, so that you can sort a slice in place. In other words, x = range(1000000) x.sort(start=3, stop=-1) would be ...
    George SakkisGeorge Sakkis
    May 18, 2006 at 5:27 pm
    May 21, 2006 at 6:59 pm
  • http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496691
    Kay SchluehrKay Schluehr
    May 10, 2006 at 6:30 am
    May 15, 2006 at 7:44 am
  • Hi all, I am a C/C++/Perl user and want to switch to Python (I found Python is more similar to C). Does Python support robust regular expression like Perl? And Python and Perl's File content ...
    DavyDavy
    May 8, 2006 at 7:21 am
    May 10, 2006 at 5:25 pm
  • Ok, I've been browsing through the MySQLdb docs, and I *think* I know the kind of code I need to write (connect, cursor, manipulate data, commmit, etc. -- although I probably need to get more ...
    John SalernoJohn Salerno
    May 12, 2006 at 2:01 pm
    May 18, 2006 at 5:39 am
  • Hi all! The following PEP tries to make the case for a slight unification of for statement and list comprehension syntax. Comments appreciated, including on the sample implementation. ==PEP: xxx ...
    Heiko WundramHeiko Wundram
    May 21, 2006 at 3:11 pm
    May 24, 2006 at 11:19 pm
  • Hey folks, Why is PythonWin (win32all) still a separate download from a third party? Is it legal, technical, or what? I think it's about time it be part of the standard distribution. There are many ...
    Dave BenjaminDave Benjamin
    May 11, 2006 at 10:09 pm
    May 17, 2006 at 10:02 pm
  • Still new. I am trying to make a simple word count script. I found this in the great Python Cookbook, which allows me to process every word in a file. But how do I use it to count the items ...
    BartlebyScrivenerBartlebyScrivener
    May 14, 2006 at 5:05 am
    May 16, 2006 at 1:10 am
  • Hi all, Can any one please recommend me an editor for coding Python. Thank u. I have Komodo (www.activestate.com) in my mind. Is the editor any good? regards.
    DeepBlueDeepBlue
    May 9, 2006 at 11:34 am
    May 11, 2006 at 1:28 pm
  • Below are 2 files that isolate the problem. Note, both programs hang (stop responding) with hyper-threading turned on (a BIOS setting), but work as expected with hyper-threading turned off. Note, the ...
    OlafMedingOlafMeding
    May 3, 2006 at 6:42 pm
    May 8, 2006 at 1:33 pm
  • Subject: Swaying A Coder Away From Python Swaying A Coder Away From Python By David A. Utter One programmer blogged about the powerful attraction he is feeling to C# programming, and departing from ...
    Tim WilliamsTim Williams
    May 4, 2006 at 9:09 am
    May 7, 2006 at 11:00 pm
  • If I try to write something like: num_weeks = time_diff / datetime.timedelta(days=7) I get: TypeError: unsupported operand type(s) for /: 'datetime.timedelta' and 'datetime.timedelta' Of course, one ...
    Dan BishopDan Bishop
    May 24, 2006 at 10:07 pm
    Apr 27, 2008 at 9:13 pm
  • Ok, this is really irritating me. I'm sure there are different ways of doing this - I'm interested in the algo, not the practical solution, I'm more trying to play with iterators and recursion. I ...
    AkameswaranAkameswaran
    May 27, 2006 at 4:45 am
    May 31, 2006 at 4:45 pm
  • Below are 2 files. The first is a Python program that isolates the problem within less than 1 hour (often just a few minutes). The second is a C++ program that shows that the Win32 Sleep() function ...
    OlafMedingOlafMeding
    May 8, 2006 at 2:13 pm
    May 30, 2006 at 8:08 pm
  • Hey, I have a certain problem and till now I didnt find an answer on the web. I want to send an email message with picture in it. I dont want to put it as attachment but make it in the body of the ...
    AnyaAnya
    May 14, 2006 at 11:24 am
    May 29, 2006 at 9:48 pm
  • I have a program that uses up a lot of CPU and want to make it is efficient as possible with what I have to work with it. So which of the following would be more efficient, knowing that l is a list ...
    DustanDustan
    May 18, 2006 at 1:02 pm
    May 19, 2006 at 10:19 pm
  • My initial feeling is that concatenation might take longer than substitution, but that it is also easier to read: def p(self, paragraph): self.source += '<p ' + paragraph + '</p \n\n' vs. def p(self, ...
    John SalernoJohn Salerno
    May 8, 2006 at 4:09 am
    May 12, 2006 at 5:53 pm
  • I do import zipfile zip=zipfile.ZipFile('d:\somepath\cdimage.zip') zip.namelist() ['someimage.iso'] then either of the two: A) file('someimage.iso','w').write(zip.read('someimage.iso')) or B) ...
    Hari SekhonHari Sekhon
    May 19, 2006 at 11:37 am
    Jun 21, 2006 at 4:34 pm
  • Since the connect method of mysqldb requires a database name, it seems like you can't use it without having a database already created. So is there a way to connect to your mysql server (without a ...
    John SalernoJohn Salerno
    May 17, 2006 at 6:46 pm
    Jun 1, 2006 at 2:01 pm
  • Hi, I'm writing a couple python applications that use the serial port (RS-232) quite extensively. Is there any way I can monitor all activity on the serial port and have it printed as the ...
    XkennethXkenneth
    May 30, 2006 at 2:24 am
    Jun 1, 2006 at 10:53 am
  • Hi all, In Python, Threads cannot be paused, i remember reading this somewhere, so is there a way around this ? TIA
    PlacidPlacid
    May 11, 2006 at 11:45 pm
    May 15, 2006 at 12:14 am
  • Hey i have a stupid question. How do i get python to print the result in only three decimal place... Example round (2.995423333545555, 3) 2.9950000000000001 but i want to get rid of all trailing ...
    Chun ping wangChun ping wang
    May 7, 2006 at 7:31 am
    May 13, 2006 at 4:35 am
  • I'm running operations large arrays of floats, approx 25,000 x 80. Python (scipy) does not seem to come close to using 4GB of wired mem, but segments at around a gig. Everything works fine on smaller ...
    Conor RobinsonConor Robinson
    May 10, 2006 at 10:21 pm
    May 11, 2006 at 8:49 pm
Group Navigation
period‹ prev | May 2006 | next ›
Group Overview
grouppython-list @
categoriespython
discussions887
posts5,222
users1,060
websitepython.org

1,060 user for May 2006

John Salerno: 162 posts Edward Elliott: 135 posts Bruno: 129 posts Fredrik Lundh: 97 posts Diez B. Roggisch: 85 posts Raffael Cavallaro: 80 posts John Machin: 78 posts Ben Finney: 77 posts Robert Kern: 75 posts Bruno Desthuilliers: 66 posts John Bokma: 65 posts Serge Orlov: 65 posts Grant Edwards: 61 posts Scott David Daniels: 58 posts Sybren Stuvel: 56 posts BartlebyScrivener: 52 posts Ken Tilton: 49 posts Heiko Wundram: 47 posts Larry Bates: 45 posts Peter Otten: 42 posts
show more
Archives