[issue33564] IDLE: add 'async' to codecontext block openers

2018-05-17 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33519] Should MutableSequence provide .copy()?

2018-05-17 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- keywords: +patch pull_requests: +6623 stage: -> patch review ___ Python tracker ___

[issue33556] leftover thread crumb in threading.ident docstring

2018-05-17 Thread Skip Montanaro
Change by Skip Montanaro : -- keywords: +patch pull_requests: +6622 stage: needs patch -> patch review ___ Python tracker ___

[issue33565] strange tracemalloc results

2018-05-17 Thread Alexander Mohr
Change by Alexander Mohr : -- type: -> behavior ___ Python tracker ___ ___

[issue33565] strange tracemalloc results

2018-05-17 Thread Alexander Mohr
New submission from Alexander Mohr : while investigating https://github.com/boto/botocore/issues/1464 I used tracemalloc (like I've done before in 3.5.2) to try to figure out where the leak was. To my surprise tracemalloc listed stacks that didn't make any sense.

Re: what does := means simply?

2018-05-17 Thread Ben Finney
Steven D'Aprano writes: > If you want to *really* see code that is hard to port, you should try > porting an Inform 7 program to another language. Any other language. Does porting Inform 7 code to Inform 6 count? They are very different languages :-) --

[issue33522] Enable CI builds on Visual Studio Team Services

2018-05-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: Your PRs made modifications to code and did not include a useful commit message or appropriate NEWS entries for the code modifications. Further, VSTS is unreliable. core-workflow made a premature decision to turn off Travis and AppVeyor

Re: what does := means simply?

2018-05-17 Thread Ian Kelly
On Thu, May 17, 2018, 7:50 PM Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > > If you want to *really* see code that is hard to port, you should try > porting an Inform 7 program to another language. Any other language. > How about Z-code? *ducks* > --

[issue28556] typing.py upgrades

2018-05-17 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- pull_requests: +6624 ___ Python tracker ___ ___

[issue33553] Documentation improvement proposal for multiprocessing

2018-05-17 Thread Derek Kim
Change by Derek Kim : -- title: possible documentation improvement proposal for multiprocessing -> Documentation improvement proposal for multiprocessing ___ Python tracker

[issue26819] _ProactorReadPipeTransport pause_reading()/resume_reading() broken if called before any read is perfored

2018-05-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.6, Python 3.7, Python 3.8 -Python 3.5 ___ Python tracker ___

[issue33549] xmlbuilder's `_AsyncDeprecatedProperty` make no sens now that async is a keyword.

2018-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 216a27766fab59f4dfecfae0c453f7f3fd478989 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.7': bpo-33549: Remove shim and deprecation warning to access DocumentLS.async. (GH-6924) (GH-6929)

[issue33549] xmlbuilder's `_AsyncDeprecatedProperty` make no sens now that async is a keyword.

2018-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Matthias! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33553] Documentation improvement proposal for multiprocessing

2018-05-17 Thread Derek Kim
Derek Kim added the comment: https://docs.python.org/3.8/library/multiprocessing.html#multiprocessing-programming here is the link to the document. -- ___ Python tracker

Re: syntax oddities

2018-05-17 Thread Gregory Ewing
On Tue, 15 May 2018, 23:15 Tobiah, wrote: Why is it getattr(object, item) rather then object.getattr(item)? It's part of the design philosophy of Python that the namespace of a new user-defined class should as far as possible start off as a "blank slate", not cluttered up

