[issue10839] email module should not allow some header field repetitions

2016-06-12 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

On Jun 12, 2016, at 09:19 PM, Raymond Hettinger wrote:

>Would you consider raising an exception at least for the case of a "To:"
>header or perhaps a warning or someother failsafe.

No, not for compat32 policy.  Seriously, I do not want to change the semantics
or syntax for existing code.  This API predates even the renaming and
stdlibbing of the email package from the older mimelib.

By all means, let's develop API alternatives for new code, or stricter RFC
compliance with defect registration for newer policies.  But please leave
things alone for compat32 and existing code.

--

___
Python tracker 

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



[issue10839] email module should not allow some header field repetitions

2016-06-12 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

On Jun 13, 2016, at 12:09 AM, Martin Panter wrote:

>I think I would support deprecating the __setitem__() etc methods, perhaps
>with a cleanup of the alternatives, e.g. add remove_all(). Also,
>__getitem__() is equivalent to get(), which does not raise KeyError. Although
>according to Issue 12111, David said things are unlikely to change.

I do not support deprecating __setitem__().  I'm okay with developing an
alternative API, but setitem syntax is just too pervasive and convenient.
It's been there since the very earliest days of mimelib (the precursor to the
email package).  If you read and understand the docs, you know exactly what
the semantics are and you know how to use it effectively and safely.

--

___
Python tracker 

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



[issue27163] IDLE entry for What's New in Python 3.6

2016-06-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a3cffed2c9ad by Terry Jan Reedy in branch 'default':
Issue #27163: Add idlelib/IDLE entry to What's New in 3.6.
https://hg.python.org/cpython/rev/a3cffed2c9ad

--
nosy: +python-dev

___
Python tracker 

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



[issue22558] Missing doc links to source code for Python-coded modules.

2016-06-12 Thread Yoni Lavi

Yoni Lavi added the comment:

Created issue 27304 and uploaded a patch.

--

___
Python tracker 

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



[issue27304] Create "Source Code" links in module sections, where relevant

2016-06-12 Thread Yoni Lavi

New submission from Yoni Lavi:

This is a follow to #22558.

As per Terry's suggestion in #22558, for packages with multiple modules that 
are all documented on the same page and that currently have a "Source Code" 
link to an __init__ file (e.g. importlib), we should also add more specific 
"Source Code" links to the module sections.

Attached is a patch for the documentation of the 3 such packages that I found: 
importlib, dbm and json

--
assignee: docs@python
components: Documentation
files: mywork.patch
keywords: patch
messages: 268417
nosy: Yoni Lavi, docs@python, terry.reedy
priority: normal
severity: normal
status: open
title: Create "Source Code" links in module sections, where relevant
versions: Python 3.5, Python 3.6
Added file: http://bugs.python.org/file43369/mywork.patch

___
Python tracker 

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



[issue27303] [argparse] Unify options in help output

2016-06-12 Thread Memeplex

Memeplex added the comment:

Thank you for the tips, Paul. The issue is related to the default behavior but 
it's always good to know about handy workarounds and extensibility hooks.

--

___
Python tracker 

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



[issue27186] add os.fspath()

2016-06-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f384c5c14488 by Martin Panter in branch 'default':
Issue #27186: Skip scandir(bytes) test with os.name == "nt"
https://hg.python.org/cpython/rev/f384c5c14488

--

___
Python tracker 

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



[issue27186] add os.fspath()

2016-06-12 Thread Martin Panter

Martin Panter added the comment:

Should the skip logic perhaps check for sys.platform == "win32" instead? The 
buildbots are still failing.

--

___
Python tracker 

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



[issue26292] Raw I/O writelines() broken for non-blocking I/O

2016-06-12 Thread Martin Panter

Martin Panter added the comment:

Victor, why did you change the title to specify non-blocking mode? I think 
blocking mode can also be handled at the same time.

I propose:

1. In existing versions (2.7, 3.5): Document that it is undefined what 
IOBase.writelines() will do if a write() call does a partial write, returns 
None, or encounters a blocking error. Explicitly document that 
BufferedIOBase.writelines() and TextIOBase.writelines() will completely write 
all the data passed, or raise an exception. Document that 
BlockingIOError.characters_written is undefined even for 
BufferedIOBase.writelines().

2. Commit my Issue 26721 change to socketserver, so that 
StreamRequestHandler.wfile implements BufferedIOBase instead of RawIOBase.

3. In a new version (3.6): Deprecate IOBase.writelines() and thus 
RawIOBase.writelines(), in favour of either using BufferedIOBase, or manually 
calling write(). Emit a DeprecationWarning, but add BufferedIOBase and 
TextIOBase implementations that do not emit the warning.

BufferedIOBase.writelines() could be fixed to report the correct 
BlockingIOError.characters_written value, but that could be handled as a 
separate bug if anyone cares.

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



[issue25476] close() behavior on non-blocking BufferedIO objects with sockets

2016-06-12 Thread Martin Panter

Martin Panter added the comment:

