[issue27945] Various segfaults with dict

2017-06-30 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

For the context see issue30484. If the segfault is caused by garbage collection 
this perhaps is not an expluatable vulnerability, but a severe bug that can 
affect any multithread application and doesn't have a workaround.

--

___
Python tracker 

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



Re: Teaching the "range" function in Python 3

2017-06-30 Thread Christian Gollwitzer

Am 30.06.17 um 04:33 schrieb Rick Johnson:

And to further drive home the point, you can manually insert
a list literal to prove this:

 >>> range(10)
 [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
 >>> for value in [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]:
 ... print(value)
 ...
 0
 1


Now you have exactly missed the point that the OP was asking about. In 
Python 2, yes, this works and it is the way he has teached it to his 
students. Howver, in Python 3:


>>> range(10)
range(0, 10)

This is not helpful to understand what range does, and this is the 
original question.


Christian
--
https://mail.python.org/mailman/listinfo/python-list


[issue30791] tkinter.Tk() adds suffix to window class name when launching multiple instances

2017-06-30 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I concur with Terry. This is not a Tkinter issue, this is a Tk issue.

Ask help on Tcl/Tk resources. If this is considered a bug open a ticket on the 
Tk tracker: https://core.tcl.tk/tk/tktnew .

--
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue30730] [security] Injecting environment variable in subprocess on Windows

2017-06-30 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Yes, fsencode() already rejected embedded nulls, that is why the Posix branch 
doesn't need additional check for null characters. The Posix branch was changed 
only for adding the check for the '=' character in names.

--

___
Python tracker 

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



[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-06-30 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

> Isn’t there a “Unicode writer” API that could be used?

It could be used if accumulate only Python strings, C strings and separate 
characters. But in any case we need to convert C integers to strings, and add 
up to 3 items per every attribute (separator, name, value), the result of every 
addition should be checked. PyUnicode_FromFormat() is an easy way to 
concatenate several items. It needs only one check.

> The annoying part is to handle the ", " separator. I also had bad experiences 
> with handling char* strings. It's so easy to make mistakes :-(

It could be simpler if use the trick with the sep variable. As for mistakes, 
actually that version of Utkarsh's patch was less buggy than the few following 
versions using the Python C API. But the final C code is correct and LGTM.

--

___
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-06-30 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Please provide a separate PR for this. After merging it with the master branch 
it should be backported to 3.6 and 3.5 (3.4 and 3.3 are for security only 
fixes). Add your name in Misc/ACKS. Changes in Misc/NEWS.d/ are not required.

--
stage:  -> needs patch
type: enhancement -> behavior
versions:  -Python 3.3, Python 3.4

___
Python tracker 

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



[issue27425] Tests fail because of git's newline preferences on Windows

2017-06-30 Thread Steve Dower

Steve Dower added the comment:

There's nothing that needs to block the release as far as I'm concerned. The 
main fix was that I needed a fresh clone on my build machine to pick up the 
gitattribute changes.

The other bug is still open to enhance some tests and skip one in the release 
tree, but nothing release blocking. I don't see why this one is now either.

--

___
Python tracker 

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



[issue30730] [security] Injecting environment variable in subprocess on Windows

2017-06-30 Thread Steve Dower

Steve Dower added the comment:

It's certainly exploitable for remote code execution if user data allows 
embedded nulls (can you URL encode %00?). The fixes look fine and shouldn't 
cause any new issues, though I thought that fsencode() already rejected 
embedded nulls - maybe I'm thinking of the argument converter though, which is 
not invoked here.

--

___
Python tracker 

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



Re: Teaching the "range" function in Python 3

2017-06-30 Thread Chris Angelico
On Sat, Jul 1, 2017 at 1:25 PM, MRAB  wrote:
> On 2017-07-01 03:12, Stefan Ram wrote:
>>
>> Terry Reedy  writes:
>>>
>>> range is a class, not a function in the strict sense.
>>
>>
>>»the built-in function range() returns an iterator of integers«
>>
>>  The Python Language Reference, Release 3.6.0, 8.3 The for statement
>>
> Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit
> (AMD64)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
 range
> 
>
> I think it's a holdover from Python 2:
>
> Python 2.7.10 (default, May 23 2015, 09:44:00) [MSC v.1500 64 bit (AMD64)]
> on win32
> Type "help", "copyright", "credits" or "license" for more information.
 range
> 
 xrange
> 

I think you're right. It's no longer correct. Let's fix it.

https://github.com/python/cpython/pull/2523

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Teaching the "range" function in Python 3

2017-06-30 Thread MRAB

On 2017-07-01 03:12, Stefan Ram wrote:

Terry Reedy  writes:

range is a class, not a function in the strict sense.


   »the built-in function range() returns an iterator of integers«

 The Python Language Reference, Release 3.6.0, 8.3 The for statement

Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit 
(AMD64)] on win32

Type "help", "copyright", "credits" or "license" for more information.
>>> range


I think it's a holdover from Python 2:

Python 2.7.10 (default, May 23 2015, 09:44:00) [MSC v.1500 64 bit 
(AMD64)] on win32

Type "help", "copyright", "credits" or "license" for more information.
>>> range

>>> xrange

--
https://mail.python.org/mailman/listinfo/python-list


[issue30597] Show expected input in custom "print" error message

2017-06-30 Thread Ned Deily

Ned Deily added the comment:

While it's debatable, I think one can make something of a case for this being a 
usability bug rather than a new feature.  Given the impact to new users of 
Python 3 and the apparent relative low risk of the change, I'll go out on a bit 
of a limb and allow it for 3.6.x.  Thanks for bringing it up!

--

___
Python tracker 

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



[issue30473] defaultdict raises SystemError, __missing__ returned NULL in thread

2017-06-30 Thread Peter Parente

Peter Parente added the comment:

Glad to hear it. Cheers, Victor!

--

___
Python tracker 

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



[issue27425] Tests fail because of git's newline preferences on Windows

2017-06-30 Thread Ned Deily

Ned Deily added the comment:

So do we have a resolution or resolutions for this yet?  And is bpo-30716 truly 
a duplicate?  If so, let's use one or the other.

--

___
Python tracker 

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



[issue30391] test_threading_handled() of test_socketserver hangs randomly on AMD64 FreeBSD 10.x Shared 3.6

2017-06-30 Thread Martin Panter

Martin Panter added the comment:

These tests are supposed to:

1. Create a TCP server
2. Open a TCP connection
3. Run a custom connection handler (depending on the particular test) in a new 
thread
4. When the handler returns, the new thread should call “shutdown_request”
5. Shutdown_request closes the server’s connection socket
6. Shutdown_request sets an event for the main thread
7. Main thread waits for the above event

The stack trace indicates a thread is stuck at step 7. My guess is that step 5 
has raised an exception, killing the thread rather than continuing to step 6. I 
suspect it is a “socket.close” call raising an asynchronous error such as 
ECONNRESET; see Issue 30319. A general fix for that problem might fix these 
test_socketserver hangs.

--
nosy: +martin.panter

___
Python tracker 

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



[issue30319] ConnectionResetError: [Errno 54] Connection reset by peer in socket.close on FreeBSD, Py 3.6

2017-06-30 Thread Martin Panter

Martin Panter added the comment:

I think fixing all affected calls to socket.close in the world (option 3) would 
be too much. I just added two new reports (Issue 30652 and Issue 30391) as 
dependencies. These are about testing socketserver.TCPServer. As an example, to 
fix the socket.close call there, I think the change would look like

class TCPServer:
def close_request(self, request):
try:
request.close()
except ConnectionError:
# Suppress asynchronous errors such as ECONNRESET on Free BSD
pass

Instead of that change all over the place, I am thinking option 2 would be 
safest. In Modules/socketmodule.c, something like

