[issue43614] Search is not beginner friendly

2021-03-24 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker <https://bugs.python.org/issue43614> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43596] change assertRaises message when wrong exception is raised

2021-03-22 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker <https://bugs.python.org/issue43596> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43594] A metaclass that inherits both `ABC` and `ABCMeta` breaks on `__subclasscheck__`

2021-03-22 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker <https://bugs.python.org/issue43594> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33140] shutil.chown should not be defined in Windows

2021-03-21 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker <https://bugs.python.org/issue33140> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43535] Make str.join auto-convert inputs to strings.

2021-03-21 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker <https://bugs.python.org/issue43535> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43532] Add keyword-only fields to dataclasses

2021-03-17 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker <https://bugs.python.org/issue43532> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43500] Add filtercase() into fnmatch

2021-03-15 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker <https://bugs.python.org/issue43500> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11339] annotation for class being defined

2021-03-15 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker <https://bugs.python.org/issue11339> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31472] "Emulating callable objects" documentation misleading

2021-03-14 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker <https://bugs.python.org/issue31472> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18232] running a suite with no tests is not an error

2021-03-14 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker <https://bugs.python.org/issue18232> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29657] os.symlink: FileExistsError shows wrong message

2021-03-14 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker <https://bugs.python.org/issue29657> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31956] Add start and stop parameters to the array.index()

2021-03-13 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker <https://bugs.python.org/issue31956> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15373] copy.copy() does not properly copy os.environment

2021-03-13 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker <https://bugs.python.org/issue15373> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43010] @functools.wraps and abc.abstractmethod interoperability

2021-03-13 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker <https://bugs.python.org/issue43010> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43446] Wrong character in footnote

2021-03-09 Thread Kamil Turek
Change by Kamil Turek : -- keywords: +patch pull_requests: +23573 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24806 ___ Python tracker <https://bugs.python.org/issu

[issue43446] Wrong character in footnote

2021-03-09 Thread Kamil Turek
Kamil Turek added the comment: That's right. Actually, the docs code contains two dashes but I think second of them is skipped in build process. Might be good to wrap it as an inline markup. -- nosy: +kamilturek ___ Python tracker &

[issue43245] Add keyword argument support to ChainMap.new_child()

2021-03-08 Thread Kamil Turek
Change by Kamil Turek : -- keywords: +patch pull_requests: +23554 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24788 ___ Python tracker <https://bugs.python.org/issu

[issue43430] Exception raised when attempting to create Enum via functional API

2021-03-08 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker <https://bugs.python.org/issue43430> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43427] Possible error on the descriptor howto guide

2021-03-08 Thread Kamil Turek
Kamil Turek added the comment: I think there isn't any error. Please look at the example provided in the guide: class E: @staticmethod def f(x): print(x) >>> E.f(3) 3 If it were as you say, method would receive two arguments - f(E, 3) - which is wrong. -

[issue43216] Removal of @asyncio.coroutine in Python 3.10

2021-03-07 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker <https://bugs.python.org/issue43216> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43319] A possible misleading expression in the Virtual Environment Tutorial

2021-03-07 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker <https://bugs.python.org/issue43319> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43245] Add keyword argument support to ChainMap.new_child()

2021-03-06 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker <https://bugs.python.org/issue43245> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43393] Older Python builds are missing a required file on Big Sur

2021-03-03 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker <https://bugs.python.org/issue43393> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43391] The comments have invalid license information (broken Python 2.4 URL for Python 3)

2021-03-03 Thread Kamil Turek
Change by Kamil Turek : -- keywords: +patch pull_requests: +23507 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24736 ___ Python tracker <https://bugs.python.org/issu

[issue43391] The comments have invalid license information (broken Python 2.4 URL for Python 3)

2021-03-03 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker <https://bugs.python.org/issue43391> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43340] json.load() can raise UnicodeDecodeError, but this is not documented

2021-03-03 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker <https://bugs.python.org/issue43340> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43371] Mock.assert_has_calls works strange

2021-03-03 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker <https://bugs.python.org/issue43371> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23078] unittest.mock patch autospec doesn't work on staticmethods

2018-08-01 Thread Kamil Gałuszka
Kamil Gałuszka added the comment: This affects all versions from 3.4 up to 3.8-dev. Would be nice if someone could do the review of the supplied patch. Thanks for awesome work on Python! I'm here because it just hit me also and I was for 1 h thinking that I don't know how to use

[issue32394] socket lib beahavior change in 3.6.4

2018-02-02 Thread Kamil
Kamil added the comment: I am sorry, this is the right version CHANGE: #ifdef TCP_KEEPCNT PyModule_AddIntMacro(m, TCP_KEEPCNT); #endif TO: #ifdef TCP_KEEPCNT #ifdef MS_WINDOWS #if defined(_MSC_VER) && _MSC_VER >= 1800 //on Windows avaible only from Wind

[issue32394] socket lib beahavior change in 3.6.4

2018-02-02 Thread Kamil
Kamil added the comment: With сorrect comments: CHANGE: #ifdef TCP_KEEPCNT PyModule_AddIntMacro(m, TCP_KEEPCNT); #endif TO: #ifdef TCP_KEEPCNT #if defined(_MSC_VER) && _MSC_VER >= 1800 if (IsWindows10CreatorsOrGreater()) { //Windows 10 1703(

