Re: string splitting

2006-10-17 Thread stefaan
> Anyone have any ideas? l = "wisconsin_state.txt" l.split(".")[0].split("_")[-1] Explanation: --- the split(".")[0] part takes everything before the "." the split("_")[-1] part selects in the last element in the list of substrings which are separated by "_" -- http://mail.pyth

Re: DAO and Access97 WHERE clause fails

2007-06-09 Thread stefaan
amor.org/docs/dejavu/1.5.0RC1/) to access MS ACCESS databases recently. Bestregards, Stefaan. -- http://mail.python.org/mailman/listinfo/python-list

Re: S2K DTS and Python

2007-07-10 Thread stefaan
> > However, I now want to update some tables in MSAccess, and it occurred > > to me that because Sequel Server 2000 DTS can interface with scripting > > languages that maybe I could call my first Python program from within > > DTS and then update the tables using DTS. (I am learning DTS hence the

Re: (Modular-)Application Framework / Rich-Client-Platform in Python

2007-05-18 Thread stefaan
but also there I am not sure about the status: http://pyxides.stani.be/ Best regards, Stefaan. -- http://mail.python.org/mailman/listinfo/python-list

XML based programming language

2007-03-18 Thread stefaan
rsive descent parser manually ? Best regards, Stefaan. -- http://mail.python.org/mailman/listinfo/python-list

Re: XML based programming language

2007-03-19 Thread stefaan
Thank you Diez for answering. As far as I can see, it more or less corresponds to what I have. But my question was perhaps more this: "If elementtree is "lex", what is "yacc" ? " -- http://mail.python.org/mailman/listinfo/python-list

Re: XML based programming language

2007-03-19 Thread stefaan
ge is written in > XML, that's all there is to it. I see your point. But yacc does more: I specify a grammar, and yacc will reject input files that do not conform to the grammar. Elementtree OTOH will happily accept any valid XML file, all checking has to implememented manually by me. Be

Re: XML based programming language

2007-03-19 Thread stefaan
> All of these are grammar-specifications that allow you to define the > structure of your XML-documents with more constraints. Ok, I should have foreseen the schema checker answer...my point really is that yacc can do even more than just checking the conformance to a grammar. It also allows me t

Re: XML based programming language

2007-03-20 Thread stefaan
> Don't you think the lex/yacc combo is complex even in anything in > real-life? If real-life means: C++, then yes, it is impossible :) If real-life means: some domain specific language, then it is ok. >The "XML tree simplification implementations" (as Elementtree > can be considered) has other co

Re: XML based programming language

2007-03-22 Thread stefaan
Thank you for all the answers! Stefaan. -- http://mail.python.org/mailman/listinfo/python-list

difflib.HtmlDiff

2007-01-13 Thread stefaan
important for my task at hand. Does it make sense performance-wise to use e.g. GNU diff to generate a line-by-line diff, then use SequenceMatcher to find intraline changes? Google is my friend, but so far it didn't turn up much practical results :s Thanks for any insights you may share. St

storing setup.py (for py2exe) in other directory than main script directory

2008-01-04 Thread stefaan
command in the code folder: python win32specific\setup.py py2exe Alternative suggestions also welcome! Best regards, Stefaan. -- http://mail.python.org/mailman/listinfo/python-list

Re: Implicit initialization is EXCELLENT

2011-07-05 Thread Stefaan Himpe
.. I can't find the original article I read! My google-fu has failed me (again...). I don't suppose anyone can recognise it and can point me at it? My sarcasm detector warns me not to add a link, although perhaps it's time for recalibration (after all, summer season started) :-

Re: Implicit initialization is EXCELLENT

2011-07-06 Thread Stefaan Himpe
No! I was serious. I've spent *ages* trying to find the link to the article... if you know it, please share. Ok - I thought you were referring to some troll's rant with similar title. I'm probably way off, but were you referring to the RAII technique? http://en.wikipedia.org/wiki/Resource_A

Re: list comprehension to do os.path.split_all ?

2011-07-28 Thread Stefaan Himpe
r exact requirements are, but the following seems to work: pathname = '/home/gyoung/hacks/pathhack/foo.py' print pathname[1:].split("/") Note that this would only work for absolute linux paths (i.e. starting with "/"). Best regards, Stefaan. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python IDE/text-editor

2011-04-16 Thread Stefaan Himpe
Here's a mockup of the app I'm looking for: http://i52.tinypic.com/2uojswz.png Which would you recommend? You drew editra! http://editra.org/preview -- http://mail.python.org/mailman/listinfo/python-list

Re: Python IDE/text-editor

2011-04-27 Thread Stefaan Himpe
Thanks for all the suggestions, glad I found the right one! You're welcome :D -- http://mail.python.org/mailman/listinfo/python-list

Re: Easiest framework to develop simple interactive web site in python?

2011-09-12 Thread Stefaan Himpe
The simplest one to learn is web2py http://www.web2py.com No configuration needed, just unpack and get started. It also has very good documentation and tons of little examples to get things done. The other options you mentioned are good too :) -- http://mail.python.org/mailman/listinfo/python-

Re: Usefulness of the "not in" operator

2011-10-08 Thread Stefaan Himpe
st regards, Stefaan. -- http://mail.python.org/mailman/listinfo/python-list

auto upgrade scripts?

2006-09-11 Thread stefaan . himpe
Hello list, Is anyone aware of a (light-weight, easy-to-use) auto-upgrade framework for python scripts? I find it hard to believe no one has wanted this before, yet google doesn't find too much relevant stuff. Thanks, Best regards, Stefaan. -- http://mail.python.org/mailman/listinfo/p

Re: auto upgrade scripts?

2006-09-12 Thread stefaan . himpe
n .net (*shudder*) ;) Best regards, Stefaan. -- http://mail.python.org/mailman/listinfo/python-list

