Re: Blog "about python 3"

2013-12-31 Thread Mark Lawrence
On 30/12/2013 22:38, Ethan Furman wrote: On 12/30/2013 01:29 PM, Mark Lawrence wrote: On 30/12/2013 20:49, Steven D'Aprano wrote: On Mon, 30 Dec 2013 19:41:44 +, Mark Lawrence wrote: http://alexgaynor.net/2013/dec/30/about-python-3/ may be of interest to some of you. I don't know whethe

Re: Python 2.x and 3.x usage survey

2013-12-31 Thread Mark Lawrence
On 30/12/2013 21:56, Dan Stromberg wrote: I keep hearing naysayers, nay saying about Python 3.x. Here's a 9 question, multiple choice survey I put together about Python 2.x use vs Python 3.x use. I'd be very pleased if you could take 5 or 10 minutes to fill it out. Here's the URL: https://www.

Re: Blog "about python 3"

2013-12-31 Thread Steven D'Aprano
Steven D'Aprano wrote: > On Mon, 30 Dec 2013 19:41:44 +, Mark Lawrence wrote: > >> http://alexgaynor.net/2013/dec/30/about-python-3/ may be of interest to >> some of you. [...] > I'd like to know where Alex gets the idea that the transition of Python 2 > to 3 was supposed to be a five year pl

Re: Blog "about python 3"

2013-12-31 Thread Steven D'Aprano
Mark Lawrence wrote: > http://blog.startifact.com/posts/alex-gaynor-on-python-3.html. I quote: "...perhaps a brave group of volunteers will stand up and fork Python 2, and take the incremental steps forward. This will have to remain just an idle suggestion, as I'm not volunteering myself." I ex

Re: Mailing list erraticness

2013-12-31 Thread Devin Jeanpierre
I can't tell from your email who the original author of the forwarded email is. :( On Mon, Dec 30, 2013 at 9:19 PM, Ethan Furman wrote: > More mailing list erraticness: > I see Ethan's comment on Devin but not Devin's post > Neither in GG nor in my email Nor on the archives: https://mail.python.

Re: Blog "about python 3"

2013-12-31 Thread Devin Jeanpierre
On Mon, Dec 30, 2013 at 2:38 PM, Ethan Furman wrote: > Wow -- another steaming pile! Mark, are you going for a record? ;) Indeed. Every post that disagrees with my opinion and understanding of the situation is complete BS and a conspiracy to spread fear, uncertainty, and doubt. Henceforth I wil

Fwd: Mailing list erraticness

2013-12-31 Thread Rustom Mody
On Tue, Dec 31, 2013 at 10:03 AM, Ethan Furman wrote: > On 12/30/2013 08:25 PM, Devin Jeanpierre wrote: >> >> On Mon, Dec 30, 2013 at 2:38 PM, Ethan Furman wrote: >>> >>> Wow -- another steaming pile! Mark, are you going for a record? ;) >> >> >> Indeed. Every post that disagrees with my opinio

Re: Python 2.x and 3.x usage survey

2013-12-31 Thread Steven D'Aprano
Mark Lawrence wrote: > On 30/12/2013 21:56, Dan Stromberg wrote: >> I keep hearing naysayers, nay saying about Python 3.x. >> >> Here's a 9 question, multiple choice survey I put together about >> Python 2.x use vs Python 3.x use. >> >> I'd be very pleased if you could take 5 or 10 minutes to fill

Re: Blog "about python 3"

2013-12-31 Thread Antoine Pitrou
Steven D'Aprano pearwood.info> writes: > > I expect that as excuses for not migrating get fewer, and the deadline for > Python 2.7 end-of-life starts to loom closer, more and more haters^W > Concerned People will whine about the lack of version 2.8 and ask for > *somebody else* to fork Python. >

PyImport_ImportModule(..) returns NULL

2013-12-31 Thread python satya
Hi, I am new to python, am trying to use embedding python API's in C,as below I have my python file test.py in "/var/tmp" path and trying to fetch objects and functions from python script as below, but PyImport_ImportModule("test") returning NULL always(instead adding /var/tmp path to s

Re: Python 2.x and 3.x usage survey

