Re: pythonOCC examples doesn't work?

2012-09-12 Thread jelle
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 -- http://mail.python.org/mailman/listinfo/python-list

Re: Modules and Namespaces

2005-10-20 Thread jelle
Dear Steve & Larry, Both your methods worked flawless, thanks to both of you! I have to say Larry's way wins on style points, doens't it? What an awefull thing to get stuck on something that simple, what a gorgeous solution, thanks so much! -Jelle -- http://mail.python.org/ma

Re: Modules and Namespaces

2005-10-20 Thread jelle
Ooops, Larry, forgive me being to overhauled here: Actually self.RS = RS does not make the RS object available in the module, Steve's method does however. -Jelle -- http://mail.python.org/mailman/listinfo/python-list

Should i pick up Numeric, Numarray or SciPy.core?

2005-10-21 Thread jelle
why I should pay for software in its early stages, when it extents on efforts freely available) Curious for your opinions, I definitely think the Scipy.core effort is terrific, but right now I'm wondering whether its a pragmatic choice. -Jelle -- http://mail.python.org/mailman/listinfo/python-list

SciPy python 2.4 wintel binaries

2005-11-12 Thread jelle
han 'python setup.py build' leaves me at the grace of the non-challenged... SciPy is a complex software engineering project, so I'm hangin on the mercy of others here... Is anyone on this list aware of such a binary? Thanks, -jelle -- http://mail.python.org/mailman/listinfo/python-list

Re: SciPy python 2.4 wintel binaries

2005-11-14 Thread jelle
n a full SciPy distribution is coming along? Cheers, -jelle -- http://mail.python.org/mailman/listinfo/python-list

Re: SciPy python 2.4 wintel binaries

2005-11-15 Thread jelle
Claudio, Thanks a lot for this link! -- http://mail.python.org/mailman/listinfo/python-list

Re: ElementTree - Why not part of the core?

2005-12-07 Thread jelle
Doug, I agree with you, ElementTree is fast & pythonic. Certainly does make sense to me. -- http://mail.python.org/mailman/listinfo/python-list

quering the google desktop database

2005-01-25 Thread jelle
ython? My intention is to apply data mining to the google desktop database. How about it, who's in for it? Cheers, Jelle -- http://mail.python.org/mailman/listinfo/python-list

future of computing languages

2005-01-29 Thread jelle
Quite suprised while reading the Amazin c2.com Wiki: http://c2.com/cgi/wiki?FutureOfProgrammingLanguages Take a look, and feel incredible good about yourself & your decision to opt for python. Did work for me. Cheers, Jelle. -- http://mail.python.org/mailman/listinfo/python-list

pythonic equivalent of Mathematica's FixedPoint function

2005-02-01 Thread jelle
lt no longer changes. thanks, jelle. -- http://mail.python.org/mailman/listinfo/python-list

Re: pythonic equivalent of Mathematica's FixedPoint function

2005-02-01 Thread jelle
doh... https://sourceforge.net/projects/fixedpoint pardon me -- http://mail.python.org/mailman/listinfo/python-list

Re: pythonic equivalent of Mathematica's FixedPoint function

2005-02-01 Thread jelle
Ah, i see, that clears up the monetary context. Thank you for your FixedPoint example. Can i help myself out by mentioning that the most simple things are always most difficult ;-) Thanks, Jelle. -- http://mail.python.org/mailman/listinfo/python-list

Re: pythonic equivalent of Mathematica's FixedPoint function

2005-02-02 Thread jelle
>You could probably write your own FixedPoint function without too much >difficulty, with the only tricky part being for it to know when to stop! It would be quite interesting to have this kind of function. But likely its far from trivial. FixedPoint seems to be one of the core functions in Mathem

connecting to an exsisting COM server

2005-06-23 Thread jelle
80, in GetActiveObject dispatch = pythoncom.GetActiveObject(resultCLSID) com_error: (-2147221021, 'Operation unavailable', None, None) A com_error is raised. This problem has come up a few times on this list, however that didn't help me to find a way of connecting to it

Cancelling a subprocess based on its output

2005-07-04 Thread jelle
way to terminate the subprocess when this message is spitted out to the console. Searching this forum on subprocess & stderr didn't lead to a clue to solving this problem. I'm using both win32 & linux to run these simulations, so a cross-platform way of doing this is important. Any

how to pass an array to a VB array via COM