[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

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

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

pytypes 1.0 beta 4 released

2018-05-17 Thread Stefan Richthofer
pytypes 1.0 beta 4 has been released. https://github.com/Stewori/pytypes Beneath several bugfixes, the most notable new feature is a utility function for explicitly resolving forward references, e.g. of a manually defined type. Another significant improvement is proper support for tuple ellipses.

Re: syntax oddities

2018-05-17 Thread Abdur-Rahmaan Janhangeer
just a remark that people help and discuss on more issues unrelated to python Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ 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, Abdur-Rahmaan Janhangeer

[issue33554] Optimize PyDictObject

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

[issue33507] Improving the html rendered by cgitb.html

2018-05-17 Thread STINNER Victor
STINNER Victor added the comment: It's difficult to discuss colors, maybe because I'm partially colorblind :-), each people has different taste. Instead of hardcoding colors, would it be better to use CSS instead. -- nosy: +vstinner

[issue13631] readline fails to parse some forms of .editrc under editline (libedit) emulation on Mac OS X

2018-05-17 Thread Ned Deily
Ned Deily added the comment: Thanks for the patch and PR, Zvezdan! Merged for 3.7.0 and 3.8.0. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 -Python 2.7, Python 3.5, Python 3.6

[issue33521] Add 1.32x faster C implementation of asyncio.isfuture().

2018-05-17 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner versions: -Python 3.6, Python 3.7 ___ Python tracker ___

[issue33513] incorrect detection of information of some distributions python2

2018-05-17 Thread STINNER Victor
STINNER Victor added the comment: Oh wow. That looks more like a new feature than a bugfix or short cleanup. I'm not sure that it's ok to do it in Python 2. platform.linux_distribution() is deprecated since Python 3.5 and just has been removed from Python 3.8: see

[issue28167] remove platform.linux_distribution()

2018-05-17 Thread STINNER Victor
STINNER Victor added the comment: Can you please have a look at bpo-33513 which is for Python 2.7: "incorrect detection of information of some distributions python2"? -- ___ Python tracker

[issue33549] xmlbuilder's `_AsyncDeprecatedProperty` make no sens now that async is a keyword.

2018-05-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Library (Lib), XML versions: +Python 3.7, Python 3.8 ___ 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: -1013 ___ 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

[issue33513] incorrect detection of information of some distributions python2

2018-05-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33549] xmlbuilder's `_AsyncDeprecatedProperty` make no sens now that async is a keyword.

2018-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset f90f5d5c1d95721e0ca0b1c302e3d13ed34753a8 by Serhiy Storchaka (Matthias Bussonnier) in branch 'master': bpo-33549: Remove shim and deprecation warning to access DocumentLS.async. (GH-6924)

Re: what does := means simply?

2018-05-17 Thread Abdur-Rahmaan Janhangeer
thank you very much @steve i guess it will make py fly more than ever ! Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ On Thu, 17 May 2018, 07:57 Steven D'Aprano, < steve+comp.lang.pyt...@pearwood.info> wrote: > On Thu, 17 May 2018 05:33:38 +0400, Abdur-Rahmaan Janhangeer wrote: >

[issue33475] Fix converting AST expression to string and optimize parenthesis

2018-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are still problems with f-strings like f'''{"'"}''' => f'{"\'"}' (SyntaxError: f-string expression part cannot include a backslash). But this is a separate hard issue (issue33552). --

[issue33552] f-strings and string annotations

2018-05-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : There are problems with converting annotations containing f-strings into strings (from __future__ import annotations). For example f'''{"'"}''' is converted to f'{"\'"}', but the latter is a syntax error. >>> from __future__

[issue13631] readline fails to parse some forms of .editrc under editline (libedit) emulation on Mac OS X

2018-05-17 Thread Ned Deily
Ned Deily added the comment: New changeset d504108a88bd14a560dec875df682f4e581490e5 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-13631: Fix the order of initialization for readline libedit on macOS. (GH-6915) (GH-6928)

[issue33549] xmlbuilder's `_AsyncDeprecatedProperty` make no sens now that async is a keyword.

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

Re: object types, mutable or not?

