[issue32493] UUID Module - FreeBSD build failure

2018-06-09 Thread Ned Deily
Ned Deily added the comment: New changeset 20cd5c6e21559f35feded5b3cfa9069a281d4325 by Ned Deily (Michael Felt) in branch '3.7': bpo-32493: Correct test for uuid_enc_be availability in configure.ac. (GH-7511) https://github.com/python/cpython/commit/20cd5c6e21559f35feded5b3cfa9069a281d4325

[issue33656] IDLE: Turn on DPI awareness on Windows

2018-06-09 Thread Steve Dower
Steve Dower added the comment: I'm okay to add it to the manifest for both in 3.8, along with a What's New entry. High DPI screens are very common though, and adding it to existing releases won't allow existing apps or frameworks to account for the change. I don't want non-DPI aware apps

[issue33814] exec() maybe has a memory leak

2018-06-09 Thread Steven D'Aprano
Steven D'Aprano added the comment: I decided to risk this "catastrophic" leak, and ran this: py> x = leaks() py> x ((2, 3), , 24) py> import gc py> gc.collect() 22 py> x ((2, 3), , 24) so I think Eric is correct, it is just a garbage collection issue. Possibly a bug, possibly normal

Re: Stefan's headers [was:Names and identifiers]

2018-06-09 Thread Chris Angelico
On Sun, Jun 10, 2018 at 11:52 AM, Steven D'Aprano wrote: > I think the wise thing is to have *just enough* copyright but not too > much. Zero is not enough, but what we have now is too much. > Agreed. If copyright lapsed by default after ten years but could be extended through paid registration

Re: user defined modules

2018-06-09 Thread Albert-Jan Roskam
On 5 Jun 2018 09:32, Steven D'Aprano wrote: On Mon, 04 Jun 2018 20:13:32 -0700, Sharan Basappa wrote: > Is there a specific location where user defined modules need to be kept? > If not, do we need to specify search location so that Python interpreter > can find it? Python modules used as

Re: Stefan's headers [was:Names and identifiers]

2018-06-09 Thread Marko Rauhamaa
Richard Damon : > On 6/9/18 6:48 AM, Marko Rauhamaa wrote: >> It would leak out with developers who move to new jobs. And that would >> be good. > > If you plan on eliminating not only copyright, but trade secret and > non-disclosure laws, sure, maybe. Yes probably some limited stuff > would

Re: Problem finding my folder via terminal

2018-06-09 Thread Lee Congdon
On Sat, Jun 9, 2018 at 4:45 PM T Berger wrote: > [snip] > Sorry. That's terrible. But I did run the code a number of times > correctly. I just did it again and got the same key icon: > > Last login: Sat Jun 9 13:26:14 on ttys000 > 192:~ TamaraB$ cd Desktop/mymodules/dist > 192:dist TamaraB$

[issue33656] IDLE: Turn on DPI awareness on Windows

2018-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Steve, I would like to add the SetProcessDpiAwareness(1) call to IDLE tomorrow, for 3.7.0 and 3.6.6. Do I need to make it an avoidable option? Can it hurt people on some machines? It seems to me that if tk is doing dpi scaling, then it should always be

[issue33766] Grammar Incongruence

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

[issue32493] UUID Module - FreeBSD build failure

2018-06-09 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +7198 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing

[issue33766] Grammar Incongruence

2018-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 0aa17ee6a76df0946d42e7657a501f1862065a22 by Terry Jan Reedy (Ammar Askar) in branch 'master': bpo-33766: Document that end of file or string is a newline (GH-7383)

[issue33766] Grammar Incongruence

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

[issue33814] exec() maybe has a memory leak

2018-06-09 Thread Steven D'Aprano
Steven D'Aprano added the comment: Perhaps a little less self-righteous anger and a little more detail on this alleged bug would be appropriate. Quote: I still think it's ridiculous that every item added to that dict has an "extra", non-obvious reference count that is impossible to

Re: Problem finding my folder via terminal

2018-06-09 Thread Tamara Berger
Hi Cameron, Thanks for the help. I was just following the coding in the workbook when I inserted sudo. What you said about it makes a lot of sense. Again, thanks for all your help. Tamara On Sat, Jun 9, 2018 at 5:49 PM Cameron Simpson wrote: > > On 09Jun2018 10:48, Tamara Berger wrote: > >I

Re: Problem finding my folder via terminal

