[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue43446>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
<https://bugs.python.org/issue43446>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue43245>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--
nosy: +kamilturek

___
Python tracker 
<https://bugs.python.org/issue43427>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue43391>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 patch/mock. ;)

--
nosy: +galuszkak
versions: +Python 3.6, Python 3.7, Python 3.8

___
Python tracker 
<https://bugs.python.org/issue23078>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 Windows 10 1703 (Build:15063 )
 if (IsWindows10CreatorsOrGreater()) {
 PyModule_AddIntMacro(m, TCP_KEEPCNT);
 }
#else
 PyModule_AddIntMacro(m, TCP_KEEPCNT); 
#endif
#endif

AND CHANGE:
#ifdef  TCP_FASTOPEN
PyModule_AddIntMacro(m, TCP_FASTOPEN);
#endif

TO:
#ifdef  TCP_FASTOPEN
#ifdef MS_WINDOWS
#if defined(_MSC_VER) && _MSC_VER >= 1800
//on Windows avaible only from Windows 10 1607(Build: 14393)
 if (IsWindows10AnniversaryOrGreater()) {
 PyModule_AddIntMacro(m, TCP_FASTOPEN);
 }
#else
 PyModule_AddIntMacro(m, TCP_FASTOPEN);
#endif 
#endif

--

___
Python tracker 
<https://bugs.python.org/issue32394>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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(Build:15063 )
PyModule_AddIntMacro(m, TCP_KEEPCNT);
}
#endif
#endif

AND CHANGE:
#ifdef  TCP_FASTOPEN
PyModule_AddIntMacro(m, TCP_FASTOPEN);
#endif

TO:
#ifdef  TCP_FASTOPEN
#if defined(_MSC_VER) && _MSC_VER >= 1800
if (IsWindows10AnniversaryOrGreater()) { //Windows 10 1607(Build: 14393)
PyModule_AddIntMacro(m, TCP_FASTOPEN);
}
#endif 
#endif

--

___
Python tracker 
<https://bugs.python.org/issue32394>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 (15063)
if (IsWindows10CreatorsOrGreater()) {
PyModule_AddIntMacro(m, TCP_KEEPCNT);
}
#endif
#endif

AND CHANGE:
#ifdef  TCP_FASTOPEN
PyModule_AddIntMacro(m, TCP_FASTOPEN);
#endif

TO:
#ifdef  TCP_FASTOPEN
#if defined(_MSC_VER) && _MSC_VER >= 1800
// Windows 10 1703 (Build: 14393)
if (IsWindows10AnniversaryOrGreater()) {
PyModule_AddIntMacro(m, TCP_FASTOPEN);
}
#endif 
#endif

--

___
Python tracker 
<https://bugs.python.org/issue32394>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker 
<https://bugs.python.org/issue32394>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: [WinError 10042] Для вызова getsockopt или setsockopt был указан 
неизвестный, недопустимый или неподдерживаемый параметр
или уровень

--

___
Python tracker 
<https://bugs.python.org/issue32394>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: ', platform.python_build(), platform.python_compiler())
print('3) TCP_KEEPCNT = ', hasattr(socket, 'TCP_KEEPCNT') )

Result for python 3.6.3:
1) OS Info:  ('64bit', 'WindowsPE') Windows-7-6.1.7601-SP1
2) Python Info:  ('v3.6.3:2c5fed8', 'Oct  3 2017 18:11:49') MSC v.1900 64 bit 
(AMD64)
3) TCP_KEEPCNT =  False

Result for python 3.6.4:
1) OS Info:  ('64bit', 'WindowsPE') Windows-7-6.1.7601-SP1
2) Python Info:  ('v3.6.4:d48eceb', 'Dec 19 2017 06:54:40') MSC v.1900 64 bit 
(AMD64)
3) TCP_KEEPCNT =  True

--

___
Python tracker 
<https://bugs.python.org/issue32394>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: normal
status: open
title: socket lib beahavior change in 3.6.4
type: behavior
versions: Python 3.6

___
Python tracker 
<https://bugs.python.org/issue32394>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/f9780e567dec761f8524523fff040742):

