[issue25216] Warnings stacklevel frames to skip

2015-12-10 Thread John Mark Vandenberg

Changes by John Mark Vandenberg :


--
nosy: +jayvdb

___
Python tracker 

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



[issue2636] Adding a new regex module (compatible with re)

2015-12-10 Thread John Mark Vandenberg

Changes by John Mark Vandenberg :


--
nosy: +jayvdb

___
Python tracker 

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



[issue25829] Mixing multiprocessing pool and subprocess may create zombie process, and cause program to hang.

2015-12-10 Thread Ami Koren

Ami Koren added the comment:

Thanks David. using spawn -  multiprocessing.get_context('spawn').Pool(... - 
does the job . It does has it's flows - fork allows me to share data between 
workers (especially large readonly memory database, which I don't want to 
duplicate for each worker), which spawn (which uses fork-exec python script) 
doesn't. So I'll have to see about that.

I still don't understand why forking has to be done under the worker thread 
context. It doesn't seem like a good design - When forking from a thread you 
can never be sure what is being forked. A better approach seems to be to fork 
missing workers on-demand, synchronous to the main thread. But I probably lack 
the historic context of the multiprocess module.

--

___
Python tracker 

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



[issue25216] Warnings stacklevel frames to skip

2015-12-10 Thread John Mark Vandenberg

John Mark Vandenberg added the comment:

This looks a lot like the patch on http://bugs.python.org/issue850482

--

___
Python tracker 

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



[issue850482] Enhance frame handing in warnings.warn()

2015-12-10 Thread John Mark Vandenberg

John Mark Vandenberg added the comment:

See similar http://bugs.python.org/issue25216

--
nosy: +jayvdb

___
Python tracker 

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



[issue25711] Rewrite zipimport from scratch

2015-12-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I were on very early stage, and stopped this work few weeks ago in favor of 
other issues. I would be glad to make a review of your work when you have 
finished it Rose.

--

___
Python tracker 

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



[issue25638] Verify the etree_parse and etree_iterparse benchmarks are working appropriately

2015-12-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you for your review Brett. Now the parse benchmark in 3.6 is only 50% 
slower than in 2.7. Will continue to find bottlenecks.

--
stage: patch review -> 

___
Python tracker 

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



[issue25832] Document weird behavior of `finally` when it has `break` in it

2015-12-10 Thread Ram Rachum

New submission from Ram Rachum:

Today I spent 30 minutes because of weird behavior of `finally` when it has a 
`break` statement inside of it. (The behavior is that the exception gets 
suppressed, which I found unexpected.) I think this behavior should be 
documented.

Example:



c:\Users\Administrator\Desktop>cat s.py
for x in [1, 2, 3]:
  try: 
1/0
  finally: 
break  
print(x)   
  
c:\Users\Administrator\Desktop>c:\Python34\python.exe s.py 
1

--
assignee: docs@python
components: Documentation
messages: 256173
nosy: cool-RR, docs@python
priority: normal
severity: normal
status: open
title: Document weird behavior of `finally` when it has `break` in it
type: enhancement

___
Python tracker 

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



[issue25832] Document weird behavior of `finally` when it has `break` in it

2015-12-10 Thread Josh Rosenberg

Josh Rosenberg added the comment:

You used explicit control flow keywords and you're surprised that it listened?

Regardless, this is already documented 
https://docs.python.org/3/reference/compound_stmts.html#finally :

"If the finally clause executes a return or break statement, the saved 
exception is discarded"

--
nosy: +josh.r

___
Python tracker 

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



[issue25829] Mixing multiprocessing pool and subprocess may create zombie process, and cause program to hang.

2015-12-10 Thread R. David Murray

R. David Murray added the comment:

It probably has to do with the process management, but as I said I'm not that 
familiar with it, so we'll have to wait for the experts to chime in.

--

___
Python tracker 

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



[issue25832] Document weird behavior of `finally` when it has `break` in it

2015-12-10 Thread R. David Murray

Changes by R. David Murray :


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



[issue25833] pyvenv: venvs cannot be moved because activate scripts hard-code paths

2015-12-10 Thread Chad Moore

New submission from Chad Moore:

venv/bin/activate contains an absolute path to the virtual environment.  Is it 
possible to make that relative from activate itself so that the entire venv can 
be moved elsewhere and still work?

I found this using Jenkins to get a Perforce workspace, then build a virtual 
environment, and clone that for downstream jobs.  The cloned workspaces are 
extracted elsewhere and when they activate the environment they're actually 
pointing back to the upstream job's venv.

Feel free to route this request as appropriate.  I'm a new tracker user.  
Thanks!

--
components: Library (Lib)
messages: 256176
nosy: moorecm
priority: normal
severity: normal
status: open
title: pyvenv: venvs cannot be moved because activate scripts hard-code paths
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



[issue25833] pyvenv: venvs cannot be moved because activate scripts hard-code paths

2015-12-10 Thread Barry A. Warsaw

Changes by Barry A. Warsaw :


--
nosy: +barry

___
Python tracker 

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



[issue25833] pyvenv: venvs cannot be moved because activate scripts hard-code paths

2015-12-10 Thread R. David Murray

R. David Murray added the comment:

It's been that way since the virtualenv days, and I presume there's a reason 
for it.  virtualenv does have a '--relocatable' option, but it is still marked 
as experimental.  Finding out why that is and addressing the issues would be a 
prerequisite for adding this enhancement to venv.

--
nosy: +r.david.murray
type:  -> enhancement
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



[issue25677] Syntax error caret confused by indentation

2015-12-10 Thread Berker Peksag

Berker Peksag added the comment:

With the latest patch applied, the output is

  File "z.py", line 2
1 + 2 = 3
^
SyntaxError: can't assign to operator

I think the caret is still in wrong place.

I would expect the following output:

  File "z.py", line 2
1 + 2 = 3
  ^
SyntaxError: can't assign to operator

--
nosy: +berker.peksag

___
Python tracker 

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



[issue24595] InteractiveInterpreter always prints to stdout

2015-12-10 Thread Berker Peksag

Berker Peksag added the comment:

I agree with David. I've added a "stream" attribute to InteractiveInterpreter. 
I don't have a strong preference between a getstream method and a stream 
attribute(or something different) so I will add documentation changes and tests 
later.

--
keywords: +patch
nosy: +berker.peksag
stage:  -> patch review
Added file: http://bugs.python.org/file41279/issue24595.diff

___
Python tracker 

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



[issue25834] getpass falls back when sys.stdin is changed

2015-12-10 Thread Adam Bartoš

New submission from Adam Bartoš:

There is a check in Lib/getpass.py:win_getpass that causes a fallback version 
to be used when `sys.stdin` is changed. I change `sys.stdin` in my 
`win_unicode_console` package, and in this situation there is no reason to use 
the fallback version (see 
https://github.com/Drekin/win-unicode-console/issues/24).

It seems the check was added because of some issue with IDLE 
(https://hg.python.org/cpython/rev/6d5ac3c43416). Could this check be changed 
so it satisfies all the needs?

--
components: Library (Lib), Windows
messages: 256180
nosy: Drekin, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: getpass falls back when sys.stdin is changed
type: behavior
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



[issue24595] InteractiveInterpreter always prints to stdout

2015-12-10 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I strongly prefer attribute, as in the patch.

--

___
Python tracker 

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



[issue25614] Lib/code.py: InteractiveConsole.raw_input writes prompt to stdout

2015-12-10 Thread Berker Peksag

Berker Peksag added the comment:

Thanks for the report!

Unfortunately,

self.write(prompt)
return input()

is not equivalent of ``return input(prompt)``. Could you give more information 
about your use case?

--
nosy: +berker.peksag

___
Python tracker 

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



[issue25827] Support ICC in configure

2015-12-10 Thread R. David Murray

R. David Murray added the comment:

This patch looks correct to me, but I don't have much experience with 
configure.  Are the .dyn files icc's profiling output?

I'm adding Alecsandru and Brett as nosy since they worked on the PGO stuff.  
I'm also adding Stefan since he's shown interest in icc.

--
nosy: +alecsandru.patrascu, brett.cannon, skrah

___
Python tracker 

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



[issue25835] httplib uses print for debugging

2015-12-10 Thread calin marina

New submission from calin marina:

httplib is using print for debugging messages and it is causing a lot of 
annoyance in multiprocess debugging or even single process but headless 
running...
As it is still used by a lot of libraries, including requests the recommended 
one over this for HTTP protocol client I thought sharing my update lib using 
logging module would be useful by someone

--
components: Library (Lib)
files: mywork.patch
hgrepos: 326
keywords: patch
messages: 256184
nosy: calin marina
priority: normal
severity: normal
status: open
title: httplib uses print for debugging
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file41280/mywork.patch

___
Python tracker 

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



[issue25835] httplib uses print for debugging

2015-12-10 Thread calin marina

Changes by calin marina :


--
hgrepos:  -326

___
Python tracker 

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



[issue25835] httplib uses print for debugging

2015-12-10 Thread calin marina

Changes by calin marina :


--
hgrepos: +327
resolution:  -> fixed

___
Python tracker 

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



[issue25835] httplib uses print for debugging

2015-12-10 Thread R. David Murray

R. David Murray added the comment:

Thanks, but since this is a new feature/change in behavior it can only go into 
3.6.  Therefore, this is effectively a duplicate of issue 24255.  Others might 
find the patch useful, though, so it wasn't a waste to upload it :)

--
nosy: +r.david.murray
resolution: fixed -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Replace debuglevel-related logic with logging
type: behavior -> enhancement

___
Python tracker 

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



[issue25822] Add docstrings to fields of urllib.parse results

2015-12-10 Thread Swati Jaiswal

Swati Jaiswal added the comment:

I can help with this. Should I propose the changes I am going to make before 
making them or just create the patch?

--
nosy: +curioswati

___
Python tracker 

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



[issue14285] Traceback wrong on ImportError while executing a package

2015-12-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3202d143a194 by Martin Panter in branch '3.5':
Issue #14285: Do not catch exceptions initializing any ancestor package
https://hg.python.org/cpython/rev/3202d143a194

New changeset a526ebcfd31d by Martin Panter in branch 'default':
Issue #14285: Merge runpy fix from 3.5
https://hg.python.org/cpython/rev/a526ebcfd31d

--

___
Python tracker 

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



[issue25809] "Invalid" tests on locales

2015-12-10 Thread Martin Panter

Martin Panter added the comment:

Here is a patch that reverts to plain fr_FR and skips testing the thousands 
separator. This is what was tested before revision f9ff2a5bbbe2 (Issue 23474).

--
keywords: +patch
stage: needs patch -> patch review
Added file: http://bugs.python.org/file41281/skip-thousands.patch

___
Python tracker 

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



[issue25836] Documentation of MAKE_FUNCTION is still incorrect

2015-12-10 Thread Russell Keith-Magee

New submission from Russell Keith-Magee:

Refs Issue16554, Issue13026, Issue14349, and probably others.

The documentation for the interpretation of the argc argument to MAKE_FUNCTION 
in Doc/library/dis.rst is incorrect. 

As of 13 August 2015, the docs say:

"""
Pushes a new function object on the stack.  From bottom to top, the consumed
stack must consist of:

   * ``argc & 0xFF`` default argument objects in positional order
   * ``(argc >> 8) & 0xFF`` pairs of name and default argument, with the name
 just below the object on the stack, for keyword-only parameters
   * ``(argc >> 16) & 0x7FFF`` parameter annotation objects
   * a tuple listing the parameter names for the annotations (only if there are
 ony annotation objects)
   * the code associated with the function (at TOS1)
   * the :term:`qualified name` of the function (at TOS)
"""

However, this doesn't capture the fact that:

 * if there are annotations, the number of default arguments returned by `argc 
& 0xFF` must be reduced by `(argc >> 16) & 0x7FFF`

 * The value `(argc >> 16) & 0x7FFF` for the number of annotations *includes* 
the "extra" entry for the tuple describing which arguments the annotations 
apply to. This means that `(argc >> 16) & 0x7FFF` will be either 0, or 2+; it 
can't be 1 (because if you have one annotation, you must also have a tuple 
describing which arguments is annotated).

--
assignee: docs@python
components: Documentation
messages: 256189
nosy: docs@python, freakboy3742
priority: normal
severity: normal
status: open
title: Documentation of MAKE_FUNCTION is still incorrect
versions: Python 2.7, Python 3.2, 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



[issue25836] Documentation of MAKE_FUNCTION is still incorrect

2015-12-10 Thread Russell Keith-Magee

Changes by Russell Keith-Magee :


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



[issue14285] Traceback wrong on ImportError while executing a package

2015-12-10 Thread Martin Panter

Martin Panter added the comment:

I committed a slightly modified version to 3.5+. I stopped wrapping the new 
ImportError, and let the existing find_spec() handler wrap it instead. That way 
the existing error messages stay the same.

However I cannot figure out an easy way to do a similar fix for 2.7, where 
ImportError.name does not exist. Therefore I propose to leave 2.7 as it is, 
with just my first commit. This means that 2.7 still omits the traceback if a 
parent package fails to initialize:

$ ./python -m package.submodule
[. . .]/python: No module named missing_module

It also means we see an unnecessary traceback with broken *.pyc files, although 
the eventual error message is improved. This case was reported in 
:

$ mkdir bad_pyc
$ : > bad_pyc/__init__.pyc  # Create empty file
$ python2 -m bad_pyc  # Original behaviour
/sbin/python2: Bad magic number in bad_pyc/__init__.pyc; 'bad_pyc' is a package 
and cannot be directly executed
$ ./python -m bad_pyc  # Current behaviour
Traceback (most recent call last):
  File "[. . .]/Lib/runpy.py", line 163, in _run_module_as_main
mod_name, _Error)
  File "[. . .]/Lib/runpy.py", line 111, in _get_module_details
__import__(mod_name)  # Do not catch exceptions initializing package
ImportError: Bad magic number in bad_pyc/__init__.pyc

I propose to leave these two cases as they currently are in 2.7, unless someone 
has any ideas how to improve them.

--

___
Python tracker 

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



[issue25809] "Invalid" tests on locales

2015-12-10 Thread Martin Panter

Martin Panter added the comment:

I meant revision b53aadd9cf85 in above message

--

___
Python tracker 

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



[issue25837] Errors when Installing Anaconda 3

2015-12-10 Thread Alexander Whatley

New submission from Alexander Whatley:

Got some error messages while installing Python 3.5.1 (Anaconda). Here is the 
traceback:

Extracting packages ...
[  COMPLETE  ]|##| 100%
Unlinking packages ...
menuinst Exception:Traceback (most recent call last):|   0%
  File "C:\Users\Alexander\Anaconda3\lib\site-packages\conda\install.py", line 3
43, in mk_menus
env_setup_cmd=env_setup_cmd)
TypeError: install() got an unexpected keyword argument 'root_prefix'
menuinst Exception:Traceback (most recent call last):|  25%
  File "C:\Users\Alexander\Anaconda3\lib\site-packages\conda\install.py", line 3
43, in mk_menus
TypeError: install() got an unexpected keyword argument 'root_prefix'
menuinst Exception:Traceback (most recent call last):### |  82%
  File "C:\Users\Alexander\Anaconda3\lib\site-packages\conda\install.py", line 3
43, in mk_menus
TypeError: install() got an unexpected keyword argument 'root_prefix'
[  COMPLETE  ]|##| 100%
Linking packages ...
1 file(s) copied.##  |  65%
menuinst Exception:Traceback (most recent call last):### |  74%
  File "C:\Users\Alexander\Anaconda3\lib\site-packages\conda\install.py", line 3
43, in mk_menus
try:
TypeError: install() got an unexpected keyword argument 'root_prefix'
menuinst Exception:Traceback (most recent call last):##  |  88%
  File "C:\Users\Alexander\Anaconda3\lib\site-packages\conda\install.py", line 3
43, in mk_menus
try:
TypeError: install() got an unexpected keyword argument 'root_prefix'
menuinst Exception:Traceback (most recent call last):##  |  97%
  File "C:\Users\Alexander\Anaconda3\lib\site-packages\conda\install.py", line 3
43, in mk_menus
try:
TypeError: install() got an unexpected keyword argument 'root_prefix'
[  COMPLETE  ]|##| 100%

--
messages: 256192
nosy: aewhatley
priority: normal
severity: normal
status: open
title: Errors when Installing Anaconda 3

___
Python tracker 

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



[issue25837] Errors when Installing Anaconda 3

2015-12-10 Thread Alexander Whatley

Alexander Whatley added the comment:

I should probably add that this was after using conda update on a Python 3.5.0 
installation.

--

___
Python tracker 

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



[issue19771] runpy should check ImportError.name before wrapping it

2015-12-10 Thread Martin Panter

Martin Panter added the comment:

I think I have fixed the original problem via Issue 14285 (fully in 3.5+, 
partly in 2.7). It involved a bit more than checking ImportError.name, because 
runpy catches other exceptions like AttributeError, which do not identify a 
module name.

That leaves Laura’s error with the bad *.pyc file. I propose bad-pyc.patch, 
which adds the sys.modules check to fix the error message, and adds a test 
case. I think this patch should be applicable to Python 2 as well.

--
versions: +Python 2.7 -Python 3.4

___
Python tracker 

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



[issue19771] runpy should check ImportError.name before wrapping it

2015-12-10 Thread Martin Panter

Martin Panter added the comment:

BTW I already applied the type(ex).__name__ fix in revision 3202d143a194.

New error message with this patch:

$ ./python -bWall -m bad_pyc
[. . .]/python: Error while finding spec for 'bad_pyc.__main__' (ImportError: 
bad magic number in 'bad_pyc': b'')

--
Added file: http://bugs.python.org/file41282/bad-pyc.patch

___
Python tracker 

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



[issue19771] runpy should check ImportError.name before wrapping it

2015-12-10 Thread Martin Panter

Martin Panter added the comment:

Actually I forgot, this isn’t applicable to Python 2; see 
.

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



[issue25822] Add docstrings to fields of urllib.parse results

2015-12-10 Thread Swati Jaiswal

Swati Jaiswal added the comment:

Here is the patch, please review it. Do I need to write any test?

--
keywords: +patch
Added file: http://bugs.python.org/file41283/iss_25822.patch

___
Python tracker 

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



[issue22341] Python 3 crc32 documentation clarifications

2015-12-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 03c4ca1a34e2 by Martin Panter in branch '3.5':
Issue #22341: Drop Python 2 workaround and document CRC initial value
https://hg.python.org/cpython/rev/03c4ca1a34e2

New changeset 360c1326d8d1 by Martin Panter in branch 'default':
Issue #22341: Merge CRC doc from 3.5
https://hg.python.org/cpython/rev/360c1326d8d1

--
nosy: +python-dev

___
Python tracker 

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



[issue25764] PyObject_Call() is called with an exception set in subprocess

2015-12-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fe844253cd44 by Martin Panter in branch '3.5':
Issue #25764: Skip fork failure test when run as root
https://hg.python.org/cpython/rev/fe844253cd44

New changeset 2f9541cab936 by Martin Panter in branch 'default':
Issue #25764: Merge fix for root user from 3.5
https://hg.python.org/cpython/rev/2f9541cab936

--

___
Python tracker 

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



[issue22341] Python 3 crc32 documentation clarifications

2015-12-10 Thread Martin Panter

Martin Panter added the comment:

Thanks for the reviews

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



[issue25666] Python unexpectedly ignores a signal after fork

2015-12-10 Thread Martin Panter

Martin Panter added the comment:

I think I figured out the problem. The signal module has a “main_pid” variable 
which it checks inside the low-level handler: 
. It 
looks like main_pid gets updated inside PyOS_AfterFork(), but I guess there is 
a race with a signal being received before main_pid is updated.

Maybe there should be some signal masking/blocking or something in the critical 
section between fork() and PyOS_AfterFork()?

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



[issue25809] "Invalid" tests on locales

2015-12-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

LGTM.

--
stage: patch review -> commit review

___
Python tracker 

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



[issue25822] Add docstrings to fields of urllib.parse results

2015-12-10 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +martin.panter, orsenthil
stage: needs patch -> patch review

___
Python tracker 

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



[issue7291] urllib2 cannot handle https with proxy requiring auth

2015-12-10 Thread Chi Hsuan Yen

