> 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
amor.org/docs/dejavu/1.5.0RC1/) to access MS ACCESS databases
recently.
Bestregards,
Stefaan.
--
http://mail.python.org/mailman/listinfo/python-list
> > 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
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
rsive descent parser manually ?
Best regards,
Stefaan.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
> 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
> 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
Thank you for all the answers!
Stefaan.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
.. 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) :-
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
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
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
Thanks for all the suggestions, glad I found the right one!
You're welcome :D
--
http://mail.python.org/mailman/listinfo/python-list
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-
st regards,
Stefaan.
--
http://mail.python.org/mailman/listinfo/python-list
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
n .net (*shudder*) ;)
Best regards,
Stefaan.
--
http://mail.python.org/mailman/listinfo/python-list
> 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
print "a, b or c occurs in the string 'something expected'"
Best regards,
Stefaan.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
Or maybe you are looking for something like nufox?
http://nufox.berlios.de/
--
http://mail.python.org/mailman/listinfo/python-list
ts of your API
you want to expose in python.
HTH,
Stefaan.
--
http://mail.python.org/mailman/listinfo/python-list
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
takes fib(9) and fib(8) from memory and adds them together.
Best regards,
Stefaan.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
,
Stefaan.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
> >
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.
44 matches
Mail list logo