[issue20969] Author of EPUB version of Python docs is set to Unknown instead of PSF

2016-01-08 Thread Senthil Kumaran

Senthil Kumaran added the comment:

Fixed in all branches for which documentation will be published / updated.

--
assignee: docs@python -> orsenthil
nosy: +orsenthil
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



[issue26047] argparse.ArgumentError documentation wrong

2016-01-08 Thread SilentGhost

SilentGhost added the comment:

Christof, you'd have to demonstrate the issue in more than just words. The 
returned status code is hard-coded to be 2 in the error method and it does end 
up being 2 when i run, could you post some output that led you to believe that 
it is 1?

--
nosy: +SilentGhost
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



[issue26047] argparse.ArgumentError documentation wrong

2016-01-08 Thread Christof Hanke

New submission from Christof Hanke:

On https://docs.python.org/2/library/argparse.html (and on those of the 
3.6-Version) it says at the bottom:

"""

ArgumentParser.error(message)

This method prints a usage message including the message to the standard 
error and terminates the program with a status code of 2.
"""

In fact, the returned staus code is 1.

--
assignee: docs@python
components: Documentation
messages: 257745
nosy: Christof Hanke, docs@python
priority: normal
severity: normal
status: open
title: argparse.ArgumentError documentation wrong
type: enhancement
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



[issue26004] pip install lifetimes - throwing error and unable to install packages

2016-01-08 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Debashish: questions on using pip should be directed to python-list, also 
accessible as newsgroup gmane.comp.python.general at news.gmane.org.  pip is 
otherwise maintained separately from CPython and has its own bug-reporting 
system.

--
nosy: +terry.reedy
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



[issue26036] Unnecessary arguments on smtpd.SMTPServer

2016-01-08 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 3.6

___
Python tracker 

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



[issue26045] Improve error message for http.client when posting unicode string

2016-01-08 Thread Guido van Rossum

Guido van Rossum added the comment:

I think this would be okay for 3.5.2 as well.

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



[issue26001] Tutorial: write() does not expect string in binary mode

2016-01-08 Thread Ezio Melotti

Changes by Ezio Melotti :


--
stage:  -> patch review
type:  -> enhancement
versions: +Python 3.6

___
Python tracker 

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



[issue25992] test_gdb fails on OSX

2016-01-08 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
title: test_gdb fails -> test_gdb fails on OSX

___
Python tracker 

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



[issue26009] HTMLParser lacking a few features to reconstruct input exactly

2016-01-08 Thread Ezio Melotti

Ezio Melotti added the comment:

What is your use case?
Also note that new features can only go on 3.6.

--
nosy: +ezio.melotti
versions: +Python 3.6 -Python 2.7

___
Python tracker 

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



[issue26009] HTMLParser lacking a few features to reconstruct input exactly

2016-01-08 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
stage:  -> test needed
type: behavior -> enhancement

___
Python tracker 

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



[issue26049] Poor performance when reading large xmlrpc data

2016-01-08 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I believe performance enhancements are, by default, limited to 'default', but 
this one might be a good candidate for backport.

--
nosy: +loewis, terry.reedy
versions: +Python 3.6

___
Python tracker 

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



[issue25991] readline example eventually consumes all memory

2016-01-08 Thread Ezio Melotti

Changes by Ezio Melotti :


--
keywords: +easy
nosy: +ezio.melotti
stage:  -> needs patch
type: resource usage -> enhancement
versions: +Python 2.7, Python 3.5, 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



[issue26024] Non-ascii Windows locale names

2016-01-08 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 3.5, 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



[issue26045] Improve error message for http.client when posting unicode string

2016-01-08 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 3.2, Python 3.3, Python 3.4, Python 3.5

___
Python tracker 

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



[issue26037] Crash when reading sys.stdin.buffer in a daemon thread

2016-01-08 Thread Martin Panter

Martin Panter added the comment:

But sys.stdin.buffer would be a BufferedReader

--
nosy: +martin.panter

___
Python tracker 

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



[issue23675] glossary entry for 'method resolution order' links to something with python 2.3 in the title

2016-01-08 Thread Martin Panter

Martin Panter added the comment:

The wording looks good in spirit. I just have a couple nits to pick with the 
grammar:

* Why change from “See” to “Refer”? “Refer to” would work better I think; but 
“See” was fine too IMO.

* I think it is better without “document”. Just “See / Refer to <2.3 MRO> for 
details”.

* I would insert “the” in “since the 2.3 release”.

--
nosy: +martin.panter

___
Python tracker 

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



[issue25589] test_ascii_formatd fails on Mac when built with Intel compiler

2016-01-08 Thread Chris Hogan

Chris Hogan added the comment:

The Intel compiler team is looking into this issue.  I'll keep everyone updated 
here.

--

___
Python tracker 

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



[issue25991] readline example eventually consumes all memory

2016-01-08 Thread Martin Panter

Martin Panter added the comment:

What version of Readline are you using? Is it perhaps Editline (libedit)? When 
I experimented with Editline on Linux once, I think I saw the history file 
doubling in size every time I ran Python. Maybe that is what you are seeing.

--
nosy: +martin.panter

___
Python tracker 

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



[issue26050] Add new StreamReader.readuntil() method

2016-01-08 Thread Марк Коренберг

New submission from Марк Коренберг:

See code discussion here:

https://github.com/python/asyncio/pull/297

--
components: asyncio
messages: 257776
nosy: gvanrossum, haypo, mmarkk, yselivanov
priority: normal
severity: normal
status: open
title: Add new StreamReader.readuntil() method
type: enhancement
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



[issue25802] Finish deprecating load_module()

2016-01-08 Thread Brett Cannon

Brett Cannon added the comment:

Thanks for the review, Berker! I managed to figure out how to get the Examples 
links to work so that made it into the final version.

--
status: open -> closed

___
Python tracker 

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



[issue26025] Document pathlib.Path.__truediv__()

2016-01-08 Thread Brett Cannon

Brett Cannon added the comment:

Turns out it is if you read the PurePath docs: 
https://docs.python.org/3/library/pathlib.html#operators

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



[issue26053] regression in pdb output between 2.7 and 3.5

2016-01-08 Thread Doug Hellmann

New submission from Doug Hellmann:

Under python 2.7 using the "run" command within pdb and passing it arguments 
causes those arguments to be printed out. Under 3.5, this is no longer true.



$ python2.7 -m pdb pdb_run.py
> /Users/dhellmann/Dropbox/PyMOTW/Python3/pymotw-3/source/pdb/pdb_run.py(7)()
-> import sys
(Pdb) c
('Command-line args:', ['pdb_run.py'])
The program finished and will be restarted
> /Users/dhellmann/Dropbox/PyMOTW/Python3/pymotw-3/source/pdb/pdb_run.py(7)()
-> import sys
(Pdb) run a b c "this is a long argument"
Restarting pdb_run.py with arguments:
a b c this is a long argument
> /Users/dhellmann/Dropbox/PyMOTW/Python3/pymotw-3/source/pdb/pdb_run.py(7)()
-> import sys



$ python3.5 -m pdb pdb_run.py
> /Users/dhellmann/Dropbox/PyMOTW/Python3/pymotw-3/source/pdb/pdb_run.py(7)()
-> import sys
(Pdb) c
Command-line args: ['pdb_run.py']
The program finished and will be restarted
> /Users/dhellmann/Dropbox/PyMOTW/Python3/pymotw-3/source/pdb/pdb_run.py(7)()
-> import sys
(Pdb) run a b c "this is a long argument"
Restarting pdb_run.py with arguments:
pdb_run.py
> /Users/dhellmann/Dropbox/PyMOTW/Python3/pymotw-3/source/pdb/pdb_run.py(7)()
-> import sys


It looks like the issue is in the pdb main loop. Under 2.7 the restart logic 
has:

except Restart:
print "Restarting", mainpyfile, "with arguments:"
print "\t" + " ".join(sys.argv[1:])


but under 3.5 that was changed to:

except Restart:
print("Restarting", mainpyfile, "with arguments:")
print("\t" + " ".join(args))


The do_run() method has already reset sys.argv before throwing Restart, so to 
print the correct arguments sys.argv[1:] should be used.

--
files: pdb_run.py
keywords: 3.5regression
messages: 257785
nosy: doughellmann
priority: normal
severity: normal
status: open
title: regression in pdb output between 2.7 and 3.5
type: behavior
versions: Python 3.5, Python 3.6
Added file: http://bugs.python.org/file41538/pdb_run.py

___
Python tracker 

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



[issue26053] regression in pdb output between 2.7 and 3.5

2016-01-08 Thread Doug Hellmann

Doug Hellmann added the comment:

I should also mention that I haven't tested early versions of 3.x to see where 
exactly the regression was introduced.

--

___
Python tracker 

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



[issue26045] Improve error message for http.client when posting unicode string

2016-01-08 Thread Martin Panter

Martin Panter added the comment:

Personally I am skeptical if suggesting UTF-8 for the body data is a good idea, 
but I can go along with it, since other people want it. But I do strongly 
question whether it is right to suggest UTF-8 for header fields. The RFC 
 only mentions ASCII and Latin-1.

Newer protocols based on HTTP (RTSP comes to mind) do specify UTF-8 for the 
header, but that is probably out of scope of both the HTTP module and 
beginner-targetted errors.

If I were redoing this patch, I would drop all the changes except at the 
body.encode() line in Emil’s original post.

--
stage:  -> patch review

___
Python tracker 

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



[issue26045] Improve error message for http.client when posting unicode string

2016-01-08 Thread Guido van Rossum

Guido van Rossum added the comment:

Martin, please make a patch along those lines! The only reason I generalized 
this to headers is that one of the three Requests issues referenced in the 
original post seemed to be about a header value 
(https://github.com/kennethreitz/requests/issues/1926). But that one seems 
different than the other two anyways, and it's about Python 3.7 so it wouldn't 
be helped by anything we're doing here anyways.

--

___
Python tracker 

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



[issue25958] Implicit ABCs have no means of "anti-registration"

2016-01-08 Thread Martin Panter

Martin Panter added the comment:

I don’t have strong opinions about the Reversible class because I don’t imagine 
needing it. My instinct was __reverse__() is independent of __iter__(), so it 
should not be a subclass. But I don’t really mind either way.

I did actually mean a version changed notice for the data model change. I see 
this as a small expansion of the Python object API. Previously, __reversed__() 
had to be a function, now you are also allowed to set it to None. The 
collections ABCs are just catching up with the API change. Imagine someone 
using an Orderable virtual base class that tested for __gt__() etc.

If you need, you can write repetitive tests without copying and pasting or 
generated code:

for [param, result1, result2] in parameters:
with self.subTest(param=param):
...

Maybe it is okay to add a test to ABCTestCase.validate_isinstance() to check 
that None cancels isinstance().

I also added some Reitveld comments for patch4a.

--

___
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

2016-01-08 Thread Michael Layzell

Michael Layzell added the comment:

Sorry for missing the review comments earlier, I didn't notice them (I've not 
used this bug tracker before - sorry).

I've attached an updated patch which should not have the variable problem, and 
also takes some of the other review comments into account.

Berker: I agree that the current positioning of the caret is undesirable, and 
that ideally we would report the error at the site of the operator rather than 
the first character of the expression. I think that changing this behavior is a 
different bug though.

P.S: Sorry for disappearing for a month, I don't seem to get emails when there 
are changes made to the bug, and thus forgot to check up on the bug...

--
Added file: http://bugs.python.org/file41539/cpython25677.patch

___
Python tracker 

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



[issue26051] Non-data descriptors in pydoc

2016-01-08 Thread Antony Lee

New submission from Antony Lee:

Consider the following minimal example:

class readonlyprop:
__init__ = lambda self, func: None
__get__ = lambda self, inst, cls=None: None

class C:
def bar(self):
pass
@readonlyprop
def foo(self):
pass
def quux(self):
pass

the output of `pydoc modname.C` is

<... cropped ...>
modname.C = class C(builtins.object)
|  Methods defined here:
|  
|  bar(self)
|  
|  foo = None
|  quux(self)
|  
|  --
|  Data descriptors defined here:
<... cropped ...>

It would be nice if
1. a newline was added after `foo = None`, and
2. foo was *also* marked as being a non-data-descriptor of class readonlyprop 
(basically what you'd get without invoking the __get__).

--
assignee: docs@python
components: Documentation
messages: 257782
nosy: Antony.Lee, docs@python
priority: normal
severity: normal
status: open
title: Non-data descriptors in pydoc
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



[issue25802] Finish deprecating load_module()

2016-01-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d733b6275e17 by Brett Cannon in branch 'default':
Issue #25802: Add an examples section to importlib.
https://hg.python.org/cpython/rev/d733b6275e17

--

___
Python tracker 

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



[issue26052] pydoc for __init__ with not docstring

2016-01-08 Thread Antony Lee

New submission from Antony Lee:

For a class whose __init__ has no docstring, e.g.

class C:
def __init__(self, arg):
pass

pydoc outputs

<... cropped ...>
class C(builtins.object)
 |  Methods defined here:
 |  
 |  __init__(self, arg)
 |  Initialize self.  See help(type(self)) for accurate signature.
<... cropped ...>

The last part "See help(type(self)) for accurate signature." could arguably be 
cropped as the correct signature is already displayed (I see that this is the 
docstring of object.__init__, it's not clear to me why it needs this sentence.).

--
assignee: docs@python
components: Documentation
messages: 257784
nosy: Antony.Lee, docs@python
priority: normal
severity: normal
status: open
title: pydoc for __init__ with not docstring
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



[issue26001] Tutorial: write() does not expect string in binary mode

2016-01-08 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Lines should be kept to about 80 chars.  Both chunks needs a newline added.  I 
think it okay to create short lines rather than re-wrapping the whole paragraph.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue26007] Support embedding the standard library in an executable

2016-01-08 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
stage:  -> test needed
title: Request for Support for Embedding the Standard Library in an Executable 
-> Support embedding the standard library in an executable
versions: +Python 3.6

___
Python tracker 

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



[issue20397] distutils --record option does not validate existence of byte-compiled files

2016-01-08 Thread koobs

koobs added the comment:

This needs review, commit, merge.

We've back-ported and committed these patches against all of our FreeBSD Python 
ports (27,32,33,34,35)

https://svnweb.freebsd.org/ports?view=revision=405569

--
stage: needs patch -> patch review
versions: +Python 3.2, Python 3.3

___
Python tracker 

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



[issue26053] regression in pdb output between 2.7 and 3.5

2016-01-08 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +georg.brandl

___
Python tracker 

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



[issue22138] patch.object doesn't restore function defaults

2016-01-08 Thread Senthil Kumaran

Senthil Kumaran added the comment:

This was an interesting issue. Thanks for the patch, Sean to fix this bug. I 
have committed it in 3.5 and 3.6.

--
assignee:  -> orsenthil
nosy: +orsenthil
resolution:  -> fixed
stage: commit review -> resolved
status: open -> closed
versions: +Python 3.5, 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



[issue22138] patch.object doesn't restore function defaults

2016-01-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b67ed559a7d3 by Senthil Kumaran in branch '3.5':
Issue #22138: Fix mock.patch behavior when patching descriptors. Restore
https://hg.python.org/cpython/rev/b67ed559a7d3

New changeset 9b21dfd71561 by Senthil Kumaran in branch 'default':
merge from 3.5
https://hg.python.org/cpython/rev/9b21dfd71561

--
nosy: +python-dev

___
Python tracker 

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



[issue26055] sys.argv[0] is the python file, not ""

2016-01-08 Thread YoungBoy

New submission from YoungBoy:

python tutorial 2.1.1
You can access this list by executing import sys. The length of the list is at 
least one; when no script and no arguments are given, sys.argv[0] is an empty 
string. 

but, when i try it, the sys.argv[0]is the filename,not empty string.

--
assignee: docs@python
components: Documentation
messages: 257795
nosy: Wei, docs@python
priority: normal
severity: normal
status: open
title: sys.argv[0] is the python file, not ""
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



[issue26055] sys.argv[0] is the python file, not ""

2016-01-08 Thread random832

random832 added the comment:

By "when no script [is] given", it is referring to the use in the interactive 
interpreter, not in a python file.

--
nosy: +random832

___
Python tracker 

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



[issue26055] sys.argv[0] is the python file, not ""

2016-01-08 Thread YoungBoy

Changes by YoungBoy :


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

___
Python tracker 

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



[issue15430] Improve filecmp documentation

2016-01-08 Thread Senthil Kumaran

Senthil Kumaran added the comment:

This bug report can be closed as the patch, written by me is no longer valid. 
The only useful addition it can bring is, exposing the BUFSIZE, but that is 
used transparently by the module and I think, it need not be exposed via 
documentation.

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



[issue26053] regression in pdb output between 2.7 and 3.5

2016-01-08 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +haypo

___
Python tracker 

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



[issue26054] Unable to run scripts: idle3 -r script.py

2016-01-08 Thread David Jackson

New submission from David Jackson:

[Raspberry Jessie] Idle3(4.2]
If I open a idle3 shell (from menu) and enter >>import pandas as pd it accepts 
the command, but if I trying and run it from the shell>> idle3 -r script.py I 
get the following errors:

Traceback (most recent call last):
  File "test.py", line 1, in 
import pandas as pd
  File "/home/pi/python/pandas.py", line 3, in 
from pandas_datareader import data, wb
  File 
"/usr/local/lib/python3.4/dist-packages/pandas_datareader-0.2.1-py3.4.egg/pandas_datareader/__init__.py",
 line 3, in 
from .data import (get_components_yahoo, get_data_famafrench, 
get_data_google, get_data_yahoo,
  File 
"/usr/local/lib/python3.4/dist-packages/pandas_datareader-0.2.1-py3.4.egg/pandas_datareader/data.py",
 line 7, in 
from pandas_datareader.google.daily import GoogleDailyReader
  File 
"/usr/local/lib/python3.4/dist-packages/pandas_datareader-0.2.1-py3.4.egg/pandas_datareader/google/daily.py",
 line 1, in 
from pandas_datareader.base import _DailyBaseReader
  File 
"/usr/local/lib/python3.4/dist-packages/pandas_datareader-0.2.1-py3.4.egg/pandas_datareader/base.py",
 line 9, in 
from pandas import to_datetime
ImportError: cannot import name 'to_datetime'

--
components: IDLE
messages: 257792
nosy: davidjackson1955
priority: normal
severity: normal
status: open
title: Unable to run scripts: idle3 -r script.py
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



[issue26054] Unable to run scripts: idle3 -r script.py

2016-01-08 Thread David Jackson

David Jackson added the comment:

The problem was I had a pandas.py and a pandas.pyc in my home directory. after 
deleting them everything seems to be working.

--
resolution:  -> not a bug

___
Python tracker 

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



[issue26052] pydoc for __init__ with not docstring

2016-01-08 Thread Martin Panter

Martin Panter added the comment:

I suspect this the same side effect of 3.5’s doc string inheritance that I 
mentioned in Issue 15582. The solution proposed was basically “write a custom 
doc string”, though I’m not sure that is always appropriate.

--
keywords: +3.5regression
nosy: +martin.panter

___
Python tracker 

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



[issue26054] Unable to run scripts: idle3 -r script.py

2016-01-08 Thread Zachary Ware

Zachary Ware added the comment:

Glad you got it figured out.  It's a situation that can be tricky to debug, as 
your eyes tend to gloss over the paths given in the traceback.  It's much 
easier to figure out after you've been bitten the first time, though!

--
nosy: +zach.ware
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



[issue11245] Implementation of IMAP IDLE in imaplib?

2016-01-08 Thread Erik Quaeghebeur

Changes by Erik Quaeghebeur :


--
nosy: +equaeghe

___
Python tracker 

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



[issue25940] SSL tests failed due to expired svn.python.org SSL certificate

2016-01-08 Thread Martin Panter

Martin Panter added the comment:

In python-dev I offered to make a patch to switch to 
https://self-signed.pythontest.net. Here is my patch so far.

There is one outstanding problem though: test_get_ca_certs_capath() fails. I 
think it is because the self-signed certificate does not have a “CA basic 
constraints” flag set, and SSLContext.get_ca_certs() no longer lists the 
certificate. Maybe someone else can help. I suspect this would need to be fixed 
on the server side (or find another server with a certificate signed with this 
flag set?), but I could easily be wrong :).

--
Added file: http://bugs.python.org/file41532/pythontest.patch

___
Python tracker 

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



[issue26037] Crash when reading sys.stdin.buffer in a daemon thread

2016-01-08 Thread Марк Коренберг

Марк Коренберг added the comment:

16.2.4.3. Multi-threading
FileIO objects are thread-safe to the extent that the operating system calls 
(such as read(2) under Unix) they wrap are thread-safe too.

Binary buffered objects (instances of BufferedReader, BufferedWriter, 
BufferedRandom and BufferedRWPair) protect their internal structures using a 
lock; it is therefore safe to call them from multiple threads at once.

 TextIOWrapper objects are not thread-safe. 


Maybe problem here?

--
nosy: +mmarkk

___
Python tracker 

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



[issue19251] bitwise ops for bytes of equal length

2016-01-08 Thread Christian Heimes

Christian Heimes added the comment:

Serhiy’s bitarray idea has another benefit. Bit masking is only haft of the 
story. Since Python's int type has no length information, it not possible to 
handle shifting with overflow and rotation. A bit array can provide bit 
shifting ops like rshift, lshift, rotr and rotl.

--

___
Python tracker 

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



[issue23675] glossary entry for 'method resolution order' links to something with python 2.3 in the title

2016-01-08 Thread R. David Murray

Changes by R. David Murray :


--
nosy:  -r.david.murray

___
Python tracker 

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



[issue26048] New user in community

2016-01-08 Thread Divyang Patel

New submission from Divyang Patel:

Greetings to all!

Hi,


please Guide me to understand how to contributing python ??

--
messages: 257752
nosy: devtechnofreak
priority: normal
severity: normal
status: open
title: New user in community
type: enhancement

___
Python tracker 

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



[issue19251] bitwise ops for bytes of equal length

2016-01-08 Thread Andrew Barnert

Andrew Barnert added the comment:

There are a number of existing libraries on PyPI for bit arrays and bit sets. 
There are a lot more API choices than you'd think of in advance, and between 
them they explore most of the useful space. And I don't think any of them need 
to be in the stdlib.

--

___
Python tracker 

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



[issue19251] bitwise ops for bytes of equal length

2016-01-08 Thread Martin Panter

Martin Panter added the comment:

FWIW a long time ago I wanted fast XORing of 512-byte “sectors” of Rar files. 
Initially I think I used array.array with the largest word size available, or 
numpy if available. Later when I learnt more Python I discovered the 
int.from_bytes() trick, and used int(hexlify(...), 16) in Python 2. So I guess 
the array module was a relatively obvious place to look, and the long integer 
trick was unexpected (I’d never programmed with unlimited size integers before).

Serhiy’s bit array idea also seems interesting. I bet somebody has already 
written a package. Maybe it could also be useful for things like Huffman 
encoding, where you string various bit strings together into a sequence of 
bytes. But I do wonder if all these things are too specialized for Python’s 
standard library.

--

___
Python tracker 

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



[issue26049] Poor performance when reading large xmlrpc data

2016-01-08 Thread Sergi Almacellas Abellana

New submission from Sergi Almacellas Abellana:

By default, python xmlrpclib parser reads data by chunks of 1024 bytes [1], 
which leads to a lot of data concatenations when reading large data, which is 
very slow in python.

Increasing the chuck size from 1024 bytes to a higher value makes improve in 
performance. 

On the same machine, we have tested with 20MB of data and we've got the 
following results: 

Chucks of 1024: 1min 48.933491sec
Chucks of 10 * 1024 * 1024: 0.245282sec

We have chosen 10 * 1024 * 1024, as it is the same value used in issue792570

We have done our tests on python2.7, but same code exists for default branch 
[2] (and 3.x branches also [3][4][5][6]), so I belive all the versions are 
affected. 

I can work on a patch if you think this change is acceptable.

IMHO it's logical to allow the developer to customize the chunk size instead of 
using a hard coded one. 

[1] https://hg.python.org/cpython/file/2.7/Lib/xmlrpclib.py#l1479
[2] https://hg.python.org/cpython/file/default/Lib/xmlrpc/client.py#l1310
[3] https://hg.python.org/cpython/file/3.5/Lib/xmlrpc/client.py#l1310
[4] https://hg.python.org/cpython/file/3.4/Lib/xmlrpc/client.py#l1324
[5] https://hg.python.org/cpython/file/3.3/Lib/xmlrpc/client.py#l1316
[6] https://hg.python.org/cpython/file/3.2/Lib/xmlrpc/client.py#l1301

--
components: XML
messages: 257756
nosy: pokoli
priority: normal
severity: normal
status: open
title: Poor performance when reading large xmlrpc data

___
Python tracker 

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



[issue26049] Poor performance when reading large xmlrpc data

2016-01-08 Thread Cédric Krier

Cédric Krier added the comment:

I don't think it is necessary to allow to customize the chunk size. Indeed 
Python should provide a good value by default that works for all platforms.

--
nosy: +ced
type:  -> performance

___
Python tracker 

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



[issue26049] Poor performance when reading large xmlrpc data

2016-01-08 Thread Sergi Almacellas Abellana

Sergi Almacellas Abellana added the comment:

And Also another patch for 2.7 branches

--
Added file: http://bugs.python.org/file41535/python27.patch

___
Python tracker 

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



[issue26049] Poor performance when reading large xmlrpc data

2016-01-08 Thread Sergi Almacellas Abellana

Sergi Almacellas Abellana added the comment:

I attach a patch to fix on default series

--
keywords: +patch
Added file: http://bugs.python.org/file41534/default.patch

___
Python tracker 

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



[issue26037] Crash when reading sys.stdin.buffer in a daemon thread

2016-01-08 Thread Марк Коренберг

Марк Коренберг added the comment:

sys.stdin
sys.stdout
sys.stderr
...
These streams are regular text files
...

--

___
Python tracker 

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



[issue26048] New user in community

2016-01-08 Thread Ezio Melotti

Ezio Melotti added the comment:

Please check the devguide at https://docs.python.org/devguide/ and the 
python-mentorship mailing list.

--
nosy: +ezio.melotti
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



[issue25596] regular files handled as directories in the glob module

2016-01-08 Thread Xavier de Gaye

Xavier de Gaye added the comment:

Adding a doc patch.

--
Added file: http://bugs.python.org/file41533/glob_scandir_doc.patch

___
Python tracker 

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



[issue24712] Docs page's sidebar vibrates on mouse wheel scroll on Chrome.

2016-01-08 Thread R. David Murray

Changes by R. David Murray :


--
nosy:  -r.david.murray

___
Python tracker 

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



[issue25940] SSL tests failed due to expired svn.python.org SSL certificate

2016-01-08 Thread Vincent Legoll

Vincent Legoll added the comment:

Maybe if the server change is not approved you can still push the part of the 
patch that un-hardwire that server name everywhere...

--

___
Python tracker 

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



[issue26045] Improve error message for http.client when posting unicode string

2016-01-08 Thread Guido van Rossum

Guido van Rossum added the comment:

BTW the error and traceback will look something like this:

Traceback (most recent call last):
  File "", line 1, in 
  File "/Users/guido/src/cpython/Lib/http/client.py", line 1138, in 
_send_request
self.putheader(hdr, value)
  File "/Users/guido/src/cpython/Lib/http/client.py", line 1062, in putheader
header = _encode(header, 'ascii', 'header')
  File "/Users/guido/src/cpython/Lib/http/client.py", line 161, in _encode
(name.title(), data[err.start:err.end], name)) from None
UnicodeEncodeError: 'ascii' codec can't encode character '\u1234' in position 
3: Header ('ሴ') is not valid Latin-1. Use header.encode('utf-8') if you want to 
send it encoded in UTF-8.

--

___
Python tracker 

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



[issue26030] Use PEP8 in documentation examples

2016-01-08 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti
versions: +Python 3.6

___
Python tracker 

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



[issue26045] Improve error message for http.client when posting unicode string

2016-01-08 Thread Emil Stenström

Emil Stenström added the comment:

I think changing the error message is enough for the short term, and 
deprecation of automatic encoding is the correct way in the long term.

A text that mention "utf-8" which will likely be the correct solution 
definitely gets my vote, so Guidos suggestion sounds good to me:

UnicodeEncodeError("Use data.encode('utf-8') if you want the data to be encoded 
in UTF-8")

Andrew's and Pauls suggestions doesn't point to a solution to the problem, 
which I think is a great think for something this basic. Also, the error 
message only gets shown when latin-1 fails, so we can't use text that speaks 
about "no encoding" in general.

--

___
Python tracker 

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



[issue26049] Poor performance when reading large xmlrpc data

2016-01-08 Thread Sergi Almacellas Abellana

Sergi Almacellas Abellana added the comment:

I added a new patch which fixed comments

--
Added file: http://bugs.python.org/file41536/default.patch

___
Python tracker 

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



[issue26049] Poor performance when reading large xmlrpc data

2016-01-08 Thread Sergi Almacellas Abellana

Changes by Sergi Almacellas Abellana :


Removed file: http://bugs.python.org/file41534/default.patch

___
Python tracker 

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



[issue19251] bitwise ops for bytes of equal length

2016-01-08 Thread Марк Коренберг

Марк Коренберг added the comment:

Just mention it here :)

https://github.com/KeepSafe/aiohttp/issues/686

--
nosy: +mmarkk

___
Python tracker 

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



[issue26045] Improve error message for http.client when posting unicode string

2016-01-08 Thread Guido van Rossum

Guido van Rossum added the comment:

Here's a patch. I noticed there are lots of other places where a similar 
encoding() call exists -- I wrapped them all using a helper function. Please 
review carefully.

--
keywords: +patch
Added file: http://bugs.python.org/file41537/utfpatch.diff

___
Python tracker 

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



[issue26041] Update deprecation messages of platform.dist() and platform.linux_distribution()

2016-01-08 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti

___
Python tracker 

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



[issue24712] Docs page's sidebar vibrates on mouse wheel scroll on Chrome.

2016-01-08 Thread Kartikaya Gupta

Kartikaya Gupta added the comment:

Please note that this issue will affect Firefox 46 and up as well; we have 
enabled asynchronous scrolling as of Firefox 46.

Bugzilla bug for this issue: https://bugzilla.mozilla.org/show_bug.cgi?id=997269
Announcement for asynchronous scrolling: 
https://groups.google.com/d/msg/mozilla.dev.platform/X2BwGm348jI/Tl26C_1JBAAJ

Also, in Firefox 46 and up, if you open the browser's web console and scroll 
these documentation pages, you should see a warning about scroll-linked effects 
with pointers to additional info on why this is happening.

--
nosy: +kats

___
Python tracker 

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



[issue26025] Document pathlib.Path.__truediv__()

2016-01-08 Thread Ezio Melotti

Changes by Ezio Melotti :


--
keywords: +easy
nosy: +ezio.melotti
type:  -> enhancement
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



[issue26017] Update https://docs.python.org/3/installing/index.html to always quote arguments

2016-01-08 Thread Ezio Melotti

Ezio Melotti added the comment:

I think it's enough to add a note that says that if the argument contains > 
(and possibly other) special characters, then it needs to be quoted.
Examples that use > should also be quoted, but not the others one.

--
nosy: +ezio.melotti

___
Python tracker 

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