[issue33095] Cross-reference isolated mode from relevant locations

2018-06-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: There are four parts where I could see sys.path manipulation being mentioned while running scripts : -c option (https://docs.python.org/3/using/cmdline.html#cmdoption-c) -m option (https://docs.python.org/3/using/cmdline.html#cmdoption-m) -

Re: syntax difference

2018-06-16 Thread Chris Angelico
On Sun, Jun 17, 2018 at 3:30 PM, Ben Finney wrote: > Sharan Basappa writes: > >> I think I am now confused with format options in Python. > > You should refer to the documentation for string formatting > https://docs.python.org/3/library/stdtypes.html#str.format> >

Re: syntax difference

2018-06-16 Thread Ben Finney
Sharan Basappa writes: > I think I am now confused with format options in Python. You should refer to the documentation for string formatting https://docs.python.org/3/library/stdtypes.html#str.format> https://docs.python.org/3/library/string.html#formatstrings> (or, if you want to continue

Re: syntax difference

2018-06-16 Thread Sharan Basappa
On Sunday, 17 June 2018 07:25:57 UTC+5:30, Ben Bacarisse wrote: > Cameron Simpson writes: > > > ... In Python 3 we have "format strings", which let you write: > > > > name = "Sharon" > > age = 35 > > print(f"The person named {name|r} is {age} years old.") > > You meant {name!r} I think

[issue26917] unicodedata.normalize(): bug in Hangul Composition

2018-06-16 Thread Ma Lin
Ma Lin added the comment: This issue can be closed, already fixed in issue29456 Also, PyPy's current code is correct. -- ___ Python tracker ___

[issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3

2018-06-16 Thread Ma Lin
Ma Lin added the comment: You are right. I found a Normalization Test Suite for Unicode 3.2 http://www.unicode.org/Public/3.2-Update/NormalizationTest-3.2.0.txt \u1176 is not in the range of the second character. \u11a7, \u11c3 are not in the range of the third character. --

Re: Understanding memory location of Python variables

2018-06-16 Thread Grant Edwards
On 2018-06-16, ip.b...@gmail.com wrote: > I'm intrigued by the output of the following code, which was totally > contrary to my expectations. Can someone tell me what is happening? > myName = "Kevin" id(myName) > 47406848 id(myName[0]) > 36308576 id(myName[1]) > 2476000

[issue33872] doc Add list access time to list definition

2018-06-16 Thread Ammar Askar
Ammar Askar added the comment: I'd say edit the PR and the bug tracker issue to reflect the change. Though you might want to wait for the opinion of a core dev or someone with more documentation experience than me. -- ___ Python tracker

[issue33872] doc Add list access time to list definition

2018-06-16 Thread Andrés Delfino
Andrés Delfino added the comment: If O(1) time complexity for element access is not a requirement (which it seems it's not), I agree that this PR as it is should be closed, and the Glossary entry should have this detail removed. In that case, can I edit the PR or should I open a new one?

[issue33872] doc Add list access time to list definition

2018-06-16 Thread Ammar Askar
Ammar Askar added the comment: I don't think this should be documented at all, not in the glossary, nor the stdtypes section. A quick search through of the glossary and stdtypes indicates that the glossary entry of list is the only place where a time complexity is documented. The problem

Re: syntax difference

2018-06-16 Thread Ben Bacarisse
Cameron Simpson writes: > ... In Python 3 we have "format strings", which let you write: > > name = "Sharon" > age = 35 > print(f"The person named {name|r} is {age} years old.") You meant {name!r} I think there. -- Ben. -- https://mail.python.org/mailman/listinfo/python-list

Re: Scanner freakishness [was Re: Python list vs google group]

2018-06-16 Thread Chris Angelico
On Sun, Jun 17, 2018 at 10:58 AM, Gregory Ewing wrote: > Alister wrote: >> >> A few quick tests later confirmed that whenever the photocopier made >> multiple copies (approx 10+) the circuit would reset >> Cust advised to relocate photocopier, case closed :-) > > > I was expecting the solution

Re: Scanner freakishness [was Re: Python list vs google group]

2018-06-16 Thread Gregory Ewing
Alister wrote: A few quick tests later confirmed that whenever the photocopier made multiple copies (approx 10+) the circuit would reset Cust advised to relocate photocopier, case closed :-) I was expecting the solution to be a note attached to the photocopier saying "Please do not make more

[issue33883] doc Mention mypy, pytype and PyAnnotate in FAQ

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

[issue33883] doc Mention mypy, pytype and PyAnnotate in FAQ

2018-06-16 Thread Andrés Delfino
New submission from Andrés Delfino : As far as I know, mypy and pytype are more advanced that any of the other tools mentioned in the FAQ for static analysis, however we are not touching them. PR adds mentions. -- assignee: docs@python components: Documentation messages: 319798 nosy:

[issue33878] Doc: Assignment statement to tuple or list: case missing.

2018-06-16 Thread Martin Panter
Martin Panter added the comment: I think it is okay to leave out the options for the unpacking case. But I think it is worth clarifying that the single-target case also applies without parentheses, but that it doesn’t apply if there is a trailing comma. So: ‘‘‘ If the target list is a single

[issue33882] doc Mention breakpoint() in debugger-related FAQ

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

[issue33882] doc Mention breakpoint() in debugger-related FAQ

2018-06-16 Thread Andrés Delfino
New submission from Andrés Delfino : IMHO, it's a good opportunity to advertise the convenience of breakpoint(). PR adds a mention. -- assignee: docs@python components: Documentation messages: 319796 nosy: adelfino, docs@python priority: normal severity: normal status: open title: doc

[issue33821] IDLE subsection of What's New 3.7

2018-06-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: There will be more IDLE entries when features are added to maintenance releases. See What's New 3.6 for examples, and PEP 434 for further explanation. I prefer to have one issue for all patches to that section. --

Re: Understanding memory location of Python variables

2018-06-16 Thread Chris Angelico
On Sun, Jun 17, 2018 at 2:38 AM, wrote: > Hi everyone, > > I'm intrigued by the output of the following code, which was totally contrary > to my expectations. Can someone tell me what is happening? > myName = "Kevin" id(myName) > 47406848 id(myName[0]) > 36308576

Re: Understanding memory location of Python variables

2018-06-16 Thread Steven D'Aprano
On Sat, 16 Jun 2018 09:38:07 -0700, ip.bcrs wrote: > Hi everyone, > > I'm intrigued by the output of the following code, which was totally > contrary to my expectations. Can someone tell me what is happening? > myName = "Kevin" id(myName) > 47406848 id(myName[0]) > 36308576

[issue33821] IDLE subsection of What's New 3.7

2018-06-16 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Terry, not sure, but your PR have been merged, but this issue should be closed, do you confirm? -- nosy: +matrixise ___ Python tracker

Re: syntax difference

2018-06-16 Thread Cameron Simpson
On 16Jun2018 12:01, Sharan Basappa wrote: Is there a difference between these prints. The first one looks a bit complex. So, why should it be used? my_age = 35 # not a lie print "my age %s." % my_age print "my age ", my_age Output: %run "D:/Projects/Initiatives/machine

Re: pattern

2018-06-16 Thread Cameron Simpson
On 16Jun2018 11:59, Sharan Basappa wrote: This is so kind of you. Thanks for spending time to explain the code. It did help a lot. I did go back and brush up lists & dictionaries. At this point, I think, I need to go back and brush up Python from the start. So, I will do that first. Sure,

[issue10652] test___all_ + test_tcl fails (Windows installed binary)

2018-06-16 Thread Zachary Ware
Zachary Ware added the comment: Excellent. Thanks, Terry! -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33856] IDLE: "help" is missing from the sign-on message