I propose to reject this. Close() should always close the underlying file 
descriptor or socket, even if there is a blocking error or other exception.

--
resolution:  -> rejected
status: open -> pending

___
Python tracker 

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



[issue27303] [argparse] Unify options in help output

2016-06-12 Thread paul j3

paul j3 added the comment:

http://stackoverflow.com/questions/18275023/dont-show-long-options-twice-in-print-help-from-argparse

Once answer demonstrates how to change the Formatter:

class CustomHelpFormatter(argparse.HelpFormatter):
def _format_action_invocation(self, action):
if not action.option_strings or action.nargs == 0:
return super()._format_action_invocation(action)
default = self._get_default_metavar_for_optional(action)
args_string = self._format_args(action, default)
return ', '.join(action.option_strings) + ' ' + args_string

Another answer suggests using metavar=''.

Another SO question with a few more links:

http://stackoverflow.com/questions/23936145/python-argparse-help-message-disable-metavar-for-short-options

--

___
Python tracker 

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



[issue27024] IDLE shutdown glitch when started by import

2016-06-12 Thread Mark Roseman

Mark Roseman added the comment:

tried this patch on 3.6 as per terry's previous msg; still getting same error 
in idle test suite on os x

--
nosy: +markroseman

___
Python tracker 

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



[issue10839] email module should not allow some header field repetitions

2016-06-12 Thread Martin Panter

Martin Panter added the comment:

There are already the makings of an alternative API:

https://docs.python.org/3.6/library/email.message.html#email.message.Message.add_header

There is also replace_header(), but it only replaces the _first_ header field, 
and leaves later ones untouched. However there is only __del__(), which deletes 
all matching header fields; there is no remove_header() or similar.

I think I would support deprecating the __setitem__() etc methods, perhaps with 
a cleanup of the alternatives, e.g. add remove_all(). Also, __getitem__() is 
equivalent to get(), which does not raise KeyError. Although according to Issue 
12111, David said things are unlikely to change.

--
nosy: +martin.panter

___
Python tracker 

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



[issue24363] httplib fails to handle semivalid HTTP headers

2016-06-12 Thread Martin Panter

Martin Panter added the comment:

See also Issue 26686; the same problem, but with parsing RFC5322 header fields, 
rather than HTTP.

--

___
Python tracker 

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



[issue27024] IDLE shutdown glitch when started by import

2016-06-12 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I applied to 2.7 after changing the file name.  I still get
F:\Python\dev\27>pcbuild\python_d.exe -m test.regrtest -ugui test_idle
[1/1] test_idle
can't invoke "event" command:  application has been destroyed
while executing
"event generate $w <>"
(procedure "ttk::ThemeChanged" line 6)
invoked from within
"ttk::ThemeChanged"
can't invoke "event" command:  application has been destroyed
while executing
"event generate $w <>"
(procedure "ttk::ThemeChanged" line 6)
invoked from within
"ttk::ThemeChanged"

This is the only instance left in all three versions after using 
root.update_idletasks where needed.  It does not occur when running the 
particular test file by itself.  Mark Roseman say something similar running 
test.test_idle with 3.6 on Mac.  I do not running same on Windows.

--

___
Python tracker 

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



[issue27025] More human readable generated widget names

2016-06-12 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I apologize for my mistake, but it is not of much relevance. My preference is 
based on my subjective reactions on reading both variations. I used tknames.py, 
which outputs < 20 names, rather than the code that output > 200 names, because 
the former seems more realistic and makes it easier to focus on reading one 
path.

The intellectual justifications and explanations came after and are subsidiary. 
 If you put yourself in the position of a naive user, do you really prefer 
reading 'zero toplevel zero frame zero button' or 'one toplevel one frame one 
button'?  If you prefer the former, then we are simply different and will not 
agree.

However, I would like to revisit the criteria for a generated name.  Currently, 
widget names are nearly undocumented, and I don't know of any doc for the 
'name=' option.  Our tkinter doc only discusses pathnames in the tcl/tk 
section, which nearly everyone will skip.  Even there, there is no mention that 
"button .fred -bg 'red'" translates to "Button(master, name='fred', bg='red')". 
 The translation obliterates the distinction between 'name' being required and 
write-once versus 'bg' being optional and rewritable.  In docstrings, 'name' is 
not listed in Valid resource names, because it is not one.  In help(widget), 
the pathname only appears in the listing of __str__, nametowidget, and maybe a 
few other places.

There is no mention of how tkinter generates the required unique name or that 
it even does so.  The Lundh Tkinterbook makes no mentions of names that I could 
find.  The Shipman NMU Reference says that name components *are* .n, where n is 
a stringified int and never mentions, that I could find, the 'name' option to 
make it otherwise.

The use of 'name=' seems correspondingly rare.  IDLE names 4 Scrollbars (out of 
about twice as many) 'vbar' or 'hbar'.  It names just a few Menus.  In my 
reading of stackoverflow tkinter questions, 'name=' is rare there also.  To me, 
the near absence of name documentation and use gives us latitude in what 
alternative we pick.

