[issue31052] smtplib not honoring bcc header

2017-07-26 Thread R. David Murray

R. David Murray added the comment:

smtplib in 2.7 doesn't know anything about RFC822 or any of the replacement 
RFCs.  sendmail accepts a *string*, and doesn't understand or modify anything 
about that string except the newlines.  It is your responsibility not to *add* 
the BCC header.  What you want to do is put the BCC (and CC!) recipients in 
your toaddr list passed to sendmail, and *not* add a BCC header.

In Python3 smtplib has a send_message method that accepts a Message object, and 
that method uses the BCC to inform where to send the message and strips the 
header before sending. That is, smtplib's send_message method *does* implement 
RFC5322 behaviors.

--
nosy: +r.david.murray
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue20754] Distribution.parse_config_files uses interpolation

2017-07-26 Thread Jason R. Coombs

Jason R. Coombs added the comment:

Given that it's a change in behavior and not a bugfix, I don't see how this 
change could go into anything but the next release.

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



[issue20754] Distribution.parse_config_files uses interpolation

2017-07-26 Thread Jason R. Coombs

Jason R. Coombs added the comment:

Ack. The interpolation behavior was also present in Python 2.7. I missed that 
when I found this ticket and assumed it was similar to issue 20120. In this 
ticket, the user is requesting that distutils actually change the behavior from 
performing interpolation to no longer performing it. This change is apparent 
now that Setuptools has a proper test for the desired behavior.

--
title: Distribution.parse_config_files uses interpolation since Python 3 -> 
Distribution.parse_config_files uses interpolation
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



[issue31046] ensurepip does not honour the value of $(prefix)

2017-07-26 Thread Nick Coghlan

Nick Coghlan added the comment:

This looks like the right technical fix to me (see 
https://pip.pypa.io/en/stable/reference/pip_install/#cmdoption-prefix), but I'd 
like Donald to confirm that before we merge anything.

Making this change will also require an update to the ensurepip docs: 
https://docs.python.org/3/library/ensurepip.html#command-line-interface

--

___
Python tracker 

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



[issue9566] Compilation warnings under x64 Windows

2017-07-26 Thread Steve Dower

Steve Dower added the comment:


New changeset a80e985c493d2ab9df0832c99d9ddb798d2e66cf by Steve Dower (Segev 
Finer) in branch 'master':
bpo-9566: Change HANDLE argument parsing to unsigned in msvcrtmodule.c (#2904)
https://github.com/python/cpython/commit/a80e985c493d2ab9df0832c99d9ddb798d2e66cf


--

___
Python tracker 

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



[issue31037] Results in section 4.4 break and continue

2017-07-26 Thread Zachary Ware

Zachary Ware added the comment:

We just received another report about this on docs@:

https://mail.python.org/pipermail/docs/2017-July/032314.html

--

___
Python tracker 

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



[issue20754] Distribution.parse_config_files uses interpolation since Python 3

2017-07-26 Thread Jason R. Coombs

Jason R. Coombs added the comment:

While investigating https://github.com/pypa/setuptools/issues/1062, I 
discovered that the implementation in the attached patch is insufficient. The 
'parse_config_files' calls ConfigParser.__init__ in two places, before the for 
loop and at the end of each loop iteration. The parameters to both calls needs 
to be the same, or the BasicInterpolation behavior is revived.

--

___
Python tracker 

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



[issue30853] IDLE: configdialog -- factor out Tracer subclass

2017-07-26 Thread Terry J. Reedy

Terry J. Reedy added the comment:

See in you can install blurb into 3.6 or even 3.5, (pip should work) and run it 
to add the blurb file.  I will fill in the body.

--

___
Python tracker 

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



[issue31003] IDLE: Add tests for help sources on configdialog general tab

2017-07-26 Thread Terry J. Reedy

Changes by Terry J. Reedy :


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



[issue31003] IDLE: Add tests for help sources on configdialog general tab

2017-07-26 Thread Terry J. Reedy

Changes by Terry J. Reedy :


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

___
Python tracker 

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



[issue31003] IDLE: Add tests for help sources on configdialog general tab

2017-07-26 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset 0c4c65104c951c70f3a2a2fd1a45bdf6540f3a8e by Terry Jan Reedy in 
branch '3.6':
[3.6] bpo-31003: IDLE - Add more tests for General tab (GH-2859) (#2906)
https://github.com/python/cpython/commit/0c4c65104c951c70f3a2a2fd1a45bdf6540f3a8e


--

___
Python tracker 

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



[issue21423] concurrent.futures.ThreadPoolExecutor/ProcessPoolExecutor should accept an initializer argument

2017-07-26 Thread Antony Lee

Antony Lee added the comment:

For cross-referencing purposes: I have proposed in 
http://bugs.python.org/issue25293 to allow passing a Thread/Process subclass as 
argument instead of an initializer function, which would both handle Mark 
Dickinson's comment (http://bugs.python.org/issue21423#msg218040) about passing 
the thread object as argument, and also allow for finalization.

--
nosy: +Antony.Lee

___
Python tracker 

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



[issue29214] Standard open() does not allow to specify file permissions.

2017-07-26 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
nosy: +giampaolo.rodola

___
Python tracker 

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



[issue30853] IDLE: configdialog -- factor out Tracer subclass

2017-07-26 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Go ahead.  If it works with font, add general tab.

CD.remove_var_callbacks is currently only called in 
test_configdialog.tearDownModule.  I added the call to prevent getting a 
TclError for each callback after the test finished.  .destroy does not destroy 
callbacks.

I presume remove_var_callbacks was written to be called in self.cancel. Then 
perhaps someone discovered that there was no visible effect of deleting it, 
perhaps because TclErrors are caught and ignored.  I want to put it, or the new 
equivalent, into cancel, before destroy.  And make  sure to add to 
teardownmodule.

--

___
Python tracker 

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



[issue29256] Windows select() errors out when given no fds to select on, which breaks SelectSelector

2017-07-26 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
nosy: +giampaolo.rodola

___
Python tracker 

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



[issue31053] Unnecessary argument in command example

2017-07-26 Thread KINEBUCHI Tomohiko

Changes by KINEBUCHI Tomohiko :


--
pull_requests: +2958

___
Python tracker 

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



[issue31053] Unnecessary argument in command example

2017-07-26 Thread KINEBUCHI Tomohiko

New submission from KINEBUCHI Tomohiko:

The command example running venv module for Windows has an unnecessary argument.

The following two command examples should be equivalent::

::

   c:\>c:\Python35\python -m venv c:\path\to\myenv

::

   c:\>python -m venv myenv c:\path\to\myenv

(from https://docs.python.org/3/library/venv.html#creating-virtual-environments)

--
assignee: docs@python
components: Documentation
messages: 299282
nosy: cocoatomo, docs@python
priority: normal
severity: normal
status: open
title: Unnecessary argument in command example
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



[issue31003] IDLE: Add tests for help sources on configdialog general tab

2017-07-26 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
pull_requests: +2957

___
Python tracker 

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



[issue31003] IDLE: Add tests for help sources on configdialog general tab

2017-07-26 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset 2bc8f0e6867f59e5e8444b2bde99bb0fa3dbefc8 by Terry Jan Reedy in 
branch 'master':
bpo-31003: IDLE - Add more tests for General tab (#2859)
https://github.com/python/cpython/commit/2bc8f0e6867f59e5e8444b2bde99bb0fa3dbefc8


--

___
Python tracker 

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



[issue30853] IDLE: configdialog -- factor out Tracer subclass

2017-07-26 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset 0243bea55dc340067247e635442f2a227705315a by Terry Jan Reedy in 
branch '3.6':
[3.6] bpo-30853:  IDLE: Factor a VarTrace class from configdialog.ConfigDialog. 
(GH-2872) (#2903)
https://github.com/python/cpython/commit/0243bea55dc340067247e635442f2a227705315a


--

___
Python tracker 

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



[issue31004] IDLE, configdialog: Factor out FontTab class from ConfigDialog

2017-07-26 Thread Cheryl Sabella

Cheryl Sabella added the comment:

PR is for step 1 since VarTrace is needed for step 2.

--

___
Python tracker 

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



[issue31004] IDLE, configdialog: Factor out FontTab class from ConfigDialog

2017-07-26 Thread Cheryl Sabella

Changes by Cheryl Sabella :


--
pull_requests: +2956

___
Python tracker 

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



[issue31052] smtplib not honoring bcc header

2017-07-26 Thread zoof

New submission from zoof:

When I try sending an email, using smtplib, with the bcc header set, the bcc 
header is included in messages send to the "to" and "cc" addresses. According 
to section 4.5.3 of rfc 822:

> The contents of this field are not included in copies of the message sent 
to the primary and secondary  recipients.

So this behavior is incorrect. It should not be up to the mail client to ignore 
the bcc field.

Here's a script that can replicate the problem:

#!/usr/bin/env python

import smtplib
from email.MIMEMultipart import MIMEMultipart
from email.MIMEText import MIMEText

body = "this is a test"

#craft the message
fromaddr = 'n...@example.com'
server = smtplib.SMTP('smtp.example.com', 587)
p = 'Hunter2!'
subject = "test"
toaddr = "f...@example.com"
ccaddr = "b...@example.com"
bccaddr = "b...@example.com"

msg = MIMEMultipart()

msg['cc'] = ccaddr
msg['bcc'] = bccaddr
msg['From'] = fromaddr
msg['To'] = toaddr
msg['Subject'] = subject
 
msg.attach(MIMEText(body, 'plain'))

#send the message
server.starttls()
server.login(fromaddr, p)
text = msg.as_string()
server.sendmail(fromaddr, toaddr, text)
server.quit()

--
components: Library (Lib)
messages: 299278
nosy: zoof
priority: normal
severity: normal
status: open
title: smtplib not honoring bcc header
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



[issue9566] Compilation warnings under x64 Windows

2017-07-26 Thread Segev Finer

Segev Finer added the comment:

@haypo https://github.com/python/cpython/pull/2904

--

___
Python tracker 

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



[issue9566] Compilation warnings under x64 Windows

2017-07-26 Thread STINNER Victor

STINNER Victor added the comment:

Two other broken buildbots:
http://buildbot.python.org/all/builders/AMD64%20Windows8%203.x/builds/967/steps/test/logs/stdio
http://buildbot.python.org/all/builders/AMD64%20Windows10%203.x/builds/997/steps/test/logs/stdio

--

___
Python tracker 

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



[issue9566] Compilation warnings under x64 Windows

2017-07-26 Thread STINNER Victor

STINNER Victor added the comment:

> New changeset 679b566622ec811c5e5d580f6a538f7a43006e05 by Steve Dower (Segev 
> Finer) in branch 'master':
> bpo-9566: Fix some Windows x64 compiler warnings (#2492)
> https://github.com/python/cpython/commit/679b566622ec811c5e5d580f6a538f7a43006e05

This change broke AMD64 Windows7 SP1 3.x buildbot, see the logs for all errors:

http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/796/steps/test/logs/stdio

--

___
Python tracker 

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



[issue30853] IDLE: configdialog -- factor out Tracer subclass

2017-07-26 Thread Cheryl Sabella

Cheryl Sabella added the comment:

Thanks!

I can try the font vars if you like.

One question I keep forgetting to ask -- I can't figure out how 
remove_var_callbacks gets called.  I've grepped for the name and didn't find it 
anywhere.  I don't know what I'm missing.

--

___
Python tracker 

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



[issue30980] Calling asyncore.file_wrapper.close twice may close unrelated file descriptor

2017-07-26 Thread STINNER Victor

Changes by STINNER Victor :


--
components: +Library (Lib)
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
type:  -> behavior
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



[issue30980] Calling asyncore.file_wrapper.close twice may close unrelated file descriptor

2017-07-26 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 25de5baf3eaebddbf879aacf49c0f614f922dc42 by Victor Stinner (Nir 
Soffer) in branch '3.6':
bpo-30980: Fix double close in asyncore.file_wrapper (#2789) (#2898)
https://github.com/python/cpython/commit/25de5baf3eaebddbf879aacf49c0f614f922dc42


--

___
Python tracker 

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



[issue30980] Calling asyncore.file_wrapper.close twice may close unrelated file descriptor

2017-07-26 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 29094cec7cddd561cac16ce93443ca72d740de4d by Victor Stinner (Nir 
Soffer) in branch '2.7':
bpo-30980: Fix double close in asyncore.file_wrapper (#2789) (#2900)
https://github.com/python/cpython/commit/29094cec7cddd561cac16ce93443ca72d740de4d


--

___
Python tracker 

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



[issue9566] Compilation warnings under x64 Windows

2017-07-26 Thread Segev Finer

Changes by Segev Finer :


--
pull_requests: +2955

___
Python tracker 

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



[issue30853] IDLE: configdialog -- factor out Tracer subclass

2017-07-26 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I will include new blurb with PR that uses this with font vars.  I might do 
this tonight.

Test coverage of class is 100%.

--
stage: test needed -> needs patch
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



[issue30853] IDLE: configdialog -- factor out Tracer subclass

2017-07-26 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
pull_requests: +2954

___
Python tracker 

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



[issue30853] IDLE: configdialog -- factor out Tracer subclass

2017-07-26 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset 45bf723c6c591ec56a18dad8150ae89797450d8b by Terry Jan Reedy 
(csabella) in branch 'master':
bpo-30853:  IDLE: Factor a VarTrace class from configdialog.ConfigDialog. 
(#2872)
https://github.com/python/cpython/commit/45bf723c6c591ec56a18dad8150ae89797450d8b


--

___
Python tracker 

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



[issue5288] tzinfo objects with sub-minute offsets are not supported (e.g. UTC+05:53:28)

2017-07-26 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
assignee:  -> belopolsky

___
Python tracker 

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



[issue31003] IDLE: Add tests for help sources on configdialog general tab

2017-07-26 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Coverage up to 63%.  Will update on another issue as update here will require 
another CI round.

--

___
Python tracker 

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



[issue9566] Compilation warnings under x64 Windows

2017-07-26 Thread Steve Dower

Steve Dower added the comment:


New changeset 5cff6379797967faabbb834a9eb154c3f0839489 by Steve Dower (Segev 
Finer) in branch 'master':
bpo-9566: Fixed _ssl module warnings (#2495)
https://github.com/python/cpython/commit/5cff6379797967faabbb834a9eb154c3f0839489


--

___
Python tracker 

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



[issue9566] Compilation warnings under x64 Windows

2017-07-26 Thread Steve Dower

Steve Dower added the comment:


New changeset 679b566622ec811c5e5d580f6a538f7a43006e05 by Steve Dower (Segev 
Finer) in branch 'master':
bpo-9566: Fix some Windows x64 compiler warnings (#2492)
https://github.com/python/cpython/commit/679b566622ec811c5e5d580f6a538f7a43006e05


--

___
Python tracker 

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



[issue30916] Pre-build OpenSSL and Tcl/Tk for Windows

2017-07-26 Thread Segev Finer

Changes by Segev Finer :


--
pull_requests: +2953

___
Python tracker 

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



[issue31047] Windows: os.path.isabs(os.path.abspath(" ")) == False

2017-07-26 Thread Eryk Sun

Eryk Sun added the comment:

The generic abspath implementation could be moved into the genericpath module, 
where it will be common to both posixpath and ntpath:

def abspath(path):
"""Return an absolute path."""
path = os.fspath(path)
if not isabs(path):
if isinstance(path, bytes):
cwd = os.getcwdb()
else:
cwd = os.getcwd()
path = join(cwd, path)
return normpath(path)

Then replace it in ntpath if nt._getfullpathname is defined, but with a 
fallback to the generic implementation if OSError is raised (e.g. for " "):

try:
from nt import _getfullpathname
except ImportError:
pass
else:
def abspath(path):
"""Return an absolute path."""
try:
return _getfullpathname(path)
except OSError:
return genericpath.abspath(path)

This _getfullpathname version also skips the redundant fspath and normpath 
calls.

--
nosy: +eryksun

___
Python tracker 

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



[issue31051] IDLE, configdialog, General tab: re-arrange, test user entries

2017-07-26 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Common code in tests: test_helplist_item_actions functions have common code 
that could be factored out into a non-test_ method (especially if settings not 
needed for one of them is added, like setting anchor).

The listbox simulated click code in test_source_selected is copied from 
FontTest.test_fontlist_mouse.  Make global click_listbox(item-to-add).

--

___
Python tracker 

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



[issue31051] IDLE, configdialog, General tab: re-arrange, test user entries

2017-07-26 Thread Terry J. Reedy

Terry J. Reedy added the comment:

In 31003, Cheryl pointed out that loading helplist could use enumerate.
https://github.com/python/cpython/pull/2859#pullrequestreview-52461722

--

___
Python tracker 

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



[issue31051] IDLE, configdialog, General tab: re-arrange, test user entries

2017-07-26 Thread Terry J. Reedy

Terry J. Reedy added the comment:

In comment for 31003, Cheryl pointed to 
https://stackoverflow.com/questions/4140437/interactively-validating-entry-widget-content-in-tkinter#4140988

That prompted me to grep for 'validatecommand'.  "validatecommand=is_int" is 
used on the extension tab.  The function is at the end of the file. We just 
need to modify to is_pos_int and use it the same way.

is_int allows blanks. That should mean to accept the default, whatever is it.  
A blank should be turned back to the default.  is_int checks that int(entry) 
does not raise value error.  I believe int now accept non-ascii digits.  We 
should check that that such pass through configparser okay. (I believe they 
should, as I believe it just calls int on the string read.)  Or only store the 
ascii version.  I suspect that tk wants ascii digits, 

The confusion of converting between strings and non-string objects is 
exacerbated by tk wanting strings (which it converts to C byte encodings) and 
tkinter doing automatic conversions.

--
nosy: +csabella, louielu

___
Python tracker 

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



[issue31051] IDLE, configdialog, General tab: re-arrange, test user entries

2017-07-26 Thread Terry J. Reedy

New submission from Terry J. Reedy:

Fix bugs and enhance the page.

The three little frames are too much, and in the wrong order. Proposal:

Window to open at startup:   O Shell O Editor
Initial size:Width [_]   Height []
When run code in editor: ... (see bpo-19042 for possible change)

This compression will make room for former extension options (#27099). 

Tk variable startup_editor should be BooleanVar.

Size vars should be IntVars.  Accepting *and saving* 'nonsense' as a size is a 
bug (idlfConf issues a warning when reading).  Sizes should be at least 1.  
Changing to spinbox would ensure this.  Or validate entry on each char (only 
accept ascii digits).

For helplist, Up and Down keys move selection indicator but *do not move the 
internal selection*.  Delete key deletes the internal selection, not the item 
highlighted.  Fix should be similar to fix for fontlist.

--
assignee: terry.reedy
components: IDLE
messages: 299262
nosy: terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: IDLE, configdialog, General tab: re-arrange, test user entries
type: behavior
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



[issue31036] building the python docs requires the blurb module

2017-07-26 Thread Larry Hastings

Larry Hastings added the comment:

And, in the past, I'm not aware that the availability of tools in the Debian 
ecosystem has been a strong determining factor in the choice of tooling for 
CPython.  In particular, I'm not aware of any tool in the Debian package 
ecosystem that would solve the problem blurb solves, much less in exactly the 
way blurb does it.  In fact, there was no existing tool anywhere that solved 
the *exact* problem we had.  So we wrote our own.  And obviously a newly 
written tool isn't going to have a Debian package.  So your argument "you 
should only choose external dependencies that already have Debian packages" 
isn't going to work either, as that is not and has never been a rule in CPython 
development.

I'm pretty sure blurb is going to remain a part of the CPython toolchain.  The 
slight inconvenience you have registered here is so far not enough of a 
negative vote to outweigh the groundswell of positive support.  I suggest you 
redirect your energies to solving the problem rather than complaining about it.

--

___
Python tracker 

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



[issue31036] building the python docs requires the blurb module

2017-07-26 Thread Larry Hastings

Larry Hastings added the comment:

We changed *revision control systems* "within subminor version updates".  If 
your argument is "you mustn't add a new tool used to build the documentation 
until 3.7", you're not going to win that argument, you should try another 
tactic.

--

___
Python tracker 

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



[issue31050] IDLE, configdialog: Factor out GenTab class from ConfigDialog

2017-07-26 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
components: +IDLE
stage:  -> needs patch
type:  -> enhancement
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



[issue31050] IDLE, configdialog: Factor out GenTab class from ConfigDialog

2017-07-26 Thread Terry J. Reedy

New submission from Terry J. Reedy:

Followup to 31003, tests, and 30853, tracers, similar to 31004, FontTab.

After creating new class, we can change names without worry about clashing with 
names elsewhere in ConfigDialog.

--
messages: 299259
nosy: csabella, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE, configdialog: Factor out GenTab class from ConfigDialog

___
Python tracker 

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



[issue24502] OS X installer provides flat sub-packages with no version numbers

2017-07-26 Thread Ned Deily

Changes by Ned Deily :


--
versions: +Python 3.7 -Python 3.5

___
Python tracker 

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



[issue31049] macOS Python package receipts do not have version numbers

2017-07-26 Thread Ned Deily

Ned Deily added the comment:

Thanks for the report.  Issue24502 has already reported this issue.  Feel free 
to add yourself to the Nosy List there.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> OS X installer provides flat sub-packages with no version 
numbers

___
Python tracker 

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



[issue31004] IDLE, configdialog: Factor out FontTab class from ConfigDialog

2017-07-26 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
nosy: +csabella

___
Python tracker 

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



[issue31004] IDLE, configdialog: Factor out FontTab class from ConfigDialog

2017-07-26 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
dependencies: +IDLE: configdialog -- factor out Tracer subclass

___
Python tracker 

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



[issue30980] Calling asyncore.file_wrapper.close twice may close unrelated file descriptor

2017-07-26 Thread Nir Soffer

Changes by Nir Soffer :


--
pull_requests: +2952

___
Python tracker 

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



[issue30980] Calling asyncore.file_wrapper.close twice may close unrelated file descriptor

2017-07-26 Thread Nir Soffer

Changes by Nir Soffer :


--
pull_requests: +2951

___
Python tracker 

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



[issue30980] Calling asyncore.file_wrapper.close twice may close unrelated file descriptor

2017-07-26 Thread Nir Soffer

Changes by Nir Soffer :


--
pull_requests: +2950

___
Python tracker 

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



[issue31049] macOS Python package receipts do not have version numbers

2017-07-26 Thread Shea Craig

New submission from Shea Craig:

The Python installer package for macOS is versioned, however, the included sub 
packages have no version information. This results in the receipts having no 
version. Many enterprise software management tools rely on the receipt 
information to determine whether something is present and whether it's due for 
an update. We use Munki, are are currently working around this issue, but 
ideally the subpackages would have the version info included.

$ for PKG in $(pkgutil --pkgs | grep org.python);do pkgutil --pkg-info $PKG;done
package-id: org.python.Python.PythonApplications-3.6
version: 0
volume: /
location: Applications
install-time: 1494351483
package-id: org.python.Python.PythonDocumentation-3.6
version: 0
volume: /
location: 
Library/Frameworks/Python.framework/Versions/3.6/Resources/English.lproj/Documentation
install-time: 1494351483
package-id: org.python.Python.PythonFramework-3.6
version: 0
volume: /
location: Library/Frameworks/Python.framework
install-time: 1494351483
package-id: org.python.Python.PythonUnixTools-3.6
version: 0
volume: /
location: usr/local/bin
install-time: 1494351483

--
components: macOS
messages: 299257
nosy: Shea Craig, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: macOS Python package receipts do not have version numbers
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



[issue31048] ResourceWarning in test_asyncio.test_events..ProactorEventLoopTests.test_create_server_ssl_verify_failed

2017-07-26 Thread Segev Finer

New submission from Segev Finer:

>python -X tracemalloc=30 -m unittest 
>test.test_asyncio.test_events.ProactorEventLoopTests.test_create_server_ssl_verify_failed
Running Debug|x64 interpreter...
lib\asyncio\sslproto.py:330: ResourceWarning: unclosed transport 

  source=self)
Object allocated at (most recent call first):
  File "lib\asyncio\sslproto.py", lineno 435
self, self._app_protocol)
  File "lib\asyncio\proactor_events.py", lineno 401
server_side, server_hostname)
  File "lib\asyncio\proactor_events.py", lineno 507
extra={'peername': addr}, server=server)
  File "lib\asyncio\events.py", lineno 122
self._callback(*self._args)
  File "lib\asyncio\base_events.py", lineno 1413
handle._run()
  File "lib\asyncio\base_events.py", lineno 420
self._run_once()
  File "lib\asyncio\base_events.py", lineno 453
self.run_forever()
  File "lib\test\test_asyncio\test_events.py", lineno 1099
self.loop.run_until_complete(f_c)
  File "lib\unittest\case.py", lineno 615
testMethod()
  File "lib\unittest\case.py", lineno 663
return self.run(*args, **kwds)
  File "lib\unittest\suite.py", lineno 122
test(result)
  File "lib\unittest\suite.py", lineno 84
return self.run(*args, **kwds)
  File "lib\unittest\suite.py", lineno 122
test(result)
  File "lib\unittest\suite.py", lineno 84
return self.run(*args, **kwds)
  File "lib\unittest\runner.py", lineno 176
test(result)
  File "lib\unittest\main.py", lineno 256
self.result = testRunner.run(self.test)
  File "lib\unittest\main.py", lineno 95
self.runTests()
  File "lib\unittest\__main__.py", lineno 18
main(module=None)
  File "lib\runpy.py", lineno 85
exec(code, run_globals)
  File "lib\runpy.py", lineno 193
"__main__", mod_spec)
.
--
Ran 1 test in 1.408s

OK

--
components: Tests, Windows
messages: 299256
nosy: Segev Finer, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: ResourceWarning in 
test_asyncio.test_events..ProactorEventLoopTests.test_create_server_ssl_verify_failed
type: resource usage
versions: Python 3.7

___
Python tracker 

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



[issue30778] test_bsddb3 crash on x86 Windows XP 2.7

2017-07-26 Thread STINNER Victor

STINNER Victor added the comment:

Reopen since we got a similar issue on Windows 7:

http://buildbot.python.org/all/builders/x86%20Windows7%202.7/builds/242/steps/test/logs/stdio

(...)
0:35:07 [398/403] test_generators passed -- running: test_bsddb3 (1233 sec)
0:35:07 [399/403] test_MimeWriter passed -- running: test_bsddb3 (1234 sec)
0:35:08 [400/403] test_macostools skipped -- running: test_bsddb3 (1234 sec)
test_macostools skipped -- No module named MacOS
0:35:18 [401/403] test_winsound passed -- running: test_bsddb3 (1244 sec)
0:35:18 [402/403] test_old_mailbox passed -- running: test_bsddb3 (1245 sec)

command timed out: 1200 seconds without output running 
['Tools\\buildbot\\test.bat', '-j2'], attempting to kill
running: test_bsddb3 (1275 sec)
running: test_bsddb3 (1305 sec)
running: test_bsddb3 (1335 sec)
(...)
running: test_bsddb3 (2415 sec)
running: test_bsddb3 (2445 sec)
0:55:30 [403/403/1] test_bsddb3 crashed
program finished with exit code 1
elapsedTime=3342.189000

--
resolution: fixed -> 
status: closed -> open

___
Python tracker 

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



[issue5288] tzinfo objects with sub-minute offsets are not supported (e.g. UTC+05:53:28)

2017-07-26 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

Most of the code supporting arbitrary offsets has already been committed.  The 
only part left was to remove the checks and implement printing.

--

___
Python tracker 

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



[issue5288] tzinfo objects with sub-minute offsets are not supported (e.g. UTC+05:53:28)

2017-07-26 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
pull_requests: +2949

___
Python tracker 

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



[issue31047] Windows: os.path.isabs(os.path.abspath(" ")) == False

2017-07-26 Thread Christoph Reiter

New submission from Christoph Reiter:

On Windows os.path.abspath(" ") == " "

While that's not a valid Windows path, similar invalid paths like "" or "?" etc 
all produce an absolute path.

Tested on 2.7 and 3.6

--
components: Windows
messages: 299253
nosy: lazka, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Windows: os.path.isabs(os.path.abspath(" ")) == False
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



[issue31046] ensurepip does not honour the value of $(prefix)

2017-07-26 Thread Xavier de Gaye

New submission from Xavier de Gaye:

When cross-compiling, the local Python interpreter that is used to run 
ensurepip may not have the same value of sys.prefix as the value of the 
'prefix' variable that is set in the Makefile.

With the following values used to install Python locally for a later copy to 
the files hierarchy owned by the 'termux' application on an Android device:

DESTDIR=/tmp/android
prefix=/data/data/com.termux/files/usr/local

'make install' causes ensurepip to install pip in $(DESTDIR)/usr/local instead 
of the expected $(DESTDIR)/$(prefix) where is installed the standard library.

The attached patch fixes the problem. The patch was implemented assuming that 
pip uses distutils for the installation (note that setup.py also uses the 
--prefix option in the Makefile), but I know nothing about pip so forgive me if 
the patch is wrong and please just assume it is just a way to demonstrate the 
problem.

--
components: Cross-Build
files: ensurepip_prefix.diff
keywords: patch
messages: 299252
nosy: Alex.Willmer, dstufft, martin.panter, ncoghlan, xdegaye
priority: normal
severity: normal
status: open
title: ensurepip does not honour the value of $(prefix)
type: behavior
versions: Python 3.7
Added file: http://bugs.python.org/file47041/ensurepip_prefix.diff

___
Python tracker 

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



[issue30876] SystemError on importing module from unloaded package

2017-07-26 Thread Dmitry Kazakov

Dmitry Kazakov added the comment:

Please ignore my last message, I didn't notice the existing pull request... 
Sorry.

--

___
Python tracker 

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



[issue5288] tzinfo objects with sub-minute offsets are not supported (e.g. UTC+05:53:28)

2017-07-26 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
priority: low -> 
versions: +Python 3.7 -Python 3.5

___
Python tracker 

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



[issue30916] Pre-build OpenSSL and Tcl/Tk for Windows

2017-07-26 Thread Steve Dower

Steve Dower added the comment:

That buildbot has recovered with other changes, so I'm closing this.

--
resolution:  -> fixed
stage: commit review -> resolved
status: open -> closed

___
Python tracker 

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



[issue30916] Pre-build OpenSSL and Tcl/Tk for Windows

2017-07-26 Thread Steve Dower

Changes by Steve Dower :


--
pull_requests:  -2894

___
Python tracker 

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



[issue9566] Compilation warnings under x64 Windows

2017-07-26 Thread Steve Dower

Steve Dower added the comment:


New changeset e7bc7aac3d4a7d92aa5913006b0198820882ca59 by Steve Dower (Segev 
Finer) in branch 'master':
bpo-9566: Fix a warning in Python/getargs.c (#2890)
https://github.com/python/cpython/commit/e7bc7aac3d4a7d92aa5913006b0198820882ca59


--

___
Python tracker 

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



[issue30778] test_bsddb3 crash on x86 Windows XP 2.7

2017-07-26 Thread STINNER Victor

STINNER Victor added the comment:

test_bsddb3 is now skipped on Windows XP (on Python 2.7).

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue30778] test_bsddb3 crash on x86 Windows XP 2.7

2017-07-26 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 0cba38d207dc233707b09787e6618cfca44cc2b7 by Victor Stinner in 
branch '2.7':
bpo-30778: Skip test_bsddb3 on Windows XP (#2877)
https://github.com/python/cpython/commit/0cba38d207dc233707b09787e6618cfca44cc2b7


--

___
Python tracker 

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



[issue31019] multiprocessing.Pool should join "dead" processes

2017-07-26 Thread STINNER Victor

STINNER Victor added the comment:


New changeset b65cb8a35641675d44af84c9b18c40c6094f03ef by Victor Stinner in 
branch '2.7':
bpo-31019: Fix multiprocessing.Process.is_alive() (#2875) (#2882)
https://github.com/python/cpython/commit/b65cb8a35641675d44af84c9b18c40c6094f03ef


--

___
Python tracker 

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



[issue31019] multiprocessing.Pool should join "dead" processes

2017-07-26 Thread STINNER Victor

STINNER Victor added the comment:

I fixed multiprocessing.Process.is_alive() in 2.7, 3.6 and master. I close the 
issue.

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
versions: +Python 2.7, Python 3.6

___
Python tracker 

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



[issue30595] test_queue_feeder_donot_stop_onexc() of test_multiprocessing_spawn fails randomly on x86 Windows7 3.x

2017-07-26 Thread STINNER Victor

STINNER Victor added the comment:

I fixed multiprocessing.Queue.get(timeout) in 2.7, 3.6 and master. I close the 
issue.

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
versions: +Python 2.7, Python 3.6

___
Python tracker 

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



[issue30595] test_queue_feeder_donot_stop_onexc() of test_multiprocessing_spawn fails randomly on x86 Windows7 3.x

2017-07-26 Thread STINNER Victor

STINNER Victor added the comment:


New changeset ec9a7127b8196dc5ef27c5ee2772ecea7cbb32df by Victor Stinner in 
branch '2.7':
[3.6] bpo-30595: Fix multiprocessing.Queue.get(timeout) (#2027) (#2881) (#2883)
https://github.com/python/cpython/commit/ec9a7127b8196dc5ef27c5ee2772ecea7cbb32df


--

___
Python tracker 

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



[issue30119] (ftplib) A remote attacker could possibly attack by containing the newline characters

2017-07-26 Thread STINNER Victor

STINNER Victor added the comment:


New changeset e5eae474c431af2880a68f6329840b9288fc4bc1 by Victor Stinner 
(Dong-hee Na) in branch '2.7':
[2.7] bpo-30119: fix ftplib.FTP.putline() to throw an error for a illegal 
command (#1214) (#2894)
https://github.com/python/cpython/commit/e5eae474c431af2880a68f6329840b9288fc4bc1


--

___
Python tracker 

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



[issue24954] No way to generate or parse timezone as produced by datetime.isoformat()

2017-07-26 Thread Guido van Rossum

Guido van Rossum added the comment:

Please do! I have no opinion on %::z but maybe you can find inspiration in the 
Zen of Python. :-)

--

___
Python tracker 

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



[issue5288] tzinfo objects with sub-minute offsets are not supported (e.g. UTC+05:53:28)

2017-07-26 Thread Guido van Rossum

Guido van Rossum added the comment:

I haven't reviewed the code, but given Tim Peters' response (which matches my 
own gut feeling) we should just allow/support tz offsets with second-precision 
(and deal with the default formatting issues in a backwards compatible way, of 
course). Hope the patches aren't too stale -- good luck moving them to GitHub!

--

___
Python tracker 

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



[issue5288] tzinfo objects with sub-minute offsets are not supported (e.g. UTC+05:53:28)

2017-07-26 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
nosy: +gvanrossum

___
Python tracker 

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



[issue24954] No way to generate or parse timezone as produced by datetime.isoformat()

2017-07-26 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

This issue is waiting for the final decision on #5288.  If sub-minute offsets 
support is accepted, I still don't think we need %::z because %:z can simply 
add non-zero :seconds as needed.  There are also some review comments on the 
latest patch that have not been addressed.  Overall this is an easy issue and 
it would be quite doable to get it resolved for 3.7.

--
versions: +Python 3.7 -Python 3.6

___
Python tracker 

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



[issue31040] mimetypes.add_type should complain when you give it an undotted ext

2017-07-26 Thread Daniel Watkins

Changes by Daniel Watkins :


--
pull_requests: +2948

___
Python tracker 

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



[issue30721] Show expected input for right shift operator usage in custom "print" error message

2017-07-26 Thread Nick Coghlan

Nick Coghlan added the comment:

Checking how we do it elsewhere, `NB_SLOT(nb_rshift)` looks like the right 
replacement.

That's a compiler-dependent struct field offset calculation, so a discrepancy 
there could easily be the cause of a Windows-only failure.

--

___
Python tracker 

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



[issue24954] No way to generate or parse timezone as produced by datetime.isoformat()

2017-07-26 Thread Guido van Rossum

Guido van Rossum added the comment:

Alexander, can you summarize the status of this issue? Maybe we can move 
forward for 3.7?

--

___
Python tracker 

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



[issue31038] test_runpy causes running all Python tests when run directly

2017-07-26 Thread Nick Coghlan

Nick Coghlan added the comment:

This is a result of a known quirk in the way sys.path entry execution works: 
the search for "__main__.py" isn't constrained specifically to sys.path[0].

That's almost entirely a bad thing, but I'd been ignoring it because I hadn't 
thought of a nice way of fixing it that didn't require some substantial changes 
to the import system APIs.

However, it just occurred to me that I may have been overcomplicating matters: 
we don't need to keep runpy from *finding* a __main__.py from outside 
sys.path[0] in this case, we just need to keep it from *running* it.

That means that after we find the candidate module spec for __main__, we can 
introduce a new constraint:

if os.path.commonpath([sys.path[0], spec.origin]) != sys.path[0]:
raise RuntimeError(...)

It might still be a little fiddly to decide exactly when to enforce the 
constraint, but it should still be much easier than attempting to constrain the 
search for the spec directly.

--
nosy: +brett.cannon, eric.snow

___
Python tracker 

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



[issue30188] test_nntplib: random EOFError in setUpClass()

2017-07-26 Thread INADA Naoki

INADA Naoki added the comment:


New changeset 067931dd95ddfa34297be9c602a796d9f8d9bea3 by INADA Naoki in branch 
'master':
bpo-30188: fix TypeError in test_nntplib (GH-2892)
https://github.com/python/cpython/commit/067931dd95ddfa34297be9c602a796d9f8d9bea3


--
nosy: +inada.naoki

___
Python tracker 

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



[issue31025] io.BytesIO: no way to get the length of the underlying buffer without copying data

2017-07-26 Thread R. David Murray

R. David Murray added the comment:

So you are saying that BytesIO has code that checks that its argument only has 
a single reference and modifies the string in place when it can if so?  You 
can't depend on that in any other implementation of Python, and shouldn't 
depend on it in CPython either.  Even in CPython you can't guarantee that case 
1 is case 1, since the argument could conceivably be an interned string.

So the seek approach is the only one that makes semantic sense, I think.

--

___
Python tracker 

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



[issue31045] Add a language switch to the Python documentation

2017-07-26 Thread Julien Palard

New submission from Julien Palard:

A language switch, like the actual version switch, should allow to change from 
a translation to another.

I mean jumping from docs.python.org/3/ to docs.python.org/fr/3/ and so on.

It's already discussed in PEP 545.

--
messages: 299234
nosy: mdk
priority: normal
pull_requests: 2947
severity: normal
status: open
title: Add a language switch to the Python documentation

___
Python tracker 

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



[issue31021] Clarify programming faq.

2017-07-26 Thread Marco Buttu

Marco Buttu added the comment:

Terry thanks for opening this issue.

The title of the FAQ makes me think that the section wants to clarify why -22 
// 10 returns -3.  I am a bit confused, maybe because -22//10 == -3 does not 
surprise me, and so I do not understand the point :( 
 This seems to me a section about the module rather than floor division.

If the section wants to clarify the floor division behavior in Python, IMHO at 
the beginning of the section we have to explain why -22//10 == -3 may surprise 
the reader (it is not clear to me, so maybe it could not surprise other readers 
too), and then the reasons that justify why to have -22//10 == -3.

--
nosy: +marco.buttu

___
Python tracker 

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



[issue30876] SystemError on importing module from unloaded package

2017-07-26 Thread Dmitry K

Dmitry K added the comment:

test_concurrency (test.test_import.ImportTests) seems to fail, too, with a 
similar error:

ModuleNotFoundError: No module named 'package'

Apparently, this happens because the LIBSUBDIRS variable in Makefile doesn't 
include all the subdirectories of test/test_import/data. Adding the following 
two lines fixed the issue for me:

   test/test_import/data/package \
   test/test_import/data/package2 \

Should I submit a patch?

--
nosy: +vaultah

___
Python tracker 

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



[issue30119] (ftplib) A remote attacker could possibly attack by containing the newline characters

2017-07-26 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

AFAIK its only use case is to escape \r and \n.

--

___
Python tracker 

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



[issue30119] (ftplib) A remote attacker could possibly attack by containing the newline characters

2017-07-26 Thread STINNER Victor

STINNER Victor added the comment:

Victor> What about rejecting also NUL byte?
Giampaolo Rodola'> I don't it would make any difference at this point.

I asked because I read that filenames containing newlines can be escaped using 
\n\0. So it seems like "embedded" NUL bytes have a special semantic in FTP.
http://bugs.python.org/issue29606#msg292677

I have no opinion on NUL bytes. It's just that I saw them mentionned somewhere 
in the discussion, but I failed to see a rationale to accept or reject them.

--

___
Python tracker 

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



[issue30119] (ftplib) A remote attacker could possibly attack by containing the newline characters

2017-07-26 Thread Dong-hee Na

Changes by Dong-hee Na :


--
pull_requests: +2946

___
Python tracker 

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



[issue30119] (ftplib) A remote attacker could possibly attack by containing the newline characters

2017-07-26 Thread Dong-hee Na

Changes by Dong-hee Na :


--
pull_requests: +2945

___
Python tracker 

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



[issue30119] (ftplib) A remote attacker could possibly attack by containing the newline characters

2017-07-26 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

> What about rejecting also NUL byte?

I don't it would make any difference at this point.

--

___
Python tracker 

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



[issue31044] FAIL: test_makedev (test.test_posix.PosixTester) on AMD64 FreeBSD CURRENT

2017-07-26 Thread STINNER Victor

STINNER Victor added the comment:

The test fails on Debug but also Non-Debug buildbots, master and 3.6 branches. 
It looks more like a change on the buildbot, maybe a FreeBSD upgrade?

--
title: FAIL: test_makedev (test.test_posix.PosixTester) on AMD64 FreeBSD 
CURRENT Debug 3.x -> FAIL: test_makedev (test.test_posix.PosixTester) on AMD64 
FreeBSD CURRENT

___
Python tracker 

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



[issue30119] (ftplib) A remote attacker could possibly attack by containing the newline characters

2017-07-26 Thread STINNER Victor

STINNER Victor added the comment:

@corona10: Cool, 3.3, 3.5, 3.6 and master are fixed. Would you mind to create 
also backports for 2.7 and 3.4, please?

--

___
Python tracker 

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



[issue30119] (ftplib) A remote attacker could possibly attack by containing the newline characters

2017-07-26 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 8c2d4cf092c5f0335e7982392a33927579c4d512 by Victor Stinner 
(Dong-hee Na) in branch '3.6':
[3.6] bpo-30119: fix ftplib.FTP.putline() to throw an error for a illegal 
command (#1214) (#2886)
https://github.com/python/cpython/commit/8c2d4cf092c5f0335e7982392a33927579c4d512


--

___
Python tracker 

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



[issue30188] test_nntplib: random EOFError in setUpClass()

2017-07-26 Thread INADA Naoki

Changes by INADA Naoki :


--
pull_requests: +2944

___
Python tracker 

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



[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-26 Thread STINNER Victor

STINNER Victor added the comment:

> Secretly, I'm just happy that my legacy will not be a commit which broke all 
> (?) the build-bots and had to be reverted. :P

Reverting is a new policy that we decided last June:
https://mail.python.org/pipermail/python-committers/2017-June/004588.html

Sorry that your commit was the first guilty, but honestly, it was a wise 
decision since it allowed to discuss how to handle tzdata without the pressure 
of broken buildbots. Nowadays, Python relies much more on CI for pull requests 
than before the migration to GitHub.

Well, read the thread if you want to know the full rationale.

--

___
Python tracker 

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



[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-26 Thread Utkarsh Upadhyay

Utkarsh Upadhyay added the comment:

Thanks Victor! \o/

Secretly, I'm just happy that my legacy will not be a commit which broke all 
(?) the build-bots and had to be reverted. :P

W.r.t. the docs; in retrospect, that'll probably have a larger impact on the 
end-users and is less likely to cause disagreement. I probably should have led 
with that. :)

~
ut

--

___
Python tracker 

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



[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-26 Thread STINNER Victor

STINNER Victor added the comment:

Ok, I merged the change in the 3.6 branch.

I decided to not merge the 3.5 change, since it's now too late: 3.5 slowly 
enters a new security-only fixes:
https://github.com/python/cpython/pull/2815

Thanks Utkarsh Upadhyay for your work on datetime, not only this issue, but 
also repr(timedelta) (and maybe also timedelta constructor doc later? ;-)).

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



[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-26 Thread STINNER Victor

STINNER Victor added the comment:


New changeset c52cea49544621b612c7f17f45a0c2b8b61a6c67 by Victor Stinner 
(Utkarsh Upadhyay) in branch '3.6':
[3.6] bpo-30822: Fix testing of datetime module. (GH-2530) (GH-2783) (#2816)
https://github.com/python/cpython/commit/c52cea49544621b612c7f17f45a0c2b8b61a6c67


--

___
Python tracker 

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



  1   2   >