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.

classification
Title: Argument Clinic: rwbuffer support broken
Type: compile error Stage: resolved
Components: Build Versions: Python 3.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: larry Nosy List: BTaskaya, larry, rmsr
Priority: normal Keywords: patch

Created on 2014-01-09 04:39 by rmsr, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
argument_clinic_rwbuffer.patch rmsr, 2014-01-09 04:39 review
Messages (7)
msg207726 - (view) Author: Ryan Smith-Roberts (rmsr) * Date: 2014-01-09 04:39
Following the howto's instructions on the new syntax for the 'w*' argument, one gets an exception:

...
  File "Tools/clinic/clinic.py", line 1780, in converter_init
    elif types == (bytearray_type | rwuffer_type):
NameError: global name 'rwuffer_type' is not defined

Easy fix, patch attached.
msg207727 - (view) Author: Ryan Smith-Roberts (rmsr) * Date: 2014-01-09 04:40
I'm such a goofball, how about some bug metadata
msg207813 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2014-01-10 01:28
LGTM.  To be honest I don't understand what the hell 'w*' is for.
msg207880 - (view) Author: Ryan Smith-Roberts (rmsr) * Date: 2014-01-10 20:27
Accepts only a writable bytearray, when the function needs to mutate-in-place. The rw_buffer support is for PyPy I guess.
msg207962 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2014-01-12 16:23
Do you have commit rights?  I can commit this patch for you if you don't.  Just wondering what (if anything) is holding this up.
msg207964 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2014-01-12 16:26
Looks like you don't, so I'll commit this on your behalf.
msg207979 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2014-01-12 19:44
Fixed as part of the rollup patch in #20214.
History
Date User Action Args
2022-04-11 14:57:56adminsetgithub: 64400
2021-07-16 15:50:23BTaskayasetmessages: - msg397638
2021-07-16 15:43:13BTaskayasetnosy: + BTaskaya
messages: + msg397638
2014-01-12 19:44:16larrysetstatus: open -> closed
messages: + msg207979

assignee: larry
resolution: fixed
stage: resolved
2014-01-12 16:26:52larrysetmessages: + msg207964
2014-01-12 16:23:19larrysetmessages: + msg207962
2014-01-10 20:27:08rmsrsetmessages: + msg207880
2014-01-10 01:28:40larrysetmessages: + msg207813
2014-01-09 06:13:57berker.peksagsetnosy: + larry
2014-01-09 04:40:49rmsrsettype: compile error
messages: + msg207727
components: + Build
versions: + Python 3.4
2014-01-09 04:39:56rmsrcreate