I understand the name clash problem.  For a given master, a person might create 
a widget with no name and later create a widget of the same class with a name.  
The generated name for the first widget, *whatever it is*, might clash with the 
later name.*  The only way to eliminate all clashes is to check all explicit 
names.  Join the name to the master name and try to use it in the cheapest way 
possible, perhaps 'pathname.children'.   If this raises tclerror 'name not 
recognized'  (or whatever the message is), use the name.  If this succeeds, the 
name would clash, so raise name clash error.

*The virtue of injecting id(python_widget) after the widget is created is that 
a user could only calculate the same number before creation with detailed 
knowledge of id creation.  On CPython, this is tricky, though on other systems, 
I believe it could just be as simple as id(last widget)+1.

If there is no null value for a default argument, then the most likely explicit 
argument is a good choice.  For name, that might be the class name or a 
lower-cased version thereof, possibly suffixed.  The *only* reason to not use 
that is if clashes with rare but possible future explicit names are deemed too 
likely.  Ugly, by itself, is bad.  A number prefix is not required.  For other 
prefixes that would reduce clash possibility, I tried:

>>> for c in "01'|+-*&^%$#@!~` ":
print(".%stoplevel.%sframe.%sbutton" % (c, c, c))

.0toplevel.0frame.0button
.1toplevel.1frame.1button
.'toplevel.'frame.'button
.|toplevel.|frame.|button
.+toplevel.+frame.+button
.-toplevel.-frame.-button
.*toplevel.*frame.*button
.
.^toplevel.^frame.^button
.%toplevel.%frame.%button
.$toplevel.$frame.$button
.#toplevel.#frame.#button
.@toplevel.@frame.@button
.!toplevel.!frame.!button
.~toplevel.~frame.~button
.`toplevel.`frame.`button
. toplevel. frame. button

I like ` best (unobtrusive and meaningless), ^ second.

--

___
Python tracker 

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



[issue27303] [argparse] Unify options in help output

2016-06-12 Thread paul j3

paul j3 added the comment:

There are 2 issues here - 

- how to make the 'choices' list most compact

- how to make the multiple option strings display (long and short) more 
compact, regardless of why the argument part is long.

When the choices display is too long, 'metavar' is a handy alternative.  You 
can still display the choices in the body of the help message, either as an 
explicit list or with the `%(choices)s` string.  The long choices list will 
still appear in the error messages.

There are other bug/issues about formatting the choices list.

I have participated in discussions about replacing

-f FOO, --foo FOO etc 

with

-f/--foo FOO etc

I'm sure that's been raised on Stackoverflow, but there might also be a 
bug/issue on the topic.  I'd have to do some search to find those.  I believe 
it can addressed with a HelpFormatter subclass that changes one method.

--
nosy: +paul.j3

___
Python tracker 

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



[issue27136] sock_connect fails for bluetooth (and probably others)

2016-06-12 Thread A. Jesse Jiryu Davis

A. Jesse Jiryu Davis added the comment:

Thanks, I'm not a core dev or I'd try it myself.

Yury, do you think that's a good approach, or should I mock getaddrinfo for 
that test? I fear mocking out too much and accidentally not testing anything, 
or of making tests that someone *else* could accidentally change so they don't 
test anything.

--

___
Python tracker 

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



[issue10839] email module should not allow some header field repetitions

2016-06-12 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Would you consider raising an exception at least for the case of a "To:" header 
or perhaps a warning or someother failsafe.

Using __setitem__ for appending instead of replacement is surprising and in the 
case of LetsEncrypt was a small disaster.   There is a docstring explaining 
what is going on but that typically isn't visible to the user of the square 
brackets operator.

For Python3.6, I think there should be an alternative API that doesn't use the 
square brackets operator:   add_header, replace_header, remove_header or 
somesuch.  The problem is that square brackets never suggests appending which 
is what is actually happening.

--

___
Python tracker 

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



[issue20674] Update comments in dictobject.c

2016-06-12 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Christian, I assigned to you because I thought you had done the SIPhash work 
that invalidated these comments.   Do you know who the right person is?

--

___
Python tracker 

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



[issue26439] ctypes.util.find_library fails when ldconfig/glibc not available (e.g., AIX)

2016-06-12 Thread aixtools

aixtools added the comment:

On 6/12/2016 11:41 AM, Martin Panter wrote:
> .
> Michael, how are you supposed to apply your latest patch? I have Gnu Patch 
> 2.7.5, but even in the best case it doesn’t find the files to patch:
>
> $ patch -p1 -n < python.Lib.ctypes.160608.patch
> can't find file to patch at input line 2
> The text leading up to this was:
> --
> |diff -r Python-2.7.11/Lib/ctypes/__init__.py 
> python-2.7.11.5/Lib/ctypes/__init__.py
> --
I must have forgotten the u (-r rather than -ru) (read mistyped, as I 
"always" use the -u option)
> Perhaps can you make a “unified” diff (-u option) like you did in your 
> previous patches? Whatever you did with Python3.issue26439.160511.patch 
> seemed to work best.
Will redo all of them in about 24 hours.
> Also, since your patches add new functionality (the automatic archive member 
> detection), they will have to be for Python 3, not 2.