sock_close(PySocketSockObject *s)
{
Py_BEGIN_ALLOW_THREADS
res = SOCKETCLOSE(fd);
Py_END_ALLOW_THREADS
/* ECONNRESET can occur on Free BSD */
if (res < 0 && errno != ECONNRESET) {
return s->errorhandler();
}
}

--

___
Python tracker 

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



[issue30779] IDLE: configdialog -- factor out Changes class

2017-06-30 Thread Cheryl Sabella

Cheryl Sabella added the comment:

Thanks for pointing out mapping protocol access.  That's what I was (poorly) 
trying to describe in the __getitem__ docstring in v1.  It's a really concept.

I worked on the tests.  I added some more code to the classes, so I uploaded 
that too (sorry, but I needed help understanding the functions).

Testing your Page class seemed pretty easy, so hopefully I did it right.  I 
have added more methods to the class though, which I didn't add tests for yet, 
in case it's not the right direction.

I changed the existing test to use the Changes class.  I believe I did what you 
intended, but I didn't expand it to keys and highlights just in case.

Now, my difficulty.  I had trouble trying to figure out the test for 'save_as', 
so I wanted to show you what I had so far.  You don't need to fill it out; I 
just needed to see if I was on the right track.  Writing a test without code 
was difficult since it involved other classes.  So, I copied the existing code 
into the class to see how it would fit.  Observations:
1.  The `testcfg` was a IdleUserConfParser dictionary.  I made a dummy config 
parser to override Save instead of mocking it.  I think you prefer this way of 
doing that.
2.  Page needed to know it's 'config_type' so that it (or Changes) could reach 
into idleConf.  self.main on its own didn't know which part of the  config 
files to update.
3.  Following #2, I created a 'save' module within Page.  My options were 
idleConf.userCfg[page.name] (in Changes) or idleConf.userCfg[self.name] (in 
Page).  Based on your LoD comment, I thought Page should know about that and 
not Changes.
4.  Split out `save_as` into another method called `changed`, also in Page.  I 
thought it made sense for a Page to say if it's changed.
5.  set_user_value is the same as before, although I changed the docstring and 
it's in Page for the page.name vs self.name reason.  However, this still looks 
really clunky to me.

Questions:
1.  Any interest on making Page inherit from defaultdict to simplify additem?
2.  I'm not sure about the name for Page, but I haven't come up with an 
alternate.  My reason is that in configdialog, all the create functions are 
create_page_* and the names on the tabs don't match the config (eg, there's a 
General tab stored in main).  Unless you made that connection on purpose?  I 
was thinking of `page` more as a GUI item, maybe because of terms like webpage. 
 Maybe the solution is to make the functions create_tab_*?

I still haven't looked at extensions.  I should have more time tomorrow.

One note, I found a typo in the current test file.  In tearDownModule, it sets 
idleConf.userCfg to testcfg, but I think the intent was to set it back to the 
saved value, which is userCfg.

Thanks!

--

___
Python tracker 

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



[issue29334] ssl.SSLObject method getpeercert() is buggy, do_handshake() is strange

2017-06-30 Thread Ned Deily

Ned Deily added the comment:

Is anything holding this up for merging into 3.6 and/or 3.5?

--
nosy: +ned.deily

___
Python tracker 

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



[issue30779] IDLE: configdialog -- factor out Changes class

2017-06-30 Thread Cheryl Sabella

Changes by Cheryl Sabella :


Added file: http://bugs.python.org/file46985/changes_class_v3.py

___
Python tracker 

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



[issue30779] IDLE: configdialog -- factor out Changes class

2017-06-30 Thread Cheryl Sabella

Changes by Cheryl Sabella :


Added file: http://bugs.python.org/file46984/configdialog_tests_v1.py

___
Python tracker 

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



[issue30319] ConnectionResetError: [Errno 54] Connection reset by peer in socket.close on FreeBSD, Py 3.6

2017-06-30 Thread Martin Panter

Changes by Martin Panter :


--
dependencies: +test_threading_handled() of test_socketserver hangs randomly on 
AMD64 FreeBSD 10.x Shared 3.6, test_threading_not_handled() of 
test_socketserver hangs randomly on AMD64 FreeBSD 10.x Shared 3.6

___
Python tracker 

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



[issue30741] https://www.pypi-mirrors.org/ error 503

2017-06-30 Thread Ned Deily

Ned Deily added the comment:

This doesn't appear to be a Python issue.  If necessary, suggest follow up with 
either pip or the PyPA packaging-problems issue tracker:

https://github.com/pypa/packaging-problems/issues

--
nosy: +ned.deily
resolution:  -> third party
stage:  -> resolved
status: open -> closed
type: security -> 

___
Python tracker 

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



[issue30739] pypi ssl errors [CERTIFICATE_VERIFY_FAILED]

2017-06-30 Thread Ned Deily

Ned Deily added the comment:

It looks like there was a certificate validation error when pip tried to make a 
TLS (https) connection.  If you are still having problems, suggest you check 
the pip issue tracker and, if needed, ask for help over there.

https://github.com/pypa/pip/issues

--
nosy: +ned.deily
resolution:  -> third party
stage:  -> resolved
status: open -> closed
type: resource usage -> 

___
Python tracker 

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



[issue30714] test_ssl fails with openssl 1.1.0f

2017-06-30 Thread Ned Deily

Ned Deily added the comment:

Sorry for the delay.  It's clear this needs to get fixed so there's no need to 
wait to merge PRs into 3.6, 3.5, and 2.7.  If the PR gets merged into 3.6 soon, 
I'll pull it into 3.6.2 as well.

--

___
Python tracker 

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



[issue30686] make `make install` faster

2017-06-30 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +ned.deily

___
Python tracker 

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



[issue30623] python-nightly import numpy fails since recently

2017-06-30 Thread Ned Deily

Changes by Ned Deily :


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



