gh-94991 Make wave._wave_params public -> wave.wave_params#94992
Conversation
This namedtuple is the public interface for Wave_write.setparams, making this private does not allow users to create an input that is typechecked to Wave_write.setparams. Is there a reason to want to hide this from users to make it less readable for how to call Wave_write.setparams ?
|
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
|
Hi, this seams very reasonable and I think it should be merged in python! I created a small drop-in replacement for stdlib wave: newwave, available on pypi. I added this PR to that package, thanks!! But I also added That is even easier!! What do you think? |
|
This could go together with adding a non-positional
I wouldn't mind this in |
|
This PR is stale because it has been open for 30 days with no activity. |
This namedtuple is the public interface for Wave_write.setparams, making this private does not allow users to create an input that is typechecked to Wave_write.setparams.
If this were public users could call with more readable code such as:
rather than the less readable
This is even worse in a typed environment where the private type of
wave._wave_paramsis the only way to callsetparamswhich use of private values from the stdlib should be avoided.