2018-06-09 Thread Tamara Berger
On Sat, Jun 9, 2018 at 5:05 AM Cameron Simpson wrote: > > A third possibility is that you made a mymodules somewhere else (such as in > your top level home directory), and later decided to put it on your Desktop to > make it easy to find/access. I did save it in My Documents first and then moved

Re: Stefan's headers [was:Names and identifiers]

2018-06-09 Thread Chris Angelico
On Sun, Jun 10, 2018 at 1:07 PM, Gregory Ewing wrote: > Richard Damon wrote: >> >> Our current computing environment grew out of the ability for companies >> to make a profit out of the sales of software. Without the base of >> commercial software, the demand for inexpensive hardware to run it on

Re: Why exception from os.path.exists()?

2018-06-09 Thread Chris Angelico
On Sun, Jun 10, 2018 at 5:53 AM, Ed Kellett wrote: > On 2018-06-08 03:42, Chris Angelico wrote: >> Apart from the one odd bug with SimpleHTTPServer not properly sending >> back 500s, I very much doubt that the original concern - namely that >> os.path.exists() and os.stat() raise ValueError if

[issue33738] PyIndex_Check conflicts with PEP 384

2018-06-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You are right Christian. I missed that PyTypeObject is opaque if Py_LIMITED_API is defined. -- ___ Python tracker ___

Re: Stefan's headers [was:Names and identifiers]

2018-06-09 Thread Marko Rauhamaa
Richard Damon : > Copyright law is not what makes something 'closed source' in the eyes > of the Open Source community. For example, Microsoft doesn't use > Copyright to keep the source code for Windows secret, they just don't > provide it. It would leak out with developers who move to new jobs.

[issue33656] IDLE: Turn on DPI awareness on Windows

2018-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: As reported on #26698, which was originally opened as an IDLE issue, but which I turned into a tkinter issue, one can also sharpen text buy opening python(w).exe properties, Compatibility tab, clicking [Change high DPI settings], and then checking []

[issue33718] Enhance regrtest: meta-ticket for multiple changes

2018-06-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7194 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33718] Enhance regrtest: meta-ticket for multiple changes

2018-06-09 Thread miss-islington
miss-islington added the comment: New changeset 07aea160ca2dd8814a28afe73e6a72c2b3cbf38a by Miss Islington (bot) in branch '3.6': bpo-33718: regrtest: use "xxx then yyy" result if re-run (GH-7521) https://github.com/python/cpython/commit/07aea160ca2dd8814a28afe73e6a72c2b3cbf38a --

[issue33656] IDLE: Turn on DPI awareness on Windows

2018-06-09 Thread Eric Fahlgren
Eric Fahlgren added the comment: So maybe add the dpiAware and dpiAwareness settings to the manifest for just Windows' pythonw.exe and leave the python.exe console interpreter alone? I'm going to guess that the pythonw.exe manifest already has some settings related to its unique status

[issue33718] Enhance regrtest: meta-ticket for multiple changes

2018-06-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset b4f8bc56c1f19561b936be7347fa594ccd70d025 by Victor Stinner in branch '2.7': bpo-33718: regrtest: use "xxx then yyy" result if re-run (GH-7521) (GH-7562) https://github.com/python/cpython/commit/b4f8bc56c1f19561b936be7347fa594ccd70d025

In Pandas, can you do groupby in on two different datasets?

2018-06-09 Thread C W
Dear all, I want find the average ratings of movies by movieId. Below is ratings.head() of the dataset. > ratings.head() userId movieId rating timestamp parsed_time 0 12 3.5 1112486027 2005-04-02 23:53:47 1 1 29 3.5 1112484676 2005-04-02 23:31:16 2

[issue28222] test_distutils fails

2018-06-09 Thread Zachary Ware
Change by Zachary Ware : -- pull_requests: +7196 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Problem finding my folder via terminal

2018-06-09 Thread MRAB
On 2018-06-09 18:48, T Berger wrote: [snip] I want to read your last two emails in the evening when I have more time to digest the information, but I have a quick question now. I made the correction you suggested to mymodule and went on to create a source distribution file. Then I got stuck

[issue33816] New metaclass example for Data Model topic

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

Re: Problem finding my folder via terminal

2018-06-09 Thread T Berger
On Saturday, June 9, 2018 at 3:30:39 PM UTC-4, MRAB wrote: > On 2018-06-09 18:48, T Berger wrote: > [snip] > > > I want to read your last two emails in the evening when I have more time to > > digest the information, but I have a quick question now. I made the > > correction you suggested to

Re: Stefan's headers [was:Names and identifiers]

2018-06-09 Thread Marko Rauhamaa
Richard Damon : > In the comparison to science, I would say that my guess is that a LOT > more science is being done by private companies being encouraged by > the promise of Patent protection than by the support of the general > public. Admittedly, there are likely significant differences in

[issue32493] UUID Module - FreeBSD build failure

2018-06-09 Thread Ned Deily
Ned Deily added the comment: New changeset ced0adb2638e4c02945bfa82e15595918eef74f1 by Ned Deily in branch 'master': bpo-32493: Correct test for uuid_enc_be availability in configure.ac. (GH-7511) (GH-7567) https://github.com/python/cpython/commit/ced0adb2638e4c02945bfa82e15595918eef74f1

[issue33811] asyncio accepting connection limit

2018-06-09 Thread Lisa Guo
Lisa Guo added the comment: One rough idea would be like this: https://github.com/python/cpython/compare/master...lguo2020:fix-issue-33811?expand=1. Another option is to associate it with the loop: loop.set_max_accept(2) and then later self._loop._start_serving(.,

Re: Stefan's headers [was:Names and identifiers]

2018-06-09 Thread Steven D'Aprano
On Sat, 09 Jun 2018 13:48:17 +0300, Marko Rauhamaa wrote: > Richard Damon : >> Copyright law is not what makes something 'closed source' in the eyes >> of the Open Source community. For example, Microsoft doesn't use >> Copyright to keep the source code for Windows secret, they just don't >>

[issue33462] reversible dict

2018-06-09 Thread INADA Naoki
INADA Naoki added the comment: > If adding __reversed__ has any effect on the rest of the build, that is pure > random noise that can be ignored. Although initialization cost of each one type is small, time for _Py_Ready() is not negligible. And ABC.register() too. Import time for

Re: Stefan's headers [was:Names and identifiers]

2018-06-09 Thread Gregory Ewing
Richard Damon wrote: Our current computing environment grew out of the ability for companies to make a profit out of the sales of software. Without the base of commercial software, the demand for inexpensive hardware to run it on wouldn't be there, and computers then would be expensive, and a

Re: Problem finding my folder via terminal

2018-06-09 Thread Cameron Simpson
On 09Jun2018 22:57, Tamara Berger wrote: Thanks for the help. I was just following the coding in the workbook when I inserted sudo. Fair enough too. But generally, in future, consider any command prefixed with sudo with some suspicion. Sometimes it is the sensible thing to do, but many many

Re: Stefan's headers [was:Names and identifiers]

2018-06-09 Thread Gene Heskett
On Saturday 09 June 2018 20:33:06 Steven D'Aprano wrote: > On Sat, 09 Jun 2018 13:48:17 +0300, Marko Rauhamaa wrote: > > Richard Damon : > >> Copyright law is not what makes something 'closed source' in the > >> eyes of the Open Source community. For example, Microsoft doesn't > >> use Copyright

Re: Stefan's headers [was:Names and identifiers]

2018-06-09 Thread Steven D'Aprano
On Sat, 09 Jun 2018 13:02:30 -0400, Richard Damon wrote: > On 6/9/18 6:48 AM, Marko Rauhamaa wrote: >> Richard Damon : >>> Copyright law is not what makes something 'closed source' in the eyes >>> of the Open Source community. For example, Microsoft doesn't use >>> Copyright to keep the source

Re: Stefan's headers [was:Names and identifiers]

2018-06-09 Thread Gregory Ewing
Richard Damon wrote: If software providers could no longer depend on Copyright law, then you would see much more use of the hobbling copy protection technologies, Maybe so, but that has nothing to do with open source, since, as you say, the sort of people that don't want their binaries copied

[issue33812] Different behavior between datetime.py and its C accelerator

2018-06-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Tim, given that I've updated the documentation, should we treat this as a bug fix or a feature? Note that the type check is definitely a bug-fix (if not a security issue), but I clearly had a wrong definition of "naive" in mind when I was modifying

[issue33805] dataclasses: replace() give poor error message if using InitVar

2018-06-09 Thread Dong-hee Na
Dong-hee Na added the comment: @eric.smith Can I take a look this issue? -- nosy: +corona10 ___ Python tracker ___ ___

[issue33766] Grammar Incongruence

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

[issue33656] IDLE: Turn on DPI awareness on Windows

2018-06-09 Thread Steve Dower
Steve Dower added the comment: Yep, that should be fine. If you want to add it to the winapi module rather than use ctypes that's fine too. -- ___ Python tracker ___

Re: Problem finding my folder via terminal

2018-06-09 Thread Cameron Simpson
On 09Jun2018 22:50, Tamara Berger wrote: On Sat, Jun 9, 2018 at 5:05 AM Cameron Simpson wrote: A third possibility is that you made a mymodules somewhere else (such as in your top level home directory), and later decided to put it on your Desktop to make it easy to find/access. I did save

[issue33812] Different behavior between datetime.py and its C accelerator

2018-06-09 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- keywords: +patch pull_requests: +7202 stage: needs patch -> patch review ___ Python tracker ___

Re: Problem finding my folder via terminal

2018-06-09 Thread Cameron Simpson
On 09Jun2018 10:48, Tamara Berger wrote: I want to read your last two emails in the evening when I have more time to digest the information, but I have a quick question now. I made the correction you suggested to mymodule and went on to create a source distribution file. Then I got stuck

[issue32493] UUID Module - FreeBSD build failure

2018-06-09 Thread Ned Deily
Ned Deily added the comment: As noted on PR 7511 and PR 7567, I have merged Michael's configure.ac fixes for testing for uuid_enc_be availability (independent of platform) that were incorrect in earlier commits for this issue. Merged for 3.7.0rc1 and master (3.8). Thanks, everyone!

[issue33766] Grammar Incongruence

2018-06-09 Thread miss-islington
miss-islington added the comment: New changeset f01b951a0e70f36ca2a3caa043f89a5277bb0bb0 by Miss Islington (bot) in branch '2.7': bpo-33766: Document that end of file or string is a newline (GH-7383) https://github.com/python/cpython/commit/f01b951a0e70f36ca2a3caa043f89a5277bb0bb0

[issue33766] Grammar Incongruence

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

[issue33814] exec() maybe has a memory leak

2018-06-09 Thread Tim Peters
Tim Peters added the comment: Dan, your bug report is pretty much incoherent ;-) This standard Stack Overflow advice applies here too: https://stackoverflow.com/help/mcve Guessing your complaint is that: sys.getrefcount(itertools.repeat) keeps increasing by 1 across calls to

[issue33762] temp file isn't IOBase

2018-06-09 Thread Martin Panter
Martin Panter added the comment: I think it is an implementation detail whether the result subclasses IOBase or just implements its API. Why do you want to check the base class, and why IOBase in particular, rather than BufferedIOBase, RawIOBase, or TextIOBase? --

[issue33812] Different behavior between datetime.py and its C accelerator

2018-06-09 Thread Tim Peters
Tim Peters added the comment: I'd call it a bug fix, but I'm really not anal about what people call things ;-) -- ___ Python tracker ___

Re: Why exception from os.path.exists()?

2018-06-09 Thread Ed Kellett
On 2018-06-08 03:42, Chris Angelico wrote: > Apart from the one odd bug with SimpleHTTPServer not properly sending > back 500s, I very much doubt that the original concern - namely that > os.path.exists() and os.stat() raise ValueError if therels a %00 in > the URL - can be abused effectively.

Re: FULLSCREEN and DOUBLEBUF

2018-06-09 Thread Mark Lawrence
On 09/06/18 20:31, Paul St George wrote:     print pygame.display.get_surface() gives and     print screen.get_flags() gives -2147483648 The lists of flags at and

[issue26698] Tk DPI awareness

2018-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Elisha Paine, who prompted #33656 by posting the SetProcessDpiAwareness(1) fix to the idledev list, wrote to me that pyglet and probably pygame have similar issues. I wonder if Python should be installed with the 'application' setting, or if DPI adjustment

Obsolete method in the html module

