[issue33258] Unable to install 3.6.5 on Windows Server 2008

2018-04-10 Thread Steve Dower

Steve Dower  added the comment:

I more meant that because of the EOL for that version of Windows, we don't have 
support at all in that version of Python. So while we try to have helpful 
failure messages, ultimately we aren't obliged to do anything useful at all, 
and it sounds like that's what is happening.

You'll need to use an earlier version of Python, probably 3.4. Will that work 
for you?

--

___
Python tracker 

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



[issue33097] concurrent futures Executors accept tasks after interpreter shutdown

2018-04-10 Thread Mark Nemec

Mark Nemec  added the comment:

Happy to contribute! Thanks for the review :)

--

___
Python tracker 

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



[issue33259] Encoding issue in the name of the local DST timezone

2018-04-10 Thread Géry Ogam

New submission from Géry Ogam :

There seems to be an encoding bug in Python 3.6.5 on Windows with the [timezone 
constant](https://docs.python.org/3/library/time.html#timezone-constants) 
`time.tzname`:

>>> import time
>>> time.tzname
('Paris, Madrid', 'Paris, Madrid (heure d\x92été)')

In the second string (the name of the local *DST* timezone), the escape 
sequence `\x92` is (since it is in a *character* string, not in a byte string) 
the Unicode code point [U+0092 PRIVATE USE 2 
(PU2)](https://en.wikipedia.org/wiki/List_of_Unicode_characters), instead of 
the Unicode code point [U+2019 RIGHT SINGLE QUOTATION 
MARK](https://en.wikipedia.org/wiki/List_of_Unicode_characters) as expected, 
which would have been displayed as `’` or `\u2019`, so `'Paris, Madrid (heure 
d’été)'`.

This `\x92` obviously comes from the 0x92 byte of the [CP-1252 
encoding](https://en.wikipedia.org/wiki/Windows-1252) for the `’` character, 
but the byte has been badly handled in `time.tzname` somehow.

Indeed, quoting the [‘Lexical 
analysis’](https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals)
 chapter from the *Language Reference*:

> In a bytes literal, hexadecimal and octal escapes denote the byte with
> the given value. In a string literal, these escapes denote a Unicode
> character with the given value.

--
components: Library (Lib)
messages: 315181
nosy: maggyero
priority: normal
severity: normal
status: open
title: Encoding issue in the name of the local DST timezone
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



[issue11122] bdist_rpm should use rpmbuild, not rpm

2018-04-10 Thread Stanislav P

Stanislav P  added the comment:

can this patch be sped up?
i am running into this issue with the latest python version
the patch was submitted 7 years ago

i don't see any workaround.

--
nosy: +stanp
versions: +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



[issue33258] Unable to install 3.6.5 on Windows Server 2008

2018-04-10 Thread Carl

Carl  added the comment:

Steve,
there was no information or no log files created in %TEMP%, but you would think 
some kind of message dialog or log would be displayed or created. 

And I am aware of the end of life for 2008 r2 enterprise server, but this 
organization is still running this version for some of their servers.

--

___
Python tracker 

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



[issue33258] Unable to install 3.6.5 on Windows Server 2008

2018-04-10 Thread Steve Dower

Steve Dower  added the comment:

I believe these are both out of support, but the installer should be showing an 
error still.

If you look at recently created files in %TEMP% you may see some logs that will 
provide more information. The best resolution however is likely to require 
upgrading Windows Server or using an older version of Python

--

___
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-10 Thread Chris Bradbury

Change by Chris Bradbury :


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

___
Python tracker 

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



[issue33097] concurrent futures Executors accept tasks after interpreter shutdown

2018-04-10 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Thanks your contribution Mark!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
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



[issue33097] concurrent futures Executors accept tasks after interpreter shutdown

2018-04-10 Thread Antoine Pitrou

Antoine Pitrou  added the comment:


New changeset b26265900a18a184997c3c3a1fa6a5bf29703ec9 by Antoine Pitrou (Miss 
Islington (bot)) in branch '3.7':
bpo-33097: Fix submit accepting callable after executor shutdown by interpreter 
exit (GH-6144) (GH-6445)
https://github.com/python/cpython/commit/b26265900a18a184997c3c3a1fa6a5bf29703ec9


--

___
Python tracker 

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



[issue33097] concurrent futures Executors accept tasks after interpreter shutdown

2018-04-10 Thread miss-islington

Change by miss-islington :


--
pull_requests: +6140

___
Python tracker 

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



[issue33097] concurrent futures Executors accept tasks after interpreter shutdown

2018-04-10 Thread Antoine Pitrou

Antoine Pitrou  added the comment:


New changeset c4b695f85e141f57d22d8edf7bc2c756da136918 by Antoine Pitrou (Mark 
Nemec) in branch 'master':
bpo-33097: Fix submit accepting callable after executor shutdown by interpreter 
exit (GH-6144)
https://github.com/python/cpython/commit/c4b695f85e141f57d22d8edf7bc2c756da136918


--

___
Python tracker 

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



[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-04-10 Thread Ivan Pozdeev

Change by Ivan Pozdeev :


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

___
Python tracker 

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



[issue33258] Unable to install 3.6.5 on Windows Server 2008

2018-04-10 Thread Carl

New submission from Carl :

Hello,

I am trying to install python version 3.6.5 on a windows 2008 2008 rc2 SP1 
server.

I have tired both the installer for python-3.6.5.exe and python-3.6.5-amd64.exe 
installers. 

Both will not run on the server either from the gui or the command line prompt 
with admin privileges. It appears to run but nothing happens, no response or no 
error is provided. Any there any other methods to install this version?

--
components: Windows
messages: 315173
nosy: hpo0016, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Unable to install 3.6.5 on Windows Server 2008
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



[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-04-10 Thread Ivan Pozdeev

Change by Ivan Pozdeev :


Added file: https://bugs.python.org/file47530/TkinterCrash3-2-2.py

___
Python tracker 

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



[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-04-10 Thread Ivan Pozdeev

New submission from Ivan Pozdeev :

(Marked only 2.7 as affected but this would affect any branch if built with 
nonthreaded Tcl.)

When running the attached TkinterCrash2-2.py repeatedly with 2.7.14 and 2.7 
head, win7 x64, two kinds of errors pop up randomly:

1. Crashes and freezes.
2. Exceptions on the console like:

Exception in thread Thread-14:
Traceback (most recent call last):
  File "C:\Users\Sasha\Documents\cpython\lib\threading.py", line 801, in __boots
trap_inner
self.run()
  File "../tkt/TkinterCrash2-2.py", line 50, in run
self.deliverToqueue((self.target, z, y))
  File "../tkt/TkinterCrash2-2.py", line 133, in arrival_122
new_yz[1])
  File "C:\Users\Sasha\Documents\cpython\lib\lib-tk\Tkinter.py", line 2328, in 
create_line
return self._create('line', args, kw)
  File "C:\Users\Sasha\Documents\cpython\lib\lib-tk\Tkinter.py", line 2310, in 
_create
*(args + self._options(cnf, kw
ValueError: invalid literal for int() with base 10: 'None'


Running the same code with the minimal required changes (attached as 
TkinterCrash3-2-2.py) under 3.6 (same platform) goes without any errors.


Diagnostics showed:

1. Under debug Python, a crash became an MSVC double-free assertion error. The 
stacktrace is: 
Tkapp_Call->Tkapp_CallDeallocArgs->Tcl_DecrRefCount->TclFreeObj->free

2. The exceptions are caused by a ` create line` Tk call randomly 
returning "None" (a string) instead of an integer -- which it should never do 
according to its doc. Since it happens inconsistently, this also suggests a 
race condition.

3. In Tkapp_Call and SetVar, Tcl lock isn't held when creating/destroying Tcl 
objects for the call. The underlying fns modify the global state (free objects 
list, reference counters), so it should be held.
These two are the only such places in the code.


I've fixed this, will file the PR shortly. Holding the lock when calling 
Tkapp_CallDeallocArgs in Tkapp_Call eliminated the crashes and freezes, locking 
objects' creation in the same fn decreased the number of exceptions greatly, 
and locking creation in SetVar, too, eliminated them completely.


I did not check if objects created with AsObj in SetVar need to be disposed of 
like in Tkapp_Call.

Also have no idea how to autotest the fix. If someone does, I'm all ears.

--
components: Tkinter
files: TkinterCrash2-2.py
messages: 315172
nosy: Ivan.Pozdeev
priority: normal
severity: normal
status: open
title: Race conditions in Tkinter with non-threaded Tcl
type: crash
versions: Python 2.7
Added file: https://bugs.python.org/file47529/TkinterCrash2-2.py

___
Python tracker 

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



[issue33230] _decimal build failure (unsupported platform for that module) - evolution possible?

2018-04-10 Thread Hubert Holin

Hubert Holin  added the comment:

Yes, the error turned out to be that I had indeed forgotten to remove the 
--with-system-libmpdec along with the library and header. Now _decimal compiles 
fine. I will see if I can get Python to run with my system's mpdecimal (once I 
have updated it), but as far as this issue is concerned I believe it is indeed 
closed. Thanks for the help!

--

___
Python tracker 

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



[issue33254] importlib.resources.contents() incorrectly yields an empty list

2018-04-10 Thread Brett Cannon

Brett Cannon  added the comment:

I had to stare at it for a while since I knew it was for namespace packages and 
I'm so used to them returning a magical value to signal that fact, but then 
realize we don't even support namespace packages so it wasn't magical at all. ;)

And yes, I'll do a PR and make you a reviewer probably this Friday.

--

___
Python tracker 

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



[issue33252] Clarify ResourceWarning documentation

2018-04-10 Thread Ned Deily

Change by Ned Deily :


--
nosy: +ncoghlan

___
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-10 Thread Ned Deily

Change by Ned Deily :


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue31584] Documentation Language mixed up

2018-04-10 Thread Julien Palard

Julien Palard  added the comment:

I think so, at least since https://github.com/python/docsbuild-scripts/pull/36 
has been merged.

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



[issue28832] Reduce memset in dict creation

2018-04-10 Thread INADA Naoki

Change by INADA Naoki :


--
resolution:  -> wont fix
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



[issue31584] Documentation Language mixed up

2018-04-10 Thread INADA Naoki

INADA Naoki  added the comment:

Maybe, this issue is fixed?

--

___
Python tracker 

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



[issue30686] make `make install` faster

2018-04-10 Thread INADA Naoki

Change by INADA Naoki :


--
resolution:  -> wont fix
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



[issue33256] module is not displayed by cgitb.html

2018-04-10 Thread Stéphane Blondon

Change by Stéphane Blondon :


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

___
Python tracker 

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



[issue33256] module is not displayed by cgitb.html

2018-04-10 Thread Stéphane Blondon

Change by Stéphane Blondon :


--
type:  -> behavior

___
Python tracker 

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



[issue33256] module is not displayed by cgitb.html

2018-04-10 Thread Stéphane Blondon

New submission from Stéphane Blondon :

The html produced by cgitb.html() does not display  because the square 
brackets are interpreted as a html tag (see the picture in attachement).
This bug occurs if the code is called directly in the module, not inside a 
function or a class.

--
components: Library (Lib)
files: traceback_cgi.gif
messages: 315167
nosy: sblondon
priority: normal
severity: normal
status: open
title: module is not displayed by cgitb.html
Added file: https://bugs.python.org/file47528/traceback_cgi.gif

___
Python tracker 

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



[issue33237] Improve AttributeError message for partially initialized module

2018-04-10 Thread Nick Coghlan

Nick Coghlan  added the comment:

The main idea that comes to mind is to cache a reference to 
`_frozen_importlib._module_locks` in the interpreter state, and do a key lookup 
in there (since any in-progress import should have a lock allocated to it).

That would be a separate performance issue though - for this issue, we're on an 
error handling path, so the speed with which the error gets reported isn't 
critical (although it does technically slow down try/except import fallback 
chains).

--

___
Python tracker 

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



[issue33230] _decimal build failure (unsupported platform for that module) - evolution possible?

2018-04-10 Thread Stefan Krah

Stefan Krah  added the comment:

I'm trying to reduce the number of open issues that I'm involved in.

If something concrete comes up, feel free to reopen.

--
resolution:  -> works for me
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



[issue33255] json.dumps has different behaviour if encoding='utf-8' or encoding='utf8'

2018-04-10 Thread Nicolás Hatcher

New submission from Nicolás Hatcher :

Hey I'm new here, so please let me know what incorrect things I am doing!

I _think_ `json.dumps(o, ensure_ascii=False)` is doing the wrong thing when `o` 
has both unicode and str keys/values. For instance:

```
import json
o = {u"greeting": "hi", "currency": "€"}
json.dumps(o, ensure_ascii=False, encoding="utf8")
json.dumps(o, ensure_ascii=False)
```

The first `dumps` will work while the second will fail. the reason is:

https://github.com/python/cpython/blob/2.7/Lib/json/encoder.py#L198

This will decode any str if the encoding is not 'utf-8'. In the mixed case 
(unicode and str) this will blow. I workaround is to use any of the aliases for 
'utf-8' like 'utf8' or 'u8'.

I would be crazy happy to provide a PR if this is really an issue.
Let me know if extra clarification is needed.
Nicolás

--
components: Unicode
messages: 315164
nosy: ezio.melotti, nhatcher, vstinner
priority: normal
severity: normal
status: open
title: json.dumps has different behaviour if encoding='utf-8' or encoding='utf8'
type: behavior
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



[issue33253] xxsubtype.bench does not function correctly on CPython 3+

2018-04-10 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

3.4 and 3.5 are at security bug fixes only stage.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions:  -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



[issue31920] pygettext ignores directories as inputfile argument

2018-04-10 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:


New changeset a61f5da54772b0ea6a7eccf21df08e61585ef712 by Serhiy Storchaka in 
branch '2.7':
[2.7] bpo-31920: Fixed handling directories as arguments in the ``pygettext`` 
script. (GH-6259) (GH-6436)
https://github.com/python/cpython/commit/a61f5da54772b0ea6a7eccf21df08e61585ef712


--

___
Python tracker 

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



[issue31920] pygettext ignores directories as inputfile argument

2018-04-10 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
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



[issue12345] Add math.tau

2018-04-10 Thread Simon Baird

Change by Simon Baird :


--
nosy:  -sbaird

___
Python tracker 

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



[issue33253] xxsubtype.bench does not function correctly on CPython 3+

2018-04-10 Thread miss-islington

miss-islington  added the comment:


New changeset 910d71b839755baa31258bcc083be9191563819e by Miss Islington (bot) 
in branch '3.6':
bpo-33253: Fix xxsubtype.bench() to accept correct str signature. (GH-6439)
https://github.com/python/cpython/commit/910d71b839755baa31258bcc083be9191563819e


--

___
Python tracker 

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



[issue12345] Add math.tau

2018-04-10 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


--
pull_requests:  -6132

___
Python tracker 

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



[issue33253] xxsubtype.bench does not function correctly on CPython 3+

2018-04-10 Thread miss-islington

miss-islington  added the comment:


New changeset 9bb8cebdce99db7e7a94f15141a8e0514b51aa72 by Miss Islington (bot) 
in branch '3.7':
bpo-33253: Fix xxsubtype.bench() to accept correct str signature. (GH-6439)
https://github.com/python/cpython/commit/9bb8cebdce99db7e7a94f15141a8e0514b51aa72


--
nosy: +miss-islington

___
Python tracker 

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