Re: Issues encountered while launching the IDLE of python 3.7 64-bit I downloaded recently.

2017-11-24 Thread Terry Reedy
On 11/24/2017 6:39 PM, STEPHINEXT TUTORIALS wrote: On Wed, Nov 22, 2017 at 4:29 AM, STEPHINEXT TUTORIALS < oladejist...@gmail.com> wrote: I just downloaded the new version 3.7 for my windows operating system 64-bits on your site. Does Python itself run? The error I got while launching the

Re: Why does asyncio.wait_for() need a timeout?

2017-11-24 Thread Frank Millman
"Ian Kelly" wrote in message news:calwzidmrpfrr5mrejjyz+bdgtqlwy-sp+a_zc6zq7ebaz9g...@mail.gmail.com... On Fri, Nov 24, 2017 at 6:31 AM, Frank Millman wrote: > "Frank Millman" wrote in message news:ov5v3s$bv7$1...@blaine.gmane.org... > >> Below is a simple asyncio loop that runs two backgroun

Re: connect four (game)

2017-11-24 Thread Ian Kelly
On Fri, Nov 24, 2017 at 7:05 PM, wrote: > On Friday, November 24, 2017 at 12:13:18 PM UTC-8, Terry Reedy wrote: > >> Since you did not start with tests or write tests as you wrote code, ... > > why on earth would you assume that? instantiate "window" and you'll see it > works exactly as i intend

Re: connect four (game)

2017-11-24 Thread Chris Angelico
On Sat, Nov 25, 2017 at 1:05 PM, wrote: > On Friday, November 24, 2017 at 12:13:18 PM UTC-8, Terry Reedy wrote: > >> Since you did not start with tests or write tests as you wrote code, ... > > why on earth would you assume that? instantiate "window" and you'll see it > works exactly as i intend

Re: connect four (game)

2017-11-24 Thread namenobodywants
On Friday, November 24, 2017 at 12:13:18 PM UTC-8, Terry Reedy wrote: > Since you did not start with tests or write tests as you wrote code, ... why on earth would you assume that? instantiate "window" and you'll see it works exactly as i intended; nobody's asking you to debug code for free; i'm

Re: Issues encountered while launching the IDLE of python 3.7 64-bit I downloaded recently.

2017-11-24 Thread STEPHINEXT TUTORIALS
On Wed, Nov 22, 2017 at 4:29 AM, STEPHINEXT TUTORIALS < oladejist...@gmail.com> wrote: > Good morning, > I just downloaded the new version 3.7 for my windows operating system > 64-bits on your site. > The error I got while launching the IDLE is shown in the attached Picture. > I installed all the

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread Richard Damon
On 11/24/17 5:46 PM, Ned Batchelder wrote: On 11/24/17 5:26 PM, Richard Damon wrote: Have you tried using U+2010 (HYPHEN) ‐. It is in the class XID_CONTINUE (in fact it is in XID_START) so should be available. U+2010 isn't allowed in Python 3 identifiers. The rules for identifiers are here:

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread Ned Batchelder
On 11/24/17 5:26 PM, Richard Damon wrote: Have you tried using U+2010 (HYPHEN) ‐. It is in the class XID_CONTINUE (in fact it is in XID_START) so should be available. U+2010 isn't allowed in Python 3 identifiers. The rules for identifiers are here: https://docs.python.org/3/reference/lexical

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread Mikhail V
On Fri, Nov 24, 2017 at 11:26 PM, Richard Damon wrote: > > Have you tried using U+2010 (HYPHEN) ‐. It is in the class XID_CONTINUE (in > fact it is in XID_START) so should be available. > Hi Richard. U+2010 is SyntaxError. 5 days ago I made a proposal on python-ideas, and we have already discuss

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread Richard Damon
On 11/24/17 4:04 PM, Mikhail V wrote: On Fri, Nov 24, 2017 at 9:08 PM, Chris Angelico wrote: On Sat, Nov 25, 2017 at 7:00 AM, Mikhail V wrote: I agree that one should have more choices, but people still can't really choose many things. I can't choose hyphen, I can't choose minus sign, and man

Re: Python loop and web server (bottle) in the same script (Posting On Python-List Prohibited)

2017-11-24 Thread Gregory Ewing
Lawrence D’Oliveiro wrote: I naturally concluded that you didn’t care about updates being momentarily held up by a web request in progress--which would happen anyway if you used threads, at least with CPython. Not necessarily -- the web processing is probably I/O bound, in which case the GIL wi

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread breamoreboy
On Thursday, November 23, 2017 at 6:50:29 PM UTC, Mikhail V wrote: > Chris A wrote: > > >> On Fri, Nov 24, 2017 at 1:10 AM, Mikhail V wrote: > >> > >>> Chris A wrote: > >>> > >>> Fortunately for the world, you're not the one who decided which > >>> characters were permitted in Python identifiers.

ANN: DIPY 0.13.0

