Re: TRAC - Trac, Project Leads, Python, and Mr. Noah Kantrowitz (sanitizer)

2008-02-16 Thread Ilias Lazaridis
On 16 Φεβ, 15:45, Robert Klemme <[EMAIL PROTECTED]> wrote: > On 16.02.2008 13:16, Ilias Lazaridis wrote: > > > > Oh, it's him again. Please do not respond. > > http://dev.eclipse.org/newslists/news.eclipse.foundation/msg00167.html Thanks, nice message, I've added it to the section: http://case.

Re: Turn off ZeroDivisionError?

2008-02-16 Thread Mark Dickinson
On Feb 16, 7:30 pm, Mark Dickinson <[EMAIL PROTECTED]> wrote: > The real line, considered as a topological space, has limit points. > Two of them. Ignore that. It was nonsense. A better statement: the completion (in the sense of lattices) of the real numbers is (isomorphic to) the doubly-extende

Re: How about adding rational fraction to Python?

2008-02-16 Thread [EMAIL PROTECTED]
On Feb 16, 6:50�pm, Carl Banks <[EMAIL PROTECTED]> wrote: > On Feb 16, 5:51 pm, Jeff Schwab <[EMAIL PROTECTED]> wrote: > > > Carl Banks wrote: > > > On Feb 16, 3:03 pm, Lie <[EMAIL PROTECTED]> wrote: > > >> Although rationals have its limitations too, it is a much > > >> better choice compared to f

Re: How about adding rational fraction to Python?

2008-02-16 Thread Jeff Schwab
Carl Banks wrote: > On Feb 16, 5:51 pm, Jeff Schwab <[EMAIL PROTECTED]> wrote: >> Carl Banks wrote: >>> On Feb 16, 3:03 pm, Lie <[EMAIL PROTECTED]> wrote: Although rationals have its limitations too, it is a much better choice compared to floats/Decimals for most cases. >>> Maybe that's t

Re: How about adding rational fraction to Python?

2008-02-16 Thread Carl Banks
On Feb 16, 5:51 pm, Jeff Schwab <[EMAIL PROTECTED]> wrote: > Carl Banks wrote: > > On Feb 16, 3:03 pm, Lie <[EMAIL PROTECTED]> wrote: > >> Although rationals have its limitations too, it is a much > >> better choice compared to floats/Decimals for most cases. > > > Maybe that's true for your use ca

Re: TRAC - Trac, Project Leads, Python, and Mr. Noah Kantrowitz (sanitizer)

2008-02-16 Thread Ilias Lazaridis
On 16 Φεβ, 19:15, Jeff Schwab <[EMAIL PROTECTED]> wrote: > Ilias Lazaridis wrote: > > Essence: > > Spam spam spam spam... > > I just looked at your resume. http://lazaridis.com/resumes/lazaridis.html (need to update it, lot's of irrelevant stuff, should focus on my failures) > What is Abstract P

Re: Solve a Debate

2008-02-16 Thread John Machin
On Feb 17, 11:11 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sat, 16 Feb 2008 19:43:37 -0200, John Machin <[EMAIL PROTECTED]> > escribi�: > > > On Feb 16, 3:48 pm, Dan Bishop <[EMAIL PROTECTED]> wrote: > > >> days_in_month = lambda m: m - 2 and 30 + bool(1 << m & 5546) or 28 > > > Alter

Re: TRAC - Trac, Project Leads, Python, and Mr. Noah Kantrowitz (sanitizer)

2008-02-16 Thread Ilias Lazaridis
On 16 Φεβ, 15:45, Steve Holden <[EMAIL PROTECTED]> wrote: > Ilias Lazaridis wrote: > > [...]> Of course I'll not stay with trac, I'll leave the sinking ship, I've > > prepare long time ago to do so, step by step. An will migrate step by > > step away from trac and python - toward an own implementat

Re: Solve a Debate

2008-02-16 Thread Steve Holden
John Machin wrote: > On Feb 17, 11:11 am, "Gabriel Genellina" <[EMAIL PROTECTED]> > wrote: >> En Sat, 16 Feb 2008 19:43:37 -0200, John Machin <[EMAIL PROTECTED]> >> escribi�: >> >>> On Feb 16, 3:48 pm, Dan Bishop <[EMAIL PROTECTED]> wrote: days_in_month = lambda m: m - 2 and 30 + bool(1 << m &

Re: Turn off ZeroDivisionError?

2008-02-16 Thread Steven D'Aprano
On Sat, 16 Feb 2008 17:47:39 -0800, Mark Dickinson wrote: > I've no clue where your (Steven's) idea that 'all ordinals are surreal > numbers' came from. They're totally unrelated. Tell that to John Conway. [quote] Just as the *real* numbers fill in the gaps between the integers, the *surreal*

