Hi Antonio,
could you please spell out your requirements a bit more clearly ?
I have a hard time trying to understand what you're after.
It seems to be about some sort of Python extension building
environment for Linux, but I could be wrong.
You normally don't need to build Python itself just to
> but we don't need special syntax for "else" on a for or while loop (or try
> block) either, you could always set a sentinel for those too.
> which to me is a case for adding else to a "with" block as well, for all the
> same reasons it's there for the other block construct.
That's part of my o
Hello,
On Wed, 1 Apr 2020 19:00:00 -0700
Christopher Barker wrote:
[]
> The funny thing is, in this thread, while I dont really see the need
> for adding += to StringIO to make a string builder, I kind of like
> the idea of adding += to the File protocol -- for all file-like
> objects. I like
Hi Marc-Andre,
yes pyrun is sort of what I had in mind :) That would be like the jre part
of the jdk if you're familiar with java.
Ideally users will download the jre and use for running applications (eg.
pyrun) but if there's a need for an extension build one need to have a
compiler.. now given
I think there's been some confusion with regard to this idea, leading to a
combination of technical details vs the merits of the idea.
So I'm going to summarize a bit what I think the discussion has yielded:
Technical issues:
The __repr__ and __str__ are defined on the class, not instances of a
On Sat, Apr 4, 2020 at 7:02 AM Christopher Barker wrote:
> So if folks think it's a good idea to allow modules to have a custom __str__:
> it would be nice to add that feature to Python.
>
> I'm not saying I advocate for that -- but it's not completely unreasonable.
>
It's not unreasonable, I ag
__doc__
https://docs.python.org/3/library/pydoc.html describes the help() function;
which you can also call with:
$ pydoc modname
$ python -m pydoc modname
IPython:
>>> help(modname)
>>> ?modname
>>> modname?
>>> !pydoc modname
>>> !python -m pydoc modname
https://ipython.readthedocs.io/en/s