2018-06-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset c488558faaff4ffa44ba20e0c1f1fc8f18fe722f by Terry Jan Reedy in branch '2.7': [2.7] bpo-33856: Add "help" to the welcome message of IDLE (GH-7755) (GH-7758) https://github.com/python/cpython/commit/c488558faaff4ffa44ba20e0c1f1fc8f18fe722f

[issue33856] IDLE: "help" is missing from the sign-on message

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

[issue33856] IDLE: "help" is missing from the sign-on message

2018-06-16 Thread miss-islington
miss-islington added the comment: New changeset 25531fb7b8338a21cdcdf2ce0f981d781d21641f by Miss Islington (bot) in branch '3.6': bpo-33856: Add "help" to the welcome message of IDLE (GH-7755) https://github.com/python/cpython/commit/25531fb7b8338a21cdcdf2ce0f981d781d21641f --

[issue33856] IDLE: "help" is missing from the sign-on message

2018-06-16 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +7366 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33856] IDLE: "help" is missing from the sign-on message

2018-06-16 Thread miss-islington
miss-islington added the comment: New changeset 6bb770445192e19aef94111c6a9913e1526c4d64 by Miss Islington (bot) in branch '3.7': bpo-33856: Add "help" to the welcome message of IDLE (GH-7755) https://github.com/python/cpython/commit/6bb770445192e19aef94111c6a9913e1526c4d64 --