[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-06-30 Thread Martin Panter

Martin Panter added the comment:

Don’t let my minus sign suggestion stop this, especially since a couple other 
people said they don’t like it. The current pull request proposal is beneficial 
without it.

Isn’t there a “Unicode writer” API that could be used? Maybe that’s another 
alternative to the string accumulation or list building, but I never used it so 
it may not be appropriate.

--

___
Python tracker 

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



[issue27945] Various segfaults with dict

2017-06-30 Thread Ned Deily

Ned Deily added the comment:

Since Serhiy created backport PRs for 3.4 and 3.3, I'm reopening the issue and 
marking it as Release Blocker (for those releases) so we don't lose track of 
them and agree they meet the criteria for security-fix-only releases.

--
nosy: +benjamin.peterson, georg.brandl
priority: critical -> release blocker
resolution: fixed -> 
stage: resolved -> commit review
status: closed -> open
versions: +Python 3.3, Python 3.4

___
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-06-30 Thread Utkarsh Upadhyay

New submission from Utkarsh Upadhyay:

While investigating http://bugs.python.org/issue30302 it was discovered that 
the Python implementation of the datetime module was not being tested correctly.

The datetimetester.py was supposed to execute tests twice, once for the _Fast 
implementation (i.e. C extension code in _datetimemodule.c) and once for the 
_Pure implementation (i.e the Python code).

The fix is contained in the following two commits:

 - 
https://github.com/python/cpython/pull/1493/commits/08e7548f56838fca43b488cefe51de4bdd600f3d
 - 
https://github.com/python/cpython/pull/1493/commits/94d5a4e4d33a1d14a2bb1be8fbff5e1e4cd2b7a6

The bug does not effect Python 2.7 as the C version of the datetime module had 
not been introduced back then. However, as fas as I can tell, the fix needs to 
be applied to all Python 3.x branches.

--
components: Tests
messages: 297455
nosy: musically_ut, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Python implementation of datetime module is not being tested correctly.
type: enhancement
versions: Python 3.3, Python 3.4, Python 3.5, 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



[issue30448] test_subprocess creates a core dump on FreeBSD

2017-06-30 Thread STINNER Victor

STINNER Victor added the comment:

macOS 2.7 buildbots are back. All known bugs are fixed, I close the issue.

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



[issue30448] test_subprocess creates a core dump on FreeBSD

2017-06-30 Thread STINNER Victor

STINNER Victor added the comment:


New changeset fd93f37f0dc537eb7edca7b75e2f92ef54dd2833 by Victor Stinner in 
branch '2.7':
bpo-30448: Fix support.SuppressCrashReport on macOS (#2515)
https://github.com/python/cpython/commit/fd93f37f0dc537eb7edca7b75e2f92ef54dd2833


--

___
Python tracker 

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



[issue30809] IDLE parenmatch - highlighting options

2017-06-30 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Since configdialog code is being re-written, I would not want to write code 
right now.  But we could start planning.

--
dependencies: +IDLE: turn builting extensions into regular modules

___
Python tracker 

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



[issue27099] IDLE: turn builting extensions into regular modules

2017-06-30 Thread Terry J. Reedy

Terry J. Reedy added the comment:

This has to wait for at least some of the refactoring and increased testing of 
configdialog, and maybe for the switch to ttk.

--
dependencies: +IDLE: configdialog - add tests for ConfigDialog GUI., IDLE: 
configdialog -- factor out Changes class, IDLE: configdialog -- switch to ttk 
widgets.

___
Python tracker 

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



[issue27099] IDLE: turn builting extensions into regular modules

2017-06-30 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I am thinking that we should maybe add an 'Editor' tab.  Or we could expand the 
dialog box.  More room on General tab can be obtained by removing the label 
frames, or at least the labels, which seem a bit redundant.

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



[issue30730] [security] Injecting environment variable in subprocess on Windows

2017-06-30 Thread Ned Deily

Ned Deily added the comment:

Steve, Paul: any comments on the severity of this issue and the pushed fixes?

--
nosy: +benjamin.peterson, larry, ned.deily
priority: normal -> release blocker

___
Python tracker 

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



[issue30803] Truth value of sets not properly documented

2017-06-30 Thread Terry J. Reedy

Terry J. Reedy added the comment:

1. You have to go to your profile page
https://bugs.python.org/user26480
and add your GitHub name in the GitHub Name box.
2. A committer has to change the labels to trigger the robot to recheck.  I did 
that but it did not work because of 1.

As I said in my review, I strongly prefer leaving the bulleted list and making 
a minimal addition of 'set or' and 'set(), '.  I would not merge the current 
patch.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue30795] OS X failures in test_site

2017-06-30 Thread Ned Deily

Changes by Ned Deily :


--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> site.py imports relatively large `sysconfig` module.

___
Python tracker 

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



[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-06-30 Thread Utkarsh Upadhyay

Utkarsh Upadhyay added the comment:

So, as a compromise, I'll stick to PyObjects (avoiding char* and the buffer 
size calculations) but will use PyUnicode all the way instead using PyList_* 
functions (thus reducing the size of the code by ~20 lines).

I've pushed this change, ready for review! :)

(haypo has already approved the change while I am still writing this.)

~
ut

--

___
Python tracker 

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



[issue30809] IDLE parenmatch - highlighting options

2017-06-30 Thread Charles Wohlganger

Charles Wohlganger added the comment:

Implimenting #27099 seems the more reasonable solution to me, so I'll work on 
that when I have free time.

--

___
Python tracker 

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



[issue30791] tkinter.Tk() adds suffix to window class name when launching multiple instances

2017-06-30 Thread Terry J. Reedy

Terry J. Reedy added the comment:

> tkinter has added a #2
I think you yourself proved otherwise. Additional evidence is that ' #2' is not 
added on Windows.  I have 3 windows titled 'myApp' stacked behind my installed 
python/IDLE icon. root.winfo_class() returns the class name capitalized, but 
the window title is not.  root.winfo_class('newname') does not work.  Note: I 
added more chars to the label to make it big enough to force the window to be 
big enough to display the title.

There might be a reason why tcl deduplicates class names on *nix.  So even if 
you found a way to set a classname after the Tk call, tcl might still 
deduplicate it.  Or we might decide not to force change the current behavior.

I suspect that this will be closed as a 3rd-party issue.

--
nosy: +serhiy.storchaka, terry.reedy

___
Python tracker 

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



Re: Python installer

2017-06-30 Thread eryk sun
On Fri, Jun 30, 2017 at 8:30 PM, Debiller 777  wrote:
> I just get error that there is no module name 'encodings'

First make sure that neither PYTHONHOME nor PYTHONPATH are defined in
your environment. To check this type `set python` in a command prompt.
Neither variable should be listed.
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue30764] regrtest: Add --fail-env-changed option

2017-06-30 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2589

___
Python tracker 

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



[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-06-30 Thread STINNER Victor

STINNER Victor added the comment:

Serhiy: "The C code looks cumbersome. It could be made a little simpler if 
accumulate arguments into a string rather than a list."

Utkarsh's first version used C code. I proposed to use a PyList and 
PyUnicodeObject strings to not have to compute the size of the char[] buffers.

The annoying part is to handle the ", " separator. I also had bad experiences 
with handling char* strings. It's so easy to make mistakes :-(

IMHO the current C code using Python objects is not that complex, but I don't 
really care of the implementation as soon as it works :-)

--

___
Python tracker 

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



Case Solution: Carmichael Roberts To Create a Private Equity Firm? by Steven Rogers, Kenneth Cooper

2017-06-30 Thread Case Solution & Analysis
Case Solution and Analysis of Carmichael Roberts: To Create a Private Equity 
Firm? by Steven Rogers, Kenneth Cooper, send email to 
casesolutionscentre(at)gmail(dot)com 

Case Study ID: 9-317-079 

Get Case Study Solution and Analysis of Carmichael Roberts: To Create a Private 
Equity Firm? in a FAIR PRICE!! 

Our e-mail address is CASESOLUTIONSCENTRE (AT) GMAIL (DOT) COM. Please replace 
(at) by @ and (dot) by . 

YOU MUST WRITE FOLLOWING WHILE PLACING YOUR ORDER: 
Complete Case Study Name 
Authors 
Case Study ID 
Publisher of Case Study 
Your Requirements / Case Questions 

Note: Do not reply to this post because we do not reply to posts here. If you 
need any Case Solution please send us an email. We can help you to get it. 
-- 
https://mail.python.org/mailman/listinfo/python-list


Case Solution: Delivering the Goods at Shippo by Jeffrey J. Bussgang, Jeffrey Rayport, Olivia Hull

2017-06-30 Thread Case Solution & Analysis
Case Solution and Analysis of Delivering the Goods at Shippo by Jeffrey J. 
Bussgang, Jeffrey Rayport, Olivia Hull, send email to 
casesolutionscentre(at)gmail(dot)com  

Case Study ID: 9-817-065 

Get Case Study Solution and Analysis of Delivering the Goods at Shippo in a 
FAIR PRICE!! 

Our e-mail address is CASESOLUTIONSCENTRE (AT) GMAIL (DOT) COM. Please replace 
(at) by @ and (dot) by . 

YOU MUST WRITE FOLLOWING WHILE PLACING YOUR ORDER: 
Complete Case Study Name 
Authors 
Case Study ID 
Publisher of Case Study 
Your Requirements / Case Questions 

Note: Do not reply to this post because we do not reply to posts here. If you 
need any Case Solution please send us an email. We can help you to get it. 
-- 
https://mail.python.org/mailman/listinfo/python-list


Case Solution: From Start-Up to Grown-Up Nation The Future of the Israeli Innovation Ecosystem (Abridged) by Elie Ofek, Margot Eiran

