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
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
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
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
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.
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 = {
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
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
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
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.
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
11 matches
Mail list logo