[issue33856] IDLE: "help" is missing from the sign-on message

2018-06-16 Thread miss-islington
Change by miss-islington : -- keywords: +patch pull_requests: +7365 stage: backport needed -> patch review ___ Python tracker ___

[issue33856] IDLE: "help" is missing from the sign-on message

2018-06-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for the clarification. >>> help works but is not in the sign-on message, even though it is by far the most important item mentioned. I just merged to master. -- assignee: -> terry.reedy components: +IDLE resolution: not a bug -> stage:

[issue33856] Type "help" is not present on win32

2018-06-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +7364 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33856] Type "help" is not present on win32

2018-06-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 9d49f85064c388e2dddb9f8cb4ae1f486bc8d357 by Terry Jan Reedy (Stéphane Wirtel) in branch 'master': bpo-33856: Add "help" to the welcome message of IDLE (GH-7755) https://github.com/python/cpython/commit/9d49f85064c388e2dddb9f8cb4ae1f486bc8d357

[issue23660] Turtle left/right inverted when using different coordinates orientation

2018-06-16 Thread Andre Roberge
Andre Roberge added the comment: I am sorry to hear that this bug was closed based on the unproven assumption that this would impact teaching material. I have *never* seen any pedaggical material for the turtle module where the instructor wrote "use left() to have the turtle turn right,

[issue10652] test___all_ + test_tcl fails (Windows installed binary)

2018-06-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe the following means 'No' and that you can close this. f:\dev\27>python -m test.regrtest test___all__ test_tcl Running Debug|Win32 interpreter... Run tests sequentially 0:00:00 [1/2] test___all__ 0:00:24 [2/2] test_tcl All 2 tests OK. --

[issue10531] write tilted text in turtle

2018-06-16 Thread Ammar Askar
Ammar Askar added the comment: I don't think backwards compatibility matters too much for the turtle package but the way its proposed in the initial report makes it so that text in previous versions would now be angled to the turtle's heading. To keep the previous behavior a keyword arg

[issue33879] Item assignment in tuple mutates list despite throwing error

2018-06-16 Thread R. David Murray
Change by R. David Murray : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue23922] Refactor icon setting to a separate function for Turtle

2018-06-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am closing and rejecting this as not worth the bother and "ain't gonna happen" at things now stand. The 'IDLE icons' are not IDLE icons. They are Python application icons which I adapted for IDLE. The one on the Windows taskbar are set by the Windows

Re: Python list vs google group

2018-06-16 Thread Jim Lee
On 06/16/2018 12:38 PM, Rick Johnson wrote: On Friday, June 15, 2018 at 9:14:13 PM UTC-5, Richard Damon wrote: if the Windows driver broke some specification but still sort of worked [...] ...that's when the engineers in the Redmond, WA area know it's time to package and ship the product!