Re: Turn off ZeroDivisionError?

2008-02-16 Thread Mark Dickinson
On Feb 16, 9:39 pm, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Sat, 16 Feb 2008 17:47:39 -0800, Mark Dickinson wrote: > > I've no clue where your (Steven's) idea that 'all ordinals are surreal > > numbers' came from.  They're totally unrelated. > > Tell that to John Conway.

Re: How about adding rational fraction to Python?

2008-02-16 Thread Carl Banks
On Feb 16, 7:54 pm, Jeff Schwab <[EMAIL PROTECTED]> wrote: > Carl Banks wrote: > > On Feb 16, 5:51 pm, Jeff Schwab <[EMAIL PROTECTED]> wrote: > >> Carl Banks wrote: > >>> On Feb 16, 3:03 pm, Lie <[EMAIL PROTECTED]> wrote: > Although rationals have its limitations too, it is a much > bette

installing on vista

2008-02-16 Thread [EMAIL PROTECTED]
Hi, I just got a new computer with windows vista, big mistake, I install python 2.4 ok, but the win32 package keeps saying it cannot find the python instaltion in the registry, help! -Ted -- http://mail.python.org/mailman/listinfo/python-list

Re: Video4Linux for [EMAIL PROTECTED]

2008-02-16 Thread Carl K
Ok, that post was somewhat bleck. Here is a much better version: http://chipy.org/V4l2forPyCon Carl K -- http://mail.python.org/mailman/listinfo/python-list

Re: class static variables and __dict__

2008-02-16 Thread 7stud
On Feb 16, 5:03 pm, Zack <[EMAIL PROTECTED]> wrote: > Dustan wrote: > > On Feb 16, 4:40 pm, Zack <[EMAIL PROTECTED]> wrote: > >> what method can you use on x to find all available > >> attributes for that class? > > class Foo(object): > >    bar = "hello, world!" > >    def __init__(self, baz)

Re: Passing a callable object to Thread

2008-02-16 Thread Benjamin
On Feb 15, 9:31 pm, Carsten Haese <[EMAIL PROTECTED]> wrote: > On Fri, 2008-02-15 at 19:21 -0800, Benjamin wrote: > > You could type args=tuple("data/w7/"). > > That will produce an 8-tuple containing single-character strings, not a > 1-tuple containing one string. Opps. That iterable thing of stri

RE: installing on vista

2008-02-16 Thread Adam Pletcher
I have Python 2.5 and win32 extensions on Vista at work, no problems. I have to ask the obvious question... did you download the right win32 installer? There's different ones for Python 2.4 vs. 2.5, etc. - Adam From: [EMAIL PROTECTED] on behalf of [EMAIL PRO

Re: How about adding rational fraction to Python?

2008-02-16 Thread Steven D'Aprano
On Sat, 16 Feb 2008 18:21:40 -0800, Carl Banks wrote: > Consider what happens when you add two fractions: > > 1/2 + 1/5 > > To do that, you have to take the LCD of the denomintor, in this case 10, > so you get > > 5/10 + 2/10 = 7/10 > > Now imagine that you're adding a lot of different numbers

Tkinter. Why the Need for a Frame, or no Frame?

2008-02-16 Thread W. Watson
The following two examples are from Grayson's book on Tkinter. He's making a simple dialog with three buttons. In the first example, he does not use the Frame class, but in the second he does. Doesn't the first example need a container? What's the difference here? ==5.1

flattening a dict

2008-02-16 Thread Benjamin
How would I go about "flattening" a dict with many nested dicts within? The dicts might look like this: {"mays" : {"eggs" : "spam"}, "jam" : {"soda" : {"love" : "dump"}}, "lamba" : 23 } I'd like it to put "/" inbetween the dicts to make it a one dimensional dict and look like this: {"mays/eggs" : "

Re: Help Parsing an HTML File

2008-02-16 Thread Paul McGuire
On Feb 15, 3:28 pm, [EMAIL PROTECTED] wrote: > Hello Python Community, > > It'd be great if someone could provide guidance or sample code for > accomplishing the following: > > I have a single unicode file that has  descriptions of hundreds of > objects. The file fairly resembles HTML-EXAMPLE paste

Re: flattening a dict

2008-02-16 Thread Jeff Schwab
Benjamin wrote: > How would I go about "flattening" a dict with many nested dicts > within? The dicts might look like this: > {"mays" : {"eggs" : "spam"}, > "jam" : {"soda" : {"love" : "dump"}}, > "lamba" : 23 > } > I'd like it to put "/" inbetween the dicts to make it a one > dimensional dict and