2005-04-26 Thread jelle
.0), (28.0, 10.0, 0.0), (20.0, 1.0, 0.0)) I've been searching this list for a solution, but didnt find anything i could use. Any ideas? Cheers, Jelle -- http://mail.python.org/mailman/listinfo/python-list

Re: how to pass an array to a VB array via COM

2005-04-26 Thread jelle
No I haven't, it might be an idea. Would it be an effective method though? I have little experience working with COM, but i suppose writing an (VB!) array wouldnt be the most challenging problem, though browsing through this list it looks like no good solution arrived yet. Cheers,

Re: how to pass an array to a VB array via COM

2005-04-26 Thread jelle
Thomas, No, i went over the syntax extensively. The syntax is RS.AddCurve(points, degree), so 3 represents the degree of a bezier curve. I'm doing fine with all types of functions which use 2 x,y,z coords, but all arrays -tuple of tuples- fail. The odd thing is that when i use RS.GetPoints() which

Re: how to pass an array to a VB array via COM

2005-04-29 Thread jelle
Hi Stefan, Thanks for your insightful and in-depth response! Wonderful to hear that a solution is in the works, that's absolutely wonderful news. If I can help you out beta-testing the PySafeArray implementation, I'd be delighted to do so. Thanks again, Jelle. -- http://mail.python.o

PyQT dll's | missing qt-mtedu333.dll

2005-12-18 Thread jelle
erhaps someone could spare me the effort of finding and compiling v3.3.3? thank, jelle -- http://mail.python.org/mailman/listinfo/python-list

Re: Graphviz/dot language formatter

2005-12-30 Thread jelle
Hi, the recently added boost.graph python binding could be most useful: http://www.osl.iu.edu/~dgregor/bgl-python/#download -- http://mail.python.org/mailman/listinfo/python-list

csrss.exe & Numeric

2005-12-30 Thread jelle
heers, Jelle -- http://mail.python.org/mailman/listinfo/python-list

Re: Vector math library

2005-12-31 Thread jelle
martin, pyformex has a vector module as well. its not very pythonic, but it could help you out creating a version of your own. worth checking out -- http://mail.python.org/mailman/listinfo/python-list

Re: Best IDE for Python

2006-08-14 Thread jelle
I think SPE is a terrible complete and efficient IDE! -- http://mail.python.org/mailman/listinfo/python-list

Re: help a newbie with a IDE/book combination

2006-07-10 Thread jelle
I think SPE is a terrific IDE, a real pleasure to work with! Also it's very complete in terms of functionality. http://stani.be/python/spe/page_download -- http://mail.python.org/mailman/listinfo/python-list

CGAL bindings

2006-02-21 Thread jelle
Hi, I'm wondering whether anyone is aware of efforts being made wrapping the CGAL library? It's a highly advanced computational geometry library, see cgal.org -j //any other computational geometry links appreciated... -- http://mail.python.org/mailman/listinfo/python-list

adding a docstring to an instancemethod

2007-07-25 Thread jelle
;d like to overload the .__doc__, rather than wrapping it in a class. Cheers, -jelle -- http://mail.python.org/mailman/listinfo/python-list

Re: adding a docstring to an instancemethod

2007-07-26 Thread jelle
Hi Gabriella, thanks for pointing me in the right direction: eo.eoTruncatedSelectOne.setup.im_func.func_doc = 'method string goes here' works beautifully! cheers, -jelle -- http://mail.python.org/mailman/listinfo/python-list

Re: adding a docstring to an instancemethod

2007-07-26 Thread jelle
re's no prior function to refer to. Thanks, -jelle -- http://mail.python.org/mailman/listinfo/python-list

initializing cooperative method

