[issue23177] test_ssl: failures on OpenBSD with LibreSSL

2015-09-20 Thread STINNER Victor

STINNER Victor added the comment:

I don't care so much of issues introduced by LibreSSL, I don't understand why 
they broke the API. For me, it doesn't seem right to have a version different 
if it's a number or if it's a string: OPENSSL_VERSION_NUMBER should be 
consistent with OPENSSL_VERSION_INFO.

If you propose a patch for Python and it fixes test_ssl, I will apply it :-)

--

___
Python tracker 

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



[issue25084] remove semi-busy loop in py2.7 threading.Condition.wait(timeout=x)

2015-09-20 Thread STINNER Victor

STINNER Victor added the comment:

Nick Coghlan added the comment:
> +1 - after the further discussion, addressing this downstream as a patch 
> specifically to the pthread backend sounds good to me.

Cool, I like when we agree :-)

@Flavio Grossi: Sorry for you, but it's time to upgrade to Python 3.
Twisted made great progress on Python 3 support. For Apache Thrift,
maybe you can help them to port the library to Python 3?

--

___
Python tracker 

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



[issue25190] Define StringIO seek offset as code point offset

2015-09-20 Thread Martin Panter

Martin Panter added the comment:

I see the _pyio implementation wraps BytesIO with UTF-8 encoding. Perhaps it 
would be okay to change to UTF-32 encoding (a fixed-length Unicode encoding). 
That would use more memory, but the C implementation seems to use a Py_UCS4 
buffer already. Then you could reimplement seek(), tell(), and truncate() by 
detaching and rebuilding the TextIOWrapper over the top. Not super efficient, 
but perhaps that does not matter for the _pyio implementation.

The fact that it is so hard to do this (random write access to a large Unicode 
buffer) in native Python could be another argument to support this in the 
default StringIO implementation :)

--

___
Python tracker 

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



[issue25201] lock of multiprocessing.Value is not a keyword-only argument

2015-09-20 Thread Martin Panter

Martin Panter added the comment:

I’m not familiar with this module, but I believe “lock” is indeed keyword-only. 
If you were to try a positional argument, it would be picked up as part of 
*args:

>>> multiprocessing.Value("I")  # Default to 0, lock=True

>>> multiprocessing.Value("I", False)  # False == 0, still lock=True

>>> multiprocessing.Value("I", lock=False)
c_uint(0)

--
nosy: +martin.panter

___
Python tracker 

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



[issue24861] deprecate importing components of IDLE

2015-09-20 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Individual files will be handled in separate issues.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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




[issue25138] test_socket: socket.EAI_NODATA doesn't exist on FreeBSD

2015-09-20 Thread Martin Panter

Martin Panter added the comment:

Looking at this more closely, the check seems to be there just to check if 
basic DNS lookups are working. It was added for Issue 12804. One option might 
be to replace it with a support.transient_internet() handler:

# Check for internet access before running test (issue #12804).
with support.transient_internet('python.org'):
socket.gethostbyname('python.org')
# these should all be successful
...

According to the socket module source code, gethostbyname() calls the OS-level 
getaddrinfo() rather gethostbyname(), hence the “gaierror” handling. The error 
codes that get raised seem to be a platform-dependent mess, but 
transient_internet() looks like it catches EAI_NONAME, _FAIL, _NODATA and 
WSANO_DATA (among others). EAI_NODATA seems to have been removed from RFC 3493 
and current Posix, but was apparently originally meant to be for looking up 
records that did exist but (say) did not have any IP v4 addresses.

--
nosy: +nadeem.vawda

___
Python tracker 

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



[issue24861] deprecate importing components of IDLE

2015-09-20 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b7bbb2c1e1f9 by Terry Jan Reedy in branch '2.7':
Issue #24861: Add docstring to idlelib.__init__ with 'private' warning.
https://hg.python.org/cpython/rev/b7bbb2c1e1f9

New changeset 084a8813f05f by Terry Jan Reedy in branch '3.4':
Issue #24861: Add docstring to idlelib.__init__ with 'private' warning.
https://hg.python.org/cpython/rev/084a8813f05f

--
nosy: +python-dev

___
Python tracker 

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



[issue25193] itertools.accumulate should have an optional initializer argument

2015-09-20 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
title: itertools.accumlate should have an optional initializer argument -> 
itertools.accumulate should have an optional initializer argument

___
Python tracker 

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



[issue25193] itertools.accumlate should have an optional initializer argument

2015-09-20 Thread Raymond Hettinger

Raymond Hettinger added the comment:

AFAICT other implementations of accumulators do not have an initializer.  See:

* 
http://docs.scipy.org/doc/numpy/reference/generated/numpy.ufunc.accumulate.html

* https://stat.ethz.ch/R-manual/R-devel/library/base/html/cumsum.html

* http://microapl.com/apl/apl_concepts_chapter5.html
  \+ 1 2 3 4 5
  1 3 6 10 15

* https://reference.wolfram.com/language/ref/Accumulate.html

--

___
Python tracker 

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



[issue25194] Register of Financial Interests for core contributors

2015-09-20 Thread Ezio Melotti

