Search Discussions

834 discussions - 3,821 posts

  • I agree that magic is bad, but I disagree that the magically inserted first argument on *some* function calls is less than the magic of setting the current instance to a global variable __self__. ...
    David MacQuiggDavid MacQuigg
    May 1, 2004 at 11:14 pm
    Jun 1, 2004 at 3:52 pm
  • Some questions from a curious monkey. All tuple methods are also list methods, and most list methods are also tuple methods; among those that are NOT also tuple methods, there are exactly two ...
    Elaine JacksonElaine Jackson
    May 21, 2004 at 2:49 am
    Jun 2, 2004 at 12:07 am
  • Hello , What is the python way of doing this : perl -pi -e 's/string1/string2/' file ? Thanks Olivier
    Olivier ScalbertOlivier Scalbert
    May 9, 2004 at 7:30 pm
    May 21, 2004 at 7:07 pm
  • Is anyone working on a python-to-native compiler? I'd be interested in taking a look. Come to think of it, is anyone working on a sexpr-enabled version of Python, or anything similar? I really miss ...
    Svein Ove AasSvein Ove Aas
    May 17, 2004 at 9:49 pm
    May 24, 2004 at 1:01 pm
  • There is a new release of Prothon that I think is worth mentioning here. Prothon version 0.1.0 has changed almost beyond recognition compared to what was discussed here before. For example: the ...
    Mark HahnMark Hahn
    May 23, 2004 at 1:43 am
    May 27, 2004 at 3:06 pm
  • I see the value of a class when two or more instances will be created, but Python programmers regularly use a class when there will only be one instance. What is the benefit of this? It has a ...
    May 26, 2004 at 12:43 am
    Jun 2, 2004 at 10:22 pm
  • Well to test things out I wrote the following: class Int: def __init__(self, v): self.value = v def __add__(self, term): return Int(self.value + term.value) def __iadd__(self, term): self.value += ...
    Antoon PardonAntoon Pardon
    May 6, 2004 at 2:24 pm
    May 20, 2004 at 5:12 am
  • Hi, I've the following problem with try/exception. I've a try block that will raise some exceptions. I want the program to ignore this exceptions completely. Is it possible? Thanks in advance ...
    Zunbeltz IzaolaZunbeltz Izaola
    May 31, 2004 at 11:53 am
    Jun 11, 2004 at 4:33 am
  • On behalf of the Python development team and the Python community, I'm happy to announce the release of Python 2.3.4 (release candidate 1). Python 2.3.4 is a bug-fix release. See the release notes at ...
    Anthony BaxterAnthony Baxter
    May 13, 2004 at 1:48 pm
    May 17, 2004 at 7:12 pm
  • Hi, I'm trying to use microthreads under stackless python, since they sound like exactly what I am after, but I am having very little success. I've got a fresh install of python 2.3.3 from ...
    Matt LeslieMatt Leslie
    May 13, 2004 at 9:57 pm
    May 27, 2004 at 10:01 pm
  • I've been wondering how we can improve the quality of the Python documentation. The problem with the Python documentation is that it is not being handled like an open source product. The hallmark of ...
    Stephen FergStephen Ferg
    May 4, 2004 at 11:54 pm
    May 7, 2004 at 2:57 pm
  • Greetings, I am pretty new to Python and like it very much, but there is one thing I can't figure out and I couldn't really find anything in the docs that addresses this. Say I want to write an ...
    May 6, 2004 at 10:12 am
    May 18, 2004 at 10:57 am
  • I think that in this case, Python is demonstrably better than Prothon. C:\temp\prothon\Prothon python ActivePython 2.3.2 Build 232 (ActiveState Corp.) based on Python 2.3.2 (#49, Nov 13 2003, ...
    Paul PrescodPaul Prescod
    May 24, 2004 at 5:58 pm
    May 30, 2004 at 11:23 am
  • What's the standard way to implement polymorphic behavior in a python method, given that method arguments can't declare their types as they're being passed in, and method definitions don't have ...
    May 6, 2004 at 7:28 pm
    May 11, 2004 at 3:17 pm
  • I'm a bit confused by the behavior of the following code: import math import myModule class Klass(object): def doOperation(self, x, y): return self.operator(x, y) class KlassMath(Klass): operator = ...
    A B CarterA B Carter
    May 3, 2004 at 6:57 am
    May 26, 2004 at 3:31 am
  • Hi, Just to let you all know that there is a new version of SPE being developped with a much faster class/index/todo browser (can be even realtime!), wxPython 2.5 support, simultaneous view of source ...
    May 1, 2004 at 10:06 pm
    May 10, 2004 at 5:05 pm
  • i don't understand why the ANSI const keyword is never used in the API. eg PyArg_ParseTuple( PyObject *args, char *format, ...) should be PyArg_ParseTuple( PyObject *args, const char *format, ...) or ...
    Benoît DejeanBenoît Dejean
    May 30, 2004 at 10:51 am
    Jun 12, 2004 at 9:59 am
  • I skimmed the tutorial and something alarmed me. "Strings are a powerful data type in Prothon. Unlike many languages, they can be of unlimited size (constrained only by memory size) and can hold any ...
    Paul PrescodPaul Prescod
    May 24, 2004 at 5:46 pm
    May 26, 2004 at 7:51 pm
  • I'd appreciate any suggestions on how to make faster Python implementations of Richards benchmark. Perhaps there are obvious problems that can be corrected? http://www.lissett.com/ben/bench1.htm
    Duncan LissettDuncan Lissett
    May 13, 2004 at 6:11 am
    May 17, 2004 at 12:53 am
  • Just thought I'd play devil's advocate... I tried wxPython briefly, and it had some nice features. It has a huge list of dependencies. I don't like the fonts (but I'd love to know how to get fixed ...
    May 8, 2004 at 7:40 pm
    May 11, 2004 at 9:38 am
  • PEP 328 (``import`` changes) has been updated and is available at http://www.python.org/peps/pep-0328.html Comments on the revised version are welcome. One area where feedback is particularly desired ...
    May 2, 2004 at 7:20 pm
    May 10, 2004 at 2:45 pm
  • Hi, recently i tried this: ActivePython 2.3.2 Build 232 '\\' File "<stdin ", line 1 r'\' ^ SyntaxError: EOL while scanning single-quoted string Is this a known issue? Should i submit a bug report to ...
    Konstantin VeretennicovKonstantin Veretennicov
    May 24, 2004 at 2:35 pm
    Jun 7, 2004 at 2:12 pm
  • Perhaps I'm doing something wrong: the struct module docs say it's IEE 754, but I can't figure out how to get it to handle NaN values correctly (either packing or unpacking). Traceback (most recent ...
    Grant EdwardsGrant Edwards
    May 13, 2004 at 7:44 pm
    May 14, 2004 at 3:58 am
  • "Bart Nessux" <bart_nessux at hotmail.com wrote in message news:c6unuq$d0f$1 at solaris.cc.vt.edu... If you do 24 trials, one for each permutation, the result would be about as fair and balanced as ...
    Terry ReedyTerry Reedy
    May 1, 2004 at 12:40 am
    May 4, 2004 at 4:26 pm
  • Hello, Many times I find myself asking for a slice of a specific length, and writing something like l[12345:12345+10]. This happens both in interactive use and when writing Python programs, where I ...
    Noam RaphaelNoam Raphael
    May 21, 2004 at 2:31 pm
    May 26, 2004 at 9:30 pm
  • Hello, I'm quite new to Python, and since a not-so-superficial look into the docs didn't answer my question (although it still feels quite basic), I decided to turn to this place: Is there a way to ...
    Daniel KleinDaniel Klein
    May 17, 2004 at 6:58 pm
    May 21, 2004 at 3:40 pm
  • I've trolled the lists, FAQs, and Net as a whole, but can't find anything definitive to answer this. We're looking for real-time graph capability (bar, line, etc), so that we can display telemetry ...
    May 12, 2004 at 3:22 pm
    May 15, 2004 at 4:50 am
  • (Don't mind me, my frequent late night "I should be sleeping by now" brainstorm) A python smiling, its body curled in the background, 1's and 0's visible in its body visibly grouped in fours, and ...
    Christos TZOTZIOY GeorgiouChristos TZOTZIOY Georgiou
    May 11, 2004 at 1:08 pm
    May 12, 2004 at 1:39 pm
  • Is python good for creating Web application? I do like the OOness of Python, as a newbie, I'm trying to find out if Python has all its necessary modules/utilities for Web programming just as ...
    Sarah TanembaumSarah Tanembaum
    May 5, 2004 at 3:49 pm
    May 8, 2004 at 6:35 pm
  • Hi. I'm using the Cookie module (on the client side). I have found a problem trying to parse the cookie: "Set-Cookie: value=thevalue; path=/; expires=Fri, 21-May-2004 10:40:51 GMT" The date is not ...
    Manlio PerilloManlio Perillo
    May 22, 2004 at 7:51 pm
    Jun 4, 2004 at 9:11 am
  • Hello, I'm getting an error join-ing strings and wonder if someone can explain why the function is behaving this way? If I .join in a string that contains a high character then I get an ascii codec ...
    Jim HefferonJim Hefferon
    May 20, 2004 at 3:38 pm
    May 24, 2004 at 5:57 am
  • Hi. I'm a new user of Python but I have noted a little problem. Python is a very good language but it is evolving, in particular its library is evolving. This can be a problem when, ad example, a ...
    Manlio PerilloManlio Perillo
    May 13, 2004 at 7:46 am
    May 19, 2004 at 3:48 pm
  • Hi, I have some data files with lines in space-delimited <name <value format. There are multiple name-value pairs per line. Is there a cleaner idiom than the following for reading each line into an ...
    Michael EllisMichael Ellis
    May 26, 2004 at 1:39 am
    May 27, 2004 at 9:11 am
  • Hi, newbie question: PyPgSQL (postgres driver) returns a list (not a tuple O'Rielly states DBAPI returns a tuple) and most of the books describe how to work with tuples and dictionaries when working ...
    John fabianiJohn fabiani
    May 17, 2004 at 3:24 pm
    May 18, 2004 at 2:57 pm
  • Can anybody recommend a good book on wxPython? Are there any books on wxPython? I've been trying to learn wxPython and/or wax for a few weeks, and I'm just not getting it. [I wrote and shipped one ...
    Grant EdwardsGrant Edwards
    May 15, 2004 at 3:32 am
    May 17, 2004 at 2:41 pm
  • Hi Ed and Paul, I've seen your announcement on comp.lang.* Findind ex-vfpers working on python is nice, on wxpython. This is a superb piece of news! I was in Europython last year but found not one ...
    Francois lepoutreFrancois lepoutre
    May 12, 2004 at 3:27 pm
    May 14, 2004 at 2:07 pm
  • I'm considering changing a Python program of mine, that uses MySQL as it's db backend, to use SQLite. I'm mostly wanting something that can make my program a complete package without requiring the ...
    May 5, 2004 at 7:01 pm
    May 7, 2004 at 4:54 pm
  • As a realtive python newb, but an old hack in general, I've been interested in the impact of having string objects (and other primitives) be immutable. It seems to me that string concatenation is a ...
    Oliver CrowOliver Crow
    May 2, 2004 at 12:43 am
    May 6, 2004 at 6:49 am
  • Could someone point me to documentation on this (and similar) signs used in Python: += Usage would be: x = += len(y) Literally, that's "variable x equals 'funky-symbol-that-I-want-to-learn-about' the ...
    Bart NessuxBart Nessux
    May 20, 2004 at 3:26 pm
    May 25, 2004 at 8:29 am
  • Hi, I have two files and the array that contains 20 words in it. I'm trying to write python script that suppose achieve the following: -Open file-1, read the line that contains 20 words separated ...
    May 14, 2004 at 12:21 pm
    May 17, 2004 at 9:24 pm
  • Hi all Have got a big problem. This is my code: -----BEGIN #stale programowe G = 6.67E-11 Mz = 6E+24 Rz = 6.37E+6 TX = range(10,780,2) TY = [] def skoknatezenia(ilpkt): "Oblicza skok" dr = ...
    Krzysztof SzynterKrzysztof Szynter
    May 14, 2004 at 1:46 pm
    May 14, 2004 at 6:23 pm
  • Ditto. I learned from the tutorial and DejaNews. I bought _Programming Python_, because I liked _Programming Perl_ so much, but I haven't had much use for it. I'm evaluating _Learning Python_ as a ...
    Jon WillekeJon Willeke
    May 2, 2004 at 2:31 am
    May 10, 2004 at 1:44 pm
  • I'm a newbie at this but I need to control MSIE6 using Python. I have read the O'Reilly win32 python books and got some hints. But I need to Navigate to a site (which I know how to do) and then I ...
    Ralph A. GableRalph A. Gable
    May 24, 2004 at 1:44 am
    Jun 10, 2004 at 9:41 pm
  • Hello All, I'm looking for a way to "yield" an exception. Background: I'm writing a hardware simulator. I have an output buffer and need to freeze when it's full and then when called again to resume ...
    Miki TebekaMiki Tebeka
    May 20, 2004 at 12:55 pm
    May 24, 2004 at 6:47 am
  • I've spent a lot of time using python, and personally, I feel like it is vastly superior when compared to languages like java, and c++, but there are still a few things that detract from its elegance ...
    Ryan PaulRyan Paul
    May 12, 2004 at 8:40 pm
    May 14, 2004 at 3:54 pm
  • Hello, Trying to change a string(x,y values) such as : s = "114320,69808 114272,69920 113568,71600 113328,72272" into (x,-y): out = "114320,-69808 114272,-69920 113568,-71600 113328,-72272" I tried ...
    Guy RobinsonGuy Robinson
    May 10, 2004 at 12:32 am
    May 13, 2004 at 6:14 pm
  • Ick. Don't deprecate lambda. I know Guido is hot to do so, and believes it a mistake to have in the first place, but is it really hurting anyone? Sure, those who don't know how to use them, but the ...
    Josiah CarlsonJosiah Carlson
    May 5, 2004 at 3:47 pm
    May 13, 2004 at 1:28 am
  • 11

    why i

    i never got this its always in my tutial bookfor i in range(...)
    May 24, 2004 at 10:10 pm
    May 28, 2004 at 4:55 am
  • Does anyone know how to display the current directory using DOS and/or Python? I already tried os.pardir and os.curdir in Python, but all they return are a couple of periods... . ..
    May 26, 2004 at 9:17 pm
    May 27, 2004 at 7:46 am
  • Hi, I want to iterate over all 2x2 matrices with elements in range 0..25 (crypto-stuff). To produce them, first I wrote a fourfold nested for loop: M& for a in range(M): for b in range (M): for c in ...
    Wolfgang BuechelWolfgang Buechel
    May 10, 2004 at 9:30 pm
    May 24, 2004 at 8:57 am
Group Navigation
period‹ prev | May 2004 | next ›
Group Overview
grouppython-list @

940 users for May 2004

Peter Hansen: 137 posts Peter Otten: 79 posts David MacQuigg: 74 posts Tertius: 69 posts Washu: 53 posts Terry Reedy: 51 posts Greg Ewing: 48 posts Grant Edwards: 41 posts John Roth: 38 posts Larry Bates: 36 posts Aahz: 35 posts Andrew Bennetts: 32 posts Antoon Pardon: 32 posts Jeff Epler: 30 posts Ryan Paul: 30 posts Skip Montanaro: 30 posts Roger Binns: 29 posts SeeBelow: 29 posts Arthur: 28 posts David Stockwell: 28 posts
show more