Changes by Chi Hsuan Yen :


--
nosy: +Chi Hsuan Yen

___
Python tracker 

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



[issue25837] Errors when Installing Anaconda 3

2015-12-10 Thread R. David Murray

R. David Murray added the comment:

Please report this to the anaconda bug tracker.  Anaconda is a third party 
bundle that includes CPython, but the errors don't look like they have anything 
to do with CPython or its standard library.  In any case, a bug report like 
this would need to start on the 3rd party tracker and only move here if a bug 
in CPython itself is identified.

--
nosy: +r.david.murray
resolution:  -> third party
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



[issue25838] Lib/httplib.py: Resend http request on server close connection

2015-12-10 Thread Mikhail Gulyaev

New submission from Mikhail Gulyaev:

Hello guys!

Recently I recived some strange behavior for sending http requests using httplib

My python script uses httplib and interacts with a web server which have a 
keep-alive timeout 5 seconds. Script makes PUT requests and sends files to 
server. At first time it works ok. Then after 5 seconds server closes 
connection. And then I doing second PUT request, that fails in two stages:
 - HTTPConnection trys to send PUT request to closed socket.
 - HTTPConnection reconnects to server and sends request again but no file 
sended.
This behavior was checked using wireshark and debug output of httplib.

The best solution IMHO would be to checking socket state on each request, and 
reconnects if needed - but it seems this issue has no unique solution.

So I offer a patch which simply rewinds file before sending if needed. 
hasattr(data,'tell') could be used in checking condition
---
diff -r 002d8b981128 Lib/httplib.py
--- a/Lib/httplib.pyWed Dec 09 19:44:30 2015 +0200
+++ b/Lib/httplib.pyFri Dec 11 12:59:47 2015 +0600
@@ -865,6 +865,7 @@
 blocksize = 8192
 if hasattr(data,'read') and not isinstance(data, array):
 if self.debuglevel > 0: print "sendIng a read()able"
+if data.tell() > 0: data.seek(0) # rewind for retry send file
 datablock = data.read(blocksize)
 while datablock:
 self.sock.sendall(datablock)
---

--
messages: 256204
nosy: gmixo
priority: normal
severity: normal
status: open
title: Lib/httplib.py: Resend http request on server close connection
type: enhancement
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



[issue25838] Lib/httplib.py: Resend http request on server close connection

2015-12-10 Thread Mikhail Gulyaev

Changes by Mikhail Gulyaev :


--
keywords: +patch
Added file: http://bugs.python.org/file41284/httplib.patch

___
Python tracker 

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



[issue14285] Traceback wrong on ImportError while executing a package

2015-12-10 Thread Nick Coghlan

Nick Coghlan added the comment:

Leaving Python 2.7 alone makes sense to me - runpy is heavily dependent on the 
import system, so there are going to be limits to the improvements that can be 
made there.

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



[issue19771] runpy should check ImportError.name before wrapping it

2015-12-10 Thread Nick Coghlan

Nick Coghlan added the comment:

The bad-pyc patch looks good to me.

--

___
Python tracker 

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