Re: tuples vs lists

2005-01-10 Thread Gerrit
gt; > So, basically, say whatever you want. Language is about communication :-) Or just write it down and don't say the word at all (-: regards, Gerrit, who actually says tÃpel. -- Weather in Lulea / Kallax, Sweden 10/01 10:20: -12.0ÂC wind 0.0 m/s None (34 m above NAP) -- I

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Dec 2)

2004-12-02 Thread Gerrit
Cameron Laird wrote: > Subject: Dr. Dobb's Python-URL! - weekly Python news and links (Dec 2) What is the frequency of the weekly Python-URL? (-; regards, Gerrit Holl. -- Weather in Lulea / Kallax, Sweden 02/12 19:20: -8.0ÂC Scattered clouds mostly cloudy wind 0.9 m/s None (34

Re: Why are tuples immutable?

2004-12-14 Thread Gerrit
ot;foo %s bar %s" % "24" would do "24".__rmod__("foo %s bar %s") resulting in: >>> "24".__rmod__("foo %s bar %s") Traceback (most recent call last): File "", line 1, in ? TypeError: not enough arguments for format string Woul

Re: lies about OOP

2004-12-15 Thread Gerrit
binL9yPfo4Fv5.bin Description: application/pgp-encrypted msg.asc Description: Binary data -- http://mail.python.org/mailman/listinfo/python-list

Re: what module can do html encoder??

2004-12-13 Thread Gerrit
'&%s;' % htmlentitydefs.codepoint2name[n] else: return '&#%d;' % ord(s) This requires unicode strings, because unicode encodings have multi-byte characters. Demonstration: >>> f(u'Ã') 'ò' >>> f(u'Å') &

Re: Why are tuples immutable?

2004-12-14 Thread Gerrit
s been chosen like this? Or is it possible that this behaviour will change in Python 3000? let's-do-Duck-Typing!-ly - y'rs - Gerrit -- Weather in Lulea / Kallax, Sweden 14/12 12:50: 2.0ÂC mist mostly cloudy wind 8.9 m/s S (34 m above NAP) -- In the councils of government, we must g

Re: type method-wrapper?

2004-12-20 Thread Gerrit
ng is: >>> for d in dir(types): ... print getattr(types, d), isinstance(getattr(types, d), types.ObjectType) ... True True True True True True True True ... you get the general idea. yours, Gerrit. -- Weather in Lulea / Kallax, Sweden 20/12 16:50: -3.0ÂC Scattered clou

Programming languages "national brotherhood week"

2005-09-24 Thread Gerrit Holl
it and is anyone able to find it? It was quite funny, I think it was more than five years ago though. Gerrit. -- Temperature in Luleå, Norrbotten, Sweden: | Current temperature 05-09-24 15:59:53 12.1 degrees Celsius ( 53.9F) | -- Det finns inte dåligt väder, bara dåliga kläder. -- http:

Re: New-style classes questions

2005-09-25 Thread Gerrit Holl
o type and to read, that I prefer this. Does the Python style guide have any severe penalty for using this? regards, Gerrit. -- Temperature in Luleå, Norrbotten, Sweden: | Current temperature 05-09-25 15:19:47 11.0 degrees Celsius ( 51.9F) | -- Det finns inte dåligt väder, bara dåliga kläder. -- http://mail.python.org/mailman/listinfo/python-list

Re: Documenting properties

2005-09-27 Thread Gerrit Holl
huge sections of code during > testing, where you'd have to put a # in front of every line otherwise. Except, of course, code that contains string literals with triple quotes. And with a good editor, it's not too difficult to insert a # in front of hundreds of lines (:%s/^/#/g). Gerrit.

Re: A Moronicity of Guido van Rossum

2005-09-29 Thread Gerrit Holl
Xah Lee wrote: > ...What the fuck is the former? > ...What the fuck would anyone to > ...]”, is rather inane, as you can now see. > > ...What the fuck does it mean... > ...you begin to write things like Java... Can you please alter the tone of your voice? Gerrit. -- Te

Re: A Moronicity of Guido van Rossum

2005-09-30 Thread Gerrit Holl
the > legitimate mail I get about viagra , get through to me. True. However, most mail to this mailinglist has less than 0.001 spam probability. As you can see, this one had 0.048 - a vast score, almost enough to put it in my unsure box. It seems to be just not hammy enough. It's inter

Re: A Moronicity of Guido van Rossum