2018-06-09 Thread Vincent Vande Vyvre
Not really important, just a comment. In Python-3.7.0b5 we can find at the end of html/parser.py:     def unescape(self, s):     warnings.warn('The unescape method is deprecated and will be removed '   'in 3.5, use html.unescape() instead.',  

Re: Inverting a conditional function

2018-06-09 Thread Terry Reedy
On 6/9/2018 5:54 AM, Steven D'Aprano wrote: I frequently have a function which tests some condition, returning True or False, and want a function which reverses the condition. If all I wanted was the result of calling the function, I could say not condition(x) and be done with it, but I

[issue33656] IDLE: Turn on DPI awareness on Windows

2018-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Eric, thanks for the additional reference. From Window's viewpoint, Python, not IDLE, is the application. IDLE is just input data. I should not touch Python's manifest, and changing it would have to consider other possible gui module input data. This

[issue31007] ERROR: test_pipe_handle (test.test_asyncio.test_windows_utils.PipeTests) expected ERROR_INVALID_HANDLE on x86 Windows7 3.x

2018-06-09 Thread STINNER Victor
STINNER Victor added the comment: Test just failed on x86 Windows7 3.6 when test_asyncio was re-run (sequentially): http://buildbot.python.org/all/#/builders/90/builds/387 == ERROR: test_pipe_handle

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2018-06-09 Thread STINNER Victor
STINNER Victor added the comment: I ran attached race.py on the 3.6 branch: * 2000 packets of 16 KiB: ok * 50 packets of 16 MiB: ok It seems like Python 3.6 (at least the 3.6 development branch) doesn't have this bug. It didn't see the bug recently, so I close the issue. Python 3.6 has a

[issue33815] List a = []*19 doesn't create a list with index length of 19

2018-06-09 Thread Zachary Ware
Change by Zachary Ware : -- components: -Windows ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33656] IDLE: Turn on DPI awareness on Windows

2018-06-09 Thread Eric Fahlgren
Eric Fahlgren added the comment: https://msdn.microsoft.com/en-us/library/windows/desktop/mt748620(v=vs.85).aspx gives the syntax for adding dpiAwareness to the Windows manifest. -- nosy: +eric.fahlgren ___ Python tracker

[issue33816] New metaclass example for Data Model topic

2018-06-09 Thread Andrés Delfino
New submission from Andrés Delfino : Since Python 3.6, when PEP 520 was accepted, class attribute definition order is preserved. That alone is sufficient to replace the example, but then 3.7 came with guaranteed dictionary insertion order. The metaclass example uses OrderedDict, what may

[issue33462] reversible dict

2018-06-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Would you try python_startup and python_startup_nosite benchmark That seems entirely unnecessary. If adding __reversed__ has any effect on the rest of the build, that is pure random noise that can be ignored. It is normal to get small improvements or

[issue33816] New metaclass example for Data Model topic

2018-06-09 Thread Andrés Delfino
Andrés Delfino added the comment: To what section are you refering by "the entire section"? On a side note: I'll make a PR to remove the example. IMHO, there should be an example to give some idea of what a metaclass can do, but the current example is no longer useful and it's confusing

[issue31711] ssl.SSLSocket.send(b"") fails

2018-06-09 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +7191 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue31731] [2.7] test_io hangs on x86 Gentoo Refleaks 2.7

2018-06-09 Thread STINNER Victor
STINNER Victor added the comment: AMD64 FreeBSD 10.x Shared 3.7 issue: http://buildbot.python.org/all/#/builders/124/builds/380 0:15:14 load avg: 0.18 [415/415/1] test_io crashed (Exit code 1) Timeout (0:15:00)! Thread 0x000806943c00 (most recent call first): File

Re: Problem finding my folder via terminal

2018-06-09 Thread T Berger
On Saturday, June 9, 2018 at 5:05:25 AM UTC-4, Cameron Simpson wrote: > On 09Jun2018 02:37, Gene Heskett wrote: > >On Saturday 09 June 2018 01:36:17 Tamara Berger wrote: > >> Re inline style: When I hit reply, this is the window I get. > > The python-list server strips attachments, so I didn't

[issue28222] test_distutils fails

2018-06-09 Thread Zachary Ware
Change by Zachary Ware : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33757] Failed separate test_pdb_next_command_in_generator_for_loop in test_pdb

2018-06-09 Thread Xavier de Gaye
Change by Xavier de Gaye : -- keywords: +patch pull_requests: +7195 stage: -> patch review ___ Python tracker ___ ___

Re: Stefan's headers [was:Names and identifiers]

2018-06-09 Thread Richard Damon
On 6/9/18 6:48 AM, Marko Rauhamaa wrote: > Richard Damon : >> Copyright law is not what makes something 'closed source' in the eyes >> of the Open Source community. For example, Microsoft doesn't use >> Copyright to keep the source code for Windows secret, they just don't >> provide it. > It would

Python System Error

2018-06-09 Thread deon gordon
Greetings, confirm 1b131414ca21eea0843469f76454389f1e9ceebe I am using Window 7 Professional (32bit). I downloaded and installed python-3.6.5.exe and have an error after several attempts to install and repair. Python-system error api-mis-win-crt-runtime-l1-1-0.dll is missing from your

[issue33815] List a = []*19 doesn't create a list with index length of 19

2018-06-09 Thread Eric V. Smith
Eric V. Smith added the comment: To elaborate on Zach's comment: Notice that your first example repeats 0 19 times. The second example repeats nothing 19 times. If you first example returned a list with [0] repeated 19 (that is: [[0], [0], [0], ..., [0]]), then you're correct the second

[issue28222] test_distutils fails

2018-06-09 Thread Zachary Ware
Zachary Ware added the comment: New changeset f6645ef027762adbb159a3b6d64a15538672eaa2 by Zachary Ware in branch '2.7': bpo-28222: Don't fail if pygments is not available (GH-7564) https://github.com/python/cpython/commit/f6645ef027762adbb159a3b6d64a15538672eaa2 -- nosy: +zach.ware

[issue33815] List a = []*19 doesn't create a list with index length of 19

2018-06-09 Thread Stefan Behnel
Stefan Behnel added the comment: You misunderstood what the code is doing, and the response that you got indicates that the bug tracker is not the right place to discuss this misunderstanding. If you want to discuss this further, please ask on the Python mailing list

[issue33738] PyIndex_Check conflicts with PEP 384

2018-06-09 Thread Ned Deily
Ned Deily added the comment: As I noted on PR 7477, I decided to merge the change to master so it would get some buildbot exposure before deciding whether to backport for 3.7.0rc1 which is coming up shortly. I notice that the change introduced a compiler warning. Should that be fixed?

[issue30579] Allow traceback objects to be instantiated/mutated/annotated

2018-06-09 Thread Jesús Cea Avión
Change by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33718] Enhance regrtest: meta-ticket for multiple changes

2018-06-09 Thread miss-islington
miss-islington added the comment: New changeset 463d1890bb29b66aed431734bb76e366301a0fa5 by Miss Islington (bot) in branch '3.7': bpo-33718: regrtest: use "xxx then yyy" result if re-run (GH-7521) https://github.com/python/cpython/commit/463d1890bb29b66aed431734bb76e366301a0fa5 --

[issue33814] exec() maybe has a memory leak

2018-06-09 Thread Dan Snider
New submission from Dan Snider : Sort of because I'm really not sure if it's working as intended or not. When I found this out today, I noticed that the documentation of `exec` has been updated since the last time I saw it, which is good, but it still leaves much to be desired. Specifically,

Re: Python System Error

2018-06-09 Thread Mark Lawrence
On 09/06/18 17:12, deon gordon wrote: Greetings, confirm 1b131414ca21eea0843469f76454389f1e9ceebe I am using Window 7 Professional (32bit). I downloaded and installed python-3.6.5.exe and have an error after several attempts to install and repair. Python-system error

[issue33816] New metaclass example for Data Model topic

2018-06-09 Thread Andrés Delfino
Andrés Delfino added the comment: I'm talking about the example in Data Model, 3.3.3.6. -- ___ Python tracker ___ ___

[issue33815] List a = []*19 doesn't create a list with index length of 19

2018-06-09 Thread Varada
Varada added the comment: Hi, Eric & Zach, Thanks for your kind response. @Eric, from your comments am I to understand that you agree with me or state that my understanding is wrong ? :) I couldn't conclude it. The point where I find difficult to convince myself is why am I not able to

Re: Re: FULLSCREEN and DOUBLEBUF

2018-06-09 Thread Paul St George
On 08/06/18 09:00, Paul St George wrote: Excellent. Now I know what to do in this instance and I understand the principle. I hesitantly tried this: screen = pygame.display.set_mode((720,480), pygame.FULLSCREEN | pygame.DOUBLEBUF) Hesitantly because I expected the *bitwise or

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2018-06-09 Thread Yury Selivanov
Yury Selivanov added the comment: pause_reading and resume_reading became idempotent only in 3.7 -- ___ Python tracker ___ ___

[issue33817] PyString_FromFormatV() fails to build empty strings

