[Python-ideas] Python with braces formal proposal?

2021-01-04 Thread Paul Sokolovsky
Hello, There're tons of projects which introduce alternative braces (i.e. C-like) syntax for Python. Most of them are however not properly documented, and definitely not spec'ed for what they do. I wonder, does anyone here remember more or less formal proposal for braces syntax? A "minimum viable

[Python-ideas] Re: Python with braces formal proposal?

2021-01-04 Thread Chris Angelico
On Mon, Jan 4, 2021 at 9:41 PM Paul Sokolovsky wrote: > > Hello, > > There're tons of projects which introduce alternative braces > (i.e. C-like) syntax for Python. Most of them are however not properly > documented, and definitely not spec'ed for what they do. > > I wonder, does anyone here remem

[Python-ideas] Re: Python with braces formal proposal?

2021-01-04 Thread Paul Sokolovsky
Hello, On Mon, 4 Jan 2021 21:47:26 +1100 Chris Angelico wrote: > On Mon, Jan 4, 2021 at 9:41 PM Paul Sokolovsky > wrote: > > > > Hello, > > > > There're tons of projects which introduce alternative braces > > (i.e. C-like) syntax for Python. Most of them are however not > > properly documented,

[Python-ideas] Re: Python with braces formal proposal?

2021-01-04 Thread Alex Hall
On Mon, Jan 4, 2021 at 1:30 PM Paul Sokolovsky wrote: > > Which leads us back to the question - did anyone of those who did that > over decades ever bothered to post some kind of "spec" for this > alternative syntax? > Is there a lot that needs to be specified? I imagine that the braces would co

[Python-ideas] Re: Python with braces formal proposal?

2021-01-04 Thread Paul Sokolovsky
Hello, On Mon, 4 Jan 2021 14:09:30 +0200 Alex Hall wrote: > On Mon, Jan 4, 2021 at 1:30 PM Paul Sokolovsky > wrote: > > > > > Which leads us back to the question - did anyone of those who did > > that over decades ever bothered to post some kind of "spec" for this > > alternative syntax? > >

[Python-ideas] PEP Draft: Build Dependency Specification for Manylinux Wheels

2021-01-04 Thread Chris Antonellis
Hello- This is a draft of a future PEP regarding capturing wheel build dependencies in pyproject.toml. I am looking for any critique or input prior to creating a PR against the PEP repository, Thank you! Previous discussion can be seen here: * https://mail.python.org/archives/list/python-ideas@

[Python-ideas] Add venv activate command to the venv modules

2021-01-04 Thread Abdur-Rahmaan Janhangeer
Greetings list, put simply, be able to use $ python -m venv venv_name activate To activate an env instead of having each platform have a way of handling it Kind Regards, Abdur-Rahmaan Janhangeer about | blog github

[Python-ideas] Re: Add venv activate command to the venv modules

2021-01-04 Thread Chris Angelico
On Tue, Jan 5, 2021 at 1:42 AM Abdur-Rahmaan Janhangeer wrote: > > Greetings list, > > put simply, > > be able to use > > $ python -m venv venv_name activate > > To activate an env instead of having each platform have a way of > handling it > Unfortunately, that wouldn't work. Activating a virtua

[Python-ideas] Re: Add venv activate command to the venv modules

2021-01-04 Thread Calvin Spealman
On Mon, Jan 4, 2021 at 9:47 AM Chris Angelico wrote: > On Tue, Jan 5, 2021 at 1:42 AM Abdur-Rahmaan Janhangeer > wrote: > > > > Greetings list, > > > > put simply, > > > > be able to use > > > > $ python -m venv venv_name activate > > > > To activate an env instead of having each platform have a

[Python-ideas] Re: Add venv activate command to the venv modules

2021-01-04 Thread Valentin Berlier
To get around the fact that activating a virtualenv requires setting environment variables in the current shell poetry has a shell command that simply spawns a new shell with the appropriate environment variables: https://python-poetry.org/docs/cli/#shell So a cross-platform `activate` command

[Python-ideas] Re: Add venv activate command to the venv modules

2021-01-04 Thread Stestagg
On Mon, Jan 4, 2021 at 2:53 PM Calvin Spealman wrote: > > This is true, but... > it might be possible to include something more like pipenv's "shell" which > spawns a new instance of your shell with the right paths. It effectively > achieves the same goal, without needing to source, > > > There i

[Python-ideas] Re: Add venv activate command to the venv modules

2021-01-04 Thread Chris Angelico
On Tue, Jan 5, 2021 at 1:52 AM Calvin Spealman wrote: > > > > On Mon, Jan 4, 2021 at 9:47 AM Chris Angelico wrote: >> >> On Tue, Jan 5, 2021 at 1:42 AM Abdur-Rahmaan Janhangeer >> wrote: >> > >> > Greetings list, >> > >> > put simply, >> > >> > be able to use >> > >> > $ python -m venv venv_name

[Python-ideas] Re: Add venv activate command to the venv modules

2021-01-04 Thread Abdur-Rahmaan Janhangeer
Unfortunately, that wouldn't work. Activating a virtual environment means setting some env vars in the current shell, and Python is fundamentally unable to do that - it can only be done within the shell itself (by sourcing a script). You can, of course, simply run the Python executable from that v

