[issue31050] IDLE, configdialog: Factor out GenTab class from ConfigDialog

2017-07-29 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- dependencies: +IDLE, configdialog: Factor out FontTab class from ConfigDialog ___ Python tracker ___

[issue31050] IDLE, configdialog: Factor out GenTab class from ConfigDialog

2017-07-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Now that we know what we are doing, we can simplify the steps. These assume that #21004, PR2905, which prepares create_widgets and fixes the GeneralTest that was broken by Notebook, has been merged. For configdialog: * copy general block after FontPage; *

[issue30781] IDLE: configdialog -- switch to ttk widgets.

2017-07-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I fixed the test problem by selecting the General page in the class setup with d.note.select(3). Then the focus_force to a widget on the page must have worked. -- ___ Python tracker

Re: Direct Download Movies - No Download Limits - Download DivX DVD Movies

2017-07-29 Thread Chris Angelico
On Sun, Jul 30, 2017 at 1:08 PM, wrote: > On Saturday, December 5, 2009 at 8:52:52 PM UTC-8, hussain dandan wrote: >> Movie Download Reviews offers Free Online Movie Download,Hollywood >> Movie Download,Free Full Movie Download,Download Latest Hollywood >>

Re: Need some advice please

2017-07-29 Thread MRAB
On 2017-07-29 17:59, Rick Johnson wrote: On Saturday, July 29, 2017 at 4:59:26 AM UTC-5, Steve D'Aprano wrote: On Sat, 29 Jul 2017 06:34 pm, Kryptxy wrote: > Would it get me around legal issues, that is making this > tool completely legal? Do you think we are lawyers? We're not. Even if we

YAML in std lib?

2017-07-29 Thread Goldstein
Hello. I'm new in this mailing list and, in fact, I've registered for one simple question. Why YAML is not yet included in the standard Python library? It's the most pythonic markup language, I think, and it's pretty popular. -- https://mail.python.org/mailman/listinfo/python-list

[issue31004] IDLE, configdialog: Factor out FontTab class from ConfigDialog

2017-07-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am going to work on this now. Tracers should be on for the duration of the test class except for the load test. d = self.page is what I planned initially. Argument note is bound to parameter parent and that will remain the name. The one error I see in

[issue31004] IDLE, configdialog: Factor out FontTab class from ConfigDialog

2017-07-29 Thread Cheryl Sabella
Cheryl Sabella added the comment: I'm pushing step 2 with an error in the test. It's on the keydown in test_fontlist_key. I just didn't want to hold you up from looking at the rest of it because of one test. I did run into a bunch of other issues/questions while doing this. I didn't add

[issue30803] Truth value of sets not properly documented

2017-07-29 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- status: open -> closed ___ Python tracker ___ ___

[issue30803] Truth value of sets not properly documented

2017-07-29 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: -> resolved ___ Python tracker ___

[issue30803] Truth value of sets not properly documented

2017-07-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 4c7b368de7bcabdd821059c023c46c9d85668d3f by Terry Jan Reedy in branch '3.6': [3.6] bpo-30803: clarify truth value testing documentation (GH-2508) (#2946) https://github.com/python/cpython/commit/4c7b368de7bcabdd821059c023c46c9d85668d3f

[issue31074] Startup failure if executable is a \\?\ path on Windows

2017-07-29 Thread Shubha Ramani
Shubha Ramani added the comment: May I take resolve this issue and submit a patch ? -- nosy: +shubha_bloodhound ___ Python tracker ___

[issue31078] pdb's debug command (Pdb.do_debug) doesn't use rawinput even if the parent pdb uses rawinput

2017-07-29 Thread Segev Finer
Changes by Segev Finer : -- pull_requests: +2996 ___ Python tracker ___ ___

[issue31077] Windows Installer Version

2017-07-29 Thread Steve Dower
Steve Dower added the comment: Please file separate bugs for each of your concerns, and ensure Python 3.6/3.7 and 2.7 are separate as these are fundamentally different installers and will have different bugs. Other versions will not be changed at this point. -- resolution: ->

[issue9325] Add an option to pdb/trace/profile to run library module as a script

2017-07-29 Thread Segev Finer
Changes by Segev Finer : -- nosy: +Segev Finer ___ Python tracker ___ ___ Python-bugs-list

[issue31078] pdb's debug command (Pdb.do_debug) doesn't use rawinput even if the parent pdb uses rawinput

2017-07-29 Thread Segev Finer
New submission from Segev Finer: This is caused by https://github.com/python/cpython/blob/caa1280d1ee5f828f346b585169a7592371d3faa/Lib/pdb.py#L1096 which always passes our own current stdin and stdout, and this triggers the conditional in

Re: Need help to understand not the answer

2017-07-29 Thread devinderaujla
On Saturday, July 29, 2017 at 3:49:55 PM UTC-4, MRAB wrote: > On 2017-07-29 20:16, new_to_c0ding wrote: > > Hello all, > > I have been scratching my head since morning but could not understand this > > quiz question. I would appreciate if someone could help me understand what > > is it asking me

Re: Need help to understand not the answer

2017-07-29 Thread MRAB
On 2017-07-29 20:16, new_to_c0ding wrote: Hello all, I have been scratching my head since morning but could not understand this quiz question. I would appreciate if someone could help me understand what is it asking me to do. I dont need the answer but just the right direction to look at. ###

Re: Need help to understand not the answer

2017-07-29 Thread Piet van Oostrum
new_to_c0ding writes: > Now as per instructions, class MITCampus(Campus) has (self, center_loc, > tent_loc = Location(0,0)) and it is mentioned that center_loc and tent_loc > are Location objects but when I code them as Locations, I get error from the > tester: >

Need help to understand not the answer

2017-07-29 Thread new_to_c0ding
Hello all, I have been scratching my head since morning but could not understand this quiz question. I would appreciate if someone could help me understand what is it asking me to do. I dont need the answer but just the right direction to look at. ### Do not change the Location or Campus

[issue30803] Truth value of sets not properly documented

2017-07-29 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2995 ___ Python tracker ___ ___

[issue31075] Collections - ChainMap - Documentation example wrong order line

2017-07-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Many thanks for the great work you do with Python, Thanks for the kudos. Also, thanks for the close reading of the docs. -- ___ Python tracker

[issue30803] Truth value of sets not properly documented

2017-07-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset caa1280d1ee5f828f346b585169a7592371d3faa by Terry Jan Reedy (Peter Thomassen) in branch 'master': bpo-30803: clarify truth value testing documentation (#2508) https://github.com/python/cpython/commit/caa1280d1ee5f828f346b585169a7592371d3faa

[issue31027] test_listcomps fails when run directly

2017-07-29 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue31027] test_listcomps fails when run directly

2017-07-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset b26cc82b2252dd54e73661a026b32e7808fef945 by Terry Jan Reedy in branch '3.6': [3.6] bpo-31027: Fix test_listcomps failure when run directly (GH-2939) (#2945) https://github.com/python/cpython/commit/b26cc82b2252dd54e73661a026b32e7808fef945

[issue30781] IDLE: configdialog -- switch to ttk widgets.

2017-07-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I will check for anything even vaguely related. In any case, your comment reminded me to give your PR a boost. Too bad it will miss 3.5. -- ___ Python tracker

[issue30581] os.cpu_count() returns wrong number of processors on system with > 64 logical processors

2017-07-29 Thread Chris Wilcox
Chris Wilcox added the comment: I was reviewing the docs for the os module and cpu_count should always return the number of cpus on the system, not the usable CPUs. GetMaximumProcessorCount returns a simulated count in WoW64. I have reached back out to the Windows API dev and will see if

[issue17560] problem using multiprocessing with really big objects?

2017-07-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Davin, when you write-up a blog post, I think it would be helpful to mention that creating really large objects with multi-processing is mostly an anti-pattern (the cost of pickling and interprocess communication tends to drown-out the benefits of parallel

[issue31075] Collections - ChainMap - Documentation example wrong order line

2017-07-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: -0 The code block was originally intended to just be a table of patterns, not meant to be executed sequentially. It followed the traditional presentation order (__getitem__, __setitem__, followed by __delitem__). If we do change this, then the subsequent

Re: Need some advice please

2017-07-29 Thread Rick Johnson
On Saturday, July 29, 2017 at 4:59:26 AM UTC-5, Steve D'Aprano wrote: > On Sat, 29 Jul 2017 06:34 pm, Kryptxy wrote: > > > Would it get me around legal issues, that is making this > > tool completely legal? > > Do you think we are lawyers? We're not. Even if we were, > we're not lawyers who are

[issue30581] os.cpu_count() returns wrong number of processors on system with > 64 logical processors

2017-07-29 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I agree that the MS Docs for this are a bit confusing. I ended up reaching out to the guy who authored the GetMaximumProcessorCount function. I had also written an implementation that iterated over GetProcessorInformationEx and he advised against it. One

[issue30581] os.cpu_count() returns wrong number of processors on system with > 64 logical processors

2017-07-29 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: About GetMaximumProcessorCount, MS doc states that it returns the "maximum number of logical processors that a processor group or the system can have", so maybe it also includes "empty" CPU sockets. GetActiveProcessorCount, on the other hand, returns "the

[issue31077] Windows Installer Version

2017-07-29 Thread Damon Atkins
New submission from Damon Atkins: The Windows installer for example titles the software as Display Name:Python 3.5.3 (64-bit) Display Version: 3.5.3150.0 The default install folder is C:\Program Files\Python35 There is no consistency It looks like the 3150 been shorten to 3 If you look at

[issue31027] test_listcomps fails when run directly

2017-07-29 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2994 ___ Python tracker ___ ___

[issue31027] test_listcomps fails when run directly

2017-07-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset ceb93f4540981e3f9af66bd936920186aba813fc by Terry Jan Reedy (Zackery Spytz) in branch 'master': bpo-31027: Fix test_listcomps failure when run directly (#2939) https://github.com/python/cpython/commit/ceb93f4540981e3f9af66bd936920186aba813fc

[issue31076] http.server should correctly handle HTTP 1.1 responses without a content-length

2017-07-29 Thread Martin Panter
Martin Panter added the comment: The trouble is you would also have to parse the Transfer-Encoding field, and have special logic for responses where Content-Length is not needed or irrelevant (certain combinations of method and status code). And even then you risk breaking rare or custom

Re: how to group by function if one of the group has relationship with another one in the group?

2017-07-29 Thread Piet van Oostrum
Peter Otten <__pete...@web.de> writes: > Ho Yeung Lee wrote: > >> from itertools import groupby >> >> testing1 = [(1,1),(2,3),(2,4),(3,5),(3,6),(4,6)] >> def isneighborlocation(lo1, lo2): >> if abs(lo1[0] - lo2[0]) == 1 or lo1[1] == lo2[1]: >> return 1 >> elif abs(lo1[1] -

[issue29654] SimpleHTTPRequestHandler should support browser cache

2017-07-29 Thread Pierre Quentel
Pierre Quentel added the comment: Thanks for telling me. I must have run the test hundreds of times now, on a Windows 7 PC, and this bug never occured. Just for my information, why do you add temp.flush() in the "with" block ? I thought the context manager took care of this. 2017-07-28 18:19

Re: Python BeautifulSoup extract html table cells that contains images and text

2017-07-29 Thread Piet van Oostrum
Umar Yusuf writes: > Hi all, > > I need help extracting the table from this url...? > > from bs4 import BeautifulSoup > url = "https://www.marinetraffic.com/en/ais/index/ports/all/per_page:50; > > headers = {'User-agent': 'Mozilla/5.0'} > raw_html = requests.get(url,

Re: Default logging as part of the language

2017-07-29 Thread Ned Batchelder
On 7/29/17 5:12 AM, ttopolew...@gmail.com wrote: > Hello, > I'm wondering what do You think about some default logging that can become a > part of the Python language and part of the development workflow. > > I would see it as develop in debug mode untill debug is removed intentionally. > It

[issue31076] http.server should correctly handle HTTP 1.1 responses without a content-length

2017-07-29 Thread Tom Forbes
New submission from Tom Forbes: The builtin http.server module does not support HTTP keep-alive when sending a response without a content-length. This causes any clients to hang waiting on more response data, while the server hangs waiting for the client to send another request. This is

[issue31024] typing.Tuple is class but is defined as data inside https://docs.python.org/3.6/objects.inv

2017-07-29 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: > Do you have any idea? Unfortunately no. -- ___ Python tracker ___ ___

[issue31024] typing.Tuple is class but is defined as data inside https://docs.python.org/3.6/objects.inv

2017-07-29 Thread Bernát Gábor
Bernát Gábor added the comment: I would need to know who and how maintains the https://docs.python.org/3.6/objects.inv file. Do you have any idea? -- ___ Python tracker

[issue31024] typing.Tuple is class but is defined as data inside https://docs.python.org/3.6/objects.inv

2017-07-29 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: > This ticket is about fix objects.inv to have the Tuple in the correct bucket. If you know how to do this without breaking the python docs system (so that Tuple and Callable will not have a "class" prefix on https://docs.python.org/3/library/typing.html)

[issue31074] Startup failure if executable is a \\?\ path on Windows

2017-07-29 Thread Steve Dower
Steve Dower added the comment: Sounds like the right fix. We should increase the maximum path length though, since 3.6 and later can work with much longer paths on Win10 through normal APIs and without prefix. -- ___ Python tracker

[issue30842] pyenv activate for bash and tcsh

2017-07-29 Thread Arnon Sela
Arnon Sela added the comment: readlink -f can be replaced by the following sequence: pushd $fullpath fullpath=$(pwd -P) popd Please note that: [[ $called != $0 ]] && fullpath="${BASH_SOURCE[@]}" || fullpath=$0 Should be replaced with: [[ $called != $0 ]] &&

[issue31075] Collections - ChainMap - Documentation example wrong order line

2017-07-29 Thread Marcos Soutullo
New submission from Marcos Soutullo: Hello, I have been taking a look into your ChainMap collections documentation (https://docs.python.org/3.6/library/collections.html?highlight=collections#collections.ChainMap), specifically the third code example on "8.3.1.1. ChainMap Examples and Recipes"

[issue30781] IDLE: configdialog -- switch to ttk widgets.

2017-07-29 Thread Cheryl Sabella
Cheryl Sabella added the comment: I wonder if the usability bug is related to issue25684, even though it's a different widget. The reason I'm suggesting that is that I had converted the DynOptionMenu to be a ttk.OptionMenu in configdialog, but when I did that, that selection of a target tag

[issue30842] pyenv activate for bash and tcsh

2017-07-29 Thread Vinay Sajip
Vinay Sajip added the comment: This needs further thought as to how to implement. For example, readlink -f isn't supported on OS X. If a patch were available which works across platforms, that would potentially speed up resolution of this issue. --

[issue30581] os.cpu_count() returns wrong number of processors on system with > 64 logical processors

2017-07-29 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: MS documentation is not clear on what function should be used as there are many returning different values. Here it is being suggested to use GetLogicalProcessorInformationEx:

[issue30581] os.cpu_count() returns wrong number of processors on system with > 64 logical processors

2017-07-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: needs patch -> patch review ___ Python tracker ___ ___

Re: Need some advice please

2017-07-29 Thread Steve D'Aprano
On Sat, 29 Jul 2017 06:34 pm, Kryptxy wrote: > Would it get me around legal issues, that is making this tool completely > legal? Do you think we are lawyers? We're not. Even if we were, we're not lawyers who are expert on the legal system of every country in the world. What country's laws are

[issue30931] Race condition in asyncore may access the wrong dispatcher

2017-07-29 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- assignee: -> giampaolo.rodola ___ Python tracker ___

[issue30931] Race condition in asyncore may access the wrong dispatcher

2017-07-29 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: +1, I would push https://github.com/python/cpython/pull/2854/ first and fix the race condition only. -- ___ Python tracker

[issue17560] problem using multiprocessing with really big objects?

2017-07-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > There's also the other multiprocessing limitation Antoine mentioned early on, > where queues/pipes used a 32-bit signed integer to encode object length. > Is there a way or plan to get around this limitation? As I said above in

Default logging as part of the language

2017-07-29 Thread ttopolewski
Hello, I'm wondering what do You think about some default logging that can become a part of the Python language and part of the development workflow. I would see it as develop in debug mode untill debug is removed intentionally. It would include: - standard logging location for new development -

Need some advice please

2017-07-29 Thread Kryptxy via Python-list
Hello, I have developed a python program (tool) that fetches torrents from thepiratebay proxy sites and displays results in console/terminal window. Here: github.com/kryptxy/torrench Now, since thepiratebay contains illegal content, I am restricted from packaging this tool for other distros

Re: Falsey Enums

2017-07-29 Thread Pavol Lisy
On 7/28/17, Steve D'Aprano wrote: > On Fri, 28 Jul 2017 05:52 pm, Ethan Furman wrote: > >> class X(Enum): >> Falsey = 0 >> Truthy = 1 >> Fakey = 2 >> def __bool__(self): >> return bool(self.value) > > Thanks Ethan. BTW bool at enum seems

[issue31074] Startup failure if executable is a \\?\ path on Windows

2017-07-29 Thread Eryk Sun
New submission from Eryk Sun: search_for_prefix in PC/getpathp.c sets the wrong path when Python is started with a \\?\ path on Windows, which results in the following crash: >>> subprocess.call(r'"\\?\C:\Program Files\Python36\python.exe"') Fatal Python error: Py_Initialize: unable to

[issue31045] Add a language switch to the Python documentation

2017-07-29 Thread Julien Palard
Julien Palard added the comment: @terry About Japanese translation, Inada Naoki is the coordinator, their repository is created (https://github.com/python/python-docs-ja) they just have to push now. Once this language switch fully tested / implemented / released, it will be easy to add a

[issue31024] typing.Tuple is class but is defined as data inside https://docs.python.org/3.6/objects.inv

2017-07-29 Thread Bernát Gábor
Bernát Gábor added the comment: I agree we should not advertise the type. However, whatever its type is should be in sync in what we put inside objects.inv. That's sort of a encoded binary black box for the user; the Sphinx tool included. It maps standard library elements to URLs. This ticket