2018-06-09 Thread Tey
New submission from Tey : Making PyString_FromFormatV() build an empty string on 2.7 will fail and raise the following error: SystemError: Objects/stringobject.c:3903: bad argument to internal function It does not matter if format is empty or not (e.g., both PyString_FromFormat("") and

[issue33813] Update overdue 'Deprecated ... removed in 3.x' messages

2018-06-09 Thread Terry J. Reedy
New submission from Terry J. Reedy : Reported on python-list by Vincent Vande Vivre. """ In Python-3.7.0b5 we can find at the end of html/parser.py: def unescape(self, s): warnings.warn('The unescape method is deprecated and will be removed ' 'in 3.5, use

[issue31120] [2.7] Python 64 bit _ssl compile fails due missing buildinf_amd64.h

2018-06-09 Thread Zachary Ware
Change by Zachary Ware : -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue33816] New metaclass example for Data Model topic

2018-06-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: Probably, the entire section with the OrderedClass example should be removed. Once class dicts became ordered by default, the __prepare__ attribute lost its principal motivating use case. -- nosy: +rhettinger

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

2018-06-09 Thread Chris Eykamp
Chris Eykamp added the comment: I've been experiencing the same issue, which is triggered in the exception handling of web.py. Bert's proposed fix, adding the zero byte check (if self._binary_file or self.length >= 0:) addresses the issue I'm seeing (tested on 3.5, it's what's available

plotly / dash export data

2018-06-09 Thread duncan smith
Hello, I have been trying to work out how to export data from a dash application. I know little about html or javascript. I can upload data into a table as per the example at https://github.com/plotly/dash-core-components/pull/73. I can edit the data in the table. But I can't find a way of

[issue22555] Tracking issue for adjustments to binary/text boundary handling

2018-06-09 Thread STINNER Victor
STINNER Victor added the comment: > https://vstinner.github.io/python30-listdir-undecodable-filenames.html Oh, thanks for mentioning my series of articles. It's also nice to see that we are now able to close this 4 years old issue! -- ___ Python

[issue33718] Enhance regrtest: meta-ticket for multiple changes

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

[issue33375] warnings: get filename from frame.f_code.co_filename

2018-06-09 Thread Brett Cannon
Brett Cannon added the comment: New changeset 3f45f5da8eb052f1b54d37086c67b7094f35b67b by Brett Cannon (Zackery Spytz) in branch 'master': bpo-33375: Fix GCC warning in Python/_warnings.c (GH-7556) https://github.com/python/cpython/commit/3f45f5da8eb052f1b54d37086c67b7094f35b67b --

[issue33815] List a = []*19 doesn't create a list with index length of 19

2018-06-09 Thread Zachary Ware
Zachary Ware added the comment: Nothing (or 0, or an empty list, string or tuple, etc.) multiplied by any positive whole number is still nothing. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

Re: FULLSCREEN and DOUBLEBUF

2018-06-09 Thread Richard Damon
On 6/9/18 3:31 PM, Paul St George wrote: > So... > >     print pygame.display.get_surface() > gives > > > and >     print screen.get_flags() > gives > -2147483648 > > The lists of flags at > > and >

Re: Stefan's headers [was:Names and identifiers]

2018-06-09 Thread Richard Damon
On 6/9/18 3:06 PM, Marko Rauhamaa wrote: > Richard Damon : > >> On 6/9/18 6:48 AM, Marko Rauhamaa wrote: >>> It would leak out with developers who move to new jobs. And that would >>> be good. >> >> If you plan on eliminating not only copyright, but trade secret and >> non-disclosure laws, sure,

[issue33718] Enhance regrtest: meta-ticket for multiple changes

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

Re: Obsolete method in the html module

2018-06-09 Thread Terry Reedy
On 6/9/2018 4:07 AM, Vincent Vande Vyvre wrote: In Python-3.7.0b5 we can find at the end of html/parser.py:     def unescape(self, s):     warnings.warn('The unescape method is deprecated and will be removed '   'in 3.5, use html.unescape() instead.',   

[issue33375] warnings: get filename from frame.f_code.co_filename

2018-06-09 Thread Brett Cannon
Brett Cannon added the comment: Thanks everyone for making this happen! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33814] exec() maybe has a memory leak

2018-06-09 Thread Eric V. Smith
Eric V. Smith added the comment: It would be helpful if you could show what output you see, and how it differs from what you expect. I think you're just seeing reference cycles or some other delayed garbage collection. If you put in a gc.collect() in your loops to force a collection,

  1   2   >