[issue22675] typo in argparse.py

2014-10-20 Thread Ricordisamoa

New submission from Ricordisamoa:

It should be no help instead of ho nelp.

--
components: Library (Lib)
files: typo.patch
keywords: patch
messages: 229714
nosy: Ricordisamoa
priority: normal
severity: normal
status: open
title: typo in argparse.py
type: enhancement
Added file: http://bugs.python.org/file36976/typo.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22675
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22675] typo in argparse.py

2014-10-20 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 550de59a4c6d by Georg Brandl in branch '3.4':
Closes #22675: fix typo.
https://hg.python.org/cpython/rev/550de59a4c6d

--
nosy: +python-dev
resolution:  - fixed
stage:  - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22675
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22675] typo in argparse.py

2014-10-20 Thread Ricordisamoa

Ricordisamoa added the comment:

AFAICT, this also applies to previous versions.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22675
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22674] strsignal() missing from signal module

2014-10-20 Thread Georg Brandl

Georg Brandl added the comment:

Is it possible to determine the range of signal numbers?  Otherwise it would be 
a guessing game where to stop querying when filling up the dictionary.

A problem is also that if the signal number is not valid, the return value of 
strsignal() is unspecified, *and* there is no way to check for this situation 
because no errors are defined.

--
nosy: +georg.brandl

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22674
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22675] typo in argparse.py

2014-10-20 Thread Georg Brandl

Georg Brandl added the comment:

Yes, but those are no longer maintained. It's not a critical bug :)

--
nosy: +georg.brandl

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22675
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17401] io.FileIO closefd parameter is not documented nor shown in repr

2014-10-20 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

FileIO repr now looks confusing:

 sys.stdout.buffer.raw
_io.FileIO name='stdout' mode='wb' closefd='0'

The closefd attribute is not a string '0' or '1', it is boolean value True or 
False. Here is a patch which fixes a repr.

And I think that documentation part of the patch should be backported.

--
nosy: +serhiy.storchaka
resolution: fixed - 
stage:  - patch review
status: closed - open
versions: +Python 3.5 -Python 3.2, Python 3.3
Added file: http://bugs.python.org/file36977/io_fileio_repr_closefd.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17401
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17401] io.FileIO closefd parameter is not documented nor shown in repr

2014-10-20 Thread Robert Collins

Robert Collins added the comment:

Yeah thats nicer. I'll apply that later unless you can.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17401
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12067] Doc: remove errors about mixed-type comparisons.

2014-10-20 Thread Andy Maier

Andy Maier added the comment:

I have posted v12 of the patch, which addresses all comments since v11.

This Python 3.4 patch can be applied to the default (3.5 dev) branch as well.

I will start working on a similar patch for Python 2.7 now.

--
Added file: 
http://bugs.python.org/file36978/issue12067-expressions-py34_v12.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12067
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17401] io.FileIO closefd parameter is not documented nor shown in repr

2014-10-20 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

May be include closefd in the repr only when it is False? By default closefd is 
True and in common case the repr will be more compact.

--
Added file: http://bugs.python.org/file36979/io_fileio_repr_closefd_2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17401
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22676] _pickle.c

2014-10-20 Thread kbengine

New submission from kbengine:

I have an application, the use of Python3.2.3 development.
When I upgrade to Python3.4.2, found a problem.

I have an extended xxx.c (c-python) module, I call pickle to serialize and 
deserialize, _pickle.c calls the whichmodule to look for this module, The final 
will be to find the module from sys.modules.

But probably there are 200 elements in sys.modules, Use the obj = getattribute 
(module, global_name, allow_qualname) to try to get the object:

static PyObject *
getattribute(PyObject *obj, PyObject *name, int allow_qualname) {
...
...
...

tmp = PyObject_GetAttr(obj, subpath);
Py_DECREF(obj);
 
// There will be hundreds of times to return to NULL
// There will be hundreds of times calls PyErr_Format   
// (PyExc_AttributeError, Can't get attribute%R on%R , name, obj);
// This process will lead to hundreds of calls to moduleobject.c-
// module_repr(PyModuleObject *m).

// So I frequently call pickle.dumps CPU consumption sharply.

if (tmp == NULL) {
if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
PyErr_Clear();


PyErr_Format(PyExc_AttributeError,
 Can't get attribute %R on %R, name, obj);
}
Py_DECREF(dotted_path);
return NULL;
}
   ...
   ...
}

--
   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
  3150.0010.0000.0040.000 frozen 
importlib._bootstrap:690(_module_repr)




I went wrong?
Look forward to answer, thanks!

--
components: Extension Modules
files: 20141020193031.jpg
messages: 229723
nosy: kbengine
priority: normal
severity: normal
status: open
title: _pickle.c
type: performance
versions: Python 3.4
Added file: http://bugs.python.org/file36980/20141020193031.jpg

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22676
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22677] icon not loaded

2014-10-20 Thread Ahmad El-Komey

New submission from Ahmad El-Komey:

Versions 2.7.7 and 2.7.8 (with both builds, 86 and 64 builds) have some strange 
things that is different from other versions:
1. The tk icon of the IDLE is not loaded. The icon loaded is as this one: 
Python27\Lib\idlelib\Icons\idle.ico
and it should be like the one found in Python27\Lib\idlelib\Icons\tk.gif

2. I cannot pin a shortcut to the program! This is not the case with other 
python versions.

--
components: IDLE, Installation, Windows
messages: 229724
nosy: Ahmad.El-Komey, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: icon not loaded
type: behavior
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22677
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22677] icon not loaded

2014-10-20 Thread Zachary Ware

Changes by Zachary Ware zachary.w...@gmail.com:


--
nosy: +terry.reedy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22677
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22676] _pickle.c

2014-10-20 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
nosy: +alexandre.vassalotti, pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22676
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22677] IDLE: icon not loaded

2014-10-20 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
title: icon not loaded - IDLE: icon not loaded

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22677
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22676] _pickle.c

2014-10-20 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
nosy: +haypo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22676
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22677] IDLE: icon not loaded

2014-10-20 Thread Ahmad El-Komey

Ahmad El-Komey added the comment:

EDIT:
Regarding the icon, I found that this is not an issue. In fact, this is the new 
icon starting from version 2.7.7 (The same goes for 3.4.2. Not sure of previous 
versions)

Regarding the pin to taskbar: After uninstalling Python 3.3 and installing 
Python 3.4.2, I can pin python 2.7.8 to the taskbar. I really have no idea why.

That is all.

--
resolution:  - not a bug
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22677
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22674] strsignal() missing from signal module

2014-10-20 Thread STINNER Victor

STINNER Victor added the comment:

I don't think that a strsignal() is required, signals now have a name attribute!

Python 3.5.0a0 (default:07ae7bc06af0, Oct 16 2014, 09:46:01) 
 import signal
 signal.SIGINT
Signals.SIGINT: 2
 signal.SIGINT.name
'SIGINT'

--
nosy: +haypo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22674
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17401] io.FileIO closefd parameter is not documented nor shown in repr

2014-10-20 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17401
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22673] document the special features (eg: fdclose=False) of the standard streams

2014-10-20 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22673
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15989] Possible integer overflow of PyLong_AsLong() results

2014-10-20 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15989
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22660] Review ssl docs for security recommendations

2014-10-20 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22660
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22676] Creating the string representation of a module is slower

2014-10-20 Thread Brett Cannon

Brett Cannon added the comment:

In Python 3.3 the import machinery changed to use importlib. This means the 
code to create the representation of a module now calls into Python code (the 
`frozen importlib._bootstrap:690(_module_repr)` you're seeing).

But my question is why are you not calling PyObject_HasAttr() before calling 
PyObject_GetAttr()? Exceptions may be relatively cheap but they are not free.

--
nosy: +brett.cannon
status: open - pending
title: _pickle.c - Creating the string representation of a module is slower

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22676
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22445] Memoryviews require more strict contiguous checks then necessary

2014-10-20 Thread Sebastian Berg

Sebastian Berg added the comment:

Antoine, sounds good to me, I don't mind this being in python rather sooner 
then later, for NumPy itself it does not matter I think. I just wanted to warn 
that there were problems when we first tried to switch in NumPy, which, if I 
remember correctly, is now maybe 2 years ago (in a dev version), though.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22445
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22678] An OSError subclass for no space left on device would be nice

2014-10-20 Thread Mathieu Bridon

New submission from Mathieu Bridon:

I found myself writing the following code the other day:

try:
os.mkdir(path)

except PermissionError:
do_something()

except FileExistsError:
do_something_else()

except FileNotFoundError:
do_yet_another_thing()

except OSError as e:
import errno
if e.errno == errno.ENOSPC:
and_do_one_more_different_thing()

else:
raise e

The OSError subclasses in Python 3 are amazing, I love them.

I just wish there'd be more of them. :)

--
components: Library (Lib)
messages: 229729
nosy: bochecha
priority: normal
severity: normal
status: open
title: An OSError subclass for no space left on device would be nice
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22678
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22678] An OSError subclass for no space left on device would be nice

2014-10-20 Thread Mathieu Bridon

Changes by Mathieu Bridon boche...@daitauha.fr:


--
keywords: +patch
Added file: http://bugs.python.org/file36981/0001-New-NoSpaceError.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22678
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22678] An OSError subclass for no space left on device would be nice

2014-10-20 Thread Mathieu Bridon

Changes by Mathieu Bridon boche...@daitauha.fr:


Added file: http://bugs.python.org/file36982/0002-Use-the-new-NoSpaceError.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22678
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22679] Add encodings of supported in glibc locales

2014-10-20 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

There are 6 encodings used in supported by glibc locales:

ARMSCII-8 - Armenian encoding
EUC-TW - Taiwan encoding in EUC family
GEORGIAN-PS - Georgian encoding
KOI8-T - Tajik encoding in KOI family
RK1048 - Kazakh variation of CP1251
TCVN5712-1 - Vietnam encoding

All these encodings are rare nowadays, but the fact that they are supported as 
encoding of official glibc locales means that they were used in some places in 
some time and there are some documents in these encodings. May be they are used 
even nowadays. I think it is worth to add support of all this encodings in 
Python.

This is a meta-issue. There are requests for support of GEORGIAN-PS 
(issue19459) and TCVN5712-1 (issue21081).

--
components: Library (Lib)
messages: 229730
nosy: haypo, lemburg, loewis, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Add encodings of supported in glibc locales
type: enhancement
versions: Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22679
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22679] Add encodings of supported in glibc locales

2014-10-20 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
dependencies: +Python does not support the GEORGIAN-PS charset, missing 
vietnamese codec TCVN 5712:1993 in Python

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22679
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22680] unittest discovery is fragile

2014-10-20 Thread Antoine Pitrou

New submission from Antoine Pitrou:

I just got the following traceback when trying discover without 3.5. It runs 
fine under 3.4...

$ ~/cpython/default/python -m unittest discover -v
Traceback (most recent call last):
  File /home/antoine/cpython/default/Lib/runpy.py, line 170, in 
_run_module_as_main
__main__, mod_spec)
  File /home/antoine/cpython/default/Lib/runpy.py, line 85, in _run_code
exec(code, run_globals)
  File /home/antoine/cpython/default/Lib/unittest/__main__.py, line 18, in 
module
main(module=None)
  File /home/antoine/cpython/default/Lib/unittest/main.py, line 93, in 
__init__
self.runTests()
  File /home/antoine/cpython/default/Lib/unittest/main.py, line 244, in 
runTests
self.result = testRunner.run(self.test)
  File /home/antoine/cpython/default/Lib/unittest/runner.py, line 168, in run
test(result)
  File /home/antoine/cpython/default/Lib/unittest/suite.py, line 87, in 
__call__
return self.run(*args, **kwds)
  File /home/antoine/cpython/default/Lib/unittest/suite.py, line 125, in run
test(result)
  File /home/antoine/cpython/default/Lib/unittest/suite.py, line 87, in 
__call__
return self.run(*args, **kwds)
  File /home/antoine/cpython/default/Lib/unittest/suite.py, line 125, in run
test(result)
  File /home/antoine/cpython/default/Lib/unittest/suite.py, line 87, in 
__call__
return self.run(*args, **kwds)
  File /home/antoine/cpython/default/Lib/unittest/suite.py, line 125, in run
test(result)
  File /home/antoine/cpython/default/Lib/unittest/case.py, line 625, in 
__call__
return self.run(*args, **kwds)
  File /home/antoine/cpython/default/Lib/unittest/case.py, line 553, in run
result.startTest(self)
  File /home/antoine/cpython/default/Lib/unittest/runner.py, line 54, in 
startTest
self.stream.write(self.getDescription(test))
  File /home/antoine/cpython/default/Lib/unittest/runner.py, line 47, in 
getDescription
return '\n'.join((str(test), doc_first_line))
  File /home/antoine/cpython/default/Lib/unittest/case.py, line 1354, in 
__str__
self._testFunc.__name__)
AttributeError: 'str' object has no attribute '__name__'

--
components: Library (Lib)
messages: 229731
nosy: ezio.melotti, michael.foord, pitrou, rbcollins
priority: normal
severity: normal
stage: needs patch
status: open
title: unittest discovery is fragile
type: behavior
versions: Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22680
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22680] unittest discovery is fragile

2014-10-20 Thread Michael Foord

Michael Foord added the comment:

I assume you mean you get the error *with* 3.5 (not without). Does this 
happen *every time* (i.e. is it trivially reproducible) - or can you provide a 
repro?

This is regression that I would *assume* (a totally lazy assumption) introduced 
by the new error handling code.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22680
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22680] unittest discovery is fragile

2014-10-20 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 I assume you mean you get the error *with* 3.5 (not without).

Yes, sorry :-)

 Does this happen *every time* (i.e. is it trivially reproducible)

It happens with the llvmlite repository: https://github.com/numba/llvmlite
Since using it requires some compiling, I could try to investigate myself if 
you tell me what to look for.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22680
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22680] unittest discovery is fragile

2014-10-20 Thread Michael Foord

Michael Foord added the comment:

As _testFunc is a string and shouldn't be, I'd be very interested to know 
*what* the string is. That may give us a clue as to where it has come from. (So 
a try...except...raise that also prints that value would be a good first step.)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22680
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22680] unittest discovery is fragile

2014-10-20 Thread Antoine Pitrou

Antoine Pitrou added the comment:

testFunc contains runTest (!).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22680
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21081] missing vietnamese codec TCVN 5712:1993 in Python

2014-10-20 Thread Jean Christophe André

Jean Christophe André added the comment:

A note to inform about my progress. (I had a long period without free time at 
hand)

While seeking (again) official documents on the topic, I mainly found a lot of 
non-official ones, but some are notorious enough to use them as references.

I am now in the process of creating the requested patch. I am currently 
studying the proper way to do it. I expect to get it ready this weekend, in the 
hope to have it accepted for Python 3.5.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21081
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22680] unittest discovery is fragile

2014-10-20 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Ok, apparently it's because I have from unittest import * somewhere.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22680
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22674] strsignal() missing from signal module

2014-10-20 Thread Georg Brandl

Georg Brandl added the comment:

Nice. However, strsignal() returns not just SIGINT, but Interrupted etc.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22674
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22680] unittest discovery is fragile

2014-10-20 Thread Barry A. Warsaw

Changes by Barry A. Warsaw ba...@python.org:


--
nosy: +barry

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22680
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22681] Add support of KOI8-T encoding

2014-10-20 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

KOI8-T is Tajik encoding partially compatible with KOI8-R. This is default 
encoding of Tajik locale tg_TJ in glibc (but in X11 locale.alias file it is 
KOI8-C, issue20087).

Proposed patch adds support for this encoding. I have not found official 
mapping of KOI8-T and have used a table from Apple's implementation of 
libiconv. It matches a table in Wikipedia [2] and GNU iconv.

