help you download youtube videos in any format and watch later

2014-12-01 Thread marishjaskitons
I suppose the possibilities of Youtube Downloader Application are really exciting. We get along like oil and water. This begs the question, because of this, Free Youtube Downloader for Android still uses it today. I may have to reveal that I dislike Youtube Downloader for Android software. It may s

Re: Python and GUI development

2014-12-01 Thread Michael Torrie
On 12/01/2014 08:49 PM, Ganesh Pal wrote: > Thanks for the bunch of suggestion , I have decided to go with PYQt for > now : ) If the licensing of PyQt is not appropriate for you (it's GPL only, unless you buy a license), you can use PySide, which is almost a drop-in replacement for it, that's li

Re: Python and GUI development

2014-12-01 Thread Ganesh Pal
Thanks for the bunch of suggestion , I have decided to go with PYQt for now : ) On Tue, Dec 2, 2014 at 4:13 AM, Rod Person wrote: > On Mon, 1 Dec 2014 23:13:32 +1100 > Chris Angelico wrote: > > > On Mon, Dec 1, 2014 at 10:55 PM, Ganesh Pal > > wrote: > > > Hi folks, > > > > > > I want to des

Re: Cherrypy - prevent browser "prefetch"?

2014-12-01 Thread Tim Chase
On 2014-12-01 13:14, Israel Brewster wrote: > On Dec 1, 2014, at 12:50 PM, Ned Batchelder >> The way to indicate to a browser that it shouldn't pre-fetch a >> URL is to make it a POST request. > > Ok, that makes sense. The only difficulty I have with that answer > is that to the best of my knowle

Re: How about some syntactic sugar for " __name__ == '__main__' "?

2014-12-01 Thread Chris Angelico
On Tue, Dec 2, 2014 at 11:45 AM, Ethan Furman wrote: > Put the above somewhere in your path (e.g. /usr/local/bin), make it > executable, and then instead of shebanging your > scripts with `/usr/local/bin/python` you can use `/usr/local/bin/py_main`, > which will load and execute the script, > ca

Re: How about some syntactic sugar for " __name__ == '__main__' "?

2014-12-01 Thread Ethan Furman
On 12/01/2014 03:19 PM, Ethan Furman wrote: > > Well, I've tried this out, and it's only okay. As soon as interesting things > start happening, spurious errors about > thread IDs start printing, which really messes up the user experience [...] So here's another thought: Have a small python sc

Re: How about some syntactic sugar for " __name__ == '__main__' "?

2014-12-01 Thread Ethan Furman
On 11/13/2014 10:32 AM, Ethan Furman wrote: > On 11/12/2014 01:51 PM, Ian Kelly wrote: >> On Wed, Nov 12, 2014 at 2:33 PM, Chris Kaynor wrote: >>> >>> A decorator is an interesting idea, and should be easy to implement (only >>> lightly tested): >>> >>> def main(func): >>> if func.__module__ =

Re: ssl error with the python mac binary

2014-12-01 Thread Paul Wiseman
On 1 December 2014 at 22:59, Ned Deily wrote: > In article > , > Paul Wiseman wrote: > > I just gave 2.7.9rc1 a go and seems like it is still linked to the same > > version of openssl? > > Yes, it still is for rc1. Unfortunately, I was not able to get > everything done in time for rc1 and I di

Re: ssl error with the python mac binary

2014-12-01 Thread Ned Deily
In article , Paul Wiseman wrote: > I just gave 2.7.9rc1 a go and seems like it is still linked to the same > version of openssl? Yes, it still is for rc1. Unfortunately, I was not able to get everything done in time for rc1 and I didn't want to hold up rc1's release as there are a lot of oth

Re: Python and GUI development

2014-12-01 Thread Rod Person
On Mon, 1 Dec 2014 23:13:32 +1100 Chris Angelico wrote: > On Mon, Dec 1, 2014 at 10:55 PM, Ganesh Pal > wrote: > > Hi folks, > > > > I want to design a GUI interface for my project . I wanted it to > > use it Python and it has to work on freebsd . Please > > provide me the latest trends fo

Re: Cherrypy - prevent browser "prefetch"?

2014-12-01 Thread Israel Brewster
On Dec 1, 2014, at 1:12 PM, Tim Chase wrote: > On 2014-12-01 16:50, Ned Batchelder wrote: >> On 12/1/14 4:26 PM, Tim Chase wrote: >>> All this to also say that performing non-idempotent actions on a >>> GET request is just begging for trouble. ;-) >> >> This is the key point: your web applicatio

Re: Cherrypy - prevent browser "prefetch"?