2018-05-17 Thread Gregory Ewing
I don't think it's very helpful to anyone to say that "everything is an object", because "everything" is far too vague a term. (It's not even close to being true -- there are plenty of concepts in Python that are not objects.) I think I would say something like "All data that a Python program

Re: object types, mutable or not?

2018-05-17 Thread Chris Angelico
On Thu, May 17, 2018 at 7:16 PM, Anders Wegge Keller wrote: > På Wed, 16 May 2018 14:48:27 +0100 > Paul Moore skrev: > >> C++ called that an "rvalue". And then went on to define things that >> could go on the left hand side of an assignment as "lvalues". And

[issue33551] The string prefixes u and f can't used together

2018-05-17 Thread Benjamin Peterson
Benjamin Peterson added the comment: Why would you want to do that? -- nosy: +benjamin.peterson ___ Python tracker ___

[issue33553] possible documentation improvement proposal for multiprocessing

2018-05-17 Thread Derek Kim
New submission from Derek Kim : >>> from multiprocessing import Pool >>> p = Pool(5) >>> def f(x): ... return x*x ... >>> p.map(f, [1,2,3]) This example in the document is confusing because this is already wrong code when run with fork method even if you run it as

ANN: Pandas 0.23.0 Released

2018-05-17 Thread Tom Augspurger
Hi all, I'm happy to announce that pandas 0.23.0 has been released. This is a major release from 0.22.0 and includes a number of API changes, new features, enhancements, and performance improvements along with a large number of bug fixes. Tom -- *What is it:* pandas

[issue33518] Add PEP to glossary

2018-05-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset d5f144260886959c1fe06bc4506a23fd10f92348 by Victor Stinner (Andrés Delfino) in branch 'master': bpo-33518: Add PEP entry to documentation glossary (GH-6860)

Re: Pandas cat.categories.isin list, is this a bug?

2018-05-17 Thread zljubisic
Hi Matt, > (Including python-list again, for lack of a reason not to. This > conversation is still relevant and appropriate for the general Python > mailing list -- I just meant that the pydata list likely has many more > Pandas users/experts, so you're more likely to get a better answer, >

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

2018-05-17 Thread Abdur-Rahmaan Janhangeer
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 like x = [1] x.remove(1).return() ps. list is was

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

2018-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Nick, should a DeprecationWarning be replaced with a RuntimeWarning or a RuntimeError? There are contradictions about this in comments and the documentation. -- ___ 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: +6601 ___ 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

[issue13631] readline fails to parse some forms of .editrc under editline (libedit) emulation on Mac OS X

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

[issue33475] Fix converting AST expression to string and optimize parenthesis

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

[issue13631] readline fails to parse some forms of .editrc under editline (libedit) emulation on Mac OS X

2018-05-17 Thread Ned Deily
Ned Deily added the comment: New changeset c2f082e9d164acfa8f96de9526f0f47ae92c426a by Ned Deily (Zvezdan Petkovic) in branch 'master': bpo-13631: Fix the order of initialization for readline libedit on macOS. (GH-6915)

[issue33551] The string prefixes u and f can't used together

2018-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The string prefix u is used exclusively for compatibility with Python 2. It helps writing code that works in Python 2 and Python 3. The string prefix f is not compatible with Python 2. If you use it, you no longer have reasons

Re: object types, mutable or not?

2018-05-17 Thread Anders Wegge Keller
På Wed, 16 May 2018 14:48:27 +0100 Paul Moore skrev: > C++ called that an "rvalue". And then went on to define things that > could go on the left hand side of an assignment as "lvalues". And now > we have two confusing concepts to explain - see what happens when you > let a

[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

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,

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

[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

[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

[issue33518] Add PEP to glossary

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

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

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

[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

[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

[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 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): >> >>

[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

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

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

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

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

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

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

[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

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

[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

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

[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

[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

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

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

[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

[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

[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

[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

[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

[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

[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

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

[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

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

[issue33518] Add PEP to glossary

2018-05-17 Thread Andrés Delfino
Change by Andrés Delfino : -- pull_requests: +6605 ___ 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

  1   2   3   >