Extension Module for Python 3.6 +

2019-03-01 Thread Anthony Flury via Python-list
In my brave and noble quest to get to grips with the CAPI - I am trying to write a C extension module which provides a new class The exact details are not important, but what is important is that instances of my new class are imutable, and therefore from time to time, my extension module needs

Re: how to setup for localhost:8000

2019-03-01 Thread tommy yama
Here you go A port can be configurable. https://www.tutorialspoint.com/python/python_http_server.htm On Mon, Feb 25, 2019 at 12:48 PM Cameron Simpson wrote: > On 24Feb2019 19:00, 0x906 wrote: > >>> I am working on window 7 and Python 3.5 to setup a localhost:8000 > >>> but it did not get thro

Re: revisiting the "What am I running on?" question

2019-03-01 Thread songbird
Terry Reedy wrote: > On 2/22/2019 7:55 AM, songbird wrote: >> eryk sun wrote: >> ... >>> The win-amd64 ABI is significantly different, but at the API level >>> there isn't a drastic difference between 32-bit and 64-bit Windows, so >>> there's no cognitive burden with perpetuating the Win32 name. Th

Version numbers in Standard Library

2019-03-01 Thread Thompson, Matt (GSFC-610.1)[SCIENCE SYSTEMS AND APPLICATIONS INC] via Python-list
Dear Python List, A question. I help maintain a Python stack for users in my division here at NASA and one user asked about updating the re module to 2.4. I believe because he read the docs: https://docs.python.org/2.7/library/re.html where you see lines like "New in version 2.4" and he also

Re: Extension Module for Python 3.6 +

2019-03-01 Thread MRAB
On 2019-03-01 01:19, Anthony Flury via Python-list wrote: In my brave and noble quest to get to grips with the CAPI - I am trying to write a C extension module which provides a new class The exact details are not important, but what is important is that instances of my new class are imutable, an

Re: Version numbers in Standard Library

2019-03-01 Thread Skip Montanaro
The point of the "Changed in version ..." or "New in version ..." bits in the documentation is to alert readers who maintain software which needs to remain backward compatible with older versions of Python. If you maintain a package which you support for Python 3.4, 3.5, 3.6, and 3.7, you'll probab

Re: Lifetime of a local reference

2019-03-01 Thread Alan Bawden
r...@zedat.fu-berlin.de (Stefan Ram) writes: > Alan Bawden writes: > >The Java compiler has no way to know whether a variable references an > >object with a finalize() method that has side effects > > java.lang.Object#finalize() is deprecated since Java 9. And we are advised to use a "Cleane

Re: Lifetime of a local reference

2019-03-01 Thread Gregory Ewing
Alan Bawden wrote: The Java compiler has no way to know whether a variable references an object with a finalize() method that has side effects It should be able to tell in some situations, e.g. String a = "hello"; String b = a.replace('e', 'u'); There's no way that b can reference any