Well, let me know what needs to be deleted - I see the member detection 
as the equivalent of reading the output of "ldconfig -p" to search for 
where an archive might be, or compareable with the gcc command (forgot 
the options) to say where it is looking.

Not going into Python2 misses the whole point from my perspective.

Unfortunate (for my perspective) is that noone else is saying anything 
one way or the other.

--

___
Python tracker 

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



[issue18369] X509 cert class for ssl module

2016-06-12 Thread Mark Lawrence

Changes by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

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



[issue12623] "universal newlines" subprocess support broken with select- and poll-based communicate()

2016-06-12 Thread Mark Lawrence

Changes by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

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



[issue27303] [argparse] Unify options in help output

2016-06-12 Thread SilentGhost

Changes by SilentGhost :


--
versions: +Python 3.6 -Python 3.5

___
Python tracker 

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



[issue27303] [argparse] Unify options in help output

2016-06-12 Thread Memeplex

Changes by Memeplex :


--
type:  -> enhancement

___
Python tracker 

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



[issue27186] add os.fspath()

2016-06-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1ccd6196115a by Brett Cannon in branch 'default':
Issue #27186: add Include/osmodule.h to the proper build rules
https://hg.python.org/cpython/rev/1ccd6196115a

--

___
Python tracker 

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



[issue27303] [argparse] Unify options in help output

2016-06-12 Thread Memeplex

New submission from Memeplex:

Currently when you specify more than one name for an option (typically short 
and long versions) each name is listed with its entire arg list. This is 
annoying for options taking many args or choices, for example:
 
  --type {html,pdf,github,blogger}, -t {html,pdf,github,blogger}

Wouldn't it be better to just show something like:

  --type|-t {html,pdf,github,blogger}

--
components: Library (Lib)
messages: 268400
nosy: bethard, memeplex
priority: normal
severity: normal
status: open
title: [argparse] Unify options in help output
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



[issue27262] IDLE: move Aqua context menu code to maxosx

2016-06-12 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Changeset d8a2b6efdd4a, #27239, adds a test of setupApp in test_macosx that 
fails on any system, in particular mine, when Ned's fix is undone.

--
resolution:  -> fixed
stage: test needed -> 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



[issue27239] Make idlelib.macosx self-contained.

2016-06-12 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Remove the now unneeded call in htest to _init_tk_type.  It was tempting to 
leave the call for the 'efficiency' of the direct call with the available root, 
but there is a mental efficiency in removing it and making _init_tk_type 
completely an internal implementation detail of macosx.

Remove the unneeded call in macosx.setupApp.  This makes the _init_tk_type 
local to its section of the module.  It also allows a test to set _tk_type to 
simulate being on a particular type of Mac and call setupApp without having the 
setting overwritten by the real value. Test_macosx now calls setupApp with each 
_tk_type set to each possible non-None value.

The same objective could have been met by conditioning the call with 'if 
_tk_type is  None:', but removing the call means that _init_tk_type is no 
longer ever called with a root, so the parameter can be removed and the 
function simplified.  This section of macosx now takes care of initializing 
itself and the rest of IDLE can simply call the isTypeTk functions without 
worrying about initialization.

Have macosx call its test when run as main.

--

___
Python tracker 

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



[issue27239] Make idlelib.macosx self-contained.

2016-06-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d8a2b6efdd4a by Terry Jan Reedy in branch 'default':
Issue #27239: Continue refactoring idlelib.macosx and adding macosx tests.
https://hg.python.org/cpython/rev/d8a2b6efdd4a

--

___
Python tracker 

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



[issue27300] tempfile.TemporaryFile(): missing errors=... argument

2016-06-12 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



[issue27025] More human readable generated widget names

2016-06-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Generated names are in lower case.

--

___
Python tracker 

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



[issue27186] add os.fspath()

2016-06-12 Thread Brett Cannon

Brett Cannon added the comment:

Thanks for the notice, Martin!

--

___
Python tracker 

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



[issue27186] add os.fspath()

2016-06-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6a35aa1995ab by Brett Cannon in branch 'default':
Issue #27186: skip bytes path test for os.scandir() on Windows
https://hg.python.org/cpython/rev/6a35aa1995ab

--

___
Python tracker 

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



[issue27025] More human readable generated widget names

2016-06-12 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I based my opinion on trying to actually read and understand the output of 
tknames.py, with your patch done both ways, in a way that I would do in use.  
Since class names always begin with upper case, it did not occur to me to read 
'1' as anything other than 'one'.  '0' is just as easily confused with 'O'.

In both cases, the resemblance depends on the font.  For the Lucida Console I 
use for IDLE, there is no internal marker dot or bar and O0 only differ 
slightly in shape.  In a mixed digits and caps string like '' I might have to 
type the two to be sure which is which.  On the other hand 1l are much more 
different, as 1 has a rather long horizontal serif while l has none.  Neither 
comments are true in the fixed font (Courier?) I see now in Firefox.

