+ 1 for getting rid of the preparsing of \
It is particularly annoying when typing (usually long) expressions like
f(x) = x + \
1
in an input cell of a Jupyter notebook. If the \ is followed by a blank
space, one gets
Cell In [22], line 1
__tmp__=var("x"); f =
On Wednesday, September 27, 2023 at 6:19:16 PM UTC-4 William Stein wrote:
Hi,
I'm the guilty party who added \ to Sage notation in the first place,
and I would definitely vote to *remove* it. I wish I had
never added it in the first place. Nils has some very good points!
I do think it's
On Thu, Sep 28, 2023 at 12:58 AM Michael Orlitzky wrote:
>
> On Wed, 2023-09-27 at 14:44 -0700, Nils Bruin wrote:
>
> > Searching the codebase currently only shows "_backslash_" implemented on
> > matroid, matrix, and binary_tree, so extinguishing it should be doable. We
> > should definitely not
On Wed, 2023-09-27 at 14:44 -0700, Nils Bruin wrote:
> Searching the codebase currently only shows "_backslash_" implemented on
> matroid, matrix, and binary_tree, so extinguishing it should be doable. We
> should definitely not entrench its use further.
>
> If you want to write your
Hi,
I'm the guilty party who added \ to Sage notation in the first place,
and I would definitely vote to *remove* it. I wish I had
never added it in the first place. Nils has some very good points!
In retrospect, I wish we had a "fully supported" way of using Sage
entirely without the
Okay, so maybe we should open this to other options: should we get rid of
preparsing "\" into "BackslashOperator"?
For what it's worth, I removed the line defining `_backslash_` in
binary_tree.py and and I only say one doctest failure in any obvious places
(combinat and thematic_tutorials). So
I'm quite strongly against because it collides with a well-established
meaning of `\` in python: escape character. It's used to avoid command
termination by newline in things like formulas (as "\ On Wed, Sep 27, 2023 at 2:32 PM John H Palmieri
> wrote:
>
>> The github issue #36060
On Wed, Sep 27, 2023 at 2:32 PM John H Palmieri
wrote:
> The github issue #36060 (https://github.com/sagemath/sage/issues/36060)
> proposes adding a backslash operator for Sage integers, so that "2 \ 3"
> will return the same as "3 / 2". Do you support this?
>
>
I'm not for or against. However,
The github issue #36060 (https://github.com/sagemath/sage/issues/36060)
proposes adding a backslash operator for Sage integers, so that "2 \ 3"
will return the same as "3 / 2". Do you support this?
BackslashOperator is defined in "sage/misc/misc.py", and the preparser
converts "A \ b" to the