Re: any() and all() on empty list?

2006-03-30 Thread Alex Martelli
Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Marcin Ciura wrote: > > >>>all(flying elephants which are not pink) => true > >>> > >>>So, these flying elephants -- are they pink or not? > >> > >> No, you ask two different sets whether they are true. > > > > No, there is only one empty set. > > who s

<%><%><%><%>HOW TO BE FUNNY!<%><%><%><%>

2006-03-30 Thread Expert Humor
You too can learn to be funny in just 7 days flat: http://www.ExpertHumor.com/HowToBeFunny.htm *** Free account sponsored by SecureIX.com *** *** Encrypt your Internet usage with a free VPN account from http://www.SecureIX.com *** -- http://mail.python.org/mailman/listinfo/python-list

Re: Best IDE for Python?

2006-03-30 Thread Ravi Teja
This topic has come up a few dozen times at the least. Please use google to search for the threads. People have their preferences. The best way to choose is to try several by yourself. Most of them are free. http://wiki.python.org/moin/IntegratedDevelopmentEnvironments -- http://mail.python.org

Re: How to debug python code?

2006-03-30 Thread ravi . annaswamy
Here is an outstandingly well written article, with examples, from Stephen Ferg: http://www.ferg.org/papers/debugging_in_python.html Ravi -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple py script to calc folder sizes

2006-03-30 Thread Caleb Hattingh
Ben, Thank you. Caleb -- http://mail.python.org/mailman/listinfo/python-list

Re: Matplotlib: How to set number of ticks on an axis?

2006-03-30 Thread Caleb Hattingh
John, Thank you. Caleb -- http://mail.python.org/mailman/listinfo/python-list

Majordomo results: My photo

2006-03-30 Thread majordomo-owner
Ignoring part of type application/octet-stream. -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL ImageDraw line not long enough

2006-03-30 Thread Fredrik Lundh
Bob Greschke wrote: > I have to extend the vertical line to y+8, instead of y+7 to get the line > segment to be drawn long enough. This is on Linux, Solaris, 2.x versions of > Python, 1.1.5 version of PIL, and on Windows with the latest of everything. > Am I missing a setting somewhere? I recent

Re: any() and all() on empty list?

2006-03-30 Thread Ron Adam
Carl Banks wrote: > In Python, yes and no are the only possible answers. Probably the only > analogous thing you could do in Python would be for all() to raise > ValueError when passed an empty sequence. There is also 'None' which serves a similar purpose of indicating an invalid value when pas

Re: any() and all() on empty list?

2006-03-30 Thread Fredrik Lundh
Alex Martelli wrote: > > >>>all(flying elephants which are not pink) => true > > >>> > > >>>So, these flying elephants -- are they pink or not? > > >> > > >> No, you ask two different sets whether they are true. > > > > > > No, there is only one empty set. > > > > who said anything about empty set

Re: Doc suggestions (was: Why "class exceptions" are not deprecated?)

2006-03-30 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > In the time you've spent posting about this, you or someone > else with svn access to the docs, could have simply gone > and made the change. Admittedly most changes would > require more process but there are many like this just require > someone to DO IT. Give me svn

Re: logging producing redundant entries

2006-03-30 Thread Peter Otten
Jed Parsons wrote: > I'm using the logging module for the first time. I'm using it from > within Zope Extensions. > > My problem is that, for every event logged, the logger is producing > multiple identical entries with the timestamp the same down to the > millisecond. > > Is this something I'm

Re: proposed proposal: set.values()

2006-03-30 Thread Fredrik Lundh
Paul Rubin wrote: > > 1. It is pure duplication that *adds* keystrokes. > > Nobody says you shouldn't use list(s) if you know you're dealing with > a set. The idea of s.values() is so you can duck-type between dicts > and sets. if y is a dict, "x in y" looks for a matching key, not for a matchin

C++ and Python

2006-03-30 Thread marc . wyburn
I've been learning to write VST plugins in C++ and would like to switch back to Python. The first step of writing the plugin is to import the C++ header files from the Steinberg SDK. How can I do this in Python. I've tried looking at SWIG but didn't really understand what it was trying to do.