[Python-ideas] Re: Add venv activate command to the venv modules

2021-01-04 Thread Abdur-Rahmaan Janhangeer
Errata: subprocess(['os', 'stuff', ...]) Kind Regards, Abdur-Rahmaan Janhangeer about | blog github Mauritius ___ Python-ideas mailing list -- pytho

[Python-ideas] Re: Add venv activate command to the venv modules

2021-01-04 Thread Chris Angelico
On Tue, Jan 5, 2021 at 2:29 AM Abdur-Rahmaan Janhangeer wrote: > > Unfortunately, that wouldn't work. Activating a virtual environment > means setting some env vars in the current shell, and Python is > fundamentally unable to do that - it can only be done within the shell > itself (by sourcing a

[Python-ideas] Re: Add venv activate command to the venv modules

2021-01-04 Thread Abdur-Rahmaan Janhangeer
You just execute the appropriate shell commands via Python Kind Regards, Abdur-Rahmaan Janhangeer about | blog github Mauritius On Mon, Jan 4, 2021 at 7:34 PM Chris Angelico wrote: > On Tu

[Python-ideas] Re: Add venv activate command to the venv modules

2021-01-04 Thread Chris Angelico
On Tue, Jan 5, 2021 at 2:37 AM Abdur-Rahmaan Janhangeer wrote: > > You just execute the appropriate shell commands via Python Try it. It won't work. See previous posts. ChrisA ___ Python-ideas mailing list -- [email protected] To unsubscribe send

[Python-ideas] Re: Add venv activate command to the venv modules

2021-01-04 Thread M.-A. Lemburg
On 04.01.2021 15:45, Chris Angelico wrote: > On Tue, Jan 5, 2021 at 1:42 AM Abdur-Rahmaan Janhangeer > wrote: >> >> Greetings list, >> >> put simply, >> >> be able to use >> >> $ python -m venv venv_name activate >> >> To activate an env instead of having each platform have a way of >> handling it

[Python-ideas] Re: Add venv activate command to the venv modules

2021-01-04 Thread Christopher Barker
I know nothing of the details, but I think the goal is to have the same command work (almost) everywhere, yes? That does not need to be a python script, however. In fact, it's nice if activating an environment is as fast as possible so firing up Python to do it is less than ideal. Anyway -- I'd e

[Python-ideas] Re: Add venv activate command to the venv modules

2021-01-04 Thread Abdur-Rahmaan Janhangeer
@Christopher Barker You nailed it! I've used the conda activate command many times. It should in theory be possible in Python @Chris Angelico Yes mere shell commands passing via Py does not work, maybe a file way with results in current shell as @M.-A. Lemburg points out, venv already genera

[Python-ideas] Re: Python JIT Compilation Thoughts

2021-01-04 Thread redradist
I have found very nice attempt of JIT for CPython https://github.com/tonybaloney/Pyjion It is working under .NET Runtime, but if it is possible in this project I believe it is possible in CPython as well Also to integrate JIT compilcation now it not so hard because we can use llvm ability for

[Python-ideas] Re: Python JIT Compilation Thoughts

2021-01-04 Thread edwin
January 4, 2021 12:55 PM, [email protected] wrote: > I have found very nice attempt of JIT for CPython > https://github.com/tonybaloney/Pyjion > > It is working under .NET Runtime, but if it is possible in this project I > believe it is possible in > CPython as well > I suggest that you fork

[Python-ideas] Re: Python JIT Compilation Thoughts

2021-01-04 Thread redradist
For me it easier to do with C++, I know C, but with C++ it is more maintainable and easier to add new feature and also easier to refactor ... I am not sure if CPython maintainers team will appropriate that I add C++ in code base ... But I can try, I will try to find time to create small proof o

[Python-ideas] Re: Python with braces formal proposal?

2021-01-04 Thread Steven D'Aprano
On Mon, Jan 04, 2021 at 01:38:23PM +0300, Paul Sokolovsky wrote: > Hello, > > There're tons of projects which introduce alternative braces > (i.e. C-like) syntax for Python. Got any examples of these projects? Preferably ones that are actively maintained, have had more than one contributor, and

[Python-ideas] Re: Python with braces formal proposal?

2021-01-04 Thread Chris Angelico
On Tue, Jan 5, 2021 at 9:05 AM Steven D'Aprano wrote: > > On Mon, Jan 04, 2021 at 01:38:23PM +0300, Paul Sokolovsky wrote: > > Hello, > > > > There're tons of projects which introduce alternative braces > > (i.e. C-like) syntax for Python. > > Got any examples of these projects? Preferably ones th

[Python-ideas] Re: Python with braces formal proposal?

2021-01-04 Thread Paul Sokolovsky
Hello, On Tue, 5 Jan 2021 08:52:54 +1100 Steven D'Aprano wrote: > On Mon, Jan 04, 2021 at 01:38:23PM +0300, Paul Sokolovsky wrote: > > Hello, > > > > There're tons of projects which introduce alternative braces > > (i.e. C-like) syntax for Python. > > Got any examples of these projects? Pref