[issue33725] High Sierra hang when using multi-processing

2018-05-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: A better solution is to avoid using fork mode for multiprocessing. The spawn and fork server modes should work fine. The underlying problem is that macOS system frameworks (basically anything higher level than libc) are not save wrt fork(2) and fixing

[issue33727] Server.wait_closed() doesn't always wait for its transports to fihish

2018-05-31 Thread Yury Selivanov
New submission from Yury Selivanov : Server.wait_closed() currently does two checks: 1. if _sockets is None -- means that Server.close() was called 2. if self._waiters is None -- means that Server._wakeup() was called if (1) *or* (2) is true, wait_closed() just returns without waiting on

Re: version

2018-05-31 Thread Ralf Schoenian
Hi Mike, you can check for the major version with import sys sys.version_info.major On 01.06.2018 04:44, Mike McClain wrote: OK so I installed python 3.2, which is the latest available as a package in Debian Wheezy, because I've seen so many folks say it's a waste of time to play with

Re: Python library to break text into words

2018-05-31 Thread Abdur-Rahmaan Janhangeer
Dietmar's answer is the best, piggybacking on search engines' algorithms and probably instead of a dictionary of english words, we'd need a dictionary of titles, making search much more efficient regards, Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ No need to re-invent the

Re: Attachments? Re: Indented multi-line strings (was: "Data blocks" syntax specification draft)

2018-05-31 Thread Paul
I gave it a different subject line. On Fri, Jun 1, 2018 at 2:45 AM, Abdur-Rahmaan Janhangeer < arj.pyt...@gmail.com> wrote: > as this sig file is a common occurance, attaching the topic to the data > blocks thread is not really necessary > > Abdur-Rahmaan Janhangeer >

Re: Python library to break text into words

2018-05-31 Thread Abdur-Rahmaan Janhangeer
1-> search in dict, identify all words example : meaningsofoffers .. identified words : me an mean in meaning meanings so of of offer offers 2-> next filter duplicates, i.e. of above in a new list as the original list serves as chronological reference 3-> next chose the words whose lengths

Re: version

2018-05-31 Thread Jorge Gimeno
Look at the six module On Thu, May 31, 2018, 7:57 PM Mike McClain wrote: > OK so I installed python 3.2, which is the latest available as a > package in Debian Wheezy, because I've seen so many folks say it's a > waste of time to play with Py2.7. > Immediately my python playground

[issue33726] Add short descriptions to PEP references in seealso

2018-05-31 Thread Andrés Delfino
Change by Andrés Delfino : -- keywords: +patch pull_requests: +6922 stage: -> patch review ___ Python tracker ___ ___

Re: ... (ellipsis)

2018-05-31 Thread Terry Reedy
On 5/31/2018 10:26 PM, Mike McClain wrote: I'm having understanding the use if the ellipsis. I keep reading that it is used in slices By numpy for numpy multidimensional arrays, which have their own __getitem__, which recognizes and gives meaning to ... -- Terry Jan Reedy --

[issue33726] Add short descriptions to PEP references in seealso

2018-05-31 Thread Andrés Delfino
New submission from Andrés Delfino : There are a couple of PEP references with no description in Simple/Compound Statements. Attached PR fixes this. -- assignee: docs@python components: Documentation messages: 318359 nosy: adelfino, docs@python priority: normal severity: normal

version

2018-05-31 Thread Mike McClain
OK so I installed python 3.2, which is the latest available as a package in Debian Wheezy, because I've seen so many folks say it's a waste of time to play with Py2.7. Immediately my python playground 'my.python.py' failed as soon as I changes the '#!' line to python3.2. Most of the

[issue33610] IDLE: Make multiple improvements to CodeContext

2018-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: 19. idle.rst doc change 20. What's New for 3.6.6 and 3.7.0 These could be patches on this issue. 21. idlelib/NEWS.txt entries -- ___ Python tracker

Re: Attachments? Re: Indented multi-line strings (was: "Data blocks" syntax specification draft)

2018-05-31 Thread Abdur-Rahmaan Janhangeer
as this sig file is a common occurance, attaching the topic to the data blocks thread is not really necessary Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ On Fri, 1 Jun 2018, 01:49 Paul, wrote: > I have heard that attachments to messages are not allowed on this list, > which

... (ellipsis)