2014-12-01 Thread Israel Brewster
On Dec 1, 2014, at 12:50 PM, Ned Batchelder wrote: > On 12/1/14 4:26 PM, Tim Chase wrote: >> On 2014-12-01 11:28, Israel Brewster wrote: >>> I don't know if this is a cherrypy specific question (although it >>> will be implemented in cherrypy for sure), or more of a general >>> http protocol ques

Re: Cherrypy - prevent browser "prefetch"?

2014-12-01 Thread Tim Chase
On 2014-12-01 16:50, Ned Batchelder wrote: > On 12/1/14 4:26 PM, Tim Chase wrote: >> All this to also say that performing non-idempotent actions on a >> GET request is just begging for trouble. ;-) > > This is the key point: your web application shouldn't be doing > these kinds of actions in respo

Re: Cherrypy - prevent browser "prefetch"?

2014-12-01 Thread Tim Chase
On 2014-12-01 22:44, Christoph M. Becker wrote: > Tim Chase wrote: > > haven't investigated recently, but I remember Django's ability to > > trigger a log-out merely via a GET was something that irked me. > > > > All this to also say that performing non-idempotent actions on a > > GET request is j

Re: Cherrypy - prevent browser "prefetch"?

2014-12-01 Thread Ned Batchelder
On 12/1/14 4:26 PM, Tim Chase wrote: On 2014-12-01 11:28, Israel Brewster wrote: I don't know if this is a cherrypy specific question (although it will be implemented in cherrypy for sure), or more of a general http protocol question, but when using cherrypy to serve a web app, is there anyway t

Re: Cherrypy - prevent browser "prefetch"?

2014-12-01 Thread Christoph M. Becker
Tim Chase wrote: > I > haven't investigated recently, but I remember Django's ability to > trigger a log-out merely via a GET was something that irked me. > > All this to also say that performing non-idempotent actions on a GET > request is just begging for trouble. ;-) ACK. However, isn't log-

Re: Cherrypy - prevent browser "prefetch"?

2014-12-01 Thread Tim Chase
On 2014-12-01 11:28, Israel Brewster wrote: > I don't know if this is a cherrypy specific question (although it > will be implemented in cherrypy for sure), or more of a general > http protocol question, but when using cherrypy to serve a web app, > is there anyway to prevent browser prefetch? I'm

Re: Cherrypy - prevent browser "prefetch"?

2014-12-01 Thread sohcahtoa82
On Monday, December 1, 2014 12:29:04 PM UTC-8, Israel Brewster wrote: > I don't know if this is a cherrypy specific question (although it will be > implemented in cherrypy for sure), or more of a general http protocol > question, but when using cherrypy to serve a web app, is there anyway to > p

Re: Python and GUI development

2014-12-01 Thread Ben Finney
Ganesh Pal writes: > I want to design a GUI interface for my project . I wanted it to use it > Python and it has to work on freebsd . Please provide me the latest > trends for GUI development with python. A good starting point https://wiki.python.org/moin/GuiProgramming>. -- \ “Tr

Cherrypy - prevent browser "prefetch"?

2014-12-01 Thread Israel Brewster
I don't know if this is a cherrypy specific question (although it will be implemented in cherrypy for sure), or more of a general http protocol question, but when using cherrypy to serve a web app, is there anyway to prevent browser prefetch? I'm running to a problem, specifically from Safari on th

Re: Python and GUI development

2014-12-01 Thread Patrick Stinson
I’ve been using PyQt for 10 years. Absolutely fabulous, fun, and I imagine the others are also excellent as they have all been around long enough to die naturally if they were not very useful. > On Dec 1, 2014, at 3:13 AM, Chris Angelico wrote: > > On Mon, Dec 1, 2014 at 10:55 PM, Ganesh Pal

i have to create this patch in python but wasnt having any luck i was wondering if anyone had a solution?

2014-12-01 Thread python help required
def penultimatePatch(): win = GraphWin("Patch1",(100), 100) amountOfCircles = 5 #Filled Red Circles fillCircle = Circle(Point(20,20)+100/amountOfCircles) fillCircle.draw(win) fillCircle.setFill("red") #Verticle white rectangles rectangleVerticle1 = Rectangle(Point

Re: Invalid Syntax Installing pip - ez_setup.py

2014-12-01 Thread Billy Furlong
Success. Whats happening is that the second wget command is not recognizing the --no-check-certificate. So I went around the problem and installed it manually. wget https://pypi.python.org/packages/source/s/setuptools/setuptools-7.0.zip --no-check-certificate unzip setuptools-7.0.zip python2.7

Re: Need Help

