Announcement: Code generation from state diagrams

2016-10-16 Thread peter . o . mueller
>From (UML) state diagrams to Python code made easy. State machines are without any doubt a very good way to model behavior. The new code generator from Sinelabore translates hierarchical state machines efficiently into different languages now including Python. The generator accepts diagrams fr

Python {executable templates from XSLT, code generation tool}

2014-12-15 Thread Jean-Baptiste Braun
? Or at least a code generation tool ? I read about Cog and might use it. Jbb -- https://mail.python.org/mailman/listinfo/python-list

Re: SQL code generation from table-free boolean queries?

2013-06-27 Thread alex23
On 27/06/2013 9:17 AM, Foo Stack wrote: Given string input such as: foo=5 AND a=6 AND date=now OR date='2013/6' AND bar='hello' I am going to implement: - boolean understanding (which operator takes precendence) - spliting off of attributes into my function which computes their table in th

Re: SQL code generation from table-free boolean queries?

2013-06-26 Thread Tim Chase
On 2013-06-26 16:17, Foo Stack wrote: > Given string input such as: > foo=5 AND a=6 AND date=now OR date='2013/6' AND bar='hello' > > I am going to implement: > > - boolean understanding (which operator takes precendence) > - spliting off of attributes into my function which computes their >

SQL code generation from table-free boolean queries?

2013-06-26 Thread Foo Stack
Given string input such as: foo=5 AND a=6 AND date=now OR date='2013/6' AND bar='hello' I am going to implement: - boolean understanding (which operator takes precendence) - spliting off of attributes into my function which computes their table in the SQL database - piece everything together

Re: code generation

2011-08-02 Thread Dan Stromberg
Perhaps: http://code.google.com/p/python-graph/ On Tue, Aug 2, 2011 at 8:03 PM, Rita wrote: > Hello, > > This isn't much of a python question but a general algorithm question. > > I plan to input the following string and I would like to generate something > like this. > > input: a->(b,c)->d > o

code generation

2011-08-02 Thread Rita
Hello, This isn't much of a python question but a general algorithm question. I plan to input the following string and I would like to generate something like this. input: a->(b,c)->d output: parent a, child b c parent b c child d Are there any libraries or tools which will help me evaluate ite

Re:Re: C++ code generation

2010-03-19 Thread CHEN Guang
Plug? Any evidence to say that? As long as this thread concerned, is there any answer more closed to the topic "C++ code generation" than mine? I think Stefan was telling you, in a nice way, to stop spamming every thread about code generation with a plug for your project. 2010

Re: C++ code generation

2010-03-18 Thread Chris Colbert
I think Stefan was telling you, in a nice way, to stop spamming every thread about code generation with a plug for your project. 2010/3/17 CHEN Guang > >> - Original Message - > >> From: "Dan Goodman" > >> > >>> I'm doing some C++ c

Re: C++ code generation

