julien-duponchelle / julien-duponchelle/python-mysql-replication

use clear instead of {}

Open
#324 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.4k
Forks
690
PR merge metrics
No merged PRs in 30d

Description

at:

https://github.com/noplay/python-mysql-replication/blob/511b42c8ac2c1682a6e2fd4d6691658245b57987/pymysqlreplication/binlogstream.py#L469

we should use `.clear()` instead of `={}`

https://stackoverflow.com/questions/369898/difference-between-dict-clear-and-assigning-in-python

Contributor guide

Open the contributing guide

Research direction

Open pymysqlreplication/binlogstream.py at line 469 and inspect the assignment in context. Replace the assignment with .clear() as described, then verify the project's existing checks pass and that the dictionary is cleared at that point.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, python
Domain
databases
Issue type
Refactor
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.