2014-12-01 Thread Fabio Zadrozny
On Mon, Dec 1, 2014 at 11:05 AM, Ezhilarasan Chandrasekar < aezhi...@gmail.com> wrote: > Hi Guys, > > I'm a beginner of python, I just want your help. > > I'm using the Python in Pydev - Eclipse. > > How can I get the Failure values from the Console in to a txt or a csv > file? > > And how can I g

Re: Setting default_factory of defaultdict to key

2014-12-01 Thread Ian Kelly
On Mon, Dec 1, 2014 at 11:29 AM, Larry Martell wrote: > I spoke too soon: > class defaultdictkey(defaultdict): > ... def __missing__(self, key): > ... self[key] = self.default_factory(key) > ... x = defaultdictkey(lambda k: k) print x['aaa'] > None print x['aaa'] > aaa

Re: Setting default_factory of defaultdict to key

2014-12-01 Thread Larry Martell
On Mon, Dec 1, 2014 at 1:36 PM, Ethan Furman wrote: > On 12/01/2014 10:29 AM, Larry Martell wrote: >> On Mon, Dec 1, 2014 at 1:19 PM, Ethan Furman wrote: >>> On 12/01/2014 10:05 AM, Larry Martell wrote: Is there a way to set the default_factory of defaultdict so that accesses to un

Re: Setting default_factory of defaultdict to key

2014-12-01 Thread Ethan Furman
On 12/01/2014 10:29 AM, Larry Martell wrote: > On Mon, Dec 1, 2014 at 1:19 PM, Ethan Furman wrote: >> On 12/01/2014 10:05 AM, Larry Martell wrote: >>> >>> Is there a way to set the default_factory of defaultdict so that >>> accesses to undefined keys get to set to the key? >> >> You need to subcla

Re: Setting default_factory of defaultdict to key

2014-12-01 Thread Tim Chase
On 2014-12-01 13:05, Larry Martell wrote: > Is there a way to set the default_factory of defaultdict so that > accesses to undefined keys get to set to the key? > > i.e. if d['xxx'] were accessed and there was no key 'xxx' then > d['xxx'] would get set to 'xxx' > > I know I can define a function

Re: Setting default_factory of defaultdict to key

2014-12-01 Thread Larry Martell
On Mon, Dec 1, 2014 at 1:19 PM, Ethan Furman wrote: > On 12/01/2014 10:05 AM, Larry Martell wrote: >> >> Is there a way to set the default_factory of defaultdict so that >> accesses to undefined keys get to set to the key? > > You need to subclass and modify __missing__ to actually pass along the

Re: Setting default_factory of defaultdict to key

2014-12-01 Thread Larry Martell
On Mon, Dec 1, 2014 at 1:19 PM, Ethan Furman wrote: > On 12/01/2014 10:05 AM, Larry Martell wrote: >> >> Is there a way to set the default_factory of defaultdict so that >> accesses to undefined keys get to set to the key? > > You need to subclass and modify __missing__ to actually pass along the

Re: Invalid Syntax Installing pip - ez_setup.py

2014-12-01 Thread Billy Furlong
Hi Chris, Yep that got me closer. I found that using | sudo python2.7 was a bad command. So I changed over to | python2.7. [root@myserver tmp]# wget https://bootstrap.pypa.io/ez_setup.py --no-check-certificate -O - | python2.7 --2014-12-01 12:57:07-- https://bootstrap.pypa.io/ez_setup.py Re

Re: Setting default_factory of defaultdict to key

2014-12-01 Thread Ethan Furman
On 12/01/2014 10:05 AM, Larry Martell wrote: > > Is there a way to set the default_factory of defaultdict so that > accesses to undefined keys get to set to the key? You need to subclass and modify __missing__ to actually pass along the key: --> class defaultdictkey(defaultdict): ... def __miss

Re: Setting default_factory of defaultdict to key

2014-12-01 Thread Ian Kelly
On Mon, Dec 1, 2014 at 11:05 AM, Larry Martell wrote: > Is there a way to set the default_factory of defaultdict so that > accesses to undefined keys get to set to the key? > > i.e. if d['xxx'] were accessed and there was no key 'xxx' then > d['xxx'] would get set to 'xxx' > > I know I can define

Setting default_factory of defaultdict to key

2014-12-01 Thread Larry Martell
Is there a way to set the default_factory of defaultdict so that accesses to undefined keys get to set to the key? i.e. if d['xxx'] were accessed and there was no key 'xxx' then d['xxx'] would get set to 'xxx' I know I can define a function with lambda for the default_factory, but I don't see how

Re: Invalid Syntax Installing pip - ez_setup.py

