Search Discussions

814 discussions - 4,956 posts

  • If you were crazy enough to think that you could create a program along the lines of Emacs, but written in Python, how would you go about it? How would you design the domain model for files, buffers, ...
    Patrick K. O'BrienPatrick K. O'Brien
    Apr 6, 2003 at 6:51 am
    Apr 18, 2003 at 2:54 pm
  • It has been my increasing concern that Python is headed in a decidedly object-oriented direction, ignoring the benefits it currently offers to functional programmers. Before you respond, "but Python ...
    Dave BenjaminDave Benjamin
    Apr 15, 2003 at 7:22 pm
    Apr 24, 2003 at 9:18 am
  • One of the hot topics at PyCon was Promoting Python. We had two Open Space sessions at PyCon that were relevant: http://www.python.org/cgi-bin/moinmoin/MarketingPythonOpenSpace ...
    Kevin AltisKevin Altis
    Apr 11, 2003 at 3:34 am
    Apr 21, 2003 at 1:24 pm
  • Hi; Given that strings are immutable, is it exceedingly slow (and memory spiking) to do a lot of "string += string" operations in one's code? IOW, does each and every += evaluation lead to a new ...
    Mads Orbesen TroestMads Orbesen Troest
    Apr 12, 2003 at 5:19 pm
    Apr 17, 2003 at 10:10 pm
  • Hi all! Let me start with the statement that I am not a professional web-programmer. My tasks are rather linked with the scientific calculations and algorithm prototyping. Recently I have started to ...
    Apr 4, 2003 at 5:04 pm
    Apr 23, 2003 at 2:35 am
  • When I try to call methods, I sometimes forget to include the parentheses. Instead of: if object.isGreen(): do something... i sometimes write: if object.isGreen: do something... If I understand it ...
    Frantisek FukaFrantisek Fuka
    Apr 25, 2003 at 9:46 pm
    Apr 30, 2003 at 2:53 pm
  • Hi Pythoners; If I create a class which I want to be able to print like this ... tst = myclass() exp = r"test: %(intepol)s"; print exp % { 'intepol':tst } ... it seems I have two choices, either of ...
    Mads Orbesen TroestMads Orbesen Troest
    Apr 12, 2003 at 12:41 pm
    Apr 29, 2003 at 4:22 pm
  • Given the following class hierarchy: class A(object): InstCount = 0 def __init__(self): self.__class__.__dict__['InstCount'] += 1 class B(A): InstCount = 0 class C(A): InstCount = 0 Is the syntax ...
    Nikolai KirsebomNikolai Kirsebom
    Apr 24, 2003 at 11:29 am
    May 5, 2003 at 4:18 pm
  • Interesting question. Many of us have used XP techniques without actually knowing that our methodology was labelled as "XP", it comes natural in the scope of our tools and goals. Tool: Python. Goal: ...
    Apr 16, 2003 at 2:36 pm
    Apr 30, 2003 at 2:37 pm
  • Dear community, dear Stackless addicts, dear friends, Ich habe Euch wirklich was zu erz?hlen, liebe Freunde, I really have to tell you a story! During the last four months, I have been struggling ...
    Christian TismerChristian Tismer
    Apr 17, 2003 at 4:40 am
    Apr 25, 2003 at 7:19 pm
  • Hi all- This is my second generic question posted to c.l.p (the first was 'How many of you are Extreme Programmers?') but it seems like a somewhat appropriate discussion for the group. I've noticed ...
    Christopher BlunckChristopher Blunck
    Apr 29, 2003 at 2:38 pm
    May 6, 2003 at 12:17 am
  • Hi all, I have this short question: can the operator 'raise' raise exceptions which are instances of object? I'm getting the following behaviour from python 2.2.2: Traceback (most recent call last): ...
    Carlos P.Carlos P.
    Apr 29, 2003 at 3:50 pm
    May 7, 2003 at 4:16 pm
  • What is the most Pythonic way to sum the n-th element of a list of lists (or of tuples)? The obvious (to me) way is to use reduce, a list comprehension, and a lambda: $ python Python 2.2.1 (#1, Jul 4 ...
    Guy MiddletonGuy Middleton
    Apr 18, 2003 at 8:21 pm
    Apr 28, 2003 at 2:54 pm
  • Howdy! I submitted a pre-PEP on overloadable assignment. The idea is: In situations where the assignment token "=" appears, and an augmented assignment symbol (such as +=, -=, *=, etc..) would also ...
    Drew MooreDrew Moore
    Apr 2, 2003 at 4:11 am
    Apr 7, 2003 at 2:12 am
  • I am attempting to summarise the distributed computing implementations available to Python programmers. My conclusions so far are as follows: If you want the biggest, boldest approach and don't care ...
    Apr 2, 2003 at 4:29 pm
    Apr 14, 2003 at 5:12 am
  • Hello, Before trying my own solutions, I wonder if someone already has a solution to this. We have been programming a quite large application in python and it contains many original algorithm and ...
    Christophe grimaultChristophe grimault
    Apr 3, 2003 at 7:35 am
    Apr 15, 2003 at 8:23 am
  • Hi, I'm extremely new to python. I've spent the majority of my waking hours this easter reseaching Python GUIs, compilers, and the language in general. It's been arduous trying to piece together ...
    Denis AgarDenis Agar
    Apr 21, 2003 at 5:14 pm
    May 1, 2003 at 4:29 pm
  • PEP: 313 Title: Adding Roman Numeral Literals to Python Version: $Revision: 1.2 $ Last-Modified: $Date: 2003/04/01 17:41:34 $ Author: Mike Meyer <mwm at mired.org Status: Draft Type: Standards Track ...
    Mike MeyerMike Meyer
    Apr 1, 2003 at 5:52 pm
    Apr 4, 2003 at 3:40 am
  • a=range(10) b=a[3:7] b=[3,4,5,6] Why the design exclude the last element ? I's because the distinction of "element and list-element" ? a[3]=3 # element a[3:4]=[3] # list-element Why the designer d'nt ...
    Nguyen khanhNguyen khanh
    Apr 28, 2003 at 12:25 pm
    May 6, 2003 at 5:59 pm
  • So, after a recent bad experience with LyX and version skew, I was looking at alternatives for software end-user and administrator documentation. The constraints are pretty simple: * produce good ...
    Apr 29, 2003 at 2:21 am
    May 3, 2003 at 12:51 am
  • I've been using True and False for a while now, and I put this at the top of my files: True, False = 1==1, 0==1 But people seem concerned about this with Python 2.3. I don't think they should be ...
    Ian BickingIan Bicking
    Apr 22, 2003 at 6:29 pm
    Apr 26, 2003 at 9:41 am
  • As I just mentioned in another post, I'm writing an ASCII database for my address book. Actually, the main reason for writing it was because I've been maintaining multiple lists for various kinds of ...
    Apr 23, 2003 at 2:19 pm
    Apr 26, 2003 at 6:36 pm
  • Hello, I'm currently teaching a high-school introduction to programming course. I'm currently teaching in Java, but am seriously considering changing to Python. The problem is that I cannot seem to ...
    Steven HodgenSteven Hodgen
    Apr 27, 2003 at 4:57 pm
    May 6, 2003 at 10:47 pm
  • Howdy all, So, I'm fairly experienced with Python for shell programming, fairly experienced with OO programming, but am just now using the one for the other. I'm designing a class hierarchy, using ...
    Ben FinneyBen Finney
    Apr 7, 2003 at 1:06 am
    Apr 12, 2003 at 4:42 am
  • Hi, I'd like to make a GUI for a program written in python, meant to run on mac, win and linux: which is the preferable solution? I saw around tkinter, wxpython and pyqt.... -- bye Alessio Pace
    Alessio PaceAlessio Pace
    Apr 25, 2003 at 9:36 am
    Apr 28, 2003 at 11:10 am
  • I have been working with perl and java for quite a few years now and I am currently actively looking to replace perl wit something better, a language that promotes software engineering principles. I ...
    Istvan AlbertIstvan Albert
    Apr 13, 2003 at 2:14 am
    Apr 15, 2003 at 5:19 pm
  • I'm having trouble understanding exactly how __slots__ is supposed to behave when one class is derived from another. For example: # First case: works as I would expect class A(object): __slots__ = ...
    Blair HallBlair Hall
    Apr 11, 2003 at 3:08 am
    Apr 15, 2003 at 12:28 am
  • Hi! I think it would be nice if l=[2, 3, 4] l.insert(1) would insert in front of the list, as opposed to append() which adds new elements at the end. l.insert(1) looks better than l.insert(-1,1) ...
    Thomas GuettlerThomas Guettler
    Apr 9, 2003 at 12:42 pm
    Apr 15, 2003 at 2:32 am
  • I'm moving more and more to TDD (test driven development [1]), which makes tests an integral part of the development process. Failing tests are ocurring very often with this development style, ...
    Thomas HellerThomas Heller
    Apr 16, 2003 at 9:16 am
    Apr 22, 2003 at 10:42 am
  • Was just reading a thread about how python implements protected and private methods. I found JP's response quite interesting (this is something I've heard numerous friends of mine say of the ...
    Christopher BlunckChristopher Blunck
    Apr 16, 2003 at 2:30 pm
    Apr 18, 2003 at 1:40 pm
  • I need to use one liners every day, especially in Makefiles. I thus need to know how to make any kind of python program into a big long one liner. However, right out of the starting gates I run into ...
    Dan JacobsonDan Jacobson
    Apr 15, 2003 at 5:59 am
    Apr 17, 2003 at 3:43 pm
  • (defmacro with-root-privs (() &body body) (let ((oldidsym (gensym))) `(let ((,oldidsym (geteuid))) (seteuid 0) (unwind-protect (progn , at body) (seteuid ,oldidsym))))) Is there an easy way to ...
    Apr 9, 2003 at 6:58 pm
    Apr 13, 2003 at 7:05 am
  • OK, I don't want to resurrect another interminable discourse in ints, floats, and how they are/ought/can be handled in the language. But, I have a sort of theoretical mathematical question which the ...
    Tim DaneliukTim Daneliuk
    Apr 7, 2003 at 10:03 pm
    Apr 13, 2003 at 3:13 am
  • I would like to request that Python support multi-line comments (e.g. /* */ in C).
    Apr 1, 2003 at 8:14 am
    Apr 3, 2003 at 2:18 pm
  • The need for the following function just cropped up in a parser I'm writing; it seems sufficiently general to perhaps be a candidate for itertools -- and I can't see any way of implementing it with ...
    Magnus Lie HetlandMagnus Lie Hetland
    Apr 26, 2003 at 5:34 pm
    May 1, 2003 at 6:54 pm
  • To send mails from Python here's the example my provider provides: This http://faq.puretec.de/skripte/python/3.html The relevant lines are these: sendmail = os.popen("/usr/lib/sendmail -t", "w") ...
    Martin BlessMartin Bless
    Apr 10, 2003 at 8:57 pm
    Apr 13, 2003 at 8:47 pm
  • Hi, I built a small script that use the xover function in the nntplib module. The problem that I came across is that what xover can return a huge tuple when there is 1000s of article in a ...
    David SfiligoiDavid Sfiligoi
    Apr 2, 2003 at 4:52 am
    Apr 13, 2003 at 1:12 am
  • string.split() takes a delimiter and works fine as long as the delimiter isn't part of the data fields. But frequently they are. e.g. 'John Doe,135 South Main St.,#122, Springfield, Iowa' or ' so ...
    Apr 3, 2003 at 11:30 pm
    Apr 22, 2003 at 11:54 am
  • hi all - ive just started with python (after having done java and c) and am having a little bit of trouble with the script. Im using as a login script. There's a users.dat file in the format user1 ...
    Psybar PhreakPsybar Phreak
    Apr 30, 2003 at 6:00 am
    Jul 28, 2003 at 8:21 pm
  • I _know_ there's a decent algorithm to solve the following problem, but I don't recall its name and thus can't rapidly google for the details... can somebody help? The problem: I need to design a ...
    Alex MartelliAlex Martelli
    Apr 10, 2003 at 1:13 pm
    Jun 1, 2003 at 1:57 am
  • Given this class: class Holder(tuple): def __init__(self, *values): tuple.__init__(self, values) When I try to create an instance: Holder(1, 2) I get: TypeError: tuple() takes at most 1 argument (2 ...
    John WilsonJohn Wilson
    Apr 29, 2003 at 3:55 pm
    Apr 30, 2003 at 5:14 pm
  • Any suggestions of the shortest path from a Python program to RTF output? RTF seems to be the best (reasonable combination of features and compatability) common denominator for exporting data so that ...
    Apr 25, 2003 at 6:24 pm
    Apr 29, 2003 at 3:27 am
  • I want a simple test to see if str contains any occurences of substr. I am currently using this: import string if string.find(str,substr) + 1: ...do something... But it somehow looks "ugly" to me. Is ...
    Frantisek FukaFrantisek Fuka
    Apr 23, 2003 at 1:44 pm
    Apr 24, 2003 at 9:55 am
  • Question: Does standard Python have case-insensitive string comparison and search? Avner.
    Avner BenAvner Ben
    Apr 14, 2003 at 7:19 pm
    Apr 16, 2003 at 12:25 pm
  • I'm new on this, please bear with we. Let's say I have this script: -------------------------- #!/usr/bin/env python x = 'Hello Python' print x, -------------------------- How can I compile this ...
    Apr 2, 2003 at 6:40 pm
    Apr 8, 2003 at 2:14 pm
  • I have come across a weirdness. I have a number of floats, (lat long pairs) which I stuff into a dict, but when I take them out, my nice %2f4 number, (say, 47.5894) is something long and *almost* ...
    Jim RichardsonJim Richardson
    Apr 25, 2003 at 2:14 am
    Apr 28, 2003 at 4:39 am
  • Hello, all. I made an application which uses 4DOM. I have a big (~10M) autogenerated HTML file from an Oracle tool. The problem is to public it. Nobody want to open 10MB HTML file in their browser. ...
    Bo M. MaryniuckBo M. Maryniuck
    Apr 24, 2003 at 12:06 pm
    Apr 26, 2003 at 1:09 am
  • Does anyone know the reason for not allowing an overload of the and operator? (of course, the only use case I've seen is the one above [thrice, first time in 97] and alternate logical calculi [e.g. ...
    Bjorn PettersenBjorn Pettersen
    Apr 22, 2003 at 2:52 pm
    Apr 25, 2003 at 2:28 pm
  • OK. I know this is a common question, and I know the answer is basically "it's not as easy as you think" :-) But I'm confused as to what I need to do to get a Unicode string to print on the console ...
    Paul MoorePaul Moore
    Apr 14, 2003 at 3:44 pm
    Apr 24, 2003 at 4:23 pm
  • Too many times now I have seen the term "pythonic" used to vaguely describe something which is never explicitly defined, as if it cannot be. Now it seems I can just replace "pythonic" with "my idea ...
    Apr 17, 2003 at 8:00 am
    Apr 22, 2003 at 9:21 am
Group Navigation
period‹ prev | Apr 2003 | next ›
Group Overview
grouppython-list @

1,023 user for April 2003

Alex Martelli: 241 posts Peter Hansen: 139 posts Steven Taschuk: 115 posts Erik Max Francis: 98 posts Greg Ewing (using news.cis.dfn.de): 94 posts Jp Calderone: 81 posts Martin v. Löwis: 79 posts Aahz: 76 posts Skip Montanaro: 73 posts Gerhard Häring: 69 posts WP: 61 posts Robin Munn: 60 posts Michael Hudson: 59 posts Duncan Booth: 57 posts Steve Holden: 53 posts Alexander Schmolck: 46 posts Ian Bicking: 46 posts Terry Reedy: 43 posts Bengt Richter: 42 posts Cameron Laird: 38 posts
show more