Re: ssl.SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol

2017-12-18 Thread Piyush Verma
Hi Chris, Yes it is HTTPS server. I was debugging and found some relevant data which may help to identify the problem. In my Mac OS, I have two version of openssl version installed. default was /usr/bin/openssl, which i changed to brew installed one. (virtenv) $ /usr/bin/openssl version OpenSSL 0.

Re: Repeated Names (Repeated Names)

2017-12-18 Thread Jon Ribbens
On 2017-12-17, Skip Montanaro wrote: >>> I've emailed the administrator of bbs.geek.nz, maybe he >>> will be able to stop it. >> >> Thanks, Greg. We're actually blocking via that and related headers at >> the gateway, which is why the mailing list is no longer seeing the >> duplicates. I'm not sur

Re: Python Learning

2017-12-18 Thread Bill
Chris Angelico wrote: On Sun, Dec 17, 2017 at 12:01 PM, Bill wrote: I think we are talking about the same people. But in college, the prerequisite of "at least co-enrolled in pre-calc", turned out to be the right one (based upon quite a lot of teaching experience). Fortunately for the program

Re: Python Learning

2017-12-18 Thread Chris Angelico
On Sun, Dec 17, 2017 at 4:42 PM, Bill wrote: > Chris Angelico wrote: >> >> On Sun, Dec 17, 2017 at 12:01 PM, Bill wrote: >>> >>> >>> I think we are talking about the same people. >>> But in college, the prerequisite of "at least co-enrolled in pre-calc", >>> turned out to be the right one (based

Re: Python Templating Language

2017-12-18 Thread Brian Oney via Python-list
you may consider checking out a more general approach. Noweb was the first to my knowledge and lead the way for Sweave (R or S), and pyweave, as mentioned. https://en.wikipedia.org/wiki/Noweb Cheers -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Learning

2017-12-18 Thread Marko Rauhamaa
Chris Angelico : > On Mon, Dec 18, 2017 at 5:59 PM, Marko Rauhamaa wrote: >> Let's see. What I have learned on the job is projects and processes >> (even though college tried to give a taste of those, as well). Then, >> I have gathered some encyclopedic knowledge about programming >> languages, l

Re: Repeated Names (Repeated Names)

2017-12-18 Thread Skip Montanaro
Apologies. I interpreted your use of the word "fake" to imply the domain didn't really exist. In that case, I would have not expected a website to be up, nor an email to succeed (even with delays). S On Mon, Dec 18, 2017 at 5:12 AM, Jon Ribbens wrote: > On 2017-12-17, Skip Montanaro wrote:

Re: Python Learning

2017-12-18 Thread Rhodri James
On 18/12/17 13:28, Marko Rauhamaa wrote: However, I have been doing quite a bit of hiring, quite successfully, I might add. I am not prejudiced one way or another. Your résumé doesn't count. Your education doesn't count. What you can do for the team counts, and that is measured during the intervi

Re: Python Learning

2017-12-18 Thread Larry Martell
On Mon, Dec 18, 2017 at 9:09 AM, Rhodri James wrote: > On 18/12/17 13:28, Marko Rauhamaa wrote: >> >> However, I have been doing quite a bit of hiring, quite successfully, I >> might add. I am not prejudiced one way or another. Your résumé doesn't >> count. Your education doesn't count. What you c

Re: Python Learning

2017-12-18 Thread Chris Angelico
On Tue, Dec 19, 2017 at 1:09 AM, Rhodri James wrote: > On 18/12/17 13:28, Marko Rauhamaa wrote: >> >> However, I have been doing quite a bit of hiring, quite successfully, I >> might add. I am not prejudiced one way or another. Your résumé doesn't >> count. Your education doesn't count. What you c

Re: Problem with timeit

2017-12-18 Thread ast
"Steve D'Aprano" a écrit dans le message de news:5a33d0fc$0$2087$b1db1813$d948b...@news.astraweb.com... On Sat, 16 Dec 2017 12:25 am, ast wrote: "Thomas Jollans" a écrit dans le message de news:mailman.74.1513341235.14074.python-l...@python.org... On 2017-12-15 11:36, ast wrote: p

Recommended pypi caching proxy?

2017-12-18 Thread Ray Cote
Hello list: Looking to deploy a locally cached pypi proxy service. Is there a recommended/preferred pypi caching tool? I’ve found: - proxypypy - Flask-Pypi-Proxy - pypicache All of which seem to have generally the same functionality and all of which are a few years old. Recommendations fro

Re: Python Learning

2017-12-18 Thread Marko Rauhamaa
Rhodri James : > I haven't often been involved in hiring, but the few times I have we > had more applicants than it was feasible to interview. You don't have to interview them all. Once you encounter an excellent candidate, you can close the deal. If you don't, you might lose them. You don't have

Re: Python Learning

2017-12-18 Thread Larry Martell
On Mon, Dec 18, 2017 at 11:33 AM, Marko Rauhamaa wrote: > However, one great way to stand out is a portfolio of GitHub projects. > Several people have gotten an offer largely based on those (after they > aced the technical interviews). For example, we just hired someone who > had written a game in

Re: Python Learning

2017-12-18 Thread Chris Angelico
On Tue, Dec 19, 2017 at 3:45 AM, Larry Martell wrote: > On Mon, Dec 18, 2017 at 11:33 AM, Marko Rauhamaa wrote: >> However, one great way to stand out is a portfolio of GitHub projects. >> Several people have gotten an offer largely based on those (after they >> aced the technical interviews). Fo

Re: Python Learning

2017-12-18 Thread Larry Martell
On Mon, Dec 18, 2017 at 12:05 PM, Chris Angelico wrote: > On Tue, Dec 19, 2017 at 3:45 AM, Larry Martell > wrote: >> On Mon, Dec 18, 2017 at 11:33 AM, Marko Rauhamaa wrote: >>> However, one great way to stand out is a portfolio of GitHub projects. >>> Several people have gotten an offer largely

Re: Python Learning

2017-12-18 Thread Rhodri James
On 18/12/17 16:33, Marko Rauhamaa wrote: Rhodri James : I haven't often been involved in hiring, but the few times I have we had more applicants than it was feasible to interview. You don't have to interview them all. Once you encounter an excellent candidate, you can close the deal. If you do

Re: Recommended pypi caching proxy?

2017-12-18 Thread Matt Wheeler
On Mon, 18 Dec 2017, 15:45 Ray Cote, wrote: > Looking to deploy a locally cached pypi proxy service. > > Is there a recommended/preferred pypi caching tool? > I’ve found: > - proxypypy > - Flask-Pypi-Proxy > - pypicache > > All of which seem to have generally the same functionality and all

Re: Python Learning

2017-12-18 Thread Gene Heskett
On Monday 18 December 2017 09:19:01 Chris Angelico wrote: > On Tue, Dec 19, 2017 at 1:09 AM, Rhodri James wrote: > > On 18/12/17 13:28, Marko Rauhamaa wrote: > >> However, I have been doing quite a bit of hiring, quite > >> successfully, I might add. I am not prejudiced one way or another. > >>

[OT] Python and Excel

2017-12-18 Thread MRAB
Those who use Excel might find this interesting: Microsoft Considers Adding Python as an Official Scripting Language to Excel https://www.bleepingcomputer.com/news/microsoft/microsoft-considers-adding-python-as-an-official-scripting-language-to-excel/ -- https://mail.python.org/mailman/listinfo/p

Re: Python Learning

2017-12-18 Thread Marko Rauhamaa
Rhodri James : > On 18/12/17 16:33, Marko Rauhamaa wrote: >> Rhodri James : >>> Exactly what "interesting" meant was somewhat arbitrary; we put one >>> person through to interview because she was a cellist, and that >>> would have given us a complete string quartet (she didn't get the >>> job, sad

Re: Python Learning

2017-12-18 Thread Rob Gaddi
On 12/18/2017 08:45 AM, Larry Martell wrote: On Mon, Dec 18, 2017 at 11:33 AM, Marko Rauhamaa wrote: However, one great way to stand out is a portfolio of GitHub projects. Several people have gotten an offer largely based on those (after they aced the technical interviews). For example, we just

__contains__ classmethod?

2017-12-18 Thread Tim Chase
Playing around, I had this (happens to be Py2, but gets the same result in Py3) code class X(object): ONE = "one" TWO = "two" _ALL = frozenset(v for k,v in locals().items() if k.isupper()) @classmethod def __contains__(cls, v): return v in cls._ALL print(dir(X)) print(X._ALL) Runnin

Re: [OT] Python and Excel

2017-12-18 Thread oliver
That would be amazing. I still have nightmares of when I had to create this big options analysis VBA program in Excel 2007. On Mon, Dec 18, 2017, 14:21 MRAB, wrote: > Those who use Excel might find this interesting: > > Microsoft Considers Adding Python as an Official Scripting Language to > Exc

Re: Python Learning

2017-12-18 Thread Christian Gollwitzer
Am 18.12.17 um 05:54 schrieb Bill: Chris Angelico wrote: I don't know about vtables as needing to be in ANY programming course. They're part of a "let's dive into the internals of C++" course. You certainly don't need them to understand how things work in Python, because they don't exist; and I'

Re: Recommended pypi caching proxy?

2017-12-18 Thread Ray Cote
On Mon, Dec 18, 2017 at 1:00 PM, Matt Wheeler wrote: > On Mon, 18 Dec 2017, 15:45 Ray Cote, > wrote: > >> Looking to deploy a locally cached pypi proxy service. >> >> Is there a recommended/preferred pypi caching tool? >> I’ve found: >> - proxypypy >> - Flask-Pypi-Proxy >> - pypicache >> >

Re: __contains__ classmethod?

2017-12-18 Thread Peter Otten
Tim Chase wrote: > Playing around, I had this (happens to be Py2, but gets the same > result in Py3) code > > class X(object): > ONE = "one" > TWO = "two" > _ALL = frozenset(v for k,v in locals().items() if k.isupper()) > @classmethod > def __contains__(cls, v): > return v in cls._A

Re: Python Learning

2017-12-18 Thread Gene Heskett
On Monday 18 December 2017 16:05:10 Rob Gaddi wrote: > On 12/18/2017 08:45 AM, Larry Martell wrote: > > On Mon, Dec 18, 2017 at 11:33 AM, Marko Rauhamaa wrote: > >> However, one great way to stand out is a portfolio of GitHub > >> projects. Several people have gotten an offer largely based on >

Re: __contains__ classmethod?

2017-12-18 Thread Random832
On Mon, Dec 18, 2017, at 16:25, Tim Chase wrote: > My understanding was that "in" makes use of an available __contains__ > but something seems to preventing Python from finding that. > > What's going on here? Most __ methods have to be an actual method on the class object, which means you have to

Re: Python Learning

2017-12-18 Thread Larry Martell
On Mon, Dec 18, 2017 at 4:05 PM, Rob Gaddi wrote: > On 12/18/2017 08:45 AM, Larry Martell wrote: >> >> On Mon, Dec 18, 2017 at 11:33 AM, Marko Rauhamaa wrote: >>> >>> However, one great way to stand out is a portfolio of GitHub projects. >>> Several people have gotten an offer largely based on th

Re: Python Learning

2017-12-18 Thread Larry Martell
On Mon, Dec 18, 2017 at 4:52 PM, Gene Heskett wrote: > On Monday 18 December 2017 16:05:10 Rob Gaddi wrote: > >> On 12/18/2017 08:45 AM, Larry Martell wrote: >> > On Mon, Dec 18, 2017 at 11:33 AM, Marko Rauhamaa > wrote: >> >> However, one great way to stand out is a portfolio of GitHub >> >> pro

Re: __contains__ classmethod?

2017-12-18 Thread Peter Otten
Peter Otten wrote: > Tim Chase wrote: > >> Playing around, I had this (happens to be Py2, but gets the same >> result in Py3) code >> >> class X(object): >> ONE = "one" >> TWO = "two" >> _ALL = frozenset(v for k,v in locals().items() if k.isupper()) >> @classmethod >> def __contains__(

Re: Python Learning

2017-12-18 Thread Rob Gaddi
On 12/18/2017 01:52 PM, Gene Heskett wrote: On Monday 18 December 2017 16:05:10 Rob Gaddi wrote: On 12/18/2017 08:45 AM, Larry Martell wrote: On Mon, Dec 18, 2017 at 11:33 AM, Marko Rauhamaa wrote: However, one great way to stand out is a portfolio of GitHub projects. Several people have go

Re: [OT] Python and Excel

2017-12-18 Thread Les Cargill
oliver wrote: That would be amazing. I still have nightmares of when I had to create this big options analysis VBA program in Excel 2007. Odd - I haven't found VBA itself to be all that horrible. Yeah, it's got some serious weaknesses but it jut hasn't bit me badly, yet. Then again, it's no

async serial port in Python.

2017-12-18 Thread Les Cargill
What I'd like to do is set up *some* sort of method in Python to asynchronously use callbacks to receive characters from a serial port or 20 serial ports. If I have to hook an event loop or even spawn a thread - fine! but it needs to allow for making things event-driven. For lack of a better ter

Re: Python Learning

2017-12-18 Thread Bill
Christian Gollwitzer wrote: You don't need to explain a vtable to explain dynamic_cast. Only if you want to become a compiler writer. It is not even required, vtables are just the most common implementation. dynamic_cast simply checks if the actual object that the pointer points to is an in

Re: async serial port in Python.

2017-12-18 Thread Les Cargill
Les Cargill wrote: What I'd like to do is set up *some* sort of method in Python to asynchronously use callbacks to receive characters from a serial port or 20 serial ports. If I have to hook an event loop or even spawn a thread - fine! but it needs to allow for making things event-driven. For

Re: __contains__ classmethod?

2017-12-18 Thread MRAB
On 2017-12-18 21:25, Tim Chase wrote: Playing around, I had this (happens to be Py2, but gets the same result in Py3) code class X(object): ONE = "one" TWO = "two" _ALL = frozenset(v for k,v in locals().items() if k.isupper()) @classmethod def __contains__(cls, v): return v i

Re: async serial port in Python.

2017-12-18 Thread John Pote
On 18/12/2017 23:20, Les Cargill wrote: What I'd like to do is set up *some* sort of method in Python to asynchronously use callbacks to receive characters from a serial port or 20 serial ports. If I have to hook an event loop or even spawn a thread - fine! but it needs to allow for making th

correctness proof for alpha-beta algorithm

2017-12-18 Thread namenobodywants
hi all can anybody tell me where to look for a proof of the correctness of a minimax/negamax algorithm with alpha-beta pruning? thanks if you can help peace stm -- https://mail.python.org/mailman/listinfo/python-list

Re: correctness proof for alpha-beta algorithm

2017-12-18 Thread Terry Reedy
On 12/19/2017 1:01 AM, namenobodywa...@gmail.com wrote: can anybody tell me where to look for a proof of the correctness of a minimax/negamax algorithm with alpha-beta pruning? thanks if you can help Where or how have you looked so far? How formal do you want? -- Terry Jan Reedy -- https:/