==15583== Process terminating with default action of signal 11 (SIGSEGV)
==15583==  Bad permissions for mapped region at address 0x5F36000
==15583==at 0x41EBC4: tok_nextc (tokenizer.c:861)
==15583==by 0x41ABA2: tok_get (tokenizer.c:1568)
==15583==by 0x41ABA2: PyTokenizer_Get (tokenizer.c:1681)
==15583==by 0x4171D4: parsetok (parsetok.c:159)
==15583==by 0x417DC0: PyParser_ParseFileFlagsEx (parsetok.c:106)
==15583==by 0x5C4A1D: PyParser_ASTFromFile (pythonrun.c:1499)
==15583==by 0x5C4C28: PyRun_FileExFlags (pythonrun.c:1354)
==15583==by 0x5C4009: PyRun_SimpleFileExFlags (pythonrun.c:948)
==15583==by 0x5C34AA: PyRun_AnyFileExFlags (pythonrun.c:752)
==15583==by 0x416478: Py_Main (main.c:640)
==15583==by 0x578782F: (below main) (libc-start.c:291)

--
components: Interpreter Core
files: python_hoobr_tok_nextc.py
messages: 289078
nosy: Kamil Frankowicz
priority: normal
severity: normal
status: open
title: Heap out of bounds read in tok_nextc()
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file46704/python_hoobr_tok_nextc.py

___
Python tracker 
<http://bugs.python.org/issue29732>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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__':
main()

When run with python foo.py the exit status of the process is 1. If run with 
python -mfoo the exit status of the process is 255.

--
messages: 162501
nosy: kisielk
priority: normal
severity: normal
status: open
title: Different exit status when using -m
type: behavior
versions: Python 2.6, Python 2.7, Python 3.2

___
Python tracker 
<http://bugs.python.org/issue15033>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue12423>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 that might be impossible.

You explanation of the abort() behaviour makes sense to me. However, if that's 
the case then this portion of the docs appears to be incorrect:

"Be aware that programs which use signal.signal() to register a handler for 
SIGABRT will behave differently."

Maybe my interpretation is wrong, but I would read "behave differently" as 
"call the signal handler instead" in this case.

--

___
Python tracker 
<http://bugs.python.org/issue12423>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.SIGABRT, handler)
os.abort()

The result is the process still core dumps instead of raising an exception. If 
instead of os.abort I call time.sleep(10) and then send a kill -ABRT from a 
shell, the exception is raised as expected.

I tried this with Python 2.6 on Gentoo, 2.7 on FC 14, and 2.6 on OS X 10.6.7 
with the same result.

Based on the documentation for os.abort, I would expect this to work:

Generate a SIGABRT signal to the current process. On Unix, the default behavior 
is to produce a core dump; on Windows, the process immediately returns an exit 
code of 3. Be aware that programs which use signal.signal() to register a 
handler for SIGABRT will behave differently.

--
title: signal handler dpes -> signal handler doesn't handle SIGABRT from 
os.abort
versions: +Python 2.6, Python 2.7

___
Python tracker 
<http://bugs.python.org/issue12423>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue12423>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 and was printing them out on 
the screen when I stumbled upon this.

If there's no chance of it working, which seems to be the case, I agree it 
should probably be just removed from the documentation.

--

___
Python tracker 
<http://bugs.python.org/issue9933>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 and OS X installs of OS X this happens:

python
Python 2.6.2 (r262:71600, Oct 24 2009, 03:15:21) 
[GCC 4.4.1 [gcc-4_4-branch revision 150839]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
im>>> import os
>>> os.EX_NOTFOUND
Traceback (most recent call last):
  File "", line 1, in 
AttributeError: 'module' object has no attribute 'EX_NOTFOUND'
>>> 


Unfortunately I don't have another Python version available to test with at the 
moment so I'm not sure if this affects other versions as well.

--
components: Library (Lib)
messages: 117245
nosy: kisielk
priority: normal
severity: normal
status: open
title: os module does not have the documented EX_NOTFOUND attribute
type: behavior
versions: Python 2.6

___
Python tracker 
<http://bugs.python.org/issue9933>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 syntax otherwise very closely resembles standard array and 
attribute access.

It would be nice to see this make it in eventually for consistency's sake.

--
nosy: +kisielk

___
Python tracker 
<http://bugs.python.org/issue7951>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com