Ezio Melotti added the comment:

This is not a requirement though:

+CPython core contributors are encouraged, but not required, to disclose the
+means by which they fund their ability to contribute time to CPython core
+development.

--

___
Python tracker 

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



[issue25200] bug on re.search using the char ,-:

2015-09-20 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This is how regular expressions work.

https://docs.python.org/3/library/re.html#regular-expression-syntax
Ranges of characters can be indicated by giving two characters and separating 
them by a '-', for example [a-z] will match any lowercase ASCII letter, 
[0-5][0-9] will match all the two-digits numbers from 00 to 59, and [0-9A-Fa-f] 
will match any hexadecimal digit. If - is escaped (e.g. [a\-z]) or if it’s 
placed as the first or last character (e.g. [a-]), it will match a literal '-'.

--
nosy: +serhiy.storchaka
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue23484] SemLock acquire() keyword arg 'blocking' is invalid

2015-09-20 Thread Berker Peksag

Berker Peksag added the comment:

Thanks, Teodor and Davin!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue23484] SemLock acquire() keyword arg 'blocking' is invalid

2015-09-20 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 92350a2a8b08 by Berker Peksag in branch '2.7':
Issue #23484: Document differences between synchronization primitives of
https://hg.python.org/cpython/rev/92350a2a8b08

--

___
Python tracker 

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



[issue25201] lock of multiprocessing.Value is not a keyword-only argument

2015-09-20 Thread Berker Peksag

New submission from Berker Peksag:

>From 
>https://docs.python.org/3/library/multiprocessing.html#multiprocessing.Value

Note that lock is a keyword-only argument.

But the signature of Value (in Lib/multiprocessing/context.py)

def Value(self, typecode_or_type, *args, lock=True):

and (in Lib/multiprocessing/sharedctypes.py)

def Value(typecode_or_type, *args, lock=True, ctx=None):

I'd suggest to remove that part of the documentation in 3.4+. We can also make 
it a keyword-only argument in Python 3.6. That will make the API more similar 
with 
https://docs.python.org/3/library/multiprocessing.html#multiprocessing.Array

--
assignee: docs@python
components: Documentation
messages: 251196
nosy: berker.peksag, davin, docs@python, sbt
priority: normal
severity: normal
stage: needs patch
status: open
title: lock of multiprocessing.Value is not a keyword-only argument
type: behavior
versions: Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue23484] SemLock acquire() keyword arg 'blocking' is invalid

2015-09-20 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f3faf0f355e0 by Berker Peksag in branch '3.4':
Issue #23484: Document differences between synchronization primitives of
https://hg.python.org/cpython/rev/f3faf0f355e0

New changeset 6cd030099966 by Berker Peksag in branch '3.5':
Issue #23484: Document differences between synchronization primitives of
https://hg.python.org/cpython/rev/6cd030099966

New changeset 020377a15708 by Berker Peksag in branch 'default':
Issue #23484: Document differences between synchronization primitives of
https://hg.python.org/cpython/rev/020377a15708

--
nosy: +python-dev

___
Python tracker 

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



[issue23979] Multiprocessing Pool.map pickles arguments passed to workers

2015-09-20 Thread Davin Potts

Changes by Davin Potts :


--
status: open -> closed

___
Python tracker 

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



[issue25169] multiprocessing docs example still refs os.getppid as unix-only

2015-09-20 Thread Berker Peksag

Berker Peksag added the comment:

Fixed in 3.4, 3.5 and 3.6. Thanks all!

--
nosy: +berker.peksag
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue25169] multiprocessing docs example still refs os.getppid as unix-only

2015-09-20 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 60b0bc23c69e by Berker Peksag in branch '3.4':
Issue #25169: os.getppid() is available on Windows since Python 3.2.
https://hg.python.org/cpython/rev/60b0bc23c69e

New changeset c6ccef432dc2 by Berker Peksag in branch '3.5':
Issue #25169: os.getppid() is available on Windows since Python 3.2.
https://hg.python.org/cpython/rev/c6ccef432dc2

New changeset 71a6d4c7cd01 by Berker Peksag in branch 'default':
Issue #25169: os.getppid() is available on Windows since Python 3.2.
https://hg.python.org/cpython/rev/71a6d4c7cd01

--
nosy: +python-dev

___
Python tracker 

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



[issue24427] subclass of multiprocessing Connection segfault upon attribute acces

2015-09-20 Thread Davin Potts

Changes by Davin Potts :


--
nosy: +davin

___
Python tracker 

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



[issue16893] Generate Idle help from Doc/library/idle.rst

2015-09-20 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e749080fa0f9 by Terry Jan Reedy in branch '2.7':
Issue #16893: finish deprecation.
https://hg.python.org/cpython/rev/e749080fa0f9

New changeset ff0270e9bdfb by Terry Jan Reedy in branch '3.4':
Issue #16893: finish deprecation.
https://hg.python.org/cpython/rev/ff0270e9bdfb

--

___
Python tracker 

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



[issue25194] Register of Financial Interests for core contributors

2015-09-20 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I would object to any new requirement to disclose any information that I 
consider to be private or personal.

