Re: Extract email address from Java script in html source using python

2015-05-23 Thread VanguardLH
Steve Hayes wrote: > On Sat, 23 May 2015 19:01:55 +1000, Chris Angelico > wrote: > >>On Sat, May 23, 2015 at 4:46 PM, savitha devi wrote: >>> I am developing a web scraper code using HTMLParser. I need to extract >>> text/email address from java script with in the HTMLCode.I am beginner level >

Re: mix-in classes

2015-05-23 Thread random832
On Sat, May 23, 2015, at 21:53, Dr. John Q. Hacker wrote: > What should happen when there's a name collision on method names between > mix-ins? Since they're mix-ins, it's not presumed that there is any > parent > class to decide. The proper thing would seem to call each method in the > order th

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Michael Torrie
On 05/23/2015 06:44 AM, Marko Rauhamaa wrote: > Johannes Bauer : > >> I dislike CAs as much as the next guy. But the problem of distributing >> trust is just not easy to solve, a TTP is a way out. Do you have an >> alternative that does not at the same time to providing a solution >> also opens up

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Michael Torrie
On 05/23/2015 05:40 AM, Chris Angelico wrote: > On Sat, May 23, 2015 at 9:34 PM, Tim Chase > wrote: >> A self-signed certificate may be of minimal worth the *first* time you >> visit a site, but if you return to the site, that initial >> certificate's signature can be used to confirm that you're t

mix-in classes

2015-05-23 Thread Dr. John Q. Hacker
The post on "different types of inheritence..." brought up a thought. Let's say, I'm adding flexibility to a module by letting users change class behaviors by adding different mix-in classes. What should happen when there's a name collision on method names between mix-ins? Since they're mix-ins,

Re: Extract email address from Java script in html source using python

2015-05-23 Thread Steve Hayes
On Sat, 23 May 2015 19:01:55 +1000, Chris Angelico wrote: >On Sat, May 23, 2015 at 4:46 PM, savitha devi wrote: >> I am developing a web scraper code using HTMLParser. I need to extract >> text/email address from java script with in the HTMLCode.I am beginner level >> in python coding and totall

Re: need help with an accessibility prototype

2015-05-23 Thread Ned Deily
In article <201505230925.t4n9pnz8028...@fido.openend.se>, Laura Creighton wrote: > In a message of Fri, 22 May 2015 23:31:19 -0700, Ned Deily writes: > >Tcl/Tk 8.4 is quite old and no longer maintained; 8.6.x is current, > >although 8.5.x is also still in use. > > > >http://www.tcl.tk/man/tcl8.

[RELEASE] Python 2.7.10

2015-05-23 Thread Benjamin Peterson
The next bugfix release of the Python 2.7.x series, Python 2.7.10, has been released. The only interesting change since the release candidate is a fix for a regression in cookie parsing. Downloads are available at: https://www.python.org/downloads/release/python-2710/ Report bugs at: https://

Re: Human Rights and Justice in Islam

