[issue36599] doctest document says dict order is unstable

2019-04-12 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> doctest: Change example under warnings section ___ Python tracker

[issue36599] doctest document says dict order is unstable

2019-04-12 Thread Inada Naoki
Inada Naoki added the comment: Oh, #34839 had fixed this already. It was not backported to 3.7 yet. -- ___ Python tracker ___ ___

[issue36599] doctest document says dict order is unstable

2019-04-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Go ahead and change it to: "For example, when printing a set, Python doesn’t guarantee that the else will be printed in any particular order," -- nosy: +rhettinger ___ Python tracker

[issue36599] doctest document says dict order is unstable

2019-04-11 Thread Inada Naoki
Change by Inada Naoki : -- title: weakref document says dict order is unstable -> doctest document says dict order is unstable ___ Python tracker <https://bugs.python.org/issu

[issue36599] weakref document says dict order is unstable

2019-04-11 Thread Inada Naoki
gnee: docs@python components: Documentation messages: 339952 nosy: docs@python, inada.naoki priority: normal severity: normal status: open title: weakref document says dict order is unstable versions: Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.o

[issue35865] configparser document refers about random dict order

2019-01-31 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35865] configparser document refers about random dict order

2019-01-31 Thread INADA Naoki
INADA Naoki added the comment: New changeset 59014449721966a7890f6323616431ad869ec7cc by Inada Naoki in branch '3.7': bpo-35865: doc: Remove wrong note and directives (GH-11711) https://github.com/python/cpython/commit/59014449721966a7890f6323616431ad869ec7cc --

[issue35865] configparser document refers about random dict order

2019-01-31 Thread INADA Naoki
INADA Naoki added the comment: Also revert GH-7542 (bpo-33800) too. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35865] configparser document refers about random dict order

2019-01-31 Thread INADA Naoki
Change by INADA Naoki : -- keywords: +patch, patch, patch pull_requests: +11567, 11568, 11569 stage: -> patch review ___ Python tracker ___

[issue35865] configparser document refers about random dict order

2019-01-31 Thread INADA Naoki
Change by INADA Naoki : -- keywords: +patch, patch pull_requests: +11567, 11568 stage: -> patch review ___ Python tracker ___ ___

[issue35865] configparser document refers about random dict order

2019-01-31 Thread INADA Naoki
Change by INADA Naoki : -- keywords: +patch pull_requests: +11567 stage: -> patch review ___ Python tracker ___ ___

[issue35865] configparser document refers about random dict order

2019-01-31 Thread INADA Naoki
New submission from INADA Naoki : GH-6819 (bpo-33504) changed OrderedDict to dict, and removed note about randomness of dict order in dict. But it is only for 3.8. Python 3.7 document should remove the note too. -- assignee: docs@python components: Documentation messages: 334609

[issue32337] Dict order is now guaranteed, so add tests and doc for it

2018-04-04 Thread Ned Deily
Ned Deily added the comment: Thanks for doing this! Let's close it. If comments arise prior to its release in 370b4, we can reopen, otherwise please open a new issue. -- priority: deferred blocker -> resolution: -> fixed stage: patch review -> resolved status:

[issue32337] Dict order is now guaranteed, so add tests and doc for it

2018-04-04 Thread INADA Naoki
INADA Naoki added the comment: Any other known issue? May I close this issue? -- ___ Python tracker ___

[issue32337] Dict order is now guaranteed, so add tests and doc for it

2018-04-03 Thread miss-islington
miss-islington <mariatta.wijaya+miss-isling...@gmail.com> added the comment: New changeset 9216dffbc8a2aa62789f81f51f64bc1ec7bf6883 by Miss Islington (bot) in branch '3.7': bpo-32337: Update documentats about dict order (GH-4973) https://github.com/python/cpython/

[issue32337] Dict order is now guaranteed, so add tests and doc for it

2018-04-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +6079 ___ Python tracker ___