Re: auto upgrade scripts?

2006-09-13 Thread stefaan . himpe
> Since you mention .NET and didn't state otherwise, I'm assuming > Windows platform? No, I need both linux and windows. I guess this means I'll have to make something myself ... Thanks, and best regards, Stefaan. -- http://mail.python.org/mailman/listinfo/python-list

Re: Pythonic way to determine if one char of many in a string

2009-02-16 Thread Stefaan Himpe
print "a, b or c occurs in the string 'something expected'" Best regards, Stefaan. -- http://mail.python.org/mailman/listinfo/python-list

Re: p2exe for python 2.6

2008-10-22 Thread Stefaan Himpe
GUI2EXE [1] as a graphical front-end to these tools (never tried this myself). Best regards, Stefaan. [1] http://xoomer.alice.it/infinity77/main/GUI2Exe.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Building musical chords starting from (a lot of) rules

2008-11-15 Thread Stefaan Himpe
to add some extra information in the look-up tables or you need to pass extra information to the chord construction recipe at the moment of creating a chord, but that is left as an excercise to you - the interested reader ;) HTH, Stefaan. -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Python after a few years of Ruby

2009-04-14 Thread Stefaan Himpe
e to do so (e.g. py2exe, http://www.py2exe.org) 3) Web frameworks I quite like the powerful and very intuitive and easy to use web2py (http://www.web2py.com). (not to be confused with the minimalist web framework web.py, http://webpy.org). Best regards, Stefaan. -- http://mail.python.org/m

Re: html ui + py background? any tut?

2009-05-23 Thread Stefaan Himpe
Perhaps you want to investigate pyjamas[1] and pyjamas-desktop[2] [1] http://pyjs.org/ [2] http://pyjd.sourceforge.net/ Best regards, Stefaan. -- http://mail.python.org/mailman/listinfo/python-list

Re: html ui + py background? any tut?

2009-05-23 Thread Stefaan Himpe
Or maybe you are looking for something like nufox? http://nufox.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: regarding SWIG

2008-07-22 Thread Stefaan Himpe
ts of your API you want to expose in python. HTH, Stefaan. -- http://mail.python.org/mailman/listinfo/python-list

Re: I donä't get while-loops

2008-08-02 Thread Stefaan Himpe
def read2(): expr = "" while expr != "quit": expr = raw_input("Lisp> ") print parse(expr) read2() ^ print "Good session!" You shouldn't call read2() inside read2()... just remove that line and retry... Each time you call read2() recursivel

Re: Profiling weirdness: Timer.timeit(), fibonacci and memoization

2008-08-02 Thread Stefaan Himpe
takes fib(9) and fib(8) from memory and adds them together. Best regards, Stefaan. -- http://mail.python.org/mailman/listinfo/python-list

Re: raw_input on several lines

2008-08-02 Thread Stefaan Himpe
How can I change this behavior, so that another action is needed to stop the input? For example, CTRL-G. It would allow the user to input several lines. I don't think you can change raw_input's behaviour in this respect, but you could build something yourself that's based on interpretation o

Re: Distribution of Python Scripts

2010-11-19 Thread Stefaan Himpe
So, what's my options. Maybe this page can give some inspiration? http://wiki.python.org/moin/deployment -- http://mail.python.org/mailman/listinfo/python-list

Re: A web site using Python

2010-12-09 Thread Stefaan Himpe
1. Pick a web framework, I'd suggest looking at: web2py: http://web2py.com - probably the easiest to install (no configuration needed) and learn. Suitable for both small and big projects. No worries when upgrading to a newer version as backward compatibility is an explicit design goal. -- h

surprised by import in python 2.6

2010-12-10 Thread Stefaan Himpe
gt;> test.a = 4 >>> test.f() 4 Somehow, in the first session I cannot modify the global variable a returned from f, but in the second session I can. To my eye, the only difference seems to be a namespace. Can anyone shine some light on this matter? Thanks, Stefaan. -- http://mail.python.org/mailman/listinfo/python-list

Re: Reactive programming in Python ?

2010-04-16 Thread Stefaan Himpe
You can find more information on this project at www.yoopf.org. Your comments are more than welcome! Is this something similar to trellis? http://pypi.python.org/pypi/Trellis -- http://mail.python.org/mailman/listinfo/python-list

Re: Only one forum app in Python?

2010-07-09 Thread Stefaan Himpe
Is Pocoo really the only solution available out there? No. See e.g. http://www.pyforum.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: can python make web applications?

2009-08-23 Thread Stefaan Himpe
Deep_Feelings wrote: can python make powerfull database web applications that can replace desktop database applications? e.g: entrprise accounting programs,enterprise human resource management programs ...etc In addition to the recommendations by other people, I'd like to recommend the very eas

Re: Spreadsheet-style dependency tracking

2010-10-21 Thread Stefaan Himpe
, Stefaan. -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-10-09 Thread Stefaan A Eeckels
mplex technology equates to an improvement. Example: it's not because we can use a gazillion typefaces in pastel colours that documents that we should do so. Take care, -- Stefaan -- As complexity rises, precise statements lose meaning, and meaningful statements lose precision. -- Lotfi Zadeh -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-10-09 Thread Stefaan A Eeckels
he mail can be verified independently, would be very useful. The problem is to get everyone to use digital signatures, and to ensure that such a signature can be linked to an individual or business. I've no illusions here. Take care, -- Stefaan -- As complexity rises, precise statements lose meaning, and meaningful statements lose precision. -- Lotfi Zadeh -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-10-09 Thread Stefaan A Eeckels
eos, musical tunes, animated waving hands, sixty fonts, and looks like it's been done with crayolas? Good grief, man, think like a three year old!" -- Stefaan -- As complexity rises, precise statements lose meaning, and meaningful statements lose precision. -- Lotfi Zadeh -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-10-14 Thread Stefaan A Eeckels
On Wed, 12 Oct 2005 22:04:14 GMT Roedy Green <[EMAIL PROTECTED]> wrote: > On Mon, 10 Oct 2005 00:42:18 +0200, Stefaan A Eeckels > <[EMAIL PROTECTED]> wrote or quoted : > > >"I don't understand that attitude. Don't we want email that has > >

Re: Python popenX() slowness on AIX?

2006-11-24 Thread Stefaan A Eeckels
On 24 Nov 2006 09:03:41 -0800 [EMAIL PROTECTED] wrote: > Stefaan A Eeckels wrote: > > On 21 Nov 2006 13:02:14 -0800 > > [EMAIL PROTECTED] wrote: > > > > > The fact that it does this in Python code instead of C is the main > > > cause of the slowness.