[issue33499] Environment variable to set alternate location for pycache tree

2018-05-17 Thread Carl Meyer
Carl Meyer added the comment: Can we have a named -X option that also takes a parameter? I don't see any existing examples of that. This option needs to take the path where bytecode should be written. Are there strong use-cases for having a CLI arg for this? I don't mind

[issue33559] Exception's repr change not documented

2018-05-17 Thread Miro Hrončok
Change by Miro Hrončok : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list

[issue33559] Exception's repr change not documented

2018-05-17 Thread Miro Hrončok
New submission from Miro Hrončok : Python 3.6.5 ... >>> Exception('foo',) Exception('foo',) Python 3.7.0b4 ... >>> Exception('foo',) Exception('foo') This is a change that might bit people who rely on doctesting. It is not documented at

Re: why does list's .remove() does not return an object?

2018-05-17 Thread Abdur-Rahmaan Janhangeer
x = [0,1] x.remove(0) new_list = x instead i want in one go x = [0,1] new_list = x.remove(0) # here a way for it to return the modified list by adding a .return() maybe ? Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ On Thu, 17 May 2018, 19:54 Alexandre Brault,

Re: why does list's .remove() does not return an object?

2018-05-17 Thread Alexandre Brault
On 2018-05-17 11:26 AM, Abdur-Rahmaan Janhangeer wrote: > I don't understand what this would return? x? You already have x. Is it > meant to make a copy? x has been mutated, so I don't understand the benefit > of making a copy of the 1-less x. Can you elaborate on the problem you are > trying

[issue33558] Python has no icon in taskbar and in start screen

2018-05-17 Thread Filip
New submission from Filip : I've just downloaded the latest version of Python (3.6.5) from python.org. After installing, I launched it and I found out the app has no icon. Then I tried to download Python using different link, but it was the same as the first try.

[issue33537] Help on importlib.resources outputs the builtin open description

2018-05-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +6610 ___ Python tracker ___

Re: what does := means simply?

