Re: Xah's Edu Corner: Examples of Quality Technical Writing

2005-12-07 Thread Gerald Klix
That's the most accurate description of Xah's behaviour I've read so far. Jon Perez schrieb: Sherm Pendley wrote: Xah's a pretty well-known troll in these parts. I suppose he thinks someone is going to take the bait and rush to defend the other languages or some such nonsense. Actually,

Re: Documentation suggestions

2005-12-07 Thread Fredrik Lundh
Ian Bicking wrote: I've proposed adding support for semi-automatic linking to external documents, based on a simple tagging model, a couple of times, e.g. http://mail.python.org/pipermail/python-list/2005-May/280751.html

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-07 Thread Antoon Pardon
Op 2005-12-06, [EMAIL PROTECTED] schreef [EMAIL PROTECTED]: Just because a few people dislike something, doesn't make it a defect. Actually, it does. Unless you're in the business of building security systems. Then the goals are reversed. I can accept that you like scope by indent and

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-07 Thread Antoon Pardon
Op 2005-12-06, Ben Sizer schreef [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: Just because a few people dislike something, doesn't make it a defect. Actually, it does. Whose definition of defect are we using? And how small a sample population are we going to require in order to find a

Re: Bitching about the documentation...

2005-12-07 Thread Steve Holden
François Pinard wrote: [A.M. Kuchling] On Tue, 6 Dec 2005 00:05:38 -0500, François Pinard [EMAIL PROTECTED] wrote: It's a relatively recent phenomenon that maintainers go berzerk, foaming at the mouth over forms, borders, colors, and various other mania! :-) It's largely to

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-07 Thread Paul Rubin
Antoon Pardon [EMAIL PROTECTED] writes: But lately I have been wondering about doing the following: end = None ... if ...: ... end IMO it looks better, but I'm reluctant because it suggest some checking by the compilor, which just doesn't happen. I don't think you can always do

Re: Force Focus in Tkinter

2005-12-07 Thread Steve Holden
annagel wrote: Thanks for the reply and as it turns out no I don't think I really do want to do this. I started working with tkinter after banging my head against the wall for a while with wxwindows so the whole thing ended up being a last minute change so I am trying to get most at least of

Re: Documentation suggestions

2005-12-07 Thread Fredrik Lundh
A.M. Kuchling wrote: I've proposed adding support for semi-automatic linking to external documents, based on a simple tagging model, a couple of times, e.g. http://mail.python.org/pipermail/python-list/2005-May/280751.html Very interesting. There could be a manually-maintained list

Re: Documentation suggestions

2005-12-07 Thread Steve Holden
BartlebyScrivener wrote: You are correct about the tutorial. Just try to look at the home page through the eyes of a curious Windows user who wants to learn programming and is trying to decide whether to take up Perl, Ruby, Python, or Visual Basic, let's say. On the home page, the first

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-07 Thread Christophe
Paul Rubin a écrit : Antoon Pardon [EMAIL PROTECTED] writes: But lately I have been wondering about doing the following: end = None ... if ...: ... end IMO it looks better, but I'm reluctant because it suggest some checking by the compilor, which just doesn't happen. I don't think

Re: Need help on designing a project

2005-12-07 Thread Magnus Lycka
Mardy wrote: This works, but my problem is that SQL connections (MySQL or sqlite) don't get closed when the script execution finishes, and at the next execution of a CGI they may lock the database (this is especially true with sqlite, but even mysql on Windows gave me these problems). You

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-07 Thread Ben Sizer
Antoon Pardon wrote: Op 2005-12-06, Ben Sizer schreef [EMAIL PROTECTED]: Of course. However I would argue that indented scope is one way of doing so. Scope is instantly visible, and no longer a game of 'hunt the punctuation character, which is in a different place depending on the coder's

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-07 Thread Antoon Pardon
Op 2005-12-07, Paul Rubin schreef http: Antoon Pardon [EMAIL PROTECTED] writes: But lately I have been wondering about doing the following: end = None ... if ...: ... end IMO it looks better, but I'm reluctant because it suggest some checking by the compilor, which just doesn't

Re: windows installer problems

2005-12-07 Thread saxicek
Thanks for help, I tried to install ActivePerl and have the same problem so there's probably something wrong with the windows installer. Unfortunatelly I wasn't able to find out where is the problem from log file so I'll try to upgrade installer - the windows server installation is quite old and

Re: XML and namespaces

2005-12-07 Thread Fredrik Lundh
Alan Kennedy wrote: [Fredrik Lundh] but isn't libxml2dom just a binding for libxml2? as I mention above, I had libxml2 in mind when I wrote widely used, not the libxml2dom binding itself. No, libxml2dom is Paul Boddie's DOM API compatibility layer on top of the cpython bindings for

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-07 Thread Antoon Pardon
Op 2005-12-07, Ben Sizer schreef [EMAIL PROTECTED]: Antoon Pardon wrote: Op 2005-12-06, Ben Sizer schreef [EMAIL PROTECTED]: Of course. However I would argue that indented scope is one way of doing so. Scope is instantly visible, and no longer a game of 'hunt the punctuation character,

Re: dynamic variable referencing

2005-12-07 Thread bruno at modulix
Michael Williams wrote: I would RTM, but I'm not sure exactly what to look for. Basically, I need to be able to call a variable dynamically. Meaning something like the following: - I don't want to say OBJECT.VAR but rather OBJECT. (string) and have it

Re: what's wrong with lambda x : print x/60,x%60

2005-12-07 Thread Steven D'Aprano
On Tue, 06 Dec 2005 00:33:17 +0100, Fredrik Lundh wrote: Sybren Stuvel wrote: def somefunc(x): return x*5 How is that a multi-line function definition? but that's namespace pollution! if you do this, nobody will never ever be able to use the name somefunc again! won't somebody please

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-07 Thread Antoon Pardon
Op 2005-12-07, Christophe schreef [EMAIL PROTECTED]: Paul Rubin a écrit : Antoon Pardon [EMAIL PROTECTED] writes: But lately I have been wondering about doing the following: end = None ... if ...: ... end IMO it looks better, but I'm reluctant because it suggest some checking by the

Re: what's wrong with lambda x : print x/60,x%60

2005-12-07 Thread Sybren Stuvel
Steven D'Aprano enlightened us with: All joking aside, when I have names (temporary variables or scaffolding functions) that I need to initialise a module or data structure, but then outlive their usefulness, I del the name afterwards. Am I the only one? I don't do that. I tend to split up my

Re: Wrapping method calls with metaclasses

2005-12-07 Thread Lawrence Oluyede
Il 2005-12-07, Alex Martelli [EMAIL PROTECTED] ha scritto: I can't reproduce the infinite recursion you observe, by merging said recipe and your definition of class Test, w/Python 2.4.2 on Mac OS 10.4. It seemed that the problem arose because I was not using super() in a new style class based

Re: ANN: pygene - genetic algorithms package

2005-12-07 Thread aum
On Tue, 06 Dec 2005 22:44:39 -0800, Erik Max Francis wrote: Peter Hansen wrote: Okay, good, I already knew all that then, except perhaps that key word fixed. One thing I should say here is that pygene is a collection of inter-related classes for populations, organisms, gametes and genes.

Re: hash()

2005-12-07 Thread Steven D'Aprano
On Tue, 06 Dec 2005 15:44:07 +, John Marshall wrote: The goal is to be able to keep some meta-data for each file/directory of a directory hierarchy in a separate directory: one meta-data file per file/directory. So you are planning on shadowing the entire file system with a single

Re: what's wrong with lambda x : print x/60,x%60

2005-12-07 Thread Steven D'Aprano
On Mon, 05 Dec 2005 19:31:46 -0800, bonono wrote: Paul Rubin wrote: Why use temporary variables when all you have to do is make your expressions three lines long to avoid polluting the namespace? Indeed. I'd much rather say x = a + b + (c * d) + e than temp1 = a + b temp2 =

Re: Wrapping method calls with metaclasses

2005-12-07 Thread Lawrence Oluyede
Il 2005-12-07, Lawrence Oluyede [EMAIL PROTECTED] ha scritto: I don't get to fully work the metaclass anyway for other weird reasons (using super() I lose an attribute around?!) I'm gonna fix this. It was a bug of one of the super() in the chain. Still suffer from deep recursion limit error

Re: SNMPV3

2005-12-07 Thread Frithiof Andreas Jensen
Jacek Pop³awski [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Do you have any experience with Python in SNMPv3 area? SNMP suck per design and SNMPv3 suck even more by adding complexity to that design IMO. SNMPv2 sort of works well within the limits of the design of SNMP, so that is

Re: Wrapping method calls with metaclasses

2005-12-07 Thread Peter Otten
Lawrence Oluyede wrote: look in TestChild's __init__(). Not using super() fails with a File /home/rhymes/downloads/simple_logger.py, line 55, in __init__ Test.__init__(self, foo) File /home/rhymes/downloads/simple_logger.py, line 24, in _method returnval = getattr(self,'_H_%s' % 

Re: Bitching about the documentation...

2005-12-07 Thread Steven D'Aprano
On Mon, 05 Dec 2005 19:36:58 -0800, BartlebyScrivener wrote: Well, that might be asking a bit too much of the programmers, who perhaps don't exactly enjoy mucking about in the lowlands of English grammar and syntax. Oh come on now! For the kinds of minds who enjoy obfuscated C or Perl,

Re: Bitching about the documentation...

2005-12-07 Thread Fredrik Lundh
Steven D'Aprano wrote: Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo. Did you mean: Badger badger Badger badger badger badger Badger badger Mushroom! Mushroom! /F -- http://mail.python.org/mailman/listinfo/python-list

ElementTree - Why not part of the core?

2005-12-07 Thread doug . bromley
Why is the ElementTree API not a part of the Python core? I've recently been developing a script for accessing the Miva API only to find all the core API's provided by Python for parsing XML is messy and complicated. Many of the examples I see for parsing the data using these API's uses a similar

Re: what's wrong with lambda x : print x/60,x%60

2005-12-07 Thread Steve Holden
Steven D'Aprano wrote: [...] All joking aside, when I have names (temporary variables or scaffolding functions) that I need to initialise a module or data structure, but then outlive their usefulness, I del the name afterwards. Am I the only one? I can't say I've seen anyone else doing that,

Re: Bitching about the documentation...

2005-12-07 Thread Steven D'Aprano
On Mon, 05 Dec 2005 21:05:46 -0800, rurpy wrote: If one is required to buy a book to use free software, One is *not* required to buy a book to use free software. It isn't compulsory. it is not really free, is it? What part of you may use this FREE software for FREE is too difficult for you

Re: Python riddle

2005-12-07 Thread Steven D'Aprano
On Mon, 05 Dec 2005 22:58:42 -0800, Dan Bishop wrote: class CapOutput: ...def __init__(self, fileobj): ... self._file = fileobj ...def write(self, text): ... self._file.write(text.capitalize()) ... sys.stdout = CapOutput(sys.stdout) print 'why?' Why? That's ...

Re: Calculating Elapsed Time

2005-12-07 Thread malv
Note that even though the time is always returned as a floating point number, not all systems provide time with a better precision than 1 second. says the doc. Can anything be said about precision if indeed your system returns figures after the decimal point? Thx. malv --

Re: what's wrong with lambda x : print x/60,x%60

2005-12-07 Thread Paul Rubin
Steve Holden [EMAIL PROTECTED] writes: All joking aside, when I have names (temporary variables or scaffolding functions) that I need to initialise a module or data structure, but then outlive their usefulness, I del the name afterwards. Am I the only one? I can't say I've seen anyone else

A more dynamic Python Library Reference index

2005-12-07 Thread Skip Montanaro
I broke down and wrote a dynamic global module index for the Python library reference manual last night using Myghty. It's something I've wanted for quite awhile and as I'm just learning to use Myghty I thought it would be a good tool to experiment with (better I think than Moin, which was my

zipfile and soft links

2005-12-07 Thread Jim
Hello, I'm trying to unzip archives that have soft links in them (that is, were created on unix with a -y option). I'm not finding that ZipFile will do that. That I can see, it creates the link file, and that file has the right contents, but it is not a soft link in the directory structure.

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-07 Thread Steven D'Aprano
On Mon, 05 Dec 2005 05:16:04 -0800, JohnBMudd wrote: From The Design of Everyday Things, docs are a sign of poor design. Even a single word, such as the word Push on the face of a door, is an indication that the design can be improved. I find it ironic that you are using a book that documents

Re: Documentation suggestions

2005-12-07 Thread skip
Adam I don't expect everything to make the transition. Are discussions Adam of atoms and fragments of BNF really better than calling them Adam expressions and linking to CPython's Grammar file? Actually, yes. The actual Grammar file isn't designed for explanation (mostly it's more

Re: Bitching about the documentation...

2005-12-07 Thread skip
This is why things need to go into public trackers, or wiki pages. François Whatever means the maintainer wants to fill his preservation François needs, he is free to use them. The problem arises when the François maintainer wants imposing his own work methods on others.

Re: Documentation suggestions

2005-12-07 Thread Iain King
The library reference has so many modules that the table of contents is very large. Again, not really a problem that we can fix; splitting it up into separate manuals doesn't seem like it would help. I like the Global Module Index in general - it allows quick access to exactly what I want. I

Re: Bitching about the documentation...

2005-12-07 Thread Simon Brunning
On 12/7/05, Steven D'Aprano [EMAIL PROTECTED] wrote: But none of them are the cost of Python, which is free. It really isn't a scam, nobody is going to come knocking at your door with a surprise bill for using Python. Well, there is the PSU's Spanish Inquisition division. Last week they barged

Re: Documentation suggestions

2005-12-07 Thread skip
The library reference has so many modules that the table of contents is very large. Again, not really a problem that we can fix; splitting it up into separate manuals doesn't seem like it would help. Iain I like the Global Module Index in general - it allows quick access

Re: option argument length

2005-12-07 Thread Ritesh Raj Sarraf
On Tue, 6 Dec 2005, Peter Otten wrote: Ritesh Raj Sarraf wrote: I'm using this for option arguments which are mutually inclusive. But I want the user to pass atleast one option argument for the program to function properly. For example, I have an option --fetch-update which requires a file

Re: ElementTree - Why not part of the core?

2005-12-07 Thread jelle
Doug, I agree with you, ElementTree is fast pythonic. Certainly does make sense to me. -- http://mail.python.org/mailman/listinfo/python-list

Re: Documentation suggestions

2005-12-07 Thread Iain King
[EMAIL PROTECTED] wrote: The library reference has so many modules that the table of contents is very large. Again, not really a problem that we can fix; splitting it up into separate manuals doesn't seem like it would help. Iain I like the Global Module Index in

Re: what's wrong with lambda x : print x/60,x%60

2005-12-07 Thread Dan Sommers
On 07 Dec 2005 03:25:53 -0800, Paul Rubin http://[EMAIL PROTECTED] wrote: Steve Holden [EMAIL PROTECTED] writes: All joking aside, when I have names (temporary variables or scaffolding functions) that I need to initialise a module or data structure, but then outlive their usefulness, I

Re: shelve seg error

2005-12-07 Thread Philippe C. Martin
OK, Thanks On Tue, 06 Dec 2005 15:41:08 +0100, Fredrik Lundh wrote: Philippe C. Martin wrote: Can I ask anydb which db it's using ? the page says If the database file already exists, the whichdb module is used to determine its type and the appropriate module is used; if it

Re: Usenet falsehoods (was Re: Bitching about the documentation...)

2005-12-07 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: Real people have real names. Using your real name on the net makes you less virtual to the people you communicate with. on the other hand, http://www.python.org/doc/Humor.html#timbot2 /F -- http://mail.python.org/mailman/listinfo/python-list

Re: Bitching about the documentation...

2005-12-07 Thread Jon Perez
Tony Meyer wrote: This makes no sense. If you want to complain about Python, try a Perl list. Why would a list dedicated to discussion about/help with a language need complaints about the language? Huh?!? Usually people complain because they need help or feel that things can be

Re: Documentation suggestions

2005-12-07 Thread Adam Olsen
On 12/7/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Adam I don't expect everything to make the transition. Are discussions Adam of atoms and fragments of BNF really better than calling them Adam expressions and linking to CPython's Grammar file? Actually, yes. The actual

Re: Documentation suggestions

2005-12-07 Thread skip
Iain Well, the point of the GMI is to lookup whatever module you are Iain currently having to use for the first time (at least it is for Iain me). Giving easy access to the modules I've already had to look Iain up (because they are common) doesn't really help - I've already

Re: Documentation suggestions

2005-12-07 Thread skip
Adam Having a large and detailed language specification, although an Adam admirable ideal, is a waste of time when the target audience is Adam perhaps a few dozen people. Just because that audience is small doesn't mean they are unimportant. There are currently four actively

Re: Documentation suggestions

2005-12-07 Thread Iain King
[EMAIL PROTECTED] wrote: Iain Well, the point of the GMI is to lookup whatever module you are Iain currently having to use for the first time (at least it is for Iain me). Giving easy access to the modules I've already had to look Iain up (because they are common) doesn't really

Re: Eclipse best/good or bad IDE for Python?

2005-12-07 Thread jmdeschamps
malv wrote: This is probably a fair answer. My experience: Two years ago I started with Boa till I discovered eric. I have been with eric ever since. Eric uses Qt as GUI. I think both Qt and wx enable you to do pretty much the same thing. I like the work F.Lundh did on Tkinter, but every

Re: Documentation suggestions

2005-12-07 Thread Adam Olsen
On 12/7/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Adam Having a large and detailed language specification, although an Adam admirable ideal, is a waste of time when the target audience is Adam perhaps a few dozen people. Just because that audience is small doesn't mean they

Re: dynamic variable referencing

2005-12-07 Thread Michael Williams
Bruno,Thanks, but the whole reason I need it is to create objects in the tree on the fly.  Every implementation I've seen of Element tree manually assigns values to the nodes and manually places them.  All I care about is that any tags they have are in my list of "valid_tags".  Otherwise they can

Re: python: how to get an executable archive?

2005-12-07 Thread Fredrik Lundh
giangiammy wrote: I'm starting to approch python: I find it a powerful language, but, I'd like to get, ad result of my program, something containing every python lib necessary to run (on linux systems): i.e.: my application should be bounbled with the python interpreter and the needed

movie module

2005-12-07 Thread giangiammy
hi all, tryng python with pygame, I get the followinf error: faberdanaio.py:28: RuntimeWarning: use movie: No module named movie animation = pygame.movie.Movie(images/film.mpeg) Traceback (most recent call last): File faberdanaio.py, line 28, in ? animation =

uuDecode problem

2005-12-07 Thread py
Hi, I am encoding a string such as... [code] data = someFile.readlines() encoded = [] for line in data: encoded.append(binascii.b2a_uu(stringToEncode)) return encoded [/code] ...I then try to decode this by... [code] def decode(data): result = [] for val in data:

What is the difference

2005-12-07 Thread enas khalil
hello i want to know what the iterator type differs from list type also if youplease advice me a tutorial on how to use Unicode and different string methods as encode ,decodethanks Yahoo! Personals Single? There's someone we'd like you to meet. Lots of someones, actually. Yahoo!

Question about start using ZServerSSL on win box...

2005-12-07 Thread Thomas G. Apostolou
Hello all, Dear Ng Pheng Siong, thank you for your great job with M2Crypto. I have got and build 0.15 version on a win xp box recently and was reading your ZServerSSL HOWTO document so that i can start using https, xmlprc-over-https etc. I have to tell that i have installed from Plone 2.0.5

question about extracting value from a string

2005-12-07 Thread nephish
hey there, i have looked at the string module and re. i was looking for advice on what would be the best way to pull a value out of a small string. for example, i have a string $.+.09 JAR and all i want out of it is the +.09 likewise, i have $-.04 TIN kt and all i want is the -.04 what

Re: Bitching about the documentation...

2005-12-07 Thread Christopher Subich
Fredrik Lundh wrote: Steven D'Aprano wrote: Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo. Did you mean: Badger badger Badger badger badger badger Badger badger Mushroom! Mushroom! Thank you, I really needed that stuck in my head. :) --

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-07 Thread Michael Schneider
[EMAIL PROTECTED] wrote: ,, info cut However there is one thing I don't like in python, that is, scoping by indentation. But it would not annoy me so much that make me decide to implement a new language^_^. Regards, Limin I find these comments interesting. It is very common for

Re: How to ping in Python?

2005-12-07 Thread Michael Schneider
I telnet to port 13 (returns time) Hope this is helpful, Mike Nico Grubert wrote: Hi there, I could not find any ping Class or Handler in python (2.3.5) to ping a machine. I just need to ping a machine to see if its answering. What's the best way to do it? Kind regards, Nico --

Re: ANN: pygene - genetic algorithms package

2005-12-07 Thread Peter Hansen
Erik Max Francis wrote: If you went into detail I could probably tell you whether or not what you're doing is obviously a genetic algorithm, or obviously an instance of genetic programming, or somewhere in between. Without internal structure it's probably more likely closer to genetic

Re: Bitching about the documentation...

2005-12-07 Thread Grant Edwards
On 2005-12-07, Steven D'Aprano [EMAIL PROTECTED] wrote: On Mon, 05 Dec 2005 19:36:58 -0800, BartlebyScrivener wrote: Well, that might be asking a bit too much of the programmers, who perhaps don't exactly enjoy mucking about in the lowlands of English grammar and syntax. Oh come on now! For

Re: Documentation suggestions

2005-12-07 Thread A.M. Kuchling
On Tue, 06 Dec 2005 10:29:33 -0800, Michael Spencer [EMAIL PROTECTED] wrote: not that helpful. Miscellaneous Services, in particular, gives no clue to treasures it contains. I would prefer, for example, to see the data structure modules: collections, heapq, array etc... given their

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-07 Thread Zeljko Vrba
On 2005-12-07, Antoon Pardon [EMAIL PROTECTED] wrote: What I don't understand is, that most people who have a problem with scope by indentation, want to introduce braces. I think braces are the worst solution. Braces are very convenient to match block start and end. Open a C program in the VI

Re: Force Focus in Tkinter

2005-12-07 Thread annagel
OK some sample Code. First from the module that I am importing. I won't post anything because the vast majority of stuff is way outside the scope of this problem and has to do with image and sound manipulation. First the imports I use: import sys import os import user import traceback import

Re: question about extracting value from a string

2005-12-07 Thread Alex Martelli
[EMAIL PROTECTED] wrote: hey there, i have looked at the string module and re. i was looking for advice on what would be the best way to pull a value out of a small string. for example, i have a string $.+.09 JAR and all i want out of it is the +.09 likewise, i have $-.04 TIN kt

Re: Calculating Elapsed Time

2005-12-07 Thread Peter Hansen
malv wrote: Note that even though the time is always returned as a floating point number, not all systems provide time with a better precision than 1 second. says the doc. Can anything be said about precision if indeed your system returns figures after the decimal point? A few things. 1.

Re: uuDecode problem

2005-12-07 Thread Alex Martelli
py [EMAIL PROTECTED] wrote: ... encoded.append(binascii.b2a_uu(stringToEncode)) binascii.b2a_uu only works for up to 45 bytes at once; but if you were feeding it more than 45 bytes, this should raise a binascii.Error itself. ..any idea why this is happening? Anyone successfully use the

Re: Bitching about the documentation...

2005-12-07 Thread Alex Martelli
Steven D'Aprano [EMAIL PROTECTED] wrote: On Mon, 05 Dec 2005 19:36:58 -0800, BartlebyScrivener wrote: Well, that might be asking a bit too much of the programmers, who perhaps don't exactly enjoy mucking about in the lowlands of English grammar and syntax. Oh come on now! For the

Re: Documentation suggestions

2005-12-07 Thread Steven Bethard
[EMAIL PROTECTED] wrote: Iain I like the Global Module Index in general - it allows quick access Iain to exactly what I want. I would like a minor change to it though Iain - stop words starting with a given letter rolling over to another Iain column (for example, os.path is at

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-07 Thread Alex Martelli
Zeljko Vrba [EMAIL PROTECTED] wrote: On 2005-12-07, Antoon Pardon [EMAIL PROTECTED] wrote: What I don't understand is, that most people who have a problem with scope by indentation, want to introduce braces. I think braces are the worst solution. Braces are very convenient to match

Re: question about extracting value from a string

2005-12-07 Thread nephish
the second line was not a typo , and thanks for that. these values may vary somewhat over time. So i may have to rewrite this part of the script. a string is fine for right now, because it is just going to be pumped into a database. i can change it later if necessary. thanks for the help gents,

Re: XML and namespaces

2005-12-07 Thread Alan Kennedy
[Fredrik Lundh] It's libxml2 that does all the work, and the libxml2 authors claim that libxml2 implements the DOM level 2 document model, but with a different API. That statement is meaningless. The DOM is *only* an API, i.e. an interface. The opening statement on the W3C DOM page is What

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-07 Thread JohnBMudd
So... Python is already flexible. It supports use of (1) tabs, (2) space or (3) a mix of tabs and space to indicate scope. Some people think this is too flexible. It should be cut back to tabs or spaces. The fewer people comfortable with Python, the better. It's better to be right than

Re: How to ping in Python?

2005-12-07 Thread Laszlo Zsolt Nagy
Michael Schneider wrote: I telnet to port 13 (returns time) The problem is that most modern up-to-date servers use firewalls. They only open the ports that are absolutely necessary. Usually the time service is part of inetd, which is disabled by default, on most of the servers. PING ICMP may

Validate a xml file with DTD from python

2005-12-07 Thread Julio Alberto
Hi. I need a way to reach a goal like this in python 2.3:This is a informal way to said it: result=validateXmlWithDTD(XmlFilePath, DTDFilePath) #where result could be True,False or some exception I'm not interested in a one specific sintaxis or way to do this. I try to find a simple and

Re: How to ping in Python?

2005-12-07 Thread Michael Schneider
Les, I only ping internal machines. You are right about shutting down ports. When we disable telent, we also disable ping. Many people may not though, good luck, Mike Laszlo Zsolt Nagy wrote: Michael Schneider wrote: I telnet to port 13 (returns time) The problem is that most modern

Re: ElementTree - Why not part of the core?

2005-12-07 Thread Steven Bethard
[EMAIL PROTECTED] wrote: ElementTree on the other hand provides incredibly easy access to XML elements and works in a more Pythonic way. Why has the API not been included in the Python core? While I fully agree that ElementTree is far more Pythonic than the dom-based stuff in the core, this

Re: Calculating Elapsed Time

2005-12-07 Thread Jean Johnson
Thanks to everyone for their e-mails. I am using Fredrik's strptime/mktime solution to calculate my elapsed time. __ Yahoo! DSL – Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com --

Re: Documentation suggestions

2005-12-07 Thread Rocco Moretti
A.M. Kuchling wrote: There's another struggle within the LibRef: is it a reference or a tutorial? Does it list methods in alphabetical order so you can look them up, or does it list them in a pedagogically useful order? I think it has to be a reference; if each section were to be a

Re: XML and namespaces

2005-12-07 Thread Alan Kennedy
[Alan Kennedy] Don't confuse libxml2dom with libxml2. [Paul Boddie] Well, quite, but perhaps you can explain what I'm doing wrong with this low-level version of the previously specified code: Well, if your purpose is to make a point about minidom and DOM standards compliance in relation to

Re: question about extracting value from a string

2005-12-07 Thread Alex Martelli
[EMAIL PROTECTED] wrote: ... thanks for the help gents, i am going to just go with string functions, seems like it will be easier both to code now. and later if and when the format of this stuff may change. I agree -- to each day are sufficient the evils thereof. Many programmers fall into

Re: Calculating Elapsed Time

2005-12-07 Thread Fredrik Lundh
Peter Hansen wrote: Going by memory, Linux will generally be 1ms resolution (I might be off by 10 there...), while Windows XP has about 64 ticks per second, so .015625 resolution... here's a silly little script that measures the difference between two distinct return values, and reports the

Re: Ant (with Python extensions) good replacement for distutils?

2005-12-07 Thread Michael Schneider
I would vote against ant because java must be installed to run it. The bootstrap install should be very simple. If you make python usage dependent on: 1) download java 2) install java 3) add java to path 4) download ant 5) install ant 6) add ant to path 7) download ptyhon 8) install python 9)

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-07 Thread D H
[EMAIL PROTECTED] wrote: Some people like it just as it is. Don't change ANYTHING! search for NIMPY Some people (a lot of the ones that don't give Python a chance) want one more choice, braces. Is that so much to ask for? If you like curly brace style, there are always other scripting

