FAQ

Search Discussions

838 discussions - 4,937 posts

  • Hi, first, python is one of my fav languages, and i'll definitely keep developing with it. But, there's 1 one thing what I -really- miss: data hiding. I know member vars are private when you prefix ...
    Sh4wnSh4wn
    May 24, 2008 at 1:41 pm
    Jun 12, 2008 at 12:33 pm
  • I've read that one of the design goals of Python was to create an easy- to-use English-like language. That's also one of the design goals of Flaming Thunder at http://www.flamingthunder.com/ , which ...
    Dave ParkerDave Parker
    May 12, 2008 at 11:39 pm
    Jun 28, 2008 at 5:47 pm
  • I'd like to introduce a blog post by Stephen Wolfram, on the design process of Mathematica. In particular, he touches on the importance of naming of functions. ? Ten Thousand Hours of Design Reviews ...
    XahleeXahlee
    May 7, 2008 at 11:13 pm
    Sep 2, 2008 at 10:24 am
  • I'm not posting this just to initiate some religious flame war, though it's the perfect subject to do so. No, I actaully want some serious advice about these two languages and since I think usenet is ...
    NotbobNotbob
    May 21, 2008 at 8:10 pm
    May 30, 2008 at 8:46 pm
  • Hello. I am new to Python. It seems a very interesting language to me. Its simplicity is very attractive. However, it is usually said that Python is not a compiled but interpreted programming ...
    Vicent GinerVicent Giner
    May 17, 2008 at 10:32 pm
    May 26, 2008 at 5:49 pm
  • On UNIX, some people use #!/usr/bin/env python While other use #!/usr/bin/python Why is one preferred over the other one ? Thanks. -- Yves. http://www.SollerS.ca
    Yves DorfsmanYves Dorfsman
    May 2, 2008 at 1:36 am
    May 10, 2008 at 3:03 am
  • I know it's popular and very handy, but I'm curious if there are purists out there who think that using something like: for x in range(10): #do something 10 times is unPythonic. The reason I ask is ...
    John SalernoJohn Salerno
    May 11, 2008 at 2:19 am
    May 20, 2008 at 2:51 am
  • Python is slow. Almost all of the web applications written in Python are slow. Zope/Plone is slow, sloow, so very slooow. Even Google Apps is not faster. Neither is Youtube. Facebook and Wikipedia ...
    Cm_guiCm_gui
    May 22, 2008 at 4:14 pm
    Jun 8, 2008 at 10:38 pm
  • I posted this code last night in response to another thread, and after I posted it I got to wondering if I had misused the list comprehension. Here's the two examples: Example 1: -------------------- ...
    John SalernoJohn Salerno
    May 20, 2008 at 1:13 pm
    Jun 3, 2008 at 10:22 am
  • Hi list. What strategies do you use to ensure correctness of new code? Specifically, if you've just written 100 new lines of Python code, then: 1) How do you test the new code? 2) How do you ensure ...
    DavidDavid
    May 24, 2008 at 12:34 pm
    Jun 11, 2008 at 8:39 am
  • http://reddit.com/r/programming/info/18td4/comments claims people take a lot of time to write a simple program like this: "Write a program that prints the numbers from 1 to 100. But for multiples of ...
    GlobalrevGlobalrev
    May 11, 2008 at 1:12 am
    Oct 6, 2008 at 9:50 am
  • -1 The result is not correct, because every number (positive or negative) raised to the power of 0 is ALWAYS 1 (a positive number 1 that is). The problem is that Python parses -123**0 as -(123**0), ...
    WxPythonerWxPythoner
    May 8, 2008 at 10:54 pm
    May 12, 2008 at 6:04 pm
  • I did the following calculation: Generated a list of a million random numbers between 0 and 1, constructed a new list by subtracting the mean value from each number, and then calculated the mean ...
    Szabolcs HorvátSzabolcs Horvát
    May 3, 2008 at 4:50 pm
    May 9, 2008 at 4:59 pm
  • On SuSE 10.2/Xeon there seems to be a rounding bug for floating-point addition: dickinsm at weyl:~ python Python 2.5 (r25:51908, May 25 2007, 16:14:04) [GCC 4.1.2 20061115 (prerelease) (SUSE Linux)] ...
    Mark DickinsonMark Dickinson
    May 21, 2008 at 6:38 pm
    May 22, 2008 at 5:34 pm
  • Studying OOP and noticed that Python does not have Interfaces. Is that correct? Is my schooling for nought on these OOP concepts if I use Python. Am I losing something if I don't use the "typical" ...
    jmDesktopjmDesktop
    May 6, 2008 at 1:44 pm
    May 13, 2008 at 9:45 am
  • (might not be the right forum for this but...) what is the definition of a highlevel-language? well there isnt one specifically and wikipedia and the like gives just a very general description obv ...
    NotnorwegianNotnorwegian
    May 26, 2008 at 6:34 pm
    Jun 14, 2008 at 5:06 am
  • Look at the pickle and marshal modules.
    JeffJeff
    May 1, 2008 at 12:00 pm
    May 2, 2008 at 4:47 pm
  • Hi, I have a piece of software which uses threads in very massive way - like hundreds of them generated every second. there is also a piece of code which maintains the number of outstanding threads, ...
    AlFireAlFire
    May 1, 2008 at 2:56 pm
    May 5, 2008 at 12:37 am
  • Hello, I have an if-elif chain in which I'd like to match a string against several regular expressions. Also I'd like to use the match groups within the respective elif... block. The C-like idiom ...
    BoblatestBoblatest
    May 21, 2008 at 9:38 am
    May 24, 2008 at 1:52 pm
  • i have a rough understanding of lambda but so far only have found use for it once(in tkinter when passing lambda as an argument i could circumvent some tricky stuff). what is the point of the ...
    GlobalrevGlobalrev
    May 7, 2008 at 9:38 pm
    May 20, 2008 at 7:21 am
  • Is there anyway to tell python I don't care about a value ? Say I want today's year and day, I'd like to do something like: import time y, None, d, None, None, None, None = time.localtime() I know ...
    Yves DorfsmanYves Dorfsman
    May 12, 2008 at 2:28 am
    May 13, 2008 at 10:20 am
  • I'm wondering what is the canonical usage of the keywords 'is' and 'not' when you're writing conditionals and loops. The one I've been following is completely arbitrary--I use the symbols '==', '!=' ...
    DestroooooyDestroooooy
    May 19, 2008 at 7:39 pm
    May 22, 2008 at 4:40 pm
  • Hi All, Thanks in advance for any and all help! I have this code: g = open(fileName, 'a') where fileName is defined before the line it's used in. It works fine when I use it outside a thread class. ...
    Bc90021Bc90021
    May 11, 2008 at 5:10 pm
    May 12, 2008 at 7:20 am
  • For what concerns the license, I would say that GPL3 is fine: for a tool basically any kind of license is fine, since the tool is external to the code, so this is a minor point. I am curious about ...
    Michele SimionatoMichele Simionato
    May 1, 2008 at 3:50 am
    May 7, 2008 at 11:09 pm
  • Some time ago I asked whether is would be possible that unittest would perform the test in order of appearence in the file. The answers seemed to be negative. Since I really would like this behaviour ...
    Antoon PardonAntoon Pardon
    May 23, 2008 at 9:36 am
    May 29, 2008 at 8:14 am
  • Hey all. Just thought I'd ask a general question for my own interest. Every time I think of something I might do in Python, it usually involves creating a GUI interface, so I was wondering what kind ...
    John SalernoJohn Salerno
    May 18, 2008 at 10:20 pm
    May 20, 2008 at 10:29 am
  • Hi all. I am trying to write to the Python newsgroup. I doubt (aha, but doubt) that I have come to the right place. (Incoming "this"!) Is this the Python newsgroup? I heard it was called ...
    CastironpiCastironpi
    May 13, 2008 at 1:02 pm
    May 15, 2008 at 12:40 am
  • Hi! is there anyway to show the class of a method in an exception's traceback? For example, the next code class Some(object): def foo(self,x): raise Exception(x) obj = Some() obj.foo("some arg") ...
    Agustin VillenaAgustin Villena
    May 18, 2008 at 8:16 pm
    May 30, 2008 at 8:08 pm
  • I remember learning closures in Python and thought it was the dumbest idea ever. Why use a closure when Python is fully object oriented? I didn't grasp the power/reason for them until I started ...
    VbgunzVbgunz
    May 14, 2008 at 2:04 pm
    May 15, 2008 at 9:25 pm
  • Hi, i was reading/learning some hello world program in python. I think its very simillar to Java/C++/C#. What's different (except syntax) ? what can i do easily with python which is not easy in ...
    RaxitRaxit
    May 8, 2008 at 10:25 am
    May 10, 2008 at 5:39 pm
  • Hi to all python now has grown to a versatile language that can accomplish tasks for many different purposes. However, AFAIK, little is known about its ability of kernel coding. So I am wondering if ...
    JimmyJimmy
    May 23, 2008 at 6:29 am
    Jun 5, 2008 at 5:33 am
  • Can anyone give me pointers/instructions/a template for writing a Python extension in assembly (or better, HLA)?
    InhaheInhahe
    May 16, 2008 at 2:13 pm
    May 22, 2008 at 9:48 am
  • Hi all, I have a question on PyParsing. I am trying to create a parser for a hierarchical todo list format, but have hit a stumbling block. I have parsers for the header of the list (title and ...
    AntAnt
    May 16, 2008 at 11:43 am
    May 20, 2008 at 8:16 pm
  • I want to talk to the newsgroup. As I have found that its readers will be non-trivially attentive, I esteem it a worthwhile production, for finely divided values of worth & while. (Disclaimer: Don't ...
    CastironpiCastironpi
    May 16, 2008 at 12:50 pm
    May 18, 2008 at 10:44 am
  • Hi All, I wrote a program that takes a string sequence and finds all the words inside a text file (one word per line) and prints them: def anagfind(letters): #find anagrams of these letters fin = ...
    DaveDave
    May 8, 2008 at 1:02 am
    May 11, 2008 at 2:09 am
  • Hi All, I have been developing websites in classic asp using VB script for a long while now. Due to the fact that I also took a detour to developing ColdFusion, and the fact the companies I work(ed) ...
    Erik OosterwaalErik Oosterwaal
    May 25, 2008 at 4:58 pm
    May 27, 2008 at 3:30 pm
  • im writing a webcrawler. after visiting a new site i want to store it in alphabetical order. so obv i want fast insert. i want to delete duplicates too. which datastructure is best for this?
    NotnorwegianNotnorwegian
    May 25, 2008 at 6:37 am
    May 26, 2008 at 2:42 am
  • Having a hard time phrasing this in the form of a question... The other day I saw a thread where someone asked about overrideable properties and nobody offered the advice that properties are Bad. So ...
    David C. UllrichDavid C. Ullrich
    May 14, 2008 at 9:15 pm
    May 22, 2008 at 12:58 pm
  • Why can't I write this?
    CastironpiCastironpi
    May 15, 2008 at 1:32 pm
    May 16, 2008 at 8:17 am
  • Hi - I have a list returned from popen/readlines, and am wondering how to go about iterating over each item which was returned (rather than currently having the whole lot returned). so far: returns ...
    DannywebsterDannywebster
    May 13, 2008 at 10:28 am
    May 14, 2008 at 11:59 am
  • Just something that crosses my mind every time I delve into "Learning Python" each night. Does anyone see any value in learning Python when you don't need to for school, work, or any other reason? I ...
    John SalernoJohn Salerno
    May 12, 2008 at 5:27 pm
    May 13, 2008 at 5:50 am
  • Is there a way to do: x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] x[0,2:6] That would return: [0, 3, 4, 5, 6] I am surprised this notation is not supported, it seems intuitive. A concrete example of the sort ...
    Yves DorfsmanYves Dorfsman
    May 7, 2008 at 11:29 pm
    May 10, 2008 at 12:02 pm
  • Hi! I'm currently working on a scientific computation software built in python. What I want to implement is a Matlab style command window <- workspace interaction. For example, you type 'a=1' in the ...
    Lixinyi 23Lixinyi 23
    May 29, 2008 at 6:47 am
    Jun 1, 2008 at 6:55 pm
  • Hello group, I'm just starting with Python and am extremely unexperienced with it so far. Having a strong C/C++ background, I wish to do something like if (q = getchar()) { printf("%d\n", q); } or ...
    Johannes BauerJohannes Bauer
    May 23, 2008 at 10:59 pm
    May 30, 2008 at 10:22 am
  • Hi, I try to get a set of lambda functions that allows me executing each function code exactly once. Therefore, I would like to modify the set function to compare the func_code properties (or the ...
    Martin MannsMartin Manns
    May 25, 2008 at 11:43 am
    May 27, 2008 at 12:36 am
  • All: I'm getting different floating point values when I use numpy vs. unpack(). frgba = numpy.frombuffer(<string of bytes , dtype=float32) buffer = unpack("!f", byte) frgba[0] != buffer[0] why? This ...
    Marlin RowleyMarlin Rowley
    May 16, 2008 at 10:15 pm
    May 19, 2008 at 8:47 pm
  • When I started coding in python, these two things surprised me. 1. my code is inconsistently indented with the combination of tabs and spaces. Even lines looked intended, but it is not. 2. python ...
    V4vijayakumarV4vijayakumar
    May 8, 2008 at 7:06 am
    May 18, 2008 at 2:25 pm
  • hey folks, coming from java, new to python. i'm trying to port a java app to python that writes an inputstream to a buffer, then parses the buffer (specifically, i'm getting ID3 tags from mp3s ...
    MaxMax
    May 15, 2008 at 1:08 pm
    May 16, 2008 at 11:50 am
  • seems to be needed He doesn't seem to care much anyway now Or if he cares, he have many other assignments So should we try to elect a new chairman? I am probably not eligible. There must be many ...
    Sverker NilssonSverker Nilsson
    May 27, 2008 at 2:19 pm
    May 30, 2008 at 2:58 am
  • Hi guys, I'm trying to compress a string. E.g: "AAAABBBC" - "ABC" The code I have so far feels like it could be made clearer and more succinct, but a solution is currently escaping me. def ...
    Matt PorterMatt Porter
    May 18, 2008 at 6:06 pm
    May 20, 2008 at 8:29 am
Group Navigation
period‹ prev | May 2008 | next ›
Group Overview
grouppython-list @
categoriespython
discussions838
posts4,937
users924
websitepython.org

924 users for May 2008

Castironpi: 184 posts Gabriel Genellina: 157 posts Diez B. Roggisch: 141 posts Arnaud Delobelle: 94 posts Bruno Desthuilliers: 90 posts Inhahe: 77 posts Terry Reedy: 75 posts Ivan Illarionov: 70 posts Mike Driscoll: 66 posts Ben Finney: 65 posts Duncan Booth: 53 posts Globalrev: 52 posts Gary Herron: 50 posts Marc 'BlackJack' Rintsch: 50 posts George Sakkis: 48 posts Alex23: 47 posts David: 46 posts Bruno Desthuilliers: 43 posts Carl Banks: 43 posts Dave Parker: 43 posts
show more
Archives