2017-11-24 Thread Eleftherios Garyfallidis
Hello all, We are happy to announce a new public release of DIPY. This is mostly a maintenance release with extra fixes, speedups and minor changes of dependencies. *DIPY 0.13 (Tuesday, 24 October 2017)* This release received contributions from 13 developers (the full release notes are at: http:

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread Rick Johnson
On Thursday, November 23, 2017 at 3:06:00 PM UTC-6, Chris Angelico wrote: > Seriously? Do I need to wrench this part out of you? This > was supposed to be the EASY question that everyone can > agree on, from which I can then draw my line of argument. Translation: "Dag-nab-it! You're supposed

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread Mikhail V
On Fri, Nov 24, 2017 at 9:08 PM, Chris Angelico wrote: > On Sat, Nov 25, 2017 at 7:00 AM, Mikhail V wrote: >> I agree that one should have more choices, but >> people still can't really choose many things. >> I can't choose hyphen, I can't choose minus sign, >> and many tech people would probably

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread Mikhail V
On Fri, Nov 24, 2017 at 5:37 PM, Chris Angelico wrote: > On Sat, Nov 25, 2017 at 3:33 AM, Mikhail V wrote: >> On Fri, Nov 24, 2017 at 8:03 AM, Chris Angelico wrote: >> and in Python in particular, because they will be not only forced to learn some english, but also will have all 'pleas

Re: Benefits of unicode identifiers

2017-11-24 Thread Terry Reedy
On 11/24/2017 7:12 AM, bartc wrote: π = 3.141; That's great. But how do I type it on my keyboard? How do I view someone else's code on my crappy ASCII text editor? Input is a problem, but for reading, Python comes with a half-way decent Unicode BMP code editor, IDLE. No one needs to use a

Re: connect four (game)

2017-11-24 Thread Terry Reedy
On 11/24/2017 10:33 AM, namenobodywa...@gmail.com wrote: hi all i've just finished my first excursion into artificial intelligence with a game less trivial than tictactoe, and here it is in case anybody can offer criticism/suggestions/etc Since you did not start with tests or write tests as

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread Chris Angelico
On Sat, Nov 25, 2017 at 7:00 AM, Mikhail V wrote: > I agree that one should have more choices, but > people still can't really choose many things. > I can't choose hyphen, I can't choose minus sign, > and many tech people would probably want more operators. > It counts probably not so *big* amount

Re: Increasing the diversity of people who write Python (was: Benefits of unicode identifiers)

2017-11-24 Thread Andrew Z
Thank you Rick for well thought out argument. On Nov 24, 2017 12:44, "Rick Johnson" wrote: > On Thursday, November 23, 2017 at 9:57:12 PM UTC-6, Ben Finney wrote: > [...] > > This is a necessary consequence of increasing the diversity > > of people able to program in Python: people will expres

Re: Increasing the diversity of people who write Python

2017-11-24 Thread Richard Damon
On 11/24/17 12:35 PM, Skip Montanaro wrote: I find it it interesting that the primary reason to want to limit the character set to ASCII is people thinking that it would make it hard for *them* to read/use the code, but no thought about how much harder it makes it on the original author/team to w

Re: Increasing the diversity of people who write Python (was: Benefits of unicode identifiers)

2017-11-24 Thread Skip Montanaro
> I find it it interesting that the primary reason to want to limit the > character set to ASCII is people thinking that it would make it hard for > *them* to read/use the code, but no thought about how much harder it makes > it on the original author/team to write code that is easily understood by

Re: Increasing the diversity of people who write Python (was: Benefits of unicode identifiers)

2017-11-24 Thread Rick Johnson
On Thursday, November 23, 2017 at 9:57:12 PM UTC-6, Ben Finney wrote: [...] > This is a necessary consequence of increasing the diversity > of people able to program in Python: people will express > ideas originating in their own language, in Python code. > For that diversity to increase, we Englis

Test, test, test

2017-11-24 Thread Skip Montanaro
Testing 1 2 3 ... (you can ignore) def gen_dotted_quad_clues(pfx, ips): for ip in ips: yield "%s:%s/32" % (pfx, ip) dottedQuadList = ip.split(".") if len(dottedQuadList) >= 1: yield "%s:%s/8" % (pfx, dottedQuadList[0]) if len(dottedQuadList) >= 2

Re: Increasing the diversity of people who write Python (was: Benefits of unicode identifiers)

2017-11-24 Thread Richard Damon
On 11/24/17 11:41 AM, Skip Montanaro wrote: Because if I already can't understand the words, it will be more useful to me to be able to type them reliably at a keyboard, for replication, search, discussion with others about the code, etc. I am probably not alone in my Americo-centric world where

Re: Why does asyncio.wait_for() need a timeout?

2017-11-24 Thread Ian Kelly
On Fri, Nov 24, 2017 at 9:35 AM, Ian Kelly wrote: > On Fri, Nov 24, 2017 at 6:31 AM, Frank Millman wrote: >> "Frank Millman" wrote in message news:ov5v3s$bv7$1...@blaine.gmane.org... >> >>> Below is a simple asyncio loop that runs two background tasks. >>> >> [...] >>> >>> >>> Both take an optio

Re: Increasing the diversity of people who write Python (was: Benefits of unicode identifiers)

2017-11-24 Thread Skip Montanaro
> Because if I already can't understand the words, it will be more useful > to me to be able to type them reliably at a keyboard, for replication, > search, discussion with others about the code, etc. I am probably not alone in my Americo-centric world where I can't even easily type accented Latin

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread Chris Angelico
On Sat, Nov 25, 2017 at 3:33 AM, Mikhail V wrote: > On Fri, Nov 24, 2017 at 8:03 AM, Chris Angelico wrote: > >>> and in Python in particular, because they will be not only forced to learn >>> some english, but also will have all 'pleasures' of multi-script editing. >>> But wait, probably one can

Re: Why does asyncio.wait_for() need a timeout?

2017-11-24 Thread Ian Kelly
On Fri, Nov 24, 2017 at 6:31 AM, Frank Millman wrote: > "Frank Millman" wrote in message news:ov5v3s$bv7$1...@blaine.gmane.org... > >> Below is a simple asyncio loop that runs two background tasks. >> > [...] >> >> >> Both take an optional timeout. >> >> If I use the first method without a timeou

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread Mikhail V
On Fri, Nov 24, 2017 at 8:03 AM, Chris Angelico wrote: >> and in Python in particular, because they will be not only forced to learn >> some english, but also will have all 'pleasures' of multi-script editing. >> But wait, probably one can write python code in, say Arabic script *only*? >> How a

Re: connect four (game)

2017-11-24 Thread Chris Angelico
On Sat, Nov 25, 2017 at 2:33 AM, wrote: > hi all > > i've just finished my first excursion into artificial intelligence with a > game less trivial than tictactoe, and here it is in case anybody can offer > criticism/suggestions/etc > Hi! You don't have a lot of comments or docstrings or anyth

connect four (game)

2017-11-24 Thread namenobodywants
hi all i've just finished my first excursion into artificial intelligence with a game less trivial than tictactoe, and here it is in case anybody can offer criticism/suggestions/etc peace stm ### #) connectfour - python 3.6.1 ### from t

Python para whatsapp em massa.

2017-11-24 Thread brennerx22
Bom dia. Gostaria de saber quais processos eu preciso fazer para aprender a programar em python. Preciso especificamente programar um software para envio em massa de whatsapp e não sei por onde começar. -- https://mail.python.org/mailman/listinfo/python-list

Re: Why does asyncio.wait_for() need a timeout?

2017-11-24 Thread Frank Millman
"Frank Millman" wrote in message news:ov5v3s$bv7$1...@blaine.gmane.org... Below is a simple asyncio loop that runs two background tasks. [...] Both take an optional timeout. If I use the first method without a timeout, the cancellation completes and the loop stops. If I use the second m

Re: Python loop and web server (bottle) in the same script (Posting On Python-List Prohibited)

2017-11-24 Thread zljubisic
That's right. Update task has precedence. Looks like it is not an easy task. Regards. -- https://mail.python.org/mailman/listinfo/python-list

Re: Benefits of unicode identifiers

2017-11-24 Thread Marko Rauhamaa
bartc : > On 24/11/2017 11:56, Stefan Ram wrote: >>Java allowed Unicode in identifiers right from the get-go >>(1995). I.e., one can write an assignment statement such as >> >> π = 3.141; > > That's great. But how do I type it on my keyboard? How do I view someone > else's code on my crapp

Re: Benefits of unicode identifiers

2017-11-24 Thread Thomas Jollans
On 2017-11-24 13:12, bartc wrote: > On 24/11/2017 11:56, Stefan Ram wrote: >> Karsten Hilbert writes: >>> However, the main point has been answered - Python already >>> does what is talked about. End of story. >> >>    Java allowed Unicode in identifiers right from the get-go >>    (1995). I.e., o

Re: Benefits of unicode identifiers

2017-11-24 Thread bartc
On 24/11/2017 11:56, Stefan Ram wrote: Karsten Hilbert writes: However, the main point has been answered - Python already does what is talked about. End of story. Java allowed Unicode in identifiers right from the get-go (1995). I.e., one can write an assignment statement such as π = 3

Re: Python loop and web server (bottle) in the same script (Posting On Python-List Prohibited)

2017-11-24 Thread Gregory Ewing
Lawrence D’Oliveiro wrote: On Friday, November 24, 2017 at 3:27:17 AM UTC+13, zlju...@gmail.com wrote: Looks like I need some sort of parallelization. This is why coroutines were added to Python. Threading is notoriously bug-prone, and is best avoided in most situations. The OP claimed tha

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread Karsten Hilbert
On Thu, Nov 23, 2017 at 05:47:04PM -0700, Ian Kelly wrote: > > Understanding, let alone being able to read, code written in Arabic ? > > People are going to write code in Arabic whether you like it or not, > because not everybody speaks English, and not everybody who does > *wants* to use it. Now