2017-06-30 Thread Case Solution & Analysis
Case Solution and Analysis of From Start-Up to Grown-Up Nation: The Future of 
the Israeli Innovation Ecosystem (Abridged) by Elie Ofek, Margot Eiran, send 
email to casesolutionscentre(at)gmail(dot)com 

Case Study ID: 9-517-103 

Get Case Study Solution and Analysis of From Start-Up to Grown-Up Nation: The 
Future of the Israeli Innovation Ecosystem (Abridged) in a FAIR PRICE!! 

Our e-mail address is CASESOLUTIONSCENTRE (AT) GMAIL (DOT) COM. Please replace 
(at) by @ and (dot) by . 

YOU MUST WRITE FOLLOWING WHILE PLACING YOUR ORDER: 
Complete Case Study Name 
Authors 
Case Study ID 
Publisher of Case Study 
Your Requirements / Case Questions 

Note: Do not reply to this post because we do not reply posts here. If you need 
any Case Solution please send us an email. We can help you to get it. 
-- 
https://mail.python.org/mailman/listinfo/python-list


Python installer

2017-06-30 Thread Debiller 777
Please help me with Python. I many,MANY TIMES tried to install it, but always 
had problemThese installers were glistchy. What do I mean? I mean that when 
I installed Python I almost always got wrong packed folders. For example I open 
python's folder click on python.exe aand.I just get error that there is 
no module name 'encodings' but it is just in wrong folder-Lib. When I am trying 
to organize it, still I get some errors. Yeah python.exe works but tkinter does 
not imports, plus pip cant launch because of the import errors. And I am really 
tired of this!!! How can I fully expierence Python if installer installs wrong? 
How? I am really tired of this. I even checked PC on viruses and malwares, but 
no this glitch HAPPENS. Pleas help to fix this problem and normally program on 
Python!!!
-- 
https://mail.python.org/mailman/listinfo/python-list


Case Solution: Floodgate On the Hunt for Thunder Lizards by Rory McDonald, Alix Burke, Emma Franking, Nicole Tempest

2017-06-30 Thread Case Solution & Analysis
Case Solution and Analysis of Floodgate: On the Hunt for Thunder Lizards by 
Rory McDonald, Alix Burke, Emma Franking, Nicole Tempest, send email to 
casesolutionscentre(at)gmail(dot)com  

Case Study ID: 9-617-044 

Get Case Solution and Analysis of Floodgate: On the Hunt for Thunder Lizards in 
a FAIR PRICE!! 

Our e-mail address is CASESOLUTIONSCENTRE (AT) GMAIL (DOT) COM. Please replace 
(at) by @ and (dot) by . 

YOU MUST WRITE FOLLOWING WHILE PLACING YOUR ORDER: 
Complete Case Study Name 
Authors 
Case Study ID 
Publisher of Case Study 
Your Requirements / Case Questions 

Note: Do not reply to this post because we do not monitor posts. If you need 
any Case Solution please send me an email. We can help you to get it. 
-- 
https://mail.python.org/mailman/listinfo/python-list


Case Solution: CEO Activism (A) by Michael W. Toffel, Aaron Chatterji, Julia Kelley

2017-06-30 Thread Case Solution & Analysis
Case Solution and Analysis of CEO Activism (A) by Michael W. Toffel, Aaron 
Chatterji, Julia Kelley, send email to casesolutionscentre(at)gmail(dot)com 

Case Study ID: 9-617-001 

Get Case Study Solution and Analysis of CEO Activism (A) in a FAIR PRICE!! 

Our e-mail address is CASESOLUTIONSCENTRE (AT) GMAIL (DOT) COM. Please replace 
(at) by @ and (dot) by . 

YOU MUST WRITE FOLLOWING WHILE PLACING YOUR ORDER: 
Complete Case Study Name 
Authors 
Case Study ID 
Publisher of Case Study 
Your Requirements / Case Questions 

Note: Do not reply to this post because we do not monitor posts. If you need 
any other Case Solutions please send me an email. We can help you to get it.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Teaching the "range" function in Python 3

2017-06-30 Thread Terry Reedy

On 6/30/2017 1:07 PM, Irv Kalb wrote:


Thanks to everyone who responded to my question about teaching the range 
function.


range is a class, not a function in the strict sense.

Classes represent concepts.  Instances of classes represent instances of 
the concept. Range represent the concept 'arithmetic sequence', a 
sequence of numbers with a constant difference.  To form an arithmetic 
sequence, start with a number and keep adding a constant.


Surely, schoolkids still have experience doing this, counting up or down 
by a number: 0,3,6,9,12,15...; 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 
'liftoff'; 99 bottles of beer. Counting down from 100 by a larger number 
is an old challenge.  100, 97, 94, 91, 88/



I particularly like the ideas of using the words "collection" and "sequence"- 
those seem to be very clear.

In my curriculum, I first go through a in detail discussion of the need for, 
the syntax of and the usage of lists.


'list' represents the more general concept 'mutable sequence of 
arbitrary information objects'.


--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: ftplib sending data out of order

2017-06-30 Thread Chris Angelico
On Sat, Jul 1, 2017 at 6:03 AM, The Donald  wrote:
> Charles , please look up the main python wiki here:
>
>  https://REDACTED/wiliki/wiliki.cgi?python

This person has been spamming this list and others, dodging bans, and
generally behaving in a way that proves he is no member of the Python
community, but just a troll and a spammer. I recommend ignoring him,
reporting his posts, or whatever you find most appropriate.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: ftplib sending data out of order

2017-06-30 Thread The Donald
Charles , please look up the main python wiki here:

 https://practical-scheme.net/wiliki/wiliki.cgi?python
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: ftplib sending data out of order

2017-06-30 Thread The Donald
dude, you're totally welcome.

just make sure that you vote the current wiki admins out of office.

THEY'RE FIRED !
-- 
https://mail.python.org/mailman/listinfo/python-list


Fwd: ftplib sending data out of order

2017-06-30 Thread Charles Wilt
Hello,

First off, I'm not a python guybut I use a set of python scripts
created a few years ago by somebody else to transfer source between the SVN
repo on my PC and an IBM i (aka AS/400) system.

Recently, multiple developers, including me, have started having
intermittent issues whereby the source gets sometimes gets scrambled during
the send from PC to IBM i; and it seems to be happening more and more
often.

The python script hasn't been changed, and I've been running 2.7.12; though
I've since tried upgrading to 2.7.13.

I used wireshark to capture the FTP session and have confirmed that the
data is leaving the PC in the incorrect order.  (screenshot attached)

originally our script had the following:
connection.storlines('STOR ' + ibmi_file, open(source_file.fullpath, 'rb'))

Following advice from a online midrange community, I tired some other
options for the mode & buffer on the open.

Right now,
​I'm using the following, which seesm to have reduced the occurrences of
the issue...
connection.storlines('STOR ' + ibmi_file, open(source_file.fullpath,
'Ur',0))

I tired it with buffer=1 (line) and was still seeing data being sent out of
order.

Honestly, I suspect some sort of Windows issue; as Windows is the only
thing that's changed recently.  But I'm running Win10 and another developer
that's seeing it is running Win8.

I'd appreciate any guidance you may have.

Thank you,
Charles Wilt
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue11975] Fix referencing of built-in types (list, int, ...)

2017-06-30 Thread Roundup Robot

Changes by Roundup Robot :


--
pull_requests: +2588

___
Python tracker 

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



[issue30814] Import dotted name as alias breaks with concurrency

2017-06-30 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
components: +Interpreter Core
nosy: +brett.cannon, eric.snow, ncoghlan, serhiy.storchaka
type:  -> behavior

___
Python tracker 

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



[issue30809] IDLE parenmatch - highlighting options

