Re: Is it legal to rebuild Python.exe to include Version property tab?

2008-07-15 Thread Victor Noagbodji
I think it is. I got a bundle of Python named EnthoughtPython and the version string gave something different from original Python. -- NOAGBODJI Paul Victor -- http://mail.python.org/mailman/listinfo/python-list

'if name is not None:' v. 'if name:'

2008-07-15 Thread Victor Noagbodji
Hello, what's the difference between these two statement? And which one should one use? -- NOAGBODJI Paul Victor -- http://mail.python.org/mailman/listinfo/python-list

Re: 'if name is not None:' v. 'if name:'

2008-07-15 Thread Victor Noagbodji
what's the difference between these two statement? one checks if the given object is not None, the other checks if it's a true value: http://docs.python.org/ref/Booleans.html#Booleans And which one should one use? depends on what you want to test for, of course. /F Well that's exactly why I'm

Re: Simple Image Cropper

2008-07-14 Thread Victor Noagbodji
Hi, I am designing a simple image cropper which simply takes an image and use PIL to do the cropping.Now in order to do the cropping I simply draw a rectangle on the image by dragging the mouse over the image.I then use button press and button release events to find the mouse postition and

Re: GUI Programming by hand not code with Python Code

2008-07-06 Thread Victor Noagbodji
Is their a program that lets you design a GUI by hand (like gambas) not by code (like wxpython) but the commands are in python? A program similar to gambas or vb Gambas with python code instead of gambas code would be perfect. Thanks in advance Check out the Designer program that comes

Re: How to make a function associated with a class?

2008-07-01 Thread Victor Noagbodji
Hi, I have a class called vector. And I would like to define a function dot which would return a dot product of any two vectors. I want to call this function as follow: dot(x,y). Well, I can define a functions dot outside the class and it works exactly as I want. However, the problem is

Re: C++ or Python

2008-06-28 Thread Victor Noagbodji
Kurda Yon [EMAIL PROTECTED] wrote: I would like to know what are advantages of Python in comparison with C ++? In which cases and why Python can be a better tool than C++? I have used both in small projects and I think Python wins by far. First of all, you don't have the hassle of compiling

Re: Beginner's Python development questions

2008-06-28 Thread Victor Noagbodji
From: Łukasz Dąbek [EMAIL PROTECTED] Hello! I'm newcomer to Python development and I have some questions (I didn't found answers for these): Hi welcome. 1. Some bugs at bugs.python.org are assigned but it didn't changed for many months (example: http://bugs.python.org/issue1692335). Is that bugs

Re: HTML Parsing

2008-06-28 Thread Victor Noagbodji
Hi everyone Hello I am trying to build my own web crawler for an experiement and I don't know how to access HTTP protocol with python. urllib2: http://docs.python.org/lib/module-urllib2.html Also, Are there any Opensource Parsing engine for HTML documents available in Python too? That would