2005-10-01 Thread Gerrit Holl
Tony Meyer wrote: > X-Spambayes-Classification: ham; 0.008 > > On 30/09/2005, at 10:56 PM, Gerrit Holl wrote: > > Tony Meyer wrote: > >> X-Spambayes-Classification: ham; 0.048 > > Unless I'm misreading things, that's *my* message that scored 0.048 > (

Re: Class methods

2005-10-05 Thread Gerrit Holl
count for the famous four-letter-abbreviation down (-; Gerrit. -- Temperature in Luleå, Norrbotten, Sweden: | Current temperature 05-10-05 21:59:48 10.7 degrees Celsius ( 51.3F) | -- Det finns inte dåligt väder, bara dåliga kläder. -- http://mail.python.org/mailman/listinfo/python-list

Re: Well written open source Python apps

2005-10-14 Thread Gerrit Holl
ten Python app to read.) Mailman - http://www.list.org/ Spambayes - http://www.spambayes.org Those are written by experienced Python programmers, some of them Python developers. It looks like well written code to me. Gerrit. -- Temperature in Luleå, Norrbotten, Sweden: | Current temperature 05

Re: Problems with properties

2005-10-14 Thread Gerrit Holl
pe this will make your classes new-style. Gerrit. -- Temperature in Luleå, Norrbotten, Sweden: | Current temperature 05-10-14 17:59:487.9 degrees Celsius ( 46.3F) | -- Det finns inte dåligt väder, bara dåliga kläder. -- http://mail.python.org/mailman/listinfo/python-list

Re: your mail

2005-10-17 Thread Gerrit Holl
Finn Waldrip wrote: > X-Spambayes-Classification: unsure; 0.242 > > > 404 Not Found > > Not Found > The requested URL was not found on this server. > > Apache/1.3.31 > How can my poor Spambayes ever make sense of this? Gerrit. -- Temperature in Luleå,

Re: hello, I want to change n bytes of a binary file

2005-11-01 Thread Gerrit Holl
could ildg wrote: > > b = encrypt(a) > > Thank you~~,but where is the encrypt defined? > I suppose it's left as an exercise for the reader. Gerrit. -- Temperature in Kiruna, Lappland, Sweden: Tue Nov 1 15:35:25 2005 [UT] 2.6°C -- http://mai

Re: "Architecture of Python" was removed ?

2005-01-12 Thread Gerrit Muller
an example of a document that presumably has been removed because of maintenance reasons. Shouldn't we have a collection (archive) of these documents at python.org? kind regards, Gerrit -- Gaudi systems architecting: <http://www.extra.research.philips.com/natlab/sysarch/> -- http://mail.p

whois like functionality on Windows?

2005-06-28 Thread Gerrit Muller
somehow access sufficient servers - you still have to find the domain name in the sea of details returned I also found socket based solutions, but these solutions crash with the message "host not found" :-( Anyone suggestions? kind regards, Gerrit -- Gaudi systems architect

Re: whois like functionality on Windows?

2005-06-28 Thread Gerrit Muller
are IP addresses that cannot be reversely resolved by the DNS servers. I did translate these addresses manually so far via the whois service. So you definitely helped me a lot, but I keep interested in a complementary whois solution. kind regards, Gerrit > Gerrit Muller wrote: > >

Re: whois like functionality on Windows?

2005-07-01 Thread Gerrit Muller
, mostly via Geektools. Sometimes via more specific whois servers, such as krnic. These 1000 domain names are a mix of "real" domain names, for instance from companies, universities or government, and service providers. It would be nice to automate this action, although the manual a

Re: pre-PEP: Object-oriented file module

2005-08-27 Thread Gerrit Holl
Kenneth McDonald wrote: > Subject: pre-PEP: Object-oriented file module Please have a look at http://topjaklont.student.utwente.nl/creaties/path/pep-.html if you haven't done so already. Gerrit. -- Temperature in Luleå, Norrbotten, Sweden: | Current temperature 05-08-27 22:20:0

Re: defining __repr__

2005-09-15 Thread Gerrit Holl
sven wrote: > i'd like to define __repr__ in a class to return the standardrepr > a la "<__main__.A instance at 0x015B3DA0>" > plus additional information. > how would i have to do that? > how to get the standardrepr after i've defined __repr__? >>&g

Re: Free seminar on domain-specific modeling

2005-09-19 Thread Gerrit Holl
. Will the trip there be free as well? Gerrit. (sorry, couldn't resist) -- Temperature in Luleå, Norrbotten, Sweden: | Current temperature 05-09-19 19:09:599.5 degrees Celsius ( 49.0F) | -- Det finns inte dåligt väder, bara dåliga kläder. -- http://mail.python.org/mailman/listinfo/python-list

Re: Memory Allocation?

2005-02-07 Thread Gerrit Holl
than say, the GC? Why do you want it? regards, Gerrit. -- In the councils of government, we must guard against the acquisition of unwarranted influence, whether sought or unsought, by the military-industrial complex. The potential for the disastrous rise of misplaced power exists and will per

"Architecture of Python" restored! [was Re: "Architecture of Python" was removed ?]

2005-02-16 Thread Gerrit Muller
zations! thanks, Gerrit -- Gaudi systems architecting: <http://www.extra.research.philips.com/natlab/sysarch/> -- http://mail.python.org/mailman/listinfo/python-list

Re: python-dev Summary for 2005-01-16 through 2005-01-31

2005-03-01 Thread Gerrit Muller
essage and then clicking on the latest summary. For my type of reading I would strongly prefer to have the link to the actual version at the top of the message, rather than at the end. I hope you keep summarizing as long as no other volunteer takes over. thanks, Gerrit -- Gaudi

Re: Possible to import a module whose name is contained in a variable?

2005-03-07 Thread Gerrit Holl
e __import__ to replace the following: > > exec("from %s import *" % modulename) No. Gerrit. -- Weather in Twenthe, Netherlands 07/03 13:25: 4.0ÂC Few clouds mostly cloudy wind 5.4 m/s NW (57 m above NAP) -- In the councils of government, we must guard against the acquisiti

Re: [OT] Re: Hi Guys. First Time Poster

2005-03-20 Thread Gerrit Holl
Jeff Schwab wrote: > sheldon279 wrote: > Wow, you sold me. > > Does this kinda scam really still work? This kind of replies works to confuse spambayes. Gerrit. -- Weather in Twenthe, Netherlands 20/03 16:55: 9.0ÂC wind 4.0 m/s ENE (57 m above NAP) -- In the councils o

Re: ANN: 2005 International Obfuscated Ruby Code Contest (IORCC)

2005-03-20 Thread Gerrit Holl
> > > Dear Rubyists, Perlists, Shellists, Cists and Hackers, What is this doing on comp.lang.python? regards, Gerrit Holl. -- Weather in Twenthe, Netherlands 20/03 16:55: 9.0ÂC wind 4.0 m/s ENE (57 m above NAP) -- In the councils of government, we must guard against the acqui

Re: help with getting selection from wxChoice with out after it has changed

2005-03-29 Thread Gerrit Holl
This is a SyntaxError. You want to enclose the dots with '' marks as well, like this: '@'.join(['.'.join(['fred', 'dixon']), '.'.join(['gmail', 'com'])]) regards, Gerrit Holl. -- Weather in Twenthe, Netherlands 29/03 10

Re: [perl-python] Python documentation moronicities (continued)

2005-04-12 Thread Gerrit Holl
gt; > > Can we paypal you a hundred dollars to leave us alone? I'll pledge $10. > > Are there another nine people here who'll do the same? > > Why don't we pay him $100 to re-write the PERL docs? Interestingly, Richard Hindle's message was classified as ham

Re: python-dev Summary for 2005-04-01 through 2005-04-15

2005-04-21 Thread Gerrit Muller
to Brett Cannon for sixty-one excellent python-dev summaries. Also, thanks for providing scripts to help get the new summaries off the ground! We're looking forward to the contributions you'll make to the Python core, now that the summaries aren't taking up all your time. +1 Brett, t

Re: printing variables

2006-10-06 Thread Gerrit Holl
uot;bar", "baz" >>> for k in fnmatch.filter(locals(), "var*"): ... print locals()[k] ... foo baz bar This is evil. It's unpythonic. This is yet another way to do it - QED. Gerrit. -- http://mail.python.org/mailman/listinfo/python-list

Re: file system iteration

2006-10-09 Thread Gerrit Holl
string.ascii_uppercase: if os.path.isdir('%s:/' % c): ... etc. But I suppose there should be a better way. Gerrit. -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Gnutar to remove a list of files

2006-10-10 Thread Gerrit Holl
t; only returns 0. Is there any way to make it return a list, or to copy > the information over? Thanks in advance! Use the commands module. Or tarfile of course. http://docs.python.org/lib/module-commands.html http://docs.python.org/lib/module-tarfile.html Gerrit. -- http://mail.python.org/mailman/listinfo/python-list

Re: Motions.

2006-10-11 Thread Gerrit Holl
ge total position, not tracking each individually. How to do that if birds pass each other (projecting 3D on 2D) I don't know, but I'm sure it's been done before (not necessarily in Python though). Gerrit. -- http://mail.python.org/mailman/listinfo/python-list

Re: Best IDE?

2006-10-13 Thread Gerrit Holl
On 2006-10-13 16:31:37 +0200, Ahmer wrote: > Subject: Best IDE? cat > foo.py > How much does it cost? 0 -- http://mail.python.org/mailman/listinfo/python-list

Re: matrix Multiplication

2006-10-18 Thread Gerrit Holl
;t copy data, so you're basically adding len(A) references to > > the same D list to C. for more on this, see: > > > > http://pyfaq.infogami.com/how-do-i-create-a-multidimensional-list > > > > > > Ok!! Tank you very much, i understand now. You might also want to look at numpy/numarray. Gerrit. -- http://mail.python.org/mailman/listinfo/python-list

Re: A Comparison Of Dynamic and Static Languiges

2006-10-21 Thread Gerrit Holl
tering (spambayes), not hiding ones address on the internet. Gerrit. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a way to get utf-8 out of a Unicode string?

2006-10-29 Thread Gerrit Holl
7;ish way to do this? Slightly lack hackish: return ''.join(chr(ord(c)) for c in s) Gerrit. -- http://mail.python.org/mailman/listinfo/python-list

Re: Get CPU usage of a single process in Windows

2006-09-12 Thread Gerrit Muller
html>. If you have a working example of CPU usage could you post the result? I would be interested. kind regards, Gerrit Muller -- Gaudi systems architecting: <http://www.gaudisite.nl/> -- http://mail.python.org/mailman/listinfo/python-list

Re: Get CPU usage of a single process in Windows

2006-09-12 Thread Gerrit Muller
[Tim Golden] now I only have to find some time to play around... thanks, Gerrit -- Gaudi systems architecting: <http://www.gaudisite.nl/> -- http://mail.python.org/mailman/listinfo/python-list

PEP 358 and operations on bytes

2006-10-03 Thread Gerrit Holl
on parent class? They certainly share a lot of properties and possible operations one might want to perform. kind regards, Gerrit Holl. -- My first English-language post ever was made to this newsgroup: http://groups.google.com/group/comp.lang.python/msg/f957acf785ddfb71 :) -- http://mail.pyt

Re: PEP 358 and operations on bytes

2006-10-04 Thread Gerrit Holl
But can I use regular expressions on bytes? Regular expressions are not limited to text. Gerrit. -- http://mail.python.org/mailman/listinfo/python-list

Re: How can I know the name of "caller"

2007-06-19 Thread gerrit . holl
is your friend ;-) If you start doing such things on a regular basis, it will sooner or later become your enemy. Gerrit. -- http://mail.python.org/mailman/listinfo/python-list

Re: Replacement for HTMLGen?

2007-05-04 Thread Gerrit Muller
using HTMLgen. I do think that maintenance has not been required, since HTML didn't change. It is pure Python, so it doesn't require any recompilation for Python updates. If you need HTMLgen send me an e-mail and I will send you a zipfile. kind regards, Gerrit Muller -- Gaudi syste

Re: Mocking OpenOffice in python?

2007-03-23 Thread Gerrit Muller
) example program of using OOo from Python via COM/OLE? Can you give any indication of the kind of bugs that you hit? kind regards, Gerrit Muller Gaudi Systems Architecting -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there *any* real documentation to PyWin32?

2007-12-21 Thread Gerrit Muller
MS-office. The real problem is that these kinds of programs are not described at a reasonable conceptual level, making it difficult to automate trivial tasks. In your term MS-office is docware, certainly not Python-Win32. My experiences with Python-Win32 itself are very good. Gerrit -- http://ma

ANN: PyGaim released - Gaim Python plugin

2005-06-29 Thread Gerrit van Dyk
PyGaim has been released. Summary: Gaim Python plug-in. The product provides developers with the capability to develop python plugins for Gaim This release is just a get it out there release and a lot of polishing still needs to be done. However, it does enable a python developer to develop ga

ANN: Python Training In South Africa

2005-04-18 Thread Gerrit van Dyk
AgileWorks (Pty) Ltd will be presenting an "Introduction to Python" training course at "The Innovation Hub" from the 4-6th of May 2005. For more detail visit our website: (http://www.agileworks.net/AgileWorks/Training/Python/) -- http://mail.python.org/mailman/listinfo/python-list

Re: eric3 question

2005-05-30 Thread Gerrit van Dyk
do it this way: while not raw_input("enter q to quit, or smthing else to continue: ") smthing(else) Gerrit van Dyk -- http://mail.python.org/mailman/listinfo/python-list