2018-05-17 Thread Chris Angelico
On Fri, May 18, 2018 at 1:27 AM, Ian Kelly wrote: > This raises a new issue for me w.r.t. PEP 572. The spelling of := > makes it unlikely to accidentally use in place of ==, but what about > := and = confusion? For example, say I mean to write this: > > foo(a := 42, b,

[issue33537] Help on importlib.resources outputs the builtin open description

2018-05-17 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 0ed66df5242138fc599b4735749e55f953d9a1e4 by Barry Warsaw in branch 'master': bpo-33537: Add an __all__ to importlib.resources (#6920) https://github.com/python/cpython/commit/0ed66df5242138fc599b4735749e55f953d9a1e4

[issue33522] Enable CI builds on Visual Studio Team Services

2018-05-17 Thread Steve Dower
Steve Dower added the comment: This is implemented and merged now. I'll leave it to core-workflow to decide whether and when to make the builds required and/or reduce use of Travis/AppVeyor. -- resolution: -> fixed stage: patch review -> resolved

[issue33557] Windows multiprocessing doesn't propagate tabcheck to children

2018-05-17 Thread Jakub Wilk
New submission from Jakub Wilk : Multiprocessing on Windows is supposed to start child processes using the same sys.flags as the current process (see issue 12098). However, at least sys.flags.tabcheck is not propagated. I've attached small test program that reproduces this bug.

[issue33341] python3 fails to build if directory or sysroot contains "*icc*" string

2018-05-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: icc-find.patch (and a 2nd version) has been uploaded to #28584 also. I unlinked the erroneous upload 'patch'. -- ___ Python tracker

[issue33341] python3 fails to build if directory or sysroot contains "*icc*" string

2018-05-17 Thread Terry J. Reedy
Change by Terry J. Reedy : Removed file: https://bugs.python.org/file47547/patch ___ Python tracker ___

Re: what does := means simply?

2018-05-17 Thread Ian Kelly
On Thu, May 17, 2018 at 9:06 AM, Chris Angelico wrote: > On Fri, May 18, 2018 at 12:30 AM, bartc wrote: >> Anyway, try this: >> >> def showarg(x): print(x) >> >> def dummy(*args,**kwargs): pass >> >> dummy(a=showarg(1),*[showarg(2),showarg(3)]) >>

[issue33341] python3 fails to build if directory or sysroot contains "*icc*" string

2018-05-17 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: patch review -> resolved status: open -> closed superseder: -> ICC compiler check is too permissive ___ Python tracker

Re: why does list's .remove() does not return an object?

2018-05-17 Thread Abdur-Rahmaan Janhangeer
On Thu, 17 May 2018, 18:55 Ned Batchelder, wrote: > On 5/17/18 4:23 AM, Abdur-Rahmaan Janhangeer wrote: > > if then a more convenient way might be found to naturally remove and > return the list > > maybe it was not included as one might want to remove the list only > > x

[issue33051] IDLE: Create new tab for editor options in configdialog

2018-05-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: A new option would (maybe) apply to saving the shell also. (Something to discuss there.) -- ___ Python tracker

[issue28584] ICC compiler check is too permissive

2018-05-17 Thread Gianfranco
Gianfranco added the comment: My first attempt was instead of *gcc* to just check for *gcc this avoids when "icc" is the last part of the string, I admit this is not too strong. Another approach is to use basename with cut -d " " -f 1 to pick just the first

[issue33341] python3 fails to build if directory or sysroot contains "*icc*" string

2018-05-17 Thread Gianfranco
Gianfranco added the comment: This was the patch I wanted to add, but I picked up a wrong one (a vbox one) In any case, duplicate of issue28584 -- keywords: +patch resolution: -> duplicate Added file: https://bugs.python.org/file47596/icc-find.patch

[issue28584] ICC compiler check is too permissive

2018-05-17 Thread Gianfranco
Gianfranco added the comment: I'm attaching the patch that works also for parameters, e.g. when CC contains --sysroot=/home/icc or similar. we can mark https://bugs.python.org/issue33341 duplicate to this one I think -- nosy: +locutusofborg versions:

[issue19950] Document that unittest.TestCase.__init__ is called once per test

2018-05-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +6608 ___ Python tracker ___

[issue19950] Document that unittest.TestCase.__init__ is called once per test

2018-05-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset dff46758f267ad6c13096c69c4e1dee17f9969aa by Gregory P. Smith in branch 'master': bpo-19950: Clarify unittest TestCase instance use. (GH-6875) https://github.com/python/cpython/commit/dff46758f267ad6c13096c69c4e1dee17f9969aa

[issue19950] Document that unittest.TestCase.__init__ is called once per test

2018-05-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +6609 ___ Python tracker ___

Re: what does := means simply?

2018-05-17 Thread Chris Angelico
On Fri, May 18, 2018 at 12:30 AM, bartc wrote: > Anyway, try this: > > def showarg(x): print(x) > > def dummy(*args,**kwargs): pass > > dummy(a=showarg(1),*[showarg(2),showarg(3)]) > > This displays 2,3,1 showing that evaluation is not left to right. > Keyword args

[issue33516] unittest.mock: Add __round__ to supported magicmock methods

2018-05-17 Thread John Reese
Change by John Reese : -- nosy: +jreese, lukasz.langa ___ Python tracker ___ ___

[issue33051] IDLE: Create new tab for editor options in configdialog

2018-05-17 Thread Cheryl Sabella
Cheryl Sabella added the comment: Yes, I thought it would be good to have this before issue33046. -- ___ Python tracker ___

Re: why does list's .remove() does not return an object?

2018-05-17 Thread Ned Batchelder
On 5/17/18 4:23 AM, Abdur-Rahmaan Janhangeer wrote: if then a more convenient way might be found to naturally remove and return the list maybe it was not included as one might want to remove the list only x = [1] x.remove(1) as opposed to x = [1] x.remove(1) new_list = x i was looking for

Re: syntax oddities

2018-05-17 Thread Rich Shepard
On Fri, 18 May 2018, Chris Angelico wrote: Top posting saves a huge amount of useless scrolling time. Is it frowned upon on this list? Trimming your replies saves even more. Yes, it is. Allow me to add an additional reason for trimming and responding beneath each quoted section: it puts

Re: what does := means simply?

2018-05-17 Thread bartc
On 17/05/2018 15:03, Chris Angelico wrote: On Thu, May 17, 2018 at 9:58 PM, bartc wrote: On 17/05/2018 04:54, Steven D'Aprano wrote: On Thu, 17 May 2018 05:33:38 +0400, Abdur-Rahmaan Janhangeer wrote: what does := proposes to do? A simple example (not necessarily a

Re: what does := means simply?

2018-05-17 Thread Marko Rauhamaa
bartc : > Anyway, try this: > > def showarg(x): print(x) > > def dummy(*args,**kwargs): pass > > dummy(a=showarg(1),*[showarg(2),showarg(3)]) > > This displays 2,3,1 showing that evaluation is not left to right. Nice one! Marko --

Re: syntax oddities

2018-05-17 Thread Paul
wrote: > > Is it frowned > > upon on this list? > > Trimming your replies saves even more. Yes, it is. > > ChrisA > - > kk. Thanks Paul > > -- https://mail.python.org/mailman/listinfo/python-list

[issue19251] bitwise ops for bytes of equal length

2018-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Nick, for your tasks you may be interested in PEP 3118 which still is not completely implemented (issue3132). -- ___ Python tracker

[issue19251] bitwise ops for bytes of equal length

2018-05-17 Thread Nick Coghlan
Nick Coghlan added the comment: This issue isn't at the stage where a PR would help - the core question is still "Should we add better native support for multi-byte bitwise operations?", not the specifics of what they API might look like or how we would implement it.

Re: syntax oddities

2018-05-17 Thread Chris Angelico
On Fri, May 18, 2018 at 12:31 AM, Paul wrote: > Top posting saves a huge amount of useless scrolling time. Is it frowned > upon on this list? Trimming your replies saves even more. Yes, it is. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: what does := means simply?

2018-05-17 Thread bartc
On 17/05/2018 14:32, Steven D'Aprano wrote: On Thu, 17 May 2018 12:58:43 +0100, bartc wrote: On 17/05/2018 04:54, Steven D'Aprano wrote: On Thu, 17 May 2018 05:33:38 +0400, Abdur-Rahmaan Janhangeer wrote: what does := proposes to do? A simple example (not necessarily a GOOD example, but

[issue19251] bitwise ops for bytes of equal length

2018-05-17 Thread Марк Коренберг
Марк Коренберг added the comment: @ncoghlan Could you please create Pull-request on Github ? -- ___ Python tracker ___

Re: syntax oddities

2018-05-17 Thread Paul
Top posting saves a huge amount of useless scrolling time. Is it frowned upon on this list? On Thu, May 17, 2018, 7:26 AM Tobiah wrote: > Top posting is awesome for the reader plowing through > a thread in order. In that case the cruft at the bottom > is only for occasional

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

2018-05-17 Thread Eric Snow
Eric Snow added the comment: New changeset 3ab0136ac5d6059ce96d4debca89c5f5ab0356f5 by Eric Snow in branch 'master': bpo-32604: Implement force-closing channels. (gh-6937) https://github.com/python/cpython/commit/3ab0136ac5d6059ce96d4debca89c5f5ab0356f5

[issue33538] Remove useless check in subprocess

2018-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is in PyImport_Cleanup() in Python/import.c. Search PyObject_SetItem(modules, name, Py_None). If you will run Python with the -v option you will see numerous messages "# cleanup[2] removing ..." emitted on stderr.

[issue19251] bitwise ops for bytes of equal length

2018-05-17 Thread Nick Coghlan
Nick Coghlan added the comment: I'm back in the embedded software world now, and hence working with the combination of: - low level serial formats (including fixed length CAN packets) - C firmware developers that are quite capable of writing supporting C-in-Python code

Re: syntax oddities

2018-05-17 Thread Tobiah
Top posting is awesome for the reader plowing through a thread in order. In that case the cruft at the bottom is only for occasional reference. Ok, I yield! I know the bottom-posting party has congress right now. On 05/17/2018 06:29 AM, Grant Edwards wrote: On 2018-05-17, Abdur-Rahmaan

Re: what does := means simply?

2018-05-17 Thread Tobiah
On 05/16/2018 08:54 PM, Steven D'Aprano wrote: On Thu, 17 May 2018 05:33:38 +0400, Abdur-Rahmaan Janhangeer wrote: what does := proposes to do? Simply, it proposes to add a new operator := for assignment (or binding) as an expression, as an addition to the = assignment operator which

[issue2506] Add mechanism to disable optimizations

2018-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Few different optimizations work together here. Folding constants at the AST level allows to eliminate the constant expression statement in the code generation stage. This makes 'continue' a first statement in the 'if' body.

Request for comments: use-cases for delayed evaluation

2018-05-17 Thread Steven D'Aprano
Suppose Python had a mechanism to delay the evaluation of expressions until needed. What would you use it for? Python already does this on an ad hoc basis. For example, the "and" and "or" operators are special: and If the expression on the left is falsey, the expression on the right is

[issue33556] leftover thread crumb in threading.ident docstring

2018-05-17 Thread Zachary Ware
Zachary Ware added the comment: Rather than a leading underscore, I think `thread.` should just be removed. `get_ident` is now exposed by the threading module itself. For a change this small, https://github.com/python/cpython/edit/master/Lib/threading.py can be used

[issue33538] Remove useless check in subprocess

2018-05-17 Thread TaoQingyun
TaoQingyun <845767...@qq.com> added the comment: I can't find the reset code, could you give me a link? Thanks. -- ___ Python tracker ___

[issue31656] Bitwise operations for bytes-type

2018-05-17 Thread Nick Coghlan
Nick Coghlan added the comment: Issue 19251 is still under consideration, so marking this as a duplicate, rather than as rejected. -- nosy: +ncoghlan resolution: rejected -> duplicate superseder: -> bitwise ops for bytes of equal length

Re: what does := means simply?

2018-05-17 Thread Chris Angelico
On Thu, May 17, 2018 at 9:58 PM, bartc wrote: > On 17/05/2018 04:54, Steven D'Aprano wrote: >> >> On Thu, 17 May 2018 05:33:38 +0400, Abdur-Rahmaan Janhangeer wrote: >> >>> what does := proposes to do? > > >> A simple example (not necessarily a GOOD example, but a SIMPLE one): >>

Re: what does := means simply?

2018-05-17 Thread Chris Angelico
On Thu, May 17, 2018 at 11:34 PM, Steven D'Aprano wrote: > On Thu, 17 May 2018 14:56:32 +0200, Antoon Pardon wrote: > >> On 17-05-18 03:44, Chris Angelico wrote: > >>> https://www.python.org/dev/peps/pep-0572/ > >> Just wondering, but in discussing this PEP

[issue33556] leftover thread crumb in threading.ident docstring

2018-05-17 Thread Skip Montanaro
New submission from Skip Montanaro : There is a leftover reference to "thread.get_ident" in the docstring for threading.ident. I believe it needs a leading underscore. Hopefully a PR isn't required for this. I'm not equipped to generate one at the moment, and this

[issue2506] Add mechanism to disable optimizations

2018-05-17 Thread Ned Batchelder
Ned Batchelder added the comment: Folding constants won't affect control flow. The important thing here is to disable optimizing away jumps to jumps. -- ___ Python tracker

[issue33522] Enable CI builds on Visual Studio Team Services

2018-05-17 Thread Steve Dower
Steve Dower added the comment: New changeset 0d8f83f59c8f4cc7fe125434ca4ecdcac111810f by Steve Dower in branch '3.6': bpo-33522: Enable CI builds on Visual Studio Team Services (GH-6865) (GH-6925)

Re: what does := means simply?

2018-05-17 Thread Steven D'Aprano
On Thu, 17 May 2018 15:54:27 +0300, Serhiy Storchaka wrote: > 17.05.18 15:07, Paul Moore пише: >> It's a good example, because it makes it clear that the benefits of := >> are at least in some cases, somewhat dependent on the fact that Python >> evaluates arguments left to right :-) > > Unless

[issue2506] Add mechanism to disable optimizations

2018-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > If anyone has needed a workaround in the past 9 years and hasn't yet found > one: This no longer works in 3.7 due to folding constants at the AST level. :-) -- nosy: +serhiy.storchaka versions: +Python 3.8 -Python 3.6

Re: what does := means simply?

2018-05-17 Thread Marko Rauhamaa
Antoon Pardon : > On 17-05-18 03:44, Chris Angelico wrote: > I just ask because sometimes I have a loop that now often is written > as follows: > > while True: > a = prepare_a() > b = prepare_b() > if not condition(a, b): > break >

Re: Python - requests - forms - web scraping - how to deal with multi stage forms

2018-05-17 Thread Grant Edwards
On 2018-05-17, kret...@gmail.com wrote: > https://stackoverflow.com/questions/50383210/python-requests-how-to-post-few-stages-forms Your point? -- Grant Edwards grant.b.edwardsYow! I had pancake makeup at

Re: what does := means simply?

2018-05-17 Thread Steven D'Aprano
On Thu, 17 May 2018 14:56:32 +0200, Antoon Pardon wrote: > On 17-05-18 03:44, Chris Angelico wrote: >> https://www.python.org/dev/peps/pep-0572/ > Just wondering, but in discussing this PEP has one considered making the > ';' into an expression too, with the value being the value of the last >

Re: what does := means simply?

2018-05-17 Thread Steven D'Aprano
On Thu, 17 May 2018 12:58:43 +0100, bartc wrote: > On 17/05/2018 04:54, Steven D'Aprano wrote: >> On Thu, 17 May 2018 05:33:38 +0400, Abdur-Rahmaan Janhangeer wrote: >> >>> what does := proposes to do? > >> A simple example (not necessarily a GOOD example, but a SIMPLE one): >> >> print(x :=

Re: syntax oddities

2018-05-17 Thread Grant Edwards
On 2018-05-17, Abdur-Rahmaan Janhangeer wrote: > just a remark that people help and discuss on more issues unrelated to > python [...] > On Thu, 17 May 2018, 07:45 Steven D'Aprano, < > steve+comp.lang.pyt...@pearwood.info> wrote: >> On Thu, 17 May 2018 05:25:44 +0400,

[issue32414] PyCapsule_Import fails when name is in the form 'package.module.capsule'

2018-05-17 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, sorry, I misinterpreted Petr's comment, and then didn't look at the details of your PR before commenting. Having fixed that mistake, I agree that making the naive approach "just work" is a good option. --

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

2018-05-17 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +6607 ___ Python tracker ___ ___

[issue33501] split existing optimization levels into granular options

2018-05-17 Thread Brett Cannon
Brett Cannon added the comment: I don't thnk they are quite the same. The other issue is about turning off the peepholer entirely while this one is about breaking up the optimizations that -O and -OO do so you can choose which ones you want (e.g. still drop docstrings but

[issue33499] Environment variable to set alternate location for pycache tree

2018-05-17 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On May 17, 2018, at 08:14, Nick Coghlan wrote: > > If we did add an option, then a named -X option would probably make the most > sense. +1 -- ___ Python tracker

Re: what does := means simply?

2018-05-17 Thread Antoon Pardon
On 17-05-18 03:44, Chris Angelico wrote: > On Thu, May 17, 2018 at 11:33 AM, Abdur-Rahmaan Janhangeer > wrote: >> what does := proposes to do? >> >> pep572 >> > If you read the PEP, you'll find an answer to your question. > > https://www.python.org/dev/peps/pep-0572/ > >

Re: what does := means simply?

2018-05-17 Thread Serhiy Storchaka
17.05.18 15:07, Paul Moore пише: It's a good example, because it makes it clear that the benefits of := are at least in some cases, somewhat dependent on the fact that Python evaluates arguments left to right :-) Unless it evaluates them in other order. --

[issue33522] Enable CI builds on Visual Studio Team Services

2018-05-17 Thread Steve Dower
Steve Dower added the comment: New changeset 8965d75c90e80b6983b36f3ae9601d6a257d782b by Steve Dower (Miss Islington (bot)) in branch '3.7': bpo-33522: Enable CI builds on Visual Studio Team Services (GH-6865) (GH-6926)

[issue32414] PyCapsule_Import fails when name is in the form 'package.module.capsule'

2018-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This change would break virtually all existing usages of PyCapsule_Import(). And it would look very surprising taking into account the name of this function. Currently "package.submodule.qual.name" imports package and accesses

[issue33518] Add PEP to glossary

2018-05-17 Thread Andrés Delfino
Change by Andrés Delfino : -- pull_requests: +6606 ___ Python tracker ___ ___

[issue33462] reversible dict

2018-05-17 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi Serhiy Storchaka, I will update the PR to implement this functionality in the views too -- ___ Python tracker

[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-05-17 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: 2nd fix ready. @devteam The issue is fixed completely now, the fix can be merged. Pushed to the same PR, see https://github.com/python/cpython/pull/6444#issuecomment-389844872 why. Used the option "Hold the Tcl lock for the entire

[issue33341] python3 fails to build if directory or sysroot contains "*icc*" string

2018-05-17 Thread Martin Panter
Martin Panter added the comment: Maybe this is the same as Issue 28584, about the ${CC} variable rather than “sysroot”. In any case, the patch looks unrelated. -- nosy: +martin.panter ___ Python tracker

[issue33555] No SyntaxError raised for `return` with argument inside generator

2018-05-17 Thread FHTMitchell
FHTMitchell added the comment: Whoops I understand. Reclosed. -- resolution: -> not a bug status: open -> closed ___ Python tracker

[issue33555] No SyntaxError raised for `return` with argument inside generator

2018-05-17 Thread FHTMitchell
FHTMitchell added the comment: Apologies if I wasn't clear. I understand that def f(): yield 1 return is valid python. What I'm saying, if you follow the link, is that def f(): yield 1 return 2 # not the argument should not be considered valid python

[issue33499] Environment variable to set alternate location for pycache tree

2018-05-17 Thread Nick Coghlan
Nick Coghlan added the comment: Regarding environment variables, note that they get used in two *very* different ways: 1. The "persistent shell setting" case that Raymond describes. While setting PYTHONBYTECODEPATH to always point to a RAM disk could make quite a bit of

Re: what does := means simply?

2018-05-17 Thread Paul Moore
On 17 May 2018 at 12:58, bartc wrote: > On 17/05/2018 04:54, Steven D'Aprano wrote: >> >> On Thu, 17 May 2018 05:33:38 +0400, Abdur-Rahmaan Janhangeer wrote: >> >>> what does := proposes to do? > >> A simple example (not necessarily a GOOD example, but a SIMPLE one): >> >>

[issue33518] Add PEP to glossary

2018-05-17 Thread Andrés Delfino
Change by Andrés Delfino : -- pull_requests: +6605 ___ Python tracker ___ ___

[issue33518] Add PEP to glossary

2018-05-17 Thread Andrés Delfino
Change by Andrés Delfino : -- pull_requests: +6604 ___ Python tracker ___ ___

[issue33547] Relative imports do not replace local variables

2018-05-17 Thread Nick Coghlan
Nick Coghlan added the comment: As David notes, the issue in the example is the fact that you're setting "__main__.a", so "a.py" never gets imported as a module - it gets a hit on the parent module attribute, and hence stops there. -- resolution: -> not a bug

Re: what does := means simply?

2018-05-17 Thread bartc
On 17/05/2018 04:54, Steven D'Aprano wrote: On Thu, 17 May 2018 05:33:38 +0400, Abdur-Rahmaan Janhangeer wrote: what does := proposes to do? A simple example (not necessarily a GOOD example, but a SIMPLE one): print(x := 100, x+1, x*2, x**3) It's also not a good example because it

About: from sklearn import linear_model ModuleNotFoundError: No module named sklearn

2018-05-17 Thread Jpn Jha
Dear Team Please attached Python_PyCharm Interpreter doc and zoom it . The screen shots are explanatory. Could you please guide me step wise to resolve the Issue. I am completely new to Python. Thanks Regards Jai Prakash 7975839735 -- https://mail.python.org/mailman/listinfo/python-list

Re: Python - requests - forms - web scraping - how to deal with multi stage forms

2018-05-17 Thread GMX
https://stackoverflow.com/questions/50383210/python-requests-how-to-post-few-stages-forms   --  https://mail.python.org/mailman/listinfo/python-list  Hi,  Your post will get more traction on the email list if you try to post the actual question on the list against posting a url to an external

Re: why does list's .remove() does not return an object?

2018-05-17 Thread Jach Fong
Abdur-Rahmaan Janhangeer at 2018/5/17 PM 04:23 wrote: if then a more convenient way might be found to naturally remove and return the list maybe it was not included as one might want to remove the list only x = [1] x.remove(1) as opposed to x = [1] x.remove(1) new_list = x IMO, this way is

[issue32414] PyCapsule_Import fails when name is in the form 'package.module.capsule'

2018-05-17 Thread Nick Coghlan
Nick Coghlan added the comment: The behaviour I'd expect to see: "module:qual.name" -> "imports module, accesses module.qual.name" "module.qual.name" -> "no implicit import, accesses module.qual.name" "package.submodule:qual.name" -> "imports package.submodule, accesses

[issue13474] Mention of "-m" Flag Missing From Doc on Execution Model

2018-05-17 Thread Nick Coghlan
Nick Coghlan added the comment: I've assigned the PR and issue to myself, as the proposed addition in the PR isn't quite right, but it isn't immediately obvious why not. The gist of the problem is that the current docs are actually correct and complete: modules are the

[issue33555] No SyntaxError raised for `return` with argument inside generator

2018-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is not silently ignored. It is used as an argument to construct StopIteration. See The Python Language Reference: https://docs.python.org/3/reference/simple_stmts.html#the-return-statement -- nosy: +serhiy.storchaka

[issue33555] No SyntaxError raised for `return` with argument inside generator

2018-05-17 Thread FHTMitchell
New submission from FHTMitchell : In python 2.7 if you run the following code you get an error (as you would expect) Python 2.7.14 | packaged by conda-forge | (default, Dec 25 2017, 01:17:32) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or

[issue33554] Optimize PyDictObject

2018-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, I didn't notice that this affects only dicts with shared keys! Well, this is not related to the issue with OrderedDict which can't have shared keys. Still we need evidences of the performance benefit. The PR adds >40 lines

[issue31973] Incomplete DeprecationWarning for async/await keywords

2018-05-17 Thread Sorin Sbarnea
Sorin Sbarnea added the comment: I agree that this deprecation approach is not very helpful because it does not indicate a recommended way to fix. Yep, we all know that we will be forced to rename these parameters/variables everywhere and likely break few APIs due to

[issue33554] Optimize PyDictObject

2018-05-17 Thread b@n
b@n added the comment: Will not break OrderedDict, The order is still the same. -- ___ Python tracker ___

[issue33501] split existing optimization levels into granular options

2018-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Isn't this a duplicate of the old issue2506? -- nosy: +serhiy.storchaka ___ Python tracker

[issue33388] Support PEP 566 metadata in dist.py

2018-05-17 Thread Nick Coghlan
Nick Coghlan added the comment: If these warnings are being emitted when using setuptools, that's a bug in setuptools (as it should be ensuring these are handled without warnings), and can be reported over on https://github.com/pypa/setuptools/ If these warnings are being

[issue33554] Optimize PyDictObject

2018-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Are you aware of causes that prevented writing the code in this way? This will break OrderedDict. Issue31954 is an attempt to solve this problem (and it supersedes this issue). -- nosy: +serhiy.storchaka

[issue33501] split existing optimization levels into granular options

2018-05-17 Thread Nick Coghlan
Nick Coghlan added the comment: PSF link for Diana Clark's thread on python-ideas about this: https://mail.python.org/pipermail/python-ideas/2017-September/047224.html (this is the same thread Brett linked, just to the PSF archives rather than Google Groups) --

[issue23722] During metaclass.__init__, super() of the constructed class does not work

2018-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: An alternate PR 6933 replaces it with a RuntimeWarning. -- ___ Python tracker ___

[issue23722] During metaclass.__init__, super() of the constructed class does not work

2018-05-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +6603 ___ Python tracker ___ ___

[issue33554] Optimize PyDictObject

2018-05-17 Thread INADA Naoki
INADA Naoki added the comment: Could you show some micro benchmark shows performance benefit? -- nosy: +inada.naoki ___ Python tracker

[issue33554] Optimize PyDictObject

2018-05-17 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +6602 stage: -> patch review ___ Python tracker ___

[issue23722] During metaclass.__init__, super() of the constructed class does not work

2018-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 6931 replaces a DeprecationWarning with a RuntimeError (is it correct?). It was planned to do in 3.7, but it is too later for 3.7. -- resolution: fixed -> stage: resolved -> patch review status: closed -> open

[issue23722] During metaclass.__init__, super() of the constructed class does not work

2018-05-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +6601 ___ Python tracker ___ ___

[issue33554] Optimize PyDictObject

2018-05-17 Thread b@n
New submission from b@n : make_keys_shared reusing oldkeys memory -- components: Interpreter Core messages: 316901 nosy: b@n priority: normal severity: normal status: open title: Optimize PyDictObject type: enhancement versions: Python 3.8

<    1   2   3   >