--

___
Python tracker 

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



[issue25194] Register of Financial Interests for core contributors

2015-09-20 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
Removed message: http://bugs.python.org/msg251186

___
Python tracker 

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



[issue25199] Idle: add cross-references from and to macosxSupport

2015-09-20 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I did not find anything other function pairs. If either of you think of any 
similar comments to add, reopen this or open a new issue.

--
keywords: +patch
resolution:  -> fixed
stage: needs patch -> resolved
status: open -> closed
Added file: http://bugs.python.org/file40531/mac-cross-ref.diff

___
Python tracker 

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



[issue21345] multiprocessing.Pool._handle_workers sleeps too long

2015-09-20 Thread Davin Potts

Changes by Davin Potts :


--
status: open -> pending

___
Python tracker 

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



[issue21162] code in multiprocessing.pool freeze if inside some code from scikit-learn (and probably liblinear) executed on ubuntu 12.04 64 Bit

2015-09-20 Thread Davin Potts

Davin Potts added the comment:

This appears to be highly dependent upon particular versions of operating 
systems and specific versions of various libraries, some built with certain 
options.  It does not appear to be an issue in multiprocessing itself.

@Ivan.K:  Unless there is a clear example of how this issue can be reproduced 
with multiprocessing, I think the appropriate thing to do is close this issue 
as not a bug with multiprocessing.

--

___
Python tracker 

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



[issue25199] Idle: add cross-references from and to macosxSupport

2015-09-20 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 884f15dc26f0 by Terry Jan Reedy in branch '2.7':
Issue #25199: Idle: add synchronization comments for future maintainers.
https://hg.python.org/cpython/rev/884f15dc26f0

New changeset a2e782188db6 by Terry Jan Reedy in branch '3.4':
Issue #25199: Idle: add synchronization comments for future maintainers.
https://hg.python.org/cpython/rev/a2e782188db6

--
nosy: +python-dev

___
Python tracker 

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



[issue24153] threading/multiprocessing tests fail on chromebook under crouton generated chroots

2015-09-20 Thread Davin Potts

Changes by Davin Potts :


--
status: open -> pending

___
Python tracker 

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



[issue25200] bug on re.search using the char ,-:

2015-09-20 Thread Diego Palharini

New submission from Diego Palharini:

Using the packet re for regular expressions I found a strange behavior with the 
following command:


re.search("[,-:]","89")

it returns that one of those chars exists into the string "89" or whatever 
number you may use.

--
components: IDLE
messages: 251187
nosy: DPalharini
priority: normal
severity: normal
status: open
title: bug on re.search using the char ,-:
versions: Python 2.7

___
Python tracker 

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



[issue25194] Register of Financial Interests for core contributors

2015-09-20 Thread Raymond Hettinger

Raymond Hettinger added the comment:

FWIW, I think this is bad idea and opens a can of worms.  Occasionally, I'm 
consulting and under NDA or my clients don't want they're doing disclosed.  
Also, I feel this is a transgression into my personal life.   My financial 
affairs are my own business and I want my contributions to be evaluated on 
their merits rather than on who I taught a Python course to or a commercial 
project that I may have participated in.

I'm already sensitive to this.  As a Certified Public Accountant, the state I'm 
live in thinks that "in the public interest" I am required to have my home 
address listed on a public website and that my fingerprints be kept on file in 
the U.S. criminal database.

I would sooner quit being a core developer that be required by you to register 
my financial interests.  That is too personal and I won't do it.

--
nosy: +rhettinger

___
Python tracker 

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



[issue25193] itertools.accumlate should have an optional initializer argument

2015-09-20 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I know this was considered at the beginning but I am not immediately 
remembering what the reason was for not doing it (however, I do remember 
looking to APL to see what was done for their well thought-out implementation 
of accumulate).

AFAIK, the case you sketched-out (computing running totals for four factorial 
starting from an initial product of 10) just doesn't come-up in the real-world. 
 I'm reluctant to have API feature-creep without strong use cases (it just 
makes the tool more complicated to learn, remember, and use).  When I get a 
chance, I'll go to github and run a code search to see whether people are 
routinely have to do a chain() operation to prepend a starting point; if it 
isn't rare, then there would be a better case for API expansion; if it is rate, 
then it goes in the it-isn't-worth it category.

--
priority: normal -> low

___
Python tracker 

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



[issue25199] Idle: add cross-references from and to macosxSupport

2015-09-20 Thread Terry J. Reedy

New submission from Terry J. Reedy:

After changing EditorWindow.EditorWindow.help_dialog for #16893, I forgot, 
until remined by Mark, to make the corresponding change in 
macosxSupport..help_dialog.  After doing so, I added to the 
former file
# edit maxosxSupport.overrideRootMenu.help_dialog to match
This issue is to put a revised message
   # Synchronize with .
in each member of all pairs that need to by synchronized.  There are at least 
two others,

--

___
Python tracker 

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



[issue25192] deque append and appendleft should return value if maxlen set