The semantic clash problem, which is the bigger problem for me, may be stronger 
for me as a native speaker.  I read '0Frame' and '1Frame' as 'zero Frame' and 
'one Frame', not as arbitrary character sequences.  Being able to switch to 
semantic reading is the point of this issue.

--

___
Python tracker 

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



[issue27302] csv.Sniffer guesses wrong when unquoted fields contain quotes

2016-06-12 Thread Redoute

New submission from Redoute:

When delimited text fields are not quoted, but embedded text contains some 
quoted words, sniff() will guess the wrong delimiter. The attached script 
contains a simple tab-delimited text where sniff() detects space as delimiter.

--
components: Library (Lib)
files: humptydumpty.py
messages: 268391
nosy: Redoute
priority: normal
severity: normal
status: open
title: csv.Sniffer guesses wrong when unquoted fields contain quotes
type: behavior
versions: Python 3.6
Added file: http://bugs.python.org/file43368/humptydumpty.py

___
Python tracker 

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



[issue27301] Incorrect return codes in compile.c

2016-06-12 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
keywords: +patch
Added file: http://bugs.python.org/file43367/compile_rc-3.6.patch

___
Python tracker 

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



[issue27301] Incorrect return codes in compile.c

2016-06-12 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Macros ADDOP, ADDOP_I, ADDOP_O, etc are used in Python/compile.c for emitting 
instructions. They make functions where they are used returning 0 on error. But 
some functions return -1 on error and non-negative integer on success. 0 is 
legitimate value. In case of error in the ADDOP* macro, the error is not 
correctly detected in the outer function.

Here is a patch that fixes this issue in 3.6. 3.5 and 2.7 need different 
patches.

--
assignee: serhiy.storchaka
components: Interpreter Core
messages: 268390
nosy: Demur Rumed, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Incorrect return codes in compile.c
type: behavior
versions: Python 2.7, 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



[issue27095] Simplify MAKE_FUNCTION

2016-06-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Pushed with minor changes. Thank you for your contribution Demur!

You change to the documentation of EXTENDED_ARG isn't pushed. I would prefer to 
see it as a part of larger documentation patch in issue26647.

After pushing I found a bug (similar bug was existing) in compile.c. I'll open 
separate issue for this.

--
assignee:  -> serhiy.storchaka
dependencies:  -ceval: use Wordcode, 16-bit bytecode
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



[issue27095] Simplify MAKE_FUNCTION

2016-06-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8a0fe3481c91 by Serhiy Storchaka in branch 'default':
Issue #27095: Simplified MAKE_FUNCTION and removed MAKE_CLOSURE opcodes.
https://hg.python.org/cpython/rev/8a0fe3481c91

--
nosy: +python-dev

___
Python tracker 

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



[issue9625] argparse: Problem with defaults for variable nargs when using choices

2016-06-12 Thread Berker Peksag

Changes by Berker Peksag :


--
nosy: +berker.peksag
stage: needs patch -> patch review
versions: +Python 3.5, Python 3.6 -Python 3.2

___
Python tracker 

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



[issue27227] argparse fails to parse [] when using choices and nargs='*'

2016-06-12 Thread Berker Peksag

Berker Peksag added the comment:

Looking at this again, I think we should fix this in issue 9625.

--
resolution:  -> duplicate
stage: needs patch -> resolved
status: open -> closed
superseder:  -> argparse: Problem with defaults for variable nargs when using 
choices

___
Python tracker 

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



[issue26721] Avoid socketserver.StreamRequestHandler.wfile doing partial writes

2016-06-12 Thread Martin Panter

Martin Panter added the comment:

Forgot to remove the workaround added to 3.5 for wsgiref in Issue 24291

--
Added file: http://bugs.python.org/file43366/buffered-wfile.v4.patch

___
Python tracker 

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



[issue10839] email module should not allow some header field repetitions

2016-06-12 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

On Jun 11, 2016, at 09:25 PM, Raymond Hettinger wrote:

>I think we should consider this as an API design bug and backport the fix.

No, it's deliberate, required, and expected in some cases as RDM explains.
Certainly for compat32 policy, this can't change.

Other policies can prevent multiple additions of some headers.  Probably those
would go in defects if you parsed a message with prohibited duplicates.

--

___
Python tracker 

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



[issue26721] Avoid socketserver.StreamRequestHandler.wfile doing partial writes

2016-06-12 Thread Martin Panter

Martin Panter added the comment:

Merged with current code, and migrated the interrupted-write test from 
test_wsgiref into test_socketserver.

--
Added file: http://bugs.python.org/file43365/buffered-wfile.v3.patch

___
Python tracker 

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



[issue27136] sock_connect fails for bluetooth (and probably others)

2016-06-12 Thread Martin Panter

Martin Panter added the comment:

Okay changing to ::1 might have a decent chance of success. If nobody else 
comes forward, I can try committing it and see if it fixes the buildbot.

--

___
Python tracker 

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



[issue15657] Error in Python 3 docs for PyMethodDef

