[issue45944] Avoid calling isatty() for most open() calls

2021-11-30 Thread Collin Anderson
New submission from Collin Anderson : isatty() is a system call on linux. Most open()s are files, and we're already getting the size of the file. If it has a size, then we know it's not a atty, and can avoid calling it. -- ___ Python tracker

[issue45944] Avoid calling isatty() for most open() calls

2021-11-30 Thread Collin Anderson
Change by Collin Anderson : -- keywords: +patch pull_requests: +28096 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29870 ___ Python tracker <https://bugs.python.org/issu

[issue45944] Avoid calling isatty() for most open() calls

2021-11-30 Thread Collin Anderson
Change by Collin Anderson : -- components: IO nosy: collinanderson priority: normal severity: normal status: open title: Avoid calling isatty() for most open() calls type: performance versions: Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 3.9

[issue34510] Add add HTTPConnection.settimeout()

2018-08-26 Thread Collin Anderson
Change by Collin Anderson : -- components: Library (Lib) nosy: collinanderson priority: normal pull_requests: 8422 severity: normal status: open title: Add add HTTPConnection.settimeout() type: enhancement ___ Python tracker <ht

[issue25228] Regression in cookie parsing with brackets and quotes

2016-03-08 Thread Collin Anderson
Collin Anderson added the comment: It should be safe to hard split on semicolon. `name="some;value"` is not valid, even though it's quoted. I think raw double quotes, commas, semicolons and backslashes are _always_ invalid characters in cookie values. >From https://tools.ietf.org

[issue25228] Regression in cookie parsing with brackets and quotes

2016-02-10 Thread Collin Anderson
Collin Anderson added the comment: The issue I'm currently running into, is that although browsers correctly ignore invalid Set-Cookie values, they allow 'any CHAR except CTLs or ";"' in cookie values set via document.cookie. So, if you say document.cookie = 'key=va"lue; path=

[issue23038] #python.web irc channel is dead

2014-12-12 Thread Collin Anderson
New submission from Collin Anderson: Can we remove references to #python.web? I assume it was a flourishing channel at some point. https://docs.python.org/3/howto/webservers.html#other-notable-frameworks -- assignee: docs@python components: Documentation messages: 232550 nosy