2015-09-20 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Sorry, Alun but I going to decline this feature request.  It has been 
considered before and that path wasn't taken for several reasons.  1) with the 
current api, it isn't hard to fetch the first value before appending, 2) in 
possible use cases such as a moving average computation it didn't make the code 
better (i.e. x==d[0]; d.append(y)), 3) list.append append is well known to 
alway return None (Guido considers that to be very informative about how the 
language works) so having deque.append return a value just looks weird to 
experienced Python programmers, and 4) it isn't entirely clear what the 
semantics should be if the deque hasn't yet reached its maximum length (it 
would be incorrect to assign None to x because that is a possible legitimate 
element of a deque and the alternative or raising an exception is also awkward, 
making it necessary to wrap append calls in a try/except).

--
resolution:  -> rejected
status: open -> closed

___
Python tracker 

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



[issue25199] Idle: add cross-references from and to macosxSupport

2015-09-20 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee: terry.reedy
nosy: markroseman, terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: Idle: add cross-references from and to macosxSupport
type: enhancement
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue16893] Generate Idle help from Doc/library/idle.rst

2015-09-20 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I committed a patch that works well enough for release as it. I attached the 
diff for changed files in case anyone wants to view in Rietveld. 

Still to do for this issue:

* Automate getting the 2.7 and earliest 3.x idle.html copied to idlelib and 
whitespace-normalized. (Commit/push should stay manual.) Several lines have 1 
to many blanks at the end, while the file lacks a final \n.  See e66fbfa282c6. 
(These anomalies come from Sphinx; idle.rst has been normalized to be checked 
in.)

I have a .bat file that builds any and copies as needed.  I will to add a pass 
through Idle's trailing-whitespace deleter, which did just what was needed to 
commit. (Patchcheck.normalize_docs_whitespace does a here unneeded comparision 
(always unequal), creates an unwanted and nuisance .bak, and does not appear to 
work when the last list has no '\n'.)

When I have automation working for me, I would like to add make targets for 
others to use (Zach's patch 4).

* Edit idle.rst

I will push NEWS and idlelib.NEWS entries separately, along with others for 
Idle.

I opened new issue #25198 for further viewer improvements (and bug fixes, if 
any).

--
Added file: http://bugs.python.org/file40530/htmlhelp.diff

___
Python tracker 

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



[issue25198] Idle: improve idle.html help viewer.

2015-09-20 Thread Terry J. Reedy

New submission from Terry J. Reedy:

I just pushed the new viewer as part of #16893.  Possible improvements:

* Font size should initially reflect user's size choice.  Possibly change with 
control-mousewheel.  (Possible same for edit windows.)

* Make within-file links work.

* Make Find ^F work, even without menu entry.

* Possible immediate bug fixes.

--
assignee: terry.reedy
messages: 251181
nosy: markroseman, terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: Idle: improve idle.html help viewer.
type: enhancement
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue16893] Generate Idle help from Doc/library/idle.rst

2015-09-20 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4038508240a1 by Terry Jan Reedy in branch '2.7':
Issue #16893: Replace help.txt with idle.html for Idle doc display.
https://hg.python.org/cpython/rev/4038508240a1

New changeset 52510bc368f8 by Terry Jan Reedy in branch '2.7':
Issue #16893: include new files
https://hg.python.org/cpython/rev/52510bc368f8

New changeset 2d808b72996d by Terry Jan Reedy in branch '3.4':
Issue #16893: Replace help.txt with idle.html for Idle doc display.
https://hg.python.org/cpython/rev/2d808b72996d

New changeset e66fbfa282c6 by Terry Jan Reedy in branch '2.7':
Issue #16893: whitespace in idle.html.
https://hg.python.org/cpython/rev/e66fbfa282c6

New changeset 9b79a4901069 by Terry Jan Reedy in branch '3.4':
Issue #16893: whitespace in idle.html.
https://hg.python.org/cpython/rev/9b79a4901069

New changeset 1107e3ee6103 by Terry Jan Reedy in branch '2.7':
Issue #16893: whitespace in help.py.
https://hg.python.org/cpython/rev/1107e3ee6103

--

___
Python tracker 

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



[issue25145] urllib how-to should be updated to remove PyGoogle

2015-09-20 Thread Berker Peksag

Changes by Berker Peksag :


--
stage: needs patch -> resolved

___
Python tracker 

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



[issue25092] Regression: test_datetime fails on 3.5, Win 7, works on 3.4

2015-09-20 Thread Zachary Ware

Changes by Zachary Ware :


--
keywords: +3.5regression

___
Python tracker 

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



[issue25092] Regression: test_datetime fails on 3.5, Win 7, works on 3.4

2015-09-20 Thread Eric V. Smith

Changes by Eric V. Smith :


--
nosy: +eric.smith

___
Python tracker 

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



[issue25169] multiprocessing docs example still refs os.getppid as unix-only

2015-09-20 Thread Davin Potts

Changes by Davin Potts :


--
title: multiprocess documentation -> multiprocessing docs example still refs 
os.getppid as unix-only

___
Python tracker 

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



[issue25169] multiprocess documentation

2015-09-20 Thread Davin Potts

Davin Potts added the comment:

Good catch and agreed this should be cleaned up.

Patch looks good to me and given its nature is probably all we need although 
it's probably worth combining this minor documentation update so that it gets 
applied with some other documentation patch(es) at the same time.

--
nosy: +davin
versions: +Python 3.4, Python 3.6

___
Python tracker 

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



[issue18620] multiprocessing page leaves out important part of Pool example

2015-09-20 Thread Davin Potts

Changes by Davin Potts :


--
versions: +Python 3.6

___
Python tracker 

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



[issue22872] multiprocessing.Queue raises AssertionError

2015-09-20 Thread Davin Potts

Davin Potts added the comment:

The proposed patch would potentially break existing code which anticipates the 
current behavior.  The potential negative impact means this particular proposed 
patch is not viable.

Choices forward include:  (1) better documenting the existing, established 
implementation behavior (perhaps having the assert provide a more informative 
message), or (2) altering the behavior in a new release version (perhaps 3.6 
when it comes) and documenting that change appropriately there.

As to what sort of exception we should expect in this situation, unfortunately 
comparing to the queue module's Queue does not help guide expectations much 
since it does not have need of a close().

Of the two above options, I'm more inclined towards the first.  Does 
@Joseph.Siddall have other motivations that helped motivate this suggested 
improvement?

--
stage: patch review -> 
type: behavior -> enhancement

___
Python tracker 

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



[issue20525] Got compiler warning when compiling readline module

2015-09-20 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
status: open -> pending

___
Python tracker 

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



[issue18967] Find a less conflict prone approach to Misc/NEWS

2015-09-20 Thread Larry Hastings

Changes by Larry Hastings :


--
nosy: +larry

___
Python tracker 

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



[issue25169] multiprocess documentation

2015-09-20 Thread Davin Potts

Changes by Davin Potts :


--
stage:  -> patch review
type:  -> enhancement

___
Python tracker 

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



[issue25145] urllib how-to should be updated to remove PyGoogle

2015-09-20 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue25197] Allow documentation switcher to change url to /3/ and /dev/

2015-09-20 Thread Matthias Bussonnier

New submission from Matthias Bussonnier:

The current documentation  version switcher does not allow to get back to the 
`python.org/3/..`
and `python.org/dev/...` url who permanently track the stable/developement 
release of Python
the attached patch allows that and should permit  in the long term less link on 
the internet to be out of date.

--
assignee: docs@python
components: Documentation
files: docp.patch
keywords: patch
messages: 251177
nosy: docs@python, mbussonn
priority: normal
severity: normal
status: open
title: Allow documentation switcher to change url to /3/ and /dev/
type: enhancement
Added file: http://bugs.python.org/file40529/docp.patch

___
Python tracker 

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



[issue25180] Tools/parser/unparse.py needs to be updated for f-strings

2015-09-20 Thread Eric V. Smith

Changes by Eric V. Smith :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue25180] Tools/parser/unparse.py needs to be updated for f-strings

2015-09-20 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2fcd2540ab97 by Eric V. Smith in branch 'default':
Issue 25180: Fix Tools/parser/unparse.py for f-strings. Patch by Martin Panter.
https://hg.python.org/cpython/rev/2fcd2540ab97

--
nosy: +python-dev

___
Python tracker 

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



[issue25196] Installer>Install in user folder by default when you check: for all users

2015-09-20 Thread Abdullah Hilson

Abdullah Hilson added the comment:

I am using windows 10, latests updates.

Another problem with the installer:
It don' t set environnement variable even when checked

--

___
Python tracker 

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



[issue25196] Installer>Install in user folder by default when you check: for all users

2015-09-20 Thread Abdullah Hilson

New submission from Abdullah Hilson:

Hello
Just downloaded :
https://www.python.org/ftp/python/3.5.0/python-3.5.0-amd64.exe
And I launch the install, I check checkbox to install for all users
And folder for installation stay at:
C:\Users\myusername\AppData\Local\Programs\Python\Python35\
I have to change it manually

Well, I don't want it in that folder when I install globally.
Thanks

--
components: Windows
messages: 251174
nosy: Abdullah Hilson, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Installer>Install in user folder by default when you check: for all users
type: enhancement
versions: Python 3.5

___
Python tracker 

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



[issue24894] iso-8859-11 missing from codecs table

2015-09-20 Thread Prashant Tyagi

Prashant Tyagi added the comment:

Here is my patch which includes iso8859_11 to the docs.

--
keywords: +patch
Added file: http://bugs.python.org/file40528/Issue24894.patch

___
Python tracker 

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



