Has anyone implementing something like what the subject line
indicates?
The idea:
To run functions that execute a series of system commands without
blocking the ui, *and* without adding state machine logic.
The syntax would be something like:
def work():
showstatus(building)
r = yield
On Jan 14, 2:57 pm, sturlamolden sturlamol...@yahoo.no wrote:
According to a Norwegian publication, Nokia will release Qt under LGPL
as of version 4.5.
If I had stocks in Riverbank Computing ltd., I would sell them now...
Isn't that a tad thankless and premature?
It may be that the support
On May 8, 8:11 pm, Ricardo Aráoz [EMAIL PROTECTED] wrote:
All these examples assume your regular expression will not span multiple
lines, but this can easily be the case. How would you process the file
with regular expressions that span multiple lines?
re.findall/ finditer, as I said earlier.
On May 6, 11:27 pm, hdante [EMAIL PROTECTED] wrote:
GPL can mix with other free software licenses, so people who write
BSD code and do not wish to remain BSD clean are free to use GPL'd
code. That's the important point.
No, it can't. It can only mix through aggregation, i.e. you can ship a
On May 6, 10:42 pm, Anton Slesarev [EMAIL PROTECTED] wrote:
flines = (line for line in f if pat.search(line))
What about re.findall() / re.finditer() for the whole file contents?
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 9, 2:25 pm, Mage [EMAIL PROTECTED] wrote:
Before spending much time for investigating, I would like to ask you: is
Pylons the framework I look for if I want to come back to Python and
develop MVC web apps?
Why not play with Django and the Google App Engine that everyone is
raving
I just noticed that pywin32 does not work with vista directly (tried
import win32clipboard, = ImportError). The problem is the installer
name; it's the usual
pywin32-210-win32-py2.5.exe
It needs to be renamed to:
pywin32-210.win32-setup-py2.5.exe
In order for vista to catch it as installer.
On Apr 6, 8:10 pm, Edward K Ream [EMAIL PROTECTED] wrote:
- Completed ILeo: a bridge between IPython and Leo.
See http://webpages.charter.net/edreamleo/IPythonBridge.html
Additional note: to use ILeo, you need a new IPython. Download the not-
yet-blessed release candidate (I don't foresee
On Feb 23, 10:54 pm, Ricardo Aráoz [EMAIL PROTECTED] wrote:
Are you part of Leo? This smells like a marketing scheme to me.
Yes, Edward is part of Leo and I am part of IPython. In fact, most of
my income comes from selling IPython T-shirts at the local flea market
and I therefore have to resort
Here is something cool that will rock your world (ok, excuse the
slight hyperbole):
Introduction
The purpose of ILeo, or leo-ipython bridge, is being a two-way
communication
channel between Leo and IPython. The level of integration is much
deeper than
conventional integration in
Hi all,
The IPython team is happy to release version 0.8.2, with lots of new
enhancements (especially for system shell use - it has never been a
better time
for switching to pysh or ipython -p sh as your system shell of
choice),
as well as many bug fixes.
We hope you all enjoy it, and please
Some of you might want to play with IPyKit, especially you need a
swiss-army-knife Python prompt on a (win32) machine where you don't
really want to install anything (python, pyreadline, ipython, PATH
settings...).
It's basically a py2exe'd preconfigured IPython.
Hi all,
The IPython team is happy to release version 0.7.3, with a lot of new
enhancements, as well as many bug fixes (including full Python 2.5
support).
We hope you all enjoy it, and please report any problems as usual.
WHAT is IPython?
1. An interactive shell superior to
Something I forgot to emphasize in the announcement, knowing that not
everyone reads the release notes - if you are upgrading from a previous
version of IPython, you must either:
- Delete your ~/ipython (or ~/_ipython) directory OR
- Run %upgrade once IPython starts.
--
Ville Vainio wrote:
Something I forgot to emphasize in the announcement, knowing that not
everyone reads the release notes - if you are upgrading from a previous
version of IPython, you must either:
- Delete your ~/ipython (or ~/_ipython) directory OR
- Run %upgrade once IPython starts
Ville Vainio wrote:
Something I forgot to emphasize in the announcement, knowing that not
everyone reads the release notes - if you are upgrading from a previous
version of IPython, you must either:
- Delete your ~/ipython (or ~/_ipython) directory OR
- Run %upgrade once IPython starts
Hi all,
The IPython team is happy to release version 0.7.3, with a lot of new
enhancements, as well as many bug fixes (including full Python 2.5
support).
We hope you all enjoy it, and please report any problems as usual.
WHAT is IPython?
1. An interactive shell superior to
Something I forgot to emphasize in the announcement, knowing that not
everyone reads the release notes - if you are upgrading from a previous
version of IPython, you must either:
- Delete your ~/ipython (or ~/_ipython) directory OR
- Run %upgrade once IPython starts.
--
Yes, next version of IPython is closing in on final release around the
years end, with lots of new exiting features (full list TBD, but it
*does* include proper python 2.5 support if that's what you've been
waiting for).
Get the 0.7.3 beta 2 it at
Yes, next version of IPython is closing in on final release around the
years end, with lots of new exiting features (full list TBD, but it
*does* include proper python 2.5 support if that's what you've been
waiting for).
Get the 0.7.3 beta 2 it at
This comes in a bit of a hurry (you only have time until next monday to
sign up), but here's the deal:
The next version of ipython (0.7.2, out soon, pretty much done
already) will include an extension for browsing and manipulating
tabular data (e.g. file name, file size, permissions etc.) called
Duncan Booth wrote:
Looking in the 'obvious' place in the Tutorial, section 5.1 'More on
Lists' I found in the immediately following section 5.2 'The del
statement':
I read the tutorial 6 years ago, and don't read it regularly. What's in
the tutorial is not really important, what can be
Raymond Hettinger wrote:
* easier to figure-out, look-up, and remember than either s[:]=[] or
del s[:]
Easier is an understatement - it's something you figure out
automatically. When I want to do something w/ an object, looking at its
methods (via code completion) is the very first thing.
*
Ville Vainio wrote:
Assigning to slices is much less important, and is something I always
never do (and hence forget).
ALMOST never, of course.
--
http://mail.python.org/mailman/listinfo/python-list
I tried to clear a list today (which I do rather rarely, considering
that just doing l = [] works most of the time) and was shocked, SHOCKED
to notice that there is no clear() method. Dicts have it, sets have it,
why do lists have to be second class citizens?
--
Fredrik Lundh wrote:
I tried to clear a list today (which I do rather rarely, considering
that just doing l = [] works most of the time) and was shocked, SHOCKED
to notice that there is no clear() method. Dicts have it, sets have it,
why do lists have to be second class citizens?
Steven Bethard wrote:
If you feel really strongly about this though, you might consider
writing up a PEP. It's been contentious enough that there's not much
chance of getting a change without one.
No strong feelings here, and I'm sure greater minds than me have
already hashed this over
John Salerno wrote:
Thanks guys, your explanations are really helpful. I think what had me
confused at first was my understanding of what L[:] does on either side
of the assignment operator. On the left, it just chooses those elements
and edits them in place; on the right, it makes a copy of
Sybren Stuvel wrote:
Why forget it? I've written my own web framework
(http://www.unrealtower.org/) and it works great! It was a good
Some reasons:
- Waste. When you write your own framework, you are helping yourself.
If you use an existing framework and possibly contribute patches to it,
you
Bo Yang wrote:
There are very good web framework for java and ruby ,
Is there one for python ?
There are many good ones.
I want to write a web framework for python based on
mod_python as my course homework , could you give some
advise ?
Implement yet another web framework? It needs to be
Torsten Bronger wrote:
Has Wax exceeded the critical mass so that one can be quite certain
that it will still be maintained, say, next year? (Sincere question
since I don't know.)
I was a bit worried about this myself, but after browsing the source I
have to say I'm not terribly so anymore.
OS. Editing the C++ code works, debugging
doesn't, at least yet.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
. ctrl+m is maximize/unmaximize.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
keystrokes less.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
shell) could also be much richer, providing hooks for
calling own stuff for just-in-time error handling, progress
notification etc.
So no, it doesn't seem like bad idea at all. It's also something that
could evolve gradually, and reach a useful stage (i.e. have several
handy tools) quickly.
--
Ville
people can't be bothered to change the subject
line...
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
:
Shane http://scriptures.lds.org/rev/13/16-18#16
Shane http://www.greaterthings.com/Word-Number/666HolyBible.htm
Ah, it was *obvious* from the start that the placement of ASCII
letters was a conspiracy of american freemasons...
--
Ville Vainio http://tinyurl.com/2prnb
--
http
')
Peter 'spanish inquisition'.index('parrot')
But which one raises an exception, and which one returns -1?
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
for exception.
Or something about the use of index finger being an exception from the
conventional strategy...
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
Christian defined by simple and static enough to be compilable.
Could it be possible to tag some modules in application code as
RPython-compatible, making it possible to implement the speed critical
parts in RPython?
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo
Ville == Ville Vainio [EMAIL PROTECTED] writes:
Ville This is not about PyPy but it might help:
Ville http://www.python.org/pycon/dc2004/papers/1/paper.pdf
(It's about starkiller, sorry about the opaque url)
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org
= MyClass(12,13)
There is no equivalent to
MyClass c(12,13);
because it's not needed.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
brian == brian [EMAIL PROTECTED] writes:
brian to build expertise and confidence, etc. People are more
brian important than programming language.
Or so you would think before writing sizeable software in C++.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org
for 34DEG pythonistas. All will
be cleared for lower degree aspirants in due time.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
locking(lock):
Tony CODE
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
...
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
prefer to leave the decision of
pulling the trigger on the foot for the implementor of the block
function, with the recommendation that all exceptions are
propagated. What happened to we are all adults here?
I don't mind much, though, the new proposal looks good as well.
--
Ville Vainio http
). Blocking is reserved for the modem, just the way
it should be...
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
fonts, it doesn't work terribly well.
Hmm, do you consider the fonts in a console window unreadable? I've
given a few presentations using ipython on win32 and it worked alright
- but I suppose the projector quality is a factor here...
--
Ville Vainio http://tinyurl.com/2prnb
--
http
conversion:
http://www.onlamp.com/pub/a/python/2004/02/26/python_server_pages.html
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
Kent == Kent Johnson [EMAIL PROTECTED] writes:
Kent if frequency.has_key(word):
Kent frequency[word] += 1
Kent else:
Kent frequency[word] = 1
This is a good place to use 'get' method of dict:
frequency[word] = frequency.get(word,0) + 1
--
Ville Vainio http://tinyurl.com
quite a feature.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
pydev == Brian Beck [EMAIL PROTECTED] writes:
pydev * PyDev isn't yet mature enough to make it practical for me
What version? PyDev has increased in maturity quite a bit lately.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
completion.
It works like that for me.
I type:
import os
os.wait a second
And I get the list of completions.
Perhaps you are just being impatient?
Also, make sure that Preferences/pydev/code completion has
Autocomplete on '.' box checked.
--
Ville Vainio http://tinyurl.com/2prnb
--
http
mailing list might work as well.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
Brian == Brian Beck [EMAIL PROTECTED] writes:
Brian Ville Vainio wrote:
Perhaps you are just being impatient?
Also, make sure that Preferences/pydev/code completion has
Autocomplete on '.' box checked.
Brian Yeah, that option is enabled. I actually just discovered
are implemented in Python are
Emre there any documents or articles about it, which I can read
Emre and get an idea.
It's built around string lookup.
obj.stuff() - look up what object is associated with string 'stuff',
get the object, see how it can be called, call it.
--
Ville Vainio http
re.VERBOSEre.compilere.match re.template
re.M re.X re.engine re.purge re.__class__
[~]|129 re.
ISTR the completion can be added to plain old python prompt as well,
through rlcompleter.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org
.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
of the LC variable that is visible outside the scope of the
LC.
Jeremy should be relatively simple), it's not worth breaking that
Jeremy code.
Well, the code that relies on the dangling variable deserves to break.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman
?
Ilpo Is there a way to put it to the byte code file?
Do what you already did - dump the regexp cache to a separate file.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
of it automatically).
I would also venture to guess that random (adult) Python programmers
would be of higher skill level as far as programming in general goes
(know more languages, have a good taste...).
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python
serve you well, and would probably remove about
half of your code. Do the simplest thing that could possibly work
and all that.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
Leif == Leif K-Brooks [EMAIL PROTECTED] writes:
Leif Lad wrote:
Is anyone capable of providing Python advantages over PHP if there are
any?
Leif Python is a programming language in more ways than simple Turing
Leif completeness. PHP isn't.
+1 QOTW.
--
Ville Vainio
. _compile. The compiled regexps are
cached, so when you invoke e.g. re.match(), it doesn't recompile the
regexp.
So this point is moot, and perl's approach is excessive special
casing.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
(compiling of which is an
insignificant performance hit) and when you ship the script, you
will freeze the regexps anyway.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
on a console
level on 9300/9500 if there was access to the source code...
There's also an open source implementation of Python for UIQ (UI
toolkit used by SonyEricsson)
See
http://www.mobilewhack.com/programming/python/
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman
your
problems, new in 2.4?
That said, I've never had the problems you describe with normal popen*
calls either.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
benchmarks comparing different
templating system. I suppose a web templating system like PSP (of
mod_python) would be optimized for speed.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
happens :-).
In the meantime I would suggest win32 users to do as I do and use a
different keyboard layout. US layout is better for programming anyway
and you learn it in a day or two. Settings-Control Panel-Regional
Options-Input Locales.
--
Ville Vainio http://tinyurl.com/2prnb
--
http
as arbitrary objects.
They clearly read my rant from last summer
http://groups.google.com/groups?threadm=du7brj2mpg9.fsf%40mozart.cc.tut.fi
;-)
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
' movement that still thinks shell scripts are a good
idea, but this is my .02EUR to point out that not everyone agrees with
them.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
.
Claudio lazy at the moment, because instead of trying to fix it
Claudio just switched back to Idle ...
Don't get too lazy, you're not alone with this problem. I get a beep
every time I try to type a scandinavian character () on ipython
console, luckily I never have to do that :-).
--
Ville
?
This has been reported previously - apparently it's a problem with
Gary's readline module (or however it was called ;-), and hacking it
solved the problem for someone. I suggest you search the ipython
mailing list archives, or post this question there.
--
Ville Vainio http://tinyurl.com/2prnb
for you while you go for lunch. Think C++ or Java.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
of Python (and genexps look kinda poetic too ;-).
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
horrible in Linux that I tend
to go for Kate when I'm at home.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
Sunnan == Sunnan [EMAIL PROTECTED] writes:
Sunnan Ville Vainio wrote:
Sunnan Also, Guido recently urged people to explicitly write
Sunnan recursions rather than to use reduce - which I thought was
Sunnan completely in line with what I've seen as python's goals:
Sunnan
caneff == ChinStrap [EMAIL PROTECTED] writes:
caneff Anyone want to send me a configuration setup with Python
caneff in mind, and decent colors?
http://www.emacswiki.org/cgi-bin/wiki/ColorTheme
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo
' completion (for
jjl reducing keystrokes, anyway).
But does not work when you don't know/can't recall what methods are
available for the object you are looking at.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
the case. I imagine that 'Hi' and 'hi' would
need to share the same hash value in order for the lookup to be fast.
Anyone have a an implementation that I could use? Quick googling only
produced implementations that coerce all keys to lowercase.
--
Ville Vainio http://tinyurl.com/2prnb
--
http
Daniel == Daniel Dittmar [EMAIL PROTECTED] writes:
Daniel Ville Vainio wrote:
I need a dict (well, it would be optimal anyway) class that
stores the keys as strings without coercing the case to upper
or lower, but still provides fast lookup (i.e. uses hash
table
thing, it would make it harder to find the functions from the
docs. It's easy to find the doc for 'itertools', but iter object
methods would require browsing that infamous Chapter 2 of the
documentation...
Apart from that, I don't really see the advantage in moving away from
itertools.
--
Ville
Antoon should have used something else for concatenation (string
Antoon concatenation included)
To me, nothing is more natural than ab + cd == abcd. Also [1,2]
+ [3,4] == [1,2,3,4]. Dot product is not really too useful in real
world (non-mathematical) apps.
--
Ville Vainio http
Ville == Ville Vainio [EMAIL PROTECTED] writes:
Ville To me, nothing is more natural than ab + cd ==
Ville abcd. Also [1,2] + [3,4] == [1,2,3,4]. Dot product is
Ville not really too useful in real world (non-mathematical)
Ville apps.
... and of course by dot product, I don't
confronted with a problem, should think how
can I solve this using lists, dicts and tuples? (and perhaps also my
new favourite, sets). Class-based solution should be chosen only after
seeing that the problem can't be trivially solved with built-in types.
--
Ville Vainio http://tinyurl.com/2prnb
till then. And
Christos man, wasn't 68k assembly a joy :)
Linus Torvalds also bought Sinclair Ql back in the day - I was
quite surprised to find out that it had a 32bit CPU (according to his
autobiography).
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo
, but it's 5:14am here)
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
to silence...
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
Robin == Robin Becker [EMAIL PROTECTED] writes:
Robin well that's nice, but I don't do blogs and certainly don't
You don't need to do much - just go to planetpython.org
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
momentum at the
time being, so if you can't be bothered to perform an independent and
balanced evaluation, go for PyProtocols :-).
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
doesn't need to know about them; this is especially true
for metaclasses.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
'), not endswith.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
John == John Machin [EMAIL PROTECTED] writes:
John You can get gnu Windows versions of awk sed and most other
John suchlike goodies off the net ...
Yeah, google for 'unxutils'. Cygwin versions of these tools can be a
headache sometimes.
--
Ville Vainio http://tinyurl.com/2prnb
' if it gives you that cozy
lambda-ish feel.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
?PythonVsRuby
seems to suggest that Python has better Unicode support than Ruby.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
(as opposed to genexps and LCs), the last value
of the loop variable might be useful outside the loop if the loop was
exited prematurely through 'break' statement or exception.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
appreciate the ability
to draw the UI in pointclick style:
http://gazpacho.sicem.biz/
http://wxglade.sourceforge.net/
Unfortunately these seem to still be a tad rough around the edges...
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
?PythonVsRuby
seems to suggest that Python has better Unicode support than Ruby.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
) is False
imap(fun, p, q, ...) -- fun(p0, q0), fun(p1, q1), ...
starmap(fun, seq) -- fun(*seq[0]), fun(*seq[1]), ...
I don't believe a genuinely useful 'flatten' would increase the
cognitive load any more than these.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo
1 - 100 of 131 matches
Mail list logo