[issue32337] Dict order is now guaranteed, so add tests and doc for it

2018-04-03 Thread INADA Naoki
INADA Naoki <songofaca...@gmail.com> added the comment: New changeset dfbbbf16f9aab82330c634913441b5ac73267d9c by INADA Naoki (hui shang) in branch 'master': bpo-32337: Update documentats about dict order (GH-4973) https://github.com/python/cpython/

[issue32337] Dict order is now guaranteed, so add tests and doc for it

2018-04-03 Thread INADA Naoki
INADA Naoki added the comment: > I started to add this comment to #33218 but Raymond closed that ticket while > I was editing it. Sorry, I closed it, not Raymond. -- ___ Python tracker

[issue32337] Dict order is now guaranteed, so add tests and doc for it

2018-04-03 Thread Steven D'Aprano
Steven D'Aprano added the comment: I started to add this comment to #33218 but Raymond closed that ticket while I was editing it. In 3.6, dicts preserving insertion order remains an implementation detail that cannot be relied on. It only becomes a guarantee in

[issue32337] Dict order is now guaranteed, so add tests and doc for it

2018-03-11 Thread Ned Deily
Ned Deily added the comment: Raymond, do you want to review the current state of the PR before 3.7.0b4? Otherwise, I'll probably ask that it be merged as is. -- priority: release blocker -> deferred blocker ___ Python tracker

[issue32337] Dict order is now guaranteed, so add tests and doc for it

2018-03-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +ned.deily priority: normal -> release blocker ___ Python tracker ___

[issue32337] Dict order is now guaranteed, so add tests and doc for it

2018-02-03 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: rhettinger -> ___ Python tracker ___

[issue32337] Dict order is now guaranteed, so add tests and doc for it

2018-02-03 Thread shangdahao
shangdahao added the comment: Thanks zhang, I have updated it in the PR. -- ___ Python tracker ___

[issue32337] Dict order is now guaranteed, so add tests and doc for it

2018-02-02 Thread Xiang Zhang
Xiang Zhang added the comment: This part needs editing too, the text and example. https://docs.python.org/3/library/stdtypes.html#dictionary-view-objects -- nosy: +xiang.zhang ___ Python tracker

[issue32337] Dict order is now guaranteed, so add tests and doc for it

2017-12-27 Thread shangdahao
shangdahao added the comment: Thanks inada, I removed the tests from the PR. -- nosy: +shangdahao ___ Python tracker ___

[issue32337] Dict order is now guaranteed, so add tests and doc for it

2017-12-26 Thread INADA Naoki
New submission from INADA Naoki : FYI, Builtin dict is tested for ordering already: https://github.com/python/cpython/blob/13a6c098c215921e35004f9d3a9b70f601e56500/Lib/test/test_ordered_dict.py#L646-L662 -- nosy: +inada.naoki

[issue32337] Dict order is now guaranteed, so add tests and doc for it

2017-12-22 Thread shangdahao
Change by shangdahao : -- keywords: +patch pull_requests: +4864 stage: needs patch -> patch review ___ Python tracker ___

[issue32337] Dict order is now guaranteed, so add tests and doc for it

2017-12-15 Thread Raymond Hettinger
Change by Raymond Hettinger <raymond.hettin...@gmail.com>: -- title: Dict order is now guaranteed, so add tests for it -> Dict order is now guaranteed, so add tests and doc for it ___ Python tracker <rep...@bugs.python.org> <https

[issue32337] Dict order is now guaranteed, so add tests for it