[issue29560] Tkinter and turtle graphics fill differs between Windows and *nix

2018-06-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Behavior has not changed. It is a legitimate doc issue for both tkinter and turtle. The turtle intro, https://docs.python.org/3/library/turtle.html#introduction, currently 24.1.1. says nothing about the sidebar and image. I think there should be a short

Re: Scanner freakishness [was Re: Python list vs google group]

2018-06-16 Thread Alister via Python-list
On Sat, 16 Jun 2018 14:25:52 -0400, William Ray Wing wrote: >> On Jun 16, 2018, at 9:10 AM, Steven D'Aprano >> wrote: >> >> On Sat, 16 Jun 2018 11:54:15 +1000, Chris Angelico wrote: >> >>> On Sat, Jun 16, 2018 at 11:00 AM, Jim Lee wrote: >> I once had a Mustek color scanner that came

[issue33856] Type "help" is not present on win32

2018-06-16 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: PR proposed -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33856] Type "help" is not present on win32

2018-06-16 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- pull_requests: +7363 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24990] Foreign language support in turtle module

2018-06-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Al did post to python-ideas, with a link to a prototype. I think a fair summary is that core-developers had at least the same reluctance to be involve with code translations as with doc translations. We rejected doing the latter as part of cpython by

Re: Python list vs google group

2018-06-16 Thread Rick Johnson
On Friday, June 15, 2018 at 9:14:13 PM UTC-5, Richard Damon wrote: > if the Windows driver broke some specification but still sort > of worked [...] ...that's when the engineers in the Redmond, WA area know it's time to package and ship the product! --

[issue33856] Type "help" is not present on win32

2018-06-16 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Zach, in fact, it's not a problem with Python itself, but with Idle. I just downloaded a virtualbox image via (https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/) and started the installation of Python 3.6.5 and when you execute IDLE,

[issue10652] test___all_ + test_tcl fails (Windows installed binary)

2018-06-16 Thread Zachary Ware
Zachary Ware added the comment: The root of this issue was fixed by #20035 for 3.5+. Terry, do you still have issues with this with 2.7, and is it still worth trying to fix? -- ___ Python tracker

Re: Scanner freakishness [was Re: Python list vs google group]

2018-06-16 Thread William Ray Wing
> On Jun 16, 2018, at 9:10 AM, Steven D'Aprano > wrote: > > On Sat, 16 Jun 2018 11:54:15 +1000, Chris Angelico wrote: > >> On Sat, Jun 16, 2018 at 11:00 AM, Jim Lee wrote: > >>> I once had a Mustek color scanner that came with a TWAIN driver. If >>> the room temperature was above 80

Re: Understanding memory location of Python variables

2018-06-16 Thread Alister via Python-list
On Sat, 16 Jun 2018 13:19:04 -0400, Joel Goldstick wrote: > On Sat, Jun 16, 2018 at 12:38 PM, wrote: >> Hi everyone, >> >> I'm intrigued by the output of the following code, which was totally >> contrary to my expectations. Can someone tell me what is happening? >> > myName = "Kevin" >

[issue33856] Type "help" is not present on win32