2007-09-06 Thread jelle
elegate arguments in the inherited class. Any ideas? Thanks, -jelle class Abstract(object): def __init__(self, a='a', b='b'): self.a, self.b = a, b print a, b class Concrete(Abstract): def __init__(self, a='AAA', b=

Re: initializing cooperative method

2007-09-06 Thread jelle
Ai, calling super(Abstract) is just getting object, sure... However, I'm still curious to know if there's a good idiom for repeating the argument in __init__ for the super(Concrete, self).__init__ ? Thanks, -jelle -- http://mail.python.org/mailman/listinfo/python-list

Re: initializing cooperative method

2007-09-06 Thread jelle
Ai, calling super(Abstract) is just getting object, sure... However, I'm still curious to know if there's a good idiom for repeating the argument in __init__ for the super(Concrete, self).__init__ ? Thanks, -jelle -- http://mail.python.org/mailman/listinfo/python-list

shouldn't 'string'.find('ugh') return 0, not -1 ?

2007-10-31 Thread jelle
the subject pretty much says it all. if I check a string for for a substring, and this substring isn't found, should't the .find method return 0 rather than -1? this breaks the if check.find('something'): do(somethingElse) idiom, which is a bit of a pity I think. cheer

Re: shouldn't 'string'.find('ugh') return 0, not -1 ?

2007-10-31 Thread jelle
>if 'something' in check: > do(somethingElse) Tim, you're absolutely right that the above makes far more sense in my case. Thanks for pointing that out. -jelle -- http://mail.python.org/mailman/listinfo/python-list

Shell like syntax for subprocess.Popen # overloading >, <, |

2006-04-18 Thread jelle
and processed, but the output of B is not being piped to C executing A > B; B > C works as expected however. Which is disappointing, since what I'm trying to achieve is a sugar syntax for Popen processes, where directly sees the chain of commands... Any suggestions to ove

Re: Shell like syntax for subprocess.Popen # overloading >, <, |

2006-04-18 Thread jelle
Hi Christos, Thanks for your pointers there, impressive to see -that a 12 year old thread still can make an interesting read -you being able to remember & trace it... impressive... Thanks for your pointers. I think the input > process > output Syntax is more powerful , since it would let you buil

are docstrings for variables a bad idea?

2006-04-21 Thread jelle
y that could be seriously sped up by a proper IDE (I'm on SPE, thanks Stani!) Would that make sense to anyone? cheers, -jelle -- http://mail.python.org/mailman/listinfo/python-list

Re: are docstrings for variables a bad idea?

2006-04-21 Thread jelle
y well know how to subclass a class without (extensively) reading it back? perhaps a variable doc here and there would make this slightly easier. -jelle -- http://mail.python.org/mailman/listinfo/python-list

Re: are docstrings for variables a bad idea?

2006-04-21 Thread jelle
hints can be appreciated. a variables doctring should never be longer than 2 lines to be any good likely. ok. 3 -jelle -- http://mail.python.org/mailman/listinfo/python-list

Re: are docstrings for variables a bad idea?

2006-04-21 Thread jelle
yet-they-will-never-come features of IDEs for python, as this would mean that you'd have type-information available on f. Consider this simple example: f = someRandomlyInstatiatedObject() Now what is e.g. f. to show? why is this ambigious at all? am i seriously overlooking somethin

Re: are docstrings for variables a bad idea?

2006-04-21 Thread jelle
class GeographicCoordinate: def __init__ (self, lat, long): self.lat = lat "Latitude in degrees (positive North), per WGS84" self.long = long "Longitude in degrees (positive West), per WGS84" Thanks for your example Roy, that illustrates well what I'm after: self.lat

Re: are docstrings for variables a bad idea?

2006-04-21 Thread jelle
Hi Michele, Thanks for pointing that out, cool! I would argue -even- that is too much programming effort. Like method docstring, variables docstrings should be effortless to write. -- http://mail.python.org/mailman/listinfo/python-list

group several methods under a attribute

2009-04-06 Thread jelle
thanks in advance, -jelle -- http://mail.python.org/mailman/listinfo/python-list

Re: group several methods under a attribute

2009-04-06 Thread jelle
> Whatever it is, you should find a better way instead of cramming > everything into a single class. That smells of the God Object > antipattern (http://en.wikipedia.org/wiki/God_object). Thanks Gerard, I'll take your advice. -jelle -- http://mail.python.org/mailman/listinfo/python-list

Re: group several methods under a attribute

2009-04-06 Thread jelle
( 'submethA %r, instance %r'% ( arg, self.inst ) ) class ClsB( object ): def methA( self, arg ): self.A= ClsA( self ) print( 'methA %r'% arg ) b= ClsB( ) b.methA( 'this' ) b.A.submethA( 'that' ) Many thanks, -jelle -- http://mail.python.org/mailman/listinfo/python-list

pypi category

2009-08-20 Thread jelle
Hi, Would someone be able to inform me how a category can be added to the pypy list of categories? I'd like to add a CAD & Geometry category. ( I develop PythonOCC, wrappers for the OpenCASCADE CAD kernel, which is why ) Thanks! -jelle -- http://mail.python.org/mailman/listinfo/python-list

Re: pypi category

2009-08-20 Thread jelle
The pypi list of categories, sorry... -- http://mail.python.org/mailman/listinfo/python-list

Re: Color Segmentation w/ PIL?

2007-05-27 Thread jelle feringa
-journal.org/ .../1926/188/2/WrapITK_-_Enhanced_languages_support_for_the_Insight_Toolkit.pdf Cheers, -jelle -- http://mail.python.org/mailman/listinfo/python-list

Re: shouldn't 'string'.find('ugh') return 0, not -1 ?

2007-10-31 Thread jelle feringa
> > What's your point? :/ that of making sure before you post and cause public emberassement? -- http://mail.python.org/mailman/listinfo/python-list

Re: shouldn't 'string'.find('ugh') return 0, not -1 ?

2007-10-31 Thread jelle feringa
confusing. So, I was arguing that '_'.find(' ') might return 0, however that is obviously ambigious, since 0 might be an index as well. So, perhaps I should rephrase and ask, why if -1 evaluates to True? I think that's pretty ugly... cheers, -jelle -- http://mail.python.org/mailman/listinfo/python-list

shouldn't 'string'.find('ugh') return 0, not -1 ?

2007-10-31 Thread jelle feringa
Hi Tim, Well, I this is another idiom in itself, right? Your checking if something is part of an iterable. I'm checking truth before entering a conditional expression. The latter is considered to be pythonic, right? -jelle On 10/31/07, Tim Chase <[EMAIL PROTECTED]> wrote: > &g

Re: shouldn't 'string'.find('ugh') return 0, not -1 ?

2007-10-31 Thread jelle feringa
. I can't think of a case where it would be prefereble to have find() return -1 rather than None. Formally speaking, -1 is an ambigious answer, since a perfectly valid indice. the '_'.find(' ') might actually make a nice idiom while parsing for ignoring irrelevant l

Re: shouldn't 'string'.find('ugh') return 0, not -1 ?

2007-10-31 Thread jelle feringa
Thanks for your in-depth explanation Tim. Which is impossible to disagree with! On 10/31/07, Tim Chase <[EMAIL PROTECTED]> wrote: > > > Well, I this is another idiom in itself, right? > > Your checking if something is part of an iterable. > > I'm checking truth before entering a conditional expre

Re: Python 3D CAD -- need collaborators, or just brave souls :)

2009-03-05 Thread jelle feringa
enCASCADE kernel. Consider that complete, since there are a bunch of modules are obsolete ( WOK, drawing ). (Binaries are supplied for win32, linux & osx.) We're starting to work on a high level API, so this is a wonderful moment to jump on. -jelle -- http://mail.python.org/mailman/listinfo/python-list

Can't override class |__new__

2009-03-05 Thread jelle feringa
I perhaps alter it using the new module or __new__ method? Many thanks in advance, -jelle -- http://mail.python.org/mailman/listinfo/python-list

Re: Can't override class |__new__

2009-03-05 Thread jelle feringa
y_Polyhedron_3.cpp?rev=167&root =cgal-python&view=markup Again, thanks for you help, -jelle -- http://mail.python.org/mailman/listinfo/python-list

Re: Can't override class |__new__

2009-03-05 Thread jelle feringa
ich a Polyhedron is composed of . ( vertex -> halfedge -> facet -> polyhedron ) > I think so. External module written in C/C++ is often statically linked. I'm sorry, but I don't follow you; what has linking to do with changing the behaviour of the compiled module? Thanks, -jelle -- http://mail.python.org/mailman/listinfo/python-list

Re: Can't override class |__new__

2009-03-05 Thread jelle feringa
> Aaron explained it better than I did. Basically the C/C++ module uses > C/C++ version of Facet class directly without consulting python > interpreter, this is what I meant by static linking. Thanks so much for the explanation Lie, I understood it fully now. Thanks again, -jelle

SimpleXMLRPCServer and creating a new object on for each new client request.

2009-05-06 Thread Jelle Smet
2=xmlrpclib.ServerProxy('http://localhost:8000') >>> print session1.show_random() 13930 >>> print session2.show_random() 13930 >>> I though that session1 and session2 would be 2 different Randomizer objects each having a different result for self.random But a

CAD -> FEM | writing FEM meshes in abacus format || pythonOCC

2009-10-20 Thread jelle feringa
solver such as abaqus. I'm aware abaqus has a python module which is great, but is off limits. Any ideas / references are much appreaciated! -jelle -- http://mail.python.org/mailman/listinfo/python-list

python regex "negative lookahead assertions" problems

2009-11-22 Thread Jelle Smet
lmqkjsfmlqshvquhsudfhqf qlsfh qsduidfhqlsiufh >>> qlsiuf qldsfhqlsifhqlius dfh warning qlsfj lqshf lqsuhf lqksjfhqisudfh >>> qiusdfhq iusfh' >>> re.match('.*(?!warning)',line) <_sre.SRE_Match object at 0xb75b1598> I would expect that t

os.spawnv & stdin trouble

2005-01-11 Thread Jelle Feringa // EZCT / Paris
file ">"     ##for your info I’m on win/xp, python 2.3.4     Cheers,   Jelle. -- http://mail.python.org/mailman/listinfo/python-list

os.spawn & stdOUT trouble

2005-01-11 Thread Jelle Feringa // EZCT / Paris
Yikes, how painful, I meant stdOUT > trouble instead of stdin... Awefully sorry Cheers, Jelle ##thanks for pointing that out Denis! -- http://mail.python.org/mailman/listinfo/python-list

OCAMl a more natural extension language for python?

2005-01-17 Thread Jelle Feringa // EZCT / Paris
my question is: wouldn't there be some serious synergy in bringing python & CAML closer together? ##of course this is speculation, I'm not informed well ##enough to make an educated guess Interested in hearing your thoughts about this matter! Cheers, Jelle. -- http://mail.python.org/mailman/listinfo/python-list

RE: OCAMl a more natural extension language for python?

2005-01-17 Thread Jelle Feringa // EZCT / Paris
learn Is it in comparison to C? > Yes, OCAML is very complementary, too much, much too, complementary at > Python... > > But, C is not complementary to Python (in the same state of mind). So some additional arguments to the hypotheses of OCAMl being

python & iges (nurbs file format)

2005-01-19 Thread Jelle Feringa // EZCT / Paris
Is anyone aware of a module allowing you to read / write .iges data? Currently I’m trying to figure a way of writing out my nurbs data generated in python, but if such a package exists, that would be great, haven’t been able to find anything so far…   Cheers,   Jelle. -- http

building extensions: ming & python mathlink for win32

2005-01-20 Thread Jelle Feringa // EZCT / Paris
le launching it, I stated   ActivePython 2.4 Build 243 (ActiveState Corp.) based on Python 2.4   HUH! WHAT! No actual difference between the python.org & activestate version???   Cheers,   Jelle. -- http://mail.python.org/mailman/listinfo/python-list

compiling ming on win32/python 2.3

2004-12-13 Thread Jelle Feringa // EZCT / Paris
I wonder whether anyone on this list has been able to compile the ming .swf output library successfully on win32/python2.3? I have quite some trouble trying to compile these kind of libraries, maybe you could point me to a good starters tutorial on this?   Cheers,   Jelle

python & nurbs

2004-12-19 Thread Jelle Feringa // EZCT / Paris
Is anyone aware of a python nurbs module? So far I found Runar Tenfjord's effort, which is quite interesting: http://runten.tripod.com/NURBS/ But in the end doesn't really meet my needs. Any suggestions? Cheers, Jelle. -- http://mail.python.org/mailman/listinfo/python-list

RE: python & nurbs

2004-12-19 Thread Jelle Feringa // EZCT / Paris
> Hint to get a useful answer: Define your needs. Display in 3D (want to > use them to define and display geometry)? Numeric analysis (writing > some sort of CAD or automation system)? Modeling system (want some way > to interactively define them)? I wish I could give you a well defined answer

RE: python & nurbs

2004-12-19 Thread Jelle Feringa // EZCT / Paris
> Have you looked at Blender (http://www.blender3d.com)?? Blender seems very promising, its python support is exactly what I'm looking for, but it lacks the cad/parametric capabilities I'm looking for. -- http://mail.python.org/mailman/listinfo/python-list

Modules and Namespaces

2005-10-20 Thread Jelle Feringa / EZCT Architecture & Design Research
do I make the RS object available to the imported SRF module, such that my module code and program code both refer to RS as the application object being scripted? Cheers, Jelle. -- http://mail.python.org/mailman/listinfo/python-list

genetic algorithms

2005-02-25 Thread Jelle Feringa / EZCT Architecture & Design Research
cated. Could someone recommend me a module, which is still being developed, somewhat more concurrent than the stuff I'm finding? Any recommendations, since most of these modules seem to be more projects developed in sake of grasping GA's rather than actually using these ;-) Cheers, Je