[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-20 Thread Brett Cannon

Changes by Brett Cannon :


--
dependencies: +regrtest.py improvement for Profile Guided Optimization builds

___
Python tracker 

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



[issue25188] regrtest.py improvement for Profile Guided Optimization builds

2015-09-20 Thread Brett Cannon

Changes by Brett Cannon :


--
nosy: +brett.cannon

___
Python tracker 

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



[issue25145] urllib how-to should be updated to remove PyGoogle

2015-09-20 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1fcdca298be9 by Benjamin Peterson in branch '3.4':
use a more modern UA (#25145)
https://hg.python.org/cpython/rev/1fcdca298be9

New changeset 2efd269b3eb8 by Benjamin Peterson in branch '3.4':
remove reference to PyGoogle (#25145)
https://hg.python.org/cpython/rev/2efd269b3eb8

New changeset 9b7bc13aed4e by Benjamin Peterson in branch '2.7':
remove reference to PyGoogle (#25145)
https://hg.python.org/cpython/rev/9b7bc13aed4e

New changeset 96eff21fc47e by Benjamin Peterson in branch '2.7':
use a more modern UA (#25145)
https://hg.python.org/cpython/rev/96eff21fc47e

New changeset 7f76c7d853be by Benjamin Peterson in branch '3.5':
merge 3.4 (#25145)
https://hg.python.org/cpython/rev/7f76c7d853be

New changeset 54ea36ce6eab by Benjamin Peterson in branch 'default':
merge 3.5 (#25145)
https://hg.python.org/cpython/rev/54ea36ce6eab

--
nosy: +python-dev

___
Python tracker 

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



[issue24894] iso-8859-11 missing from codecs table

2015-09-20 Thread Prashant Tyagi

Prashant Tyagi added the comment:

As it is cleary stated itself into the wipikedia 
https://en.wikipedia.org/wiki/ISO/IEC_8859#The_Parts_of_ISO.2FIEC_8859.

"The work in making a part of 8859 for Devanagari was officially abandoned in 
1997. ISCII and Unicode/ISO/IEC 10646 cover Devanagari."
so actually i dont think it should be a part of 8859_12.
 However 8859_11 is virtually identical to TIS 620 so it might be needed.

--
nosy: +tyagi221295
versions:  -Python 2.7, Python 3.3, Python 3.4, Python 3.6

___
Python tracker 

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



[issue12885] distutils.filelist.findall() fails on broken symlink in Py2.x

2015-09-20 Thread Jason R. Coombs

Jason R. Coombs added the comment:

> Does the patch change the behaviour for the handling of the MANIFEST file 
> (not MANIFEST.in)?  My previous message mentions that the docs say that one 
> can include symlinks in MANIFEST.

This change will not affect the content of MANIFEST.in (template) nor MANIFEST. 
Previously, if a broken symlink was provided, it would raise an error. With the 
patch, under that condition the process will not fail but will instead ignore 
those broken symlinks as if they do not exist (and omit them from MANIFEST).

Non-broken symlinks (those that resolve to directories or files) will continue 
to be treated exactly as if their targets exist in that place. To my knowledge, 
there is no special handling of symlinks (such as with tarfiles that store the 
underlying symbolic link details).

--

___
Python tracker 

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



[issue25189] An issue about os.access

2015-09-20 Thread yangyanbo

yangyanbo added the comment:

Thanks for  eryksun  a lot.
Yes,it did solve my problem.
And Find this Sysnative directory doesnt exsit,And I searched the msdn  then 
find that it is a Windows Mechanism.
All in all ,  it does prove you are right.
Thanks a lot Again

--

___
Python tracker 

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



[issue25146] IDLE debugger could better visualize program execution

2015-09-20 Thread Mark Roseman

Mark Roseman added the comment:

Frighteningly, your wild idea is close to how it actually works now, as per the 
ASCII art at the top of RemoteDebugger.py. :-) 

The authors of RemoteDebugger and rpc.py went to fantastic lengths to make this 
transparent so that everything looks local. If in my previous life I didn't 
develop groupware infrastructure I'd have been screwed trying to follow what 
was actually going on!

If you want to be impressed, turn on debugging in rpc.py (at start of 
RPCHandler class), uncomment the print statements in RemoteDebugger.py, start 
IDLE, open up the debugger, and type "1+1" into the shell.

--

___
Python tracker 

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



[issue23177] test_ssl: failures on OpenBSD with LibreSSL

2015-09-20 Thread Remi Pointel

Remi Pointel added the comment:

Hi,

maybe we should add the LIBRESSL_ information available in opensslv.h (as it 
has be done for OpenSSL):

$ grep LIBRESSL /usr/include/ssl/opensslv.h 
#define LIBRESSL_VERSION_NUMBER 0x2003L
#define LIBRESSL_VERSION_TEXT   "LibreSSL 2.3.0"
#define OPENSSL_VERSION_TEXTLIBRESSL_VERSION_TEXT

What do you think about that?

Remi.

--

___
Python tracker 

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



[issue25194] Register of Financial Interests for core contributors

2015-09-20 Thread Ezio Melotti

Ezio Melotti added the comment:

The "Consultants and Freelance Developers" seems to cover two different aspects:
  1) list devs that are consultants or freelance developers for a living;
  2) list devs that are available and can be hired to work on short term 
projects;

The second aspect seems orthogonal to the rest of the section (I could be 
working as educator/trainer, but also be available for short term projects).

IIUC the main goal here is to disclose who are we working for (if any).  
However, unless I'm misunderstanding, you also want to have a list of core 
developers that might be available to do paid work.  ISTM that this paid work 
could cover at least 3 different categories:
  1) work that won't directly benefit CPython (e.g. a company can hire me as a 
consultant for one of their project);
  2) work that will benefit CPython (e.g. a company can pay me to add an 
approved feature/bugfix to CPython);
  3) work on CPython paid by the PSF (e.g. the PSF can pay me to implement a 
PEP or to work on the infrastructure);

