Re: Obtain javascript result

2016-10-21 Thread eproser
Many Thanks to everybody. -- https://mail.python.org/mailman/listinfo/python-list

Re: Internet Data Handling » mailbox

2016-10-21 Thread Ben Finney
Adam Jensen writes: > import mailbox > for message in mailbox.mbox('~/mbox'): > subject = message['subject'] # Could possibly be None. > if subject and 'python' in subject.lower(): > print subject > > What is the structure of "message"? You're binding that name to each item

Re: Internet Data Handling » mailbox

2016-10-21 Thread MRAB
On 2016-10-22 03:43, Adam Jensen wrote: The mailbox library documentation seems to be a little weak. In this example: https://docs.python.org/2.7/library/mailbox.html#examples import mailbox for message in mailbox.mbox('~/mbox'): subject = message['subject'] # Could possibly be None.

Internet Data Handling » mailbox

2016-10-21 Thread Adam Jensen
The mailbox library documentation seems to be a little weak. In this example: https://docs.python.org/2.7/library/mailbox.html#examples import mailbox for message in mailbox.mbox('~/mbox'): subject = message['subject'] # Could possibly be None. if subject and 'python' in subject.low

Building manylinux wheels & auditwheel

2016-10-21 Thread Patrick Young
Hello, I've been exploring building manylinux wheels and trying to use auditwheel to vendorize my shared libraries. Essentially, I can't seem to get "auditwheel repair" to fix up my wheel that has some dependencies that need to be packed up. I've described my problem at https://github.com/pypa/a

Re: dll files missings ....how to solve this problem

2016-10-21 Thread eryk sun
On Fri, Oct 21, 2016 at 4:05 PM, Dennis Lee Bieber wrote: > On Fri, 21 Oct 2016 15:00:58 +, mohammed iqtefan > declaimed the following: > >>i installed python 3.5.2 >> ... >>api-ms-win-crt-conio-l1-1-0.dll is missing >>and its not the only dll file that missing there is dozens more > > While

Re: Obtain javascript result

2016-10-21 Thread justin walters
On Fri, Oct 21, 2016 at 8:07 AM, wrote: > Yes, > > the page is http://www.betexplorer.com/next/soccer/ > and You have to open any match You want. > > This pop-up new windows with match detail and odds > (if present). > > I try to extract home team, away team, results, and > bet365's bookmaker odd

Re: Obtain javascript result

2016-10-21 Thread bob gailer
On 10/21/2016 11:07 AM, epro...@gmail.com wrote: Yes, the page is http://www.betexplorer.com/next/soccer/ and You have to open any match You want. This pop-up new windows with match detail and odds (if present). I try to extract home team, away team, results, and bet365's bookmaker odds. I ca

Re: Obtain javascript result

2016-10-21 Thread Michael Torrie
On 10/21/2016 07:29 AM, epro...@gmail.com wrote: > Hello NG. > > I'm new in Python for fun. > > I have a html page (I load it by BeautifulSoap) that contain > also this javascript code: > ... > > $(document).ready(function() { > matchdetails_init('rLu2Xsdi', '1x2'); > }); > > ... > Plea

Re: dll files missings ....how to solve this problem

2016-10-21 Thread Michael Torrie
On 10/21/2016 09:00 AM, mohammed iqtefan wrote: > hi > > i installed python 3.5.2 but i coudln't run it because i always have > this msg > > api-ms-win-crt-conio-l1-1-0.dll is missing > > and its not the only dll file that missing there is dozens more The api-ms-win-crt-conio dll is part of the

ReGex with python