[1] 
http://www.opensource.apple.com/source/libiconv/libiconv-4/libiconv/tests/KOI8-T.TXT
[2] https://ru.wikipedia.org/wiki/КОИ-8 (Russian)

--
components: Library (Lib)
messages: 229739
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Add support of KOI8-T encoding
type: enhancement
versions: Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22681
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22680] unittest discovery is fragile

2014-10-20 Thread Ethan Furman

Changes by Ethan Furman et...@stoneleaf.us:


--
nosy: +ethan.furman

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22680
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22681] Add support of KOI8-T encoding

2014-10-20 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
keywords: +patch
Added file: http://bugs.python.org/file36983/encoding_koi8_t.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22681
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22679] Add encodings of supported in glibc locales

2014-10-20 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
dependencies: +Add support of KOI8-T encoding

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22679
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22681] Add support of KOI8-T encoding

2014-10-20 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Ah, actually Apple uses (a fork of) GNU libiconv. So I should correct links.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22681
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22682] Add support of KZ1048 (RK1048) encoding

2014-10-20 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

KZ1048 is Kazakh encoding based on CP1251 (Windows Cyrillic codepage). It is 
standardized by Unicode [1] and IANA [2]. It is also known as STRK1048-2002 (by 
the name of original Kazakh standard) and RK1048 (used in glibc). It is default 
encoding of Kazakh locale kk_KZ in glibc.

Proposed patch adds support for this encoding.

[1] ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MISC/KZ1048.TXT
[2] https://www.iana.org/assignments/charset-reg/KZ-1048

--
components: Library (Lib)
messages: 229741
nosy: lemburg, loewis, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Add support of KZ1048 (RK1048) encoding
type: enhancement
versions: Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22682
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22682] Add support of KZ1048 (RK1048) encoding

2014-10-20 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
keywords: +patch
Added file: http://bugs.python.org/file36984/encoding_kz1048.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22682
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22679] Add encodings of supported in glibc locales

2014-10-20 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
dependencies: +Add support of KZ1048 (RK1048) encoding

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22679
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17401] io.FileIO closefd parameter is not documented nor shown in repr

2014-10-20 Thread Robert Collins

Robert Collins added the comment:

Showing it only when False would have higher cognitive load. Showing it always 
is simple and clear.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17401
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22660] Review ssl docs for security recommendations

2014-10-20 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 230889852e17 by Antoine Pitrou in branch '3.4':
Issue #22660: update various mentions in the ssl module documentation.
https://hg.python.org/cpython/rev/230889852e17

New changeset 9015f502ac06 by Antoine Pitrou in branch 'default':
Issue #22660: update various mentions in the ssl module documentation.
https://hg.python.org/cpython/rev/9015f502ac06

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22660
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22660] Review ssl docs for security recommendations

2014-10-20 Thread Antoine Pitrou

Antoine Pitrou added the comment:

This is done in 3.x. Alex, do you want to backport it to 2.7?

--
stage: needs patch - commit review

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22660
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22660] Review ssl docs for security recommendations

2014-10-20 Thread Alex Gaynor

Alex Gaynor added the comment:

Yes, that would be good. Need to make sure all the changes are completely 
applicable -- the SSLv3 change wasn't backported.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22660
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22678] An OSError subclass for no space left on device would be nice

2014-10-20 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
components: +Interpreter Core -Library (Lib)
stage:  - patch review
type:  - enhancement
versions: +Python 3.5 -Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22678
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17401] io.FileIO closefd parameter is not documented nor shown in repr

2014-10-20 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
stage: patch review - commit review

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17401
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22676] Creating the string representation of a module is slower

2014-10-20 Thread kbengine

kbengine added the comment:

This is a misunderstanding, getattribute (PyObject *obj, PyObject *name, int 
allow_qualname) is the Python code, in the Python/Modules/_pickle.c (1538).

Do efficiency is decreased a lot.

--
status: pending - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22676
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22648] Unable to install Python 3.4.2 amd64 on Windows 8.1

2014-10-20 Thread Pierre Boulanger

Pierre Boulanger added the comment:

your soluce works.
great tanks !

--
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22648
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com