Re: [sage-devel] Discussion and poll: should Sage Integers have a backslash operator?

2023-09-27 Thread Dima Pasechnik
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

Re: [sage-devel] Discussion and poll: should Sage Integers have a backslash operator?

2023-09-27 Thread Michael Orlitzky
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

Re: [sage-devel] Discussion and poll: should Sage Integers have a backslash operator?

2023-09-27 Thread William Stein
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

Re: [sage-devel] Discussion and poll: should Sage Integers have a backslash operator?

2023-09-27 Thread John H Palmieri
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

Re: [sage-devel] Discussion and poll: should Sage Integers have a backslash operator?

2023-09-27 Thread Nils Bruin
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

Re: [sage-devel] Discussion and poll: should Sage Integers have a backslash operator?

2023-09-27 Thread David Joyner
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,

[sage-devel] Discussion and poll: should Sage Integers have a backslash operator?

2023-09-27 Thread John H Palmieri
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

Re: [sage-devel] Contributing to SageMath

2023-09-27 Thread Dima Pasechnik
On Wed, Sep 27, 2023 at 11:29 AM Saatvik Rao wrote: > > Where can I submit my PR? What is the process behind the PR getting merged? please have a look at https://docs.github.com/en/get-started/quickstart to get a general idea about the platform. > > On Monday, September 25, 2023 at 11:36:46 

Re: [sage-devel] Contributing to SageMath

2023-09-27 Thread Saatvik Rao
Where can I submit my PR? What is the process behind the PR getting merged? On Monday, September 25, 2023 at 11:36:46 AM UTC+5:30 Dima Pasechnik wrote: > > > On Mon, 25 Sept 2023, 06:59 Saatvik Rao, wrote: > >> Hello developers, >> >> I am currently doing a project course that involves making