2016-06-12 Thread Berker Peksag

Berker Peksag added the comment:

> Then change the value of METH_KEYWORDS from 0x0002 to 0x0003 in 3.6.

Here is a patch.

--
Added file: http://bugs.python.org/file43364/issue15657_36.diff

___
Python tracker 

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



[issue27254] UAF in Tkinter module

2016-06-12 Thread Emin Ghuliev

Changes by Emin Ghuliev :


--
title: heap overflow in Tkinter module -> UAF in Tkinter module

___
Python tracker 

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



[issue27136] sock_connect fails for bluetooth (and probably others)

2016-06-12 Thread A. Jesse Jiryu Davis

A. Jesse Jiryu Davis added the comment:

Thanks Martin. That test verifies behavior that I observe in Mac OS 10.10 and 
other modern platforms:

>>> socket.getaddrinfo('::2', 80, socket.AF_INET6, socket.SOCK_STREAM, 
>>> socket.IPPROTO_TCP)
[(30, 1, 6, '', ('::0.0.0.2', 80, 0, 0))]

Investigating, I wrote a C program to call getaddrinfo on my Mac OS X Tiger x86 
virtual machine, and indeed it resolves "::2" with family AF_INET6 in "hints" 
as an IPv4 address, "0.0.0.2". However, the same setup resolves "::1" as an 
IPv6 address, "::1".

Someone who knows more about IPv6 than I might guess the cause?

In any case, I wonder if replacing "::2" with "::1" at 
test_base_events.py:1188, and replacing the regex '::(0\.)*2' with '::(0\.)*1' 
at line 1195 would fix the test for Tiger.

Could you try that please? I'm having trouble compiling Python for Tiger so I 
don't know how to test it on my virtual machine.

--

___
Python tracker 

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



[issue15657] Error in Python 3 docs for PyMethodDef

2016-06-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f520ae3b537b by Berker Peksag in branch '2.7':
Issue #15657: Delete incorrect statement from PyMethodDef documentation
https://hg.python.org/cpython/rev/f520ae3b537b

--

___
Python tracker 

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



[issue15657] Error in Python 3 docs for PyMethodDef

2016-06-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 367b3f41710a by Berker Peksag in branch '3.5':
Issue #15657: Delete incorrect statement from PyMethodDef documentation
https://hg.python.org/cpython/rev/367b3f41710a

New changeset 7fa4986d8218 by Berker Peksag in branch 'default':
Issue #15657: Null merge from 3.5
https://hg.python.org/cpython/rev/7fa4986d8218

--
nosy: +python-dev

___
Python tracker 

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



[issue20916] ssl.enum_certificates() will not return all certificates trusted by Windows

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
nosy:  -christian.heimes

___
Python tracker 

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



[issue26862] android: SYS_getdents64 does not need to be defined on android API 21

2016-06-12 Thread Stefan Krah

Stefan Krah added the comment:

posixmodule_3.patch looks good to me. Gregory has already approved the 
approach, so I think you can go ahead and commit this.

--

___
Python tracker 

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



[issue27095] Simplify MAKE_FUNCTION

2016-06-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Regenerated for review.

--
Added file: http://bugs.python.org/file43363/mkfu5.patch

___
Python tracker 

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



[issue27289] test_ftp_timeout fails with EOFError

2016-06-12 Thread Berker Peksag

Changes by 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



[issue27289] test_ftp_timeout fails with EOFError

2016-06-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2e3a5770e5f6 by Berker Peksag in branch '3.5':
Issue #27289: Prevent test_urllib2net failures due to EOFError raised by ftplib
https://hg.python.org/cpython/rev/2e3a5770e5f6

New changeset fc0e8c7235f1 by Berker Peksag in branch 'default':
Issue #27289: Merge from 3.5
https://hg.python.org/cpython/rev/fc0e8c7235f1

--
nosy: +python-dev

___
Python tracker 

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



[issue20916] ssl.enum_certificates() will not return all certificates trusted by Windows

2016-06-12 Thread ppperry

Changes by ppperry :


--
components: +Windows
nosy: +paul.moore, tim.golden, zach.ware

___
Python tracker 

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



[issue27095] Simplify MAKE_FUNCTION

2016-06-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Yes, this is why I wanted first push the patch with BUILD_CONST_KEY_MAP.

--

___
Python tracker 

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



[issue16182] readline: Wrong tab completion scope indices in Unicode terminals

2016-06-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

LGTM.

But the test fails with PYTHONIOENCODING=ascii.

