[issue29480] Mac OSX Installer SSL Roots

2018-02-27 Thread Ned Deily
Ned Deily added the comment: Thanks for your suggestions. I agree that the Root Certificates and OpenSSL situation on macOS is still less than desirable. For 3.7.0b2, I have tried to make things more obvious in two ways. One, the installer package will now attempt to open

Re: Questions about `locals` builtin

2018-02-27 Thread Chris Angelico
On Wed, Feb 28, 2018 at 5:54 PM, dieter wrote: > Ned Batchelder writes: >> On 2/27/18 3:52 AM, Kirill Balunov wrote: >>> a. Is this restriction for locals desirable in the implementation of >>> CPython in Python 3? >>> b. Or is it the result of

[issue17288] cannot jump from a 'return' or 'exception' trace event

2018-02-27 Thread Xavier de Gaye
Xavier de Gaye added the comment: xdegaye wrote: > An explanation should be given for the behavior of 3.7 and 3.8 in the jump.py > case. In 3.7 when running jump.py as in msg183254, Python aborts with a frame stack overflow. The reason is that when the generator is

Re: In Python2, does it need to wrap imp.find/load_module with imp_acquire/release_lock?

2018-02-27 Thread dieter
Xiang Zhang writes: > Just like the title. It seems to me it is needed from the source code but > codes in stdlib all doesn't do that. The "import" machinery uses locks of its own (to protect "sys.modules"). I assume that "load_module" will use those locks

Re: Questions about `locals` builtin

2018-02-27 Thread Chris Angelico
On Tue, Feb 27, 2018 at 5:55 AM, Kirill Balunov wrote: > 2. The documentation has a note that "The contents of this dictionary > should not be modified". Which implies that it is a read only mapping. So > the question why it is `dict` instead of `types.MappingProxyType`?

[issue29480] Mac OSX Installer SSL Roots

