[issue33911] [EASY] test_docxmlrpc fails when run with -Werror

2018-06-20 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Slightly off topic but while trying to look at the code I can see a space 
between function name and parenthesis as below. It's not an invalid syntax but 
it's mentioned as a pet peeve in PEP 8 to not to have space between function 
name and parenthesis. I did a simple grep and I could some places where even 
function definitions have spaces as below. It's a trivial thing but just wanted 
to post it here and might seem like an invalid syntax for someone new fixing it.

# Lib/xmlrpc/server.py

argspec = inspect.formatargspec (

# simple grep and manual scanning with `rg '\w+ \(' | grep -v -E 
'if|while|for|except|return' | grep '.py' | less`

Tools/gdb/libpython.py:def __init__ (self, gdbval):
Tools/gdb/libpython.py:def to_string (self):
Tools/gdb/libpython.py:def register (obj):
Tools/gdb/libpython.py:register (gdb.current_objfile ())
Tools/gdb/libpython.py:gdb.Command.__init__ (self,
Tools/gdb/libpython.py:gdb.Command.__init__ (self,
Tools/gdb/libpython.py:gdb.Command.__init__ (self,
Tools/gdb/libpython.py:gdb.Command.__init__ (self,
Tools/gdb/libpython.py:gdb.Command.__init__ (self,

# Relevant PEP 8 section : https://www.python.org/dev/peps/pep-0008/#pet-peeves

> Immediately before the open parenthesis that starts the argument list of a 
> function call:
> Yes: spam(1)
> No:  spam (1)


Also I think it will be good if a deprecation is made then it has to run the 
test suite with `-Werror` so that the deprecations are fixed which is slightly 
subjective though where deprecations are reverted back in a future version for 
reasons like easy 2to3 porting.

Thanks much for these easy issues and I hope someone takes it up.

--
nosy: +xtreak

___
Python tracker 

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



[issue33924] In IDLE menudefs, change 'windows' to 'window'

2018-06-20 Thread miss-islington


miss-islington  added the comment:


New changeset 06deaf44d05471d9438502706cc09bb0e2ad3216 by Miss Islington (bot) 
in branch '3.6':
bpo-33924: Change IDLE mainmenu.menudefs key 'windows' to 'window' (GH-7836)
https://github.com/python/cpython/commit/06deaf44d05471d9438502706cc09bb0e2ad3216


--

___
Python tracker 

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



[issue33924] In IDLE menudefs, change 'windows' to 'window'

2018-06-20 Thread miss-islington


miss-islington  added the comment:


New changeset e1f0dceb266ae66a3b8ea9d087266f3960c59b2d by Miss Islington (bot) 
in branch '3.7':
bpo-33924: Change IDLE mainmenu.menudefs key 'windows' to 'window' (GH-7836)
https://github.com/python/cpython/commit/e1f0dceb266ae66a3b8ea9d087266f3960c59b2d


--
nosy: +miss-islington

___
Python tracker 

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



Re: Feeding the trolls

2018-06-20 Thread Abdur-Rahmaan Janhangeer
by building a custom py-based mail client maybe ^^_

Abdur-Rahmaan Janhangeer
https://github.com/Abdur-rahmaanJ

On Wed, 20 Jun 2018, 17:18 D'Arcy Cain,  wrote:

> On 2018-06-20 08:10 AM, Tim Golden wrote:
> > [... snip discussions about Bart's language ...]
> >
> > Wearing my moderator hat
> >
> > Can we take the "Bart's language vs Python Show" to some other forum,
> > please? We've already gone over this ground again and again and it isn't
> > helping the signal-to-noise ratio here on the Python list /
> > comp.lang.python
>
> Thank you.  Many of us have blocked rick and bart years ago.  If you are
> just going to feed the trolls we have to see their nonsense anyway.
> Just email them privately if you really feel the need to vent.
>
> One of these days I will have to figure out how to block replies to the
> trolls as well.
>
> --
> D'Arcy J.M. Cain
> Vybe Networks Inc.
> http://www.VybeNetworks.com/
> IM:da...@vex.net VoIP: sip:da...@vybenetworks.com
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


nltk related issue

2018-06-20 Thread Sharan Basappa
Folks,

I am trying to run a simple example associated with nltk.
I get some error and I don't know what the issue is.
I need some guidance please.

I am using python canopy distribution

The following is the code:

inputstring = ' This is an example sent. The sentence splitter will split on 
sent markers. Ohh really !!'
from nltk.tokenize import sent_tokenize

sentences = sent_tokenize(inputstring)

print sentences


The following is the error report:

LookupErrorTraceback (most recent call last)
D:\Projects\Initiatives\machine learning\programs\nltk_1.py in ()
  2 from nltk.tokenize import sent_tokenize
  3 
> 4 sentences = sent_tokenize(inputstring)
  5 
  6 print sentences
D:\Users\sharanb\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\nltk\tokenize\__init__.pyc
 in sent_tokenize(text, language)
 94 :param language: the model name in the Punkt corpus
 95 """
---> 96 tokenizer = load('tokenizers/punkt/{0}.pickle'.format(language))
 97 return tokenizer.tokenize(text)
 98 
D:\Users\sharanb\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\nltk\data.pyc
 in load(resource_url, format, cache, verbose, logic_parser, fstruct_reader, 
encoding)
812 
813 # Load the resource.
--> 814 opened_resource = _open(resource_url)
815 
816 if format == 'raw':
D:\Users\sharanb\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\nltk\data.pyc
 in _open(resource_url)
930 
931 if protocol is None or protocol.lower() == 'nltk':
--> 932 return find(path_, path + ['']).open()
933 elif protocol.lower() == 'file':
934 # urllib might not use mode='rb', so handle this one ourselves:
D:\Users\sharanb\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\nltk\data.pyc
 in find(resource_name, paths)
651 sep = '*' * 70
652 resource_not_found = '\n%s\n%s\n%s' % (sep, msg, sep)
--> 653 raise LookupError(resource_not_found)
654 
655 
LookupError: 
**
  Resource u'tokenizers/punkt/english.pickle' not found.  Please
  use the NLTK Downloader to obtain the resource:  >>>
  nltk.download()
  Searched in:
- 'D:\\Users\\sharanb/nltk_data'
- 'C:\\nltk_data'
- 'D:\\nltk_data'
- 'E:\\nltk_data'
- 
'D:\\Users\\sharanb\\AppData\\Local\\Enthought\\Canopy\\edm\\envs\\User\\nltk_data'
- 
'D:\\Users\\sharanb\\AppData\\Local\\Enthought\\Canopy\\edm\\envs\\User\\lib\\nltk_data'
- 'D:\\Users\\sharanb\\AppData\\Roaming\\nltk_data'
- u''
** 
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue32500] PySequence_Length() raises TypeError on dict type

2018-06-20 Thread Vedran Čačić

Vedran Čačić  added the comment:

I don't believe this. Are you seriously saying that it is ok to tell the user 
"object of type 'dict' has no len()" when of course it does? Please change the 
error message so it does not so blatantly lie. Yes, I understand the underlying 
issue, but the common user doesn't need to understand it, and they shouldn't be 
lied to.

--
nosy: +veky

___
Python tracker 

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



[issue33912] [EASY] test_warnings: test_exec_filename() fails when run with -Werror

2018-06-20 Thread Christopher Frederickson


Change by Christopher Frederickson :


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

___
Python tracker 

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



[issue33924] In IDLE menudefs, change 'windows' to 'window'

2018-06-20 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7447

___
Python tracker 

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



[issue33924] In IDLE menudefs, change 'windows' to 'window'

2018-06-20 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7446

___
Python tracker 

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



[issue33924] In IDLE menudefs, change 'windows' to 'window'

2018-06-20 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 33c7420e7dd9d8e5b2aa15e98da6291bab6fcf33 by Terry Jan Reedy in 
branch 'master':
 bpo-33924: Change IDLE mainmenu.menudefs key 'windows' to 'window' (GH-7836)
https://github.com/python/cpython/commit/33c7420e7dd9d8e5b2aa15e98da6291bab6fcf33


--

___
Python tracker 

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



[issue33909] PyObject_CallFinalizerFromDealloc is not referenced in any documentation

2018-06-20 Thread INADA Naoki


INADA Naoki  added the comment:

I think I can describe what two function does/for.
But I'm not good English writer.  Would you write document instead?

---

"Finalizer" is __del__ in Python and tp_finalize in C.

Calling finalizer requires some tricks, including avoiding call twice.
That is what PyObject_CallFinalizer() does.  Use it instead of call 
`type->tp_finalize(obj)` directly.

But finalizer is called from destructor (tp_dealloc) usually, and calling 
finalizer from destructor need more hack (e.g. temporary increment refcount).  
This is what PyObject_CallFinalizerFromDealloc does.

Generally speaking, this API is used only when you want to use both of custom 
tp_dealloc and tp_finalize.  This is very rare because you can write cleanup 
code in tp_dealloc and skip using tp_finalize.

When you need really need both of tp_dealloc and tp_finalize, note that:

* Finalizer may resurrect the object.
* When the type is subclassed from Python, tp_finalize is called automatically. 
 You must not call PyObject_CallFinalizerFromDealloc then.

This is tp_dealloc of Future object in asyncio.  This object uses both of 
tp_dealloc and tp_finalize for compatibility with Future object implemented in 
pure Python.  This covers many edge cases of tp_dealloc.

```
static void
FutureObj_dealloc(PyObject *self)
{
FutureObj *fut = (FutureObj *)self;

if (Future_CheckExact(fut)) {
/* When fut is subclass of Future, finalizer is called from
 * subtype_dealloc.
 */
if (PyObject_CallFinalizerFromDealloc(self) < 0) {
// resurrected.
return;
}
}

// Weakref callback and finalizer of other objects may start GC.
// So you need to untrack this object from GC before calling 
PyObject_ClearWeakRefs()
// or any Py_DECREF()s
// Otherwise, GC will cause segfault because refcount of this object is 0.
PyObject_GC_UnTrack(self);

// Handle weakrefs
if (fut->fut_weakreflist != NULL) {
PyObject_ClearWeakRefs(self);
}

// Reuse tp_clear() for clearing all members.
(void)FutureObj_clear(fut);

// Free this object at last.
Py_TYPE(fut)->tp_free(fut);
}
```

--
nosy: +inada.naoki

___
Python tracker 

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



[issue33924] In IDLE menudefs, change 'windows' to 'window'

2018-06-20 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
keywords: +patch
pull_requests: +7445
stage: needs patch -> patch review

___
Python tracker 

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



[issue33924] In IDLE menudefs, change 'windows' to 'window'

2018-06-20 Thread Terry J. Reedy


New submission from Terry J. Reedy :

Some time ago, IDLE's main menu item 'Windows' was changed to 'Window'.  The 
latter seems to be pretty standard for a list of open windows.  Issue #33906 
changed the implementation module name accordingly, from 'windows' to 'window'. 
 This issue is about changing the 'windows' key in mainmenu.menudef to 
'window'. All other keys are the lower case version of the uppercase menu item.

editor subscripts derived menudict with ['windows'] and menu_specs, which maps 
menudef keys to menu names, includes ('windows': '_Window'). pyshell also has 
menu_specs

Function and pseudoevent names that include 'windows'should be left alone.

Besides the automated tests passing, the manual test will be that 'Window' 
works properly in all of Shell, editor window, and output window, as each is 
added.

--
assignee: terry.reedy
components: IDLE
messages: 320133
nosy: terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: In IDLE menudefs, change 'windows' to 'window'
type: behavior
versions: Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue33906] IDLE: rename windows.py as window.py

2018-06-20 Thread Terry J. Reedy


Change by Terry J. Reedy :


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

___
Python tracker 

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



[issue33906] IDLE: rename windows.py as window.py

2018-06-20 Thread miss-islington


miss-islington  added the comment:


New changeset 2839da4e51da5d66fa3d6e57eba4ba04f0641dab by Miss Islington (bot) 
in branch '3.6':
bpo-33906: Rename idlelib.windows as window (GH-7833)
https://github.com/python/cpython/commit/2839da4e51da5d66fa3d6e57eba4ba04f0641dab


--

___
Python tracker 

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



[issue33906] IDLE: rename windows.py as window.py

2018-06-20 Thread miss-islington


miss-islington  added the comment:


New changeset f9243a22da6a609143e27abf3ca37a4f63d5aae9 by Miss Islington (bot) 
in branch '3.7':
bpo-33906: Rename idlelib.windows as window (GH-7833)
https://github.com/python/cpython/commit/f9243a22da6a609143e27abf3ca37a4f63d5aae9


--
nosy: +miss-islington

___
Python tracker 

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



[issue33922] Enforce 64bit Python by Launcher

2018-06-20 Thread Eryk Sun


Eryk Sun  added the comment:

Limiting to 64-bit is already implemented in the latest version of the 
launcher. For example, below I've renamed the registry key for 64-bit Python 
3.5 to "xxx3.5" to prevent the launcher from finding it:

C:\>py -3.5-64
Python 3.5-64 not found!
Installed Pythons found by py Launcher for Windows
 -xxx-64
 -3.7-64 *
 -3.7-32
 -3.6-64
 -3.6-32
 -3.5-32
 -2.7-64
 -2.7-32

Requested Python version (3.5-64) not installed, use -0 for available 
pythons

-0p also lists the path for each executable. It's a bit rough around the edges 
that it lists the available versions and then tells the user to list them via 
-0 instead of the more general advice to use -h or --help for available 
options. 

The long names for -0 and -0p are --list and --list-paths, but currently these 
do not work. That should be easy to fix in the launcher's process() function if 
you want to contribute a patch.

--
nosy: +eryksun
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Allow windows launcher to specify bit lengths with & without 
minor version

___
Python tracker 

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



[issue33742] Unsafe memory access in PyStructSequence_InitType

2018-06-20 Thread Xiang Zhang


Change by Xiang Zhang :


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



[issue33906] IDLE: rename windows.py as window.py

2018-06-20 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7444

___
Python tracker 

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



[issue33906] IDLE: rename windows.py as window.py

2018-06-20 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7443

___
Python tracker 

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



[issue33906] IDLE: rename windows.py as window.py

2018-06-20 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset a361e89d5ae3daefe9e8b8a7e889cd2ad8c45b77 by Terry Jan Reedy in 
branch 'master':
bpo-33906: Rename idlelib.windows as window (#7833)
https://github.com/python/cpython/commit/a361e89d5ae3daefe9e8b8a7e889cd2ad8c45b77


--

___
Python tracker 

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



[issue33906] IDLE: rename windows.py as window.py

2018-06-20 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +7442

___
Python tracker 

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



[issue33923] py.ini cannot set 32/64bits for specific version

2018-06-20 Thread Robert


New submission from Robert :

Currently py.ini allows to set default interpreters for python 3 and 2. i.e.:
python3=3.6-32
python2=2.7-32

But it is not possible to set a default interpreter on a specific version.
I.e. when running "py -3.6" it would be nice to set the default to 32bit. i.e.:
python3.6=3.6-32

Of course this makes only sense in combination with 
https://bugs.python.org/issue33922 as one requires the possibility to override 
the 32bit default then.

--
messages: 320128
nosy: mrh1997
priority: normal
severity: normal
status: open
title: py.ini cannot set 32/64bits for specific version

___
Python tracker 

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



[issue33922] Enforce 64bit Python by Launcher

2018-06-20 Thread Robert


New submission from Robert :

When using the Python Launcher "py.exe", it uses 64bit by default and I can 
enforce using 32bit. 

But there is no way to enforce 64bit. If I run "py -3.6" the actual called 
interpreter depends on the interpreter versions installed on my system. 

Thus "py -3.6-64" is missing. 
This is important if 64bit features are required.

--
components: Windows
messages: 320127
nosy: mrh1997, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Enforce 64bit Python by Launcher
type: enhancement

___
Python tracker 

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



[issue33716] test_concurrent_futures.test_crash() failed on x86 Windows7 3.7

2018-06-20 Thread STINNER Victor


STINNER Victor  added the comment:

+def tearDown(self):
+self.executor.shutdown(wait=True)
+dt = time.time() - self.t1
+if test.support.verbose:
+print("%.2fs" % dt, end=' ')
+self.assertLess(dt, 60, "synchronization issue: test lasted too long")

This code has been added by:

commit aebac0b55a1e3addb93ec7992046a4f9561b4175
Author: Antoine Pitrou 
Date:   Thu Mar 24 15:47:39 2011 +0100

Add tests for the atexit hook in concurrent.futures (part of #11635)


What is the purpose of having an hardcoded maximum test execution duration? If 
a test takes 2 seconds instead of 1, it means that the test found a design 
issue in concurrent.futures? Or it would mean that the test has a bug?

We have many buildbots which are super slow, so I proposed to increase the 
maximum duration to 5 minutes instead of 1 minute to quickly repair buildbots.

But with 5 minutes, I'm not sure that the check is still useful. 

@Antoine: do you recall the rationale for this check?

--
nosy: +pitrou

___
Python tracker 

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



[issue33921] Explain that '' can be used to bind to all interfaces for the AF_INET address family in the docs

2018-06-20 Thread John Hagen


New submission from John Hagen :

The socket documentation 
(https://docs.python.org/3/library/socket.html#socket-families) does not list 
'' as a way to bind to all interfaces for the AF_INET/AF_INET6 address family.

This is answered on SO here: https://stackoverflow.com/a/8034146 but it took me 
a while to find it. Ideally if this was mentioned in the docs, that would be 
great.

--
assignee: docs@python
components: Documentation
messages: 320125
nosy: John Hagen, docs@python
priority: normal
severity: normal
status: open
title: Explain that '' can be used to bind to all interfaces for the AF_INET 
address family in the docs
type: enhancement
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue15533] subprocess.Popen(cwd) documentation: Posix vs Windows

2018-06-20 Thread Gregory P. Smith


Change by Gregory P. Smith :


--
assignee:  -> gregory.p.smith

___
Python tracker 

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



Re: syntax difference

2018-06-20 Thread Gregory Ewing

Michael Torrie wrote:

Pointers are for a different conceptual model, a different (virtual)
machine architecture.


And even in many lower-level languages that do have pointers,
they're not much like the wild, undisciplined version that you
get in C and C++. In Pascal, for example (and derivatives like
Modula) the only legitimate use for a pointer is to reference
a heap-allocated memory block -- they can't point into the middle
of arbitrary data structures.

I think Pascal does a pretty good job of abstracting the
essential features of the underlying hardware, and it does it
without needing anything like a C-style pointer.

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


Re: syntax difference

2018-06-20 Thread Gregory Ewing

Michael Torrie wrote:

And I posit that most efficient interpreters don't use switch/case at
all, but rather jump tables.


Not always true. If the number of cases is small enough,
a tree of branches could be faster due to cacheing and
pipelining issues.

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


[issue33903] Can't use lib2to3 with embeddable zip file

2018-06-20 Thread Steve Dower


Steve Dower  added the comment:

Oh, and issue24960 is not the same. That one is related primarily to having the 
entire standard library in a zip file. That may be the case for the embeddable 
distro, but the embeddable distro is also not intended to support installing 
packages itself, so it is out of scope. (Though there's a possibility that the 
grammar files are not generated in the Nuget packages either, so you may need 
to use a full install for packages requiring 2to3.)

--

___
Python tracker 

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



[issue33903] Can't use lib2to3 with embeddable zip file

2018-06-20 Thread Steve Dower


Steve Dower  added the comment:

This is by design. If you want to install packages into a directory that 
includes the embeddable zip, you'll need either the matching full install of 
Python or the Nuget package and use the "--target" argument to pip to put the 
packages in your directory.

See https://docs.python.org/3/using/windows.html#embedded-distribution for more 
information about using this package.

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



[issue33906] IDLE: rename windows.py as window.py

2018-06-20 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions:  -Python 2.7

___
Python tracker 

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



[issue33906] IDLE: rename windows.py as window.py

2018-06-20 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Marking 2.7 for a search test.

--
versions: +Python 2.7

___
Python tracker 

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



[issue33917] Fix and document idlelib/idle_test/template.py

2018-06-20 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
keywords:  -patch
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue33920] test_asyncio: test_run_coroutine_threadsafe_with_timeout() failed on AMD64 FreeBSD 10.x Shared 3.7

2018-06-20 Thread STINNER Victor


New submission from STINNER Victor :

AMD64 FreeBSD 10.x Shared 3.7:

http://buildbot.python.org/all/#/builders/124/builds/397

==
FAIL: test_run_coroutine_threadsafe_with_timeout 
(test.test_asyncio.test_tasks.RunCoroutineThreadsafeTests)
Test coroutine submission from a thread to an event loop
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/python/3.7.koobs-freebsd10/build/Lib/test/test_asyncio/test_tasks.py",
 line 3108, in test_run_coroutine_threadsafe_with_timeout
self.loop.run_until_complete(future)
AssertionError: TimeoutError not raised

--
components: asyncio
messages: 320121
nosy: asvetlov, vstinner, yselivanov
priority: normal
severity: normal
status: open
title: test_asyncio: test_run_coroutine_threadsafe_with_timeout() failed on 
AMD64 FreeBSD 10.x Shared 3.7
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



[issue33873] False positives when running leak tests with -R 1:1

2018-06-20 Thread STINNER Victor


STINNER Victor  added the comment:

> I think commit 4ffe9c2b251f6e027b26250b7a2618e78d4edd22 from bpo-33718 should 
> be backported IMO: ...

Once PR 7735 will be merged, we can backport recent regrtest commits at once 
into 3.7, then backport the 3.7 change to 3.6 and 2.7.

--

___
Python tracker 

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



[issue33917] Fix and document idlelib/idle_test/template.py

2018-06-20 Thread miss-islington


miss-islington  added the comment:


New changeset 7c853d0620e1ea838f46642dbaa8ef142d80aa01 by Miss Islington (bot) 
in branch '3.6':
bpo-33917: Fix and document idlelib/idle_test/template.py (GH-7830)
https://github.com/python/cpython/commit/7c853d0620e1ea838f46642dbaa8ef142d80aa01


--

___
Python tracker 

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



[issue33873] False positives when running leak tests with -R 1:1

2018-06-20 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

I think commit4ffe9c2b251f6e027b26250b7a2618e78d4edd22 from bpo-33718 should be 
backported IMO:

bpo-33718: regrtest: use format_duration() to display failed tests (GH-7686)
https://github.com/python/cpython/commit/4ffe9c2b251f6e027b26250b7a2618e78d4edd22

--

___
Python tracker 

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



[issue33917] Fix and document idlelib/idle_test/template.py

2018-06-20 Thread miss-islington


miss-islington  added the comment:


New changeset a717c5646b36a42e4eb0ec4ae2a22520ff47d346 by Miss Islington (bot) 
in branch '3.7':
bpo-33917: Fix and document idlelib/idle_test/template.py (GH-7830)
https://github.com/python/cpython/commit/a717c5646b36a42e4eb0ec4ae2a22520ff47d346


--
nosy: +miss-islington

___
Python tracker 

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



[issue33918] Hooking into pause/resume of iterators/coroutines

2018-06-20 Thread Yury Selivanov


Yury Selivanov  added the comment:

> Imagine the context manager is mock.patch used in testing and you want to run 
> two tests in "parallel", each with a different mocked method. mock.patch 
> isn't aware of `await` so patching will be incorrect.

That's still doable with contextvars. You just need a custom mock-like object 
(or library) that stores its settings/state in a context variable.

Now, the "mock" module doesn't provide this functionality out of the box, but I 
hope that somebody will come up with a new mock library that will work that way 
(or with a new mock primitive) after 3.7.0 is released.

Adding __pause__ and __resume__ was considered in PEP 521, and it was decided 
that the actual implementation will be too slow and complex.  It's very 
unlikely that PEP 521 is ever accepted.

--

___
Python tracker 

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



[issue33917] Fix and document idlelib/idle_test/template.py

2018-06-20 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7441

___
Python tracker 

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



[issue33918] Hooking into pause/resume of iterators/coroutines

2018-06-20 Thread Liran Nuna


Liran Nuna  added the comment:

> You should try to use the contextvars module that was specifically created to 
> handle local context state (for tasks & coroutines).

Yury, from my original report:

> I'm aware that this particular problem could be solved with the new context 
> variables introduced with python3.7, however it is just a simplification of 
> our actual issue.

Not everything can use context managers. Imagine the context manager is 
mock.patch used in testing and you want to run two tests in "parallel", each 
with a different mocked method. mock.patch isn't aware of `await` so patching 
will be incorrect.

Those are just some behaviors where context variables don't solve the issue I'm 
describing.

--

___
Python tracker 

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



[issue33917] Fix and document idlelib/idle_test/template.py

2018-06-20 Thread miss-islington


Change by miss-islington :


--
keywords: +patch
pull_requests: +7440
stage: commit review -> patch review

___
Python tracker 

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



[issue33917] Fix and document idlelib/idle_test/template.py

2018-06-20 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 87a927325e3856621790a39d8718ff24a19510aa by Terry Jan Reedy in 
branch 'master':
bpo-33917: Fix and document idlelib/idle_test/template.py (GH-7830)
https://github.com/python/cpython/commit/87a927325e3856621790a39d8718ff24a19510aa


--

___
Python tracker 

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



[issue33613] test_multiprocessing_fork: test_semaphore_tracker_sigint() fails with -W error

2018-06-20 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

There are two problems in test_semaphore_tracker_sigint. One of the problems is 
that if `should_die` is False, the code does not check
that no warning is raised (and the warning is being raised, so this
the error has pass silently.) The other problem is a race condition
between the parent calls `_semaphore_tracker.ensure_running()` (which in turn 
spawns the semaphore_tracker using `_posixsubprocess.fork_exec`) and the child 
registering the signals. So basically, the parent sends the signal before the 
child protects against the signal. Modifying:

_semaphore_tracker.ensure_running()
pid = _semaphore_tracker._pid
os.kill(pid, signum)
time.sleep(1.0)  # give it time to die

to

_semaphore_tracker.ensure_running()
pid = _semaphore_tracker._pid
time.sleep(1.0) # Give time for the child to register the signal 
handlers
os.kill(pid, signum)
time.sleep(1.0)  # give it time to die

fix the issue. I have tested this on one of the most grumpy and slow buildbots 
(gcc110) and it works.

I cannot think of a different way of waiting for the child to register the 
signals without modifying the child code for testing so I am not sure that we 
can do anything rather than the sleep.

--

___
Python tracker 

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



[issue33917] Fix and document idlelib/idle_test/template.py

2018-06-20 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
stage: needs patch -> commit review

___
Python tracker 

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



[issue33917] Fix and document idlelib/idle_test/template.py

2018-06-20 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Tal and Cheryl: I revised the template for IDLE tests, pulled it out of 
README.txt into template.py, and explained it in the readme.  It has new code 
for cleaning up after instantiating EditorWindow in tests.  Please follow for 
any new test file, including test_tooltip and test_squeezer.  (They should both 
be pretty close already.)

--
keywords:  -patch
nosy: +cheryl.sabella, taleinat
stage: patch review -> needs patch

___
Python tracker 

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



[issue33918] Hooking into pause/resume of iterators/coroutines

2018-06-20 Thread Yury Selivanov


Yury Selivanov  added the comment:

You should try to use the contextvars module that was specifically created to 
handle local context state (for tasks & coroutines).

--

___
Python tracker 

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



[issue33919] Expose _PyCoreConfig structure to Python

2018-06-20 Thread STINNER Victor


STINNER Victor  added the comment:

Is is still a secret seed if it's public? :)

--
nosy: +vstinner

___
Python tracker 

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



Re: syntax difference

2018-06-20 Thread bart4858
You're right. While pointers can be made to fit, it would be an awkward fit 
into Python and could introduce overheads even when not used.

My use of them is frequently when straddling boundaries between languages (a 
pointer in one environment points to the data of another), or when working just 
outside the language's object system, or using pointers to raw machine types 
that are not reference counted.

This would not be disciplined enough for Python.

So forget I mentioned them even though they could open up interesting 
possibilities such as reference parameters.

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


[issue33917] Fix and document idlelib/idle_test/template.py

2018-06-20 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
keywords: +patch
pull_requests: +7439
stage: needs patch -> patch review

___
Python tracker 

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



[issue33919] Expose _PyCoreConfig structure to Python

2018-06-20 Thread Barry A. Warsaw


Barry A. Warsaw  added the comment:

On Jun 20, 2018, at 13:28, Christian Heimes  wrote:
> 
> Christian Heimes  added the comment:
> 
> hash_seed and use_hash_seed could be added to sys.hash_info. This would be 
> the first place I'd look for the information. After all I implemented it. :)

That was the first place I looked too :)

--

___
Python tracker 

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



[issue15533] subprocess.Popen(cwd) documentation: Posix vs Windows

2018-06-20 Thread Chris Jerdonek


Change by Chris Jerdonek :


--
assignee: chris.jerdonek -> 

___
Python tracker 

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



[issue33919] Expose _PyCoreConfig structure to Python

2018-06-20 Thread Christian Heimes


Christian Heimes  added the comment:

hash_seed and use_hash_seed could be added to sys.hash_info. This would be the 
first place I'd look for the information. After all I implemented it. :)

--
nosy: +christian.heimes

___
Python tracker 

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



[issue33875] Allow dynamic password evaluation in pypirc configuration file.

2018-06-20 Thread Ned Deily


Change by Ned Deily :


--
nosy: +ncoghlan

___
Python tracker 

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



[issue33894] tempfile.tempdir cannot be unset

2018-06-20 Thread Srinivas Reddy T


Change by Srinivas  Reddy T :


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

___
Python tracker 

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



[issue33919] Expose _PyCoreConfig structure to Python

2018-06-20 Thread Barry A. Warsaw


New submission from Barry A. Warsaw :

The _PyCoreConfig structure in pystate.h has some interesting fields that I 
don't think are exposed anywhere else to Python-land.  I was particularly 
interested recently in hash_seed and use_hash_seed.   I'm thinking that it may 
be useful to expose this structure in the sys module.

--
assignee: barry
components: Interpreter Core
messages: 320107
nosy: barry
priority: normal
severity: normal
stage: needs patch
status: open
title: Expose _PyCoreConfig structure to Python
type: enhancement
versions: Python 3.8

___
Python tracker 

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



[issue33716] test_concurrent_futures.test_crash() failed on x86 Windows7 3.7

2018-06-20 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue33903] Can't use lib2to3 with embeddable zip file

2018-06-20 Thread Brett Cannon


Change by Brett Cannon :


--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware

___
Python tracker 

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



[issue33174] compiler error building the _sha3 module with Intel 2018 compilers

2018-06-20 Thread Kenneth Hoste


Kenneth Hoste  added the comment:

Fully agreed that this is not something that should be fixed in the Python code 
base.

Moreover, the problem has been fixed in Intel compilers 2018 update 3 as far as 
I can tell (tested with both Python 3.6.4 and 3.7.0rc1).

I can't reproduce the problem anymore with that version of the Intel compilers, 
even after setting a hard stack limit (e.g. "ulimit -s 10240"), while it was 
easy to reproduce with the 2018 update 1 version.

--

___
Python tracker 

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



[issue33918] Hooking into pause/resume of iterators/coroutines

2018-06-20 Thread Liran Nuna


Liran Nuna  added the comment:

I would like to stress this issue happens with iterators as well, and this 
isn't a unique issue to asyncio only. 

I would like to propose four new magic methods for context managers to solve 
this: __pause__, __resume__, __apause__ and __aresume__ which will be called 
before/after a pause/resume happen before the coroutine/iterator continues.

I'm not sure however if this is the correct venue for such discussion.

--

___
Python tracker 

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



[issue33174] compiler error building the _sha3 module with Intel 2018 compilers

2018-06-20 Thread Ned Deily


Ned Deily  added the comment:

Thanks for all the investigate work and thanks for the finding what appears to 
be an easy workaround, @boegel.  Clearly, though, this is not a Python problem 
and, with an external workaround (e.g. increasing the process stack size via 
ulimit), there is no need for a workaround in Python itself so I'm closing this 
issue.  Suggest making sure that the workaround is brought to the Intel 
compiler team's attention.

--
nosy: +ned.deily
resolution:  -> third party
stage:  -> resolved
status: open -> closed
title: error building the _sha3 module with Intel 2018 compilers -> compiler 
error building the _sha3 module with Intel 2018 compilers

___
Python tracker 

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



[issue33917] Fix and document idlelib/idle_test/template.py

2018-06-20 Thread Terry J. Reedy


Change by Terry J. Reedy :


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

___
Python tracker 

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



Re: syntax difference

2018-06-20 Thread bart4858
The actual interpreter code is irrelevant. Switch would be a feature of the 
language being interpreted, not of the interpreter.

If the task is to match an expression X against a variety of values, then 
expressing that as a switch means the interpreter /could/ use a jump table (of 
labels within the byte code), rather than execute a chain of X==Y tests within 
byte code. So, evaluate X once then it could be a single byte code op.

At least, it will know that exactly the same X value is being tested. So you 
evaluate it once then keep it on the stack.

Think of Switch as another kind if hint.

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


[issue33917] Fix and document idlelib/idle_test/template.py

2018-06-20 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I wrote it intentionally the way it is, for #33855, as it made it maximally 
easily to use to complete the test suite.  Since it caused a problem, I added a 
valid dummy name to be replaced, and fixed the other syntax error.  The file 
now compiles, runs, and tests OK.  New IDLE modules needing a new test file 
should be rare.

I will submit the PR after I edit the readme to document the usage of the 
template.

--
stage:  -> needs patch
title: idlelib/idle_test/template.py has invalid syntax -> Fix and document 
idlelib/idle_test/template.py
type:  -> behavior

___
Python tracker 

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



[issue33918] Hooking into pause/resume of iterators/coroutines

2018-06-20 Thread Ned Deily


Change by Ned Deily :


--
components: +asyncio -Interpreter Core
nosy: +asvetlov, yselivanov
versions:  -Python 3.4, Python 3.5

___
Python tracker 

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



[issue33855] IDLE: Minimally test every non-startup module.

2018-06-20 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

#33917 is about fixing and documenting template.py.

--
dependencies: +idlelib/idle_test/template.py has invalid syntax

___
Python tracker 

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



[issue33918] Hooking into pause/resume of iterators/coroutines

2018-06-20 Thread Liran Nuna


New submission from Liran Nuna :

An interesting property of async programming is that execution order is 
nondeterministic and async function "pause" and "resume" execution as events 
come in.

This can play havok with context managers, especially ones that wrap a global 
state change. I can best explain it with code - see attached file.

If you were to run this, you'd notice that "Should be logged" does not get 
logged - this is because the execution order runs the context manager 
immediately and that affects the entire batch (created by asyncio.gather).

Is there a way to hook into a pause/resume handling of coroutines so this kind 
of thing could be done correctly? I'm aware that this particular problem could 
be solved with the new context variables introduced with python3.7, however it 
is just a simplification of our actual issue.

Iterators also suffer from this issue, as `yield` pauses and resumes execution.

--
components: Interpreter Core
files: async_context_managers.py
messages: 320101
nosy: Liran Nuna
priority: normal
severity: normal
status: open
title: Hooking into pause/resume of iterators/coroutines
type: behavior
versions: Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8
Added file: https://bugs.python.org/file47646/async_context_managers.py

___
Python tracker 

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



Re: syntax difference

2018-06-20 Thread Michael Torrie
On 06/20/2018 03:35 AM, bart4...@gmail.com wrote:
> Pointers are merely an extra level of indirection; they can be made to fit.

I'm hard pressed to think of any way in which pointers could fit into
Python given the way python variables work and given the virtual machien
architecture and abstraction that python presents to programemrs.
Pointers are for a different conceptual model, a different (virtual)
machine architecture.

I programmed for many years when I was a young without pointers and
never needed them in the language I was using which broadly abstracted
memory.  When I learned C and C++, I learned how to work with pointers
because they were intrinsically a part of the programming paradigm these
languages espouse.  Both languages are extremely low-level, with very
little abstraction between you and the Von Neumann machine.

Given your experience with programming and making your own programming
languages, I'm often surprised by your assertions.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: syntax difference

2018-06-20 Thread Michael Torrie
On 06/20/2018 05:53 AM, bart4...@gmail.com wrote:
> I suggest that such features just make life a little simpler. (And
> make writing an efficient interpreter a little bit easier.)

And I posit that most efficient interpreters don't use switch/case at
all, but rather jump tables.
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue33912] [EASY] test_warnings: test_exec_filename() fails when run with -Werror

2018-06-20 Thread Brett Cannon


Change by Brett Cannon :


--
nosy: +brett.cannon

___
Python tracker 

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



[issue33174] error building the _sha3 module with Intel 2018 compilers

2018-06-20 Thread Kenneth Hoste


Kenneth Hoste  added the comment:

After a bit of back and forth, we have figured out the underlying cause for the 
problem with the Intel compiler: if the stack limit is not set to a specific 
value (see output of "ulimit -s"), the Intel compilers fail with a segfault or 
Interal Compiler Error (ICE).

But if the stack limit is set to 'unlimited' (e.g. via "ulimit -s unlimited"), 
then the compilation works fine...

See also https://github.com/easybuilders/easybuild-easyconfigs/issues/6484 and 
our (optional) workaround in 
https://github.com/easybuilders/easybuild-easyblocks/pull/1441

--

___
Python tracker 

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



Re: syntax difference

2018-06-20 Thread Alister via Python-list
On Tue, 19 Jun 2018 16:25:50 -0700, bart4858 wrote:

> Some of that can be done. It may not need specific support.
> 
> But my intention is to have an ordinary language for everyday coding not
> one that can only be understood by CS professors.
> 
> Mine is unusual in that I can drop features I rarely use, which means
> that everything in it gets good use. Including multi-level breaks.
> 
only because no one else is using your language & you do not have to 
worry about breaking the code of your userbase.

I think you are suffering from NIH* syndrome & are reinventing the wheel 
for no particular reason other than "Because you can"

> And the core language can stay small (or smallish - it's not Forth).
> Which I think is where we came in.

* Not Invented Here




-- 
To be a kind of moral Unix, he touched the hem of Nature's shift.
-- Shelley
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue33917] idlelib/idle_test/template.py has invalid syntax

2018-06-20 Thread Matthias Klose


New submission from Matthias Klose :

Seen with the 3.6 branch and the 3.7 branch at least. This file is installed by 
default, so should be valid syntax?  If it's supposed to be that way, maybe 
call the template like template.py.in?


  Unpacking libpython3.6-testsuite (3.6.6~rc1-3) ...
  Setting up libpython3.6-testsuite (3.6.6~rc1-3) ...
File "/usr/lib/python3.6/idlelib/idle_test/template.py", line 3
  from idlelib import
^
  SyntaxError: invalid syntax

--
assignee: terry.reedy
components: IDLE
keywords: 3.6regression, 3.7regression
messages: 320099
nosy: doko, terry.reedy
priority: release blocker
severity: normal
status: open
title: idlelib/idle_test/template.py has invalid syntax

___
Python tracker 

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



[issue8557] subprocess PATH semantics and portability

2018-06-20 Thread Jan Lachnitt


Jan Lachnitt  added the comment:

A related issue exists with cwd: #15533.

--
nosy: +pepalogik

___
Python tracker 

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



[issue15533] subprocess.Popen(cwd) documentation: Posix vs Windows

2018-06-20 Thread Jan Lachnitt


Jan Lachnitt  added the comment:

Nobody responds yet, so I will.

I think that the basic proposal was made by Chris Jerdonek in msg171692 already 
on 2012-10-01: First document both behaviors and then discuss the possible 
harmonization. I think the proposal was good and further discussion has 
confirmed this.

Chris Jerdonek, to whom this issue is assigned, last commented it on 
2012-12-18. Shouldn't the issue be assigned to somebody else?

By the way, the related env issue is #8557.

--

___
Python tracker 

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



[issue33916] test_lzma: test_refleaks_in_decompressor___init__() leaks 100 handles on Windows

2018-06-20 Thread Zackery Spytz


Change by Zackery Spytz :


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

___
Python tracker 

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



[issue33916] test_lzma: test_refleaks_in_decompressor___init__() leaks 100 handles on Windows

2018-06-20 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I four times tried to update this issue, and only the forth one was successful. 
Other attempts was failed because "Edit Error: someone else has edited this 
issue (nosy, components, versions)." This is an extreme case of race condition 
in real life.

--

___
Python tracker 

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



[issue33916] test_lzma: test_refleaks_in_decompressor___init__() leaks 100 handles on Windows

2018-06-20 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
components: +Tests
nosy: +serhiy.storchaka
versions: +Python 3.6, Python 3.7

___
Python tracker 

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



[issue33916] test_lzma: test_refleaks_in_decompressor___init__() leaks 100 handles on Windows

2018-06-20 Thread STINNER Victor


STINNER Victor  added the comment:

It seems like test_bz2 has the same issue, but I'm not sure:
https://github.com/python/cpython/pull/7827#issuecomment-398810849

--

___
Python tracker 

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



[issue33916] test_lzma: test_refleaks_in_decompressor___init__() leaks 100 handles on Windows

2018-06-20 Thread STINNER Victor


STINNER Victor  added the comment:

> This seems leak some resource.  But I'm not sure this lock contains refcnt on 
> Windows.

PR 7827 checks for leaks of Windows handles, this issue is about Windows 
handles, not Python reference leaks. But a Windows lock may use a Windows 
handle internally, I don't know :-)

--

___
Python tracker 

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



[issue33916] test_lzma: test_refleaks_in_decompressor___init__() leaks 100 handles on Windows

2018-06-20 Thread Zackery Spytz


Zackery Spytz  added the comment:

Have a look at #23224 and PR 7822.

--
nosy: +ZackerySpytz

___
Python tracker 

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



[issue6331] Add unicode script info to the unicode database

2018-06-20 Thread STINNER Victor


STINNER Victor  added the comment:

> Since June 2018, Unicode version 11.0 is out. Perhaps that could help move 
> this forward.

Python 3.7 has been upgrade to Unicode 11.

--

___
Python tracker 

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



[issue33916] test_lzma: test_refleaks_in_decompressor___init__() leaks 100 handles on Windows

2018-06-20 Thread INADA Naoki


INADA Naoki  added the comment:

In _lzmamodule.c

self->lock = PyThread_allocate_lock();

This seems leak some resource.  But I'm not sure this lock contains refcnt on 
Windows.

--
nosy: +inada.naoki

___
Python tracker 

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



[issue16684] Unicode property value abbreviated names and long names

2018-06-20 Thread Ned Deily


Change by Ned Deily :


--
nosy: +benjamin.peterson
versions: +Python 3.8 -Python 3.7

___
Python tracker 

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



[issue6331] Add unicode script info to the unicode database

2018-06-20 Thread Pander


Pander  added the comment:

Since June 2018, Unicode version 11.0 is out. Perhaps that could help move this 
forward.

--

___
Python tracker 

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



[issue16684] Unicode property value abbreviated names and long names

2018-06-20 Thread Pander


Pander  added the comment:

Since June 2018, Unicode version 11.0 is out. Perhaps that could help move this 
forward.

--

___
Python tracker 

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



[issue31787] various refleaks when calling the __init__() method of an object more than once

2018-06-20 Thread STINNER Victor


STINNER Victor  added the comment:

It seems like the lzma fix is incomplete: bpo-33916, "test_lzma: 
test_refleaks_in_decompressor___init__() leaks 100 handles on Windows".

--
nosy: +vstinner

___
Python tracker 

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



[issue33916] test_lzma: test_refleaks_in_decompressor___init__() leaks 100 handles on Windows

2018-06-20 Thread STINNER Victor


New submission from STINNER Victor :

Using my PR 7827, I saw that test_refleaks_in_decompressor___init__() of 
test_lzma leaks 100 handles on Windows.

Extract of the code:

@support.refcount_test
def test_refleaks_in_decompressor___init__(self):
gettotalrefcount = support.get_attribute(sys, 'gettotalrefcount')
lzd = LZMADecompressor()
refs_before = gettotalrefcount()
for i in range(100):
lzd.__init__()
self.assertAlmostEqual(gettotalrefcount() - refs_before, 0, delta=10)


The test comes from bpo-31787: commit d019bc8319ea35e93bf4baa38098ff1b57cd3ee5.

--
components: Windows
messages: 320087
nosy: paul.moore, steve.dower, tim.golden, vstinner, zach.ware
priority: normal
severity: normal
status: open
title: test_lzma: test_refleaks_in_decompressor___init__() leaks 100 handles on 
Windows
type: resource usage
versions: Python 3.8

___
Python tracker 

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



[issue33904] IDLE: In rstrip, rename class RstripExtension as Rstrip

2018-06-20 Thread Terry J. Reedy


Change by Terry J. Reedy :


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

___
Python tracker 

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



ANN: Bokeh 0.13.0 Released

2018-06-20 Thread Bryan Van de ven
On behalf of the Bokeh team, I am pleased to announce the release of version 
0.13.0 of Bokeh!

For more information and details, please see the announcement post at:

https://bokeh.github.io/blog/2018/6/13/release-0-13-0/

If you are using Anaconda/miniconda, you can install it with conda:

conda install -c bokeh bokeh

Alternatively, you can also install it with pip:

pip install bokeh

Full information including details about how to use and obtain BokehJS are at:

https://bokeh.pydata.org/en/0.13.0/docs/installation.html

Issues, enhancement requests, and pull requests can be made on the Bokeh Github 
page: https://github.com/bokeh/bokeh

Documentation is available at: https://bokeh.pydata.org/en/0.13.0

There are over 301 total contributors to Bokeh and their time and effort help 
make Bokeh such an amazing project and community. Thank you again for your 
contributions. 

Finally, for questions or technical assistance we recommend starting with 
detailed posts on Stack Overflow. Or if you are interested in contributing, 
come by the Bokeh dev chat room: https://gitter.im/bokeh/bokeh-dev

Thanks,

Bryan Van de Ven
-- 
https://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


[issue33904] IDLE: In rstrip, rename class RstripExtension as Rstrip

2018-06-20 Thread miss-islington


miss-islington  added the comment:


New changeset b41dc5682c596258d1489a1409fad2d65b5dffd9 by Miss Islington (bot) 
in branch '3.6':
bpo-33904:  In IDLE's rstrip, rename class RstripExtension as Rstrip (GH-7811)
https://github.com/python/cpython/commit/b41dc5682c596258d1489a1409fad2d65b5dffd9


--

___
Python tracker 

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



[issue33904] IDLE: In rstrip, rename class RstripExtension as Rstrip

2018-06-20 Thread miss-islington


miss-islington  added the comment:


New changeset b0f352680e73a374748994d383f591f2e4702669 by Miss Islington (bot) 
in branch '3.7':
bpo-33904:  In IDLE's rstrip, rename class RstripExtension as Rstrip (GH-7811)
https://github.com/python/cpython/commit/b0f352680e73a374748994d383f591f2e4702669


--
nosy: +miss-islington

___
Python tracker 

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



[issue33915] VSTS: Initialize phase: failed

2018-06-20 Thread STINNER Victor


STINNER Victor  added the comment:

Oh, you think that it's the same bug? The result page looked different, so I 
opened a different bug report.

--

___
Python tracker 

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



[issue33782] VSTS Windows-PR: internal error

2018-06-20 Thread Steve Dower


Steve Dower  added the comment:

It appears to be a known issue when a PR is retriggered (due to new commits) 
early enough in the CI run. I haven't got any info about when it'll be fixed.

--

___
Python tracker 

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



Re: syntax difference

2018-06-20 Thread Alister via Python-list
On Wed, 20 Jun 2018 13:59:40 +, Grant Edwards wrote:

> On 2018-06-20, Alister via Python-list  wrote:
> 
>> Annotations were invented by the Nazi's on the explicit instruction of
>> Hitler.  there, can someone now invoke Godwins law & call this
>> discussion closed :-)
> 
> I'm pretty sure I read somewhere that Godwin's law doesn't apply when
> one invokes Hitler/Nazis for the purpose of stopping the thread...

damn protocol nazi




-- 
Pure drivel tends to drive ordinary drivel off the TV screen.
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue33915] VSTS: Initialize phase: failed

2018-06-20 Thread Steve Dower


Change by Steve Dower :


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



[issue33915] VSTS: Initialize phase: failed

2018-06-20 Thread Steve Dower


Steve Dower  added the comment:

Considering all we can do is pass the reports onto the team (which I've been 
doing), there's no point repeatedly opening new issues for the same problem.

--
resolution:  -> duplicate
superseder:  -> VSTS Windows-PR: internal error

___
Python tracker 

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



[issue33891] ntpath join doesnt check whether path variable None or not

2018-06-20 Thread Xiang Zhang


Xiang Zhang  added the comment:

This is not a bug in ntpath. Raising a TypeError is a normal behavior when 
passed a wrong argument and I think the error message tells good info. You 
should figure out why pipenv passes a None to os.path.join.

--
nosy: +xiang.zhang
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type: crash -> 

___
Python tracker 

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



[issue18174] Make regrtest with --huntrleaks check for fd leaks

2018-06-20 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +7434

___
Python tracker 

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



  1   2   3   >