2018-06-16 Thread Zachary Ware
Zachary Ware added the comment: I suspect you either had a non-python.org version of Python, or had the embeddable distribution rather than a proper installation (the embeddable distribution should not be used unless you're embedding, hence the name :)). Either way, the standard

Re: syntax difference

2018-06-16 Thread Alister via Python-list
On Sat, 16 Jun 2018 12:01:16 -0700, Sharan Basappa wrote: > Is there a difference between these prints. The first one looks a bit > complex. So, why should it be used? > > my_age = 35 # not a lie > > print "my age %s." % my_age print "my age ", my_age > > Output: > %run

syntax difference

2018-06-16 Thread Sharan Basappa
Is there a difference between these prints. The first one looks a bit complex. So, why should it be used? my_age = 35 # not a lie print "my age %s." % my_age print "my age ", my_age Output: %run "D:/Projects/Initiatives/machine learning/programs/five.py" my age 35. my age 35 --

[issue33881] dataclasses should use NFKC to find duplicate members

2018-06-16 Thread Eric V. Smith
Change by Eric V. Smith : -- title: dataclasses should use NFKD to find duplicate members -> dataclasses should use NFKC to find duplicate members ___ Python tracker ___

[issue33856] Type "help" is not present on win32

2018-06-16 Thread Ammar Askar
Ammar Askar added the comment: Can't recreate from latest Python 3.6.5 downloaded off python.org > D:\Python365\python.exe Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information.

Re: pattern

2018-06-16 Thread Sharan Basappa
Dear Cameron, This is so kind of you. Thanks for spending time to explain the code. It did help a lot. I did go back and brush up lists & dictionaries. At this point, I think, I need to go back and brush up Python from the start. So, I will do that first. On Friday, 15 June 2018 09:12:22

[issue33856] Type "help" is not present on win32

2018-06-16 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Steven, On Thursday, I gave a python training with some Windows computers and I have executer python, just the REPL, normally, you have Python 3.6.5 (default, Apr 4 2018, 15:01:18) [GCC 7.3.1 20180303 (Red Hat 7.3.1-5)] on linux Type "help",

Re: Python list vs google group

2018-06-16 Thread Paul St George
On 15/06/2018 17:33, T Berger wrote: On Friday, June 15, 2018 at 12:14:30 PM UTC-4, Mark Lawrence wrote: On 15/06/18 16:47, T Berger wrote: On Friday, June 15, 2018 at 11:31:47 AM UTC-4, Alister wrote: it certainly seems to be the source of most SPAM as such some users of this list/newsgroup

[issue33663] Web.py wsgiserver3.py raises TypeError when CSS file is not found

2018-06-16 Thread Steve Dower
Steve Dower added the comment: For the NEWS entry, I'd suggest putting "Library" for the category and use your commit message for the text at the end. You should also fill out the CLA form posted in your PR by the bot. While we *can* overlook it for very simple changes, best to get it done

[issue24978] Contributing to Documentation. Translation to Russian.

2018-06-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: There are now several official translations: see current doc pages, the bottom of https://devguide.python.org/experts/, and https://www.python.org/dev/peps/pep-0545/. According to the pep, discussion is on doc-sig.

[issue33663] Web.py wsgiserver3.py raises TypeError when CSS file is not found

2018-06-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Congratulations! All the changes and patches are collected in Misc/NEWS.d file. You can find more information and the process to create one here : https://devguide.python.org/committing/?highlight=blurb#what-s-new-and-news-entries . Happy hacking

[issue31725] Turtle/tkinter: NameError crashes ipython with "Tcl_AsyncDelete: async handler deleted by the wrong thread"

2018-06-16 Thread Rick J. Pelleg
Rick J. Pelleg added the comment: Thanks! On Sat, Jun 16, 2018, 18:53 Carol Willing wrote: > > Carol Willing added the comment: > > Hi Rick, > > I'm closing this issue as not reproducible. Thanks for filing it and using > Turtle. > > -- > nosy: +willingc > resolution: -> not a bug

[issue33880] namedtuple should use NFKD to find duplicate members

2018-06-16 Thread Eric V. Smith
Eric V. Smith added the comment: Actually, should this be NKFC? >From https://docs.python.org/3.6/reference/lexical_analysis.html#identifiers : "All identifiers are converted into the normal form NFKC while parsing; comparison of identifiers is based on NFKC." --

[issue33663] Web.py wsgiserver3.py raises TypeError when CSS file is not found

2018-06-16 Thread Valeriya Sinevich
Valeriya Sinevich added the comment: Hello! I created a PR for this but I am new to the process, so I don't know what to do with the error on "no news entry" issue. Could someone please help me with the next steps? -- nosy: +valer ___ Python

How to get the versions of dependecies

2018-06-16 Thread Cecil Westerhof
If I update prompt-toolkit, I get: ipython 6.4.0 has requirement prompt-toolkit<2.0.0,>=1.0.15, but you'll have prompt-toolkit 2.0.3 which is incompatible. So I should not. At least not at the moment. But how do I get to know which versions of a package are needed? When Using: pip3 -vvv

[issue10531] write tilted text in turtle

2018-06-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: c.create_text(100, 100, angle=90.0, text='test text') is a tclerror in 8.5 and works in 8.6. -- nosy: +serhiy.storchaka -BreamoreBoy ___ Python tracker

[issue33663] Web.py wsgiserver3.py raises TypeError when CSS file is not found

2018-06-16 Thread Valeriya Sinevich
Change by Valeriya Sinevich : -- keywords: +patch pull_requests: +7361 stage: -> patch review ___ Python tracker ___ ___

[issue33880] namedtuple should use NFKD to find duplicate members

2018-06-16 Thread Eric V. Smith
Eric V. Smith added the comment: See issue 33881 for the corresponding dataclasses issue. -- nosy: +rhettinger ___ Python tracker ___

[issue33881] dataclasses should use NFKD to find duplicate members

2018-06-16 Thread Eric V. Smith
New submission from Eric V. Smith : See issue 33880 for the same issue with namedtuple. This shows up on dataclasses only through make_dataclass. This is an expected ValueError: >>> make_dataclass('a', ['a', 'b', 'c', 'a']) Traceback (most recent call last): File "", line 1, in File

[issue33880] namedtuple should use NFKD to find duplicate members

2018-06-16 Thread Eric V. Smith
Eric V. Smith added the comment: Not that it really matters to this issue, but here's how dataclasses and attrs deal with this: dataclasses has the same issue, via make_dataclass(). attrs gives a syntax error with your field names, but interestingly this succeeds: >>> Foo =

Re: Python list vs google group

2018-06-16 Thread Gene Heskett
On Saturday 16 June 2018 12:31:28 Jim Lee wrote: > On 06/16/2018 08:36 AM, Richard Damon wrote: > > On 6/15/18 11:07 PM, Jim Lee wrote: > >>> [snip] > >>> > I once had a Mustek color scanner that came with a TWAIN driver.  > If the room temperature was above 80 degrees F, it would scan

[issue6717] Some problem with recursion handling

2018-06-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I reran Dino's test.py on current master on Win10 and got Traceback (most recent call last): File "f:/dev/tem/recursion_crash.py", line 23, in f() File "f:/dev/tem/recursion_crash.py", line 18, in f f() File "f:/dev/tem/recursion_crash.py",

Re: For specific keys , extract non empty values in a dictionary

2018-06-16 Thread Peter Otten
Ganesh Pal wrote: > *How do I check few specific/selected keys in a dictionary and extract > their values if they are not empty* You mean not None. > o_num = {'one': 1, > 'three': 3, > 'bar': None, > 'five' : 5, > 'rum' : None, > 'seven' :

Re: Understanding memory location of Python variables

2018-06-16 Thread MRAB
On 2018-06-16 17:38, ip.b...@gmail.com wrote: Hi everyone, I'm intrigued by the output of the following code, which was totally contrary to my expectations. Can someone tell me what is happening? myName = "Kevin" id(myName) 47406848 id(myName[0]) 36308576 id(myName[1]) 2476000 I

Re: Understanding memory location of Python variables

2018-06-16 Thread Joel Goldstick
On Sat, Jun 16, 2018 at 12:38 PM, wrote: > Hi everyone, > > I'm intrigued by the output of the following code, which was totally contrary > to my expectations. Can someone tell me what is happening? > myName = "Kevin" id(myName) > 47406848 id(myName[0]) > 36308576

[issue33880] namedtuple should use NFKD to find duplicate members

2018-06-16 Thread John Cooke
New submission from John Cooke : from collections import namedtuple # create a namedtuple whose members are: # 00B5;MICRO SIGN;Ll; # 03BC;GREEK SMALL LETTER MU;Ll # these are both legal identifier names names = ['\u00b5', '\u03bc'] for name in names: assert name.isidentifier() mu =

For specific keys , extract non empty values in a dictionary

2018-06-16 Thread Ganesh Pal
*How do I check few specific/selected keys in a dictionary and extract their values if they are not empty* *Example : Extract the values for key "one","three","seven" and "nine” if they are not empty* *Input :* *o_num = {'one': 1,* * 'three': 3,* * 'bar': None,* *

[issue33879] Item assignment in tuple mutates list despite throwing error

2018-06-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Interesting. I googled this and came across this note which covers this : https://docs.python.org/2/faq/programming.html#why-does-a-tuple-i-item-raise-an-exception-when-the-addition-works -- nosy: +xtreak

[issue33855] IDLE: Minimally test every non-startup module.

2018-06-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 833b3d2dcc7043be20ac19f7821552fcb21f4365 by Terry Jan Reedy in branch '3.6': [3.6] bpo-33855: Minimally test all IDLE modules. (GH-7689) (GH-7734) https://github.com/python/cpython/commit/833b3d2dcc7043be20ac19f7821552fcb21f4365 --

[issue22571] Remove import * recommendations and examples in doc?

2018-06-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am going to accept Raymond's rejection of a general change. I will reconsider the tkinter doc should I ever work on it. For IDLE code, I have settled on 'from tkinter import Tk, Text, ..., perhaps followed by 'from tkinter.ttk import Scrollbar, ...'.

Understanding memory location of Python variables

2018-06-16 Thread ip . bcrs
Hi everyone, I'm intrigued by the output of the following code, which was totally contrary to my expectations. Can someone tell me what is happening? >>> myName = "Kevin" >>> id(myName) 47406848 >>> id(myName[0]) 36308576 >>> id(myName[1]) 2476000 I expected myName[0] to be located at the same

Re: Python list vs google group

2018-06-16 Thread Jim Lee
On 06/16/2018 08:36 AM, Richard Damon wrote: On 6/15/18 11:07 PM, Jim Lee wrote: [snip] I once had a Mustek color scanner that came with a TWAIN driver.  If the room temperature was above 80 degrees F, it would scan in color - otherwise, only black & white.  I was *sure* it was a hardware

[issue33876] doc Mention the MicroPython implementation in Introduction

2018-06-16 Thread Carol Willing
Carol Willing added the comment: I think your suggestion for Brython and Skulpt is excellent. I believe that it's important to point out that Python can be used client-side, and both your suggestions have been around for a while, are stable, and often used in large courses such as OpenEdX.

[issue33876] doc Mention the MicroPython implementation in Introduction

2018-06-16 Thread Andrés Delfino
Andrés Delfino added the comment: What do you think about also mentioning Skulpt and Brython? On one hand, they -like MicroPython/CirtcuitPython- cover a focus no other implementation does (and a special one: client side Web scripting); but on the other hand, we shouldn't make space for

[issue33871] Possible integer overflow in iov_setup()

2018-06-16 Thread Ned Deily
Ned Deily added the comment: Test case: import os fo = open('/tmp/temp', 'wb') fi = open('/tmp/temp', 'rb') os.sendfile(fo.fileno(), fi.fileno(), 0, 0, headers=[b'x' * 2**16] * 2**15) -- run against current master HEAD (2f9cbaa8b2190b6dfd3157ede9b6973523a3b939, as of 2018-06-15)

[issue31725] Turtle/tkinter: NameError crashes ipython with "Tcl_AsyncDelete: async handler deleted by the wrong thread"

2018-06-16 Thread Carol Willing
Carol Willing added the comment: Hi Rick, I'm closing this issue as not reproducible. Thanks for filing it and using Turtle. -- nosy: +willingc resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue33877] doc Mention Windows along UNIX for script running instructions

2018-06-16 Thread Ned Deily
Change by Ned Deily : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33877] doc Mention Windows along UNIX for script running instructions

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

[issue23922] Refactor icon setting to a separate function for Turtle

2018-06-16 Thread Carol Willing
Carol Willing added the comment: I've updated the issue title to reflect Terry's comments and changed the stage to needs patch. -- nosy: +willingc stage: test needed -> needs patch title: turtle.py and turtledemo use the default tkinter icon -> Refactor icon setting to a separate

[issue29560] Turtle graphics fill behavior differs between versions

2018-06-16 Thread Carol Willing
Carol Willing added the comment: The next action for this issue would be to run the demo listed on Python 3.7 and report the results back here. We can then document expected behavior if it differs. -- nosy: +willingc ___ Python tracker

Re: Python list vs google group

2018-06-16 Thread Richard Damon
On 6/15/18 11:07 PM, Jim Lee wrote: > > > On 06/15/2018 07:08 PM, Richard Damon wrote: >> On 6/15/18 9:00 PM, Jim Lee wrote: >>> >>> On 06/15/2018 05:00 PM, Chris Angelico wrote: On Sat, Jun 16, 2018 at 4:52 AM, Rob Gaddi wrote: > On 06/15/2018 11:44 AM, Larry Martell wrote:

[issue26571] turtle regression in 3.5

2018-06-16 Thread Carol Willing
Change by Carol Willing : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27461] Optimize PNGs