2015-05-23 Thread hamilton
On 5/23/2015 8:11 AM, bv4bv4...@gmail.com wrote: Human Rights and Justice in Islam Description: A glimpse at the foundations of human rights laid by Islam. By islam-guide.com Islam provides many human rights for the individual. The following are some of these human rights that Islam protects

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Cecil Westerhof
Op Saturday 23 May 2015 20:13 CEST schreef Mark Lawrence: > On 23/05/2015 18:30, Cecil Westerhof wrote: >> >> I should have checked better. I think I found a bug that made it >> look like PYTHONPATH does not work. >> >> In bash I give: >> echo $PYTHONPATH >> this gives: >> .:/home/cecil/Python/Pyt

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Marko Rauhamaa
Chris Angelico : > On Sun, May 24, 2015 at 2:53 AM, Marko Rauhamaa wrote: >> Steven D'Aprano : >>> If you gave them veto power over all certificate authorities (since >>> you need all four to agree, any of them can veto a CA), >> >> No, they wouldn't be able to veto a CA. At worst, they would be

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Cecil Westerhof
Op Saturday 23 May 2015 19:30 CEST schreef Cecil Westerhof: > I should have checked better. I think I found a bug that made it > look like PYTHONPATH does not work. > > In bash I give: > echo $PYTHONPATH > this gives: > .:/home/cecil/Python/PythonLibrary > > Then I start ipython3 and get/do the fo

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Mark Lawrence
On 23/05/2015 18:30, Cecil Westerhof wrote: I should have checked better. I think I found a bug that made it look like PYTHONPATH does not work. In bash I give: echo $PYTHONPATH this gives: .:/home/cecil/Python/PythonLibrary Then I start ipython3 and get/do the following: Python

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Cecil Westerhof
Op Saturday 23 May 2015 18:09 CEST schreef Peter Otten: > Cecil Westerhof wrote: > >> Op Saturday 23 May 2015 15:25 CEST schreef Peter Otten: >> >>> Cecil Westerhof wrote: >>> Op Saturday 23 May 2015 11:12 CEST schreef Mark Lawrence: > On 22/05/2015 06:20, Cecil Westerhof wrote:

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Chris Angelico
On Sun, May 24, 2015 at 2:53 AM, Marko Rauhamaa wrote: > Steven D'Aprano : > >> On Sat, 23 May 2015 10:44 pm, Marko Rauhamaa wrote: >>> Here's an idea: an authentication is considered valid if it is >>> vouched for by the United States, China, Russia *and* the European >>> Union. Those governments

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Terry Reedy
On 5/23/2015 7:12 AM, Tim Daneliuk wrote: On 05/22/2015 08:54 PM, Terry Reedy wrote: On 5/22/2015 5:40 PM, Tim Daneliuk wrote: Lo these many years ago, I argued that Python is a whole lot more than a programming language: https://www.tundraware.com/TechnicalNotes/Python-Is-Middleware/

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Marko Rauhamaa
Johannes Bauer : > I think the major flaw of the X.509 certificate PKI we have today is > that there's no namespacing whatsoever. This is a major problem, as > the Government of Untrustworthia may give out certifictes for > google.de if they wish to do so. But you're fine with the Government of G

Re: Extract email address from Java script in html source using python

2015-05-23 Thread Peter Pearson
On Sat, 23 May 2015 12:16:06 +0530, savitha devi wrote: > > I am developing a web scraper code using HTMLParser. I need to extract > text/email address from java script with in the HTMLCode. Would be be correct in suspecting that you are assembling a list of email addresses for use in spamming?

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Marko Rauhamaa
Steven D'Aprano : > On Sat, 23 May 2015 10:44 pm, Marko Rauhamaa wrote: >> Here's an idea: an authentication is considered valid if it is >> vouched for by the United States, China, Russia *and* the European >> Union. Those governments are the only entities that would have the >> right to delegate

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Peter Otten
Cecil Westerhof wrote: > Op Saturday 23 May 2015 15:25 CEST schreef Peter Otten: > >> Cecil Westerhof wrote: >> >>> Op Saturday 23 May 2015 11:12 CEST schreef Mark Lawrence: >>> On 22/05/2015 06:20, Cecil Westerhof wrote: > I am looking into using ipython instead of bash. But when I call

Re: Dynamic Import with sub module

