[issue27696] win_add2path.py does not add user site directory

2016-08-06 Thread SilentGhost

Changes by SilentGhost :


--
components: +Demos and Tools, Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware
stage:  -> patch review

___
Python tracker 

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



[issue27650] Implement `__repr__` methods for logging.Logger and others

2016-08-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6c304a2ca139 by Vinay Sajip in branch 'default':
Closes #27650: Implemented repr methods for logging objects.
https://hg.python.org/cpython/rev/6c304a2ca139

--
nosy: +python-dev
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



[issue22829] Add --prompt option to venv

2016-08-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6703847eeb31 by Vinay Sajip in branch 'default':
Closes #22829: Added --prompt option to venv.
https://hg.python.org/cpython/rev/6703847eeb31

--
nosy: +python-dev
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



[issue27373] logging.handlers.SysLogHandler with TCP not working on rsyslog5.8

2016-08-06 Thread Vinay Sajip

Vinay Sajip added the comment:

If no more information is available, I will close this issue soon as "not a 
bug".

--
status: open -> pending

___
Python tracker 

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



[issue27373] logging.handlers.SysLogHandler with TCP not working on rsyslog5.8

2016-08-06 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

For me, it's an issue with the management of the protocol in rsyslog and not 
with the logging library.

You can close the issue.

--
nosy: +matrixise
status: pending -> open

___
Python tracker 

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



[issue21999] shlex: bug in posix mode handling of empty strings

2016-08-06 Thread Vinay Sajip

Vinay Sajip added the comment:

After the patch for issue 1521950 was applied, this problem no longer occurs on 
default/3.6.

Removing 3.4 as it's in "security patches only" mode.

--
versions:  -Python 3.4

___
Python tracker 

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



[issue27698] socketpair not in socket.__all__ on Windows

2016-08-06 Thread Vedran Čačić

New submission from Vedran Čačić:

It seems socketpair is added for Windows in Py3.5, but it isn't imported with 
`from socket import *`. Can it be added to __all__?

--
components: Library (Lib)
messages: 272084
nosy: veky
priority: normal
severity: normal
status: open
title: socketpair not in socket.__all__ on Windows
versions: 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



[issue25785] TimedRotatingFileHandler missing rotations

2016-08-06 Thread Vinay Sajip

Vinay Sajip added the comment:

This is not a bug. For example, if you set up a rotating handler to rollover 
every minute but only log once every two minutes, you won't get any empty log 
files for the minutes where logging didn't happen.

The behaviour of the handler isn't expected to keep track of when the program 
is interrupted and restarted. If you need this, it is best to subclass the 
handler.

--
resolution:  -> not a bug
status: open -> pending

___
Python tracker 

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



[issue21699] Windows Python 3.4.1 pyvenv doesn't work in directories with spaces.

2016-08-06 Thread Vinay Sajip

Vinay Sajip added the comment:

I'll close this as it doesn't seem to be a Python bug.

--
resolution:  -> not a bug
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



[issue25459] EAGAIN errors in Python logging module

2016-08-06 Thread Vinay Sajip

Vinay Sajip added the comment:

I will close this as not a bug. If you have custom signal handling which 
interacts with logging in an undesirable way, you will need to subclass the 
handler. The use case isn't common enough to be addressed in the base handler, 
IMO.

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



[issue12946] PyModule_GetDict() claims it can never fail, but it can

2016-08-06 Thread Berker Peksag

Berker Peksag added the comment:

I've changed the dead code to

assert(d != NULL);

and added the following sentence to PyModule_GetDict documentation:

If *module* is not a module object (or a subtype of a module object),
:exc:`SystemError` is raised and *NULL* is returned.

--
keywords: +patch
nosy: +berker.peksag
stage:  -> patch review
versions: +Python 3.6 -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 
3.3, Python 3.4
Added file: http://bugs.python.org/file44030/issue12946.diff

___
Python tracker 

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



[issue23105] os.O_SHLOCK and os.O_EXLOCK are not available on Linux

2016-08-06 Thread Berker Peksag

Changes by Berker Peksag :


--
keywords: +easy
stage:  -> needs patch
versions: +Python 3.6 -Python 3.4

___
Python tracker 

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



[issue27698] socketpair not in socket.__all__ on Windows

2016-08-06 Thread SilentGhost

Changes by SilentGhost :


--
components: +Windows
nosy: +paul.moore, pitrou, steve.dower, tim.golden, zach.ware
stage:  -> needs patch
type:  -> behavior

___
Python tracker 

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



[issue23542] Update PEP 476 for using urllib2.build_opener()

2016-08-06 Thread Berker Peksag

Berker Peksag added the comment:

Thanks for the patch, but I prefer keeping the section shorter. Also, note that 
disabling verification globally is discouraged in the PEP.

--
nosy: +berker.peksag
resolution:  -> rejected
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