2010-03-18 Thread CHEN Guang
>> - Original Message - >> From: "Dan Goodman" >> >>> I'm doing some C++ code generation using Python, and would be interested >>> in any comments on the approach I'm taking. >> >> PythoidC ( http://pythoidc.googlecod

Re: C++ code generation

2010-03-16 Thread Stefan Behnel
CHEN Guang, 17.03.2010 02:54: - Original Message - From: "Dan Goodman" I'm doing some C++ code generation using Python, and would be interested in any comments on the approach I'm taking. PythoidC ( http://pythoidc.googlecode.com ) is a C code generator (not C++

Re: C++ code generation

2010-03-16 Thread CHEN Guang
PythoidC ( http://pythoidc.googlecode.com ) is a C code generator (not C++) - Original Message - From: "Dan Goodman" To: Sent: Wednesday, March 17, 2010 9:00 AM Subject: C++ code generation > Hi all, > > I'm doing some C++ code generation using Python, and w

C++ code generation

2010-03-16 Thread Dan Goodman
Hi all, I'm doing some C++ code generation using Python, and would be interested in any comments on the approach I'm taking. Basically, the problem involves doing some nested loops and executing relatively simple arithmetic code snippets, like: for i in xrange(len(X)):

Re: html code generation

2010-01-21 Thread John Nagle
George Trojan wrote: I need an advice on table generation. The table is essentially a fifo, containing about 200 rows. The rows are inserted every few minutes or so. The simplest solution is to store row data per line and write directly html code: line = "value1value2>... " each run of the pro

Re: html code generation

2010-01-20 Thread Jon Clements
On Jan 20, 10:03 pm, "D'Arcy J.M. Cain" wrote: > On Wed, 20 Jan 2010 21:03:10 + > > George Trojan wrote: > > I need an advice on table generation. The table is essentially a fifo, > > containing about 200 rows. The rows are inserted every few minutes or > > so. The simplest solution is to sto

Re: html code generation

2010-01-20 Thread Chris Colbert
ah ok, i misread your post. Store each 'junk' as an item in the deque. the idea is the same though. On Wed, Jan 20, 2010 at 4:55 PM, Chris Colbert wrote: > > > On Wed, Jan 20, 2010 at 4:52 PM, Chris Colbert wrote: > >> use a deque with a 'junk' as each element >> >> http://docs.python.org/librar

Re: html code generation

2010-01-20 Thread D'Arcy J.M. Cain
On Wed, 20 Jan 2010 21:03:10 + George Trojan wrote: > I need an advice on table generation. The table is essentially a fifo, > containing about 200 rows. The rows are inserted every few minutes or > so. The simplest solution is to store row data per line and write > directly html code: > li

Re: html code generation

2010-01-20 Thread Chris Colbert
On Wed, Jan 20, 2010 at 4:52 PM, Chris Colbert wrote: > use a deque with a 'junk' as each element > > http://docs.python.org/library/collections.html > > On Wed, Jan 20, 2010 at 4:03 PM, George Trojan wrote: > >> I need an advice on table generation. The table is essentially a fifo, >> containing

Re: html code generation

2010-01-20 Thread Chris Colbert
use a deque with a 'junk' as each element http://docs.python.org/library/collections.html On Wed, Jan 20, 2010 at 4:03 PM, George Trojan wrote: > I need an advice on table generation. The table is essentially a fifo, > containing about 200 rows. The rows are inserted every few minutes or so. > T

html code generation

2010-01-20 Thread George Trojan
I need an advice on table generation. The table is essentially a fifo, containing about 200 rows. The rows are inserted every few minutes or so. The simplest solution is to store row data per line and write directly html code: line = "value1value2>... " each run of the program would read the pr

Re: Source code generation using Python

2008-12-08 Thread Jorgen Grahn
versions of a C++ source code, > basically injecting different flavours of inline assembler depending > on target compiler/CPU. > > Code generation should be integrated into a 'master source file' which > is the processed and generates the right code for GCC / MSVC or other >

Re: Source code generation using Python

2008-12-07 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ats wrote: > I want to generate 3 different versions of a C++ source code, > basically injecting different flavours of inline assembler depending > on target compiler/CPU. Are you aware that there are also packages that let you generate and call C cod

Re: Source code generation using Python

2008-12-07 Thread Alia Khouri
> Any suggestions? I've happily used Cheetah with Leo (http://webpages.charter.net/ edreamleo/front.html) to organise and script my code generation needs, but you may also be happy with cog (http://nedbatchelder.com/code/ cog/). AK -- http://mail.python.org/mailman/listinfo/python-list

Re: Source code generation using Python

2008-12-06 Thread ats
ke some mistakes. > > > I want to generate 3 different versions of a C++ source code, > > basically injecting different flavours of inline assembler depending > > on target compiler/CPU. > > > Code generation should be integrated into a 'master source file' which

Re: Source code generation using Python

2008-12-06 Thread Philip Semanchuk
nline assembler depending on target compiler/CPU. Code generation should be integrated into a 'master source file' which is the processed and generates the right code for GCC / MSVC or other cases. Something like: int FastAdd( int t1, int t2 ){ int r; ##if USE_INLINE_ASM

Source code generation using Python

2008-12-06 Thread ats
r/CPU. Code generation should be integrated into a 'master source file' which is the processed and generates the right code for GCC / MSVC or other cases. Something like: int FastAdd( int t1, int t2 ){ int r; ##if USE_INLINE_ASM #ARG( eax, "t1") #ARG( eb

Re: Code generation architecture question

2008-11-14 Thread Alex_Gaynor
On Nov 14, 3:04 am, Aaron Brady <[EMAIL PROTECTED]> wrote: > On Nov 13, 7:16 pm, Alex_Gaynor <[EMAIL PROTECTED]> wrote: > > > I'm trying to figure out what the best architecture for doing code > > generation would be.  I have a set of ASTs that define a program,

Re: Code generation architecture question

2008-11-14 Thread Aaron Brady
On Nov 13, 7:16 pm, Alex_Gaynor <[EMAIL PROTECTED]> wrote: > I'm trying to figure out what the best architecture for doing code > generation would be.  I have a set of ASTs that define a program, so > what should I do to for code generation.  As I see it the 2 choices > are

Code generation architecture question

2008-11-13 Thread Alex_Gaynor
I'm trying to figure out what the best architecture for doing code generation would be. I have a set of ASTs that define a program, so what should I do to for code generation. As I see it the 2 choices are to have the ASTs have a generate code method that returns the correct code for thems

Re: An idiom for code generation with exec

2008-06-25 Thread eliben
On Jun 23, 6:44 am, eliben <[EMAIL PROTECTED]> wrote: > Thanks for all the replies in this post. Just to conclude, I want to > post a piece of code I wrote to encapsulate function creation in this > way: > > def create_function(code): > """ Create and return the function defined in code. >

Re: An idiom for code generation with exec

2008-06-25 Thread jhermann
Since nobody mentioned textwrap.dedent yet as an alternative to the old "if 1:" trick, I thought I should do so. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: An idiom for code generation with exec

2008-06-23 Thread Maric Michaud
Le Tuesday 24 June 2008 07:18:47 eliben, vous avez écrit : > > If code generation is not the best, and I fail to see any performance > > issue that could explain such a choice, except a misunderstanding of > > what "compilation" means in python, just don't use

Re: An idiom for code generation with exec

2008-06-23 Thread Terry Reedy
eliben wrote: And while we're on the topic of what compilation means in Python, It depends on the implementation. I'm not sure I fully understand the difference between compiled (.pyc) code and exec-ed code. Is the exec-ed code turned to bytecode too, i.e. it will be as efficient as comp

Re: An idiom for code generation with exec

2008-06-23 Thread eliben
> If code generation is not the best, and I fail to see any performance issue > that could explain such a choice, except a misunderstanding of > what "compilation" means in python, just don't use it, use closures or > callable instances, there are many way to achieve th

Re: An idiom for code generation with exec

2008-06-23 Thread Fuzzyman
On Jun 21, 7:52 am, Peter Otten <[EMAIL PROTECTED]> wrote: > eliben wrote: > > On Jun 20, 2:44 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > >> eliben wrote: > >> > Additionally, I've found indentation to be a problem in such > >> > constructs. Is there a workable way to indent the code at the level

Re: An idiom for code generation with exec

2008-06-23 Thread Bruno Desthuilliers
Maric Michaud a écrit : Le Monday 23 June 2008 09:22:29 Bruno Desthuilliers, vous avez écrit : With some help from the guys at IRC I came to realize your way doesn't do the same. It creates a function that, when called, creates 'foo' on globals(). This is not exactly what I need. I possibly mes

Re: An idiom for code generation with exec

2008-06-23 Thread Maric Michaud
ion for the original problem. I think these interface are not a replacement for the quick eval-exec idiom but more intended to make massive code generation programs object oriented and closer to python internals. AFAIK, the only use case I see code generation (eval - exec, playing with code objec

Re: An idiom for code generation with exec

2008-06-23 Thread Bruno Desthuilliers
eliben a écrit : d = {} execcode in globals(), d return d['foo'] My way: return function(compile(code, '', 'exec'), globals()) With some help from the guys at IRC I came to realize your way doesn't do the same. It creates a function that, when called, creates 'foo' on globals(). This

Re: An idiom for code generation with exec

2008-06-22 Thread eliben
Thanks for all the replies in this post. Just to conclude, I want to post a piece of code I wrote to encapsulate function creation in this way: def create_function(code): """ Create and return the function defined in code. """ m = re.match('\s*def\s+([a-zA-Z_]\w*)\s*\(', code) if m

Re: An idiom for code generation with exec

2008-06-22 Thread Scott David Daniels
[EMAIL PROTECTED] wrote: > On 20 juin, 21:44, eliben <[EMAIL PROTECTED]> wrote: ... >> The generic version has to make a lot of decisions at runtime, based >> on the format specification. >> Extract the offset from the spec, extract the length. ... ... > Just my 2 cents. Truth is that as long as i

Re: An idiom for code generation with exec

2008-06-21 Thread George Sakkis
f all, I see absolutely no connection between your question and > the text you quote. Is there? Or did you pick one post randomly to > post your question on? > > Second, yes - I have profiled my code. > > Third, this is a very typical torture path one has to go through when > ask

Re: An idiom for code generation with exec

2008-06-21 Thread eliben
ick one post randomly to post your question on? Second, yes - I have profiled my code. Third, this is a very typical torture path one has to go through when asking about code generation. It is true of almost all communities, except Lisp, perhaps. You have to convince everyone that you have a real

Re: An idiom for code generation with exec

2008-06-21 Thread Lie
On Jun 21, 2:02 pm, eliben <[EMAIL PROTECTED]> wrote: > On Jun 21, 8:52 am, Peter Otten <[EMAIL PROTECTED]> wrote: > > > > > eliben wrote: > > > On Jun 20, 2:44 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > > >> eliben wrote: > > >> > Additionally, I've found indentation to be a problem in such > >

Re: An idiom for code generation with exec

2008-06-21 Thread eliben
On Jun 21, 8:52 am, Peter Otten <[EMAIL PROTECTED]> wrote: > eliben wrote: > > On Jun 20, 2:44 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > >> eliben wrote: > >> > Additionally, I've found indentation to be a problem in such > >> > constructs. Is there a workable way to indent the code at the level

Re: An idiom for code generation with exec

2008-06-21 Thread Peter Otten
eliben wrote: > On Jun 20, 2:44 pm, Peter Otten <[EMAIL PROTECTED]> wrote: >> eliben wrote: >> > Additionally, I've found indentation to be a problem in such >> > constructs. Is there a workable way to indent the code at the level of >> > build_func, and not on column 0 ? >> >> exec"if 1:" + code.

Re: An idiom for code generation with exec

2008-06-20 Thread eliben
On Jun 20, 2:44 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > eliben wrote: > > Additionally, I've found indentation to be a problem in such > > constructs. Is there a workable way to indent the code at the level of > > build_func, and not on column 0 ? > > exec"if 1:" + code.rstrip() > > Peter Why

Re: An idiom for code generation with exec

2008-06-20 Thread eliben
>d = {} > execcode in globals(), d > return d['foo'] > > My way: > > return function(compile(code, '', 'exec'), globals()) > With some help from the guys at IRC I came to realize your way doesn't do the same. It creates a function that, when called, creates 'foo' on globals(). This is not

Re: An idiom for code generation with exec

2008-06-20 Thread eliben
> So you are saying that for example "if do_reverse: data.reverse()" is > *much* slower than "data.reverse()" ? I would expect that checking the > truthness of a boolean would be negligible compared to the reverse > itself. Did you try converting all checks to identity comparisons with > None ? I m

Re: An idiom for code generation with exec

2008-06-20 Thread [EMAIL PROTECTED]
On 20 juin, 21:44, eliben <[EMAIL PROTECTED]> wrote: > On Jun 20, 3:19 pm, George Sakkis <[EMAIL PROTECTED]> wrote: > (snip) > > It's still not clear why the generic version is so slower, unless you > > extract only a few selected fields, not all of them. Can you post a > > sample of how you used

Re: An idiom for code generation with exec

2008-06-20 Thread [EMAIL PROTECTED]
On 20 juin, 21:41, eliben <[EMAIL PROTECTED]> wrote: > > [1] except using compile to build a code object with the function's > > body, then instanciate a function object using this code, but I'm not > > sure whether it will buy you much more performance-wise. I'd personnaly > > prefer this because

Re: An idiom for code generation with exec

2008-06-20 Thread George Sakkis
[EMAIL PROTECTED]> wrote: > > > > eliben a écrit :> Hello, > > > > > > In a Python program I'm writing I need to dynamically generate > > > > > functions[*] > > > > > (snip) > > > > > > [*] I know that each ti

Re: An idiom for code generation with exec

2008-06-20 Thread eliben
t; > > In a Python program I'm writing I need to dynamically generate > > > > functions[*] > > > > (snip) > > > > > [*] I know that each time a code generation question comes up people > > > > suggest that there's a better way to ach

Re: An idiom for code generation with exec

2008-06-20 Thread eliben
> [1] except using compile to build a code object with the function's > body, then instanciate a function object using this code, but I'm not > sure whether it will buy you much more performance-wise. I'd personnaly > prefer this because I find it more explicit and readable, but YMMV. > How is com

Re: An idiom for code generation with exec

2008-06-20 Thread eliben
> FWIW, when I had a similar challenge for dynamic coding, I just > generated a py file and then imported it. This technique was nice > because can also work with Pyrex or Psyco. > I guess this is not much different than using exec, at the conceptual level. exec is perhaps more suitable when you

Re: An idiom for code generation with exec

2008-06-20 Thread Dan Yamins
On Fri, Jun 20, 2008 at 3:17 AM, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: Just to make things clear: you do know that you can dynamically build > functions without exec, do you ? Actually, I don't know how to do this, but would like to. Can you point me to a place where I can read more a

Re: An idiom for code generation with exec

2008-06-20 Thread Bruno Desthuilliers
eliben a écrit : On Jun 20, 9:17 am, Bruno Desthuilliers wrote: eliben a écrit :> Hello, In a Python program I'm writing I need to dynamically generate functions[*] (snip) [*] I know that each time a code generation question comes up people suggest that there's a better w

Re: An idiom for code generation with exec

2008-06-20 Thread Raymond Hettinger
On Jun 20, 5:03 am, eliben <[EMAIL PROTECTED]> wrote: > I've rewritten it using a dynamically generated procedure > for each field, that does hard coded access to its data. For example: > > def get_counter(packet): >   data = packet[2:6] >   data.reverse() >   return data > > This gave me a huge sp

Re: An idiom for code generation with exec

2008-06-20 Thread George Sakkis
On Jun 20, 8:03 am, eliben <[EMAIL PROTECTED]> wrote: > On Jun 20, 9:17 am, Bruno Desthuilliers > [EMAIL PROTECTED]> wrote: > > eliben a écrit :> Hello, > > > > In a Python program I'm writing I need to dynamically generate > > > functions[*] >

Re: An idiom for code generation with exec

2008-06-20 Thread Peter Otten
eliben wrote: > Additionally, I've found indentation to be a problem in such > constructs. Is there a workable way to indent the code at the level of > build_func, and not on column 0 ? exec "if 1:" + code.rstrip() Peter -- http://mail.python.org/mailman/listinfo/python-list

Re: An idiom for code generation with exec

2008-06-20 Thread eliben
On Jun 20, 9:17 am, Bruno Desthuilliers wrote: > eliben a écrit :> Hello, > > > In a Python program I'm writing I need to dynamically generate > > functions[*] > > (snip) > > > [*] I know that each time a code generation question comes up people > &g

Re: An idiom for code generation with exec

2008-06-20 Thread Bruno Desthuilliers
eliben a écrit : Hello, In a Python program I'm writing I need to dynamically generate functions[*] (snip) [*] I know that each time a code generation question comes up people suggest that there's a better way to achieve this, without using exec, eval, etc. Just to make things

An idiom for code generation with exec

2008-06-19 Thread eliben
def build_func(args): code """def foo(...)...""" d = {} exec code in globals(), d return d['foo'] My question is, considering that I really need code generation[*] - "is there a cleaner way to do this ?" Also, what happens if I replace

Cython code generation for Py3 complete

2008-05-22 Thread Stefan Behnel
Hi, just a quick announcement that I finished the port of the Cython compiler to the Py3 target platform. While you cannot currently run Cython itself in Py3, you can build the generated C sources unchanged under Py2.3 through 3.0a5. http://cython.org/ There isn't a release yet (though there

Re: wsdl (soap) without code generation

2008-04-04 Thread Thomas Guettler
... Thank you for your answers. I tried to parse the wsdl with two libraries. (axis2 (java) and SOAPPy). Both fail because there is no entry for 'service'. The wsdl is from SAP XI. Has someone hints? Thomas -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guett

Re: wsdl (soap) without code generation

2008-04-02 Thread sam
roubles after system upgrade and regenerating stub. > This project uses code generation. That's something > I don't like. But after you have generated files it is easy to use that tool -- just call a function and grab result. With ZSI you don't have to generate code, but y

Re: wsdl (soap) without code generation

2008-04-02 Thread João Neves
On Apr 2, 3:06 pm, Thomas Guettler <[EMAIL PROTECTED]> wrote: > Hi, > > I looked for a solution to talk to a web service which > offers its signature with a wsdl file. > > I googled for 'wsdl python' and found ZSI. > > This project uses code generation.

wsdl (soap) without code generation

2008-04-02 Thread Thomas Guettler
Hi, I looked for a solution to talk to a web service which offers its signature with a wsdl file. I googled for 'wsdl python' and found ZSI. This project uses code generation. That's something I don't like. The book 'dive into python' uses SOAPpy. This looks bet

Re: strange problems with code generation

2006-12-02 Thread [EMAIL PROTECTED]
I changed that and the writelines and I am very close now. thanks. Dennis Lee Bieber wrote: > On 1 Dec 2006 17:24:18 -0800, "[EMAIL PROTECTED]" > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > > data = sys2.stdin.readlines() > > And what do you expect to read from

Re: strange problems with code generation

2006-12-02 Thread [EMAIL PROTECTED]
It is left over from the example I stold it from, I remove it and see if that helps. Dennis Lee Bieber wrote: > On 1 Dec 2006 17:24:18 -0800, "[EMAIL PROTECTED]" > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > > data = sys2.stdin.readlines() > > And what do you ex

Re: strange problems with code generation

2006-12-01 Thread [EMAIL PROTECTED]
I never see anything from print(data). The example I tried to adapt using readlines may be a little old or something. I did close all the files to prevent problems when I figure out what is wrong with what I have. John Machin wrote: > You say "I am sure the readlines code is crashing it." I ca

Re: strange problems with code generation

2006-12-01 Thread John Machin
You say "I am sure the readlines code is crashing it." I can't imagine how you can be sure of anything, but yes, it is a possibility that sys.stdin.readlines() might behave strangely when called from a GUI kit. Why from sys.stdin anyway? You have two *known* definite problems (not closing your out

Re: strange problems with code generation

2006-12-01 Thread [EMAIL PROTECTED]
John Machin wrote: > [EMAIL PROTECTED] wrote: > > I am writing out zero byte files with this (using python 2.5). I have > > no idea why I am having that problem > > Which output file(s) do you mean, temp.orc or temp.sco or both? > Two possible causes outlined below. > > > I am also looking for an

Re: strange problems with code generation

2006-12-01 Thread John Machin
[EMAIL PROTECTED] wrote: > I am writing out zero byte files with this (using python 2.5). I have > no idea why I am having that problem Which output file(s) do you mean, temp.orc or temp.sco or both? Two possible causes outlined below. > I am also looking for an example > of readlines where I ca

strange problems with code generation

2006-12-01 Thread [EMAIL PROTECTED]
I am writing out zero byte files with this (using python 2.5). I have no idea why I am having that problem, I am also looking for an example of readlines where I can choose a number of lines say lines 12 to 14 and then write them back to disk. any help would be apreaceted. import sys as sys2 i

Re: Template language with XPath support for source code generation?

2006-01-13 Thread kent37
Stefan Behnel wrote: > I've been looking through Python templating systems all over the place, but I > just can't find one that supports XPath - which is by far the best thing to > have when you generate stuff from XML. TAL might be able to get me part of the > way (at least, it supports some kind

Re: Template language with XPath support for source code generation?

2006-01-13 Thread Stefan Behnel
und that I need a template system that supports >> Python interaction. I know, lxml's XSLT support is /somewhat/ getting there, >> but even with that, XSLT is so clumsy when it comes to code generation >> (looping constructs and if/else above all), that it would take me t

Re: Template language with XPath support for source code generation?

2006-01-12 Thread bruno at modulix
tem that supports > Python interaction. I know, lxml's XSLT support is /somewhat/ getting there, > but even with that, XSLT is so clumsy when it comes to code generation > (looping constructs and if/else above all), that it would take me tons of XSLT > code to write what I want. >

Template language with XPath support for source code generation?

2006-01-12 Thread Stefan Behnel
LT support is /somewhat/ getting there, but even with that, XSLT is so clumsy when it comes to code generation (looping constructs and if/else above all), that it would take me tons of XSLT code to write what I want. I've been looking through Python templating systems all over the place, b

Re: UML to Python/Java code generation

2005-06-21 Thread Philippe C. Martin
Try this: http://uml.sourceforge.net/index.php Regards, Philippe Maurice LING wrote: > Hi, > > Is there any UML tools that is able to take UML and generate Python codes? > > Cheers > Maurice -- http://mail.python.org/mailman/listinfo/python-list

Re: UML to Python/Java code generation

2005-06-21 Thread Mike P.
uch things, but I doubt > that any current tool is much better except for trivial > subsets of UML. Have a look at Enterprise Architect from Sparx Systems (http://www.sparxsystems.com.au). It is a really nice UML tool that is also affordable. I have also used Rational Rose since about 96-97,

Re: UML to Python/Java code generation

2005-06-20 Thread Magnus Lycka
James wrote: > The brain may be fine for generating Python from UML but it is MANY > MANY orders of magnitude harder to generate UML from code with just > your brain than using a tool (usually zero effort and error free) no > matter how good you are at Python. I've really only used Rational Rose,

Re: UML to Python/Java code generation

2005-06-17 Thread James
Peter Dembinski wrote: > "Grigoris Tsolakidis" <[EMAIL PROTECTED]> writes: > > > There is tool to generate UML from Python Code... > > The best is human brain. No! It isn't. In fact, it's the worst. The brain may be fine for generating Python from UML but it is MANY MANY orders of magnitude harde

Re: UML to Python/Java code generation

2005-06-17 Thread Peter Dembinski
"Grigoris Tsolakidis" <[EMAIL PROTECTED]> writes: > There is tool to generate UML from Python Code... The best is human brain. -- http://mail.python.org/mailman/listinfo/python-list

Re: UML to Python/Java code generation

2005-06-16 Thread Maurice LING
Thanks James. I've googled a few times and it is always tools that generates UML from Python codes that comes up in the top hits, which brings me to wonder if there is something that does the opposite. maurice James wrote: >>Is there any UML tools that is able to take UML and generate Python co

Re: UML to Python/Java code generation

2005-06-16 Thread James
> Is there any UML tools that is able to take UML and generate Python codes? Dia2code generates Python from UML. Boa Constructor generates UML from Python. PyUt. Object Domain's UML Tool (Commercial) You need to use Google. -- http://mail.python.org/mailman/listinfo/python-list

Re: UML to Python/Java code generation

2005-06-16 Thread Paul McGuire
Enterprise Architect (http://www.sparxsystems.com.au/) supports an add-in that will generate Python from UML diagrams. Once you install EA, follow the instructions for adding the Python technology resource, which is a free download from the EA website. Will also generate UML from Python source.

Re: UML to Python/Java code generation

2005-06-16 Thread Grigoris Tsolakidis
There is tool to generate UML from Python Code... "Maurice LING" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > Is there any UML tools that is able to take UML and generate Python codes? > > Cheers > Maurice -- http://mail.python.org/mailman/listinfo/python-list

UML to Python/Java code generation

2005-06-15 Thread Maurice LING
Hi, Is there any UML tools that is able to take UML and generate Python codes? Cheers Maurice -- http://mail.python.org/mailman/listinfo/python-list