On 11/3/2016 1:49 PM, jlada...@itu.edu wrote:
The Levenshtein distance is a very precise definition of dissimilarity between
sequences. It specifies the minimum number of single-element edits you would
need to change one sequence into another. You are right that it is fairly
expensive to com
On 11/5/2014 7:41 AM, Chris Angelico wrote:
On Wed, Nov 5, 2014 at 11:31 PM, Ivan Evstegneev
wrote:
That's what I'm talking about (asking actually), where do you know it from?
I know it because I've been a programmer for 39 years.
I didn't intend to offence anyone here. Just asked a questi
On 10/9/2014 3:53 PM, Tim Delaney wrote:
That would be a theatre programme vs a computer program.
I try to stick with the current spelling style when modifying existing
code - esp. for APIs. It's very annoying to have some methods use "z"
and others "s" in the same package. So since I'm currentl
On 9/30/2014 7:35 AM, c...@isbd.net wrote:
Thus I'd have something like (apologies for any syntax errors):-
cfg = { "LeisureVolts": ["AIN0", 0.061256, "Leisure Battery Voltage"],
"StarterVolts": ["AIN1", 0.060943, "Starter Battery Voltage"],
"LeisureAmps1": ["AIN2", 0.423122, "
On 8/27/2014 9:40 AM, Jake wrote:
Jake
I disagree!
--
Neil Cerutti
--
https://mail.python.org/mailman/listinfo/python-list
On 8/23/2014 9:00 AM, Chris Angelico wrote:
On Sat, Aug 23, 2014 at 10:38 PM, Rustom Mody wrote:
Here is an example (not identical but analogous to) where markup+compile is
distinctly weaker than wysiwyg:
You can use lilypond to type music and the use a midi player to play it
But lilypond does
On 8/22/2014 3:54 PM, Rob Gaddi wrote:
On Fri, 22 Aug 2014 15:46:33 -0400
Seymore4Head wrote:
On Fri, 22 Aug 2014 14:19:29 -0400, Seymore4Head
wrote:
Is there a way to indent everything again?
Say I have a while statement with several lines of code and I want to
add a while outside that.
On 8/22/2014 2:19 PM, Seymore4Head wrote:
Is there a way to indent everything again?
Say I have a while statement with several lines of code and I want to
add a while outside that. That means indenting everything. Is there
a global way to do that?
This sort of simple task is why fancy text e
On 8/22/2014 5:29 AM, Marko Rauhamaa wrote:
C is readily supported by all extension APIs. Its calling conventions
are stable and well-understood. Its runtime requirements are trivial.
Plus, you don't have to be a Medieval Scholar to program in it.
C itself is very simple (albeit not simple to u
On 8/21/2014 8:54 AM, David Palao wrote:
Hello,
I consider myself a python programmer, although C++ was one of the
first languages I learned (not really deeply and long time ago).
Hey, that sounds just like me.
Now I decided to retake C++, to broaden my view of the business.
However, as I pro
On 8/12/2014 2:20 PM, Rustom Mody wrote:
On Tuesday, August 12, 2014 11:10:48 PM UTC+5:30, Neil D. Cerutti wrote:
Beginners are particularly poor, in relation to experts, at noticing the
applicability of idea, and at combining ideas together. Breaking things
into component parts has multiple
On 8/10/2014 2:14 PM, Roy Smith wrote:
In article <154cc342-7f85-4d16-b636-a1a953913...@googlegroups.com>,
Rustom Mody wrote:
l= [6,2,9,12,1,4]
sorted(l,reverse=True)[:5]
[12, 9, 6, 4, 2]
No need to know how sorted works nor [:5]
Now you (or Steven) can call it abstract.
And yet its
1. A
On 8/8/2014 2:35 PM, Neil D. Cerutti wrote:
Here's another attempt at context managing:
@contextlib.contextmanager
def release_if_acquired(lock, blocking=True, timeout=-1):
acquired = lock.acquire(blocking, timeout)
if acquired:
yield acquired
lock.re
On 8/8/2014 12:16 PM, Chris Angelico wrote:
On Sat, Aug 9, 2014 at 2:05 AM, Neil D. Cerutti wrote:
Perhaps defer release, a la a common Go pattern:
with contextlib.ExitStack() as stack:
acquired = lock.acquire(blocking=False)
if acquired:
stack.callback(lock.release
On 8/8/2014 9:25 AM, Ethan Furman wrote:
On 08/08/2014 04:51 AM, cool-RR wrote:
If I want to acquire a `threading.Lock` using the context manager
protocol,
is it possible to specify the `blocking` and `timeout` arguments that
`acquire` would usually take?
Not that I know of, but why would y
On 8/4/2014 6:44 PM, John Gordon wrote:
In Shubham Tomar
writes:
classes. I understand that you define classes to have re-usable methods and
procedures, but, don't functions serve the same purpose.
Can someone please explain the idea of classes
If a function simply accepts some data, does
On 7/25/2014 9:47 PM, C.D. Reimer wrote:
Thank you for the link. I'm curious about one item mentioned in the
article: "Avoid return values that Demand Exceptional Processing: return
zero-length array or empty collection, not null"
Isn't a zero-length array, empty collection and null all the same
On 7/22/2014 11:14 AM, Anssi Saari wrote:
I don't really know about about html and slrn since I don't see much of
it but links in a terminal application is usually something for the
terminal to handle. I run Gnus on a remote machine and use a local
terminal for display, Konsole in Linux and mintt
On 7/16/2014 10:27 AM, Frank Millman wrote:
Would this have been so easy using Python2 - I don't think so. What follows
is blatant speculation, but it is quite possible that there are many
non-English speakers out there that have had their lives made much easier by
the changes to Python3 - a 'si
On 7/11/2014 4:53 AM, Wolfgang Maier wrote:
On 07/11/2014 10:32 AM, Nicholas Cannon wrote:
Hey i would like to know alot more about the standard library and all
of its functions and so on and i know it is huge and i would basically
like to learn only the useful stuff that i could use and all of
On 7/7/2014 7:10 PM, Mark Lawrence wrote:
On 07/07/2014 23:09, Gregory Ewing wrote:
Marko Rauhamaa wrote:
with open(path) as f:
...
If the open() call is guarded against exceptions (as it usually should),
one must revert to the classic syntax:
Hmmm, maybe we could do with a with-
On 5/8/2014 8:41 AM, Roy Smith wrote:
In article ,
Jerry Hill wrote:
thinking of python variables as having two parts -- names and values
-- really can help people who are struggling to learn the language.
There's many levels of learning, and we see them all on this list.
For people who a
On 4/8/2014 9:09 PM, Rick Johnson wrote:
I warn you that not only will "it" impede the interpretation
of your ideas, "it" will also degrade your ability to think
clearly when expressing yourself and slow (or completely
halt) your linguistic evolution.
HAVE YOU NOTICED THAT YOUR INNER MONOLO
23 matches
Mail list logo