Re: How to maintain same permissions on python dist-package after upgrade?

2017-11-16 Thread dieter
Debraj Manna writes: > I am using a python package patroni version 1.0 on Ubuntu 14. On doing ls > -lrt /usr/local/lib/python2.7/dist-packages/ I am seeing the permission > like below > > drwxr-sr-x4 root staff 4096 Nov 6 14:29 patroni > drwxr-sr-x2 root staff 4096 Nov 6 14:29 pat

Re: Artificial creating of [Lists], is it possible? the best way...

2017-11-16 Thread MRAB
On 2017-11-16 18:47, jakub.raj...@gmail.com wrote: Hello, im working on school project, its deck game Sorry! I need to create specific lists: My idea is about to using for For i in range (n): i=[] I know, that there is no possibility to make it from number, but i havent idea, how to reac

Artificial creating of [Lists], is it possible? the best way...

2017-11-16 Thread jakub . rajcok
Hello, im working on school project, its deck game Sorry! I need to create specific lists: My idea is about to using for For i in range (n): i=[] I know, that there is no possibility to make it from number, but i havent idea, how to reach my wants Li/L"i"/L(i), how to make possible for list

Re: Artificial creating of [Lists], is it possible? the best way...

2017-11-16 Thread Peter Pearson
On Thu, 16 Nov 2017 10:47:53 -0800 (PST), jakub.raj...@gmail.com wrote: > Hello, im working on school project, its deck game Sorry! > I need to create specific lists: > My idea is about to using for > For i in range (n): >i=[] This will create n different empty lists, in succession, and di

Re: Shoulid constants be introduced to Python?

2017-11-16 Thread ROGER GRAYDON CHRISTMAN
On Thu, Nov 16, 2017, Saeed Baig wrote: > Message: 7 >Date: Thu, 16 Nov 2017 17:16:11 +1100 >From: Saeed Baig >To: python-list@python.org >Subject: Should constants be introduced to Python? >Message-ID: <5d4da7b2-504a-4a3a-bace-ffadea1d2...@icloud.com> >Content-Type: text/plain; charset=utf-8

Re: Should constants be introduced to Python?

2017-11-16 Thread Chris Angelico
On Fri, Nov 17, 2017 at 9:27 AM, Terry Reedy wrote: > CPython, at least, already has anonymous constant objects. Number and > string literals are turned into objects when parsed. I presume that all > implementations do this. Some constant expressions are replaced by > (constant) objects during

Re: Should constants be introduced to Python?

2017-11-16 Thread Terry Reedy
On 11/16/2017 4:55 PM, Michael Torrie wrote: On 11/15/2017 11:16 PM, Saeed Baig wrote: - Do you guys think it would be a good idea? Why or why not? Do you think there’s a better way to do it? I’d like to know what others think about this idea before making any formal submission. Except for for

Re: Should constants be introduced to Python?

2017-11-16 Thread Michael Torrie
On 11/15/2017 11:16 PM, Saeed Baig wrote: > - Do you guys think it would be a good idea? Why or why not? Do you > think there’s a better way to do it? I’d like to know what others > think about this idea before making any formal submission. Except for forcing it to be read-only, there's absolutely

Re: from xx import yy

2017-11-16 Thread Cameron Simpson
On 16Nov2017 09:42, bvdp wrote: In my original case, I think (!!!), the problem was that I had a variable in mod1.py and when I did the "from mod1 import myvarible" all was fine. Python create a new local-to-the-module variable and initialized it to the value it was set to in mod1. And at this

Re: Windows - py363 crashes with "vonLöwis.py"

2017-11-16 Thread Terry Reedy
On 11/16/2017 5:51 AM, breamore...@gmail.com wrote: On Thursday, November 16, 2017 at 8:43:24 AM UTC, wxjm...@gmail.com wrote: Mark: Jmf's troll posts to the Google group are not propagated to python-list and the gmane mirror except when people, like you here, quote him. Please stop. Do you

Re: Should constants be introduced to Python?

2017-11-16 Thread Ned Batchelder
On 11/16/17 1:16 AM, Saeed Baig wrote: Hey guys I am thinking of perhaps writing a PEP to introduce constants to Python. Something along the lines of Swift’s “let” syntax (e.g. “let pi = 3.14”). Since I’m sort of new to this, I just wanted to ask: - Has a PEP for this already been written? If

How to maintain same permissions on python dist-package after upgrade?

2017-11-16 Thread Debraj Manna
I am using a python package patroni version 1.0 on Ubuntu 14. On doing ls -lrt /usr/local/lib/python2.7/dist-packages/ I am seeing the permission like below drwxr-sr-x4 root staff 4096 Nov 6 14:29 patroni drwxr-sr-x2 root staff 4096 Nov 6 14:29 patroni-1.0-py2.7.egg-info But once

Re: from xx import yy

2017-11-16 Thread bvdp
On Tuesday, November 14, 2017 at 2:53:22 PM UTC-7, Cameron Simpson wrote: > On 13Nov2017 08:58, bvdp wrote: > >On Sunday, November 12, 2017 at 7:18:04 PM UTC-7, bvdp wrote: > >> I'm having a conceptual mind-fart today. I just modified a bunch of code > >> to use "from xx import variable" when var

Re: Windows - py363 crashes with "vonLöwis.py"

2017-11-16 Thread Thomas Jollans
On 2017-11-16 11:51, breamore...@gmail.com wrote: > On Thursday, November 16, 2017 at 8:43:24 AM UTC, wxjm...@gmail.com wrote: >> Le mercredi 15 novembre 2017 23:43:46 UTC+1, Terry Reedy a écrit : >>> On 11/15/2017 6:58 AM, breamoreboy wrote: On Wednesday, November 15, 2017 at 8:53:44 AM UTC,

Dropbox releases PyAnnotate -- auto-generate type annotations for mypy

2017-11-16 Thread breamoreboy
As type annotations seem to be taking off in a big way I thought that http://mypy-lang.blogspot.co.uk/2017/11/dropbox-releases-pyannotate-auto.html would be of interest, to some of you anyway. -- Kindest regards. Mark Lawrence. -- https://mail.python.org/mailman/listinfo/python-list

Re: Windows - py363 crashes with "vonLöwis.py"

2017-11-16 Thread breamoreboy
On Thursday, November 16, 2017 at 8:43:24 AM UTC, wxjm...@gmail.com wrote: > Le mercredi 15 novembre 2017 23:43:46 UTC+1, Terry Reedy a écrit : > > On 11/15/2017 6:58 AM, breamoreboy wrote: > > > On Wednesday, November 15, 2017 at 8:53:44 AM UTC, wxjm...@gmail.com > > > wrote: > > >> Sorry, to hav

Re: To ASCII Or Not To ASCII? (Posting On Python-List Prohibited)

2017-11-16 Thread Christian Gollwitzer
Am 16.11.17 um 02:45 schrieb Lawrence D’Oliveiro: From : def raıse(self) : "raises this exception." libm.feraiseexcept(self.mask) #end raıse raiise = raıse # if you prefer you do this to annoy people? Christian -- https

Should constants be introduced to Python?

2017-11-16 Thread Saeed Baig
Hey guys I am thinking of perhaps writing a PEP to introduce constants to Python. Something along the lines of Swift’s “let” syntax (e.g. “let pi = 3.14”). Since I’m sort of new to this, I just wanted to ask: - Has a PEP for this already been written? If so, where can I find the link/info to it