Re: error of opening Python

2023-09-29 Thread anthony.flury via Python-list
This isn't an error. This is just a normal Python Header message announcing that you are using Python 3.11.3 The rest is just information from the build system : The build Id, the date/time the build was made, and the version of the compiler. There is nothing to fix. -- Original

Re: Why doc call `__init__` as a method rather than function?

2023-09-17 Thread anthony.flury via Python-list
To me __init__ is a method, but that is implemented internally as function associated to a class When you use A.__init__ on it's own and inspect it, then it will show that it is a function object - this is expected. The implementation internals of the runtime don't need to have a special

Re: [docs] Reporting a Bug

2022-05-12 Thread anthony.flury via Python-list
This is exactly as expected. Strip removes any of the characters in the passed string from both the front and the end of the string being stripped. The letter 'T' from the start of 'The meaning of life' does not appear in the word 'meaning' so nothing is removed from the start of the

Re: [Python-ideas] Re: New Tool Proposal

2022-05-12 Thread anthony.flury via Python-list
On 10/05/2022 15:04, Dan Stromberg wrote: On Tue, May 10, 2022 at 3:15 AM Chris Angelico wrote: > It is often the case that developer write Code in Python and then convert to a C extension module for performance regions. > > A C extension module has a lot of boiler plate code

Re: Changing calling sequence

2022-05-11 Thread anthony.flury via Python-list
Why not do : def TempsOneDayDT(date:datetime.date): return TempsOneDay(date.year, date.month, date.day) No repeat of code - just a different interface to the same functionality. -- Original Message -- From: "Michael F. Stemper" To: python-list@python.org

Re: How to detect an undefined method?

2022-04-02 Thread anthony.flury via Python-list
On 27/03/2022 15:59, dn wrote: What is code coverage? In the simplest words, code coverage is a measure of exhaustiveness of a test suite. 100% code coverage means that a system is fully tested. Sorry, but that is a gross over-simplification. 100% coverage means that you have tested all of

Re: pyinstaller wrong classified as Windows virus

2021-11-28 Thread anthony.flury via Python-list
On 26/11/2021 07:13, Ulli Horlacher wrote But consider another possibility that your compiler software is compromised Then https://www.python.org/ftp/python/3.10.0/python-3.10.0-amd64.exe is infected. I doubt this. But you aren't using python3.10 to 'compile' the code to the executable

Re: pyinstaller wrong classified as Windows virus

2021-11-28 Thread anthony.flury via Python-list
Have you tried using Nuitka - rather than pyInstalller - it means you distribute a single executable and the Python run time library (which they probably have already), and it has the advantage that it is a bit quicker than standard python. Rather than bundle the source code and interpreter