[issue44036] asyncio SSL server can be DOSed, event loop gets blocked: busy loops and uses 100% CPU

2021-10-10 Thread Neil Booth
Change by Neil Booth : -- nosy: +kyuupichan ___ Python tracker <https://bugs.python.org/issue44036> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35508] array.index should take optional start and stop indices like for lists

2018-12-15 Thread Neil Booth
Neil Booth added the comment: Sorry for the duplicate; a simple search didn't find it. -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue35508] array.index should take optional start and stop indices like for lists

2018-12-15 Thread Neil Booth
New submission from Neil Booth : list.index has signature: index(value, [start, [stop]]) array.index from the array module should provide the same facility -- components: Library (Lib) messages: 331891 nosy: kyuupichan priority: normal severity: normal status: open title

[issue35302] create_connection with local_addr misses valid socket bindings

2018-11-23 Thread Neil Booth
New submission from Neil Booth : I run a machine with IPv4 and IPv6 interfaces on MacOSX Mojave. I try to loop.create_connection() to a remote machine whose domain resolves to an IPv6 address only, with a local_addr domain name argument that resolves to two local addresses: an IPv4 one first

[issue34795] loop.sock_recv failure because of delayed callback handling

2018-09-24 Thread Neil Booth
Neil Booth added the comment: My library user reports: I can't reproduce the issue with uvloop on linux. (looks like uvloop does not work on windows atm) -- ___ Python tracker <https://bugs.python.org/issue34

[issue34795] loop.sock_recv failure because of delayed callback handling

2018-09-24 Thread Neil Booth
Neil Booth added the comment: This seems related: https://bugs.python.org/issue30064 -- ___ Python tracker <https://bugs.python.org/issue34795> ___ ___ Pytho

[issue34795] loop.sock_recv failure because of delayed callback handling

2018-09-24 Thread Neil Booth
New submission from Neil Booth : In certain circumstances the coroutine loop.sock_recv() registers a callback internally, which is called on e.g. task cancellation. The callback assumes a file descriptor that was open and valid at the time the callback was registered is still open and valid

[issue30105] Duplicated connection_made() call for some SSL connections

2018-08-08 Thread Neil Booth
Neil Booth added the comment: Can someone close this please; I submitted this and no longer see it with recent Python versions; I suspect it has been fixed by one of the many SSL fixes in the last 12 months -- ___ Python tracker <ht

[issue12568] Add functions to get the width in columns of a character

2018-01-29 Thread Robert Booth
Change by Robert Booth <r...@ishigoya.com>: -- nosy: +ishigoya ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue12568> ___ __

[issue17048] calendar should understand full- vs. half-width characters

2018-01-28 Thread Robert Booth
Robert Booth <r...@ishigoya.com> added the comment: There is similar misaligned output in Japanese and Korean: Korean: 1월2월3월 월 화 수 목 금 토 일 월 화 수 목 금 토 일 월 화 수 목 금 토 일 1 2 3 4 5 6 7

[issue26821] array module "minimum size in bytes" table is wrong for int/long

2016-04-21 Thread Jonathan Booth
Jonathan Booth added the comment: Ugly -- if I know I'm dealing with 4-byte data, I can't just specify 'I' or 'L' because it'll be wrong on some platform? Maybe the bug is really the module's design. Seems I need to look elsewhere for other reasons (array seems to want to copy memory, rather

[issue26821] array module "minimum size in bytes" table is wrong for int/long

2016-04-21 Thread Jonathan Booth
New submission from Jonathan Booth: https://docs.python.org/3.5/library/array.html describes the 'I' and 'i' typecodes as being minimum-size in bytes of 2. The interpreter disagrees: >>> import array >>> a = array.array('i') >>> a.itemsize 4 There is also a bu

[issue24809] Add getprotobynumber to socket module

2015-08-06 Thread Will Booth
Will Booth added the comment: Allow users to translate protocol numbers from IPv4/IPv6 headers to a friendly human readable string. Just filling a gap in the API. There might be a PyPI package out there similar to socket. However, it's complementary function,'getprotobyname', already exist

[issue24809] Add getprotobynumber to socket module

2015-08-06 Thread Will Booth
New submission from Will Booth: Add an old method from netdb to python for a best-effort, centerized look up. For the function to work, /etc/protocols would also need to be present. If the protocol doesn't exist OSError is raised. Patch attached. -- components: Extension Modules

[issue24809] Add getprotobynumber to socket module

2015-08-06 Thread Will Booth
Changes by Will Booth m3rz3r...@gmail.com: -- versions: +Python 3.5 -Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24809 ___ ___ Python

[issue11272] input() has trailing carriage return on windows

2011-02-23 Thread Duncan Booth
Duncan Booth kupu...@gmail.com added the comment: If anyone knows how to reproduce the two bugs with a short Python script, I can try to convert it into a test. If you don't mind kicking off some sub-processes then here's a script that shows the bugs. I couldn't figure out how to do

[issue11272] input() has trailing carriage return on windows

2011-02-21 Thread Duncan Booth
New submission from Duncan Booth kupu...@gmail.com: In Python 3.2, the builtin function `input()` returns a string with a trailing '\r' on windows: C:\Python32python Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits

[issue11272] input() has trailing carriage return on windows

2011-02-21 Thread Duncan Booth
Duncan Booth kupu...@gmail.com added the comment: Yes, it does indeed look like stdin has been opened in binary mode. Just iterating over it also gives the spurious carriage returns: C:\Python32python Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32

[issue2417] [py3k] Integer floor division (//): small int check omitted

2008-03-19 Thread Duncan Booth
Changes by Duncan Booth [EMAIL PROTECTED]: -- nosy: +duncanb __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2417 __ ___ Python-bugs-list mailing list Unsubscribe

[issue1445] SystemError accessing uninitialised cell contents

2007-11-15 Thread Duncan Booth
New submission from Duncan Booth: The following code throws a SystemError exception. cell_get_contents in Objects\cellobject.c should check for a null op-ob_ref value and throw an appropriate exception. def oops(): def f(): cell f.func_closure[0].cell_contents cell