I'm not sure if this was your intention, but if it was, I would put it in a 
separate section.

--

___
Python tracker 

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



[issue22559] [backport] ssl.MemoryBIO

2015-09-20 Thread Nick Coghlan

Nick Coghlan added the comment:

Guido specifically asked for a new PEP for each resync that explicitly 
enumerated the changes being backported, after earlier drafts of PEP 466 
requested blanket future permission for network security related backports.

That approach actually turns out to be better from a documentation and backport 
management perspective - I organised the "New features in maintenance releases" 
section of the Python 2.7 What's New by PEP number, and "we backported PEP 466" 
nicely describes the changes that were backport to RHEL 7.2.

A new PEP for resyncing with Python 3.5 can be a lot simpler than PEP 466 was, 
though - the basic rationale doesn't need to be repeated, and the PEP 466 
backport already brought the implementations much closer together.

--

___
Python tracker 

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



[issue25084] remove semi-busy loop in py2.7 threading.Condition.wait(timeout=x)

2015-09-20 Thread Nick Coghlan

Nick Coghlan added the comment:

+1 - after the further discussion, addressing this downstream as a patch 
specifically to the pthread backend sounds good to me.

--

___
Python tracker 

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



[issue25189] An issue about os.access

2015-09-20 Thread eryksun

eryksun added the comment:

> This looks as a duplicate of issue2528.

No, yangyanbo's problem is unrelated to the file's security descriptor, and 
it's not a bug.