2018-06-16 Thread Carol Willing
Change by Carol Willing : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24990] Foreign language support in turtle module

2018-06-16 Thread Carol Willing
Carol Willing added the comment: A good next step with this issue would be to look at the languages mentioned in the devguide experts page (https://devguide.python.org/experts/#documentation-translations) with people interested in translations -- nosy: +willingc

[issue14117] Turtledemo: exception and minor glitches.

2018-06-16 Thread Carol Willing
Carol Willing added the comment: Hi @terry.reedy, I'm triaging open "turtle" issues. What do you think would be a reasonable next step for this issue? Perhaps: a contributor runs the demo and reports back here with the current behavior experienced. -- nosy: +willingc

[issue23660] Turtle left/right inverted when using different coordinates orientation

2018-06-16 Thread Carol Willing
Carol Willing added the comment: Hi aroberge, Thanks for filing this issue. I'm triaging all of the open 'turtle' issues. I'm closing this issue since introducing this suggested change would impact teaching materials and resources that have already been published. This would be a change

[issue10531] write tilted text in turtle

2018-06-16 Thread Carol Willing
Carol Willing added the comment: This would be a fun feature to add. The next step on this issue would be to determine if this can be accomplished with Tk 8.6. -- nosy: +willingc versions: +Python 3.8 -Python 3.5 ___ Python tracker

[issue21077] Turtle Circle Speed 0

2018-06-16 Thread Carol Willing
Carol Willing added the comment: The next step on this issue would be to test if this behavior is still present in Python 3.6 and 3.7 and report the result of your test here. -- nosy: +willingc ___ Python tracker

[issue33879] Item assignment in tuple mutates list despite throwing error

2018-06-16 Thread njayinthehouse
New submission from njayinthehouse : Seems like a bug. >>> a = (1, [1]) >>> a[1] += [2] Traceback (most recent call last): File "", line 1, in TypeError: 'tuple' object does not support item assignment >>> a (1, [1, 2]) -- messages: 319748 nosy:

[issue16428] turtle with compound shape doesn't get clicks

2018-06-16 Thread Carol Willing
Carol Willing added the comment: This issue is "new contributor"-friendly. The next steps would be to apply the patch to a recent version of Python 3, check if tests run cleanly, and if the patch resolves the issue. I'm sorry ingrid that the patch review languished on the issue tracker.

  1   2   >