2013-12-31 Thread Roy Smith
In article <52c29782$0$29979$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: > Mark Lawrence wrote: > > > On 30/12/2013 21:56, Dan Stromberg wrote: > >> I keep hearing naysayers, nay saying about Python 3.x. > >> > >> Here's a 9 question, multiple choice survey I put together about

Re: Blog "about python 3"

2013-12-31 Thread Roy Smith
In article , Antoine Pitrou wrote: > Steven D'Aprano pearwood.info> writes: > > > > I expect that as excuses for not migrating get fewer, and the deadline for > > Python 2.7 end-of-life starts to loom closer, more and more haters^W > > Concerned People will whine about the lack of version 2.8

Re: Blog "about python 3"

2013-12-31 Thread Chris Angelico
On Wed, Jan 1, 2014 at 2:41 AM, Roy Smith wrote: > To be honest, the "perceived added value" in 3.x is pretty low for us. > What we're running now works. Switching to 3.x isn't going to increase > our monthly average users, or our retention rate, or decrease our COGS, > or increase our revenue.

Re: Blog "about python 3"

2013-12-31 Thread Mark Lawrence
On 31/12/2013 15:41, Roy Smith wrote: In article , Antoine Pitrou wrote: Steven D'Aprano pearwood.info> writes: I expect that as excuses for not migrating get fewer, and the deadline for Python 2.7 end-of-life starts to loom closer, more and more haters^W Concerned People will whine about

Python/Django Extract and append only new links

2013-12-31 Thread Max Cuban
I am putting together a project using Python 2.7 Django 1.5 on Windows 7. I believe this should be on the django group but I haven't had help from there so I figured I would try the python list I have the following view: views.py: def foo(): site = "http://www.foo.com/portal/jobs"; hdr =

looking for a quote on age and technology

2013-12-31 Thread Rustom Mody
There is a quote which I vaguely remember seeing on this list. It went something like this: (yeah my rendering is poor) For a new technology: If you are a kid when it comes out, you just take it as a matter of course If you are a young adult, then it becomes a hot topic for discussion If you

lookup xpath (other?) to value in html

2013-12-31 Thread Vincent Davis
I have a about 255 data fields that I am trying to verify on thousands of webpages. For example: value: 255,000 sqft: 1800 Since I have the correct answer for several pages I would like to lookup get the location (xpath?) of the data/field value in the page so that I can check other pages. An

What does --no-skip do in nose?

2013-12-31 Thread Roy Smith
Environment: Python 2.7.3 nose 1.3.0 Ubuntu 12.04 Linux I'm befuddled about how test skipping, and in particular, --no-skip, is supposed to work in nose. I've got a trivial test file: > from nose import SkipTest > def test_skip(): > raise SkipTest > assert 0 If I run this, it skip

Re: looking for a quote on age and technology

2013-12-31 Thread Joel Goldstick
On Tue, Dec 31, 2013 at 12:00 PM, Rustom Mody wrote: > There is a quote which I vaguely remember seeing on this list. > It went something like this: (yeah my rendering is poor) > > For a new technology: > If you are a kid when it comes out, you just take it as a matter of > course > If you ar

Re: looking for a quote on age and technology

2013-12-31 Thread Rustom Mody
On Tue, Dec 31, 2013 at 10:30 PM, Rustom Mody wrote: > There is a quote which I vaguely remember seeing on this list. > It went something like this: (yeah my rendering is poor) > > For a new technology: > If you are a kid when it comes out, you just take it as a matter of course > If you are a

Re: looking for a quote on age and technology

2013-12-31 Thread Gene Heskett
On Tuesday 31 December 2013 13:19:21 Joel Goldstick did opine: > On Tue, Dec 31, 2013 at 12:00 PM, Rustom Mody wrote: > > There is a quote which I vaguely remember seeing on this list. > > It went something like this: (yeah my rendering is poor) > > > > For a new technology: > > If you are a

Re: looking for a quote on age and technology

2013-12-31 Thread Rustom Mody
On Tue, Dec 31, 2013 at 10:40 PM, Joel Goldstick wrote: > > > On Tue, Dec 31, 2013 at 12:00 PM, Rustom Mody wrote: >> >> There is a quote which I vaguely remember seeing on this list. >> It went something like this: (yeah my rendering is poor) >> >> For a new technology: >> If you are a kid when