2017-12-15 Thread Raymond Hettinger
Change by Raymond Hettinger <raymond.hettin...@gmail.com>: -- assignee: rhettinger components: Tests nosy: rhettinger priority: normal severity: normal stage: needs patch status: open title: Dict order is now guaranteed, so add tests for it versions: Pyth

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6d06b223c664 by Frank Wierzbicki in branch '2.7': Closed #16886: test_dictcomps no longer depends on dict order http://hg.python.org/cpython/rev/6d06b223c664 New changeset c7dfc307b88e by Frank Wierzbicki in branch '3.2': Closed #16886

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-15 Thread Frank Wierzbicki
Frank Wierzbicki added the comment: I have addressed all of the comments, but I don't know the exact procedure here. Does someone need to say Looks good to me before I push? -- ___ Python tracker rep...@bugs.python.org

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If you addressed last Ezio's comments, it will be good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16886 ___

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-15 Thread R. David Murray
R. David Murray added the comment: The ideal is if someone says looks good to me. The practical path is that if you have addressed all the comments, and no one objects after a couple-three days, you should feel free to commit (unless you feel like you want another review, in which case you

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-12 Thread Frank Wierzbicki
Changes by Frank Wierzbicki fwierzbi...@gmail.com: Added file: http://bugs.python.org/file28709/dictcomps_updated2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16886 ___

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-11 Thread Ezio Melotti
Ezio Melotti added the comment: I left a review on Rietveld. Frank, once the comments have been addressed and the patch approved, do you want to commit it on all the 4 branches yourself? If you prefer I can take care of it. -- nosy: +ezio.melotti type: - behavior versions: +Python

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-11 Thread Frank Wierzbicki
Frank Wierzbicki added the comment: I'd love to work through the commit process myself once I get through all of the comments. My intention is to become much more active here as Jython3 starts to ramp up over the next year. It would be great if I could eventually get all of Jython's .py files

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-11 Thread Frank Wierzbicki
Frank Wierzbicki added the comment: Well, we generally prefer to go through the review process always, except for relatively small commits (which some of yours may be). Good to know, in that case I'll plan to go through the review process always. 2.7 is separate from 3.x. So to commit to

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, export patch from 3.2 or 3.3 (which you need to do anyway to upload here), import patch into 2.7. Feel free to ask questions on the Core-mentorship list. The devguide is still a work-in-progress, but has had several recent patches. Great to hear that

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-11 Thread R. David Murray
R. David Murray added the comment: I'm not positive what Terry means by export patch and import patch...I think hg actually has commands like that, but I don't use them myself. I just use hg diff to generate the diff/patch file, and then use the regular patch command to apply it to 2.7.

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-11 Thread Frank Wierzbicki
Frank Wierzbicki added the comment: I'm getting an error when I try to upload patches via Reitveld: TypeError at /review/16886/add int() argument must be a string or a number, not 'AddForm' so I'm attaching my updated patch here. Is this a known issue? If not, where should I report it?

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-11 Thread Frank Wierzbicki
Frank Wierzbicki added the comment: On Fri, Jan 11, 2013 at 6:34 PM, Frank Wierzbicki rep...@bugs.python.org wrote: Reitveld *Rietveld I see just uploading a new patch to bugs.python does the right thing so I'll just move along :) -- nosy: +Frank.Wierzbicki

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-11 Thread Ezio Melotti
Ezio Melotti added the comment: The devguide is still a work-in-progress I would say it's already quite mature, however I'm rewriting the part about commiting: see #14468 and https://bitbucket.org/ezio_melotti/devguide/src/default/committing.rst?at=default (in particular the working with

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: The hg workbench gui of tortoisehg, which I use, has make/apply patch selections that get translated to hg commands. So same thing ;-). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16886

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-10 Thread Frank Wierzbicki
Frank Wierzbicki added the comment: Switched to unittest style away from doctests and created patch against 3.3. Note that at this time test_dictcomp.py is identical in 3.3 and 3.4 so merging should be pretty easy :) -- Added file: http://bugs.python.org/file28676/dictcomp3.3.patch

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-10 Thread Frank Wierzbicki
Frank Wierzbicki added the comment: This patch of test_dict_comp.py was made against 2.7. It differs from the 3.3 version only one line from test import test_support as support -- Added file: http://bugs.python.org/file28677/dictcomp2.7.patch ___

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-09 Thread Frank Wierzbicki
Frank Wierzbicki added the comment: Making these into real unit tests and switching the patch to 3.3 should be no problem. Is 2.7 still open for changes to tests? I might back port to 2.7 as well so that I can delete the customized Jython test in 2.7. --

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-08 Thread Éric Araujo
Éric Araujo added the comment: Yes, we definitely want to eat our dogfood and stop relying on dict order, especially now that hashing is randomized. I would argue for backporting this to stable branches. Patch looks good. A semi-related improvement for this bug would be to switch

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It would be good actually get rid of doctests, turning them into unittests. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16886

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-07 Thread Frank Wierzbicki
: patch messages: 179272 nosy: fwierzbicki priority: normal severity: normal status: open title: Doctests in test_dictcomp depend on dict order versions: Python 3.4 Added file: http://bugs.python.org/file28613/test_dictcomp.patch ___ Python tracker rep

