February 19, 2007
Announcing : PLY-2.3 (Python Lex-Yacc)
http://www.dabeaz.com/ply
I'm pleased to announce a new update to PLY---a 100% Python
implementation of the common parsing tools lex and yacc. PLY-2.3 is
a minor bug fix release, but also
Hi all,
lxml 1.2 has been released to the cheeseshop.
http://cheeseshop.python.org/pypi/lxml
This is a somewhat conservative release in that it brings no major new
features. It rather contains a number of bug fixes and cleanups, both
internally and at the API level. Building lxml should have
Jay Tee [EMAIL PROTECTED] writes:
for j in jobs:
if (j.get('user') == 'jeff' and j.get('state')=='running') :
do_something()
Sounds like you need some backing data structures, like indexes
in a database, e.g. (untested, uses the cool new defaultdicts of 2.5):
index =
On 2/20/07, Nathan [EMAIL PROTECTED] wrote:
On 2/19/07, Gabriel Genellina [EMAIL PROTECTED] wrote:
En Mon, 19 Feb 2007 21:50:11 -0300, GiBo [EMAIL PROTECTED] escribió:
Grant Edwards wrote:
On 2007-02-19, GiBo [EMAIL PROTECTED] wrote:
Classic situation - I have to process an input
On 2/19/07, Gabriel Genellina [EMAIL PROTECTED] wrote:
En Mon, 19 Feb 2007 21:50:11 -0300, GiBo [EMAIL PROTECTED] escribió:
Grant Edwards wrote:
On 2007-02-19, GiBo [EMAIL PROTECTED] wrote:
Classic situation - I have to process an input stream of unknown length
until a I reach its end
Paul Rubin wrote:
There's even a sentiment in some pythonistas to get rid of the [] and {}
notations for lists and dicts, using list((1,2,3)) and dict((1,2),(3,4))
for [1,2,3] and {1:2, 3:4} respectively.
Wow. This makes Python twice more LISPy, than 1, 2, 3 and {-} make it
C-ish and Perlish.
On 20 fév, 05:39, George Sakkis [EMAIL PROTECTED] wrote:
I was kinda surprised that setting __class__ or __dict__ goes through
the __setattr__ mechanism, like a normal attribute:
But __class__ and __dict___ *are* 'normal' attributes...
--
http://mail.python.org/mailman/listinfo/python-list
Mark Morss a écrit :
On Feb 16, 4:22 pm, [EMAIL PROTECTED] wrote:
I am VB6 programmer and wants to start new programming language but i
am unable to deciced.
i have read about Python, Ruby and Visual C++. but i want to go
through with GUI based programming language like VB.net
so will you
Reid Priedhorsky [EMAIL PROTECTED] wrote:
I am implementing a forking SocketServer daemon that maintains significant
internal state (a graph that takes ~30s to build by fetching from a SQL
database, and eventually further state that may take up to an hour to
build).
I would like to be
Neil Cerutti [EMAIL PROTECTED] wrote:
On 2007-02-14, Farshid Lashkari [EMAIL PROTECTED] wrote:
Szabolcs Nagy wrote:
L=[1]
L.extend((1,))
L
[1, 1]
Are list.extend() and list concatenation supposed to behave
differently? I always thought concatenation was just shorthand
for
The short story is that someone left, but before he left he checked in a
.pyc and then both the directory was destroyed and the backups all got
shredded (don't ask*). Is there anything that can be extracted? I looked
on the web and the subject seems to get different answers, all old.
Any joy?
Marc 'BlackJack' Rintsch wrote:
In [EMAIL PROTECTED], James Stroud wrote:
Better would be to remove windows xp and get another operating system.
Yeah XP is sooo ooold, the OP should install Vista. Or did you mean a
real OS instead of just another one? ;-)
SCNR,
Marc 'BlackJack'
On 2/19/07, Steven W. Orr [EMAIL PROTECTED] wrote:
The short story is that someone left, but before he left he checked in a
.pyc and then both the directory was destroyed and the backups all got
shredded (don't ask*). Is there anything that can be extracted? I looked
on the web and the subject
Subject: Can I reverse eng a .pyc back to .py?
The short story is that someone left, but before he left he checked in a
.pyc and then both the directory was destroyed and the backups all got
TIA
https://svn.cs.pomona.edu/sys/src/konane/pyunparse.py
Need add new AST nodes if You want to use
In my wxPython app a non-GUI thread (that reads info from the network)
tries to open a frame to show the new info. This results in my app
hanging (which is not too surprising). Coming from a C# environment I
wonder if there is some sort of delegate mechanism in wxPython to do
this sort of thing.
Boris Ozegovic [EMAIL PROTECTED] (BO) wrote:
BO Umm, can somebody tell me which language is this one:
BO {% if latest_poll_list %}
BO ul
BO {% for poll in latest_poll_list %}
BO li{{ poll.question }}/li
BO {% endfor %}
BO /ul
BO {% else %}
BO pNo polls are
cyberco wrote:
In my wxPython app a non-GUI thread (that reads info from the network)
tries to open a frame to show the new info. This results in my app
hanging (which is not too surprising). Coming from a C# environment I
wonder if there is some sort of delegate mechanism in wxPython to do
I'm getting different results when I add up a list of floats depending
on the order that I list the floats. For example, the following returns
False:
def check():
totalProp=0
inputs=[0.2,0.2,0.2,0.1,0.2,0,0.1]
for each in inputs:
totalProp+=each
joanne matthews (RRes-Roth) a écrit :
I'm getting different results when I add up a list of floats depending
on the order that I list the floats. For example, the following returns
False:
def check():
totalProp=0
inputs=[0.2,0.2,0.2,0.1,0.2,0,0.1]
for each in inputs:
On Mon, 19 Feb 2007 23:18:02 -0800, Ziga Seilnacht wrote:
George Sakkis wrote:
I was kinda surprised that setting __class__ or __dict__ goes through
the __setattr__ mechanism, like a normal attribute:
class Foo(object):
def __setattr__(self, attr, value):
pass
class
Hi,
I'm getting different results when I add up a list of floats depending
on the order that I list the floats. For example, the following returns
[snip summation]
if totalProp != 1:
From a numerical analysis point of view, never ever do this. The values
you are adding are approximations
On Tue, 20 Feb 2007 00:44:24 +, Peter mayne wrote:
Steven D'Aprano wrote:
If Python 3 dropped the print
statement and replaced it with official_print_function(), how would that
help you in your goal to have a single code base that will run on both
Python 2.3 and Python 3, while still
On Feb 20, 11:29 pm, joanne matthews (RRes-Roth)
[EMAIL PROTECTED] wrote:
I'm getting different results when I add up a list of floats depending
on the order that I list the floats.
This is quite expected. Floating point arithmetic is subject to
rounding errors.
[doesn't add to 1.0]
On Mon, 19 Feb 2007 22:17:42 -0800, hiro wrote:
Hey there, I'm currently doing data preprocessing (generating lagged
values for a time series) and I'm having some difficulties trying to
write a file to disk. A friend of mine, wrote this quick example for
me:
If that's a quick example (well
Hello,
I was wondering if there is a way to run CherryPy/Turbogears on a server that I
don't
have root access to. If I just choose a random port, I think the security guys
on
the server would get annoyed at me. What are my options? I can talk to the
admin,
but they are very slow/reluctant
hiro kirjoitti:
Hey there, I'm currently doing data preprocessing (generating lagged
values for a time series) and I'm having some difficulties trying to
write a file to disk. A friend of mine, wrote this quick example for
me:
snip
tweaked code:
Brian Blais wrote:
Hello,
I was wondering if there is a way to run CherryPy/Turbogears on a server
that I don't
have root access to. If I just choose a random port, I think the security
guys on
the server would get annoyed at me.
Why should they? Opening anything networking will open
H folks,
I got, hmm not really a problem, more a question of elegance:
In a current project I have to read in some files in a given
directory in chronological order, so that I can concatenate the
contents in those files into a new one (it's XML and I have to
concatenate some subelements, about 4
On Feb 20, 7:57 am, Steven D'Aprano
[EMAIL PROTECTED] wrote:
On Mon, 19 Feb 2007 23:18:02 -0800, Ziga Seilnacht wrote:
George Sakkis wrote:
I was kinda surprised that setting __class__ or __dict__ goes through
the __setattr__ mechanism, like a normal attribute:
class Foo(object):
On Feb 20, 3:54 am, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
On 20 fév, 05:39, George Sakkis [EMAIL PROTECTED] wrote:
I was kinda surprised that setting __class__ or __dict__ goes through
the __setattr__ mechanism, like a normal attribute:
But __class__ and __dict___ *are* 'normal'
Wolfgang Draxinger kirjoitti:
H folks,
I got, hmm not really a problem, more a question of elegance:
In a current project I have to read in some files in a given
directory in chronological order, so that I can concatenate the
contents in those files into a new one (it's XML and I have to
Jussi Salmela wrote:
I'm not claiming the following to be more elegant, but I would
do it like this (not tested!):
src_file_paths = dict()
prefix = sourcedir + os.sep
for fname in os.listdir(sourcedir):
if match_fname_pattern(fname):
fpath = prefix + fname
Wolfgang Draxinger wrote:
Jussi Salmela wrote:
I'm not claiming the following to be more elegant, but I would
do it like this (not tested!):
src_file_paths = dict()
prefix = sourcedir + os.sep
for fname in os.listdir(sourcedir):
if match_fname_pattern(fname):
fpath =
On 2007-02-20, joanne matthews (RRes-Roth) [EMAIL PROTECTED] wrote:
I'm getting different results when I add up a list of floats depending
on the order that I list the floats.
That's how floats work.
For example, the following returns
False:
def check():
totalProp=0
On Feb 21, 12:22 am, Steven D'Aprano
[EMAIL PROTECTED] wrote:
On Mon, 19 Feb 2007 22:17:42 -0800, hiro wrote:
Hey there, I'm currently doing data preprocessing (generating lagged
values for a time series) and I'm having some difficulties trying to
write a file to disk. A friend of mine,
Wolfgang Draxinger [EMAIL PROTECTED] writes:
src_file_paths = dict()
for fname in os.listdir(sourcedir):
fpath = sourcedir+os.sep+fname
if not match_fname_pattern(fname): continue
src_file_paths[os.stat(fpath).st_mtime] = fpath
for ftime in
On Feb 21, 2:05 am, Grant Edwards [EMAIL PROTECTED] wrote:
On 2007-02-20, joanne matthews (RRes-Roth) [EMAIL PROTECTED] wrote:
I'm getting different results when I add up a list of floats depending
on the order that I list the floats.
Don't use floating point if you expect exact results.
Wolfgang Draxinger kirjoitti:
Jussi Salmela wrote:
I'm not claiming the following to be more elegant, but I would
do it like this (not tested!):
src_file_paths = dict()
prefix = sourcedir + os.sep
for fname in os.listdir(sourcedir):
if match_fname_pattern(fname):
fpath =
On 2/20/07, Diez B. Roggisch [EMAIL PROTECTED] wrote:
cyberco wrote:
In my wxPython app a non-GUI thread (that reads info from the network)
tries to open a frame to show the new info. This results in my app
hanging (which is not too surprising). Coming from a C# environment I
wonder if
Wolfgang Draxinger wrote:
However this code works (tested) and behaves just like listdir,
only that it sorts files chronologically, then alphabetically.
def listdir_chrono(dirpath):
import os
files_dict = dict()
for fname in os.listdir(dirpath):
On 20 Feb, 11:59, KoDer [EMAIL PROTECTED] wrote:
Subject: Can I reverse eng a .pyc back to .py?
[...]
https://svn.cs.pomona.edu/sys/src/konane/pyunparse.py
Need add new AST nodes if You want to use it with python2.5.
The above code seems to need to parse a source file, since it uses the
David Wishnie wrote:
Hello,
Recently I've found a product that allows to create CDs or DVDs with
mod_python -based websites
(and CGI python of course) so that apache-based webserver, python and
mod_python are run directly
off CD on Windows, MacOS X and Linux at the same time (also it
Steven Bethard:
While Python 3.0 is not afraid to break backwards
compatibility, it tries to do so only when there's a very substantial
advantage.
I understand, but this means starting already to put (tiny)
inconsistencies into Python 3.0...
Unrelated: Ruby and Lisp use ? and ! at the end of
On Tue, 20 Feb 2007 07:08:02 -0800, John Machin wrote:
def write_series(data, f):
Write a time series data to file f.
data should be a list of integers.
f should be an already opened file-like object.
# Convert data into a string for writing.
s = str(data)
s
[EMAIL PROTECTED] writes:
Unrelated: Ruby and Lisp use ? and ! at the end of the function/method
names to denote a predicate or a function that mutates in place (With
them the list.sort() may be called list.sort!() ). Using Python I
usually put an Q at the end of the name for this purpose. Can
Steven D'Aprano [EMAIL PROTECTED] writes:
Would it be less crufty if I wrote it as a cryptic one liner without
comments?
f.write(str(data)[1:-1].replace(',', '') + '\n')
That doesn't look terribly cryptic to me, but maybe I'm used to it.
Try this: f.write(' '.join(str(x) for x in data) +
On 2007-02-20, John Machin [EMAIL PROTECTED] wrote:
On Feb 21, 2:05 am, Grant Edwards [EMAIL PROTECTED] wrote:
On 2007-02-20, joanne matthews (RRes-Roth) [EMAIL PROTECTED] wrote:
I'm getting different results when I add up a list of floats depending
on the order that I list the floats.
Yo,
On Feb 16, 6:07 am, Steven Bethard [EMAIL PROTECTED] wrote:
Python 3.0 is determined not to be hampered by backwards incompatibility
concerns. It's not even clear yet that your average 2.6 code will work
Then Python is pretty much determined to remove itself from
consideration
from various
On Feb 20, 9:12 am, Paul Rubin http://[EMAIL PROTECTED] wrote:
do_something()
you'd just write:
for j in (index['user']['jeff'] index['state']['running']):
do_something()
Hi,
it looks very cool, except that one of the constraints mentioned is
that the solution has to
Jay Tee [EMAIL PROTECTED] writes:
it looks very cool, except that one of the constraints mentioned is
that the solution has to work properly on pythons 2.2 and 2.3.
That thing doesn't really deeply depend on defaultdict, it's just
convenient. You can add a few more lines of code in the
Hi
your post had the following construct:
for j in (index['user']['jeff'] index['state']['running']):
do_something()
but
Python 2.3.4 (#1, Oct 11 2006, 06:18:43)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2
Type help, copyright, credits or license for more information.
l1=
Jay Tee [EMAIL PROTECTED] writes:
l1= [3, 4, 7, 2]
l2 = [2, 3]
l2 = [2, 3, 99]
l1 l2
Traceback (most recent call last):
File stdin, line 1, in ?
TypeError: unsupported operand type(s) for : 'list' and 'list'
what am I missing?
They are sets, not lists.
from sets import Set as
Is there an inbuilt library in Python which you can use to convert time in
seconds to hh:mm:ss format?
Thanks,
Vishal
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 18, 7:35 pm, Dave Cook [EMAIL PROTECTED] wrote:
On 2007-02-16, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
i have read about Python, Ruby and Visual C++. but i want to go
through with GUI based programming language like VB.net
You might take a look athttp://dabodev.com
Dave Cook
Vishal Bhargava wrote:
Is there an inbuilt library in Python which you can use to convert time in
seconds to hh:mm:ss format?
Thanks,
Vishal
Please don't ask a question by editing a reply to an existing thread:
your question is now filed on many people's computers under How to test
if one
Vishal Bhargava schrieb:
Is there an inbuilt library in Python which you can use to convert time in
seconds to hh:mm:ss format?
Module datetime. Did you even _bother_ to google or skim the docs?
Diez
--
http://mail.python.org/mailman/listinfo/python-list
Gigs_ wrote:
Is there any way to convert ocaml code to python? but not manually
For Python and ocaml, my bookmark contains this link:
http://www.programs4all.net/programs/Pycaml-Python-Embedding-API-for-Ocaml.htm
But no ocaml to Python compiler...
--
Do you mean epoch time? if so, the below example would work.
import time,datetime
t = datetime.datetime.now()
print t
2007-02-20 13:09:34.851000
print Epoch Seconds:, time.mktime(t.timetuple())
Epoch Seconds: 1171994974.0
# go the other way
epochtime = 1171994974
now =
Diez B. Roggisch [EMAIL PROTECTED] writes:
Brian Blais wrote:
Hello,
I was wondering if there is a way to run CherryPy/Turbogears on a server
that I don't
have root access to. If I just choose a random port, I think the security
guys on
the server would get annoyed at me.
Why should
Is PLY destined for the standard library?
If not, what module providing substantially similar functionality is?
Thank you,
Alan Isaac
--
http://mail.python.org/mailman/listinfo/python-list
In article [EMAIL PROTECTED],
Paul Rubin http://[EMAIL PROTECTED] wrote:
Nikita the Spider [EMAIL PROTECTED] writes:
note, there a (sort of) new module available that allows interprocess
communication via shared memory and semaphores with Python. You can find
it here:
On Feb 16, 10:17 am, Steven D'Aprano
[EMAIL PROTECTED] wrote:
On Fri, 16 Feb 2007 09:49:03 -0500, Jean-Paul Calderone wrote:
On Sat, 17 Feb 2007 01:32:21 +1100, Steven D'Aprano
[snip]
I don't think that follows at all. print is only a problem if you expect
your code to work under both
Paul Rubin wrote:
There's even a sentiment in some pythonistas to get rid of the [] and {}
notations for lists and dicts, using list((1,2,3)) and dict((1,2),(3,4))
for [1,2,3] and {1:2, 3:4} respectively.
Well then for consistency they must want tuple((1,2,3)) for (1,2,3).
Oh oh, that must be
Hi,
I would like to retrieve all the classes, methods and functions of a
module.
I've used the inspect module for this, but inside a given class
(subclass of some other one), I wanted to retrieve only the methods
I've written, not the inherited one. How can I do ?
Thanks.
--
On Feb 20, 6:29 pm, Alan Isaac [EMAIL PROTECTED] wrote:
Is PLY destined for the standard library?
I've never heard it suggested... but +1
Fuzzyman
http://www.voidspace.org.uk/python/articles.shtml
If not, what module providing substantially similar functionality is?
Thank you,
Alan Isaac
Larry Bates wrote:
3) You didn't handle the possibility that there is s
subdirectory
in the current directory. You need to check to make sure it
is a file you are processing as os.listdir() returns files
AND directories.
Well, the directory the files are in is not supposed to have
On Feb 20, 6:44 pm, Paul Rubin http://[EMAIL PROTECTED] wrote:
They are sets, not lists.
from sets import Set as set # use in 2.3 and earlier
l1= set([3, 4, 7, 2])
l2 = set([2, 3])
l2 = set([2, 3, 99])
print l1 l2
Thanks Paul, but:
bosui:~ python
Python 2.2.3 (#1, Oct 26
Steven Bethard:
While Python 3.0 is not afraid to break backwards
compatibility, it tries to do so only when there's a very substantial
advantage.
[EMAIL PROTECTED] wrote:
I understand, but this means starting already to put (tiny)
inconsistencies into Python 3.0...
Well, there's going
Nikita the Spider wrote:
Hmmm, I hadn't thought about that since I've never used the Cheese Shop
myself. honestly-not-being-grouchy-just-naiveWhat benefits does Cheese
Shop confer to someone looking for a package?/ I ask because from my
perspective it just adds overhead to package
Jay Tee [EMAIL PROTECTED] writes:
Python 2.2.3 (#1, Oct 26 2003, 11:49:53)
ImportError: No module named sets
Hmm, well I think the sets module in 2.3 is written in Python, so you
could drop it into your application for use in 2.2. Better would be
to use the C version from 2.4 if you can. Or
Jay Tee wrote:
Yo,
On Feb 16, 6:07 am, Steven Bethard [EMAIL PROTECTED] wrote:
Python 3.0 is determined not to be hampered by backwards incompatibility
concerns. It's not even clear yet that your average 2.6 code will work
Then Python is pretty much determined to remove itself from
We are pleased to announce version 0.84 of PyDSTool, an open-source
dynamical systems simulation, modeling, and analysis package.
This long-overdue release is primarily intended to bring existing
PyDSTool functionality up to date with the latest numpy and scipy releases
(previous versions
Ah! Great tip, thanks!
Now instead of calling:
parent.onRequest(param)
I call:
wx.CallAfter(lambda x: parent.onRequest(x), param)
Way cool.
2B
This is rather out of date. wxPython provides a wx.CallAfter function,
which will call the passed callable on the next spin through the event
Need some decorator help.
I have a class. And I want to add behavior to one of this class's
methods to be run before the class runs the actual method. Is this
what decorators are for?
So the class I want to work with is string.Template
Let's say I have this:
from string import Template
On 20 Feb 2007 12:01:02 -0800, cyberco [EMAIL PROTECTED] wrote:
Ah! Great tip, thanks!
Now instead of calling:
parent.onRequest(param)
I call:
wx.CallAfter(lambda x: parent.onRequest(x), param)
You don't need the lambda - you can use:
wx.CallAfter(parent.OnRequest, param)
--
On 2007-02-20, cyberco [EMAIL PROTECTED] wrote:
Ah! Great tip, thanks!
Now instead of calling:
parent.onRequest(param)
I call:
wx.CallAfter(lambda x: parent.onRequest(x), param)
How does that differ from this?
wx.CallAfter(parent.onRequest, param)
--
Grant Edwards
On 20/02/07, Wolfgang Draxinger [EMAIL PROTECTED] wrote:
H folks,
I got, hmm not really a problem, more a question of elegance:
In a current project I have to read in some files in a given
directory in chronological order, so that I can concatenate the
contents in those files into a new one
Steven D'Aprano a écrit :
On Tue, 20 Feb 2007 07:08:02 -0800, John Machin wrote:
def write_series(data, f):
Write a time series data to file f.
data should be a list of integers.
f should be an already opened file-like object.
# Convert data into a string for writing.
Hello,
I would like to retrieve all the classes, methods and functions of a
module.
I've used the inspect module for this, but inside a given class
(subclass of some other one), I wanted to retrieve only the methods
I've written, not the inherited one. How can I do ?
class A:
def
On Feb 20, 8:20 pm, Gregory Piñero [EMAIL PROTECTED] wrote:
Need some decorator help.
I have a class. And I want to add behavior to one of this class's
methods to be run before the class runs the actual method. Is this
what decorators are for?
So the class I want to work with is
What a load of bull crap. Python is one of the simplest packages to
have multiple version of installed. When Python 3.0 is released, all
Linux distros will acquire a symlink at /usr/bin/python2 pointing to
the latest Python 2.x version installed. Or something equivalent.
Rest assured that Linux
Hi,
On Feb 20, 8:59 pm, Steven Bethard [EMAIL PROTECTED] wrote:
You snipped the rest of that comment:
It's not even clear yet that your average 2.6 code will work on 3.0 --
though there's a pretty large contingent trying to make this true.
Thanks for pointing this out. I voted for the
Thanks Miki, that's exactly what I need :)
--
http://mail.python.org/mailman/listinfo/python-list
Steven Bethard wrote:
Well, Python 2.4 code will work on Python 2.6 and 2.7 so just because
your code isn't yet compatible with Python 3.0 doesn't mean you should
give up on Python.
Perhaps the most important concern in the context of Python 3.0 is
what the term Python will come to mean to
yo,
Bjorn, I am not sure I see why my post is bull crap. I think all you
are doing is agreeing with me. My post was entitled Python 3.0 unfit
for serious work, you just indicated that the Linux distros will
agree with me, in order to be taken seriously, the distros will have
to include 2.x
On 2/20/07, Tim Mitchell [EMAIL PROTECTED] wrote:
Hi Greg,
Decorators would work fine if the the class you were working with was
_yours_ (ie. you wrote it), the problem here is that string.Template is
someone else's class that you're trying to modify.
Here's how a decorator would work
Hi,
thanks! the code lift from 2.3 to 2.2 worked (thank Guido et al for
BACKWARDS COMPATIBILITY ;-)) ... unfortunately I was in a hurry to get
the release out since a colleague's cluster was croaking under the
load of the old, non-indexed version. Your solution is nicer looking
than mine, and
On Feb 21, 3:44 am, Grant Edwards [EMAIL PROTECTED] wrote:
On 2007-02-20, John Machin [EMAIL PROTECTED] wrote:
On Feb 21, 2:05 am, Grant Edwards [EMAIL PROTECTED] wrote:
On 2007-02-20, joanne matthews (RRes-Roth) [EMAIL PROTECTED] wrote:
Don't use floating point if you expect exact
Sounds GREAT !
thank you !
I just took a quick look,
the comparison to SimuLink looks good,
now if someone could make a comparison with Modelica ;-)
cheers,
Stef Mientki
Rob Clewley wrote:
We are pleased to announce version 0.84 of PyDSTool, an open-source
dynamical systems simulation,
While creating a log parser for fairly large logs, we have run into an
issue where the time to process was relatively unacceptable (upwards
of 5 minutes for 1-2 million lines of logs). In contrast, using the
Linux tool grep would complete the same search in a matter of seconds.
The search we used
Hi
I'm quite new to python and I'm trying to pass variables via url! was
wondering if you can help me?
ThanQ
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
Paul, thanks for this, I didn't realize the scope of the situation. I
agree with your assessment to the extent that I understand what the
whole python 3.0 thing is about.
Let's see if I can scare up something I wrote about ten years ago on a
now-dead language that I really wanted to use
Jay Tee wrote:
Let's see if I can scare up something I wrote about ten years ago on a
now-dead language that I really wanted to use (wound up sticking with
python instead because it was supported ;-)
===
to figure out how to work things. The fact that there are three
Jay Tee wrote:
Paul, thanks for this, I didn't realize the scope of the situation. I
agree with your assessment to the extent that I understand what the
whole python 3.0 thing is about.
I don't know if I've delimited the scope of any situation, really.
However...
[...]
The fact that there
Nick Craig-Wood wrote:
x += a
does not equal
x = x + a
which it really should for all types of x and a
Actually, this will *never* be the case for classes that do in-place
augmented assignment.
a = [1]
b = [2]
c = a + b
print a, b, c
a += b
print a,
On Tue, 20 Feb 2007 22:03:43 +0100, Bruno Desthuilliers wrote:
[snip]
And that's not cruft?
No. Why do you think it is crufty?
Because it is ?
*shrug*
Is not.
Is too.
Is not.
Why is converting a list of integers to a string all at once more crufty
than converting them one at a time?
When I run setup.py to install a pure python package, is it supposed
to
automatically set my search path to find the installed modules? Or am
I
supposed to set my PYTHONPATH variable myself in my .bashrc file?
And what if I don't have root priviledge? Then what is supposed to
happen? Can anyone
On Feb 21, 8:29 am, [EMAIL PROTECTED] wrote:
While creating a log parser for fairly large logs, we have run into an
issue where the time to process was relatively unacceptable (upwards
of 5 minutes for 1-2 million lines of logs). In contrast, using the
Linux tool grep would complete the same
Russ wrote:
When I run setup.py to install a pure python package, is it supposed
to
automatically set my search path to find the installed modules? Or am
I
supposed to set my PYTHONPATH variable myself in my .bashrc file?
And what if I don't have root priviledge? Then what is supposed to
Larry Bates wrote:
I'm no expert, but I think what normally happens is the module gets
installed into ../pythonxx/lib/site-packages/module and if it
installs __init__.py file there they get automatically searched.
At least that the way things work for me.
But if I don't have root
1 - 100 of 141 matches
Mail list logo