Re: How to make python pick up my new-and-shiny openssl shared object

2018-08-07 Thread Christian Heimes
On 2018-08-08 00:07, Fetchinson . via Python-list wrote: > The highest version of openssl available on my system is 1.0.0 which > is not good enough for pip these days (or github for that matter). So > I've installed 1.1.0 to a custom location /home/fetch/opt. But if I do > > import ssl > ssl.OPEN

How to make python pick up my new-and-shiny openssl shared object

2018-08-07 Thread Fetchinson . via Python-list
The highest version of openssl available on my system is 1.0.0 which is not good enough for pip these days (or github for that matter). So I've installed 1.1.0 to a custom location /home/fetch/opt. But if I do import ssl ssl.OPENSSL_VERSION it still shows me that it is using the system default 1.

Re: How do I create a variable where one index depends on the value of another index?

2018-08-07 Thread Peter Otten
giannis.dafnomi...@gmail.com wrote: > Hey Peter. > > This worked like a charm! I can't believe I did not think of that, after > wasting so many hours on it. > > Thank you so much for the help! You can make these things easier to debug by breaking your code into small functions. If there were s

Re: How do I create a variable where one index depends on the value of another index?

2018-08-07 Thread giannis . dafnomilis
Hey Peter. This worked like a charm! I can't believe I did not think of that, after wasting so many hours on it. Thank you so much for the help! -- https://mail.python.org/mailman/listinfo/python-list

Re: How do I create a variable where one index depends on the value of another index?

2018-08-07 Thread Peter Otten
giannis.dafnomi...@gmail.com wrote: > Hello guys. I'm having an issue with a Python PulP MILP problem. You can > find the simplified code that reproduces the problem here: > > from pulp import * > machines = 2 > I = range(machines) > positions = 2 > J = range(positions) > years = 10 > T = range(y

How do I create a variable where one index depends on the value of another index?

2018-08-07 Thread giannis . dafnomilis
Hello guys. I'm having an issue with a Python PulP MILP problem. You can find the simplified code that reproduces the problem here: from pulp import * machines = 2 I = range(machines) positions = 2 J = range(positions) years = 10 T = range(years) age = {0: 5, 1: 7} IR = 0.06 df = 0.3 costs = {

Re: RFC -- custom operators

2018-08-07 Thread Rhodri James
On 07/08/18 08:58, Steven D'Aprano wrote: Request for comments -- proposal to allow custom binary operators. [snip] (1) This proposal requires operators to be legal identifiers, such as "XOR" or "spam", not punctuation like % and absolutely not Unicode symbols like ∉ Probably wise.

Re: RFC -- custom operators

2018-08-07 Thread Paul Moore
On Tue, 7 Aug 2018 at 09:03, Steven D'Aprano wrote: > I'll looking for comments on custom binary operators: would it be useful, > if so, what use-cases do you have? I've never found a need for custom binary operators. I can imagine some *theoretical* cases where they might be useful (but no act

Re: RFC -- custom operators

2018-08-07 Thread Marko Rauhamaa
Steven D'Aprano : > (1) This proposal requires operators to be legal identifiers, > such as "XOR" or "spam", not punctuation like % and > absolutely not Unicode symbols like ∉ Oh, that's a let-down. Operator symbols get their expressive value from visual conciseness: life←{↑1 ⍵∨.∧3 4

Re: Fishing from PyPI ?

2018-08-07 Thread Chris Warrick
On Tue, 7 Aug 2018 at 00:52, Gregory Ewing wrote: > > Chris Warrick wrote: > > The unusual domain is a common staple of Mailchimp, which is an e-mail > > newsletter platform (it was used to mail out the announcement), and > > they replace all links with tracking ones in their list-manage.com > > d

RFC -- custom operators

2018-08-07 Thread Steven D'Aprano
Request for comments -- proposal to allow custom binary operators. I'll looking for comments on custom binary operators: would it be useful, if so, what use-cases do you have? The most obvious and often-requested use-case would be for a form of logical operator (AND, OR, XOR) that is distinct f