telnet.exe is manually installed via "Programs and Features", which only 
installs a 64-bit version into System32 (despite the 32 in its name, this 
directory has native 64-bit executables). But yangyanbo is running 32-bit 
Python, so accessing "System32" gets redirected to SysWOW64 (despite the 64 in 
its name, this directory has 32-bit executables that run in the "Windows 32-bit 
on Windows 64-bit" system). 

>From a 32-bit app the real System32 directory is available as "SysNative", 
>e.g.:

os.access(r'C:\Windows\SysNative\telnet.exe', os.X_OK)

--
nosy: +eryksun
resolution: duplicate -> not a bug
superseder: Change os.access to check ACLs under Windows -> 

___
Python tracker 

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



[issue25195] mock.ANY doesn't match mock.MagicMock() object

2015-09-20 Thread Felix Yan

Changes by Felix Yan :


--
type:  -> behavior

___
Python tracker 

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



[issue25195] mock.ANY doesn't match mock.MagicMock() object

2015-09-20 Thread Felix Yan

New submission from Felix Yan:

Since Python 3.5.0 mock.MagicMock() object seems not matched by mock.ANY. This 
behavior looks weird and breaks tests of boto.

Minimized example:

In Python 3.4.3:
>>> from unittest import mock
>>> m = mock.MagicMock()
>>> m(mock.MagicMock())

>>> m.assert_called_with(mock.ANY)
>>>

In Python 3.5.0:
>>> from unittest import mock
>>> m = mock.MagicMock()
>>> m(mock.MagicMock())

>>> m.assert_called_with(mock.ANY)
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python3.5/unittest/mock.py", line 792, in assert_called_with
raise AssertionError(_error_message()) from cause
AssertionError: Expected call: mock()
Actual call: mock()

--
components: Library (Lib)
messages: 251162
nosy: felixonmars
priority: normal
severity: normal
status: open
title: mock.ANY doesn't match mock.MagicMock() object
versions: Python 3.5

___
Python tracker 

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



[issue25180] Tools/parser/unparse.py needs to be updated for f-strings

2015-09-20 Thread Eric V. Smith

Eric V. Smith added the comment:

That's awesome, thanks! Definitely simpler than where I was going.

I'm not in front of my dev machine right now, so I can't run it. But if it 
works, it works.

I suggest adding the test cases to test_unparse.py's UnparseTestCase. That way, 
any problems with this are caught earlier. The comment there says "Tests for 
specific bugs found in earlier versions of unparse", which this qualifies for!

--

___
Python tracker 

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



[issue25150] 3.5: Include/pyatomic.h is incompatible with OpenMP (compilation of the third-party yt module fails on Python 3.5)

2015-09-20 Thread STINNER Victor

STINNER Victor added the comment:

Yes my fix will be part of Python 3.5.1 release.

--

___
Python tracker 

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



[issue25079] Tokenize generates NL instead of NEWLINE for comments

2015-09-20 Thread Petr Viktorin

Petr Viktorin added the comment:

As it says in the docs, a "logical line that contains only spaces, tabs, 
formfeeds and possibly a comment, is ignored."

If you write:

if a=b:
statement
# Comment
another statement

both statements belong to the "if" block.
In your example, the comment is similarly part of the "if" block, so the dedent 
comes after it.

--
nosy: +encukou

___
Python tracker 

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



[issue25194] Register of Financial Interests for core contributors

2015-09-20 Thread Nick Coghlan

New submission from Nick Coghlan:

As suggested at 
https://mail.python.org/pipermail/python-committers/2015-September/003556.html, 
this is a draft patch for a new section in the developer guide that allows core 
contributors to declare our major financial interest (if any) in the core 
development process.

In addition to adding a paragraph suggesting new core developers consider 
filling in the register, I also rephrased the section regarding respecting 
people's time to reflect the fact that we're not all volunteers these days.

Based on the discussion in the python-committers thread, I made the disclosure 
of commercial interests potentially impacting Python's design & development the 
main aim of the register, with the creation of a public list of the core 
developers available for contract and consulting work as a positive side 
benefit.

--
assignee: ncoghlan
components: Devguide
files: register-of-interests.diff
keywords: patch
messages: 251158
nosy: ezio.melotti, ncoghlan, willingc
priority: normal
severity: normal
stage: patch review
status: open
title: Register of Financial Interests for core contributors
type: enhancement
Added file: http://bugs.python.org/file40527/register-of-interests.diff

___
Python tracker 

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



[issue25150] 3.5: Include/pyatomic.h is incompatible with OpenMP (compilation of the third-party yt module fails on Python 3.5)

2015-09-20 Thread Alexander Heger

Alexander Heger added the comment:

Dear Victor,

yes, you patch seems to fix the yt install.  Thank you very much!

I hope this can be included in 3.5.1.

Best wishes,
Alexander

--

___
Python tracker 

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



[issue25193] itertools.accumlate should have an optional initializer argument

2015-09-20 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> rhettinger
nosy: +rhettinger
type:  -> enhancement
versions:  -Python 3.3, Python 3.4, Python 3.5

___
Python tracker 

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



[issue25191] test_getsetlocale_issue1813 failed on OpenBSD

2015-09-20 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +lemburg, loewis, serhiy.storchaka

___
Python tracker 

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



[issue25192] deque append and appendleft should return value if maxlen set

2015-09-20 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> rhettinger
nosy: +rhettinger
type:  -> enhancement
versions: +Python 3.6

___
Python tracker 

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



[issue25193] itertools.accumlate should have an optional initializer argument

2015-09-20 Thread Alun Champion

New submission from Alun Champion:

itertools.accumulate should have an initializer with the same semantics as 
functools.reduce.
These two functions are closely related, reduce only providing you the end 
result accumulate providing an iterator over all the intermediate results.
However, if you want all the intermediate results to this reduce:

functools.reduce(operator.mul, range(1, 4), 10)

You currently need to do:

itertools.accumulate(itertools.chain([10], range(1,4), operator.mul)

Adding an optional initialiser argument would avoid this.

--
components: Library (Lib)
messages: 251155
nosy: Alun Champion
priority: normal
severity: normal
status: open
title: itertools.accumlate should have an optional initializer argument
versions: Python 3.3, Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue25192] deque append and appendleft should return value if maxlen set

2015-09-20 Thread Alun Champion

New submission from Alun Champion:

Currently if you append or appendleft when len(deque) == maxlen item from the 
other end of the deque is discarded. These should return the discarded value to 
allow you to write:

x = deque.append(y)

vs

if len(deque) == deque.maxlen():
x = deque.pop()
deque.append(y)

It should return None if len(deque) < maxlen or maxlen is not set.

--
components: Library (Lib)
messages: 251154
nosy: Alun Champion
priority: normal
severity: normal
status: open
title: deque append and appendleft should return value if maxlen set

___
Python tracker 

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



[issue25191] test_getsetlocale_issue1813 failed on OpenBSD

2015-09-20 Thread Remi Pointel

New submission from Remi Pointel:

Hi,

the test test_getsetlocale_issue1813 in ./Lib/test/test_locale.py failed on 
OpenBSD:

==
...sss..testing with ('tr_TR', 'ISO8859-9') Ess
ERROR: test_getsetlocale_issue1813 (__main__.TestMiscellaneous)
--
Traceback (most recent call last):
  File "./Lib/test/test_locale.py.orig", line 515, in 
test_getsetlocale_issue1813
locale.setlocale(locale.LC_CTYPE, loc)
  File "/usr/ports/pobj/Python-3.5.0/Python-3.5.0/Lib/locale.py", line 595, in 
setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting

--
Ran 38 tests in 0.040s

FAILED (errors=1, skipped=5)

The first setlocale(locale.LC_CTYPE, 'tr_TR') works fine, but loc = 
locale.getlocale(locale.LC_CTYPE) then locale.setlocale(locale.LC_CTYPE, loc) 
does not work.

Attached is a patch to skip the second part if it does not work, is it correct?

Thanks,

Remi.

--
components: Library (Lib), Tests
files: patch-Lib_test_test_locale_py
messages: 251153
nosy: rpointel
priority: normal
severity: normal
status: open
title: test_getsetlocale_issue1813 failed on OpenBSD
versions: Python 3.5
Added file: http://bugs.python.org/file40526/patch-Lib_test_test_locale_py

___
Python tracker 

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