python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to exclude a integer that is a string in a json using isinstance python
I have a json that has all values of strings. I have a decoder that takes all the strings and decodes them into the integers, but there is one value that is showing as "01" that I would like...
Alphanum3ric
Votes: 0
Answers: 1
Python3 -unittest mocking - problem with isinstance
I have some problem with mocking and testing my function/class.
I think the easiest way to explain it will be showing some code:
module.py:
import some_module
class MyClassToTest:
def __init__():...
tomm
Votes: 0
Answers: 1
How can I say that if I want to return an operation on a list, but it stays the same when it comes out null?
I have a list-of-list of word groups in Turkish. I want to apply stemming and I found turkishnlp package. Although it has some shortcomings, it often returns the right word. However, when I apply this...
Merve
Votes: 0
Answers: 1
Class pattern is matching the wrong cases
I'm writing an object serializer but am having issues where the class patterns are not matching the expected cases:
def dump_obj(x):
match(x):
case list():
emit('L')
...
Raymond Hettinger
Votes: 0
Answers: 1