$ PYTHONIOENCODING=ascii ./python -m test test_readline
Run tests sequentially
0:00:00 [1/1] test_readline
test test_readline failed -- Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_readline.py", line 194, in 
test_nonascii
self.assertIn(b"result " + expected + b"\r\n", output)
AssertionError: b"result '[\\xefnserted]|t\\xebxt[after]'\r\n" not found in 
bytearray(b'^A^B^B^B^B^B^B^B\t\tx\t\r\n[\xc3\xafnserted]|t\xc3\xab[after]\x08\x08\x08\x08\x08\x08\x08text
 \'t\\xeb\'\r\nline \'[\\xefnserted]|t\\xeb[after]\'\r\nindexes 11 
13\r\n\x07text \'t\\xeb\'\r\nline \'[\\xefnserted]|t\\xeb[after]\'\r\nindexes 
11 13\r\nsubstitution \'t\\xeb\'\r\nmatches [\'t\\xebnt\', 
\'t\\xebxt\']\r\nx[after]\x08\x08\x08\x08\x08\x08\x08t[after]\x08\x08\x08\x08\x08\x08\x08\r\nTraceback
 (most recent call last):\r\n  File "", line 39, in 
\r\nUnicodeDecodeError: \'ascii\' codec can\'t decode byte 0xc3 in 
position 1: ordinal not in range(128)\r\n')

This is minor problem, since buildbots rarely configured with 
PYTHONIOENCODING=ascii.

--

___
Python tracker 

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



[issue27095] Simplify MAKE_FUNCTION

2016-06-12 Thread Demur Rumed

Demur Rumed added the comment:

Kind of amusing how visit_argannoation logic went full circle. Makes sense 
considering pre-mkfu patch the ABI was quite similar on that front

--
Added file: http://bugs.python.org/file43362/mkfu5.patch

___
Python tracker 

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



[issue25455] Some repr implementations don't check for self-referential structures

2016-06-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0323b33894f2 by Serhiy Storchaka in branch '3.5':
Issue #25455: Clean up reference loops created in tests for recursive
https://hg.python.org/cpython/rev/0323b33894f2

New changeset 688edc946ab9 by Serhiy Storchaka in branch '2.7':
Issue #25455: Clean up reference loops created in tests for recursive
https://hg.python.org/cpython/rev/688edc946ab9

New changeset 818a10534e44 by Serhiy Storchaka in branch 'default':
Issue #25455: Clean up reference loops created in tests for recursive
https://hg.python.org/cpython/rev/818a10534e44

--

___
Python tracker 

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



[issue25455] Some repr implementations don't check for self-referential structures

2016-06-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Indeed, tests for recursive partial objects create reference loops and don't 
clean them. Thank you Berker. I'll fix this.

--

___
Python tracker 

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



[issue27295] heaps library does not have support for max heap

2016-06-12 Thread James Lu

James Lu added the comment:

It's not  a very pythoniic way to simply negate the value. Plus, the
majority of heap users want performance (heap was made for speed), so a C
version would be much better.

On Sat, Jun 11, 2016 at 4:39 PM, Raymond Hettinger 
wrote:

>
> Raymond Hettinger added the comment:
>
> Sorry James, we don't grow the APIs without sufficient demonstrated need;
> otherwise, we end-up with API sprawl.  People with actual use cases haven't
> requested behavior (and the occasional one-off gets by negating the numeric
> argument).  That is why the maxheap functions were intentionally made
> private.
>
> FWIW, this module is very old and the core functions have long proven
> themselves sufficient to meet their use cases (like being used in an event
> loop to efficiently select the next scheduled event).
>
> --
> resolution:  -> rejected
> status: open -> closed
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue17239] XML vulnerabilities in Python

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
nosy:  -christian.heimes

___
Python tracker 

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



[issue17239] XML vulnerabilities in Python

2016-06-12 Thread Martin Panter

Changes by Martin Panter :


--
dependencies: +Avoid entity expansion attacks in Element Tree, xml.sax and 
xml.dom fetch DTDs by default

___
Python tracker 

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



[issue24869] shlex lineno inaccurate with certain inputs

2016-06-12 Thread Christopher Hoadley

Christopher Hoadley added the comment:

This problem makes it impossible to use shlex to parse commands where a newline 
is intended to separate commands.
 
In the attached sample script, I created two input strings with the same tokens 
in the same order: the only difference is newlines and spaces. In the first 
string, each token is on its own line, and in the second string the first 2 
tokens are on the same line, and the third is on its own.
 
If you look at the lineno association with each token, it is identical between 
the two strings.  But, the two strings have completely different meanings! I 
have no way to distinguish the behavior.
 
If I want to use the feature of shlex where it will automatically include other 
command files, then I can't just sanitize the input before sending it on.
 
As it is, the only way that I can see that I can use shlex is if my command 
language uses some other symbol (i.e. ";") as a command line separator.  Since 
I am defining my own command language, I can do that, but it adds needless 
complication for the users.

--
nosy: +hoadlck
versions: +Python 3.5 -Python 3.4
Added file: http://bugs.python.org/file43361/ambigious_shlex.py

___
Python tracker 

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



[issue25455] Some repr implementations don't check for self-referential structures

2016-06-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7859742826b2 by Serhiy Storchaka in branch '2.7':
Issue #25455: Backported tests for pickling recursive functools.partial objects.
https://hg.python.org/cpython/rev/7859742826b2

--

___
Python tracker 

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



[issue25455] Some repr implementations don't check for self-referential structures

2016-06-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The patch for io classes needed an update.