Validating cElementTrees with lxml

2008-02-16 Thread Ryan K
If I have a cElementTree.ElementTree (or the one from the Standard Library), can I use lxml's validation features on it since it implements the same ElementTree API? Thanks, Ryan -- http://mail.python.org/mailman/listinfo/python-list

problem with mod_python

2008-02-16 Thread Pradnyesh Sawant
Hello, I have a small program which does 'import hashlib'. This program runs fine with python2.5. But when I try running the same program through mod_python, I get the error: 'ImportError: No module named hashlib' in the apache2 error.log Searching online suggested me to include md5.so or md5modul

Re: Critique of first python code

2008-02-16 Thread TerryP
Tomek Paczkowski wrote: > You can try to put your code through pylint. It will give you some > automatic critique. > There is a pylint !? That one is defiantly making my workstation later just for fun hehe. -- There seems no plan because it is all plan. -- C.S. Lewis -- http:/

Re: Python GUI toolkit

2008-02-16 Thread TerryP
[EMAIL PROTECTED] wrote: > what would be the best python GUI toolkit, it must be cross platform. > > i have tried gtk, but it interface are real bad and its coding was > difficult so i dropped it, > > the only remaining are qt4 and wx, i would like to know if one of these or > any other toolkit

Re: Critique of first python code

2008-02-16 Thread John Machin
On Feb 17, 4:42 pm, TerryP <[EMAIL PROTECTED]> wrote: > Tomek Paczkowski wrote: > > You can try to put your code through pylint. It will give you some > > automatic critique. > > There is a pylint !? > > That one is defiantly making my workstation later just for fun hehe. > See if you can find an

xmltramp with python2.(4-5)

2008-02-16 Thread Pradnyesh Sawant
Hello, I have a code snippet which does 'import xmltramp' to parse an xml file received over the network. Also, I have 2 instances of python, namely python2.4 and python2.5 on my box. The confusing thing is that the code works fine with python2.4, but gives the error: ImportError: No module named

Re: Validating cElementTrees with lxml

2008-02-16 Thread John Machin
On Feb 17, 3:23 pm, Ryan K <[EMAIL PROTECTED]> wrote: > If I have a cElementTree.ElementTree (or the one from the Standard > Library), can I use lxml's validation features on it since it > implements the same ElementTree API? > I've not used lxml ... the answer depends on whether the lxml validati

Re: xmltramp with python2.(4-5)

2008-02-16 Thread John Machin
On Feb 17, 5:40 pm, Pradnyesh Sawant <[EMAIL PROTECTED]> wrote: > Hello, > I have a code snippet which does 'import xmltramp' to parse an xml file > received over the network. Also, I have 2 instances of python, namely > python2.4 and python2.5 on my box. The confusing thing is that the code > work

Re: Validating cElementTrees with lxml

2008-02-16 Thread Stefan Behnel
Hi, Ryan K wrote: > If I have a cElementTree.ElementTree (or the one from the Standard > Library), can I use lxml's validation features on it since it > implements the same ElementTree API? Not directly. lxml and cElementTree use different tree models internally, so you can't just apply C-impleme

Re: Critique of first python code

2008-02-16 Thread Dan Bishop
On Feb 8, 7:30 pm, Zack <[EMAIL PROTECTED]> wrote: >[snip] > > The generators you show here are interesting, and it prodded me on how > to add tuples but at the moment (I'm a python newbie) the generator > seems less readable to me than the alternative. After some input from > Scott David Daniels I

Re: sockets -- basic udp client

2008-02-16 Thread [EMAIL PROTECTED]
If you don't care about the address of the sender, e.g. you are not going to send anything back, is there an advantage to using recv()? Or, as a matter of course should you always use recvfrom() with udp sockets? I don't know of a reason why you couldn't use recvfrom() all the time, and that is w

Re: sockets -- basic udp client

2008-02-16 Thread Paul Rubin
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > Historically, though, the ultimate authority on this kind of stuff is > Richard Stevens and his Unix and TCP/IP books > > I recommend these books if you want to get into network programming. I keep wanting to get that book, but it gets older and o

Re: problem with mod_python

2008-02-16 Thread Arnaud Delobelle
Pradnyesh Sawant wrote: > Hello, Hi [...] > So, my Q is, is it possible to make mod_python use the same PYTHONPATH as > the python2.5 interpreter? if so, how? You can use the PythonPath directive to set the PYTHONPATH to whatever you want > any other suggestions to solve the above problem are

<    1   2