[issue33285] pip upgrade runtime crash

2018-04-16 Thread Paul Moore

Paul Moore  added the comment:

Issues with pip should be reported at https://github.com/pypa/pip/issues rather 
than here. However, in this case, the issue is that you ran the command "pip 
install --upgrade pip" which will use the pip executable to upgrade itself, 
something that Windows blocks. To upgrade pip you should run the command 
"python -m pip install --upgrade pip", using "python -m pip" rather than plain 
"pip".

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



[issue33286] Conflict between tqdm and multiprocessing on windows

2018-04-16 Thread schwemro

New submission from schwemro :

Apparently, there occurs a conflict between tqdm and multiprocessing. There is 
an AttributeError displayed. I provide here an minimal working example. It 
works on UNIX but unfortunately not on windows.

--
components: Windows
files: tqdm_multi.py
messages: 315353
nosy: paul.moore, schwemro, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Conflict between tqdm and multiprocessing on windows
type: compile error
versions: Python 3.6
Added file: https://bugs.python.org/file47537/tqdm_multi.py

___
Python tracker 

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



[issue33287] "pip iinstall packageName.py" fails

2018-04-16 Thread antonio95100

New submission from antonio95100 :

Hi all. I'm struggling with the installation of a pyton package under Ubuntu 
16.4 and Python 7. I follow the statements of the pakage authors, but I obtaint 
the following errors (note that I have the same error for different packages 
installation attempt). Any suggestion is more than welcome.

$ pip install path.py
Collecting path.py
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 209, in main
status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 328, in 
run
wb.build(autobuilding=True)
  File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 748, in build
self.requirement_set.prepare_files(self.finder)
  File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 360, in 
prepare_files
ignore_dependencies=self.ignore_dependencies))
  File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 512, in 
_prepare_file
finder, self.upgrade, require_hashes)
  File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 273, in 
populate_link
self.link = finder.find_requirement(self, upgrade)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 442, in 
find_requirement
all_candidates = self.find_all_candidates(req.name)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 400, in 
find_all_candidates
for page in self._get_pages(url_locations, project_name):
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 545, in _get_pages
page = self._get_page(location)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 648, in _get_page
return HTMLPage.get_page(link, session=self.session)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 757, in get_page
"Cache-Control": "max-age=600",
  File 
"/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py",
 line 480, in get
return self.request('GET', url, **kwargs)
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 378, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
  File 
"/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py",
 line 468, in request
resp = self.send(prep, **send_kwargs)
  File 
"/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py",
 line 576, in send
r = adapter.send(request, **kwargs)
  File 
"/usr/share/python-wheels/CacheControl-0.11.5-py2.py3-none-any.whl/cachecontrol/adapter.py",
 line 46, in send
resp = super(CacheControlAdapter, self).send(request, **kw)
  File 
"/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/adapters.py",
 line 376, in send
timeout=timeout
  File 
"/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connectionpool.py",
 line 610, in urlopen
_stacktrace=sys.exc_info()[2])
  File 
"/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/util/retry.py",
 line 228, in increment
total -= 1
TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'

--
components: Installation
messages: 315354
nosy: antonio95100
priority: normal
severity: normal
status: open
title: "pip iinstall packageName.py" fails
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



[issue33286] Conflict between tqdm and multiprocessing on windows

2018-04-16 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

What's the specific exception you are getting?

BTW. This involves third-party code and this may be a bug in that code. An 
important difference between linux and windows is how multiprocessing launches 
additional processes.

--
nosy: +ronaldoussoren

___
Python tracker 

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



[issue33286] Conflict between tqdm and multiprocessing on windows

2018-04-16 Thread schwemro

schwemro  added the comment:

Here is the traceback:

Python 3.6.5 | packaged by conda-forge | (default, Apr  6 2018, 
16:13:55) [MSC v.1900 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.

IPython 6.3.1 -- An enhanced Interactive Python.


runfile('C:/Users/Downloads/temp.py', 
wdir='C:/Users/Downloads')
Traceback (most recent call last):

File "", line 1, in 
runfile('C:/Users/Downloads/temp.py', 
wdir='C:/Users/Downloads')

File "C:\ProgramData\Anaconda3\lib\site- 
packages\spyder\utils\site\sitecustomize.py", line 705, in runfile
execfile(filename, namespace)

File "C:\ProgramData\Anaconda3\lib\site- 
packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)

File "C:/Users/Downloads/temp.py", line 22, in 
p.map(progresser, L)

File "C:\ProgramData\Anaconda3\lib\multiprocessing\pool.py", line 
266, in map
return self._map_async(func, iterable, mapstar, chunksize).get()

File "C:\ProgramData\Anaconda3\lib\multiprocessing\pool.py", line 
644, in get
raise self._value

AttributeError: 'NoneType' object has no attribute 'write'

Where can I find more details about differences between the two OS? By the way, 
I'm working on mac.

--

___
Python tracker 

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



[issue33287] "pip iinstall packageName.py" fails

2018-04-16 Thread Berker Peksag

Berker Peksag  added the comment:

There are two different problems here:

1. There is a possible networking issue. I'd try to use a proxy or something 
like that.

2. You are using a pip patched by Ubuntu/Debian developers. pip is normally a 
self-contained package and they use their own version of requests library 
(urllib3 is used by requests.) Upgrading pip by running "pip install -U pip" 
(you might need "sudo" depending on your system) or by using your package 
manager might help.

Please use support channels of Ubuntu to get further help. This tracker is for 
issues with the Python standard library and Python interpreter.

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



[issue33264] Remove to-be-deprecated urllib.request.urlretrieve function reference from HOWTO

2018-04-16 Thread miss-islington

Change by miss-islington :


--
pull_requests: +6186

___
Python tracker 

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



[issue33264] Remove to-be-deprecated urllib.request.urlretrieve function reference from HOWTO

2018-04-16 Thread miss-islington

Change by miss-islington :


--
pull_requests: +6185

___
Python tracker 

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



[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator

2018-04-16 Thread Jason R. Coombs

Jason R. Coombs  added the comment:

I believe I encountered this issue today on Python 2.7.14 
(https://ci.appveyor.com/project/jaraco/jaraco-windows/build/31/job/lenh5l4dcmj137b9).
 In this case, I have an iterable (in itertools.imap) that raises a TypeError 
when evaluated, not a generator.

The issue doesn't happen on Python 3, where 'map' is used instead of 
itertools.imap.

Does this patch need to be extended to support any iterable?

--
nosy: +jason.coombs

___
Python tracker 

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



[issue33264] Remove to-be-deprecated urllib.request.urlretrieve function reference from HOWTO

2018-04-16 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

Thank you, Andrés and Terry.

This is merged in 3.8 and backported to 3.7 and 3.6 too.

--
versions: +Python 3.6, Python 3.7

___
Python tracker 

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



[issue33286] Conflict between tqdm and multiprocessing on windows

2018-04-16 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

Multiprocessing by default uses the fork system call to start new processes on 
Linux. This system call is not available on Windows, and there multiprocessing 
starts a fresh interpreter (see 
).
 

I'm also on macOS, and cannot reproduce the problem there even when using the 
'spawn' method there by adding some lines to the start of your script (before 
the other import statements):

import multiprocessing
if __name__ == "__main__":
multiprocessing.set_start_method('spawn')

But: I have a fairly old version of 3.6 on my machine.

--

___
Python tracker 

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



[issue33286] Conflict between tqdm and multiprocessing on windows

2018-04-16 Thread schwemro

schwemro  added the comment:

On macOS it works perfectly for me as well. The issue is about running it on 
windows 10...

--

___
Python tracker 

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



[issue21475] Support the Sitemap extension in robotparser

2018-04-16 Thread Steven Steven

Steven Steven  added the comment:

Kindly add a test for this issue

--
nosy: +stevensalbert

___
Python tracker 

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



[issue33288] Diethealth

2018-04-16 Thread Steven Steven

New submission from Steven Steven :

sue

--
messages: 315363
nosy: stevensalbert
priority: normal
severity: normal
status: open
title: Diethealth

___
Python tracker 

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



[issue33288] Diethealth

2018-04-16 Thread Steven Steven

Steven Steven  added the comment:

http://www.diethealthsupplements.com/

--

___
Python tracker 

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



[issue33288] Spam

2018-04-16 Thread Zachary Ware

Change by Zachary Ware :


--
nosy:  -stevensalbert
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
title: Diethealth -> Spam

___
Python tracker 

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



[issue33288] Spam

2018-04-16 Thread Zachary Ware

Change by Zachary Ware :


--
Removed message: https://bugs.python.org/msg315363

___
Python tracker 

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



[issue33288] Spam

2018-04-16 Thread Zachary Ware

Change by Zachary Ware :


--
Removed message: https://bugs.python.org/msg315364

___
Python tracker 

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



[issue31904] Python should support VxWorks RTOS

2018-04-16 Thread Ned Deily

Ned Deily  added the comment:

As I commented on the PR, I think this PR should not be merged until and if 
there is a consensus that this support belongs in the standard cpython repo and 
there is an agreed-upon plan how this platform would be supported on going.  I 
think it needs an approved PEP.  We've allowed ourselves in the past to do a 
long-term disservice to our downstream users by merging in support for 
platforms that we were not equipped to support.  In any case, it would need to 
wait for 3.8.

--
nosy: +lukasz.langa, ned.deily
versions: +Python 3.8 -Python 3.7

___
Python tracker 

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



[issue31947] names=None case is not handled by EnumMeta._create_ method

2018-04-16 Thread miss-islington

miss-islington  added the comment:


New changeset 3bcca488fe753ae8cef9178e32237f84927c938e by Miss Islington (bot) 
in branch '3.7':
bpo-31947: remove None default for names param in Enum._create_ (GH-4288)
https://github.com/python/cpython/commit/3bcca488fe753ae8cef9178e32237f84927c938e


--
nosy: +miss-islington

___
Python tracker 

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



[issue33289] askcolor is returning floats for r, g, b values instead of ints

2018-04-16 Thread Bryan Oakley

New submission from Bryan Oakley :

Even though the underlying tcl/tk interpreter is returning ints, askcolor is 
converting the values to floats. My guess is this is an oversight related to 
the change in functionality of the / operator in python3.

this:

return (r/256, g/256, b/256), str(result)

should probably be this:

return (r//256, g//256, b//256), str(result)

--
components: Tkinter
messages: 315367
nosy: Bryan.Oakley
priority: normal
severity: normal
status: open
title: askcolor is returning floats for r,g,b values instead of ints
versions: Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue33266] 2to3 doesn't parse all valid string literals

2018-04-16 Thread miss-islington

Change by miss-islington :


--
pull_requests: +6187

___
Python tracker 

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



[issue32232] building extensions as builtins is broken in 3.7

2018-04-16 Thread Xavier de Gaye

Change by Xavier de Gaye :


--
pull_requests: +6188

___
Python tracker 

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



[issue32232] building extensions as builtins is broken in 3.7

2018-04-16 Thread Xavier de Gaye

Xavier de Gaye  added the comment:

The compilation failure is a consequence of the changes made in issue 30860. 
Simply adding '#include "internal/pystate.h"' in Modules/_elementtree.c fixes 
the compilation although this is not the correct fix.

The modules configured in Modules/Setup keep being built with -DPy_BUILD_CORE 
while the refactoring done in issue 30860 imposes new constraints on the way 
headers are handled for modules accessing the Py_BUILD_CORE API. Most modules 
configured in Modules/Setup do not use this API and none of the commented out 
modules in this file (normally built by setup.py [1]) does. PR 6489 fixes this 
by introducing yet another CFLAGS named PY_NO_CORE_CFLAGS to only use 
-DPy_BUILD_CORE with Setup modules that use the Py_BUILD_CORE API.

[1] the _xxsubinterpreters module is the only one that sets -DPy_BUILD_CORE 
explicitly in setup.py

--
nosy: +xdegaye

___
Python tracker 

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



[issue33290] Python.org macOS pkg installs pip3 as pip

2018-04-16 Thread Gilbert Wilson

New submission from Gilbert Wilson :

The python-3.6.5-macosx10.6.pkg installs pip3 as pip. This means if you have 
both python2.7.x and 3.6.x you get unexpected and undesirable behavior. 
According to the release notes in 3.6.5:

Python 3 and Python 2 Co-existence

Python.org Python 3.6 and 2.7.x versions can both be installed on your system 
and will not conflict. Command names for Python 3 contain a 3 in them, python3 
(or python3.6), idle3 (or idle3.6), pip3 (or pip3.6), etc.  Python 2.7 command 
names contain a 2 or no digit: python2 (or python2.7 or python), idle2 (or 
idle2.7 or idle), etc.

The release notes for Python2.7.14 have a similarly worded note on Python 3 and 
Python 2 co-existence.

For both Pythons to properly coexist you must install Python2.7.x after 
installing Python3.6.x or manually fix the changes that the Python installers 
make to your ~/.profile PATH environmental variable.

$ which pip3
/Library/Frameworks/Python.framework/Versions/3.6/bin/pip3

$ ls -l $(dirname $(which pip3))
[SNIP]
-rwxr-xr-x  1 gilw  admin263 Apr 16 13:05 pip
-rwxr-xr-x  1 gilw  admin263 Apr 16 13:05 pip3
-rwxr-xr-x  1 gilw  admin263 Apr 16 13:05 pip3.6
[SNIP]

--
components: macOS
messages: 315369
nosy: dbxgil, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: Python.org macOS pkg installs pip3 as pip
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



[issue32232] building extensions as builtins is broken in 3.7

2018-04-16 Thread Ned Deily

Ned Deily  added the comment:

Thanks, Xavier, for your analysis and your PR!  We definitely meed to get this 
resolved before 3.7.0b4.  Given the complexity and potential impact on this 
area and that we are approaching the final beta, I think we need a few pairs of 
eyes to review it.  @doko, does the PR work for you?  @eric.snow and @ncoghlan, 
could you please take a look, too?  Thanks!

--
nosy: +vstinner
priority: deferred blocker -> release blocker

___
Python tracker 

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



[issue23403] Use pickle protocol 4 by default?

2018-04-16 Thread Łukasz Langa

Change by Łukasz Langa :


--
pull_requests: +6189

___
Python tracker 

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



[issue33290] Python.org macOS pkg installs pip3 as pip

2018-04-16 Thread Ned Deily

Ned Deily  added the comment:

Actually, this appears to be a pip upgrade issue.  If you install 3.6.5 from 
the python.org installers, there is no pip link there, only pip3:

$ cd /Library/Frameworks/Python.framework/Versions/3.6/bin
$ ls -l
total 272
lrwxr-xr-x  1 root  admin  8 Apr 16 19:19 2to3 -> 2to3-3.6
-rwxrwxr-x  1 root  admin140 Mar 28 06:05 2to3-3.6
-rwxrwxr-x  1 root  admin281 Apr 16 19:19 easy_install-3.6
lrwxr-xr-x  1 root  admin  7 Apr 16 19:19 idle3 -> idle3.6
-rwxrwxr-x  1 root  admin138 Mar 28 06:05 idle3.6
-rwxrwxr-x  1 root  admin253 Apr 16 19:19 pip3
-rwxrwxr-x  1 root  admin253 Apr 16 19:19 pip3.6
lrwxr-xr-x  1 root  admin  8 Apr 16 19:19 pydoc3 -> pydoc3.6
-rwxrwxr-x  1 root  admin123 Mar 28 06:05 pydoc3.6
lrwxr-xr-x  1 root  admin  9 Apr 16 19:19 python3 -> python3.6
lrwxr-xr-x  1 root  admin 12 Apr 16 19:19 python3-32 -> python3.6-32
lrwxr-xr-x  1 root  admin 16 Apr 16 19:19 python3-config -> python3.6-config
-rwxrwxr-x  2 root  admin  25920 Mar 28 06:05 python3.6
-rwxrwxr-x  1 root  admin  13568 Mar 28 06:05 python3.6-32
lrwxr-xr-x  1 root  admin 17 Apr 16 19:19 python3.6-config -> 
python3.6m-config
-rwxrwxr-x  2 root  admin  25920 Mar 28 06:05 python3.6m
-rwxrwxr-x  1 root  admin   2081 Mar 28 06:05 python3.6m-config
lrwxr-xr-x  1 root  admin 10 Apr 16 19:19 pyvenv -> pyvenv-3.6
-rwxrwxr-x  1 root  admin480 Mar 28 06:05 pyvenv-3.6

But if you then upgrade to pip 10.0.0, which I'm guessing you did, you'll see:

$ ls -l
[...]
-rwxrwxr-x  1 root  admin138 Mar 28 06:05 idle3.6
-rwxr-xr-x  1 sysadmin  admin224 Apr 16 19:22 pip
-rwxr-xr-x  1 sysadmin  admin224 Apr 16 19:22 pip3
-rwxr-xr-x  1 sysadmin  admin224 Apr 16 19:22 pip3.6
lrwxr-xr-x  1 root  admin  8 Apr 16 19:19 pydoc3 -> pydoc3.6
[...]

So it appears the pip upgrade unconditionally installs both a pip and a pip3 
link.  It really shouldn't.

You should check the pip issue tracker and, if not already reported, open a new 
issue there:  https://github.com/pypa/pip/issues/

Thanks for the report!

--
nosy: +Marcus.Smith, dstufft, ncoghlan, paul.moore
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



[issue33290] Python.org macOS pkg installs pip3 as pip

2018-04-16 Thread Ned Deily

Ned Deily  added the comment:

P.S. Of course, you'll probably need to manually remove that spurious pip 
command.

--

___
Python tracker 

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



[issue33234] Improve list() pre-sizing for inputs with known lengths

2018-04-16 Thread Pablo Galindo Salgado

Change by Pablo Galindo Salgado :


--
keywords: +patch
pull_requests: +6190
stage:  -> patch review

___
Python tracker 

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



[issue33291] Cannot Install Stegano Package - Python 3.6.5 Base

2018-04-16 Thread Adam Klinger

New submission from Adam Klinger :

There seems to be an issue in the default setup.py which comes with the Python 
3.6.5 installer. Upon trying to install an additional package through pip the 
below is observed:

C:\Users\adamj\Desktop>pip install stegano
Collecting stegano
  Downloading 
https://files.pythonhosted.org/packages/77/76/07a61c042ac1a1cb3445689b4f140800b16d0e883a46049e221d7a92de66/Stegano-0.8.4.tar.gz
 (243kB)
100% || 245kB 3.3MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
  File "", line 1, in 
  File 
"C:\Users\adamj\AppData\Local\Temp\pip-install-sh3rd6wj\stegano\setup.py", line 
26, in 
readme = f.read()
  File "c:\python36\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 
1569: character maps to 

--
components: Unicode
messages: 315373
nosy: Adam Klinger, ezio.melotti, vstinner
priority: normal
severity: normal
status: open
title: Cannot Install Stegano Package - Python 3.6.5 Base
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



[issue33291] issue in the default setup.py which comes with the Python 3.6.5 installer

2018-04-16 Thread Adam Klinger

Change by Adam Klinger :


--
title: Cannot Install Stegano Package - Python 3.6.5 Base -> issue in the 
default setup.py which comes with the Python 3.6.5 installer

___
Python tracker 

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



[issue33251] ConfigParser.items returns items present in vars

2018-04-16 Thread Łukasz Langa

Łukasz Langa  added the comment:

Hm. The documentation change was done in issue12036 but it seems this was 
actually never the case, contrary to what the conversation on that other issue 
there states.

I wouldn't change it for 3.6.6 anymore since it's pretty late in the release 
cycle.  This looks like an interesting bug fix for 3.7.

--

___
Python tracker 

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



[issue33251] ConfigParser.items returns items present in vars

2018-04-16 Thread Łukasz Langa

Łukasz Langa  added the comment:

Well, now that I think about it, this is not even a *bug* fix since it's 
behavior that configparser had since 1997.

So that will have to go straight to 3.8.

--
versions: +Python 3.8 -Python 3.6

___
Python tracker 

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



[issue33251] ConfigParser.items returns items present in vars

2018-04-16 Thread Łukasz Langa

Change by Łukasz Langa :


--
pull_requests: +6191

___
Python tracker 

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



[issue33251] ConfigParser.items returns items present in vars

2018-04-16 Thread miss-islington

Change by miss-islington :


--
pull_requests: +6192

___
Python tracker 

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



[issue33251] ConfigParser.items returns items present in vars

2018-04-16 Thread miss-islington

Change by miss-islington :


--
pull_requests: +6193

___
Python tracker 

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



[issue33292] Fix secrets.randbelow docstring

2018-04-16 Thread Vex Woo

New submission from Vex Woo :

- https://github.com/python/cpython/blob/master/Lib/secrets.py#L28

Please fix

"""Return a random int in the range [0, n)."""

to 

"""Return a random int in the range(0, n)."""

--
components: Library (Lib)
messages: 315376
nosy: Nixawk
priority: normal
severity: normal
status: open
title: Fix secrets.randbelow docstring
type: resource usage
versions: Python 3.8

___
Python tracker 

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



[issue33292] Fix secrets.randbelow docstring

2018-04-16 Thread Roundup Robot

Change by Roundup Robot :


--
keywords: +patch
pull_requests: +6194
stage:  -> patch review

___
Python tracker 

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



[issue33293] Using datetime.datetime.utcnow().timestamp() in Python3.6.0 can't get correct UTC timestamp.

2018-04-16 Thread Han Shaowen

New submission from Han Shaowen :

What I am talking is like:

Python 3.6.0 (default, Feb 28 2018, 15:41:04)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> from datetime import datetime
>>> time.time()
1523942154.3787892
>>> datetime.now().timestamp()
1523942165.202865
>>> datetime.utcnow().timestamp()
1523913372.362377

Apparently, datetime.now().timestamp() give me right unix timestamp while 
utcnow().timestamp() doesn't.

Fellas what do you think about this?

--
components: Extension Modules
messages: 315377
nosy: Han Shaowen
priority: normal
severity: normal
status: open
title: Using datetime.datetime.utcnow().timestamp() in Python3.6.0 can't get 
correct UTC timestamp.
type: behavior
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



[issue33292] Fix secrets.randbelow docstring

2018-04-16 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

What is wrong with the current docstring?

--
nosy: +serhiy.storchaka, steven.daprano

___
Python tracker 

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



[issue33283] Mention PNG as a supported image format by Tcl/Tk

2018-04-16 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:


New changeset 4b685bf7192fff48c8effeeae4f4d64f9420ec0f by Serhiy Storchaka 
(Andrés Delfino) in branch 'master':
bpo-33283: Mention PNG as a supported format by Tcl/Tk. (GH-6479)
https://github.com/python/cpython/commit/4b685bf7192fff48c8effeeae4f4d64f9420ec0f


--

___
Python tracker 

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



[issue33283] Mention PNG as a supported image format by Tcl/Tk

2018-04-16 Thread miss-islington

Change by miss-islington :


--
pull_requests: +6196

___
Python tracker 

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



[issue33283] Mention PNG as a supported image format by Tcl/Tk

2018-04-16 Thread miss-islington

Change by miss-islington :


--
pull_requests: +6197

___
Python tracker 

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



[issue33205] GROWTH_RATE prevents dict shrinking

2018-04-16 Thread INADA Naoki

INADA Naoki  added the comment:


New changeset 5fbc511f56688654a05b9eba23d140318bb9b2d5 by INADA Naoki in branch 
'master':
bpo-33205: dict: Change GROWTH_RATE to `used*3` (GH-6350)
https://github.com/python/cpython/commit/5fbc511f56688654a05b9eba23d140318bb9b2d5


--

___
Python tracker 

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



[issue33205] GROWTH_RATE prevents dict shrinking

2018-04-16 Thread miss-islington

Change by miss-islington :


--
pull_requests: +6198

___
Python tracker 

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