2018-02-27 Thread Ned Deily
Ned Deily added the comment: Tommy, you should ask your question elsewhere, like on Stackoverflow or on the Python mailing list. It does not seem related to this issue at all or to indicate a problem with Python itself. (For the record, the Python Developer's Guide has some

Re: Questions about `locals` builtin

2018-02-27 Thread dieter
Ned Batchelder writes: > On 2/27/18 3:52 AM, Kirill Balunov wrote: >> a. Is this restriction for locals desirable in the implementation of >> CPython in Python 3? >> b. Or is it the result of temporary fixes for Python 2? > > My understanding is that the behavior of

Re: Questions about `locals` builtin

2018-02-27 Thread dieter
Kirill Balunov writes: > 2018-02-27 2:57 GMT+03:00 Terry Reedy : > >> The point of point 3 is that terminology and details would likely be >> different if Python were freshly designed more or less as it is today, and >> some things only make more or

[issue32864] Visual glitches when animating ScrolledText instances using place geometry manager

2018-02-27 Thread Ned Deily
Ned Deily added the comment: Victor, FYI, 3.7.0b2 has just been released and the macOS 10.9+ installer contains an updated version of Tcl/Tk (8.6.7 -> 8.6.8). According to the Tk change log, there were a number of macOS related fixes that went in to 8.6.8. Perhaps some of

[RELEASE] Python 3.7.0b2 is now available for testing

2018-02-27 Thread Ned Deily
On behalf of the Python development community and the Python 3.7 release team, I'm happy to announce the availability of Python 3.7.0b2. b2 is the second of four planned beta releases of Python 3.7, the next major release of Python, and marks the end of the feature development phase for 3.7. You

[issue32940] IDLE: pyparse - simplify StringTranslatePseudoMapping

2018-02-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Don't use ord('x'). Use just 'x' or b'x'[0]. -- ___ Python tracker ___

[issue15663] Investigate providing Tcl/Tk 8.6 with OS X installers

2018-02-27 Thread Ned Deily
Ned Deily added the comment: As of 3.7.0b1, the new macOS 10.9+ installer variant includes a private copy of Tcl/Tk 8.6: 8.6.7 for 3.7.0b1, updated to 8.6.8 for 3.7.0b2. The framework layout is pretty much the same as in the original attempt, that is, everything is

[issue32940] IDLE: pyparse - simplify StringTranslatePseudoMapping

2018-02-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I settled on the following to compare ParseMap implementations. from idlelib.pyparse import Parser import timeit class ParseGet(dict): def __getitem__(self, key): return self.get(key, ord('x')) class ParseMis(dict): def

Re: help me ?

2018-02-27 Thread Rick Johnson
On Tuesday, February 27, 2018 at 12:56:52 PM UTC-6, Grant Edwards wrote: [...] > The fun part is giving them a solution that's so obscure and "clever" > that it technically meets the stated requirement but is so far from > what the instructor wanted that they don't get credit for it (and > there's

[issue32968] Fraction modulo infinity should behave consistently with other numbers

2018-02-27 Thread Ned Deily
Change by Ned Deily : -- nosy: +mark.dickinson, rhettinger ___ Python tracker ___ ___

Re: help me ?

2018-02-27 Thread amber
On 02/27/2018 06:54 PM, Grant Edwards wrote: > The fun part is giving them a solution that's so obscure and "clever" > that it technically meets the stated requirement but is so far from > what the instructor wanted that they don't get credit for it (and > there's no way the student will be able

Re: help me ?

2018-02-27 Thread jladasky
On Tuesday, February 27, 2018 at 10:56:52 AM UTC-8, Grant Edwards wrote: > If the student is actively trying to avoid learning something, there's > nothing you can do to help them. They're just wasting their own time > and money. This is part of the reason why interviews for software developer

Re: psutil

2018-02-27 Thread Wildman via Python-list
On Tue, 27 Feb 2018 19:29:50 -0500, Larry Martell wrote: > Trying to install psutil (with pip install psutil) on Red Hat EL 7. > It's failing with: > > Python.h: No such file or directory > > Typically that means the python devel libs are not installed, but they are: > > [root@liszt ~]# yum

[issue32968] Fraction modulo infinity should behave consistently with other numbers

2018-02-27 Thread Elias Zamaria
New submission from Elias Zamaria : Usually, a positive finite number modulo infinity is itself. But modding a positive fraction by infinity produces nan: >>> from fractions import Fraction >>> from math import inf >>> 3 % inf 3.0 >>> 3.5 % inf 3.5 >>> Fraction('1/3') % inf

Re: psutil

2018-02-27 Thread Matt Wheeler
On Wed, 28 Feb 2018, 00:49 Larry Martell, wrote: > On Tue, Feb 27, 2018 at 7:36 PM, José María Mateos > wrote: > > On Tue, Feb 27, 2018 at 07:29:50PM -0500, Larry Martell wrote: > >> Trying to install psutil (with pip install psutil) on Red Hat EL

[issue32959] zipimport fails when the ZIP archive contains more than 65535 files

2018-02-27 Thread Thomas Wouters
Thomas Wouters added the comment: FWIW, yes, this is because zipimport doesn't support ZIP64, and doesn't even flag it as an error when the ZIP requires it. Instead it skips files; the ZIP64 format works by setting the fields that would overflow to the maximum value as a

[issue32966] Python 3.6.4 - 0x80070643 - Fatal Error during installation

2018-02-27 Thread Steve Dower
Steve Dower added the comment: Make sure all your Windows updates are installed, reboot if necessary, and try again. I believe this is the error that occurs when another installation is ongoing, and Windows Update is about the only tool likely to be installing

[issue32959] zipimport fails when the ZIP archive contains more than 65535 files

2018-02-27 Thread bbayles
Change by bbayles : -- nosy: +bbayles ___ Python tracker ___ ___ Python-bugs-list mailing

Re: psutil

2018-02-27 Thread Larry Martell
On Tue, Feb 27, 2018 at 7:36 PM, José María Mateos wrote: > On Tue, Feb 27, 2018 at 07:29:50PM -0500, Larry Martell wrote: >> Trying to install psutil (with pip install psutil) on Red Hat EL 7. >> It's failing with: >> >> Python.h: No such file or directory > > Two questions

Re: psutil

2018-02-27 Thread Larry Martell
On Tue, Feb 27, 2018 at 7:37 PM, Chris Angelico wrote: > On Wed, Feb 28, 2018 at 11:29 AM, Larry Martell > wrote: >> Trying to install psutil (with pip install psutil) on Red Hat EL 7. >> It's failing with: >> >> Python.h: No such file or directory >>

Re: psutil

2018-02-27 Thread José María Mateos
On Tue, Feb 27, 2018 at 07:29:50PM -0500, Larry Martell wrote: > Trying to install psutil (with pip install psutil) on Red Hat EL 7. > It's failing with: > > Python.h: No such file or directory Two questions come to my mind: - Does it work if you try to install some other package? - Is `pip` by

Re: psutil

2018-02-27 Thread Chris Angelico
On Wed, Feb 28, 2018 at 11:29 AM, Larry Martell wrote: > Trying to install psutil (with pip install psutil) on Red Hat EL 7. > It's failing with: > > Python.h: No such file or directory > > Typically that means the python devel libs are not installed, but they are: > >

[issue30928] Copy modified blurbs to idlelib/NEWS.txt for 3.7.0

2018-02-27 Thread miss-islington
miss-islington added the comment: New changeset 8c65360dd0c1ea5b5d2e60a0694daf3f9df8f56b by Miss Islington (bot) in branch '3.6': bpo-30928: Update idlelib/NEWS.txt, possibly for 3.7.0b2 (GH-5932)

psutil

2018-02-27 Thread Larry Martell
Trying to install psutil (with pip install psutil) on Red Hat EL 7. It's failing with: Python.h: No such file or directory Typically that means the python devel libs are not installed, but they are: [root@liszt ~]# yum install python-devel Package python-devel-2.7.5-58.el7.x86_64 already

[issue30928] Copy modified blurbs to idlelib/NEWS.txt for 3.7.0

2018-02-27 Thread miss-islington
miss-islington added the comment: New changeset 0ea49fc0bfa10205895f9fb78b4d6659b2946883 by Miss Islington (bot) in branch '3.7': bpo-30928: Update idlelib/NEWS.txt, possibly for 3.7.0b2 (GH-5932)

[issue18387] Add 'symbols' link to pydoc's html menu bar.

2018-02-27 Thread Cheryl Sabella
Cheryl Sabella added the comment: It looks like this patch was close to being approved. Ron, would you be able to open a Github pull request for your patch? Thanks! -- nosy: +csabella versions: +Python 3.8 -Python 3.4 ___

Re: help me ?

2018-02-27 Thread Michael F. Stemper
On 2018-02-26 07:17, Stefan Ram wrote: Percival John Hackworth quoted: Define 2 lists. The first one must contain the integer values 1, 2 and 3 a =[ 1, 2, 3 ] and the second one the string values a, b and c. b =[ 'a', 'b', 'c'] Iterate through both lists to create

Re: help me ?

2018-02-27 Thread Steven D'Aprano
On Tue, 27 Feb 2018 10:56:18 -0700, Ian Kelly wrote: > Cheaters are gonna cheat. In the unlikely event they don't get the > answer here, they'll probably just manage to convince somebody to do the > work for them somewhere else. Honestly, I don't know if it's even worth > the bother to engage.

[issue32706] test_check_hostname() of test_ftplib started to fail randomly

2018-02-27 Thread Ned Deily
Ned Deily added the comment: Let's get the changes into master first and stabilized there and then we can discuss the possibility of a 3.7 backport. -- ___ Python tracker

[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args

2018-02-27 Thread Ned Deily
Ned Deily added the comment: Thanks for everyone's input and thanks for the PRs! Since there are still outstanding review comments, I decided to revert this from both master and 3.7 for 3.7.0b2. I would suggest getting a polished version stabilized in master for 3.8.0. We

[issue30928] Copy modified blurbs to idlelib/NEWS.txt for 3.7.0

2018-02-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +5706 ___ Python tracker ___

[issue30928] Copy modified blurbs to idlelib/NEWS.txt for 3.7.0

2018-02-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +5705 ___ Python tracker ___

[issue30928] Copy modified blurbs to idlelib/NEWS.txt for 3.7.0

2018-02-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 0954c9e9c8fbea452f56120df592f2061d3209c7 by Terry Jan Reedy in branch 'master': bpo-30928: Update idlelib/NEWS.txt, possibly for 3.7.0b2 (GH-5932)

[issue30928] Copy modified blurbs to idlelib/NEWS.txt for 3.7.0

2018-02-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I plan to start a new issue for 3.8.0 when 3.7.0rc1 is released and 'What's new in 3.8.0 (since 3.7.0)' is added to master. IDLE PRs after rc1 that are not an emergency fix will go into 3.7.1 -- title: Copy modified blurbs to

[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args

2018-02-27 Thread Ned Deily
Ned Deily added the comment: New changeset b7dcae358e9d5a3ac9dafec9f6b64e9a66843ad8 by Ned Deily (Miss Islington (bot)) in branch '3.7': Revert "bpo-31961: subprocess now accepts path-like args (GH-4329)" (GH-5912) (GH-5931)

[issue32967] make check in devguide failing

2018-02-27 Thread Mariatta Wijaya
New submission from Mariatta Wijaya : Thanks. Can you open the issue in github.com/python/devguide? -- nosy: +Mariatta resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue31512] Add non-elevated symlink support for dev mode Windows 10

2018-02-27 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- nosy: +izbyshev ___ Python tracker ___ ___

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2018-02-27 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +5704 ___ Python tracker ___ ___

[issue32967] make check in devguide failing

2018-02-27 Thread Neeraj Badlani
Change by Neeraj Badlani : -- assignee: docs@python components: Documentation nosy: docs@python, neerajbadlani priority: normal severity: normal status: open title: make check in devguide failing versions: Python 3.8 ___

[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args

2018-02-27 Thread Ned Deily
Ned Deily added the comment: New changeset be50a7b627d0aa37e08fa8e2d5568891f19903ce by Ned Deily (Serhiy Storchaka) in branch 'master': Revert "bpo-31961: subprocess now accepts path-like args (GH-4329)" (#5912)

Re: Is there are good DRY fix for this painful design pattern?

2018-02-27 Thread Tim Chase
Something like the following might do the trick. As an added benefit, it's easy to set all the defaults automatically in __init__ as well without hand-adding "self.dopey = dopey". On the down side, in the non-__init__ functions, you have to use kwargs["dopey"] and the like. It also involves

[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args

2018-02-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +5703 ___ Python tracker ___

[issue32901] Update 3.7 and 3.8 Windows and macOS installer builds to tcl/tk 8.6.8

2018-02-27 Thread Ned Deily
Ned Deily added the comment: Terry: > Is "this will only be useful on Windows," in the source-deps readme still > true? It appears that the tcl/tk tar.gz source is meant for Mac also. The macOS installer builds do not use the cpython-source-deps repo. -- priority:

Re: help me ?

2018-02-27 Thread Ian Kelly
On Tue, Feb 27, 2018 at 2:50 PM, Andre Müller wrote: > Hello, > > it's a duplicate: > https://python-forum.io/Thread-Working-with-lists-homework-2 > > I have seen this more than one time. We don't like it. You keep people busy > with one question at different places. You

[issue32901] Update 3.7 and 3.8 Windows and macOS installer builds to tcl/tk 8.6.8

2018-02-27 Thread Ned Deily
Ned Deily added the comment: New changeset a7edca7122cb952874e74d64d693c5b938c758cb by Ned Deily in branch '3.7': bpo-32901: update macOS 10.9+ installer to Tcl/Tk 8.6.8 https://github.com/python/cpython/commit/a7edca7122cb952874e74d64d693c5b938c758cb --

[issue32901] Update 3.7 and 3.8 Windows and macOS installer builds to tcl/tk 8.6.8

2018-02-27 Thread Ned Deily
Ned Deily added the comment: New changeset 9189e95d9c6691de18783b2e9213ec2dc18fd0c5 by Ned Deily in branch 'master': bpo-32901: update macOS 10.9+ installer to Tcl/Tk 8.6.8 https://github.com/python/cpython/commit/9189e95d9c6691de18783b2e9213ec2dc18fd0c5 --

[issue32965] Passing a bool to io.open() should raise a TypeError, not read from stdin

2018-02-27 Thread Ned Deily
Ned Deily added the comment: Thanks for your report. Alas, this is expected behavior. As documented, the Boolean values False and True behave like the integers 0 and 1; this behavior dates back to the earliest days of Python. So when you pass False to open, you are

Re: help me ?

2018-02-27 Thread Andre Müller
Hello, it's a duplicate: https://python-forum.io/Thread-Working-with-lists-homework-2 I have seen this more than one time. We don't like it. You keep people busy with one question at different places. You need two lists and one empty list. One outer loop iterating over the first list and one

[issue32959] zipimport fails when the ZIP archive contains more than 65535 files

2018-02-27 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +twouters ___ Python tracker ___ ___ Python-bugs-list

[issue32966] Python 3.6.4 - 0x80070643 - Fatal Error during installation

2018-02-27 Thread Ned Deily
Change by Ned Deily : -- components: +Windows -Installation nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker

[issue32965] Passing a bool to io.open() should raise a TypeError, not read from stdin

2018-02-27 Thread Erik Johnson
Erik Johnson added the comment: Also, it's the 3rd and 4th reads that I had to hit ctrl-d to get back to the REPL, as you can see in the example the first two read just fine from that initial block of text I had pasted in. This is what I get for not properly proofreading

[issue32966] Python 3.6.4 - 0x80070643 - Fatal Error during installation

2018-02-27 Thread Scott
New submission from Scott : Installing Python 3.6.4, Windows 10 64bit, exits installer and dumps the following error code to log. [18B8:4394][2018-02-27T15:41:06]i399: Apply complete, result: 0x80070643, restart: None, ba requested restart: No 0x80070643 - Fatal

[issue32965] Passing a bool to io.open() should raise a TypeError, not read from stdin

2018-02-27 Thread Erik Johnson
Erik Johnson added the comment: Please excuse the typo on the 2nd line of the OP, it should say "open/io.open", not "op/io.open". -- ___ Python tracker

[issue32965] Passing a bool to io.open() should raise a TypeError, not read from stdin

2018-02-27 Thread Erik Johnson
New submission from Erik Johnson : When you open a filehandle using either True or False as the file, the open succeeds. This has been reproduced using op/io.open on Python 3.6.4, 3.5.2, and 3.4.5, as well as with io.open() on Python 2.7.14. This can be easily

Cheetah 3.0.1

2018-02-27 Thread Oleg Broytman
Hello! I'm pleased to announce version 3.0.1, the first bugfix release of branch 3.0 of CheetahTemplate3. What's new in CheetahTemplate3 == Bug fixes: - Fix a minor bug in Compiler. What is CheetahTemplate3 Cheetah3 is a free and open

[issue9635] Add Py_BREAKPOINT and sys._breakpoint hooks

2018-02-27 Thread Dave Malcolm
Dave Malcolm added the comment: On Fri, 2018-02-23 at 00:16 +, Cheryl Sabella wrote: > Cheryl Sabella added the comment: > > Did PEP553 make this issue obsolete? I *think* they have slightly different scope: if I'm reading it right, PEP553 is about

[issue31355] Remove Travis CI macOS job: rely on buildbots

2018-02-27 Thread Antoine Pitrou
Change by Antoine Pitrou : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue31355] Remove Travis CI macOS job: rely on buildbots

2018-02-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset d7687eb4b66c9f675b112eff1169326a1766c111 by Antoine Pitrou in branch 'master': bpo-31355: Travis-CI: re-enable macOS job (#5858) https://github.com/python/cpython/commit/d7687eb4b66c9f675b112eff1169326a1766c111 --

[issue10381] Add timezone support to datetime C API

2018-02-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset fff596f792a0752b0e571fa57809e5752aba6353 by Alexander Belopolsky (Miss Islington (bot)) in branch '3.7': bpo-10381, bpo-32403: What's new entries for changes to datetime (gh-5814) (gh-5929)

[issue32403] date, time and datetime alternate constructors should take fast construction path

2018-02-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset fff596f792a0752b0e571fa57809e5752aba6353 by Alexander Belopolsky (Miss Islington (bot)) in branch '3.7': bpo-10381, bpo-32403: What's new entries for changes to datetime (gh-5814) (gh-5929)

[issue32964] Reuse a testing implementation of the path protocol in tests

2018-02-27 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +5702 stage: -> patch review ___ Python tracker ___

[issue32403] date, time and datetime alternate constructors should take fast construction path

2018-02-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +5701 ___ Python tracker ___

[issue10381] Add timezone support to datetime C API

2018-02-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset 5bd04f964b4f1bcdbd0fa36de04f087c2db07cfe by Alexander Belopolsky (Paul Ganssle) in branch 'master': bpo-10381, bpo-32403: What's new entries for changes to datetime (gh-5814)

[issue10381] Add timezone support to datetime C API

2018-02-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +5700 ___ Python tracker ___

[issue32403] date, time and datetime alternate constructors should take fast construction path

2018-02-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset 5bd04f964b4f1bcdbd0fa36de04f087c2db07cfe by Alexander Belopolsky (Paul Ganssle) in branch 'master': bpo-10381, bpo-32403: What's new entries for changes to datetime (gh-5814)

[issue32964] Reuse a testing implementation of the path protocol in tests

2018-02-27 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : In a number of tests there are simple implementations of the path protocol. Unlike to pathlib.Path they implement only necessary minimum of methods. The proposed PR moves this implementation into test.support. It also fixes

[issue29915] Drop Mac OS X Tiger support in Python 3.7?

2018-02-27 Thread Ned Deily
Ned Deily added the comment: Update: due to recent changes at github.com to no longer support older implementations of SSL/TLS, the git client on the macOS 10.4 Tiger buildbot server has stopped working. We had a brief discussion with David Bolen, the buildbot's owner, and

Re: Is there are good DRY fix for this painful design pattern?

2018-02-27 Thread Jugurtha Hadjar
On 02/26/2018 03:41 PM, Steven D'Aprano wrote: I have a class with a large number of parameters (about ten) assigned in `__init__`. The class then has a number of methods which accept *optional* arguments with the same names as the constructor/initialiser parameters. If those arguments are None,

Re: help me ?

2018-02-27 Thread Grant Edwards
On 2018-02-27, Ian Kelly wrote: > On Tue, Feb 27, 2018 at 10:16 AM, Igor Korot wrote: >> Congratulations! >> You have an "A" for solving the problem and "F" for helping the guy cheat. >> You should be expelled from the course. > > In my experience, this

[issue27313] test case failures in test_widgets.ComboboxTest.of test_ttk_guionly on OS X with Cocoa Tk 8.5.18

2018-02-27 Thread Ned Deily
Ned Deily added the comment: With a current Tk 8.6.8, test_virtual_event no longer fails (still does with 8.5.18) but test_identify still fails as it does with 8.5. -- versions: +Python 3.7, Python 3.8 -Python 3.5 ___ Python

[issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0`

2018-02-27 Thread Iryna Shcherbina
New submission from Iryna Shcherbina : test_gdb fails on Fedora 28. This happens only in debug build, and only if built with control flow protection flags: `-mcet -fcf-protection` AND optimization `-O0`. Reproduction steps on Fedora 28 (x86_64): ./configure

Re: help me ?

2018-02-27 Thread Ziggy
On 2018-02-26, sotaro...@gmail.com wrote: > > Help me ! a=[1,2,3,] b=["a","b","c"] x=[] z=[] bonus=[] for digits in a: for letters in b: x.append(str(digits) + letters) bonus.append(letters + str(digits)) for letter in b: for number in a:

Re: help me ?

2018-02-27 Thread Larry Martell
On Tue, Feb 27, 2018 at 12:56 PM, Ian Kelly wrote: > On Tue, Feb 27, 2018 at 10:16 AM, Igor Korot wrote: >> Congratulations! >> You have an "A" for solving the problem and "F" for helping the guy cheat. >> You should be expelled from the course. > > In

Re: help me ?

2018-02-27 Thread Ian Kelly
On Tue, Feb 27, 2018 at 10:16 AM, Igor Korot wrote: > Congratulations! > You have an "A" for solving the problem and "F" for helping the guy cheat. > You should be expelled from the course. In my experience, this is what happens pretty much every time. Somebody posts a

Re: matrix multiplication

2018-02-27 Thread Ian Kelly
On Tue, Feb 27, 2018 at 9:02 AM, Seb wrote: > That's right. I just tried this manipulation by replacing the last > block of code in my example, from the line above `for` loop with: > > ------ > # Alternative

Re: help me ?

2018-02-27 Thread Igor Korot
Hi, On Tue, Feb 27, 2018 at 10:54 AM, Sir Real wrote: > On Mon, 26 Feb 2018 01:40:16 -0800 (PST), sotaro...@gmail.com wrote: > >>Define 2 lists. The first one must contain the integer values 1, 2 and 3 and >>the second one the string values a, b and c. Iterate through both

Re: help me ?

2018-02-27 Thread Sir Real
On Mon, 26 Feb 2018 01:40:16 -0800 (PST), sotaro...@gmail.com wrote: >Define 2 lists. The first one must contain the integer values 1, 2 and 3 and >the second one the string values a, b and c. Iterate through both lists to >create another list that contains all the combinations of the A and B

[issue17288] cannot jump from a 'return' or 'exception' trace event

2018-02-27 Thread Xavier de Gaye
Xavier de Gaye added the comment: Actually $ git rebase --onto master 3.7 bpo-17288 fails with one single change in Objects/frameobject.c and one simply needs to (as I have tested it) remove all the three confict markers in this file and remove the following two lines

Re: help me ?

2018-02-27 Thread alister via Python-list
On Mon, 26 Feb 2018 01:40:16 -0800, sotaro237 wrote: > Define 2 lists. The first one must contain the integer values 1, 2 and 3 > and the second one the string values a, b and c. Iterate through both > lists to create another list that contains all the combinations of the A > and B elements. The

Re: matrix multiplication

2018-02-27 Thread Seb
On Tue, 27 Feb 2018 07:36:31 -0700, Ian Kelly wrote: > On Tue, Feb 27, 2018 at 4:08 AM, Peter Otten <__pete...@web.de> wrote: >> Seb wrote: >>> On Tue, 27 Feb 2018 12:25:30 +1300, >>> Gregory Ewing wrote: Seb wrote: > I was

Re: Is there are good DRY fix for this painful design pattern?

2018-02-27 Thread Kirill Balunov
Of course you can do the same without annotations, but with the introduction of private attribute while your API it is under active development: from functools import wraps def validate(func): @wraps(func) def _wrap(self, *args, **kwargs): variables = self._vars # Here

Re: [newbie] how to remove empty lines from webpage/file

2018-02-27 Thread Dan Stromberg
Perhaps replace: lines=soup.get_text() file.write(lines) ...with something like: text = soup.get_text() lines = text.split('\n') for line in lines: if line.strip(): file.write('%s\n' % (line, )) (untested) On Tue, Feb 27, 2018 at 2:50 AM, wrote: > Dear

[issue32517] test_read_pty_output() of test_asyncio hangs on macOS 10.13.2 (darwin 17.3.0)

2018-02-27 Thread Ned Deily
Ned Deily added the comment: Since this is still happening on current macOS 10.13.3, we should get a fix for this in before 3.6.5rc1. PR's welcome! -- priority: normal -> release blocker stage: -> needs patch ___ Python tracker

[issue31106] os.posix_fallocate() generate exception with errno 0

2018-02-27 Thread Ned Deily
Ned Deily added the comment: I agree with Alexey's analysis. Koobs, could you please open a new issue about the failing test? Unless someone knows of a foolproof way to determine on all platforms that a file is resident on ZFS, the fix is to skip the test on FreeBSD as well

Re: Is there are good DRY fix for this painful design pattern?

2018-02-27 Thread Kirill Balunov
This validation can be also done with the use of annotations, while I find it super awful, I put this for one more example: from functools import wraps def validate(func): @wraps(func) def _wrap(self, *args, **kwargs): variables = func.__annotations__.keys()

[issue17288] cannot jump from a 'return' or 'exception' trace event

2018-02-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Usually we create a PR for master (unless the issue is gone here) and backport it to other branches. In this case it may be better to start from 3.7, but it is worth to look at the patch against master for the case if the change

Re: Questions about `locals` builtin

2018-02-27 Thread Kirill Balunov
2018-02-27 14:59 GMT+03:00 Ned Batchelder : > On 2/27/18 3:52 AM, Kirill Balunov wrote: > >> a. Is this restriction for locals desirable in the implementation of >> CPython in Python 3? >> b. Or is it the result of temporary fixes for Python 2? >> > > My understanding

Re: matrix multiplication

2018-02-27 Thread Ian Kelly
On Tue, Feb 27, 2018 at 4:08 AM, Peter Otten <__pete...@web.de> wrote: > Seb wrote: > >> On Tue, 27 Feb 2018 12:25:30 +1300, >> Gregory Ewing wrote: >> >>> Seb wrote: I was wondering is whether there's a faster way of multiplying each row (1x3) of a matrix

[issue32493] UUID Module - FreeBSD build failure

2018-02-27 Thread Ned Deily
Ned Deily added the comment: We are still seeing the 3.7 and 3.8 FreeBSD buildbot failures Victor identified in msg310147. Can someone please take this on and produce a PR? -- nosy: +ned.deily priority: normal -> deferred blocker versions: +Python 3.8

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

2018-02-27 Thread Eric Snow
Eric Snow added the comment: Sounds good, Ned. Sorry for my confusion. -- ___ Python tracker ___

[issue17288] cannot jump from a 'return' or 'exception' trace event

2018-02-27 Thread Xavier de Gaye
Xavier de Gaye added the comment: Yes, rebase fails merging two changes in Objects/frameobject.c. I can write another PR for master if you want. -- ___ Python tracker

Re: How to make Python run as fast (or faster) than Julia

2018-02-27 Thread Steven D'Aprano
On Tue, 27 Feb 2018 11:27:21 +, bartc wrote: [...] >> The built-in generator is using a completely different algorithm >> though, so rate of generation isn't the entire story. How long is the >> period of the one you're using? (How long before it loops?) > > I believe it's

[issue15767] add ModuleNotFoundError

2018-02-27 Thread Christoph Groth
Christoph Groth added the comment: Unfortunately I do not feel competent enough to submit a documentation patch because I still do not understand why ModuleNotFoundError was added. I don't want to bother you further with this. Thank you all for your prompt replies.

[issue17288] cannot jump from a 'return' or 'exception' trace event

2018-02-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Are there any problems with rebasing it to master? -- ___ Python tracker ___

[issue15767] add ModuleNotFoundError

2018-02-27 Thread Ned Deily
Ned Deily added the comment: Christoph, thanks for your suggestion. If you think the documentation needs improving, please open a new issue with any suggested wording (or, even better, a doc PR). This issue (issue15767) has long been closed and any discussion here is

  1   2   >