FAQ

Search Discussions

855 discussions - 5,146 posts

  • I'm a newcomer to python: [EVALUATION] - E01: The Java Failure - May Python Helps? http://groups-beta.google.com/group/comp.lang.python/msg/75f0c5c35374f553 - I've download (as suggested) the python ...
    Ilias LazaridisIlias Lazaridis
    Feb 13, 2005 at 6:41 pm
    Feb 24, 2005 at 1:42 am
  • For all you GUI developers, things just got a little more interesting. Trolltech will soon be offering the QT GUI toolkit for Windows under the GPL license. That means that PyQt may become a much ...
    RMRM
    Feb 7, 2005 at 4:52 pm
    Feb 12, 2005 at 3:47 am
  • I've tried Googling for this, but practically all discussions on str.join() focus on the yuck-ugly-shouldn't-it-be-a-list-method? issue, which is not my problem/question at all. What I can't find an ...
    Leo BreebaartLeo Breebaart
    Feb 16, 2005 at 6:47 pm
    Feb 20, 2005 at 4:51 am
  • I find myself doing the following very often: class Struct: pass ... blah = Struct() blah.some_field = x blah.other_field = y ... Is there a better way to do this? Is this considered bad programming ...
    Christopher J. BottaroChristopher J. Bottaro
    Feb 4, 2005 at 6:59 pm
    Feb 10, 2005 at 5:29 pm
  • Hi all, I have a list of items that has contiguous repetitions of values, but the number and location of the repetitions is not important, so I just need to strip them out. For example, if my ...
    Alan McIntyreAlan McIntyre
    Feb 4, 2005 at 5:43 pm
    Feb 9, 2005 at 7:25 pm
  • Pickle and marshal are not safe. They can do harmful things if fed maliciously constructed data. That is a pity, because marshal is fast. I need a fast and safe (secure) marshaler. Is xdrlib the only ...
    Irmen de JongIrmen de Jong
    Feb 10, 2005 at 2:01 pm
    Mar 6, 2005 at 8:21 am
  • here's another interesting algorithmic exercise, again from part of a larger program in the previous series. Here's the original Perl documentation: =pod merge($pairings) takes a list of pairs, each ...
    Xah LeeXah Lee
    Feb 17, 2005 at 11:46 pm
    Feb 24, 2005 at 9:43 pm
  • If you are talking about Wikipedia as a prime example, I agree with you that it is *painfully* slow. And the reason for that I probably because of the way the language is used (PHP) (this is a shot ...
    KarticKartic
    Feb 4, 2005 at 2:46 am
    Feb 7, 2005 at 11:15 pm
  • While writing a generator, I was just thinking how Python needs a "yield_all" statement. With the help of Google, I found a pre-existing discussion on this from a while back in the Lightweight ...
    Douglas AlanDouglas Alan
    Feb 28, 2005 at 11:25 pm
    Mar 4, 2005 at 12:55 am
  • In an interview at http://acmqueue.com/modules.php?name=Content&pa=showpage&pid'3 Alan Kay said something I really liked, and I think it applies equally well to Python as well as the languages ...
    Grant EdwardsGrant Edwards
    Feb 9, 2005 at 6:53 pm
    Feb 17, 2005 at 5:21 am
  • Is there a good way to determine if an object is a numeric type? Generally, I avoid type-checks in favor of try/except blocks, but I'm not sure what to do in this case: def f(i): ... if x < i: ... ...
    Steven BethardSteven Bethard
    Feb 11, 2005 at 7:11 pm
    Feb 17, 2005 at 7:47 pm
  • Hello, Is anyone has experiance in running python code to run multi thread parallel in multi processor. Is it possible ? Can python manage which cpu shoud do every thread? Sincerely Yours, Pujo
    AjikoeAjikoe
    Feb 9, 2005 at 3:08 pm
    Feb 15, 2005 at 4:29 pm
  • Dear Python Community, I am trying to build Python with Tcl/Tk under the Cygwin_NT-5.1 OS. Has anyone done this? Do I need to build tcl8.4.9 and tk8.4.9 under the unix directory or the win directory. ...
    Dean N. WilliamsDean N. Williams
    Feb 1, 2005 at 10:31 am
    Jul 28, 2005 at 12:34 pm
  • Maybe ZODB helps. -- Regards, Diez B. Roggisch
    Diez B. RoggischDiez B. Roggisch
    Feb 16, 2005 at 1:48 pm
    Feb 18, 2005 at 5:42 pm
  • "jfj" <jfj at freemail.gr wrote in message news:mailman.2022.1107703890.22381.python-list at python.org... You called b.foo(1) but a.foo(). Note one argument in the first call and no arguments in the ...
    Dan PerlDan Perl
    Feb 6, 2005 at 4:14 pm
    Feb 9, 2005 at 10:18 am
  • I have lists containing values that are all either True, False or None, e.g.: [True, None, None, False] [None, False, False, None ] [False, True, True, True ] etc. For a given list: * If all values ...
    Steven BethardSteven Bethard
    Feb 4, 2005 at 5:48 pm
    Feb 7, 2005 at 9:35 pm
  • is it possible to write python code without any indentation? Xah xah at xahlee.org http://xahlee.org/PageTwo_dir/more.html
    Xah LeeXah Lee
    Feb 7, 2005 at 7:39 pm
    Feb 11, 2005 at 5:21 am
  • I've read some posts on Perl versus Python and studied a bit of my Python book. I'm a software engineer, familiar with C++ objected oriented development, but have been using Perl because it is great ...
    SurfunbearSurfunbear
    Feb 6, 2005 at 1:19 pm
    Feb 11, 2005 at 2:03 pm
  • Dear list, I have many dictionaries with the same set of keys and I would like to write a function to calculate something based on these values. For example, I have a = {'x':1, 'y':2} b = {'x':3, ...
    Bo PengBo Peng
    Feb 4, 2005 at 8:27 pm
    Feb 6, 2005 at 12:34 pm
  • I have long find the Python default encoding of strict ASCII frustrating. For one thing I prefer to get garbage character than an exception. But the biggest issue is Unicode exception often pop up in ...
    AuroraAurora
    Feb 18, 2005 at 5:10 pm
    Apr 12, 2005 at 5:53 pm
  • Kind of fun exercise (no good for British English). def units(value, units='bytes'): magnitude = abs(value) if magnitude = 1000: for prefix in ['kilo mega giga tera peta ' 'exa zetta yotta').split(): ...
    Scott David DanielsScott David Daniels
    Feb 12, 2005 at 9:38 pm
    Feb 14, 2005 at 8:14 pm
  • Either I'm crazy and I'm missing the obvious here or there is something wrong with this code. Element 5 of this list says it doesn't contain the string 255, when that's *ALL* it contains... why would ...
    RbtRbt
    Feb 4, 2005 at 7:23 pm
    Feb 8, 2005 at 8:12 pm
  • I am using IPython in windows and the LightBG setting doesn't correctly because the background of the text is black even if the console background is white. Anyone know whats going on? Thanks. -- ...
    AshotAshot
    Feb 4, 2005 at 12:37 am
    Feb 7, 2005 at 12:45 am
  • What I want to do is pre-load functions with arguments by iterating through a list like so: ... pass ... print arg ... setattr(myclass, item, lamdba self: func(self, item)) This attaches a list of ...
    Ted LilleyTed Lilley
    Feb 19, 2005 at 7:42 am
    Feb 22, 2005 at 10:47 pm
  • I've just finished reading Python turtorial for non-programmers and I haven't found there anything about some usefull commands I used in QBasic. First of all, what's Python command equivalent to ...
    BOOGIEMANBOOGIEMAN
    Feb 10, 2005 at 3:59 pm
    Feb 14, 2005 at 2:03 pm
  • While googling for a non-linear equation solver, I found Math::Polynomial::Solve in CPAN. It seems a great little module, except it's not Python... I'm especially looking for its poly_root() ...
    JustJust
    Feb 26, 2005 at 3:42 pm
    Mar 6, 2005 at 2:52 pm
  • On all platfroms \w matches all unicode letters when used with flag re.UNICODE, but this doesn't work on SuSE 9.2: Python 2.3.4 (#1, Dec 17 2004, 19:56:48) [GCC 3.3.4 (pre 3.3.5 20040809)] on linux2 ...
    Denis S. OtkidachDenis S. Otkidach
    Feb 10, 2005 at 10:00 am
    Feb 13, 2005 at 8:09 pm
  • " A cooperation between Sun Microsystems and IBM&Co. in conjunction with liberal & high evolutive communities would result in an nearly unbeatable programming platform. My evaluation has shown: this ...
    Ilias LazaridisIlias Lazaridis
    Feb 3, 2005 at 7:26 am
    Feb 13, 2005 at 10:54 am
  • I recently posted this sort of question to the c.l.p.m but didn't get much of a response. I know a little Perl and a little Python, but master neither at the moment. I see that Python is a general ...
    John M. GabrieleJohn M. Gabriele
    Feb 8, 2005 at 4:01 am
    Feb 10, 2005 at 3:00 pm
  • Hi, I would like to develop a tool that goes one step further than pychecker to ensure python program validity. The idea would be to get close to what people get on ocaml: a static verification of ...
    Philippe FremyPhilippe Fremy
    Feb 1, 2005 at 4:18 am
    Feb 2, 2005 at 4:13 pm
  • When I look at how classes are set up in other languages (e.g. C++), I often observe the following patterns: 1) for each data member, the class will have an accessor member function (a Get<whatever ...
    MirandacascadeMirandacascade
    Feb 25, 2005 at 8:01 am
    Mar 1, 2005 at 5:32 pm
  • This is sort of both Python and Vim related (which is why I've posted to both newsgroups). Python related: ---------------------- I have been frustrated for quite some time with a lack of a history ...
    AshotAshot
    Feb 3, 2005 at 2:45 am
    Feb 8, 2005 at 5:38 am
  • In general, you will need to post the relevant entries from your Apache error log and access log. A lot of things can go wrong between your Python script and final output. However, if you're getting ...
    Jeremy BowersJeremy Bowers
    Feb 2, 2005 at 1:47 am
    Feb 28, 2005 at 9:52 pm
  • would anyone like to help to fugure out this problem i'm having here's a portion of my code: """ I have three dictionaries along with this(you can probally spot what they are), but just in case here ...
    GargonxGargonx
    Feb 13, 2005 at 12:27 am
    Feb 21, 2005 at 4:03 pm
  • I consider this to be a good question. I just started to learn Python and I like it. I don't know about Lisp however... The problem, IMHO, in creating a new language is that we are losing code ...
    Arich ChanachaiArich Chanachai
    Feb 17, 2005 at 9:59 pm
    Feb 22, 2005 at 6:58 am
  • How to install python under DOS and is there any Wxpython-like can be installed under dos? Thanks.
    John sanJohn san
    Feb 16, 2005 at 3:33 am
    Feb 18, 2005 at 12:05 pm
  • Hi, I can find examples to convert lists into a list of tuples like: [(1,4),(2,5),(3,6)] but how is it done vice versa? Oliver
    Oliver EichlerOliver Eichler
    Feb 9, 2005 at 1:42 pm
    Feb 11, 2005 at 5:20 pm
  • integer division and modulo gives different results in c and python, when negative numbers are involved. take gdb as a widely available c interpreter print -2 /3 0 for c, -1 for python. more amazing, ...
    Imbaud PierreImbaud Pierre
    Feb 8, 2005 at 12:11 am
    Feb 10, 2005 at 3:20 pm
  • Where did this type of structure come from: mat = ['a' for i in range(3)] ? This will produce a list of three elements but I don't see reference for it in any of the books.
    JimJim
    Feb 8, 2005 at 2:49 pm
    Feb 10, 2005 at 1:38 pm
  • Hi all, I'm trying to write a multiplatform function that tries to return the actual user home directory. I saw that os.path.expanduser("~") works on Linux but on Windows2000 (at least on the win I ...
    NemesisNemesis
    Feb 2, 2005 at 7:26 pm
    Feb 9, 2005 at 3:06 pm
  • I'm trying to figure out how to sort a list, and I've run into a problem that that I have tripped over constantly for years: where are the methods of basic types documented? The only thing I can find ...
    Grant EdwardsGrant Edwards
    Feb 1, 2005 at 5:21 pm
    Feb 4, 2005 at 4:52 am
  • Hi there, how can I check if a variable is a structure (i.e. a list)? For my special problem the variable is either a character string OR a list of character strings line ['word1', 'word2',...] So ...
    AlexAlex
    Feb 16, 2005 at 3:08 pm
    Feb 22, 2005 at 10:53 am
  • I've done some C++ and Java in the past, and have recently learned a fair amount of Python. One thing I still really don't get though is the difference between class methods and instance methods. I ...
    John M. GabrieleJohn M. Gabriele
    Feb 17, 2005 at 7:04 am
    Feb 18, 2005 at 5:17 pm
  • I need something like "Press any key to continue" code for my program. Currently I use : raw_input("Press Enter to continue ") but it's lame.
    BOOGIEMANBOOGIEMAN
    Feb 11, 2005 at 4:26 pm
    Feb 14, 2005 at 2:10 pm
  • I need this a lot: a one line way to do a n-ary and or 'or'. e.g., result = True for x in L: if not boolean_function(x): result = False or So usually I just write a little function any( L, ...
    RooseRoose
    Feb 13, 2005 at 8:55 pm
    Feb 14, 2005 at 2:34 am
  • In the "empty classes as c structs?" thread, we've been talking in some detail about my proposed "generic objects" PEP. Based on a number of suggestions, I'm thinking more and more that instead of a ...
    Steven BethardSteven Bethard
    Feb 10, 2005 at 6:56 pm
    Feb 13, 2005 at 4:50 am
  • Dear friends, What is the ultimate version control tool for Python if you are working in a Windows environment? When you work on a Visual C++ project then it's easy, use Visual Source Safe for your ...
    CarlCarl
    Feb 9, 2005 at 5:33 pm
    Feb 11, 2005 at 11:11 am
  • Hi, I am a beginner with python and here is my first question: How can I read the contents of a file using a loop or something? I open the file with file=open(filename, 'r') and what to do then? Can ...
    AlexAlex
    Feb 2, 2005 at 9:27 pm
    Feb 9, 2005 at 4:22 am
  • Is there a canonical way of iterating over the lines of a file that are null-separated rather than newline-separated? Sure, I can implement my own iterator using read() and split(), etc., but ...
    Douglas AlanDouglas Alan
    Feb 24, 2005 at 3:54 am
    Mar 2, 2005 at 1:25 am
  • I am trying to record how long an operation takes, but can't seem to find a function that will allow me to record the timestamp in milliseconds, maybe I am looking in the wrong place?
    Mjs7231Mjs7231
    Feb 16, 2005 at 2:45 pm
    Feb 17, 2005 at 4:49 pm
Group Navigation
period‹ prev | Feb 2005 | next ›
Group Overview
grouppython-list @
categoriespython
discussions855
posts5,146
users1,004
websitepython.org

1,004 user for February 2005

Steven Bethard: 174 posts Fredrik Lundh: 152 posts Nick Coghlan: 116 posts Diez B. Roggisch: 97 posts Peter Hansen: 79 posts Steve Holden: 76 posts Ilias Lazaridis: 72 posts Alex Martelli: 61 posts John Machin: 61 posts Grant Edwards: 57 posts Michael Spencer: 55 posts Terry Reedy: 50 posts Jeremy Bowers: 48 posts Fuzzyman: 46 posts Michael Hoffman: 39 posts Irmen de Jong: 37 posts Jeff Shannon: 36 posts Duncan Booth: 35 posts Dan Perl: 34 posts M.E.Farmer: 34 posts
show more
Archives