2016-10-21 Thread ...
Hi, I have a problem I could not solve, ask for your cooperation. "show_app_install": true, "static_root": "//instagramstatic-a.akamaihd.net/h1", "platform": "web", "activity_counts": null, "hostname": "www.instagram.com", "entry_data": {"PostPage": [{"media": {"caption_is_edited": false, "code"

Re: How to handle errors?

2016-10-21 Thread Wildman via Python-list
On Fri, 21 Oct 2016 16:14:41 +1100, Steve D'Aprano wrote: > On Fri, 21 Oct 2016 11:03 am, Wildman wrote: > >> On Thu, 20 Oct 2016 12:48:28 -0700, SS wrote: >> >>> The following script works fine: >>> >>> #!/bin/python >> >> I meant to include this with my other post but I forgot it. >> >> Usi

dll files missings ....how to solve this problem

2016-10-21 Thread mohammed iqtefan
hi i installed python 3.5.2 but i coudln't run it because i always have this msg api-ms-win-crt-conio-l1-1-0.dll is missing and its not the only dll file that missing there is dozens more help me plz -- https://mail.python.org/mailman/listinfo/python-list

Re: Obtain javascript result

2016-10-21 Thread eproser
Yes, the page is http://www.betexplorer.com/next/soccer/ and You have to open any match You want. This pop-up new windows with match detail and odds (if present). I try to extract home team, away team, results, and bet365's bookmaker odds. I can't continue in my fun analyses because the odds

Re: tkinter callbacks stop working

2016-10-21 Thread Peter Otten
namenobodywa...@gmail.com wrote: > hello pythonistas > > the script below plays tictactoe; everything works; but if i replace the > block at the bottom > > if True: > > > with this instead > > def function(): Below I use main() instead. > > function() > > then the tkinter callback

Re: Obtain javascript result

2016-10-21 Thread Bob Gailer
On Oct 21, 2016 9:30 AM, wrote: > > Hello NG. > > I'm new in Python for fun. > > I have a html page (I load it by BeautifulSoap) that contain > also this javascript code: > ... > > $(document).ready(function() { > matchdetails_init('rLu2Xsdi', '1x2'); > }); > > ... > Please, can You me t

Obtain javascript result

2016-10-21 Thread eproser
Hello NG. I'm new in Python for fun. I have a html page (I load it by BeautifulSoap) that contain also this javascript code: ... $(document).ready(function() { matchdetails_init('rLu2Xsdi', '1x2'); }); ... Please, can You me to aim on the right way to obtain into a Python data structure

tkinter callbacks stop working

2016-10-21 Thread namenobodywants
hello pythonistas the script below plays tictactoe; everything works; but if i replace the block at the bottom if True: with this instead def function(): function() then the tkinter callbacks don't work anymore; can anybody make sense of this? thanks if you can help peace stm ps:

Re: HTML templating tools

2016-10-21 Thread lists
+1 for Jinja2. I love that shit On 2016-10-20 23:16, Adrian Petrescu wrote: On Thu, 20 Oct 2016 11:34:36 +0200, Tony van der Hoff wrote: Can anyone recommend a suitable replacement (preferably compatible with htmltmpl)? I don't think anything is going to be compatible with htmltmpl, but Jin

Re: Making IDLE3 ignore non-BMP characters instead of throwing an exception?

2016-10-21 Thread Adam Funk
On 2016-10-17, eryk sun wrote: > On Mon, Oct 17, 2016 at 2:20 PM, Adam Funk wrote: >> I'm using IDLE 3 (with python 3.5.2) to work interactively with >> Twitter data, which of course contains emojis. Whenever the running >> program tries to print the text of a tweet with an emoji, it barfs >> th

Re: HTML templating tools

2016-10-21 Thread Sayth Renshaw
On Thursday, 20 October 2016 20:51:56 UTC+11, Tony van der Hoff wrote: > For a long time, under Python 2.7, I have been using htmltmpl to > generate htmjl pages programmatically from Python. > > However, htmltmpl is not available for python3, and doesn't look as if > it ever will be. Can anyone r

Re: function call questions

2016-10-21 Thread Frank Millman
"Anssi Saari" wrote in message news:vg3wph2i3dt@coffee.modeemi.fi... OK, so what happens is that now t references the dictionary with {'a': {}} and r references the empty dict inside that. So when we assign to r again, it's the empty dict inside t (the one accessed by key 'a') that change

Re: function call questions

2016-10-21 Thread Anssi Saari
"Frank Millman" writes: > Let's see if I can explain. I am using 't' and 'r' instead of 'tree' > and 'root', but otherwise it is the same as your original example. > t = {} r = t id(t) > 2542235910088 id(r) > 2542235910088 > > At this point, t and r are both references to the