[issue23105] os.O_SHLOCK and os.O_EXLOCK are not available on Linux

2016-08-06 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

Link to the documentation of glibc:

http://www.gnu.org/software/libc/manual/html_node/Open_002dtime-Flags.html

--

___
Python tracker 

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



[issue23105] os.O_SHLOCK and os.O_EXLOCK are not available on Linux

2016-08-06 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

If you read the documentation from glibc-2.24, these options are only available 
on BSD and not on Linux.

"""
The remaining operating modes are BSD extensions. They exist only on some 
systems. On other systems, these macros are not defined.

Macro: int O_SHLOCK
Acquire a shared lock on the file, as with flock. See File Locks.

If O_CREAT is specified, the locking is done atomically when creating the file. 
You are guaranteed that no other process will get the lock on the new file 
first.

Macro: int O_EXLOCK
Acquire an exclusive lock on the file, as with flock. See File Locks. This is 
atomic like O_SHLOCK.
"""

With my fedora 24, and glibc 2.23 I don't find any reference to these macros.

--
nosy: +matrixise

___
Python tracker 

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



[issue27699] very important news

2016-08-06 Thread SilentGhost

Changes by SilentGhost :


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

___
Python tracker 

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



[issue27699] spam

2016-08-06 Thread SilentGhost

Changes by SilentGhost :


--
nosy:  -drkirkby
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
title: very important news -> spam

___
Python tracker 

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



[issue27699] spam

2016-08-06 Thread SilentGhost

Changes by SilentGhost :


Removed file: http://bugs.python.org/file44031/image001.jpg

___
Python tracker 

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



[issue23105] os.O_SHLOCK and os.O_EXLOCK are not available on Linux

2016-08-06 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

I am working on it.

--

___
Python tracker 

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



[issue27650] Implement `__repr__` methods for logging.Logger and others

2016-08-06 Thread Ram Rachum

Ram Rachum added the comment:

Vinay: Looks good to me. What do you think about adding tests?

--

___
Python tracker 

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



[issue27650] Implement `__repr__` methods for logging.Logger and others

2016-08-06 Thread Ram Rachum

Ram Rachum added the comment:

If you want, I can implement them.

--

___
Python tracker 

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



[issue24626] please sync cgi.parse document

2016-08-06 Thread Berker Peksag

Berker Peksag added the comment:

Thanks for the report!

The default values of fp and environ parameters are already documented in the 
function signature in Python 3:

cgi.parse(fp=None, environ=os.environ, keep_blank_values=False, 
strict_parsing=False)

In Python 2, the function signature is:

cgi.parse(fp[, environ[, keep_blank_values[, strict_parsing]]])

Since the default values cannot be documented in the latter form, we need to 
specify them separately in plain text.

The reason why "(the file defaults to ``sys.stdin``)" is still in Python 3 
documentation is because of the following two lines in cgi.parse() 
implementation:

if fp is None:
fp = sys.stdin

So if you invoke cgi.parse() (which means fp is None) it will be replaced with 
sys.stdin.

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



[issue23105] os.O_SHLOCK and os.O_EXLOCK are not available on Linux

2016-08-06 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

patch for 3.6 with the comment of Sworddragon.

--
keywords: +patch
stage: needs patch -> patch review
Added file: http://bugs.python.org/file44032/issue23105.diff

___
Python tracker 

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



[issue27350] Compact and ordered dict

2016-08-06 Thread INADA Naoki

INADA Naoki added the comment:

ping

--

___
Python tracker 

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



[issue27650] Implement `__repr__` methods for logging.Logger and others

2016-08-06 Thread Vinay Sajip

Vinay Sajip added the comment:

IMO it's not really worth adding tests for __repr__() - because no external 
code should depend on the exact representation of instances of these kinds of 
classes.

--

___
Python tracker 

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



[issue27373] logging.handlers.SysLogHandler with TCP not working on rsyslog5.8

2016-08-06 Thread Vinay Sajip

Changes by Vinay Sajip :


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



[issue27650] Implement `__repr__` methods for logging.Logger and others

2016-08-06 Thread Ram Rachum

Ram Rachum added the comment:

Okay, but consider that if there are no tests, this code will never be run 
during testing. Consider that if there's a bug in that code that causes an 
exception to be raised (unlikely, I know, but maybe from the call to 
getLevelName) it won't be discovered until a release of Python is made and some 
user runs it and sees an exception. Maybe someone in the future will want to 
add more code into the __repr__ and that code will raise an exception. Having 
tests that run these methods ensures this will be caught before release.

--

___
Python tracker 

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



[issue27700] Document asyncio.AbstractEventLoop, not asyncio.BaseEventLoop

2016-08-06 Thread Guido van Rossum

New submission from Guido van Rossum:

The asyncio docs currently document the event loop interface as belonging to 
BaseEventLoop. But the intention of PEP 3156 was for the interface to belong to 
AbstractEventLoop. In typeshed we ended up exporting only AbstractEventLoop, 
but this runs into trouble when type-checking code written against the asyncio 
docs in the CPython repo rather against the PEP.

