Re: YAML in std lib?

2017-07-29 Thread Steve D'Aprano
On Sun, 30 Jul 2017 01:27 am, Goldstein wrote: > 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. There are many r

Re: YAML in std lib?

2017-07-29 Thread Terry Reedy
On 7/29/2017 11:27 AM, Goldstein wrote: 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. You can get yaml package(s)

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 >> Movies,Free Movie >> >> [links deleted]

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 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

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: > Traceback (most recent call l

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 classes

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 ex

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] - lo2[1]

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, headers=headers) > > raw_dat

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 would

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 y

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 (Eg

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 to be expensive: %timeit 7 if