[New-bugs-announce] [issue3805] sslobj.read py3k takes odd arguments

Gregory P. Smith report at bugs.python.org
Mon Sep 8 21:36:47 CEST 2008


New submission from Gregory P. Smith <greg at krypto.org>:

Modules/_ssl.c in the py3k branch:

PySSL_SSLread():

 calls parsetuple expecting "|Oi" as arguments.

However the logic below to interpret and use the arguments is very
convoluted.  it'd be better to reorder these as "|iO" to match the api
in Lib/ssl.py.  Or even better to just get rid of the "O" all together
(currently used to pass in a bytearray buffer to write into instead of
allocating its own).

also:

it returns either a bytes or a long depending on the order and type of
arguments given.  yuck.

----------
assignee: janssen
components: Extension Modules
messages: 72787
nosy: gregory.p.smith, janssen
priority: high
severity: normal
status: open
title: sslobj.read py3k takes odd arguments
type: behavior
versions: Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3805>
_______________________________________


More information about the New-bugs-announce mailing list