On 3/25/14 12:48 AM, Chris Angelico wrote:
Yup. Welcome to timezones. I'm UTC +11 here, although we'll drop back
to +10 shortly as DST finishes (yay!). It's currently 0547 UTC, so
you're presumably five hours behind UTC, which would put you east
coast USA, most likely. (Especially since your
On 3/25/14 12:48 AM, Chris Angelico wrote:
(Especially since your mailer is putting the
dates as mm/dd/yy, which is an abomination peculiar to Americans.)
I did not know that; so is 25 Mar 2014 the preferred way?
marcus
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, 25 Mar 2014 15:19:50 +1100, Chris Angelico wrote:
On Tue, Mar 25, 2014 at 2:59 PM, Mark H Harris harrismh...@gmail.com
wrote:
I personally think the answer is extended key maps triggered by meta
keys shift ctrl opt alt command | which call up full alternate
mappings of
On Tue, 25 Mar 2014 00:14:42 -0500, Mark H Harris wrote:
On 3/25/14 12:08 AM, Chris Angelico wrote:
How quickly can you switch, type one letter (to generate one Cyrillic
character), and switch back?
... very fast.
Is not this nicer?
Π = pi
That's the product operator.
py from
On Tue, Mar 25, 2014 at 4:47 PM, Steven D'Aprano st...@pearwood.info wrote:
On Tue, 25 Mar 2014 14:57:02 +1100, Chris Angelico wrote:
No, I'm not missing that. But the human brain is a tokenizer, just as
Python is. Once you know what a token means, you comprehend it as that
token, and it takes
On Tuesday, March 25, 2014 11:17:51 AM UTC+5:30, Steven D'Aprano wrote:
On Tue, 25 Mar 2014 14:57:02 +1100, Chris Angelico wrote:
wrote:
What you are missing is that programmers spend 90% of their time
reading code
10% writing code
You may well be in the super-whiz category (not being
: d/m/y, m/d/y, and y/m/d. (Or using
dots or hyphens between the components, or in the case of y/m/d, no
separator at all - I'll write today's date as 20140325 in some
contexts.) Of them, y/m/d is both the clearest and the least commonly
used; with a four-digit year, there's no way it could
On Mon, 24 Mar 2014 18:44:37 -0500, Mark H Harris wrote:
On 3/24/14 6:01 PM, Chris Angelico wrote:
Easy fix. Use the explicit capture notation:
adders[n] = lambda a, n=n: a+n
And there you are, out of your difficulty at once!
Yes, yes, yes, and example:
adders= list(range(4))
On Mon, 24 Mar 2014 17:58:11 -0600, Ian Kelly wrote:
On Mon, Mar 24, 2014 at 3:43 PM, Mark H Harris harrismh...@gmail.com
wrote:
Aside from the sin of spelling out lambda,
should be ( \x y - x + y ) a b ) but, neither here nor
there...
Well no, it *should* be λx y . x +
On Tue, Mar 25, 2014 at 5:04 PM, Steven D'Aprano st...@pearwood.info wrote:
I can get up a character map on any platform fairly easily, and if not,
I can always Google the name of the character I want and copy and paste
from fileformat.info or some other handy site. It's not that hard. But
if
On Mon, 24 Mar 2014 19:16:15 -0500, Mark H Harris wrote:
On 3/24/14 7:11 PM, Chris Angelico wrote:
On Tue, Mar 25, 2014 at 10:56 AM, Mark H Harrisharrismh...@gmail.com
wrote:
What is needed is the explicit closure grab recommended by ChrisA.
Which does work. You do know why, right?
On Tue, Mar 25, 2014 at 5:10 PM, Rustom Mody rustompm...@gmail.com wrote:
Something that Chris may relate to:
You type a music score into lilypond
Then call lilypond to convert it into standard western staff notation
Why not put up the lilypond (ASCII) directly on the piano/organ when you
On Tuesday, March 25, 2014 11:42:50 AM UTC+5:30, Chris Angelico wrote:
On Tue, Mar 25, 2014 at 4:47 PM, Steven D'Aprano wrote:
On Tue, 25 Mar 2014 14:57:02 +1100, Chris Angelico wrote:
No, I'm not missing that. But the human brain is a tokenizer, just as
Python is. Once you know what a
On Tuesday, March 25, 2014 12:03:24 PM UTC+5:30, Chris Angelico wrote:
On Tue, Mar 25, 2014 at 5:10 PM, Rustom Mody wrote:
Something that Chris may relate to:
You type a music score into lilypond
Then call lilypond to convert it into standard western staff notation
Why not put up the
On Tue, Mar 25, 2014 at 5:35 PM, Rustom Mody rustompm...@gmail.com wrote:
I dont think we are anywhere near making real suggestions for real changes
which would need to talk of compatibility, portability, editor support
and all such other good stuff.
Just a bit of brainstorming to see how an
On 3/25/14 12:08 AM, Chris Angelico wrote:
How quickly can you switch, type one letter (to generate one Cyrillic
character), and switch back?
Ok.. after installing Ukelete from Summer Institute of Linguistics SIL I
can now edit the installed keymaps and select them from input sources at
the
On Tue, Mar 25, 2014 at 5:41 PM, Rustom Mody rustompm...@gmail.com wrote:
ALl of which is isomorphic to Steven's point that forty is less
eyeballable than 40
And mine that ∅ is more eyeballable than set([])
I don't disagree that it is; the short tokens are easier to read in
quantity. I just
On Tuesday, March 25, 2014 12:15:11 PM UTC+5:30, Chris Angelico wrote:
On Tue, Mar 25, 2014 at 5:35 PM, Rustom Mody wrote:
I dont think we are anywhere near making real suggestions for real changes
which would need to talk of compatibility, portability, editor support
and all such other
On Mon, 24 Mar 2014 21:39:33 -0500, Mark H Harris wrote:
On 3/24/14 8:20 PM, Terry Reedy wrote:
On 3/24/2014 7:56 PM, Mark H Harris wrote:
the list which is used for each of the adder[] functions created.
Wrong. Functions look up global and nonlocal names, such as n, when the
function is
On Mon, 24 Mar 2014 20:56:19 -0700, Rustom Mody wrote:
Paren vs tuples: why do we need to write (x,) not (x)
You don't. You can write x, without the brackets:
py t = 23,
py type(t)
class 'tuple'
It's the comma that makes tuples, not the brackets.
--
Steven
--
On Tue, 25 Mar 2014 17:19:10 +1100, Chris Angelico wrote:
I'll write today's date as 20140325 in some contexts.) Of them,
y/m/d is both the clearest and the least commonly used; with a
four-digit year, there's no way it could be confused for anything else.
Shame on you Chris! Don't you know
On Tue, Mar 25, 2014 at 6:03 PM, Steven D'Aprano st...@pearwood.info wrote:
On Tue, 25 Mar 2014 17:19:10 +1100, Chris Angelico wrote:
I'll write today's date as 20140325 in some contexts.) Of them,
y/m/d is both the clearest and the least commonly used; with a
four-digit year, there's no way
On Tuesday, March 25, 2014 12:33:49 PM UTC+5:30, Steven D'Aprano wrote:
On Mon, 24 Mar 2014 20:56:19 -0700, Rustom Mody wrote:
Paren vs tuples: why do we need to write (x,) not (x)
You don't. You can write x, without the brackets:
py t = 23,
py type(t)
It's the comma that makes tuples,
Shishir shish...@gmail.com writes:
...
I am writing a software to control and monitor a vacuum
furnace+attachments. It has a few mass flow controllers, a butterfly valve,
a labjack unit for analog/digital outputs etc. They use RS485, RS232 and
USB to communicate with the computer and follow
Wesley nisp...@gmail.com writes:
I am trying to use gdb debug python script.
I am using gdb7.7 and python2.7.6, here is my simple test script:
import time
def next(i):
time.sleep(10)
i = 1 - i
i = 1
while True:
next(i)
When this script running, gdb attach to it, and
Jamie Mitchell jamiemitchell1...@gmail.com writes:
...
I then get a memory error:
Traceback (most recent call last):
File stdin, line 1, in module
File /usr/local/sci/lib/python2.7/site-packages/scipy/stats/stats.py,
line 2409, in pearsonr
x = np.asarray(x)
File
Chris Angelico ros...@gmail.com:
On Tue, Mar 25, 2014 at 4:14 PM, Mark H Harris harrismh...@gmail.com wrote:
Π = pi
That's good! (Although typing Π quicker than pi is majorly pushing it.
It don't think that's good. The lower-case letter π should be used. The
upper-case letter is used for a
在 2014年3月25日星期二UTC+8下午3时49分09秒,dieter写道:
Wesley nisp...@gmail.com writes:
I am trying to use gdb debug python script.
I am using gdb7.7 and python2.7.6, here is my simple test script:
import time
def next(i):
time.sleep(10)
i = 1 - i
i = 1
On Tue, Mar 25, 2014 at 7:05 PM, Marko Rauhamaa ma...@pacujo.net wrote:
Chris Angelico ros...@gmail.com:
On Tue, Mar 25, 2014 at 4:14 PM, Mark H Harris harrismh...@gmail.com wrote:
Π = pi
That's good! (Although typing Π quicker than pi is majorly pushing it.
It don't think that's good. The
On Tue, 25 Mar 2014 19:23:45 +1100, Chris Angelico wrote:
I was trying to avoid nit-picking
What, on comp.lang.python? What's wrong with you?
:-)
--
Steven
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, Mar 25, 2014 at 7:59 PM, Steven D'Aprano st...@pearwood.info wrote:
On Tue, 25 Mar 2014 19:23:45 +1100, Chris Angelico wrote:
I was trying to avoid nit-picking
What, on comp.lang.python? What's wrong with you?
:-)
I know, it's like refraining from bike-shedding on python-ideas or
On 25-03-14 06:08, Chris Angelico wrote:
On Tue, Mar 25, 2014 at 4:00 PM, Rustom Mody rustompm...@gmail.com wrote:
Its already there -- and even easier
Switch to cyrillic-jis-russian (whatever that is!)
and I get л from k Л from K
How quickly can you switch, type one letter (to generate one
On Tue, Mar 25, 2014 at 8:43 PM, Antoon Pardon
antoon.par...@rece.vub.ac.be wrote:
I thought programs were read more than written. So if writing is made
a bit more problematic but the result is more readable because we are
able to use symbols that are already familiar from other contexts, I
x = [[1, 2], [3, 4]]
for x in x:
... for x in x:
... print(x)
This is valid in the syntax level
in python. But it is only good
for those writing obscure programs in
my opinions at most team works.
--
https://mail.python.org/mailman/listinfo/python-list
On 25-03-14 05:14, Chris Angelico wrote:
On Tue, Mar 25, 2014 at 2:56 PM, Rustom Mody rustompm...@gmail.com
I don't know about the difference between {} in set theory and Python,
but the multiple uses of () actually boil down to two:
In set theory {} makes sets
In python {} makes dictionaries
I'm confused by the behaviour of the following python-script I wrote:
#!/usr/bin/env python
#I first made a data file 'test.dat' with the following content
#1.0 2 3
#4 5 6.0
#7 8 9
import numpy as np
lines=[line.strip() for line in open('test.dat')]
#convert lines-list to numpy-array
On 25-03-14 10:54, Chris Angelico wrote:
On Tue, Mar 25, 2014 at 8:43 PM, Antoon Pardon
antoon.par...@rece.vub.ac.be wrote:
I thought programs were read more than written. So if writing is made
a bit more problematic but the result is more readable because we are
able to use symbols that are
http://www.techdarting.com/2014/03/why-different-flavors-of-python.html
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, 25 Mar 2014 03:26:26 -0700, Jean Dubois wrote:
I'm confused by the behaviour of the following python-script I wrote:
#!/usr/bin/env python
#I first made a data file 'test.dat' with the following content
#1.0 2 3
#4 5 6.0
#7 8 9
import numpy as np
lines=[line.strip() for line in
On Tue, Mar 25, 2014 at 9:24 PM, Antoon Pardon
antoon.par...@rece.vub.ac.be wrote:
No they didn't have to. With the transition to python3, the developers
could have opted for empty braces to mean an empty set. And if they
wanted a literal for an empty dictionary, they might have chosen {:}.
On Tue, 25 Mar 2014 11:38:38 +0100, Antoon Pardon wrote:
On 25-03-14 10:54, Chris Angelico wrote:
On Tue, Mar 25, 2014 at 8:43 PM, Antoon Pardon
antoon.par...@rece.vub.ac.be wrote:
I thought programs were read more than written. So if writing is made
a bit more problematic but the result is
On 25-03-14 12:14, Steven D'Aprano wrote:
On Tue, 25 Mar 2014 11:38:38 +0100, Antoon Pardon wrote:
On 25-03-14 10:54, Chris Angelico wrote:
On Tue, Mar 25, 2014 at 8:43 PM, Antoon Pardon
antoon.par...@rece.vub.ac.be wrote:
I thought programs were read more than written. So if writing is made
On 25-03-14 12:12, Chris Angelico wrote:
On Tue, Mar 25, 2014 at 9:24 PM, Antoon Pardon
antoon.par...@rece.vub.ac.be wrote:
No they didn't have to. With the transition to python3, the developers
could have opted for empty braces to mean an empty set. And if they
wanted a literal for an empty
On Tuesday, March 25, 2014 5:16:14 PM UTC+5:30, Antoon Pardon wrote:
On 25-03-14 12:14, Steven D'Aprano wrote:
Would
such a use already indicate I should use a mathematical front-end?
When a programming language is borrowing concepts from mathematics, I
see no reason not to borrow the
In article mailman.8511.1395743071.18130.python-l...@python.org,
Antoon Pardon antoon.par...@rece.vub.ac.be wrote:
Come on. The problem isn't that both set and dictionary literal use
braces. That doesn't seem to be a problem in python3. The only question
was what should {} represent and how
In article lgquvt$b7t$1...@speranza.aioe.org,
Mark H Harris harrismh...@gmail.com wrote:
On 3/24/14 10:51 PM, Chris Angelico wrote:
Supporting both may look tempting, but you effectively create two ways
of spelling the exact same thing; it'd be like C's trigraphs. Do you
know what ??= is,
In article lgr5pq$olp$1...@speranza.aioe.org,
Mark H Harris harrismh...@gmail.com wrote:
(we're on one tiny planet, you know?)
Speak for yourself.
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, Mar 25, 2014 at 11:07 PM, Antoon Pardon
antoon.par...@rece.vub.ac.be wrote:
On 25-03-14 12:12, Chris Angelico wrote:
On Tue, Mar 25, 2014 at 9:24 PM, Antoon Pardon
antoon.par...@rece.vub.ac.be wrote:
No they didn't have to. With the transition to python3, the developers
could have
In article 281c8ce1-4f03-4e93-b5cd-d45b85e89...@googlegroups.com,
Rustom Mody rustompm...@gmail.com wrote:
And Chris is right in (rephrasing) we may have unicode-happy OSes and
languages. We cant reasonably have unicode-happy keyboards.
[What would a million-key keyboard look like? Lets leave
On Tuesday, March 25, 2014 4:08:38 PM UTC+5:30, Antoon Pardon wrote:
So? We do use + -, so why shouldn't we use × for multiplication. Would
such a use already indicate I should use a mathematical front-end?
When a programming language is borrowing concepts from mathematics,
I see no reason
On 25-03-14 13:45, Chris Angelico wrote:
It makes the same notation mean different things, in ways that are
hard to render clearly. You can write a Py3 program and put this at
the top for Py2:
try:
input = raw_input
range = xrange
except NameError:
# We're running on Python 3
On Tuesday, March 25, 2014 6:15:16 PM UTC+5:30, Chris Angelico wrote:
On Tue, Mar 25, 2014 at 11:07 PM, Antoon Pardon
On 25-03-14 12:12, Chris Angelico wrote:
On Tue, Mar 25, 2014 at 9:24 PM, Antoon Pardon
No they didn't have to. With the transition to python3, the developers
could have
On Tue, Mar 25, 2014 at 11:35 PM, Roy Smith r...@panix.com wrote:
When's the last time you saw somebody typing commands to a computer on
Star Trek?
That's more like what comes up in Cars 2. It's voice activated... but
then, everything is these days!
ChrisA
--
ChrisA -
I wasn't really asking is multiprocessing appropriate? but whether
there was a cleaner way to subclass multiprocessing.BaseManager() to
use a subclass of Process(). I can believe the answer is No, but
thought I'd ask.
I've never subclassed BaseManager like this. It might be
On Tue, 25 Mar 2014 08:21:19 -0400, Roy Smith wrote:
In article mailman.8511.1395743071.18130.python-l...@python.org,
Antoon Pardon antoon.par...@rece.vub.ac.be wrote:
Come on. The problem isn't that both set and dictionary literal use
braces. That doesn't seem to be a problem in python3.
On 25-03-14 13:53, Rustom Mody wrote:
On Tuesday, March 25, 2014 4:08:38 PM UTC+5:30, Antoon Pardon wrote:
So? We do use + -, so why shouldn't we use × for multiplication. Would
such a use already indicate I should use a mathematical front-end?
When a programming language is borrowing concepts
Op dinsdag 25 maart 2014 12:01:37 UTC+1 schreef Steven D'Aprano:
On Tue, 25 Mar 2014 03:26:26 -0700, Jean Dubois wrote:
I'm confused by the behaviour of the following python-script I wrote:
#!/usr/bin/env python
#I first made a data file 'test.dat' with the following content
#1.0 2 3
On Wed, Mar 26, 2014 at 12:43 AM, Antoon Pardon
antoon.par...@rece.vub.ac.be wrote:
It doesn't bother me. IIRC in primary school before fractions were
introduced,
a colon was used to indicate division.
The way I learned it, a colon was for a ratio, and a horizontal line
was for a fraction.
On Wed, Mar 26, 2014 at 12:07 AM, Rustom Mody rustompm...@gmail.com wrote:
What you are answering (2) is somewhat different from what Anton is asking
(1).
1. Use a tool (2to3 inspired) to help move programs to the the new lexicon
2. Use 2to3 to (help) write code that is backward-compatible
On Wed, Mar 26, 2014 at 12:34 AM, matt.newvi...@gmail.com wrote:
Monkey-patching multiprocessing.Process seems more fragile than subclassing
it. It turned out that multiprocessing.pool.Pool was also very easy to
subclass. But cleanly subclassing the Managers in multiprocessing.managers
On 25-03-14 14:36, Steven D'Aprano wrote:
On Tue, 25 Mar 2014 08:21:19 -0400, Roy Smith wrote:
In article mailman.8511.1395743071.18130.python-l...@python.org,
Antoon Pardon antoon.par...@rece.vub.ac.be wrote:
Come on. The problem isn't that both set and dictionary literal use
braces. That
On Tuesday, March 25, 2014 7:26:47 PM UTC+5:30, Chris Angelico wrote:
On Wed, Mar 26, 2014 at 12:43 AM, Antoon Pardon
It doesn't bother me. IIRC in primary school before fractions were
introduced,
a colon was used to indicate division.
The way I learned it, a colon was for a ratio, and a
On Tuesday, March 25, 2014 7:13:09 PM UTC+5:30, Antoon Pardon wrote:
On 25-03-14 13:53, Rustom Mody wrote:
On Tuesday, March 25, 2014 4:08:38 PM UTC+5:30, Antoon Pardon wrote:
So? We do use + -, so why shouldn't we use × for multiplication. Would
such a use already indicate I should use a
On Tue, 25 Mar 2014 08:35:02 -0400, Roy Smith wrote:
In article 281c8ce1-4f03-4e93-b5cd-d45b85e89...@googlegroups.com,
Rustom Mody rustompm...@gmail.com wrote:
And Chris is right in (rephrasing) we may have unicode-happy OSes and
languages. We cant reasonably have unicode-happy keyboards.
On Wed, Mar 26, 2014 at 1:13 AM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
On Tue, 25 Mar 2014 08:35:02 -0400, Roy Smith wrote:
In article 281c8ce1-4f03-4e93-b5cd-d45b85e89...@googlegroups.com,
Rustom Mody rustompm...@gmail.com wrote:
And Chris is right in (rephrasing) we
On Tue, 25 Mar 2014 05:53:45 -0700, Rustom Mody wrote:
And if we had hyphen '‐' distinguished from minus '-' then we could have
lispish names like call‐with‐current‐continuation properly spelt. And
then generations of programmers will thank us for increasing their
debugging overtime!!
:-)
Jean Dubois jeandubois...@gmail.com Wrote in message:
Op dinsdag 25 maart 2014 12:01:37 UTC+1 schreef Steven D'Aprano:
py values = [float(s) for s in data.split()]
py print values
[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0]
py array_lines = np.array(values)
py array_lines =
On Tue, 25 Mar 2014 05:09:20 -0700, Rustom Mody wrote:
Two completely separate questions
1. Symbols outside of US-104-keyboard/ASCII used for python
functions/constants
2. Non-linear math notation
It goes back not just to the first programming languages but to Turing's
paper that
On Tuesday, March 25, 2014 7:53:23 PM UTC+5:30, Steven D'Aprano wrote:
On Tue, 25 Mar 2014 05:53:45 -0700, Rustom Mody wrote:
And if we had hyphen '‐' distinguished from minus '-' then we could have
lispish names like call‐with‐current‐continuation properly spelt. And
then generations of
On Tue, 25 Mar 2014 06:47:23 -0700, Jean Dubois wrote:
[...]
Thanks for answering my question but unfortunately now I'm totally
confused.
Above I see parts from different programs which I can't assemble
together to one working program (I really tried hard). Can I tell from
your comment I
Jean Dubois wrote:
Op dinsdag 25 maart 2014 12:01:37 UTC+1 schreef Steven D'Aprano:
On Tue, 25 Mar 2014 03:26:26 -0700, Jean Dubois wrote:
I'm confused by the behaviour of the following python-script I wrote:
#!/usr/bin/env python
#I first made a data file 'test.dat' with the
On 3/25/14 9:42 AM, Dave Angel wrote:
All I need is a little python-example reading a file with e.g. three lines
with three numbers per line and putting those numbers as floats in a
3x3-numpy_array, then selecting an element from that numpy_array using
it's row and column-number.
If your
On 3/25/14 7:36 AM, Roy Smith wrote:
(we're on one tiny planet, you know?)
Speak for yourself.
Are others on this list, um, on a different planet? Or, am I the only
one who knows its tiny?
Yes, we're on a tiny planet revolving around a speck of a star, at the
edge of an
What about this:
Put a Frame() inside the root: `frame = Frame(root)`. This frame will be
the only immediate child of root. Everything else will be put inside the
frame. When you need to clear the root, call `frame.destroy()`. This will
destroy `frame` and all its children. You will need to
On Tue, Mar 25, 2014 at 9:05 AM, Marko Rauhamaa ma...@pacujo.net wrote:
Chris Angelico ros...@gmail.com:
On Tue, Mar 25, 2014 at 4:14 PM, Mark H Harris harrismh...@gmail.com wrote:
Π¹ = pi
That's good! (Although typing Π¹ quicker than pi is majorly pushing it.
It don't think that's good.
On Tuesday, 25 March 2014 10:16:20 UTC-8, rbor...@gmail.com wrote:
On Sunday, 23 March 2014 18:22:54 UTC-8, Rhodri James wrote:
On Sun, 23 Mar 2014 17:09:09 -, rborol...@gmail.com wrote:
Hi Everybody
actually i want to run python on web browser.
On Sunday, 23 March 2014 18:22:54 UTC-8, Rhodri James wrote:
On Sun, 23 Mar 2014 17:09:09 -, rborol...@gmail.com wrote:
Hi Everybody
actually i want to run python on web browser.
Actually you don't. You want to run Python on a web server, which
fortunately is a
On Sunday, 23 March 2014 13:07:28 UTC-8, tad na wrote:
On Sunday, March 23, 2014 12:33:02 PM UTC-5, tad na wrote:
On Sunday, March 23, 2014 12:09:09 PM UTC-5, rbor...@gmail.com wrote:
Hi Everybody
actually i want to run python on web browser. I downloaded python and
installed
On Sunday, 23 March 2014 19:35:19 UTC-8, Chris Angelico wrote:
On Mon, Mar 24, 2014 at 2:28 PM, Mark H Harris harrismh...@gmail.com wrote:
Anyway, the PSF runs python (the interpreter) from a web server (I can
access the python interpreter from my browser from the PSF site).
How
greetings, I would like to create a lamda as follows:
√ = lambda n: sqrt(n)
On my keyboard mapping the problem character is alt-v which produces
the radical symbol. When trying to set the symbol as a name within the
name-space gives a syntax error:
from math import sqrt
√ = lambda n:
Op dinsdag 25 maart 2014 17:12:12 UTC+1 schreef Peter Otten:
Jean Dubois wrote:
Op dinsdag 25 maart 2014 12:01:37 UTC+1 schreef Steven D'Aprano:
On Tue, 25 Mar 2014 03:26:26 -0700, Jean Dubois wrote:
I'm confused by the behaviour of the following python-script I wrote:
Le mardi 25 mars 2014 19:30:34 UTC+1, Mark H. Harris a écrit :
greetings, I would like to create a lamda as follows:
√ = lambda n: sqrt(n)
On my keyboard mapping the problem character is alt-v which produces
the radical symbol. When trying to set the symbol as a name within
Op dinsdag 25 maart 2014 15:42:13 UTC+1 schreef Dave Angel:
Jean Dubois jeandubois...@gmail.com Wrote in message:
Op dinsdag 25 maart 2014 12:01:37 UTC+1 schreef Steven D'Aprano:
py values = [float(s) for s in data.split()]
py print values
[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0]
On 25/03/2014 18:17, rborol...@gmail.com wrote:
Would you please use the mailing list
https://mail.python.org/mailman/listinfo/python-list or read and action
this https://wiki.python.org/moin/GoogleGroupsPython to prevent us
seeing double line spacing and single line paragraphs, thanks.
--
On 2014-03-25 18:30, Mark H Harris wrote:
greetings, I would like to create a lamda as follows:
√ = lambda n: sqrt(n)
On my keyboard mapping the problem character is alt-v which produces
the radical symbol. When trying to set the symbol as a name within the
name-space gives a syntax error:
On 3/25/14 1:52 PM, wxjmfa...@gmail.com wrote:
'√'.isidentifier()
False
'λ'.isidentifier()
True
S.isidentifier() - bool
Return True if S is a valid identifier according
to the language definition.
cf unicode.org doc
Excellent, thanks!
marcus
--
On 3/25/14 2:24 PM, MRAB wrote:
It's explained in PEP 3131.
Basically, a name should to start with a letter (this has been extended
to include Chinese characters, etc) or an underscore.
λ is a classified as Lowercase_Letter.
√ is classified as Math_Symbol.
Thanks much! I'll note that
On Wed, Mar 26, 2014 at 4:24 AM, Chris “Kwpolska” Warrick
kwpol...@gmail.com wrote:
“If you can type an N-ARY PRODUCT, you can type a GREEK SMALL LETTER
PI, unless there’s something very weird going on.”
…like, the user is in the past and is using ISO 8859-7 (instead of a
21st-century
Mark H Harris harrismh...@gmail.com Wrote in message:
greetings, I would like to create a lamda as follows:
â = lambda n: sqrt(n)
On my keyboard mapping the problem character is alt-v which produces
the radical symbol. When trying to set the symbol as a name within the
name-space
Jean, be aware there is also python tutor list you might like. This is
sometimes a tough crowd here. Don't be discouraged. It can be a badge of
honor sometimes
--
https://mail.python.org/mailman/listinfo/python-list
Mark H Harris harrismh...@gmail.com:
Thanks much! I'll note that for improvements. Any unicode symbol
(that is not a number) should be allowed as an identifier.
I don't know if that's a good idea, but that's how it is in lisp/scheme.
Thus, * and 1+ are normal identifiers in lisp and
On Tue, Mar 25, 2014 at 1:29 PM, Mark H Harris harrismh...@gmail.com wrote:
On 3/25/14 2:24 PM, MRAB wrote:
It's explained in PEP 3131.
Basically, a name should to start with a letter (this has been extended
to include Chinese characters, etc) or an underscore.
λ is a classified as
On Tue, Mar 25, 2014 at 2:48 PM, Marko Rauhamaa ma...@pacujo.net wrote:
I don't know if that's a good idea, but that's how it is in lisp/scheme.
Thus, * and 1+ are normal identifiers in lisp and scheme.
But parsing Lisp is pretty trivial.
Skip
--
Jean Dubois jeandubois...@gmail.com Wrote in message:
Op dinsdag 25 maart 2014 15:42:13 UTC+1 schreef Dave Angel:
If your instructor wanted you to copy examples, he would have
given you one.
please Dave leave that belittling tone behind, there's no instructor
whatsoever involved here.
Roy Smith wrote:
Doors that open automatically as you approach them are now
routine.
Star Trek doors seem to be a bit smarter, though.
Captain Kirk never had to stop in front of a door
and wait for it to sluggishly slide open. Also the
doors never open when you're just walking past and
not
On 2014-03-25 14:29, Mark H Harris wrote:
It's explained in PEP 3131.
Basically, a name should to start with a letter (this has been
extended to include Chinese characters, etc) or an underscore.
λ is a classified as Lowercase_Letter.
√ is classified as Math_Symbol.
On Tue, Mar 25, 2014 at 4:21 PM, Gregory Ewing
greg.ew...@canterbury.ac.nzwrote:
Roy Smith wrote:
Doors that open automatically as you approach them are now routine.
Star Trek doors seem to be a bit smarter, though.
Captain Kirk never had to stop in front of a door
and wait for it to
Rustom Mody wrote:
÷ for some reason seems inappropriate
(some vague recollection that its an only English; Europeans dont use it??)
To me it's something you learn in primary school and
then grow out of when you start doing real mathematics.
The / is actually a better approximation of what
Hello,
I am announcing the release of pathlib 1.0. This version brings pathlib
up to date with the official Python 3.4 release, and also fixes a couple of
2.7-specific issues. Detailed changelog can be found further below.
In the future, I expect the standalone (PyPI) version of pathlib to
Chris Angelico wrote:
But you can't do the same for braces. You'd have to eschew *both*
literal-ish notations and use explicit constructors everywhere. Not
clean.
This could have been dealt with by giving Python 2.7
a from __future__ import braces_mean_sets option or
something like that.
But
1 - 100 of 246 matches
Mail list logo