2018-05-31 Thread Mike McClain
I'm having understanding the use if the ellipsis. I keep reading that it is used in slices but every time I use it I get 'Syntax error' in 2.7 if 'Type error' in 3.2. In python2.7: l=range(15) l[...:11] Syntax error l[3:...] Syntax error l[3:...:11] Syntax error In python3.2 it becomes 'Type

Re: How do I list only the methods I define in a class?

2018-05-31 Thread bob gailer
On 5/31/2018 3:49 PM, bruceg113...@gmail.com wrote: > How do I list only the methods I define in a class? Here's a class with some method, defined in various ways: >>> class x(): ... a=3 ... def f():pass ... g = lambda: None ... >>> l=[v for v in x.__dict__.items()]; print(l) [('a',

[issue33610] IDLE: Make multiple improvements to CodeContext

2018-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: 18. Error or bounds checking for maxlines entry. I believe this really a config dialog issue that applies to everything, but maxlines should be at least 1, with some reasonable max. In the meanwhile, we could check whether crazy entries (text, negatives,

[issue28657] cmd.Cmd.get_help() implementation can't see do_*() methods added dynamically by setattr()

2018-05-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: ISTM the only way dir(self) would make a difference would be if functions we being assigned to instances rather than the class. Also, it's uncleaar why setattr() is at issue -- it works the same way as regular attribute assignment using the dot

[issue33610] IDLE: Make multiple improvements to CodeContext

2018-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: 5, reformulated. Now that 'Code Context' on the Options menu only toggles a feature for the current window, like 'Zoom Height' on the Window menu, both should appear together on the same menu. My current inclination is to move 'Code Context' to Window

[issue33597] Compact PyGC_Head

2018-05-31 Thread INADA Naoki
INADA Naoki added the comment: https://github.com/python/cpython/pull/7043/commits/053111f321d792fb26f8be10abba24a980f3590f I added one micro optimization. Although it is not relating to two-word-gc directly, it makes gc_collect faster than master on the microbench (without importing

[issue33642] IDLE: Use variable number of lines in CodeContext

2018-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Windows, I observe the following behaviors. 1. When Code Context is enabled on a windows still at its initial height, context lines are added to code lines to increase the window height. 2. When the window height is changed with a mouse, that becomes the

[issue33725] High Sierra hang when using multi-processing

2018-05-31 Thread Kapil Thangavelu
New submission from Kapil Thangavelu : This issue seems to be reported a few times on various githubs projects. I've also reproduced using a brew install of python 2.7.15. I haven't been able to reproduce with python 3.6. Note this requires a framework build of python. Background on the

[issue33610] IDLE: Make multiple improvements to CodeContext

2018-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: The release candidate has been re-scheduled for June 11. So we should be able to merge the minimal upgrade before that and get it in 3.7.0 and 3.6.6. (The latter will come out at the same time as the former.) Variable lines is about ready. Colors looks

Re: Override built in types... possible? or proposal.

2018-05-31 Thread Steven D'Aprano
On Thu, 31 May 2018 09:51:30 -0700, Rob Gaddi wrote: > On 05/31/2018 07:49 AM, Dan Strohl wrote: >> Is it possible to override the assignment of built in types to the >> shorthand representations? And if not, is it a reasonable thought to >> consider adding? [...] > My problem with this idea

[issue33692] Chinese characters issue with input() function

2018-05-31 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6920 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33692] Chinese characters issue with input() function

2018-05-31 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6920, 6921 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33718] Enhance regrtest: meta-ticket for multiple changes

2018-05-31 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6919 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33718] Enhance regrtest: meta-ticket for multiple changes

2018-05-31 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9e24930dfdc28e16dabbfd7dd1ead1336b7b0d6c by Victor Stinner in branch 'master': bpo-33718: regrtest keeps filters to re-run fails (GH-7291) https://github.com/python/cpython/commit/9e24930dfdc28e16dabbfd7dd1ead1336b7b0d6c --

[issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x

2018-05-31 Thread Eric Snow
Eric Snow added the comment: FYI, I plan on closing this issue only *after* I've re-enabled the crashing test and it passes. :) -- ___ Python tracker ___

[issue33724] test__xxsubinterpreters failed on ARMv7 Ubuntu 3.x

2018-05-31 Thread Eric Snow
Eric Snow added the comment: Thanks, Victor. I'll take a look. FYI, it seems that the same 3 buildbots from bpo-33615 are seeing these same test failures. -- ___ Python tracker

[issue33717] Enhance test.pythoninfo: meta-ticket for multiple changes

2018-05-31 Thread STINNER Victor
STINNER Victor added the comment: New changeset 56013218864d5eb81baab4665fcae13400934078 by Victor Stinner in branch 'master': bpo-33717: pythoninfo: add CC --version (#7290) https://github.com/python/cpython/commit/56013218864d5eb81baab4665fcae13400934078 --

[issue33718] Enhance regrtest: meta-ticket for multiple changes

2018-05-31 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +6918 stage: -> patch review ___ Python tracker ___ ___

Re: Python library to break text into words

2018-05-31 Thread beliavsky--- via Python-list
On Thursday, May 31, 2018 at 5:31:48 PM UTC-4, Dietmar Schwertberger wrote: > On 5/31/2018 10:26 PM, beliavsky--- via Python-list wrote: > > Is there a Python library that uses intelligent guesses to break sequences > > of characters into words? The general strategy would be to break strings > >

[issue33717] Enhance test.pythoninfo: meta-ticket for multiple changes

2018-05-31 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +6917 stage: -> patch review ___ Python tracker ___ ___

[issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x

2018-05-31 Thread STINNER Victor
STINNER Victor added the comment: Now the test runs but doesn't crash anymore: bpo-33724. -- ___ Python tracker ___ ___

[issue33724] test__xxsubinterpreters failed on ARMv7 Ubuntu 3.x

2018-05-31 Thread STINNER Victor
New submission from STINNER Victor : Follow-up of bpo-33615. ARMv7 Ubuntu 3.x: http://buildbot.python.org/all/#/builders/106/builds/1118 Re-running test 'test__xxsubinterpreters' in verbose mode test_bad_id (test.test__xxsubinterpreters.ChannelIDTests) ... ok test_bad_kwargs

Attachments? Re: Indented multi-line strings (was: "Data blocks" syntax specification draft)

2018-05-31 Thread Paul
I have heard that attachments to messages are not allowed on this list, which makes sense. However I notice that messages from Peter do have an attachment, i.e., a signature.asc file. I'm just curious; why and how do those particular attachments get through? And should they get through, I guess?

Re: Python library to break text into words

2018-05-31 Thread Chris Angelico
On Fri, Jun 1, 2018 at 7:09 AM, Dietmar Schwertberger wrote: > On 5/31/2018 10:26 PM, beliavsky--- via Python-list wrote: >> >> Is there a Python library that uses intelligent guesses to break sequences >> of characters into words? The general strategy would be to break strings >> into the

[issue33723] test_time.test_thread_time() failed on AMD64 Debian root 3.x

2018-05-31 Thread STINNER Victor
New submission from STINNER Victor : AMD64 Debian root 3.x: http://buildbot.python.org/all/#/builders/27/builds/1067 == FAIL: test_thread_time (test.test_time.TimeTestCase)

Re: Indented multi-line strings (was: "Data blocks" syntax specification draft)

2018-05-31 Thread Chris Angelico
On Fri, Jun 1, 2018 at 7:05 AM, Peter J. Holzer wrote: > [Strange: I didn't get this mail through the list, only directly] > > On 2018-05-31 14:39:17 +, Dan Strohl wrote: >> The outdent method could look like: >> >> string.outdent(size=None) >> """ >> :param size : The number of

Re: Sorting and spaces.

2018-05-31 Thread Chris Angelico
On Fri, Jun 1, 2018 at 6:51 AM, Paul wrote: > In the US, at least, spaces should sort before letters. > > MRAB brought up an important point. It depends on your purpose, of course, > but having all the capitalized-beginning items appear separately from all > of the lower-cased-beginning items can

Re: Python library to break text into words

2018-05-31 Thread Dietmar Schwertberger
On 5/31/2018 10:26 PM, beliavsky--- via Python-list wrote: Is there a Python library that uses intelligent guesses to break sequences of characters into words? The general strategy would be to break strings into the longest words possible. The library would need to "know" a sizable subset of

Re: Indented multi-line strings (was: "Data blocks" syntax specification draft)

2018-05-31 Thread Peter J. Holzer
On 2018-05-31 23:05:35 +0200, Peter J. Holzer wrote: > [Strange: I didn't get this mail through the list, only directly] Found it. For some reason "Avoid duplicate copies of messages" was enabled. I normally always disable this when I subscribe to a mailinglist and I'm surprised that I haven't

Re: Indented multi-line strings

2018-05-31 Thread Peter J. Holzer
On 2018-05-31 16:44:10 +0100, MRAB wrote: > I was also thinking that it could take the indentation from the first line, > but that if you wanted the first line to have a larger indent than the > remaining lines, you could replace the first space that you want to keep > with a non-whitespace

Re: Indented multi-line strings (was: "Data blocks" syntax specification draft)

2018-05-31 Thread Peter J. Holzer
[Strange: I didn't get this mail through the list, only directly] On 2018-05-31 14:39:17 +, Dan Strohl wrote: > > This is of course not a problem if the *trailing* quote determines the > > indentation: > > > > a_multi_line_string = i''' > >Py- > > thon > >

Re: Sorting and spaces.

2018-05-31 Thread Paul
In the US, at least, spaces should sort before letters. MRAB brought up an important point. It depends on your purpose, of course, but having all the capitalized-beginning items appear separately from all of the lower-cased-beginning items can be very annoying to a user. --

[issue33470] Changes from GH-1638 (GH-3575, bpo-28411) are not documented in Porting to Python 3.7

2018-05-31 Thread Ned Deily
Change by Ned Deily : -- nosy: -ned.deily priority: release blocker -> versions: -Python 3.7 ___ Python tracker ___ ___

Re: Python library to break text into words

2018-05-31 Thread Chris Angelico
On Fri, Jun 1, 2018 at 6:26 AM, beliavsky--- via Python-list wrote: > I bought some e-books in a Humble Bundle. The file names are shown below. I > would like to hyphenate words within the file names, so that the first three > titles are > > a_devils_chaplain.pdf > atomic_accidents.pdf >

[issue33710] Deprecate gettext.lgettext()

2018-05-31 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: +1 - I'm actually surprise it's still there. ;) Given that the docs have a big red warning to avoid these in Python 3, let's start the process of removal. Don't forget to also deprecate ldgettext(), lngettext(), and ldngettext()

[issue33701] test_datetime crashed (SIGSEGV) on Travis CI

2018-05-31 Thread Stefan Krah
Stefan Krah added the comment: A wild theory: Because of the new pervasive includes (-I/home/travis/multissl/openssl/1.1.0h/include -O3 -I/home/travis/multissl/openssl/1.1.0h/include) some module picks up a wrong header. But I just rebuilt

[issue33470] Changes from GH-1638 (GH-3575, bpo-28411) are not documented in Porting to Python 3.7

2018-05-31 Thread Paul Koning
Paul Koning added the comment: FYI, I'm the one who created this problem back in 2012. I just submitted a GDB patch for this, using PyImport_AppendInittab to define the built-in module at startup. I'm not sure how I missed this originally; perhaps the documentation was not as clear back

Python library to break text into words

2018-05-31 Thread beliavsky--- via Python-list
I bought some e-books in a Humble Bundle. The file names are shown below. I would like to hyphenate words within the file names, so that the first three titles are a_devils_chaplain.pdf atomic_accidents.pdf chaos_making_a_new_science.pdf Is there a Python library that uses intelligent guesses

[issue32392] subprocess.run documentation does not have **kwargs

2018-05-31 Thread Tobias Kunze
Change by Tobias Kunze : -- keywords: +patch pull_requests: +6916 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue33701] test_datetime crashed (SIGSEGV) on Travis CI

2018-05-31 Thread STINNER Victor
STINNER Victor added the comment: > test_datetime passes here with nearly identical conditions as on the CI > (Ubuntu 14.04, clang, same random seed): I tried to reproduce the issue on a Ubuntu Trusty *VM* using clang 5.0, using the same random seed: I failed to reproduce the bug. I ran

[issue33701] test_datetime crashed (SIGSEGV) on Travis CI

2018-05-31 Thread Stefan Krah
Stefan Krah added the comment: test_datetime passes here with nearly identical conditions as on the CI (Ubuntu 14.04, clang, same random seed): Using random seed 987845 Run tests in parallel using 4 child processes 0:00:01 load avg: 1.70 [ 1/415] test_html passed 0:00:01 load avg: 1.88 [

How do I list only the methods I define in a class?

2018-05-31 Thread bruceg113355
How do I list only the methods I define in a class? For example: class Produce(): def __init__ (self): print (dir (Produce)) def apples(self): pass def peaches(self): pass def pumpkin (self): pass The print (dir(Produce)) statement

[issue33721] os.path.exists() ought to return False if pathname contains NUL

2018-05-31 Thread Matthew Barnett
Matthew Barnett added the comment: It also raises a ValueError on Windows. For other invalid paths on Windows it returns False. -- nosy: +mrabarnett ___ Python tracker ___

[issue33722] Document builtins in mock_open

2018-05-31 Thread Jay Crotts
New submission from Jay Crotts : The examples on using mock_open only include instances where objects are mocked in the REPL, so '__main__'.open is replaced. Commonly objects are mocked for use in other test modules, so builtins.open would be used instead. A note about this in the

Re: Override built in types... possible? or proposal.

2018-05-31 Thread Terry Reedy
On 5/31/2018 10:49 AM, Dan Strohl via Python-list wrote: Is it possible to override the assignment of built in types to the shorthand representations? By which I presume you mean literals and overt (non-comprehension) displays. So you wish that Python should be even more dynamic. (Some

[issue33668] Wrong behavior of help function on module

2018-05-31 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Adding Yury as an inspect expert. I don't think this is something urgent, we can probably postpone this to 3.7.1. -- nosy: +yselivanov ___ Python tracker

[issue33668] Wrong behavior of help function on module

2018-05-31 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Hm, replacing the return with a random string, this leads to another crash: Traceback (most recent call last): File "", line 1, in File "/Users/ilevkivskyi/src/cpython/Lib/_sitebuiltins.py", line 103, in __call__ return pydoc.help(*args, **kwds)

Re: Indented multi-line strings (was: "Data blocks" syntax specification draft)

2018-05-31 Thread Chris Angelico
On Fri, Jun 1, 2018 at 12:39 AM, Dan Strohl via Python-list wrote: >> This is of course not a problem if the *trailing* quote determines the >> indentation: >> >> a_multi_line_string = i''' >>Py- >> thon >> ''' > > I get the point, but it feels like it would be a

Re: Why exception from os.path.exists()?

2018-05-31 Thread Grant Edwards
On 2018-05-31, Paul Moore wrote: > On 31 May 2018 at 15:01, Chris Angelico wrote: >> Can someone on Windows see if there are other path names that raise >> ValueError there? Windows has a whole lot more invalid characters, and >> invalid names as well. > > On Windows: > os.path.exists('\0')

Re: Problem with OrderedDict - progress report

2018-05-31 Thread Chris Angelico
On Fri, Jun 1, 2018 at 12:37 AM, Frank Millman wrote: > "Steven D'Aprano" wrote in message news:peorib$1f4$2...@blaine.gmane.org... >> >> >> On Thu, 31 May 2018 10:05:43 +0200, Frank Millman wrote: >> >> > From the interpreter session below, you will see that adding a key while >> > processing

Re: Why exception from os.path.exists()?

2018-05-31 Thread Chris Angelico
On Fri, Jun 1, 2018 at 12:51 AM, MRAB wrote: > On 2018-05-31 14:38, Marko Rauhamaa wrote: >> >> Chris Angelico : >>> >>> Do you have an actual use-case where it is correct for an invalid path >>> to be treated as not existing? >> >> >> Note that os.path.exists() returns False for other types of

RE: Override built in types... possible? or proposal.

2018-05-31 Thread Dan Strohl via Python-list
> > > > I am envisioning something in the header like an import statement > > where I could do; > > > > override str=my_string > > override list=my_list > > > > This would only be scoped to the current module and would not be > imported when that module was imported. > > > > Thoughts? > > > > Dan

Re: Why exception from os.path.exists()?

2018-05-31 Thread Marko Rauhamaa
Terry Reedy : > On 5/31/2018 8:03 AM, Marko Rauhamaa wrote: >> Is the behavior a bug? Shouldn't it be: >> >> >>> os.path.exists("\0") >> False > > Please open an issue on the tracker if there is not one for this > already. issue 33721 created Marko --

[issue33721] os.path.exists() ought to return False if pathname contains NUL

2018-05-31 Thread pacujo
New submission from pacujo : os.path.exists() returns True or False for all imaginable string arguments except for one that contains NUL ("\0") (Linux). This behavior is not documented in the library. Moreover, it can easily lead to accidents if an externally supplied pathname were to

Re: Indented multi-line strings

2018-05-31 Thread Terry Reedy
On 5/31/2018 10:39 AM, Dan Strohl via Python-list wrote: This is of course not a problem if the *trailing* quote determines the indentation: a_multi_line_string = i''' Py- thon ''' I get the point, but it feels like it would be a pain to use, and it

Re: Why exception from os.path.exists()?

2018-05-31 Thread Terry Reedy
On 5/31/2018 8:03 AM, Marko Rauhamaa wrote: This surprising exception can even be a security issue: >>> os.path.exists("\0") Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python3.6/genericpath.py", line 19, in exists os.stat(path)

Re: Override built in types... possible? or proposal.

2018-05-31 Thread Rob Gaddi
On 05/31/2018 07:49 AM, Dan Strohl wrote: Is it possible to override the assignment of built in types to the shorthand representations? And if not, is it a reasonable thought to consider adding? For example, right now, if I do: test = "this is a string", I get back str("this is a string").

Re: Sorting and spaces.

2018-05-31 Thread Peter Otten
Tobiah wrote: > I had a case today where I needed to sort two string: > > ['Awards', 'Award Winners'] > > I consulted a few sources to get a suggestion as to > what would be correct. My first idea was to throw them > through a Linux command line sort: > > Awards > Award Winners > > Then I

Re: Re: Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-31 Thread Paul St George
That's what I wanted! But, I didn't know the question because I didn't know the answer. On 30/05/2018 23:09, Karsten Hilbert wrote: On Wed, May 30, 2018 at 11:01:17PM +0200, Peter J. Holzer wrote: On 2018-05-30 22:08:45 +0200, Paul St George wrote: Ha! No, my question was clumsy. If I

[issue33668] Wrong behavior of help function on module

2018-05-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33711] Could not find externals/db-* in msi.py on license generation

2018-05-31 Thread Ned Deily
Change by Ned Deily : -- nosy: +steve.dower, zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-05-31 Thread Eric Snow
Eric Snow added the comment: New changeset 110bc01407ac8c75545d0386577c6e17254d97d9 by Eric Snow in branch 'master': bpo-33615: Temporarily disable a test that is triggering crashes on a few buildbots. (gh-7288)

[issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x

2018-05-31 Thread Eric Snow
Eric Snow added the comment: New changeset 110bc01407ac8c75545d0386577c6e17254d97d9 by Eric Snow in branch 'master': bpo-33615: Temporarily disable a test that is triggering crashes on a few buildbots. (gh-7288)

[issue30618] readlink for pathlib paths

2018-05-31 Thread Timo Furrer
Change by Timo Furrer : -- nosy: +tuxtimo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33668] Wrong behavior of help function on module

2018-05-31 Thread Timo Furrer
Change by Timo Furrer : -- nosy: +tuxtimo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28657] cmd.Cmd.get_help() implementation can't see do_*() methods added dynamically by setattr()

2018-05-31 Thread Timo Furrer
Change by Timo Furrer : -- nosy: +tuxtimo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33720] test_marshal: crash in Python 3.7b5 on Windows 10

2018-05-31 Thread Steve Dower
Steve Dower added the comment: I need to stop working on this right now, but here's the locals layout in a normal release build in r_object: @rdi @rdip = 0x0034`655ea3d0 0034`65403f60 @rsp+0x0080 v =

[issue33720] test_marshal: crash in Python 3.7b5 on Windows 10

2018-05-31 Thread Steve Dower
Steve Dower added the comment: A crash in the test suite should be fixed, especially since we have protection against this crash (and a test that validates it). In this case, apparently the stack allocation for each frame of r_object grew and now there isn't room for 2000 calls (the value

Re: Indented multi-line strings

2018-05-31 Thread MRAB
On 2018-05-31 15:39, Dan Strohl via Python-list wrote: This is of course not a problem if the *trailing* quote determines the indentation: a_multi_line_string = i''' Py- thon ''' I get the point, but it feels like it would be a pain to use, and it "Feels"

Re: Sorting and spaces.

2018-05-31 Thread MRAB
On 2018-05-31 15:18, Tobiah wrote: I had a case today where I needed to sort two string: ['Awards', 'Award Winners'] I consulted a few sources to get a suggestion as to what would be correct. My first idea was to throw them through a Linux command line sort: Awards

[issue33720] test_marshal: crash in Python 3.7b5 on Windows 10

2018-05-31 Thread STINNER Victor
STINNER Victor added the comment: > priority: normal -> release blocker I don't think that it's a release blocker. test_marshal does only crash on corner cases which should not occur on usual "valid" data. -- ___ Python tracker

[issue33720] test_marshal: crash in Python 3.7b5 on Windows 10

2018-05-31 Thread Steve Dower
Steve Dower added the comment: Ned, FYI -- nosy: +ned.deily priority: normal -> release blocker versions: +Python 3.8 ___ Python tracker ___

[issue33720] test_marshal: crash in Python 3.7b5 on Windows 10

2018-05-31 Thread Steve Dower
Steve Dower added the comment: The uploaded binary is compiled with PGO enabled (and trained on most of the test suite). I'll check it out - hopefully we don't need to do anything drastic and can get away with either a compiler update or disabling optimizations on a single function.

Re: Why exception from os.path.exists()?

2018-05-31 Thread Paul Moore
On 31 May 2018 at 16:11, Steven D'Aprano wrote: > On Thu, 31 May 2018 22:46:35 +1000, Chris Angelico wrote: > [...] >>> Most other analogous reasons *don't* generate an exception, nor is that >>> possibility mentioned in the specification: >>> >>>

[issue33720] test_marshal: crash in Python 3.7b5 on Windows 10

2018-05-31 Thread STINNER Victor
STINNER Victor added the comment: > I compiled the master branch of Python in release mode using VS2015 (MSC > v.1912 64 bit) and I failed to reproduce the crash I also failed to reproduce the crash in the 3.7 branch. I guess that the python.org binary has been compiled differently.

[issue33720] test_marshal: crash in Python 3.7b5 on Windows 10

2018-05-31 Thread STINNER Victor
Change by STINNER Victor : -- versions: +Python 3.7 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33720] test_marshal: crash in Python 3.7b5 on Windows 10

2018-05-31 Thread STINNER Victor
Change by STINNER Victor : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33720] test_marshal: crash in Python 3.7b5 on Windows 10

2018-05-31 Thread STINNER Victor
STINNER Victor added the comment: I compiled the master branch of Python in release mode using VS2015 (MSC v.1912 64 bit) and I failed to reproduce the crash: * PCbuild/build.bat -e -p x64 * python -m test -v test_marshal * no crash -- ___ Python

Re: Why exception from os.path.exists()?

2018-05-31 Thread Steven D'Aprano
On Thu, 31 May 2018 22:46:35 +1000, Chris Angelico wrote: [...] >> Most other analogous reasons *don't* generate an exception, nor is that >> possibility mentioned in the specification: >> >>https://docs.python.org/3/library/os.path.html?#os.path.exists >> >> Is the behavior a bug? Shouldn't

[issue33719] Test failures on Python 3.7 beta 5 and Windows 10

2018-05-31 Thread STINNER Victor
STINNER Victor added the comment: > test_marshal.test_loads_2x_code(): Windows fatal exception: stack overflow I created bpo-33720: "test_marshal: crash in Python 3.7b5 on Windows 10". -- ___ Python tracker

[issue33720] test_marshal: crash in Python 3.7b5 on Windows 10

2018-05-31 Thread STINNER Victor
New submission from STINNER Victor : Follow-up of bpo-33719. C:\Users\vstinner\AppData\Local\Programs\Python\Python37>python.exe -m test test_marshal -v == CPython 3.7.0b5 (v3.7.0b5:abb8802389, May 31 2018, 01:54:01) [MSC v.1913 64 bit (AMD64)] == Windows-10-10.0.16299-SP0 little-endian ==

[issue12029] Allow catching virtual subclasses in except clauses

2018-05-31 Thread Eric Snow
Change by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-05-31 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +6915 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x

2018-05-31 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +6914 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33479] Document tkinter and threads

2018-05-31 Thread Mark Roseman
Change by Mark Roseman : -- pull_requests: +6913 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Override built in types... possible? or proposal.

2018-05-31 Thread Dan Strohl via Python-list
Is it possible to override the assignment of built in types to the shorthand representations? And if not, is it a reasonable thought to consider adding? For example, right now, if I do: test = "this is a string", I get back str("this is a string"). What if I want to return this as

Re: Why exception from os.path.exists()?

2018-05-31 Thread Paul Moore
On 31 May 2018 at 15:01, Chris Angelico wrote: > Can someone on Windows see if there are other path names that raise > ValueError there? Windows has a whole lot more invalid characters, and > invalid names as well. On Windows: >>> os.path.exists('\0') ValueError: stat: embedded null character

  1   2   3   >