Unless there's a serious objection I would like to see the docs changed to 
match the PEP here, and switch from BaseEventLoop to AbstractEventLoop.

Thoughts?

--
assignee: gvanrossum
components: Documentation
messages: 272101
nosy: gvanrossum, haypo, yselivanov
priority: normal
severity: normal
stage: needs patch
status: open
title: Document asyncio.AbstractEventLoop, not asyncio.BaseEventLoop
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



[issue27700] Document asyncio.AbstractEventLoop, not asyncio.BaseEventLoop

2016-08-06 Thread Guido van Rossum

Guido van Rossum added the comment:

Cross-reference: this came up in https://github.com/python/typeshed/issues/452

--

___
Python tracker 

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



[issue27700] Document asyncio.AbstractEventLoop, not asyncio.BaseEventLoop

2016-08-06 Thread Yury Selivanov

Yury Selivanov added the comment:

I think we should fix this.  BaseEventLoop is just an implementation detail of 
asyncio (I think we shouldn't have exposed it in asyncio.__all__ at all).

--

___
Python tracker 

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



[issue27695] Long constant calculations stall compilation

2016-08-06 Thread Brett Cannon

Changes by Brett Cannon :


--
title: Compilation doesnt' end -> Long constant calculations stall compilation

___
Python tracker 

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



[issue27568] "HTTPoxy", use of HTTP_PROXY flag supplied by attacker in CGI scripts

2016-08-06 Thread Senthil Kumaran

Senthil Kumaran added the comment:

Hi Hans-Peter,

In 3.3 (95b09ccc8a3e) and 3.4 (3c19023c9fec) the change completely removes any 
variant of http_proxy if REQUEST_METHOD is set.  The only way to have http 
based proxy in cgi environment by using ProxyHandler method. This is solution 
introduced for the security fix.

If I backport your patch from issue26804, I imagined that we will be 
introducing a new feature for other environment variables like NO_PROXY, which 
folks might be prepared for in the security fix release. That was my concern in 
not making the other change.  Hope this reasoning helps.

--

___
Python tracker 

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



[issue27695] Long constant calculations stall compilation

2016-08-06 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

See also issue21074.

--

___
Python tracker 

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



[issue26800] Don't accept bytearray as filenames part 2

2016-08-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1e01ca34a42c by Serhiy Storchaka in branch 'default':
Issue #26800: Undocumented support of general bytes-like objects
https://hg.python.org/cpython/rev/1e01ca34a42c

--

___
Python tracker 

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



[issue26754] PyUnicode_FSDecoder() accepts arbitrary iterable

2016-08-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 818f22f9ab02 by Serhiy Storchaka in branch 'default':
Issue #26754: Undocumented support of general bytes-like objects
https://hg.python.org/cpython/rev/818f22f9ab02

--

___
Python tracker 

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



[issue22557] Local import is too slow

2016-08-06 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


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



[issue23105] os.O_SHLOCK and os.O_EXLOCK are not available on Linux

2016-08-06 Thread Sworddragon

Sworddragon added the comment:

If we decide to word it this way eventually the sentence for "Windows only" 
needs to be updated too. Not sure about the other sentences as they sound a bit 
if they would guarantee what they say. Maybe somebody else knows more.

--

___
Python tracker 

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



[issue13829] exception error in _scproxy.so when called after fork

2016-08-06 Thread Evan Jones

Evan Jones added the comment:

This is effectively the same as issue 27126. The discussion there convinced me 
that this may not be working around, since it isn't the only place this can 
happen! This same crash, caused by libdispatch not being fork compatible, also 
happens with sqlite and tk. We can probably add a workaround specifically for 
_scproxy.so, but those others would still cause the crash.

--
nosy: +evanj

___
Python tracker 

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



[issue27688] Expand documentation about Any in the typing module

2016-08-06 Thread Guido van Rossum

Changes by Guido van Rossum :


--
resolution:  -> fixed
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



[issue27688] Expand documentation about Any in the typing module

2016-08-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset cbcab1fb1b8a by Guido van Rossum in branch '3.5':
Better docs for typing.Any by Michael Lee. Fixes issue #27688.
https://hg.python.org/cpython/rev/cbcab1fb1b8a

New changeset f60e16663f6e by Guido van Rossum in branch 'default':
Better docs for typing.Any by Michael Lee. Fixes issue #27688. (Merge 3.5->3.6)
https://hg.python.org/cpython/rev/f60e16663f6e

--
nosy: +python-dev

___
Python tracker 

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



[issue24278] Docs on Parsing arguments should say something about mem mgmt for formatters returning C strings

2016-08-06 Thread Martin Blais

Martin Blais added the comment:

Thank you Martin!

--

___
Python tracker 

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