[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

[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

[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

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

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

[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

[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

[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

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

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

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

[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

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

[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

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

[issue31053] Unnecessary argument in command example

2017-07-26 Thread KINEBUCHI Tomohiko
Changes by KINEBUCHI Tomohiko : -- pull_requests: +2958 ___ Python tracker ___ ___

[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

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

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

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

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

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

2017-07-26 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +2956 ___ Python tracker ___ ___

[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

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

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

[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

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

[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

[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

[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

[issue9566] Compilation warnings under x64 Windows

2017-07-26 Thread Segev Finer
Changes by Segev Finer : -- pull_requests: +2955 ___ Python tracker ___ ___

[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

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

2017-07-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2954 ___ Python tracker ___ ___

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

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

[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

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

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

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

2017-07-26 Thread Segev Finer
Changes by Segev Finer : -- pull_requests: +2953 ___ Python tracker ___ ___

[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):

[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

[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

[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

[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

[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

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

[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

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

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

[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

[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

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

[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

[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

[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

[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

[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

[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

[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

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

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

[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

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

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

[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

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

2017-07-26 Thread Steve Dower
Changes by Steve Dower : -- pull_requests: -2894 ___ Python tracker ___ ___

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

[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

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

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

[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

[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

[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

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

[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

[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

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

[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

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

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

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

[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

[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

[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

[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

[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

[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

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

[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

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

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

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

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

[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

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

[issue30188] test_nntplib: random EOFError in setUpClass()

2017-07-26 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +2944 ___ Python tracker ___ ___

[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

[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

[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

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

  1   2   >