[issue32394] socket lib beahavior change in 3.6.4

2018-02-02 Thread Kamil
Kamil added the comment: I suggest inserting the following code into socketmodule.c: CHANGE: #ifdef TCP_KEEPCNT PyModule_AddIntMacro(m, TCP_KEEPCNT); #endif TO: #ifdef TCP_KEEPCNT #if defined(_MSC_VER) && _MSC_VER >= 1800 // Windows 10 1703 (15

[issue32394] socket lib beahavior change in 3.6.4

2017-12-22 Thread Kamil
Kamil added the comment: I suggest inserting the following code into socket.py: if hasattr(sys, 'getwindowsversion') and sys.getwindowsversion()[0] < 10: del socket.TCP_KEEPCNT del socket.TCP_FASTOPEN -- ___ Python tr

[issue32394] socket lib beahavior change in 3.6.4

2017-12-21 Thread Kamil
Kamil added the comment: websocket-client 0.44.0 https://pypi.python.org/pypi/websocket-client/0.44.0 My script gives the following Erroe: File "C:\Program Files\Python36\lib\site-packages\websocket\_http.py", line 108, in _open_socket sock.setsockopt(*opts) OSError: [WinE

[issue32394] socket lib beahavior change in 3.6.4

2017-12-21 Thread Kamil
Kamil added the comment: My OS version is Windows 7 x64. I ran the script on the same computer, but with different versions of the python: import socket import platform print('1) OS Info: ', platform.architecture(), platform.platform()) print('2) Python Info: ', p

[issue32394] socket lib beahavior change in 3.6.4

2017-12-20 Thread Kamil
New submission from Kamil : On Windows, python 3.6.3 code "hasattr(socket, 'TCP_KEEPCNT')" gives False, python 3.6.4 gives True. This behavior breaks many libraries that i use. -- components: Library (Lib) messages: 308837 nosy: skn78 priority: normal severity:

[issue29732] Heap out of bounds read in tok_nextc()

2017-03-06 Thread Kamil Frankowicz
New submission from Kamil Frankowicz: After some fuzz testing I found a crashing test case. Version: 2.7.13 compiled from source with Clang 3.9.1. To reproduce: python python_hoobr_tok_nextc.py Extract from Valgrind log (full log file at https://gist.github.com/fumfel

[issue15033] Different exit status when using -m

2012-06-07 Thread Kamil Kisiel
New submission from Kamil Kisiel : Python returns a different exit status when an exception is raised and -m is used as opposed to just running a module. A short example, let's call it foo.py: def main(): raise ValueError() if __name__ == '__main__': m

[issue12423] signal handler doesn't handle SIGABRT from os.abort

2011-07-04 Thread Kamil Kisiel
Kamil Kisiel added the comment: Here's my proposed patch for the documentation, against the head of the 2.7 branch. -- keywords: +patch Added file: http://bugs.python.org/file22570/os.rst.patch ___ Python tracker <http://bugs.python.org/is

[issue12423] signal handler doesn't handle SIGABRT from os.abort

2011-06-28 Thread Kamil Kisiel
Kamil Kisiel added the comment: The application is interfacing with a C library that uses abort() to signal fatal errors (horrible, I know..). Instead of core dumping I would like to be able to handle these errors at the Python level and do something else. It's starting to sound like

[issue12423] signal handler doesn't handle SIGABRT from os.abort

2011-06-27 Thread Kamil Kisiel
New submission from Kamil Kisiel : It seems that registering a signal handler for SIGABRT doesn't handle the signal from os.abort(). Example code: import signal, os import time def handler(signum, frame): print "Signal!" raise Exception() signal.signal(signal.S

[issue12423] signal handler dpes

2011-06-27 Thread Kamil Kisiel
Changes by Kamil Kisiel : -- nosy: kisielk priority: normal severity: normal status: open title: signal handler dpes ___ Python tracker <http://bugs.python.org/issue12

[issue9933] os module does not have the documented EX_NOTFOUND attribute

2010-09-23 Thread Kamil Kisiel
Kamil Kisiel added the comment: I mostly wanted to just report the issue rather than propose a solution, so I'm in favor of whatever everyone feels is best. As for how I came across the issue, it was mostly curiosity, I wanted to see the numerical value of all the os.EX_* constants an

[issue9933] os module does not have the documented EX_NOTFOUND attribute

2010-09-23 Thread Kamil Kisiel
Kamil Kisiel added the comment: That should have read "Linux and OS X installs of *Python*". -- ___ Python tracker <http://bugs.python.org/issue9933> ___ __

[issue9933] os module does not have the documented EX_NOTFOUND attribute

2010-09-23 Thread Kamil Kisiel
New submission from Kamil Kisiel : The library documentation (http://docs.python.org/library/os.html) states: """ os.EX_NOTFOUND Exit code that means something like “an entry was not found”. Availability: Unix. New in version 2.3. """ However, on both my Linux

[issue7951] Should str.format allow negative indexes when used for __getitem__ access?

2010-06-23 Thread Kamil Kisiel
Kamil Kisiel added the comment: While I agree this functionality isn't strictly necessary I think it makes sense from a semantic point of view. I ran in to this issue today while writing some code and I simply expected the negative syntax to work, given that the format string s