Re: What does --no-skip do in nose?

2013-12-31 Thread Chris Angelico
On Wed, Jan 1, 2014 at 4:49 AM, Roy Smith wrote: >> from nose import SkipTest >> def test_skip(): >> raise SkipTest >> assert 0 > > What's confusing is, if I use --no-skip, it STILL skips the test: > I don't know nosetests, but I'm fairly sure it's not going to be mangling the Python lang

Re: lookup xpath (other?) to value in html

2013-12-31 Thread Jason Friedman
> I have a about 255 data fields that I am trying to verify on thousands of > webpages. > For example: > value: 255,000 > sqft: 1800 > > Since I have the correct answer for several pages I would like to lookup get > the location (xpath?) of the data/field value in the page so that I can > chec

Re: What does --no-skip do in nose?

2013-12-31 Thread Ned Batchelder
On 12/31/13 12:49 PM, Roy Smith wrote: Environment: Python 2.7.3 nose 1.3.0 Ubuntu 12.04 Linux I'm befuddled about how test skipping, and in particular, --no-skip, is supposed to work in nose. I've got a trivial test file: from nose import SkipTest def test_skip(): raise SkipTes

Re: [sqlite] Happy New Year

2013-12-31 Thread Ryan Finnesey
Happy New Year to you as well. Sent from my iPad > On Dec 31, 2013, at 7:46 PM, "Igor Korot" wrote: > > Hi, ALL, > I want to wish everybody who is reading and involved with the list > Happy and oyful New Year! > Let's have a great time in it and lets make a lot of good products and > new relea

Re: lookup xpath (other?) to value in html

2013-12-31 Thread Vincent Davis
> > I'm not sure what you are looking for. Do you have a sample web page, > and can you show us the output you'd like to see from that webpage? > Have you looked at http://www.crummy.com/software/BeautifulSoup/? For example this URL; http://jeffco.us/ats/displaygeneral.do?sch=001690 The the land

Re: lookup xpath (other?) to value in html

2013-12-31 Thread Jason Friedman
> For example this URL; > http://jeffco.us/ats/displaygeneral.do?sch=001690 > The the land sqft is 11082. > Google Chrome gives me the xpath to that data as; > //*[@id="content"]/p[1]/table[4]/tbody/tr[2]/td[8] > > What I would like to do (using python) is given 11082 at what xpath can that > be fo

PySerial for Python 2 vs. Python 3

2013-12-31 Thread Travis McGee
I've been working with a simple serial device that attaches to a USB port. It takes as commands short strings. I wanted to use PySerial under Python 3, and, of course had the Devil's own time getting it installed and working since everything is geared towards Python 2. Anyway, I finally got

Re: PySerial for Python 2 vs. Python 3

2013-12-31 Thread Devin Jeanpierre
On Tue, Dec 31, 2013 at 10:39 PM, Travis McGee wrote: > Anyway, I finally got it installed, but when I try to use a statement of the > sort ser.write("string") I get an exception which seems to imply that the > argument needs to be an integer, rather than a string. You will get the most help if y

Re: PySerial for Python 2 vs. Python 3

2013-12-31 Thread Chris Angelico
On Wed, Jan 1, 2014 at 5:39 PM, Travis McGee wrote: > Anyway, I finally got it installed, but when I try to use a statement of the > sort ser.write("string") I get an exception which seems to imply that the > argument needs to be an integer, rather than a string. Quoting the full exception would

Re: lookup xpath (other?) to value in html

2013-12-31 Thread Vincent Davis
> > Which Chrome extension are you using to get that path? Built in, right click on source > copy xpath​​ Ya that gets square footage and I like how you did it, are you interested in doing that for all information on the page and also the historical pages ;-) Since I have the data for some of the

Re: PySerial for Python 2 vs. Python 3

2013-12-31 Thread Steven D'Aprano
Travis McGee wrote: > I've been working with a simple serial device that attaches to a USB > port. It takes as commands short strings. > > I wanted to use PySerial under Python 3, and, of course had the Devil's > own time getting it installed and working since everything is geared > towards Pytho