Re: option argument length

2005-12-07 Thread Peter Otten
Ritesh Raj Sarraf wrote: parser.add_option(-d,--download-dir, dest=download_dir, help=Root directory path to save the downloaded files, action=store, type=string) parser.set_defaults(download_dir=foo) This can be simplified to parser.add_option(-d,

Re: Documentation suggestions

2005-12-07 Thread Aahz
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: OTOH, I find myself returning to the same module docs over and over again to look up function arguments, regular expression syntax, that sort of thing. Having to page down past dozens and dozens of modules I don't care about to click on sys

Re: Calculating Elapsed Time

2005-12-07 Thread Grant Edwards
On 2005-12-07, Peter Hansen [EMAIL PROTECTED] wrote: 2. If your system returns figures after the decimal point, it probably has better resolution than one second (go figure). Depending on what system it is, your best bet to determine why is to check the documentation for your system

Re: Documentation suggestions

2005-12-07 Thread A.M. Kuchling
On Wed, 7 Dec 2005 09:36:24 +0100, Fredrik Lundh [EMAIL PROTECTED] wrote: or just add a marker (in some for me unknown way), and postprocess the HTML files. I'm not sure the links does necessarily belong in e.g. PDF renderings of the documentation, but that's of course up to the

Re: uuDecode problem

2005-12-07 Thread py
Alex Martelli wrote: binascii.b2a_uu only works for up to 45 bytes at once; but if you were feeding it more than 45 bytes, this should raise a binascii.Error itself. Definitely not, given the above limit. But I still don't quite understand the exact mechanics of the error you're getting.

Re: Bitching about the documentation...

2005-12-07 Thread Jon Perez
[EMAIL PROTECTED] wrote: FWIW I find Python's docs to be OK at best, with some horrible parts, and a lot of mediochre to poor parts. I myself have no big beef about Python's docs, but you're certainly not the first one to complain about them. Xah Lee rants very heavily against the quality

Implementing deepcopy

2005-12-07 Thread Mr.Rech
Hi all, I'm writing a class with some attributes which deepcopy can't cope with, and I need some more clarifications. Sorry for my newbie questions, but I'm a newbie indeed (or a sort of). Suppose one of the attributes of my class is a dictionary whose values are callable functions, such as: def

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-07 Thread Sybren Stuvel
[EMAIL PROTECTED] enlightened us with: Some people (a lot of the ones that don't give Python a chance) want one more choice, braces. Is that so much to ask for? I say: use #{ and #} instead. If you want to have braces, what's wrong with if condition: #{ some statement other statement

Re: Unexpected behavior of read only attributes and super

2005-12-07 Thread Samuel M. Smith
On 06 Dec, 2005, at 20:53, Steven Bethard wrote: Samuel M. Smith wrote: The dict class has some read only attributes that generate an exception if I try to assign a value to them. I wanted to trap for this exception in a subclass using super but it doesn't happen. class SD(dict):

  1   2   3   >