Re: Cookies not showing up in environ

2018-07-25 Thread abc abc
Yes, this was the problem. At some point early in my attempts I got the idea that linking up Django to a production web server required writing a separate wsgi.py script. Wrong. Replaced the wsgi.py with the default Django wsgi.py for the project and everything seems resolved. Thank you. -- htt

Re: Checking whether type is None

2018-07-25 Thread Steven D'Aprano
On Wed, 25 Jul 2018 16:14:18 +, Schachner, Joseph wrote: > While I appreciate that use of "is" in thing is None, I claim this > relies on knowledge of how Python works internally, to know that every > None actually is the same ID (the same object) - it is singular. No, it isn't knowledge of

Re: Can pip install packages for all users (on a Linux system)?

2018-07-25 Thread John Ladasky
On Wednesday, July 25, 2018 at 7:15:35 AM UTC-7, Stephan Houben wrote: > Op 2018-07-24, John Ladasky schreef : > > I believe that I now have tensorflow 1.8 installed twice on my system, > > once for each user. If anyone can share how to convince pip to behave > > like Synaptic, I would appreciate

Re: Checking whether type is None

2018-07-25 Thread Ian Kelly
On Wed, Jul 25, 2018, 8:27 AM Stephan Houben wrote: > Op 2018-07-24, Chris Angelico schreef : > > On Wed, Jul 25, 2018 at 9:18 AM, Rob Gaddi > > wrote: > >> On 07/24/2018 01:07 PM, Chris Angelico wrote: > >> I suppose one valid usage would be this sort of thing: > >> > >> fn = { > >> int: dis

Re: Checking whether type is None

2018-07-25 Thread Chris Angelico
On Thu, Jul 26, 2018 at 12:20 AM, Stephan Houben wrote: > Op 2018-07-24, Chris Angelico schreef : >> On Wed, Jul 25, 2018 at 9:18 AM, Rob Gaddi >> wrote: >>> On 07/24/2018 01:07 PM, Chris Angelico wrote: >>> I suppose one valid usage would be this sort of thing: >>> >>> fn = { >>> int: dispatc

Re: hello from a very excited and totally blind python programmer and game player

2018-07-25 Thread Tim Golden
Hi Daniel, I'm unsure how well your support tools will work with quoted emails. I'm going to place my answer below your text according to the convention on this list. On 24/07/2018 21:09, Daniel Perry wrote: Hi there everyone, my name is Daniel Perry and I'm a totally blind new Python user.

Re: Checking whether type is None

2018-07-25 Thread Chris Angelico
On Thu, Jul 26, 2018 at 2:14 AM, Schachner, Joseph wrote: > While I appreciate that use of "is" in thing is None, I claim this relies > on knowledge of how Python works internally, to know that every None actually > is the same ID (the same object) - it is singular. That's part of the *defini

Re: curses, ncurses or something else

2018-07-25 Thread John Pote
On 24/07/2018 16:13, Peter Pearson wrote: On Mon, 23 Jul 2018 23:24:18 +0100, John Pote wrote: I recently wrote a command line app to take a stream of numbers, do some signal processing on them and display the results on the console. There may be several output columns of data so a title line is

RE: Checking whether type is None

2018-07-25 Thread Schachner, Joseph
While I appreciate that use of "is" in thing is None, I claim this relies on knowledge of how Python works internally, to know that every None actually is the same ID (the same object) - it is singular. That probably works for 0 and 1 also but you probably wouldn't consider testing thing is

Re: Python in the news

2018-07-25 Thread oliver
Along the same lines but focused on one of the companies mentioned in the Economist article is one by Bloomberg : https://www.bloomberg.com/news/articles/2018-06-14/citi-wants-analysts-to-add-python-to-list-of-languages-on-resume On Mon, Jul 23, 2018, 12:35 Rich Shepard, wrote: >The lead art

Re: hello from a very excited and totally blind python programmer and game player

2018-07-25 Thread Rhodri James
On 24/07/18 21:09, Daniel Perry wrote: Also, When I opened up the first message that I had gotten from this list, I got a prompt that popped up asking if I wanted to make windows live mail my default news client and I answered no. From that point on, I've been getting an error message and the

Re: Checking whether type is None

2018-07-25 Thread Stephan Houben
Op 2018-07-24, Chris Angelico schreef : > On Wed, Jul 25, 2018 at 9:18 AM, Rob Gaddi > wrote: >> On 07/24/2018 01:07 PM, Chris Angelico wrote: >> I suppose one valid usage would be this sort of thing: >> >> fn = { >> int: dispatchInt, >> str: dispatchStr, >> list: dispatchList, >> t

Re: Can pip install packages for all users (on a Linux system)?

2018-07-25 Thread Stephan Houben
Op 2018-07-24, John Ladasky schreef : > I believe that I now have tensorflow 1.8 installed twice on my system, > once for each user. If anyone can share how to convince pip to behave > like Synaptic, I would appreciate it. Thanks. I would recommend against using pip to install packages into the