2014-12-01 Thread Chris Angelico
On Tue, Dec 2, 2014 at 3:58 AM, wrote: > Getting an error when I try to install ez_setup.py. I thought that this was > an issues with an incorrect version of python, so I upgraded to 2.7.5 > successfully. But unfortunately I get the same error. > > > File "", line 51 > with archive_cont

Invalid Syntax Installing pip - ez_setup.py

2014-12-01 Thread billyfurlong
Hi all, Getting an error when I try to install ez_setup.py. I thought that this was an issues with an incorrect version of python, so I upgraded to 2.7.5 successfully. But unfortunately I get the same error. [root@yyboxname tmp]# wget https://bootstrap.pypa.io/ez_setup.py --no-check-certifi

Re: Issues installing Python 2.7

2014-12-01 Thread Chris Angelico
On Tue, Dec 2, 2014 at 3:40 AM, wrote: > This actually worked!! It's a bare machine with nothing (except the system) > using python. Good to know! But, uhh... *what* actually worked? You've posted with no content, so we have no idea which of the several suggestions in this thread worked - and,

Re: Issues installing Python 2.7

2014-12-01 Thread billyfurlong
This actually worked!! It's a bare machine with nothing (except the system) using python. -- https://mail.python.org/mailman/listinfo/python-list

Re: Fwd: Need Help

2014-12-01 Thread alister
On Mon, 01 Dec 2014 18:41:27 +0530, Ezhilarasan Chandrasekar wrote: > Hi Guys, > > I'm a beginner of python, I just want your help. > > I'm using the Python in Pydev - Eclipse. > > How can I get the Failure values from the Console in to a txt or a csv > file? > > And how can I get the final re

Re: Read response XML attributes in django rest framework

2014-12-01 Thread Roy Smith
In article <1248a112-88fd-4346-a733-7716671b8...@googlegroups.com>, reetesh nigam wrote: > I need to read xml attributes coming in response data. I am using Django rest > framework. > > requested XML : startDate="02-02-2014"/> > > Response I am getting: {'xyz': None} > > I am using : 'DEFA

Fwd: Need Help

2014-12-01 Thread Ezhilarasan Chandrasekar
Hi Guys, I'm a beginner of python, I just want your help. I'm using the Python in Pydev - Eclipse. How can I get the Failure values from the Console in to a txt or a csv file? And how can I get the final result of the TC (lets say, OK or FAIL or ERROR)? So that If I'm working with 1000 Test ca

Need Help

2014-12-01 Thread Ezhilarasan Chandrasekar
Hi Guys, I'm a beginner of python, I just want your help. I'm using the Python in Pydev - Eclipse. How can I get the Failure values from the Console in to a txt or a csv file? And how can I get the final result of the TC (lets say, OK or FAIL or ERROR)? So that If I'm working with 1000 Test ca

Re: Python and GUI development

2014-12-01 Thread Chris Angelico
On Mon, Dec 1, 2014 at 10:55 PM, Ganesh Pal wrote: > Hi folks, > > I want to design a GUI interface for my project . I wanted it to use it > Python and it has to work on freebsd . Please provide me the latest > trends for GUI development with python. > > Regard s > Ganesh There are lots of

Python and GUI development

2014-12-01 Thread Ganesh Pal
Hi folks, I want to design a GUI interface for my project . I wanted it to use it Python and it has to work on freebsd . Please provide me the latest trends for GUI development with python. Regard s Ganesh -- https://mail.python.org/mailman/listinfo/python-list

Re: ssl error with the python mac binary

2014-12-01 Thread Paul Wiseman
On 10 November 2014 at 22:51, Ned Deily wrote: > In article > , > Paul Wiseman wrote: > > I've been using the latest mac ppc/i386 binaries from python.org > > (https://www.python.org/ftp/python/2.7.8/python-2.7.8-macosx10.5.dmg). > > From what I can tell this version is linked against a pretty

Read response XML attributes in django rest framework

2014-12-01 Thread reetesh nigam
I need to read xml attributes coming in response data. I am using Django rest framework. requested XML : Response I am getting: {'xyz': None} I am using : 'DEFAULT_PARSER_CLASSES': ('rest_framework.parsers.XMLParser') in my setting.py file -- https://mail.python.org/mailman/listinfo/python-

I need Help

2014-12-01 Thread Ezhilarasan Chandrasekar
Hi Python-list Team, I'm a beginner of python, I just want your help. I'm using the Python in Pydev - Eclipse. How can I get the Failure values from the Console in to a txt or a csv file? And how can I get the final result of the TC (lets say, OK or FAIL or ERROR)? So that If I'm working with