[issue10159] rlcompleter's tests depend on dict order

2010-10-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Applied in r85766. Thanks! -- nosy: +georg.brandl resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10159] rlcompleter's tests depend on dict order

2010-10-20 Thread Andreas Stührk
. The attached patch against py3k branch tries to fix that. -- components: Tests files: test_rlcompleter_order.patch keywords: patch messages: 119240 nosy: Trundle priority: normal severity: normal status: open title: rlcompleter's tests depend on dict order versions: Python 2.7, Python 3.1

[issue10159] rlcompleter's tests depend on dict order

2010-10-20 Thread Ned Deily
Ned Deily n...@acm.org added the comment: The patch looks good to me. -- nosy: +ned.deily, pitrou stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10159 ___

Re: dict order

2008-06-19 Thread Aahz
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: Whoops for keys, values in dict_one.items(): if keys in dict_two: if values == dict_two[keys]: Except that keys implies a plural (meaning more than one thing); in a for loop, each iteration will have only one key. -- Aahz ([EMAIL

dict order

2008-06-18 Thread Robert Bossy
Hi, I wish to know how two dict objects are compared. By browsing the archives I gathered that the number of items are first compared, but if the two dict objects have the same number of items, then the comparison algorithm was not mentioned. Note that I'm not trying to rely on this order.

Re: dict order

2008-06-18 Thread cokofreedom
On Jun 18, 11:22 am, Robert Bossy [EMAIL PROTECTED] wrote: Hi, I wish to know how two dict objects are compared. By browsing the archives I gathered that the number of items are first compared, but if the two dict objects have the same number of items, then the comparison algorithm was not

Re: dict order

2008-06-18 Thread cokofreedom
On Jun 18, 12:32 pm, [EMAIL PROTECTED] wrote: On Jun 18, 11:22 am, Robert Bossy [EMAIL PROTECTED] wrote: Hi, I wish to know how two dict objects are compared. By browsing the archives I gathered that the number of items are first compared, but if the two dict objects have the same

Re: dict order

2008-06-18 Thread Lie
On Jun 18, 4:22 pm, Robert Bossy [EMAIL PROTECTED] wrote: Hi, I wish to know how two dict objects are compared. By browsing the archives I gathered that the number of items are first compared, but if the two dict objects have the same number of items, then the comparison algorithm was not

Re: dict order

2008-06-18 Thread A.T.Hofkamp
On 2008-06-18, Robert Bossy [EMAIL PROTECTED] wrote: Hi, I wish to know how two dict objects are compared. By browsing the archives I gathered that the number of items are first compared, but if the two dict objects have the same number of items, then the comparison algorithm was not

Re: dict order

2008-06-18 Thread Lie
On Jun 18, 5:35 pm, [EMAIL PROTECTED] wrote: On Jun 18, 12:32 pm, [EMAIL PROTECTED] wrote: On Jun 18, 11:22 am, Robert Bossy [EMAIL PROTECTED] wrote: Hi, I wish to know how two dict objects are compared. By browsing the archives I gathered that the number of items are first

Re: dict order

2008-06-18 Thread Robert Bossy
Lie wrote: Whoops, I think I misunderstood the question. If what you're asking whether two dictionary is equal (equality comparison, rather than sorting comparison). You could do something like this: Testing for equality and finding differences are trivial tasks indeed. It is the sort

Re: dict order

2008-06-18 Thread Peter Otten
Robert Bossy wrote: I wish to know how two dict objects are compared. By browsing the archives I gathered that the number of items are first compared, but if the two dict objects have the same number of items, then the comparison algorithm was not mentioned. If I interpret the comments in

Re: dict order

2008-06-18 Thread Robert Bossy
Peter Otten wrote: Robert Bossy wrote: I wish to know how two dict objects are compared. By browsing the archives I gathered that the number of items are first compared, but if the two dict objects have the same number of items, then the comparison algorithm was not mentioned. If I

Re: dict order

2008-06-18 Thread A.T.Hofkamp
On 2008-06-18, Robert Bossy [EMAIL PROTECTED] wrote: Lie wrote: Whoops, I think I misunderstood the question. If what you're asking whether two dictionary is equal (equality comparison, rather than sorting comparison). You could do something like this: Testing for equality and finding

Re: dict order

2008-06-18 Thread Kirk Strauser
At 2008-06-18T10:32:48Z, [EMAIL PROTECTED] writes: # untested 2.5 for keys in dict_one.items(): if keys in dict_two: if dict_one[keys] != dict_two[keys]: # values are different else: # key is not present That fails if there is an item in dict_two that's not in dict_one.

Re: dict order

2008-06-18 Thread cokofreedom
On Jun 18, 4:45 pm, Kirk Strauser [EMAIL PROTECTED] wrote: At 2008-06-18T10:32:48Z, [EMAIL PROTECTED] writes: # untested 2.5 for keys in dict_one.items(): if keys in dict_two: if dict_one[keys] != dict_two[keys]: # values are different else: # key is not present

[ python-Bugs-1496501 ] tarfile.py: dict order dependency

2006-12-27 Thread SourceForge.net
thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.5 Status: Closed Resolution: Accepted Priority: 5 Private: No Submitted By: Armin Rigo (arigo) Assigned to: Lars Gustäbel (gustaebel) Summary: tarfile.py: dict order

[ python-Bugs-1496501 ] tarfile.py: dict order dependency

2006-12-21 Thread SourceForge.net
thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.5 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Armin Rigo (arigo) Assigned to: Lars Gustäbel (gustaebel) Summary: tarfile.py: dict order

[ python-Bugs-1496501 ] tarfile.py: dict order dependency

2006-06-10 Thread SourceForge.net
, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.5 Status: Open Resolution: None Priority: 5 Submitted By: Armin Rigo (arigo) Assigned to: Nobody/Anonymous (nobody) Summary: tarfile.py: dict order dependency Initial

[ python-Bugs-1496501 ] tarfile.py: dict order dependency

2006-06-10 Thread SourceForge.net
thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.5 Status: Open Resolution: None Priority: 5 Submitted By: Armin Rigo (arigo) Assigned to: Nobody/Anonymous (nobody) Summary: tarfile.py: dict order dependency Initial

[ python-Bugs-1496501 ] tarfile.py: dict order dependency

2006-06-10 Thread SourceForge.net
thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.5 Status: Open Resolution: None Priority: 5 Submitted By: Armin Rigo (arigo) Assigned to: Nobody/Anonymous (nobody) Summary: tarfile.py: dict order dependency Initial

[ python-Bugs-1496501 ] tarfile.py: dict order dependency

2006-05-28 Thread SourceForge.net
of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.5 Status: Open Resolution: None Priority: 5 Submitted By: Armin Rigo (arigo) Assigned to: Nobody/Anonymous (nobody) Summary: tarfile.py: dict order