brython-dev / brython

Brython (Browser Python) is an implementation of Python 3 running in the browser
BSD 3-Clause "New" or "Revised" License
6.4k stars 512 forks source link

str.casefold() recently broke #2515

Closed benjie-git closed 5 days ago

benjie-git commented 6 days ago

When I try to run casefold, for example:

"Hello".casefold()

I get TypeError: set.remove() takes exactly 2 arguments (1 given)

This worked very recently but is currently broken.

PierreQuentel commented 5 days ago

Sorry about that Ben, I am changing the argument parsing of methods of built-in types for performance and left a few typos like this one. Thanks for reporting !

benjie-git commented 5 days ago

No problem, thanks for the fix! My code base seems to be a pretty good stress test for brython, so I try to test early and often, and report back.