Re: How to replace an instance method?

2022-09-19 Thread Eryk Sun
On 9/19/22, 2qdxy4rzwzuui...@potatochowder.com <2qdxy4rzwzuui...@potatochowder.com> wrote: > On 2022-09-18 at 09:11:28 +, > Stefan Ram wrote: > >> r...@zedat.fu-berlin.de (Stefan Ram) writes (abbreviated): >> >types.MethodType( function, instance ) >> >functools.partial( function, instance )

Re: Python is not working on my desktop

2022-09-19 Thread dn
Regret to advise that many members will not click on links, and particularly not when the link is the only message-content. (flagged as likely spam-email!) Please describe the problem, including an explanation of from where the Python interpreter was downloaded, which OpSys is in-use, what

Re: Regarding python 3.10 installation

2022-09-19 Thread Michael F. Stemper
In order to save time for the experts here: On 19/09/2022 00.51, Shadid Alam wrote: Hello I’ve been trying to install updated python version i.e. python 10.7. There is no python 10.7. Are you possibly trying to install python 3.10.7? On what OS are you trying to install it? How are you

Re: How to replace an instance method?

2022-09-19 Thread 2QdxY4RzWzUUiLuE
On 2022-09-18 at 09:11:28 +, Stefan Ram wrote: > r...@zedat.fu-berlin.de (Stefan Ram) writes (abbreviated): > >types.MethodType( function, instance ) > >functools.partial( function, instance ) > >new_method.__get__( instance ) > > I wonder which of these three possibilities expresses >

Re: How to replace an instance method?

2022-09-19 Thread Eryk Sun
On 9/18/22, Stefan Ram wrote: > r...@zedat.fu-berlin.de (Stefan Ram) writes (abbreviated): >>types.MethodType( function, instance ) >>functools.partial( function, instance ) >>new_method.__get__( instance ) > > I wonder which of these three possibilities expresses > the idea of creating a new

Re: memoization (original Subject lost because mailer lost the whole thread)

2022-09-19 Thread Christman, Roger Graydon
"Hen Hanna" asked: > so... for a few days i've been revising this Code (in Gauche / Lisp / > Scheme) to make it run faster.. and last night i could improve it enough > to give me the result i wantedin 72 minutes or so (on my slow PC at > home). > ( Maybe... within a few months,

[Python-announce] Vulture 2.6

2022-09-19 Thread Jendrik Seipp
Vulture - Find dead code Vulture finds unused code in Python programs. This is useful for cleaning up and finding errors in large code bases. If you run Vulture on both your library and test suite you can find untested code. Due to Python's dynamic nature, static code

Re: Which architectures to support in a CI like Travis?

2022-09-19 Thread c . buhtz
Dear Mats, thanks for the reply. Am 19.09.2022 16:10 schrieb Mats Wichmann: Kind of unrelated to the actual question, but if you start doing anything serious under Travis you'll run out of free minutes rather quickly. My project had to just give up on it after they changed their licensing

Count-Trailing-Zeros(x) --- Can I use Log(x) to see if X is equal to ( Integer * 10 ^ k) ???

2022-09-19 Thread Hen Hanna
Count how many zeros are at the end of your int: defend_zeros(num): s = str(num) return len(s) - len(s.rstrip("0")) print(end_zeros(10)) # == 1 print(end_zeros(101)) # == 0 print(end_zeros(245))

Regarding python 3.10 installation

2022-09-19 Thread Shadid Alam
Hello I’ve been trying to install updated python version i.e. python 10.7. Its showing installed but whenever I open python it comes up with the older version i.e. 10.9 . Please fix this issue is possible -- https://mail.python.org/mailman/listinfo/python-list

Caching (memoization) in (Gauche / Lisp / Scheme) and Python

2022-09-19 Thread Hen Hanna
so... for a few days i've been revising this Code (in Gauche / Lisp / Scheme) to make it run faster.. and last night i could improve it enough to give me the result i wantedin 72 minutes or so (on my slow PC at home). ( Maybe... within a few months, i'll write the same

Python is not working on my desktop

2022-09-19 Thread python 3 . 0 is not working
    Sent from [1]Mail for Windows   References Visible links 1. https://go.microsoft.com/fwlink/?LinkId=550986 -- https://mail.python.org/mailman/listinfo/python-list

Re: Which architectures to support in a CI like Travis?

2022-09-19 Thread Mats Wichmann
On 9/18/22 03:46, c.bu...@posteo.jp wrote: Hello, I am using TravisCI for my project on GitHub. The project is packaged for Debian, Ubuntu, Arch and several other distros. All this distros support multiple architectures and they have their own test machines to take care that all packages

Re: How to replace an instance method?

2022-09-19 Thread Weatherby,Gerard
Just subclass and override whatever method you wish to modify “Private” is conceptual. Mostly it means when the next version of a module comes out, code that you wrote that accesses *._ parts of the module might break. ___ import pandas class MyClass(pandas.ExcelFile.OpenpyxlReader):

Re: Which architectures to support in a CI like Travis?

2022-09-19 Thread Martin Di Paola
I would depend on the project. In the crytoanalysis tool that I developing, "cryptonita", I just manipule bytes. Nothing that could depend on the distro so my CI picks one OS and run the tests there. Project: https://github.com/cryptonitas/cryptonita CI: