[issue32839] Add after_info as a function to tkinter

2018-06-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Real use case for after_info() (with not arg): #33855 is about minimally testing all IDLE modules. At least import the module and create class instances when easily possible. For test_editor, I started with def test_init(self): # Temporary.

[issue14102] argparse: add ability to create a man page

2018-06-14 Thread Pavel Raiskup
Pavel Raiskup added the comment: On Friday, June 15, 2018 1:52:41 AM CEST Ben Finney wrote: > On Thu, 2018-06-14 23:46 +, Aaron Meurer wrote: > > Couldn't such a tool exist outside the standard library. > > I've tried writing such a tool. It would ideally re-use as much as feasible of >

[issue19102] Add tests for CLI of the tabnanny module

2018-06-14 Thread Jaysinh shukla
Jaysinh shukla added the comment: @vstinner I have created the PR here. I wasn't sure so linked the PR with this issue. Thanks! PR URL: https://github.com/python/cpython/pull/7699 -- ___ Python tracker

[issue19102] Add tests for CLI of the tabnanny module

2018-06-14 Thread Jaysinh shukla
Change by Jaysinh shukla : -- pull_requests: +7315 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33863] Enum doc correction relating to __members__

2018-06-14 Thread INADA Naoki
INADA Naoki added the comment: > A dictionary (treated as a synonym for dict) can't have an order different > than insertion order, because that is one of the guarantees a *dictionary* > provides. When subclassing dict and overrides `__iter__` etc., the subclass is dict

[issue33863] Enum doc correction relating to __members__

2018-06-14 Thread Andrés Delfino
Andrés Delfino added the comment: Something I forgot: we shouldn't write documentation that expects the user *not* to know that dictionaries are ordered now. It's described in What's New and in Built-in Types. That's why "ordered dictionaries" seems so wrong to me. --

Re: pattern

2018-06-14 Thread Cameron Simpson
On 14Jun2018 20:01, Sharan Basappa wrote: >Can anyone explain to me the purpose of "pattern" in the line below: > >documents.append((w, pattern['class'])) > >documents is declared as a list as follows: >documents.append((w, pattern['class'])) Not without a lot more context. Where did you find

[issue33867] Module dicts are wiped on module garbage collection

2018-06-14 Thread natedogith1
New submission from natedogith1 : When a module is garbage collected, it fills it's __dict__ with None. issue19255 and issue18214 seem to suggest that this was fixed, along with github pull request 7140 (commit 196b0925ca55bf22ffbb97733cff3e63d4fb6e18). However, this still seems to be an

[issue33863] Enum doc correction relating to __members__

2018-06-14 Thread Andrés Delfino
Andrés Delfino added the comment: The problem here is that while the historical issue is real, new programmers will come and they won't see a "non-ordered" dict, and having this "dictionaries" vs "ordered dictionaries" that aren't actual OrderedDict objects (which have the common name

Re: pattern

2018-06-14 Thread Sharan Basappa
> >Can anyone explain to me the purpose of "pattern" in the line below: > > > >documents.append((w, pattern['class'])) > > > >documents is declared as a list as follows: > >documents.append((w, pattern['class'])) > > Not without a lot more context. Where did you find this code? > > Cheers, I am

[issue33863] Enum doc correction relating to __members__

2018-06-14 Thread INADA Naoki
INADA Naoki added the comment: I feel "dictionary" implies "most likely dict or it's subclass" too. But I don't think "ordered dictionary" is bad wording because: * Historically, dict didn't preserve insertion order. * Dict subclass can provide other ordering. So "ordered dictionary"

Re: mutable sequences

2018-06-14 Thread Sharan Basappa
Thanks, All, for the responses. -- https://mail.python.org/mailman/listinfo/python-list

[issue33863] Enum doc correction relating to __members__

2018-06-14 Thread Andrés Delfino
Andrés Delfino added the comment: To be a little more clear about this: I don't think one implements a dict-like object by reading the Glossary reference. At least, we shouldn't expect nor encourage this. -- ___ Python tracker

[issue33860] doc Avoid "ordered dictionary" references now that dictionaries are ordered

2018-06-14 Thread Andrés Delfino
Andrés Delfino added the comment: Perhaps we can continue the discussion on #33863 as there are more argumnets there, from all points of view, and when a decision is taken there, we can apply it here too. -- ___ Python tracker

[issue33866] Stop using OrderedDict in enum

2018-06-14 Thread INADA Naoki
Change by INADA Naoki : -- keywords: +patch pull_requests: +7314 stage: -> patch review ___ Python tracker ___ ___

[issue33866] Stop using OrderedDict in enum

2018-06-14 Thread INADA Naoki
Change by INADA Naoki : -- components: Library (Lib) nosy: inada.naoki priority: normal severity: normal status: open title: Stop using OrderedDict in enum versions: Python 3.8 ___ Python tracker

[issue33863] Enum doc correction relating to __members__

2018-06-14 Thread Andrés Delfino
Andrés Delfino added the comment: IMHO, the Glossary is just a quick & dirty reference. I wouldn't search for hard definitions in there. See Built-in Types: "dictionary" is used specifically for dict. I believe we should make clear use of definitions so users known exactly what they get. I

[issue27575] dict viewkeys intersection slow for large dicts

2018-06-14 Thread Forest
Forest added the comment: Hi Raymond, I've created a PR here: https://github.com/python/cpython/pull/7696, and I've verified that there are tests for all the code paths. I reached out to Daniel Hsu and he has given his blessing to help push this forward. I think this is ready for your

[issue33860] doc Avoid "ordered dictionary" references now that dictionaries are ordered

2018-06-14 Thread INADA Naoki
INADA Naoki added the comment: > Please note that DictReader already mentions "OrderedDict" as a type it > returns now. OK, but PR-7535 changes enum too. > but "dictionary" alone doesn't seem like a good weak name to me, as it's the > common name of an actual type. As I commented in

[issue33863] Enum doc correction relating to __members__

2018-06-14 Thread INADA Naoki
INADA Naoki added the comment: > What do you mean by "a generic dictionary"? If it's a dict-like object, then > it *must* be ordered starting with 3.7. No. Even though dict is ordered, no guarantee about ordering of "dictionary". Glossary says: dictionary An associative array, where

[issue33863] Enum doc correction relating to __members__

2018-06-14 Thread INADA Naoki
INADA Naoki added the comment: We use the word "dictionary" for "dict-like" or "maybe dict or it's subclass" many places. I don't feel it worth enough to change all wording about it. -- nosy: +inada.naoki ___ Python tracker

[issue33865] unknown encoding: 874

2018-06-14 Thread Steven D'Aprano
Steven D'Aprano added the comment: Please don't post screenshots of text, they make it difficult for the blind and visually impaired to contribute. Instead, please copy and paste the error message into the body of your bug report. (Which I see you have done, which makes the screenshot

Re: How can I verify if the regex exist in a file without reading ?

2018-06-14 Thread Cameron Simpson
On 15Jun2018 00:24, Steven D'Aprano wrote: On Fri, 15 Jun 2018 10:00:59 +1000, Cameron Simpson wrote: Francois, unless your regex can cross multiple lines it is better to search files like this: with open(the_filename) as f: for line in f: ... search the line for the regexp ...

[issue33865] unknown encoding: 874

2018-06-14 Thread Prawin Phichitnitikorn
New submission from Prawin Phichitnitikorn : This Error " Current thread 0x238c (most recent call first): Fatal Python error: Py_Initialize: can’t initialize sys standard streams LookupError: unknown encoding: 874" is cause by mapping of 874 encodling is missing in encodings\aliases.py

Re: How can I verify if the regex exist in a file without reading ?

2018-06-14 Thread Steven D'Aprano
On Fri, 15 Jun 2018 10:00:59 +1000, Cameron Simpson wrote: > Francois, unless your regex can cross multiple lines it is better to > search files like this: > > with open(the_filename) as f: > for line in f: > ... search the line for the regexp ... > > That way you only need to keep

Re: How to apply filters to posts

2018-06-14 Thread Cameron Simpson
On 14Jun2018 19:42, Dennis Lee Bieber wrote: On Fri, 15 Jun 2018 05:39:08 +1000, Ben Finney declaimed the following: Don't choose the daily digest, because it makes a special “digest” message for you each day. That message is disconnected from any other message, and so you will not be able

Re: How to apply filters to posts

2018-06-14 Thread Ben Finney
Dennis Lee Bieber writes: > On Fri, 15 Jun 2018 05:39:08 +1000, Ben Finney > declaimed the following: > > >Don't choose the daily digest, because it makes a special “digest” > >message for you each day. That message is disconnected from any other > >message, and so you will not be able to reply

Re: How can I verify if the regex exist in a file without reading ?

2018-06-14 Thread Cameron Simpson
On 14Jun2018 16:54, Steven D'Aprano wrote: On Thu, 14 Jun 2018 09:26:44 -0700, francois.rabanel wrote: My problem is, if I work on a huge file, I'll try to avoid to read the file because it will be crash my computer :) How does reading a file crash your computer? Likely because he tried

[issue14102] argparse: add ability to create a man page

2018-06-14 Thread Aaron Meurer
Aaron Meurer added the comment: I see. I haven't dug much into the argoarse source, so I don't have a good feel for how feasible such a tool would be to write. Such refactoring would also be useful for generating HTML or RST for the help. I've previously used help2man and man2html to

[issue14102] argparse: add ability to create a man page

2018-06-14 Thread Ben Finney
Ben Finney added the comment: On Thu, 2018-06-14 23:46 +, Aaron Meurer wrote: > Couldn't such a tool exist outside the standard library. I've tried writing such a tool. It would ideally re-use as much as feasible of the functionality that assembles the usage message. But that is

Re: Flask not responding after installation

2018-06-14 Thread Sivan Greenberg
How did you install flask? Can you paste the content of your flask app .py file? -Sivan On Fri, 15 Jun 2018 12:15 am Tamara Berger, wrote: > It seems I can’t progress a single step without encountering a wall. > I’m trying to build a webapp with flask. I installed flask. I followed > the

Re: How to apply filters to posts

2018-06-14 Thread Cameron Simpson
On 14Jun2018 09:23, Tamara Berger wrote: Thanks, Rhodri. One more question. What is a daily digest? I'm wondering whether to choose that option. Please don't use the digest mode. They're a terrible way to read lists, and an even worse way to participate - your replies will never be

[issue14102] argparse: add ability to create a man page

2018-06-14 Thread Aaron Meurer
Aaron Meurer added the comment: Couldn't such a tool exist outside the standard library. I'm thinking a function that you would import and wrap the parser object, similar to how argcomplete works (https://argcomplete.readthedocs.io/en/latest/index.html). The downside is that developers

[issue14102] argparse: add ability to create a man page

2018-06-14 Thread Éric Araujo
Éric Araujo added the comment: Thanks Ben for expressing exactly what this ticket is about and why the code would be in argparse. (The author of argparse and Raymond a senior core dev also agree that adding a man page formatter to argparse would be useful.) --

[issue14102] argparse: add ability to create a man page

2018-06-14 Thread Ben Finney
Ben Finney added the comment: On Thu, 2018-06-14 20:02 +, Pablo Galindo Salgado wrote: > The (possible) confusion is the existence of a manpage only available > though argparse (`./python foo.py --manpage`) This report isn't asking for that. (I see only one person proposing such an

[issue33860] doc Avoid "ordered dictionary" references now that dictionaries are ordered

2018-06-14 Thread Andrés Delfino
Andrés Delfino added the comment: I believe the discussion in #33863 is relevant. Depending on what the API the user can rely on, perhaps "an ordered mapping" fits here too. -- ___ Python tracker

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

2018-06-14 Thread pacujo
pacujo added the comment: Eryk Sun: > I only meant that, as an honest error, it has to be ValueError. I didn't > think about raising a fake OSError. > > Note that I didn't say the ValueError shouldn't be ignored by > os.path.exists (et al). In the spirit of the current function, it > probably

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

2018-06-14 Thread Eryk Sun
Eryk Sun added the comment: >> It has to be a ValueError since the error is an invalid >> parameter at the Python level. > > How does the first follow from the second? I only meant that, as an honest error, it has to be ValueError. I didn't think about raising a fake OSError. Note that I

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

2018-06-14 Thread Eric Snow
Eric Snow added the comment: Also see #24553. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24553] improve test coverage for subinterpreters

2018-06-14 Thread Eric Snow
Eric Snow added the comment: Note that bpo-32604 is strongly related. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue17045] Improve C-API doc for PyTypeObject

2018-06-14 Thread Eric Snow
Change by Eric Snow : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue17045] Improve C-API doc for PyTypeObject

2018-06-14 Thread Eric Snow
Eric Snow added the comment: New changeset 9e7c92193cc98fd3c2d4751c87851460a33b9118 by Eric Snow in branch 'master': bpo-17045: Improve C-API doc for PyTypeObject. (gh-7413) https://github.com/python/cpython/commit/9e7c92193cc98fd3c2d4751c87851460a33b9118 --

[issue33864] collections.abc.ByteString does not register memoryview

2018-06-14 Thread Jason Fried
New submission from Jason Fried : Looking at the typing Module docs in the section for ByteString This type represents the types bytes, bytearray, and memoryview. But collections.abc.ByteString does not have memoryview registered. Is it because memoryview doesn't support .index()?

[issue33863] Enum doc correction relating to __members__

2018-06-14 Thread Andrés Delfino
Andrés Delfino added the comment: What do you mean by "a generic dictionary"? If it's a dict-like object, then it *must* be ordered starting with 3.7. I believe we should make it clear that a dictionary is always a dict object. If you refer to a mapping with no specific API, then "an ordered

Re: How to apply filters to posts

2018-06-14 Thread Mark Lawrence
On 14/06/18 17:23, T Berger wrote: On Thursday, June 14, 2018 at 11:26:00 AM UTC-4, Rhodri James wrote: On 14/06/18 16:00, T Berger wrote: On Thursday, June 14, 2018 at 8:02:44 AM UTC-4, Chris Angelico wrote: They're connected. "Subscribe to the list" makes you a member of the mailing list

[issue33863] Enum doc correction relating to __members__

2018-06-14 Thread Ethan Furman
Ethan Furman added the comment: An ordered mapping sounds good to me. Let's let this sit for a couple days in case anyone else wants to chime in. If there are no other ideas or objections then we can make the change mid-next week. -- ___ Python

Flask not responding after installation

2018-06-14 Thread Tamara Berger
It seems I can’t progress a single step without encountering a wall. I’m trying to build a webapp with flask. I installed flask. I followed the workbook-provided prompts, which should have resulted in a flask confirmation. Nothing happened. Any ideas what’s gone wrong: Last login: Thu Jun 14

Re: How to apply filters to posts

2018-06-14 Thread T Berger
On Thursday, June 14, 2018 at 3:39:44 PM UTC-4, Ben Finney wrote: > T Berger writes: > > > Thanks, Rhodri. One more question. What is a daily digest? I'm > > wondering whether to choose that option. > > Don't choose the daily digest, because it makes a special “digest” > message for you each

[issue33863] Enum doc correction relating to __members__

2018-06-14 Thread Ethan Furman
Ethan Furman added the comment: I am open to suggestions, but I will say that there are other types of ordered dictionaries besides OrderedDict. Also, if you have some generic dictionary that happens to be ordered but is not an OrderedDict, how would you describe it? --

[issue33863] Enum doc correction relating to __members__

2018-06-14 Thread Andrés Delfino
Andrés Delfino added the comment: What about "a dictionary-like object" for master/3.7, and "a dictionary-like object with insertion order preservation" for 3.6 (or something like that). I'd avoid "ordered dictionary" altogether as that's the common name of an actual type. --

[issue33863] Enum doc correction relating to __members__

2018-06-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Well, technically a function can say that it returns a dictionary and this dictionary will be ordered in 3.6> but is not important for the function return value. If a function says that it returns a "ordered dictionary" I now (1) that the order is

[issue33863] Enum doc correction relating to __members__

2018-06-14 Thread Andrés Delfino
Andrés Delfino added the comment: What about "a dictionary-like object"? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue33863] Enum doc correction relating to __members__

2018-06-14 Thread Andrés Delfino
Andrés Delfino added the comment: It doesn't seem right to me to change a term's meaning. Plus, saying "ordered dictionary" makes me think a "dictionary" isn't ordered. -- ___ Python tracker

[issue33354] Python2: test_ssl fails on non-ASCII path

2018-06-14 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +7312 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2018-06-14 Thread STINNER Victor
STINNER Victor added the comment: Reminder: test_gdb is skipped on Travis CI and AppVeyor. I tested my two changes manually. I will backport python-gdb.py enhancements to other branches once PR 6754 fix will be merged. -- ___ Python tracker

[issue33863] Enum doc correction relating to __members__

2018-06-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Since dictionaries are ordered "ordered dictionary" can be a synonym of "dictionary" and "OrderDict", right? -- nosy: +pablogsal ___ Python tracker

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

2018-06-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset d22fc0bc7de7882da204abe50884bbde2da4f9e7 by Victor Stinner in branch 'master': bpo-32962: python-gdb catchs UnicodeDecodeError (GH-7693) https://github.com/python/cpython/commit/d22fc0bc7de7882da204abe50884bbde2da4f9e7 --

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

2018-06-14 Thread STINNER Victor
STINNER Victor added the comment: > Wouldn't be better to use the "surrogateescape" or the "backslashreplace" > error handlers? Are you talking about my https://github.com/python/cpython/pull/7693 fix? If yes, the error comes from the string() method which comes from the gdb API. I don't

[issue33863] Enum doc correction relating to __members__

2018-06-14 Thread Andrés Delfino
Andrés Delfino added the comment: I'm not sure "ordered dictionary" is the right term. To me, "ordered dictionary" and "OrderedDict" are synonyms, just like "dictionary" and "dict" are. Documentation follows this path in several places. You can see my reasons for this in this issue:

[issue14102] argparse: add ability to create a man page

2018-06-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: >What would cause that confusion? This is not something that would >change how ‘argparse’ parses its arguments, so I don't know what >you're referring to. The (possible) confusion is the existence of a manpage only available though argparse (`./python

[issue33863] Enum doc correction relating to __members__

2018-06-14 Thread Ethan Furman
New submission from Ethan Furman : Checking the docs for Enum I see that section 8.13.15.3.1 says: `__members__` is an `OrderedDict` which is incorrect. It should say "an ordered dictionary". -- messages: 319543 nosy: adelfino, barry, eli.bendersky, ethan.furman priority: normal

[issue33862] doc Fix Enum __members__ type

2018-06-14 Thread Ethan Furman
Ethan Furman added the comment: Serhiy is correct. The exact return type only needs to be ordered, and have appropriate dictionary methods such as `keys()`, `values()`, and `items()`. The reason a mappingproxy was chosen is exactly because what you just tried is illegal and/or confusing:

[issue30747] _Py_atomic_* not actually atomic on Windows with MSVC

2018-06-14 Thread Pär Björklund
Pär Björklund added the comment: The HLE variants were simply chosen to match the semantics on other platforms with regard to aquire/release. If Intel engineers say the plain versions are better that's good enough for me. It would be interesting seeing some benchmarks but I don't have any idea

Re: mutable sequences

2018-06-14 Thread Ben Finney
Larry Martell writes: > A string and a list go into a bar. The string asks for a cup of > coffee. The bartender says "We don't have coffee." The string asks for > a cup of coffee. The bartender says "I told you we don't have coffee." > The string asks for a cup of coffee. The bartender says to

Re: How to apply filters to posts

2018-06-14 Thread Ben Finney
T Berger writes: > Thanks, Rhodri. One more question. What is a daily digest? I'm > wondering whether to choose that option. Don't choose the daily digest, because it makes a special “digest” message for you each day. That message is disconnected from any other message, and so you will not be

[issue14102] argparse: add ability to create a man page

2018-06-14 Thread Ben Finney
Ben Finney added the comment: On 14-Jun-2018, Pablo Galindo Salgado wrote: > I think this should be something that is not included in argparse > itself. I can imagine a scenario in which the manpage is accessible > through `./python foo.py --manpage` but the manpage is not installed >

[issue30747] _Py_atomic_* not actually atomic on Windows with MSVC

2018-06-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: I would be ok with reverting to the non-HLE variants. Does anyone want to test the performance implications on TSX-enabled hardware? -- ___ Python tracker

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

2018-06-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Wouldn't be better to use the "surrogateescape" or the "backslashreplace" error handlers? -- nosy: +serhiy.storchaka ___ Python tracker

[issue33862] doc Fix Enum __members__ type

2018-06-14 Thread Andrés Delfino
Andrés Delfino added the comment: I can't really say if it the return of __members__ is an implementation detail as there's no mention of that in the doc, but from reading the doc I think it's reasonable to think this is allowed: import enum class Colors(enum.Enum): RED = enum.auto()

[issue27575] dict viewkeys intersection slow for large dicts

2018-06-14 Thread Forest
Change by Forest : -- pull_requests: +7311 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33862] doc Fix Enum __members__ type

2018-06-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is not returning a mappingproxy an implementation detail? The important thing is that the result is a mapping of names to members, and that it is ordered. -- nosy: +barry, eli.bendersky, ethan.furman, serhiy.storchaka

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

2018-06-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This change looks desirable to me. But it looks too large for backporting it to maintained versions. -- type: behavior -> enhancement versions: +Python 3.8 -Python 3.6 ___ Python tracker

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

2018-06-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +7310 stage: -> patch review ___ Python tracker ___ ___

[issue33862] doc Fix Enum __members__ type

2018-06-14 Thread Andrés Delfino
Change by Andrés Delfino : -- keywords: +patch pull_requests: +7309 stage: -> patch review ___ Python tracker ___ ___

[issue20187] The Great Argument Clinic Conversion Derby Meta-Issue

2018-06-14 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8488] Docstrings of non-data descriptors "ignored"

2018-06-14 Thread Sergey Fedoseev
Change by Sergey Fedoseev : -- nosy: +sir-sigurd ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2018-06-14 Thread Chris Eykamp
Chris Eykamp added the comment: I'll get a PR submitted this weekend, and post back here. It will not explicitly address that other case, as I don't have the capacity or wherewithal for that. Alas. -- ___ Python tracker

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2018-06-14 Thread Tal Einat
Tal Einat added the comment: IMO we should create new issues for AC conversion of the collections and random modules (assuming they haven't been converted yet), and close this issue. -- ___ Python tracker

[issue33862] doc Fix Enum __members__ type

2018-06-14 Thread Andrés Delfino
New submission from Andrés Delfino : Documentation says __members__ attribute returns an "ordered dictionary" but it returns a mappingproxy instead. PR fixes this. -- assignee: docs@python components: Documentation messages: 319532 nosy: adelfino, docs@python priority: normal

[issue20181] Derby #12: Convert 50 sites to Argument Clinic across 4 files

2018-06-14 Thread Tal Einat
Change by Tal Einat : -- nosy: -taleinat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20177] Derby #8: Convert 28 sites to Argument Clinic across 2 files

2018-06-14 Thread Tal Einat
Change by Tal Einat : -- nosy: -taleinat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33860] doc Avoid "ordered dictionary" references now that dictionaries are ordered

2018-06-14 Thread Andrés Delfino
Andrés Delfino added the comment: Please note that DictReader already mentions "OrderedDict" as a type it returns now. I do see the issue you raise though and I'm not proposing to guarantee that type for next versions. I see the benefits of using weak names, but "dictionary" alone doesn't

[issue20187] The Great Argument Clinic Conversion Derby Meta-Issue

2018-06-14 Thread Tal Einat
Change by Tal Einat : -- nosy: -taleinat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2018-06-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks for pointing me at this issue Ned. It sounds like there is a behavior difference between Windows and POSIX systems related to the current directory and/or which process environment is used by the system call that launches the new process to find

Re: Django-hotsauce 1.0 LTS (Commercial Edition) now available for preorder!!

2018-06-14 Thread Jim Lee
On 06/13/2018 11:38 PM, Chris Angelico wrote: On Thu, Jun 14, 2018 at 11:07 AM, Jim Lee wrote: I haven't purchased commercial software in decades, so I'm not up on the prevailing business model, but I have to ask: Why would anyone purchase software and then agree to wait 14 weeks for it to

[issue33861] Minor improvements of tests for os.path.

2018-06-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : When working on a path for issue33721 I have found that some tests for os.path can be improved, and these changes are worth backporting to older versions (3.6+). * Test exists(), lexists(), isdir(), isfile(), islink(), ismount() with bytes paths. *

Re: How can I verify if the regex exist in a file without reading ?

2018-06-14 Thread Steven D'Aprano
On Thu, 14 Jun 2018 09:26:44 -0700, francois.rabanel wrote: > Hi, > > Here is my script : > > It propose to replace some words in a file with a regular expression. It > create a copy to write on it, and if there isn't an error, it delete the > original by the copy with "os.rename" at the end. >

How can I verify if the regex exist in a file without reading ?

2018-06-14 Thread francois . rabanel
Hi, Here is my script : It propose to replace some words in a file with a regular expression. It create a copy to write on it, and if there isn't an error, it delete the original by the copy with "os.rename" at the end. My problem is, if I work on a huge file, I'll try to avoid to read the

Re: How to apply filters to posts

2018-06-14 Thread T Berger
On Thursday, June 14, 2018 at 11:26:00 AM UTC-4, Rhodri James wrote: > On 14/06/18 16:00, T Berger wrote: > > On Thursday, June 14, 2018 at 8:02:44 AM UTC-4, Chris Angelico wrote: > > > >> They're connected. "Subscribe to the list" makes you a member of the > >> mailing list (and thus you will

[issue14102] argparse: add ability to create a man page

2018-06-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I think this should be something that is not included in argparse itself. I can imagine a scenario in which the manpage is accessible through `./python foo.py --manpage` but the manpage is not installed systemwide. This will be very confusing for

[issue33823] A BUG in concurrent/asyncio

2018-06-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Python++: Sorry, I still cannot understand exactly what is wrong. Could you please redact a little paragraph explaining (1) what function/functions are you using (and maybe a very short example), (2) what is not working and (3) what do you expect to

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

2018-06-14 Thread STINNER Victor
STINNER Victor added the comment: It's nice to see this issue fixed :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue33830] Error in the output of one example in the httplib docs

2018-06-14 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- title: example output error -> Error in the output of one example in the httplib docs ___ Python tracker ___

[issue33860] doc Avoid "ordered dictionary" references now that dictionaries are ordered

2018-06-14 Thread INADA Naoki
INADA Naoki added the comment: Sometime, we chose weak name like "file-like" or "dictionary" over "io.TextIOWrapper" or "dict", to avoid making future improvements harder. If there are no strong reason to specify concrete type, let's keep using weak name. In case of enum members, I want to

[issue33860] doc Avoid "ordered dictionary" references now that dictionaries are ordered

2018-06-14 Thread INADA Naoki
INADA Naoki added the comment: "ordered dictionary" means "dict-like object which preserves insertion order". Both of dict and OrderedDict is "ordered dictionary". If we change it to OrderedDict, it make harder to change return type from OrderedDict to normal dict. Do you propose we

[issue33860] doc Avoid "ordered dictionary" references now that dictionaries are ordered

2018-06-14 Thread Andrés Delfino
New submission from Andrés Delfino : IMHO, using "ordered dictionaries" references is somewhat confusing now that dictionaries preserve insertion order. PR changes this references to "OrderedDict object". -- assignee: docs@python components: Documentation messages: 319523 nosy:

Re: How to apply filters to posts

2018-06-14 Thread Rhodri James
On 14/06/18 16:00, T Berger wrote: On Thursday, June 14, 2018 at 8:02:44 AM UTC-4, Chris Angelico wrote: They're connected. "Subscribe to the list" makes you a member of the mailing list (and thus you will start receiving posts), which also entitles you to send to the list. Sending email to

[issue29750] smtplib doesn't handle unicode passwords

2018-06-14 Thread david
david added the comment: Yes, i used thunderbird for both On June 14, 2018 5:14:31 PM GMT+02:00, "R. David Murray" wrote: > >R. David Murray added the comment: > >For the web cases I presume you also set the password using the web >interface, so that doesn't really tell us anything useful.

[issue29750] smtplib doesn't handle unicode passwords

2018-06-14 Thread R. David Murray
R. David Murray added the comment: For the web cases I presume you also set the password using the web interface, so that doesn't really tell us anything useful. Did you use thunderbird to access the mailbox that you set up via gmail and/or sogo? That would make what thunderbird does the

Re: How to apply filters to posts

2018-06-14 Thread T Berger
On Thursday, June 14, 2018 at 8:02:44 AM UTC-4, Chris Angelico wrote: > They're connected. "Subscribe to the list" makes you a member of the > mailing list (and thus you will start receiving posts), which also > entitles you to send to the list. Sending email to that address will > send it to the

  1   2   >