--
Added file: http://bugs.python.org/file43360/io_recursive_repr2.patch

___
Python tracker 

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



[issue27289] test_ftp_timeout fails with EOFError

2016-06-12 Thread Berker Peksag

Berker Peksag added the comment:

Just saw this again: 
http://buildbot.python.org/all/builders/x86-64%20Ubuntu%2015.10%20Skylake%20CPU%203.5/builds/543/steps/test/logs/stdio

--

___
Python tracker 

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



[issue25455] Some repr implementations don't check for self-referential structures

2016-06-12 Thread Berker Peksag

Berker Peksag added the comment:

I'm not sure if 17e78918f608 is relevant but test_gc is failing on several 
buildbots:

* http://buildbot.python.org/all/builders/PPC64%20Fedora%203.5/builds/716
  
http://buildbot.python.org/all/builders/PPC64%20Fedora%203.5/builds/716/steps/test/logs/stdio

* http://buildbot.python.org/all/builders/s390x%20RHEL%203.5/builds/775
  
http://buildbot.python.org/all/builders/s390x%20RHEL%203.5/builds/775/steps/test/logs/stdio

--
nosy: +berker.peksag

___
Python tracker 

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



[issue27297] Add support for /dev/random to "secrets"

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
nosy:  -christian.heimes

___
Python tracker 

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



[issue26826] Expose new copy_file_range() syscall in os module.

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
nosy:  -christian.heimes

___
Python tracker 

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



[issue27250] Add os.urandom_block()

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
nosy:  -christian.heimes

___
Python tracker 

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



[issue27272] random.Random should not read 2500 bytes from urandom

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
nosy:  -christian.heimes

___
Python tracker 

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



[issue27266] Always use getrandom() in os.random() on Linux and add block=False parameter to os.urandom()

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
nosy:  -christian.heimes

___
Python tracker 

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



[issue27279] Add random.cryptorandom() and random.pseudorandom, deprecate os.urandom()

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
nosy:  -christian.heimes

___
Python tracker 

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



[issue27293] Summarize issues related to urandom, getrandom etc in secrets documentation

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
nosy:  -christian.heimes

___
Python tracker 

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



[issue27292] Warn users that os.urandom() can return insecure values

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
nosy:  -christian.heimes

___
Python tracker 

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



[issue26867] test_ssl test_options fails on ubuntu 16.04

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
nosy:  -christian.heimes

___
Python tracker 

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



[issue17318] xml.sax and xml.dom fetch DTDs by default

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
assignee: christian.heimes -> 

___
Python tracker 

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



[issue17405] Add _Py_memset_s() to securely clear memory

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
assignee: christian.heimes -> 

___
Python tracker 

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



[issue18546] ssl.get_server_certificate like addition for cert chain

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
assignee: christian.heimes -> 

___
Python tracker 

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



[issue20674] Update comments in dictobject.c

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
assignee: christian.heimes -> 

___
Python tracker 

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



[issue15464] ssl: add set_msg_callback function

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
assignee: christian.heimes -> 

___
Python tracker 

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



[issue16632] Enable DEP and ASLR

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
assignee: christian.heimes -> 

___
Python tracker 

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



[issue18550] internal_setblocking() doesn't check return value of fcntl()

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
assignee: christian.heimes -> 

___
Python tracker 

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



[issue19328] Improve PBKDF2 documentation

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue16234] Implement correct block_size and tests for HMAC-SHA3

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue18369] X509 cert class for ssl module

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
assignee: christian.heimes -> 

___
Python tracker 

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



[issue20916] ssl.enum_certificates() will not return all certificates trusted by Windows

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
assignee: christian.heimes -> 

___
Python tracker 

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



[issue16487] Allow ssl certificates to be specified from memory rather than files.

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
assignee: christian.heimes -> 

___
Python tracker 

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



[issue26471] load_verify_locations(cadata) should load AUX ASN.1 to supported trusted certs

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
assignee: christian.heimes -> 

___
Python tracker 

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



[issue18233] SSLSocket.getpeercertchain()

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
assignee: christian.heimes -> 

___
Python tracker 

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



[issue18293] ssl.wrap_socket (cert_reqs=...), getpeercert, and unvalidated certificates

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
assignee: christian.heimes -> 

___
Python tracker 

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



[issue26122] Isolated mode doesn't ignore PYTHONHASHSEED

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
assignee: christian.heimes -> 

___
Python tracker 

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



[issue4821] Patches for thread-support in built-in SHA modules

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
assignee: christian.heimes -> 

___
Python tracker 

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



[issue26907] Add missing getsockopt constants

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
assignee: christian.heimes -> 

___
Python tracker 

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



[issue26836] Add memfd_create to os module

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
assignee: christian.heimes -> 

___
Python tracker 

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



[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
assignee: christian.heimes -> 

___
Python tracker 

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



[issue26835] Add file-sealing ops to fcntl

2016-06-12 Thread Christian Heimes

Changes by Christian Heimes :


--
assignee: christian.heimes -> 

___
Python tracker 

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



  1   2   >