This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2013年03月19日 20:59 by Claudiu.Popa, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| wave.patch | Claudiu.Popa, 2013年03月19日 20:59 | review | ||
| wave_17487.patch | Claudiu.Popa, 2013年03月20日 07:05 | review | ||
| wave_with_docs.patch | r.david.murray, 2013年03月22日 02:44 | review | ||
| wave_picklable.patch | Claudiu.Popa, 2013年05月13日 08:57 | review | ||
| Messages (16) | |||
|---|---|---|---|
| msg184680 - (view) | Author: PCManticore (Claudiu.Popa) * (Python triager) | Date: 2013年03月19日 20:59 | |
wave.Wave_read/Wave_write.getparams returns a tuple with various info about the wav file, when it could return a namedtuple, that can be manipulated in a richer way. I attached a patch. It doesn't have any tests, mainly because .getparams isn't tested at all in the original test_wave.py. |
|||
| msg184683 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2013年03月19日 21:26 | |
This seems like a reasonable idea to me, thanks for the patch. Adding tests for getparams would be a good thing ;) |
|||
| msg184744 - (view) | Author: PCManticore (Claudiu.Popa) * (Python triager) | Date: 2013年03月20日 07:05 | |
Updated the patch with test for .getparams. |
|||
| msg184899 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2013年03月21日 19:16 | |
Looks good. Claudio, could you please submit a contributor agreement? (http:://www.python.org/psf/contrib). |
|||
| msg184940 - (view) | Author: Berker Peksag (berker.peksag) * (Python committer) | Date: 2013年03月22日 02:34 | |
Should the documentation of the wave module be updated to match this change? See issue 16808 for example. The current wave.Wave_read.getparams documentation says: "Returns a tuple (nchannels, sampwidth, framerate, nframes, comptype, compname), equivalent to output of the get*() methods." http://docs.python.org/3.4/library/wave.html#wave.Wave_read.getparams |
|||
| msg184942 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2013年03月22日 02:44 | |
It should. Here's the patch I am prepared to commit once Claudio's contributor for confirmation occurs. |
|||
| msg184947 - (view) | Author: PCManticore (Claudiu.Popa) * (Python triager) | Date: 2013年03月22日 07:15 | |
Hello, I signed the electronic contributor agreement (I received a mail with the final copy afterwards). Is there something else that I should do or that is the entire process? |
|||
| msg184968 - (view) | Author: Benjamin Peterson (benjamin.peterson) * (Python committer) | Date: 2013年03月22日 14:38 | |
I backed it out until it can be done without breaking OSX. d174cb3f5b9e |
|||
| msg184969 - (view) | Author: Benjamin Peterson (benjamin.peterson) * (Python committer) | Date: 2013年03月22日 14:40 | |
Wrong issue, sorry. |
|||
| msg184988 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2013年03月22日 17:23 | |
Claudiu: that's the entire process. Now we just wait a day or two until the confirmation arrives from the PSF that they have accepted it (you'll get an '*' next to your name here in the tracker when that happens). |
|||
| msg186385 - (view) | Author: PCManticore (Claudiu.Popa) * (Python triager) | Date: 2013年04月09日 06:39 | |
Hello. I received the confirmation for my CLA, could you commit the patch? Thank you! |
|||
| msg186514 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2013年04月10日 16:31 | |
New changeset 340a12c18b7f by R David Murray in branch 'default': #17487: wave.getparams now returns a namedtuple. http://hg.python.org/cpython/rev/340a12c18b7f |
|||
| msg186515 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2013年04月10日 16:33 | |
Thanks, Claudiu. |
|||
| msg189110 - (view) | Author: PCManticore (Claudiu.Popa) * (Python triager) | Date: 2013年05月13日 08:57 | |
There is a regression with the latest patch, `getparams` output is no longer picklable. The attached patch fixes this issue. Also, I renamed the internal namedtuple to something more meaningful. |
|||
| msg196870 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2013年09月03日 21:43 | |
New changeset a14ec46de0a4 by Serhiy Storchaka in branch 'default': Issue #17487: The result of the wave getparams method now is pickleable again. http://hg.python.org/cpython/rev/a14ec46de0a4 |
|||
| msg196873 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2013年09月03日 22:06 | |
Thank you Claudiu. I have changed _Wave_params to _wave_params for consistency with issue17818 and issue18901. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:43 | admin | set | github: 61689 |
| 2013年09月03日 22:06:15 | serhiy.storchaka | set | status: open -> closed messages: + msg196873 stage: patch review -> resolved |
| 2013年09月03日 21:43:37 | python-dev | set | messages: + msg196870 |
| 2013年09月03日 20:29:19 | serhiy.storchaka | set | assignee: serhiy.storchaka nosy: + serhiy.storchaka stage: resolved -> patch review |
| 2013年05月13日 08:57:44 | Claudiu.Popa | set | status: closed -> open |
| 2013年05月13日 08:57:09 | Claudiu.Popa | set | files:
+ wave_picklable.patch messages: + msg189110 |
| 2013年04月10日 16:33:03 | r.david.murray | set | status: open -> closed resolution: fixed messages: + msg186515 stage: commit review -> resolved |
| 2013年04月10日 16:31:56 | python-dev | set | nosy:
+ python-dev messages: + msg186514 |
| 2013年04月09日 06:39:28 | Claudiu.Popa | set | messages: + msg186385 |
| 2013年03月22日 17:23:43 | r.david.murray | set | messages: + msg184988 |
| 2013年03月22日 14:40:19 | benjamin.peterson | set | messages: + msg184969 |
| 2013年03月22日 14:38:35 | benjamin.peterson | set | nosy:
+ benjamin.peterson messages: + msg184968 |
| 2013年03月22日 07:15:42 | Claudiu.Popa | set | messages: + msg184947 |
| 2013年03月22日 02:44:06 | r.david.murray | set | files:
+ wave_with_docs.patch messages: + msg184942 |
| 2013年03月22日 02:34:57 | berker.peksag | set | nosy:
+ berker.peksag messages: + msg184940 |
| 2013年03月21日 19:16:44 | r.david.murray | set | messages:
+ msg184899 stage: commit review |
| 2013年03月20日 07:05:12 | Claudiu.Popa | set | files:
+ wave_17487.patch messages: + msg184744 |
| 2013年03月19日 21:26:03 | r.david.murray | set | nosy:
+ r.david.murray messages: + msg184683 versions: - Python 3.3 |
| 2013年03月19日 20:59:09 | Claudiu.Popa | create | |