FAQ

Search Discussions

957 discussions - 5,032 posts

  • I would like to get everyone's thoughts on two new dictionary methods: def count(self, value, qty=1): try: self[key] += qty except KeyError: self[key] = qty def appendlist(self, key, *values): try: ...
    Raymond HettingerRaymond Hettinger
    Mar 19, 2005 at 1:24 am
    Apr 1, 2005 at 9:34 am
  • Basically, it says that it will get rid of the explicit map, filter and reduce and substitute them by some syntactic sugar that uses them implicitly. That's ok, and not a big deal. It will also get ...
    FernandoFernando
    Mar 14, 2005 at 10:31 pm
    Mar 22, 2005 at 8:04 pm
  • What do you guys think about Python's grouping of code via indentation? Is it good - perhaps because it saves space and eliminates keypresses? Or is it bad - perhaps because it makes program flow ...
    Tim TylerTim Tyler
    Mar 25, 2005 at 8:11 am
    Apr 8, 2005 at 7:57 am
  • Since George Sakkis proposed a new way of doing list comprehensions http://groups-beta.google.com/group/comp.lang.python/browse_frm/thread/ac5023ad18b2835f/d3ff1b81fa70c8a7#d3ff1b81fa70c8a7 letting ...
    Kay SchluehrKay Schluehr
    Mar 22, 2005 at 6:37 am
    Mar 26, 2005 at 3:39 am
  • here's a large exercise that uses what we built before. suppose you have tens of thousands of files in various directories. Some of these files are identical, but you don't know which ones are ...
    Xah LeeXah Lee
    Mar 9, 2005 at 12:56 pm
    Mar 29, 2005 at 8:56 am
  • Hi, I am blessed with a *very* gifted nine-years old daughter for whom I have recently installed an old GNU/Linux Mandrake 7.2 on an equally old Pentium Pro box. She is enjoying it tremendously and ...
    TnozhTnozh
    Mar 24, 2005 at 5:03 am
    Mar 30, 2005 at 3:41 am
  • is it possible in Python to create a function that maintains a variable value? something like this: globe=0; def myFun(): globe=globe+1 return globe apparently it can't be done like that. I thought ...
    Xah LeeXah Lee
    Mar 6, 2005 at 8:07 am
    Mar 28, 2005 at 2:47 pm
  • Hi, <type 'list' <type 'str' I wonder why ('1') is no tuple???? Because I have to treat this "special" case differently in my code. -- Greg
    Gregor HorvathGregor Horvath
    Mar 15, 2005 at 4:16 pm
    Mar 30, 2005 at 6:58 am
  • basically what the code does is transmit data to a hardware and then receive data that the hardware will transmit. import serial import string import time from struct import * ser = serial.Serial() ...
    Jrlen balaneJrlen balane
    Mar 12, 2005 at 1:48 pm
    Apr 1, 2005 at 12:10 am
  • As you may or may not know, Microsoft is discontinuing Visual Basic in favor of VB.NET and that means I need to find a new easy programming language. I heard that Python is an interpreted language ...
    Mike CoxMike Cox
    Mar 17, 2005 at 5:33 am
    Mar 19, 2005 at 6:15 pm
  • Does anyone know of a cross-platform (OSX and Windows at least) library for text-to-speech? I know there's an OSX API, and probably also for Windows. I know PyTTS exists, but it seems to talk only to ...
    Charles HartmanCharles Hartman
    Mar 20, 2005 at 3:40 am
    Mar 24, 2005 at 5:13 pm
  • http://www.gotdotnet.com/workspaces/workspace.aspx?id=ad7acff7-ab1e-4bcb-99c0-57ac5a3a9742
    JamesJames
    Mar 23, 2005 at 6:49 pm
    Apr 6, 2005 at 3:35 pm
  • Hello, I am looking for a method to "shuffle" the lines of a large file. I have a corpus of sorted and "uniqed" English sentences that has been produced with (1): (1) sort corpus | uniq corpus.uniq ...
    Joerg SchusterJoerg Schuster
    Mar 7, 2005 at 1:36 pm
    Mar 12, 2005 at 12:35 pm
  • Hi! Given a string, I want to find all ocurrences of certain predefined words in that string. Problem is, the list of words that should be detected can be in the order of thousands. With the re ...
    André SørengAndré Søreng
    Mar 1, 2005 at 7:46 pm
    Mar 23, 2005 at 8:23 am
  • Hi guys, What web framework do you suggest to develop with? I had a look both at Nevow and Quixote. These seemes to be the most appreciated by the community. Anyway, I had no luck looking for a ...
    Gianluca SartoriGianluca Sartori
    Mar 9, 2005 at 4:20 pm
    Mar 15, 2005 at 9:45 am
  • For quick-and-dirty stuff, it's often convenient to flatten a sequence (which perl does, surprise surprise, by default): [1,2,[3,"hello",[[4]]]] - [1, 2, 3, 'hello', 4] One such implementation is at ...
    Ville VainioVille Vainio
    Mar 11, 2005 at 11:32 am
    Mar 17, 2005 at 10:23 am
  • No doubt I've overlooked something obvious, but here goes: Let's say I assign a value to a var, e.g.: myPlace = 'right here' myTime = 'right now' Now let's say I want to print out the two vars, along ...
    Stewart MidwinterStewart Midwinter
    Mar 29, 2005 at 6:06 am
    Apr 1, 2005 at 7:56 pm
  • There are certain options for Tkinter widgets that have default values that I don't much care for (borderwidth, font come to mind) and continuously change when I'm building interfaces. With a bit of ...
    Harlin SerittHarlin Seritt
    Mar 3, 2005 at 11:02 am
    Mar 9, 2005 at 8:32 pm
  • Please include "goto" command in future python realeses I know that proffesional programers doesn't like to use it, but for me as newbie it's too hard to get used replacing it with "while", "def" or ...
    BOOGIEMANBOOGIEMAN
    Mar 5, 2005 at 2:17 pm
    Mar 8, 2005 at 1:33 pm
  • First, a disclaimer. I am a second year Maths and Computer Science undergraduate, and this is my first time ever on Usenet (I guess I'm part of the http generation). On top of that, I have been using ...
    Jordan RastrickJordan Rastrick
    Mar 25, 2005 at 4:04 pm
    Mar 27, 2005 at 6:58 am
  • Jack Diederich wrote: Very cool idea. I think the transition from itertools.XXX(iterable, *args, **kwargs) to iter.XXX(iterable, *args, **kwargs) ought to be pretty easy. The transition from here to ...
    Steven BethardSteven Bethard
    Mar 28, 2005 at 5:28 pm
    Apr 1, 2005 at 5:08 am
  • Why doesn't this work? ... class baz(object): ... def __getitem__(cls, idx): return cls.lst[idx] ... __getitem__=classmethod(__getitem__) ... baz.lst = lst ... return baz ... Traceback (most recent ...
    RonRon
    Mar 15, 2005 at 1:43 am
    Mar 16, 2005 at 8:54 pm
  • Someone will, no doubt, find a way to code this. I suggest you are fighting the language here -- learn to use it instead. Decide what you really want to do, not how you want to do it. Then try to ...
    Scott David DanielsScott David Daniels
    Mar 8, 2005 at 12:51 pm
    Mar 9, 2005 at 8:59 am
  • Hello, I have strings represented as a combination of an alphabet (AGCT) and a an operator "/", that signifies degeneracy. I want to split these strings into lists of lists, where the degeneracies ...
    James StroudJames Stroud
    Mar 27, 2005 at 10:39 pm
    Mar 28, 2005 at 7:19 pm
  • Here's my problem, and hopefully someone can help me figure out if there is a good way to do this. I am writing a program that allows the user to enter an equation in a text field using pre-existing ...
    Brian KazianBrian Kazian
    Mar 13, 2005 at 3:38 am
    Mar 17, 2005 at 5:40 am
  • On behalf of the Python development team and the Python community, I'm happy to announce the release of Python 2.4.1 (release candidate 1). Python 2.4.1 is a bug-fix release. See the release notes at ...
    Anthony BaxterAnthony Baxter
    Mar 10, 2005 at 2:37 pm
    Mar 15, 2005 at 8:30 pm
  • When you run "python -i scriptname.py" after the script completes you left at the interactive command prompt. Is there a way to have this occur from a running program? In other words can I just run ...
    JoeJoe
    Mar 6, 2005 at 5:23 pm
    Mar 8, 2005 at 5:37 pm
  • Has anyone written a Queue.Queue replacement that avoids busy-waiting? It doesn't matter if it uses os-specific APIs (eg WaitForMultipleObjects). I did some googling around and haven't found anything ...
    Paul L. Du BoisPaul L. Du Bois
    Mar 24, 2005 at 11:40 pm
    Apr 4, 2005 at 1:28 pm
  • There are a bunch of new tests up at shootout.alioth.debian.org for which Python does not yet have code. I've taken a crack at one of them, a task to print the reverse complement of a gene ...
    Jacob LeeJacob Lee
    Mar 16, 2005 at 5:00 am
    Mar 29, 2005 at 6:43 pm
  • I've been searching high and low for a way to simply convert a small XML configuration file to Python data structures. I came across gnosis XML tools, but need a built-in option for doing something ...
    GaudettejeGaudetteje
    Mar 16, 2005 at 10:19 pm
    Mar 23, 2005 at 1:29 am
  • I would like to save time copying the same file ( 6 GByte) to various different target storage media connected to the system via USB. Is there a (Python or other) tool able to help me to do this, so ...
    Claudio GrondiClaudio Grondi
    Mar 20, 2005 at 11:41 am
    Mar 23, 2005 at 4:01 pm
  • Suppose I want to define a class hierarchy that represents expressions, for use in a compiler or something similar. We might imagine various kinds of expressions, classified by their top-level ...
    Andrew KoenigAndrew Koenig
    Mar 31, 2005 at 7:33 pm
    Apr 1, 2005 at 12:49 pm
  • I've narrowed down my toolkit selection for my project to wxPython and pyQt, and now i'd like to hear any opinions, war stories, peeves, etc, about them, particularly from anyone who's used ...
    EholbrooEholbroo
    Mar 17, 2005 at 5:11 am
    Mar 21, 2005 at 8:37 pm
  • hi everybody. suppose that code-1.py imports code-2.py and code-3.py (because it uses names from both), and that code-2.py imports code-3.py. if python were c, code-1.c should only *include* ...
    Max(01)*Max(01)*
    Mar 30, 2005 at 12:47 pm
    Apr 5, 2005 at 5:30 pm
  • *DevSource* profiles "The State of the Scripting Universe" in <URL: http://www.devsource.com/article2/0,1759,1778141,00.asp .
    Cameron LairdCameron Laird
    Mar 22, 2005 at 12:08 pm
    Mar 24, 2005 at 6:08 pm
  • I'm sure there must have been a past thread about this topic but I don't know how to find it: How about extending the "for <X in" syntax so that X can include default arguments ? This would be very ...
    George SakkisGeorge Sakkis
    Mar 20, 2005 at 6:16 pm
    Mar 22, 2005 at 5:55 am
  • In this snippet: d = {'x': 1} value = d.get('x', bigscaryfunction()) the bigscaryfunction is always called, even though 'x' is a valid key. Is there a "short-circuit" version of get that doesn't ...
    Dave OpstadDave Opstad
    Mar 9, 2005 at 5:45 pm
    Mar 11, 2005 at 10:47 am
  • I just read in the 'What's New in Python 2.4' document that the None data type was converted to a constant: http://python.org/doc/2.4/whatsnew/node15.html """ # None is now a constant; code that ...
    GaudettejeGaudetteje
    Mar 4, 2005 at 9:47 pm
    Mar 9, 2005 at 8:52 pm
  • Hello, Does anyone know how I can read the ASCII text from a console window (from another application) in WinXP? It doesn't sound like a major operation, but although I can find the window via ...
    Chris MaloofChris Maloof
    Mar 20, 2005 at 7:43 pm
    Apr 6, 2005 at 3:18 am
  • I've googled for the above and get way too many hits.. I'm looking for an 'easy' way to have the last item in a list returned. I've thought about list[len(list)-1] but thought there would be a more ...
    David BearDavid Bear
    Mar 30, 2005 at 5:48 pm
    Apr 4, 2005 at 5:31 pm
  • Hello! Im working with new (object) classes and normaly call init of ther motherclass with callin super(...), workes fine. No, I've got a case with multiple inherance and want to ask if this is the ...
    Axel StraschilAxel Straschil
    Mar 28, 2005 at 12:51 pm
    Mar 29, 2005 at 7:38 pm
  • Hi, I have many set objects some of which can contain same group of object while others can be subset of the other. Given a list of sets, I need to get a list of unique sets such that non of the set ...
    Les_anderLes_ander
    Mar 17, 2005 at 7:35 pm
    Mar 19, 2005 at 7:40 pm
  • Hi all I am working on a log in script for my webpage. I have the username and the password stored in a PostgreSQL database. The first I do is I make a html form, where the user can type in his ...
    Pete.....Pete.....
    Mar 8, 2005 at 10:18 pm
    Mar 14, 2005 at 10:52 am
  • Hello all, I am trying to internationalize my Tkinter program using gettext and encountered various problems, so it looks like it's not a trivial task. After some "research" I made up a few rules for ...
    KlappnaseKlappnase
    Mar 2, 2005 at 11:05 am
    Mar 12, 2005 at 10:50 pm
  • There is a number puzzle which appears in the daily paper. Because I'm between Python projects, I thought it might be fun to write a program to solve it....20 minute job, max. On closer inspection, ...
    EngsolEngsol
    Mar 2, 2005 at 6:23 pm
    Mar 4, 2005 at 3:34 am
  • Hello, My second question from my last post (PyQt on Python 2.4), I think, is a little got under (i have installed both Python 2.3 and Python 2.4) Is there any possibility under WinXP, to alterntate ...
    Franz SteinhäuslerFranz Steinhäusler
    Mar 31, 2005 at 8:14 pm
    Apr 5, 2005 at 8:14 pm
  • Hi all, I followed the mails entitled 'How to turn a variable name into a string?' in march 2005 posts as I have a similar problem. I have to get some list variable names at some point in my program. ...
    PlPl
    Mar 16, 2005 at 2:34 pm
    Apr 1, 2005 at 5:59 am
  • Is there a function for comparing version numbers? E.g. 0.1.0 < 0.1.2 1.876b < 1.876c 3.2.2 < 3.4 Keith
    KeithKeith
    Mar 25, 2005 at 3:34 pm
    Mar 29, 2005 at 9:09 am
  • static void testme( unsigned char *buf, unsigned long size, CODE code) { unsigned long data switch (code) { // Generate some test patterns case TEST1 : value = 0x0; while (size--) { *buf++ = ...
    AshtonnAshtonn
    Mar 23, 2005 at 9:57 pm
    Mar 25, 2005 at 1:25 am
  • Hello all, I am still needing some help on this code, I have gone a bit further on it. Thank you for the help. I am trying to understand how to make the file searchable and how I am to make the ...
    IgoratiIgorati
    Mar 17, 2005 at 5:25 pm
    Mar 24, 2005 at 1:49 pm
Group Navigation
period‹ prev | Mar 2005 | next ›
Group Overview
grouppython-list @
categoriespython
discussions957
posts5,032
users1,070
websitepython.org

1,070 user for March 2005

Steven Bethard: 131 posts Peter Hansen: 118 posts Steve Holden: 94 posts Bengt Richter: 81 posts Diez B. Roggisch: 81 posts Kent Johnson: 64 posts Michael Spencer: 58 posts Martin v. Löwis: 55 posts Christos TZOTZIOY Georgiou: 54 posts Ron_Adam: 54 posts Harlin Seritt: 50 posts John Machin: 50 posts Michael Hoffman: 49 posts Terry Reedy: 48 posts Antoon Pardon: 46 posts Fredrik Lundh: 43 posts Robert Kern: 39 posts Raymond Hettinger: 38 posts Werner Merkl: 38 posts Fuzzyman: 37 posts
show more
Archives