[ANN] Firedrop 0.2.1

2006-03-30 Thread Fuzzyman
Firedrop 0.2.1 has just been released. http://www.voidspace.org.uk/python/firedrop2/ A bugfix release. * Removed mistaken dependency on `pythonutils `_ * Fixed bug where cancelling the new site dialog would still report that the site was

Re: Why are so many built-in types inheritable?

2006-03-30 Thread Antoon Pardon
Op 2006-03-30, Michele Simionato schreef <[EMAIL PROTECTED]>: > I cannot find the reference now, but I remember Tim Peters saying some > time ago that the only > reason why FunctionType is not subclassable is that nobody bothered to > write a patch for it. The question then is, why is there a need

Re: Low Pass Hamming filter design

2006-03-30 Thread LabWINC
Is there someone that can help me? please Vincenzo -- http://mail.python.org/mailman/listinfo/python-list

Re: C++ and Python

2006-03-30 Thread marc . wyburn
sorry accidentally hit post. has nyone tried this before? Thanks, Marc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Best IDE for Python?

2006-03-30 Thread Fredrik Lundh
Dennis Lee Bieber wrote: > > I want to know which is the best IDE for python.Please if > > possible mention the features of the IDE. > > The best IDE is the one that YOU can be most productive in. What /I/ > find useful may not be of interest to /you/. nonsense. emacs is the best tool for

Re: Low Pass Hamming filter design

2006-03-30 Thread Robert Kern
LabWINC wrote: > Is there someone that can help me? On this list, maybe not. But the scipy list is [EMAIL PROTECTED] . http://www.scipy.net/mailman/listinfo/scipy-user -- Robert Kern [EMAIL PROTECTED] "I have come to believe that the whole world is an enigma, a harmless enigma that is made te

Re: Find similar images using python

2006-03-30 Thread Roel Schroeven
John J. Lee schreef: > Richie Hindle <[EMAIL PROTECTED]> writes: > >> [Thomas] >>> How can I use python to find images that looks quite similar? >> Have you looked at http://www.imgseek.net/ ? It's an Open Source Python >> photo >> collection manager that does exactly what you're asking for. >

Re: Best IDE for Python?

2006-03-30 Thread Robert Kern
Fredrik Lundh wrote: > Dennis Lee Bieber wrote: > >>> I want to know which is the best IDE for python.Please if >>>possible mention the features of the IDE. >> >>The best IDE is the one that YOU can be most productive in. What /I/ >>find useful may not be of interest to /you/. > > nonsense.

Re: Best IDE for Python?

2006-03-30 Thread Fredrik Lundh
Dennis Lee Bieber wrote: > > I want to know which is the best IDE for python.Please if > > possible mention the features of the IDE. > > The best IDE is the one that YOU can be most productive in. What /I/ > find useful may not be of interest to /you/. nonsense. vim is the best tool for e

Re: how to comment lot of lines in python

2006-03-30 Thread Laurent Rahuel
[EMAIL PROTECTED] wrote: > Like in C we comment like > /* > Bunch of lines of code > */ > > Should we use docstring """ """ > > Or there is something else too ?? > > Every help is appreciated. > > Thanks Hi, Maybe this sounds simplier than regexp and so, just use the """ marker like this : "

Re: tkinter question

2006-03-30 Thread Eric Brunel
On 30 Mar 2006 15:11:19 -0800, <[EMAIL PROTECTED]> wrote: >> If you just create >> a Toplevel and populate it with widgets, it will just display once the >> control is returned to the Tkinter mainloop and no user input will be >> needed. > > Thanks for explaining that. I borrowed the "after" method

Re: Why are so many built-in types inheritable?

2006-03-30 Thread Georg Brandl
Antoon Pardon wrote: > Op 2006-03-30, Michele Simionato schreef <[EMAIL PROTECTED]>: >> I cannot find the reference now, but I remember Tim Peters saying some >> time ago that the only >> reason why FunctionType is not subclassable is that nobody bothered to >> write a patch for it. > > The questi

<    1   2   3