new-style class or old-style class?

2012-09-25 Thread Jayden
In learning Python, I found there are two types of classes? Which one are widely used in new Python code? Is the new-style much better than old-style? Thanks!! -- http://mail.python.org/mailman/listinfo/python-list

data attributes override method attributes?

2012-09-25 Thread Jayden
number 10 but it is the method. There must be something I misunderstand. Would you please tell me why? Thanks, Jayden -- http://mail.python.org/mailman/listinfo/python-list

which a is used?

2012-09-24 Thread Jayden
Dear All, I have a simple code as follows: # Begin a = 1 def f(): print a def g(): a = 20 f() g() #End I think the results should be 20, but it is 1. Would you please tell me why? Thanks a lot! -- http://mail.python.org/mailman/listinfo/python-list

Re: pythonOCC examples doesn't work?

2012-09-12 Thread Jayden
On Wednesday, September 12, 2012 11:12:55 AM UTC-4, jelle wrote: > You installed python 2.7 and expect a 2.6 module to work with it. > > That won't work. Finally, you need to install the OpenCasCade libs to be able > to run PythonOCC. > > > > -jelle I think that is the reason. Thanks a lot!!

pythonOCC examples doesn't work?

2012-09-11 Thread Jayden
I installed (1) pythonxy2.7.2.3 (with python2.7) and (2) pythonOCC-0.5-all-in-one.win32.py26 on windows 7 64 bit computer. I try run pythonOCC examples in its example folder, such as the helloworld.py and got errors as follows: ImportantError: DLL load failed: The specified module could

pythonOCC examples doesn't work?

2012-09-11 Thread Jayden
I installed (1) pythonxy2.7.2.3 (with python2.7) and (2) pythonOCC-0.5-all-in-one.win32.py26 on windows 7 64 bit computer. I try run pythonOCC examples in its example folder, such as the helloworld.py and got errors as follows: ImportantError: DLL load failed: The specified module could no

Re: python CAD libraries?

2012-09-11 Thread Jayden
On Tuesday, September 11, 2012 9:42:56 AM UTC-4, Marco Nawijn wrote: > On Monday, September 10, 2012 11:10:55 PM UTC+2, Jayden wrote: > > > Are there any python CAD libraries that can > > > > > > > > > > > > (1) build simple 3D primit

a python license problem?

2012-09-10 Thread Jayden
Python is under GPL compatible. If I develop a python code, convert it to executable and distribute the executable as a commercial software. May I need to make my source code open? If python is under GPL, is the answer different? Thanks a lot!! -- http://mail.python.org/mailman/listinfo/python-

Re: python CAD libraries?

2012-09-10 Thread Jayden
On Monday, September 10, 2012 5:30:08 PM UTC-4, Gary Herron wrote: > On 09/10/2012 02:10 PM, Jayden wrote: > > > Are there any python CAD libraries that can > > > > > > (1) build simple 3D primitives solids such as spheres, cylinders and so on > > > (

python CAD libraries?

2012-09-10 Thread Jayden
Are there any python CAD libraries that can (1) build simple 3D primitives solids such as spheres, cylinders and so on (2) perform bool operations on 3D solids (3) better if it has some transformations such has scaling, sweeping, and lofting Please recommend some good ones for me? Thanks a lot!!

Re: pyQT performance?

2012-09-10 Thread jayden . shui
On Monday, September 10, 2012 2:06:59 PM UTC-4, Vincent Vande Vyvre wrote: > Le 10/09/12 19:24, jayden.s...@gmail.com a écrit : > > > Anybody has the experience of the performance of the program developed by > > pyQT? Is it much slower than the one made by QT, such as (20%)? > > > > > For my ex