2017-06-30 Thread Terry J. Reedy

Terry J. Reedy added the comment:

There is another option.  I want to incorporate 'builtin extensions' as regular 
features (#27099), and move their configuration options to other tabs, which 
will need some reworking.  #22705 will then be less urgent. Selection from a 
finite set will then be from a dropdown box, like similar non-extension 
options. Thus #27099, which waiting on current work in process on ConfigDialog, 
is an alternate dependency.

--

___
Python tracker 

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



[issue30809] IDLE parenmatch - highlighting options

2017-06-30 Thread Terry J. Reedy

Terry J. Reedy added the comment:

As far as you want to go with
1. Review the uploaded patch here or on Rietveld (see review link).
   Or skip this if you make PR and review on github.
2. Download code, makes minimal changes needed to succeed with 'git apply 
download' in new branch.
3. git commit -m "Patch by Saimadhav Heblikar updated to 3.7"
4. (Optional) test, make changes needed to pass, commit.
5. Make PR and comment or review on github.

--

___
Python tracker 

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



[issue11975] Fix referencing of built-in types (list, int, ...)

2017-06-30 Thread Roundup Robot

Changes by Roundup Robot :


--
pull_requests: +2587

___
Python tracker 

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



[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-06-30 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Don't wait me. I have no preferences and just remind about the Martin's 
suggestion.

The C code looks cumbersome. It could be made a little simpler if accumulate 
arguments into a string rather than a list.

if (GET_TD_SECONDS(self) != 0) {
Py_SETREF(args, PyUnicode_FromFormat("%U%sseconds=%d",
 args, sep, GET_TD_SECONDS(self)));
if (args == NULL)
return NULL;
sep = ", ";
}

args is initialized by an empty Python string, sep is initialized by "". 
PyUnicode_Join() at the end is not needed. This would save more than 20 lines.

The code could be simplified even more if use the char buffer(s) and 
PyOS_snprintf instead of PyUnicode_FromFormat().

--

___
Python tracker 

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



[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-06-30 Thread Utkarsh Upadhyay

Utkarsh Upadhyay added the comment:

The docstring changes ought to be easier to review since I'll only be making 
the Python and C docstrings mostly identical (with some minor changes here and 
there). I'll also (hopefully) need fewer pointers now that I've been through 
one review process (thanks @haypo!).

To answer your question, the changes in this PR are completely orthogonal to 
the changes in the docstring needed. 

Hence, I'm counting one more vote towards making the docstring changes in a 
separate PR.

Thanks! :-)

~
ut

--

___
Python tracker 

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



[issue30820] email.contentmanager.raw_data_manager fails to create multipart messages

2017-06-30 Thread R. David Murray

R. David Murray added the comment:

We should fix the docs for 3.5 and 3.6, and open an enhancement request for 3.7 
if we still think this feature is a good idea.

--

___
Python tracker 

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



[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-06-30 Thread R. David Murray

R. David Murray added the comment:

If the docstring changes incorporate changes from this PR, I'd keep them in a 
single PR myself.  If not, two PRs would make review easier.  On the other 
hand, if haypo is volunteering to do the review, do whatever he wants :)

--

___
Python tracker 

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



[issue30804] bolen-dmg-3.x build-installer.py failed

2017-06-30 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 5e742fa922ea70131b4c63451c87cf0347532806 by Victor Stinner (INADA 
Naoki) in branch 'master':
bpo-30804: fix macOS build with framework enabled. (#2516)
https://github.com/python/cpython/commit/5e742fa922ea70131b4c63451c87cf0347532806


--

___
Python tracker 

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



[issue30804] bolen-dmg-3.x build-installer.py failed

2017-06-30 Thread STINNER Victor

STINNER Victor added the comment:

Naoki: "How about adding --enable-framework on mac environment of Traivs?"

I like the idea. Can you please propose a PR?

--

___
Python tracker 

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



[issue5004] socket.getfqdn() doesn't cope properly with purely DNS-based setups

2017-06-30 Thread James Shewey

James Shewey added the comment:

According to the man page for gethostbyaddr "The gethostbyname*() and 
gethostbyaddr*() functions are obsolete. Applications should use getaddrinfo(3) 
and getnameinfo(3) instead." - so perhaps using the correct API call might be a 
good start to resolving this issue, but I found that in my case, I needed to 
chase the problem upstream instead of downstream. On my Red Hat box, the 
kernel.hostname value with sysctl was incorrect. I had to re-set it with a  
sysctl kernel.hostname=hostname.example.com. This overrides /etc/hosts, so I 
suspect this is probably not an issue on other distros that do not use sysctl.

The moral of the story being garbage in, garbage out.

--
nosy: +James Shewey

___
Python tracker 

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



[issue30821] unittest.mock.Mocks with specs aren't aware of default arguments

2017-06-30 Thread Max Rothman

Max Rothman added the comment:

I'd be happy to look at submitting a patch for this, but it'd be helpful to be 
able to ask questions of someone more familiar with unittest.mock's code.

--

___
Python tracker 

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



[issue30821] unittest.mock.Mocks with specs aren't aware of default arguments

2017-06-30 Thread Max Rothman

New submission from Max Rothman:

For a function f with the signature f(foo=None), the following three calls are 
equivalent:

f(None)
f(foo=None)
f()

However, only the first two are equivalent in the eyes of 
unittest.mock.Mock.assert_called_with:

>>> with patch('__main__.f', autospec=True) as f_mock:
f_mock(foo=None)
f_mock.assert_called_with(None)

>>> with patch('__main__.f', autospec=True) as f_mock:
f_mock(None)
f_mock.assert_called_with()
AssertionError: Expected call: f()  Actual call: f(None)

This is definitely surprising to new users (it was surprising to me!) and 
unnecessarily couples tests to how a particular piece of code happens to call a 
function.

--
components: Library (Lib)
messages: 297433
nosy: Max Rothman
priority: normal
severity: normal
status: open
title: unittest.mock.Mocks with specs aren't aware of default arguments
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



Re: Teaching the "range" function in Python 3

2017-06-30 Thread Irv Kalb

> On Jun 29, 2017, at 2:21 PM, Chris Angelico  wrote:
> 
> On Fri, Jun 30, 2017 at 6:57 AM, Irv Kalb  wrote:
>> I am wondering if other teachers have run into this.  Is this a real 
>> problem?  If so, is there any other way of explaining the concept without 
>> getting into the underlying details of how a generator works?  Do you think 
>> it would be helpful to use the words "sequence of numbers" rather than 
>> talking about a list here - or would that be even more confusing to students?
>> 
> 
> The easiest way is to use the word "collection" for things you iterate
> over (rather than the concrete term "list"). So you can loop through
> (or iterate over) a collection of explicitly given numbers:
> 

Thanks to everyone who responded to my question about teaching the range 
function.  

I particularly like the ideas of using the words "collection" and "sequence"- 
those seem to be very clear.

In my curriculum, I first go through a in detail discussion of the need for, 
the syntax of and the usage of lists. Then introduce for loops and explain how 
to iterate through a list (and I do use a naming convention).  At the very end 
of my discussion of lists and loops, I talk about the additional use of 
"range".   I do not want to go into any details of the underlying 
implementation of range, I just wanted a way to explain how it could be used in 
a for statement.  

(I understand that xrange does the same thing in Python 2 as range in Python 3, 
but for the sake of simplicity, I do not teach xrange in my Python 2 class.)

Thanks for all the comments about range not being a generator - I'll be sure to 
steer clear of that word in my introductory class. 

Not sure how this got into a discussion of function calls, etc.  

Thanks very much,

Irv

-- 
https://mail.python.org/mailman/listinfo/python-list


[issue30819] Linking with 'ld -b' fails with 64-bit using Itanium HP compiler

2017-06-30 Thread Robert Boehne

New submission from Robert Boehne:

Setting compiler flags to +DD64 produces 64-bit objects, but the linker does 
not understand this flag, so either you'll see an ld failure to recognize +DD64 
at link time, or you'll see a failure later mixing 32 and 64-bit objects.

I also modified the C++ variable because that's obviously needed as well.
There was an issue with configure - after modifying one and adding another line 
in configure.ac, autoconf 2.69 removed all instances of "runstatedir" in the 
generated configure script, so I made my intended change to configure in an 
editor as well.

--
title: Linking with 'ld -b' fails with 64-bit using HP compiler -> Linking with 
'ld -b' fails with 64-bit using Itanium HP compiler

___
Python tracker 

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



[issue30811] A venv created and activated from within a virtualenv uses the outer virtualenv's site-packages rather than its own.

2017-06-30 Thread Antony Lee

Antony Lee added the comment:

Sorry, that was a sloppy report.  This is a better repro:

$ export PIP_CONFIG_FILE=/dev/null  # just to be sure
python -mvirtualenv outer-env  # using /usr/bin/python(3)
source outer-env/bin/activate
python -mvenv inner-env  # using outer-env's python
source inner-env/bin/activate
python -minspect -d pip

Using base prefix '/usr'
New python executable in /tmp/outer-env/bin/python
Installing setuptools, pip, wheel...done.
Target: pip
Origin: /tmp/outer-env/lib/python3.6/site-packages/pip/__init__.py
Cached: 
/tmp/outer-env/lib/python3.6/site-packages/pip/__pycache__/__init__.cpython-36.pyc
Loader: <_frozen_importlib_external.SourceFileLoader object at 0x7f92e00e03c8>
Submodule search path: ['/tmp/outer-env/lib/python3.6/site-packages/pip']

--

___
Python tracker 

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



[issue30820] email.contentmanager.raw_data_manager fails to create multipart messages

2017-06-30 Thread Anton Khirnov

New submission from Anton Khirnov:

The documentation for the "new API" -- email.contentmanager.raw_data_manager -- 
claims that passing a list of messages to set_content() will create a multipart 
message. However, it fails with "KeyError: 'builtins.list'" and from looking at 
the code it seems this functionality is not and never was implemented.

--
components: email
messages: 297430
nosy: barry, elenril, r.david.murray
priority: normal
severity: normal
status: open
title: email.contentmanager.raw_data_manager fails to create multipart messages
type: behavior
versions: Python 3.5, Python 3.6

___
Python tracker 

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



[issue30819] Linking with 'ld -b' fails with 64-bit using HP compiler

2017-06-30 Thread Robert Boehne

Changes by Robert Boehne :


--
components: Build
nosy: Robert Boehne
priority: normal
severity: normal
status: open
title: Linking with 'ld -b' fails with 64-bit using HP compiler
type: compile error
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



[issue11798] Test cases not garbage collected after run

2017-06-30 Thread Guido van Rossum

Changes by Guido van Rossum :


--
nosy:  -gvanrossum

___
Python tracker 

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



[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-06-30 Thread Utkarsh Upadhyay

Utkarsh Upadhyay added the comment:

@r.david.murray: I'm primarily waiting for Serhiy (and, optionally Martin) to 
"Okay" the pull request. 

The code seems fine (@haypo has had a through look at it), but we still were 
mildly divided over whether we want to factor out the negative sign or not.

re: thoughts and opinions; I wanted to have them on:

  - Whether to factor out the negative sign.
  - Whether to throw in the doc-string/documentation changes into this PR or in 
a new one.


Current position on these questions:

- In favor of factoring out the -ve sign: Martin
  Not in favor of factoring out the -ve sign: Victor, R. David


- DocString changes: (@haypo's opinion) in a separate PR.


~
ut

--

___
Python tracker 

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



Re: Teaching the "range" function in Python 3

2017-06-30 Thread Chris Angelico
On Sat, Jul 1, 2017 at 2:17 AM, Stefan Ram  wrote:
>   However, to my defense, I must say that in this post my intend
>   was to demonstrate what is happening /behind the curtains/ when
>   the »for« loop is running, so in this special case, it might be
>   appropriate to use a function that otherwise should only be
>   called by the Python interpreter. (But I don't actually know
>   whether the »for« loop uses »__iter__« or »iter« or some other
>   means.)

It basically uses iter().

https://docs.python.org/3/c-api/object.html#c.PyObject_GetIter

"""This is equivalent to the Python expression iter(o)."""

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue30804] bolen-dmg-3.x build-installer.py failed

2017-06-30 Thread INADA Naoki

INADA Naoki added the comment:

Sorry, It seems I failed to merge local patch.

--

___
Python tracker 

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



[issue30183] [HPUX] compilation error in pytime.c with cc compiler

2017-06-30 Thread Robert Boehne

Robert Boehne added the comment:

I am having trouble getting things build still.  The problem is that the build 
is using a naked "ld" to link, and it is picking 32-bit mode by default in my 
64-bit acc build. (Itanium)

IMO the problem is configure.ac:2467 which should look more like the gcc 
section.  I can produce a patch, and perhaps you can walk me though the 
submission process.

--

___
Python tracker 

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



[issue30804] bolen-dmg-3.x build-installer.py failed

2017-06-30 Thread INADA Naoki

Changes by INADA Naoki :


--
pull_requests: +2586

___
Python tracker 

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



Re: why are these 2 fucking clowns in here ?

2017-06-30 Thread Andre Müller
Just don't read it. Calm down.
-- 
https://mail.python.org/mailman/listinfo/python-list


ANN: Wing Python IDE 6.0.6 released

2017-06-30 Thread Wingware

Hi,

We've just released Wing 6.0.6 which further improves remote 
development, adds preferences to avoid problems seen when debugging odoo 
and some I/O intensive threaded code, solves some auto-completion and 
auto-editing problems, fixes a few VI mode bugs, remembers editor zoom 
level between sessions, and makes about 40 other minor improvements. For 
details, see http://wingware.com/pub/wingide/6.0.6/CHANGELOG.txt


Wing 6 is the latest major release in Wingware's family of Python IDEs, 
including Wing Pro, Wing Personal, and Wing 101.  Wing 6 adds many new 
features, introduces a new annual license option for Wing Pro, and makes 
Wing Personal free.


New Features in Wing 6

 * Improved Multiple Selections:  Quickly add selections and edit them
   all at once
 * Easy Remote Development:  Work seamlessly on remote Linux, OS X, and
   Raspberry Pi systems
 * Debugging in the Python Shell:  Reach breakpoints and exceptions in
   (and from) the Python Shell
 * Recursive Debugging:  Debug code invoked in the context of stack
   frames that are already being debugged
 * PEP 484 and PEP 526 Type Hinting:  Inform Wing's static analysis
   engine of types it cannot infer
 * Support for Python 3.6 and Stackless 3.4:  Use async and other new
   language features
 * Optimized debugger:  Run faster, particularly in multi-process and
   multi-threaded code
 * Support for OS X full screen mode:  Zoom to a virtual screen, with
   auto-hiding menu bar
 * Added a new One Dark color palette:  Enjoy the best dark display
   style yet
 * Updated French and German localizations:  Thanks to Jean Sanchez,
   Laurent Fasnacht, and Christoph Heitkam

For a more detailed overview of new features see the release notice at 
http://wingware.com/news/2017-06-29


Annual License Option

Wing 6 adds the option of purchasing a lower-cost expiring annual 
license for Wing Pro.  An annual license includes access to all 
available Wing Pro versions while it is valid, and then ceases to 
function until it is renewed.  Pricing for annual licenses is US$ 
179/user for Commercial Use and US$ 69/user for Non-Commercial Use.


Perpetual licenses for Wing Pro will continue to be available at the 
same pricing.


The cost of extending Support+Upgrades subscriptions on Non-Commercial 
Use perpetual licenses for Wing Pro has also been dropped from US$ 89 to 
US$ 39 per user.


For details, see https://wingware.com/store/

Wing Personal is Free

Wing Personal is now free and no longer requires a license to run.  It 
now also includes the Source Browser, PyLint, and OS Commands tools, and 
supports the scripting API and Perspectives.


However, Wing Personal does not include Wing Pro's advanced editing, 
debugging, testing and code management features, such as remote 
development, refactoring, find uses, version control, unit testing, 
interactive debug probe, multi-process and child process debugging, move 
program counter, conditional breakpoints, debug watch, 
framework-specific support (for Jupyter, Django, and others), find 
symbol in project, and other features.


Links

Release notice: http://wingware.com/news/2017-06-29
Downloads and Free Trial: http://wingware.com/downloads
Buy: http://wingware.com/store/purchase
Upgrade: https://wingware.com/store/upgrade

Questions?  Don't hesitate to email us at supp...@wingware.com.

Thanks,

--

Stephan Deibel
Wingware | Python IDE

The Intelligent Development Environment for Python Programmers

wingware.com


--
https://mail.python.org/mailman/listinfo/python-list


Re: Teaching the "range" function in Python 3

2017-06-30 Thread Steve D'Aprano
On Fri, 30 Jun 2017 09:17 am, Stefan Ram wrote:

 b = a.__iter__()

Don't do that.

Dunder ("Double UNDERscore") methods like __iter__ should only be called by the
Python interpreter, not by the programmer. The right way to create an iterator
is to call the built-in function iter:

b = iter(a)


The iter() function may call a.__iter__ (technically, it calls type(a).__iter__
instead) but it may also do other things, which you miss out on if you call
__iter__ directly.



-- 
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Teaching the "range" function in Python 3

2017-06-30 Thread Steve D'Aprano
Hello Irv, and welcome! Good to have a teacher of Python here!


On Fri, 30 Jun 2017 06:57 am, Irv Kalb wrote:

[...]
> Now I am looking at the change in the range function.  I completely understand
> the differences between, and the reasons for, how range works differently in
> Python 2 vs Python 3.  The problem that I've run into has to do with how to
> explain what range does in Python 3.

How do you explain what xrange() does in Python 2? range() is the same.

I'm not really sure you need to explain what range() does in a lot of detail.
The technical details are a little advanced for complete beginners. Although
this might make a nice project for moderately advanced students:

"Write a class that works like range, that produces a series of numbers 0, 1, 2,
4, 8, 16, 32, ... up to some limit."

The secret is the __getitem__ method.


> In Python 2, I easily demonstrated the 
> range function using a simple print statement: 
> 
> print range(0, 10)

In Python 3, that would be:

print(list(range(10)))

(no need to give the start value if it is zero). 


> I discussed how range returns a list.  I gave many examples of different
> values being passed into range, and printing the resulting lists.

range() in Python 3 is just a lazy list. Instead of producing the values all at
once, and populating a real list (an array of values), range() produces them
only when requested.

In Python 2, you have range(10) produce a list, and fill it with 10 values:

[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

When you iterate over that, the interpreter says:

list[0]
"Give me the first value" -- retrieves 0 from the list

list[1]
"Give me the second value" -- retrieves 1 from the list

list[2]
"Give me the third value" -- retrieves 2 from the list

and so forth, until there are no more values. In Python 3, the range object does
NOT create a list all at once. Instead, when the interpreter says:

list[0]
"Give me the first value"

the range object (a "lazy list") calculates that the value will be 0, and
returns it; when the interpreter says:

list[6]
"Give me the seventh value"

the lazy list calculates the seventh value, namely 6, and returns it.


The advantage is not very noticeable for range(10), but consider range(1000)
instead.


[...]
> But Python 3's version of the range function has been turned into a generator.

It actually isn't a generator, and you shouldn't use that terminology.

A generator could only be iterated over once. range objects can be iterated over
and over again. Generators don't provide random access to any item, range
objects do. Generators don't know their length:


py> def range_generator(start, end):
... for x in range(start, end):
... yield x
...
py> len(range_generator(0, 10))
Traceback (most recent call last):
  File "", line 1, in 
TypeError: object of type 'generator' has no len()


but range objects do:

py> len(range(0, 10))
10
py> len(range(35, 1077, 2))
521


In fact, range objects are even sliceable!

py> range(35, 1077, 2)[50:200:3]
range(135, 435, 6)


Talking about that is probably a bit too advanced for beginners, but it does
show why you shouldn't refer to range as a generator. The most accurate
description would be a lazy sequence, or a sequence where the values are
calculated on demand.


>  Again, I understand why this happened, and I agree that this is a good
> change.  The problem is, how can I explain this concept to students who are
> just learning lists, function and function calls, etc.  The concept of how a
> generator works would be extremely difficult for them to get.  The best
> approach I have seen so far has been to build a simple for loop where I print
> out the results, like this:
> 
> for someVariable in range(0, 10):
> print(someVariable)
> 
> However, I'm worried that this might lose a lot of students.  From their point
> of view, it might seem difficult to understand that range, which looks like a
> simple function call passing in the same values each time, returns a different
> value every time it is called.

It is important that the students understand that range is not being called each
time through the loop. It only gets called once, at the start of the for-loop.

One way to understand how it works is to think of it as a while loop:

temp = range(10)  # only called once, not every time through the loop
i = 0
while i < len(temp):
someVariable = temp[i]
print(someVariable)
i += 1


Of course I don't suggest you teach your students to think of for loops in this
way -- at least not until after you've taught them while loops. I think it is
best to teach them for loops as the primitive operation, and only later tell
them that "under the hood" for loops are actually while loops.

But the important factor is that there's nothing mysterious going on with the
call to random. It returns the same value each time it is called, and it is
only called once, at the start of the loop. In some ways, it is just like a
list, except instead of 

[issue30787] Please add a comprehensive index of decorators to the documentation.

2017-06-30 Thread Brett Cannon

Brett Cannon added the comment:

And thanks for at least bringing the idea forward, Tom.

--

___
Python tracker 

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



[issue30787] Please add a comprehensive index of decorators to the documentation.

2017-06-30 Thread Brett Cannon

Brett Cannon added the comment:

Both staticmethod and contextmanager are in the index under "S" and "C". But if 
you mean they were hard to discover, having them under a list of decorators 
wouldn't have necessarily helped since, as we pointed out, you may get misled 
to look for a decorator when in fact there was a better solution that wasn't a 
decorator.

I'm closing this as "not a bug" since listing everything twice -- once under 
its name and once under its type/expected usage -- is just going to lead to 
unwieldy lists that are ridiculously long that no one is going to peruse.

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



EuroSciPy 2017 - Call for Contributions extended to July 2

2017-06-30 Thread Mike Müller
Call for Contributions
--

There are only 2 days left to submit a talk, tutorial, or poster for
EuroSciPy 2017 (https://www.euroscipy.org/2017/).

Don't miss the change to talk about what you do with Python in science.
Submit your proposal today: https://www.papercall.io/euroscipy-2017

About EuroSciPy
---

The EuroSciPy meeting is a cross-disciplinary gathering focused on the use and
development of the Python language in scientific research. This event strives
to bring together both users and developers of scientific tools, as well as
academic research and state of the art industry.

Presentations of scientific tools and libraries using the Python language,
including but not limited to:
Vector and array manipulation
Parallel computing
Scientific visualization
Scientific data flow and persistence
Algorithms implemented or exposed in Python
Web applications and portals for science and engineering-
Reports on the use of Python in scientific achievements or
ongoing projects.
General-purpose Python tools that can be of special interest
to the scientific community.

This year, we have announced our two keynote speakers: Julia Roher, one of the
authors of the blog the http://www.the100.ci/, who will discuss scientific
reproducibility and statistical analysis, and Soumith Chintala
https://research.fb.com/people/chintala-soumith/ , Senior Researcher at
Facebook AI Research, who will talk about using pytorch for Deep Learning
http://pytorch.org/
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue30796] Failures/crashes in test_signal on some buildbots

2017-06-30 Thread Antoine Pitrou

Changes by Antoine Pitrou :


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



[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-06-30 Thread R. David Murray

R. David Murray added the comment:

I'm not entirely sure what you are asking for opinions on, but for what it is 
worth I'm with Haypo: the repr should show the *actual* value of the attributes.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue30818] Warning -- asyncore.socket_map was modified by test_ftplib on AMD64 FreeBSD 10.x Shared 3.x

2017-06-30 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 73528640ffd872141e126d2c4a103126055ec9ce by Victor Stinner in 
branch 'master':
bpo-30818: test_ftplib calls asyncore.close_all() (#2514)
https://github.com/python/cpython/commit/73528640ffd872141e126d2c4a103126055ec9ce


--

___
Python tracker 

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



[issue30391] test_threading_handled() of test_socketserver hangs randomly on AMD64 FreeBSD 10.x Shared 3.6

2017-06-30 Thread STINNER Victor

STINNER Victor added the comment:

http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.x%20Shared%203.x/builds/525/steps/test/logs/stdio

0:16:07 load avg: 0.35 [406/406/1] test_socketserver crashed (Exit code 1)
Timeout (0:15:00)!
Thread 0x000802006400 (most recent call first):
  File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/threading.py", 
line 296 in wait
  File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/threading.py", 
line 552 in wait
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/test_socketserver.py",
 line 369 in wait_done
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/test_socketserver.py",
 line 341 in __init__
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/test_socketserver.py",
 line 362 in __init__
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/test_socketserver.py",
 line 307 in test_threading_handled
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/unittest/case.py", 
line 615 in run
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/unittest/case.py", 
line 663 in __call__
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/unittest/suite.py", 
line 122 in run
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/unittest/suite.py", 
line 84 in __call__
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/unittest/suite.py", 
line 122 in run
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/unittest/suite.py", 
line 84 in __call__
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/unittest/suite.py", 
line 122 in run
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/unittest/suite.py", 
line 84 in __call__
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/unittest/runner.py", 
line 176 in run
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/support/__init__.py",
 line 1896 in _run_suite
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/support/__init__.py",
 line 1940 in run_unittest
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/libregrtest/runtest.py",
 line 171 in test_runner
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/libregrtest/runtest.py",
 line 172 in runtest_inner
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/libregrtest/runtest.py",
 line 130 in runtest
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/libregrtest/runtest_mp.py",
 line 71 in run_tests_slave
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/libregrtest/main.py",
 line 517 in _main
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/libregrtest/main.py",
 line 510 in main
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/libregrtest/main.py",
 line 585 in main
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/regrtest.py", 
line 46 in _main
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/regrtest.py", 
line 50 in 
  File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/runpy.py", line 
85 in _run_code
  File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/runpy.py", line 
193 in _run_module_as_main

--

___
Python tracker 

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



[issue29512] regrtest refleak: implement bisection feature

2017-06-30 Thread STINNER Victor

STINNER Victor added the comment:


New changeset a3ca94d0504157a112a1f89bfe8be1307116fc73 by Victor Stinner in 
branch '3.6':
[3.6] bpo-29512, bpo-30776: Backport regrtest enhancements from master to 3.6 
(#2513)
https://github.com/python/cpython/commit/a3ca94d0504157a112a1f89bfe8be1307116fc73


--

___
Python tracker 

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



[issue30776] regrtest: change -R/--huntrleaks rule to decide if a test leaks references

2017-06-30 Thread STINNER Victor

STINNER Victor added the comment:


New changeset a3ca94d0504157a112a1f89bfe8be1307116fc73 by Victor Stinner in 
branch '3.6':
[3.6] bpo-29512, bpo-30776: Backport regrtest enhancements from master to 3.6 
(#2513)
https://github.com/python/cpython/commit/a3ca94d0504157a112a1f89bfe8be1307116fc73


--

___
Python tracker 

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



[issue30448] test_subprocess creates a core dump on FreeBSD

2017-06-30 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2585

___
Python tracker 

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



[issue30787] Please add a comprehensive index of decorators to the documentation.

2017-06-30 Thread R. David Murray

R. David Murray added the comment:

Hmm.  All the dunder methods are listed in the index on the '_' page.  It would 
kind of be consistent to have an '@' page.  Not sure what would be needed to 
make that happen though (might be a sphinx level thing).

--
nosy: +r.david.murray

___
Python tracker 

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



[issue30703] Non-reentrant signal handler (test_multiprocessing_forkserver hangs)

2017-06-30 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Thanks for running such a lengthy test, Matt :-)

--

___
Python tracker 

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



[issue30804] bolen-dmg-3.x build-installer.py failed

2017-06-30 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +inada.naoki

___
Python tracker 

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



[issue30280] Warning -- threading._dangling was modified by test_asyncio on FreeBSD 9 and 10

2017-06-30 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 23caf8cfc6c52bdedd8e8db688d807530355fd6d by Victor Stinner in 
branch '3.6':
bpo-30280: Cleanup threads in ayncio tests (#2501) (#2511)
https://github.com/python/cpython/commit/23caf8cfc6c52bdedd8e8db688d807530355fd6d


--

___
Python tracker 

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



[issue30280] Warning -- threading._dangling was modified by test_asyncio on FreeBSD 9 and 10

2017-06-30 Thread STINNER Victor

Changes by STINNER Victor :


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



PyCon.DE 2017 - Early Bird Deadline July 2, 2017

2017-06-30 Thread Mike Müller
PyCon.DE 2017 - Early Bird Deadline July 2, 2017


There are only 2 days left to by a ticket at the earl bird rate for PyCon.DE.
https://de.pycon.org/#tickets

About PyCon.DE
--

The next PyCon.DE will be held from 25-27th October 2017 at the ZKM - center
for art and media in Karlsruhe, Germany. The conference is the sixth in this
series, gathering Python professionals and enthusiasts. The conference language
will English, attracting Pythonistas from all over Europe and the world.
Volunteers organize and provide talks, tutorials, as well as discussions in an
open-source fashion.

This Karlsruhe conference has a special focus on data science. Therefore, a
PyData conference is held  as part of PyCon.DE. PyData is an internationally
renowned conference series, which is dedicated to data science, machine
learning, and AI.

The ZKM | Center for Art and the Media is a unique cultural institution, as it
is a place that extends the original tasks of the museum. It is a home of all
media and genres, a house of both the traditional arts like painting,
photography, and sculpture as well as the time-based arts such as film, video,
media art, music, dance, theater, and performance.

Call for proposals is still open until 1st of October. Registration for
attending the conference will start soon. Don't miss this event!
More information available at:

http://www.pycon.de
http://pydata.org
http://zkm.de
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue30818] Warning -- asyncore.socket_map was modified by test_ftplib on AMD64 FreeBSD 10.x Shared 3.x

2017-06-30 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2584

___
Python tracker 

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



[issue30280] Warning -- threading._dangling was modified by test_asyncio on FreeBSD 9 and 10

2017-06-30 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 0e0bc8762570277147a09278c829e4a85a331596 by Victor Stinner in 
branch '3.5':
bpo-30280: Cleanup threads in ayncio tests (#2501) (#2512)
https://github.com/python/cpython/commit/0e0bc8762570277147a09278c829e4a85a331596


--

___
Python tracker 

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



  1   2   3   >