Ok,
But _GenericAlias and dependencies are written with Python (Lib/typing.py),
not with C.
So, I must rewrite the _GenericAlias in C or it's possible to merge the C
and Python in builtin and add a direct reference to _GenericAlias with C,
and add the reference in builtin module ?
Philippe
Le l
You will need to rewrite most of things in C.
--
Ivan
On Tue 8 Oct 2019, 08:53 Philippe Prados, wrote:
> Ok,
>
> But _GenericAlias and dependencies are written with Python
> (Lib/typing.py), not with C.
> So, I must rewrite the _GenericAlias in C or it's possible to merge the C
> and Python in
Glups.
I am not an expert of Pyhton source code. May be after this patch ;-)
I think I should discuss with the authors of the module typing, to identify
the best strategy.
Who is he ?
Philippe
Le mar. 8 oct. 2019 à 10:19, Ivan Levkivskyi a
écrit :
> You will need to rewrite most of things in
I’m a bit confused. For my own understanding: what’s stopping
PyObject_IsInstance/PyObject_IsSubclass from just trying
PyImport_GetModule("typing") here?
If NULL, carry on. Otherwise, check the Union case.
Brandt
> On Oct 8, 2019, at 05:44, Philippe Prados wrote:
>
>
> Glups.
>
> I am not
That would mean that all of typing will be imported as part of startup, and
that module is too heavy for that. Also it might end up on recursion.
On Tue, Oct 8, 2019 at 09:06 Brandt Bucher wrote:
> I’m a bit confused. For my own understanding: what’s stopping
> PyObject_IsInstance/PyObject_IsSub
Ivan (who you cc'd) is a good start!
Eric
On 10/8/2019 8:35 AM, Philippe Prados wrote:
Glups.
I am not an expert of Pyhton source code. May be after this patch ;-)
I think I should discuss with the authors of the module typing, to
identify the best strategy.
Who is he ?
Philippe
Le mar.
This is too-little, too-late (I was offline this past week), but for those who
enjoy digging through historical archives, the Tcl folks had an interesting
stubs mechanism that was *supposed* to solve the versioning issue (although I
suspect it hasn’t actually done much in that regard) in additio
The documentation at
https://docs.python.org/3.2/library/profile.html
contains the sentence
For example, if your_integer_time_func() returns times measured in
thousands of seconds, you would construct the Profile instance as follows:
"thousands of seconds" should ISTM be "thousandths of
Pretty embarrassing, I agree. Can you submit a PR?
On Tue, Oct 8, 2019 at 17:38 Rob Cliffe via Python-Dev <
python-dev@python.org> wrote:
> The documentation at
> https://docs.python.org/3.2/library/profile.html
> contains the sentence
> For example, if your_integer_time_func() returns ti
On Wed, Oct 9, 2019 at 11:44 AM Rob Cliffe via Python-Dev
wrote:
>
> The documentation at
> https://docs.python.org/3.2/library/profile.html
> contains the sentence
> For example, if your_integer_time_func() returns times measured in
> thousands of seconds, you would construct the Profile
The first release candidate of Python 2.7.17 is now available for download and
testing. Python 2.7.17 includes 80 fixes over Python 2.7.16.
Downloads may be found on python.org:
https://www.python.org/downloads/release/python-2717rc1/
Read the full changelog at:
https://raw.githubuser
11 matches
Mail list logo