2015-05-23 Thread Douglas Garstang
Replying to my own message. I just realised that even the case I thought would work, will not. :( If I have: import slice_fablib_common.common as common I end up with fabric showing me these commands: Available commands: common.chef.report common.chef.run Run the chef client.

Dynamic Import with sub module

2015-05-23 Thread Douglas Garstang
All, Can someone tell me how the following statement: import slice_fablib_common.common as common would be replicated with __import__ or import_module? I'm using fabric and I want the module when imported to appear in the namespace (which fabric shows as a task), in this case, as 'common.chef'.

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Cecil Westerhof
Op Saturday 23 May 2015 17:00 CEST schreef Laura Creighton: > In a message of Sat, 23 May 2015 16:08:00 +0200, Cecil Westerhof > writes: >> That is not the problem: >> os.environ['PYTHONPATH'] >> gives: >> .:/home/cecil/Python' >> >> As I interpret it is that the very handy shell variable is not u

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Laura Creighton
In a message of Sat, 23 May 2015 16:08:00 +0200, Cecil Westerhof writes: >That is not the problem: >os.environ['PYTHONPATH'] >gives: >.:/home/cecil/Python' > >As I interpret it is that the very handy shell variable is not used in ipython. > >-- >Cecil Westerhof >Senior Software Engineer >L

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Cecil Westerhof
Op Saturday 23 May 2015 15:25 CEST schreef Peter Otten: > Cecil Westerhof wrote: > >> Op Saturday 23 May 2015 11:12 CEST schreef Mark Lawrence: >> >>> On 22/05/2015 06:20, Cecil Westerhof wrote: I am looking into using ipython instead of bash. But when I call a python program from ipytho

Re: Extract email address from Java script in html source using python

2015-05-23 Thread Chris Angelico
On Sun, May 24, 2015 at 12:15 AM, savitha devi wrote: > What I exactly want is the java script is in the html code. I am trying for > a regular expression to find the email address embedded with in the java > script. Now you have two problems. You can't write a regex that can interpret ECMAScrip

Re: Extract email address from Java script in html source using python

2015-05-23 Thread Joel Goldstick
On Sat, May 23, 2015 at 10:15 AM, savitha devi wrote: > What I exactly want is the java script is in the html code. I am trying for > a regular expression to find the email address embedded with in the java > script. > > On Sat, May 23, 2015 at 2:31 PM, Chris Angelico wrote: >> >> On Sat, May 23,

Re: Extract email address from Java script in html source using python

2015-05-23 Thread savitha devi
What I exactly want is the java script is in the html code. I am trying for a regular expression to find the email address embedded with in the java script. On Sat, May 23, 2015 at 2:31 PM, Chris Angelico wrote: > On Sat, May 23, 2015 at 4:46 PM, savitha devi wrote: > > I am developing a web sc

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Steven D'Aprano
On Sat, 23 May 2015 11:35 pm, Ned Batchelder wrote: > On Saturday, May 23, 2015 at 9:01:29 AM UTC-4, Steven D'Aprano wrote: >> On Sat, 23 May 2015 10:33 pm, Thomas 'PointedEars' Lahn wrote: >> >> > If only characters were represented as sequences UTF-16 code units in >> > ECMAScript implementatio

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Steven D'Aprano
On Sat, 23 May 2015 10:44 pm, Marko Rauhamaa wrote: > Johannes Bauer : > >> I dislike CAs as much as the next guy. But the problem of distributing >> trust is just not easy to solve, a TTP is a way out. Do you have an >> alternative that does not at the same time to providing a solution >> also o

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Ned Batchelder
On Saturday, May 23, 2015 at 9:01:29 AM UTC-4, Steven D'Aprano wrote: > On Sat, 23 May 2015 10:33 pm, Thomas 'PointedEars' Lahn wrote: > > > If only characters were represented as sequences UTF-16 code units in > > ECMAScript implementations like JavaScript, there would not be a problem > > beyond

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Peter Otten
Cecil Westerhof wrote: > Op Saturday 23 May 2015 11:12 CEST schreef Mark Lawrence: > >> On 22/05/2015 06:20, Cecil Westerhof wrote: >>> I am looking into using ipython instead of bash. But when I call a >>> python program from ipython PYTHONPATH is not set. So pythonscripts >>> that need a module

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Johannes Bauer
On 23.05.2015 13:21, Tim Daneliuk wrote: > Trust has context. You're going to that site to read an article. This > is rather different than, say, going somewhere to transact commerce or > move money. Sure, for your site it doesn't really make a difference. And, as I said before, having a self-s

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Johannes Bauer
On 23.05.2015 14:44, Marko Rauhamaa wrote: > Johannes Bauer : > >> I dislike CAs as much as the next guy. But the problem of distributing >> trust is just not easy to solve, a TTP is a way out. Do you have an >> alternative that does not at the same time to providing a solution >> also opens up ob

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Chris Angelico
On Sat, May 23, 2015 at 11:01 PM, Steven D'Aprano wrote: > I'm not saying that it is impossible to have a correct Unicode implemention > using UTF-16, but I've never seen one. I suspect this is partly because, if you're aiming for correct Unicode semantics, UTF-8 offers everything that UTF-16 doe

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Steven D'Aprano
On Sat, 23 May 2015 10:33 pm, Thomas 'PointedEars' Lahn wrote: > If only characters were represented as sequences UTF-16 code units in > ECMAScript implementations like JavaScript, there would not be a problem > beyond the BMP; Are you being sarcastic? This is Rhino: js> var c = String.fromChar

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Marko Rauhamaa
Johannes Bauer : > I dislike CAs as much as the next guy. But the problem of distributing > trust is just not easy to solve, a TTP is a way out. Do you have an > alternative that does not at the same time to providing a solution > also opens up obvious attack surface? Here's an idea: an authentic

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Thomas 'PointedEars' Lahn
Chris Angelico wrote: > […] My hobby-horse, Unicode, is a notable flaw in many languages - if you > ask the user for information (in the most obvious way for whatever > environment you're in, be that via a web browser request, or a GUI widget, > or text entered at the console), can it cope equa

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Chris Angelico
On Sat, May 23, 2015 at 9:34 PM, Tim Chase wrote: > A self-signed certificate may be of minimal worth the *first* time you > visit a site, but if you return to the site, that initial > certificate's signature can be used to confirm that you're talking to > the same site you talked to previously.

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Tim Daneliuk
On 05/23/2015 01:55 AM, Johannes Bauer wrote: > On 23.05.2015 05:31, Michael Torrie wrote: > >> Sigh. I blame this as much on the browser. There's no inherent reason >> why a connection to a site secured with a self-signed certificate is >> insecure. > > The problem is *not* that the certificate

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Tim Daneliuk
On 05/22/2015 11:49 PM, Chris Angelico wrote: > When the information you're sharing is completely public, > there's no point taking the overhead of encryption. I disagree. With two different ways to access data, the metadata about when you do- and do not use an encrypted channel can be useful to

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Tim Chase
On 2015-05-23 11:10, Jon Ribbens wrote: > On 2015-05-23, Michael Torrie wrote: > > The same can be said of CA-signed certificates. > > I think you are falling into the trap of believing that all things > are either perfect or they are worthless. CAs aren't perfect, but > neither are they worthles

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Jon Ribbens
On 2015-05-23, Michael Torrie wrote: > On 05/22/2015 10:10 PM, Ian Kelly wrote: >> There is still some value in TLS with a self-signed certificate in >> that at least the connection is encrypted and can't be eavesdropped >> by an attacker who can only read the channel, but there is no >> assuranc

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Cecil Westerhof
Op Saturday 23 May 2015 11:12 CEST schreef Mark Lawrence: > On 22/05/2015 06:20, Cecil Westerhof wrote: >> I am looking into using ipython instead of bash. But when I call a >> python program from ipython PYTHONPATH is not set. So pythonscripts >> that need a module through PYTHONPATH will not wor

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Tim Daneliuk
On 05/22/2015 08:54 PM, Terry Reedy wrote: > On 5/22/2015 5:40 PM, Tim Daneliuk wrote: > >> Lo these many years ago, I argued that Python is a whole lot more than >> a programming language: >> >> https://www.tundraware.com/TechnicalNotes/Python-Is-Middleware/ > > Perhaps something at tundrawa

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Tim Daneliuk
On 05/22/2015 11:11 PM, amber wrote: > «» > > On 22/05/2015 21:40, Tim Daneliuk wrote: >>https://www.tundraware.com/TechnicalNotes/Python-Is-Middleware/ > Quoting that article > «And no, you couldn't get a C based OS to do what TPF does even if you > did have a couple hundred million dollars t

Re: need help with an accessibility prototype

2015-05-23 Thread Laura Creighton
In a message of Fri, 22 May 2015 23:31:19 -0700, Ned Deily writes: >Tcl/Tk 8.4 is quite old and no longer maintained; 8.6.x is current, >although 8.5.x is also still in use. > >http://www.tcl.tk/man/tcl8.6/TkCmd/keysyms.htm > > Ned Deily, > n...@acm.org Thank you Ned. Old bookmark from when I ne

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Mark Lawrence
On 22/05/2015 06:20, Cecil Westerhof wrote: I am looking into using ipython instead of bash. But when I call a python program from ipython PYTHONPATH is not set. So pythonscripts that need a module through PYTHONPATH will not work. I could do something like: !PYTHONPATH=~/Python/PythonLibra

Re: Extract email address from Java script in html source using python

2015-05-23 Thread Chris Angelico
On Sat, May 23, 2015 at 4:46 PM, savitha devi wrote: > I am developing a web scraper code using HTMLParser. I need to extract > text/email address from java script with in the HTMLCode.I am beginner level > in python coding and totally lost here. Need some help on this. The java > script code is a

Re: Camelot a good tool for me

2015-05-23 Thread Chris Angelico
On Sat, May 23, 2015 at 5:12 AM, Lele Gaifax wrote: > Chris Angelico writes: > >> SQLAlchemy has its uses, and it does solve a number of >> issues in reasonably clean ways, but I don't like a few of its facets, >> including its peculiar way of doing foreign key relationships. (You >> put a foreig

Extract email address from Java script in html source using python

2015-05-23 Thread savitha devi
I am developing a web scraper code using HTMLParser. I need to extract text/email address from java script with in the HTMLCode.I am beginner level in python coding and totally lost here. Need some help on this. The java script code is as below:

Re: Ah Python, you have spoiled me for all other languages

2015-05-23 Thread Johannes Bauer
On 23.05.2015 05:31, Michael Torrie wrote: > Sigh. I blame this as much on the browser. There's no inherent reason > why a connection to a site secured with a self-signed certificate is > insecure. The problem is *not* that the certificate is self-signed. It's that it's unknown previously to be