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
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
of extending python. And frankly I think
Jelle there is: OCAML
For many tasks the point of extending python is to gain access to
libraries that have a C/C++ API. Extensions that merely provide a
faster way to do something are much rarer.
--
Ville Vainio http://tinyurl.com/2prnb
--
http
. They are also certain to
deepen your appreciation of Python ;-).
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
]|25 cd /prj/SyncML/doc/
@POR078[doc]|26 %bookmark smldoc
@POR078[doc]|27 Exit
(IPython exits, I start a new session)
@POR078[environmentswitch]|1 cd tr
(bookmark:tr) - C:\prj\testrunner
@POR078[testrunner]|3 cd smldoc
(bookmark:smldoc) - C:\prj\SyncML\doc
@POR078[doc]|4
--
Ville Vainio http
way to develop
mobile applications, says Director Lee Epting from Forum Nokia.
Nokia believes that Python for Series 60 is a good fit for developing
prototype- and proof-of-concept apps. The company characterizes the
language as efficient and relatively easy to learn.
--
Ville Vainio http
;-).
(Yeah, ctypes will probably be a problem because of the way Symbian
handles DLLs)
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
the ordinals from the .LIB file
that corresponds to the DLL.
(Someone who knows better might want to correct me if I'm wrong).
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
:
Stephen ' pass
Stephen simple, concise, requires no new syntax, and is only a
Stephen little confusing[1]!
I'm always confused by for-else (lack of practice), but isn't the else
clause going to be always executed when there is no break in the for
suite?
--
Ville Vainio http
Warning - if you are upgrading and have an old pysh.py dangling around
in $HOME/.ipython, be sure to delete it. The old version is
incompatible with the new ipython.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
?
Semaphore will do, but this is a classical use case for
threading.Lock.
There should be lots of stuff regarding locks (or more googleably,
mutexes) on the net.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
. That is not not always the case.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
as well:
def foo(l):
assert issorted(l)
if hi in l: # in does a bsearch because the list is sorted
blah()
but things like this probably belong to languages like Lisp where the
user gets to expand and mess with the compiler.
--
Ville Vainio http://tinyurl.com/2prnb
--
http
it
enough to not be overly concerned.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
that much.
Hey, it's 2005, I don't think we've used up our yearly Lisp flamewar
quota yet.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
to write a better IDE for Python, so the time used on language
features isn't removed from improving the infrastructure around the
language.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
Paul == Paul Rubin http://[EMAIL PROTECTED] writes:
Paul Ville Vainio [EMAIL PROTECTED] writes:
Also, Python is not a monolithic entity. Guido certainly isn't
going to write a better IDE for Python, so the time used on
language features isn't removed from improving
documentation is going to evolve to be
more self-contained; the exact opposite is more likely.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
Paul == Paul Rubin http://[EMAIL PROTECTED] writes:
Paul Ville Vainio [EMAIL PROTECTED] writes:
To me, this seems to be the job for the Fedora maintainers, not
Python maintainers. If something essential is not in the distro
the distro maintainers have screwed up.
Paul I
:-).
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
prevented by firewalls.
This is exactly what web services are for.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
')
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
:
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
people can't be bothered to change the subject
line...
--
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
. ctrl+m is maximize/unmaximize.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
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
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.
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
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
.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
have, it's not obvious from this that it's just
Donn fine 4 everyone.
Perhaps not for everyone but for the majority I guess the python
notation would be more suitable.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
to expose the OS as Python objects.
I work w/ Symbian OS in my day job, with the OS API in C++. I'm not
sure whether it's a good idea or not, but at least some people are
doing it :).
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
than fast enough for me.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
, say, telnet. There are libs that do
such a thing, I even remember trying one out myself, but I couldn't
find it quickly enough from google.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
there really fast also. It also has a
debugger that SPE lacks.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
you start implementing one yourself. Regexp solution would
probably be a bit flakier. And do share your results when you get
some; I'm in need of a c++ parser myself.
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
this would be handy in itertools as well.
It seems trivial, but I managed to screw up several times when trying
to produce my own implementation (infinite recursion).
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
some Debian
guys were speculating whether even BSD license is free enough to
include in Debian...
--
Ville Vainio http://tinyurl.com/2prnb
--
http://mail.python.org/mailman/listinfo/python-list
Michael == Michael Spencer [EMAIL PROTECTED] writes:
Michael Here's a non-recursive implementation.
Thanks.
Michael There are lots around.
Yet another fact that suggest the inclusion in stdlib would make sense
;-).
--
Ville Vainio http://tinyurl.com/2prnb
--
http
) 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
complex in the API, the proposal would be shot down immediately on the
grounds of not being fundamental enough as concept.
--
Ville Vainio http://tinyurl.com/2prnbOB
--
http://mail.python.org/mailman/listinfo/python-list
Raymond == Raymond Hettinger [EMAIL PROTECTED] writes:
Steven complex atomicity test). I also have the feeling that any
Steven complicated atomictiy test is more than a simple and-ing
Steven of several tests...
Raymond Ville Vainio
I also have the feeling
?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
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
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
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
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
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
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
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
?
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
' 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
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
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
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
. _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
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
?
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
.
--
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
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
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
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
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
). 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
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
1 - 100 of 131 matches
Mail list logo