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

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:

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 plan. As

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

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 et...@stoneleaf.us 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:

Re: Blog about python 3

2013-12-31 Thread Devin Jeanpierre
On Mon, Dec 30, 2013 at 2:38 PM, Ethan Furman et...@stoneleaf.us 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

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

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 it out.

Re: Blog about python 3

2013-12-31 Thread Antoine Pitrou
Steven D'Aprano steve+comp.lang.python at 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

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

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 steve+comp.lang.pyt...@pearwood.info 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

Re: Blog about python 3

2013-12-31 Thread Roy Smith
In article mailman.4753.1388499265.18130.python-l...@python.org, Antoine Pitrou solip...@pitrou.net wrote: Steven D'Aprano steve+comp.lang.python at 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

Re: Blog about python 3

2013-12-31 Thread Chris Angelico
On Wed, Jan 1, 2014 at 2:41 AM, Roy Smith r...@panix.com 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

Re: Blog about python 3

2013-12-31 Thread Mark Lawrence
On 31/12/2013 15:41, Roy Smith wrote: In article mailman.4753.1388499265.18130.python-l...@python.org, Antoine Pitrou solip...@pitrou.net wrote: Steven D'Aprano steve+comp.lang.python at pearwood.info writes: I expect that as excuses for not migrating get fewer, and the deadline for Python

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

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.

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 skips

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 rustompm...@gmail.com 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

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 rustompm...@gmail.com 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

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 rustompm...@gmail.com 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

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 rustompm...@gmail.com 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: What does --no-skip do in nose?

2013-12-31 Thread Chris Angelico
On Wed, Jan 1, 2014 at 4:49 AM, Roy Smith r...@panix.com 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

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

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

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 ikoro...@gmail.com 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

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 found? (may

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 nob...@gmail.com 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

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 nob...@gmail.com 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

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 Python 2.

[issue20099] a new idea

2013-12-31 Thread Liam Marsh
New submission from Liam Marsh: idea: var(): input var name (str), outputs var value useful for(example in a chess program): count=1 while count=8: ...var('a', count)='black queen' ...count=count+1 -- messages: 207118 nosy: Liam.Marsh priority: normal severity: normal status:

[issue20099] a new idea

2013-12-31 Thread Ezio Melotti
Ezio Melotti added the comment: You should propose this to the python-ideas mailing list, but from your description is not clear to me what you want. Can you try to explain it more in detail? Are you asking for a new function that accepts the name of a variable as a string and prints its

[issue20095] what is that result!?

2013-12-31 Thread Mark Dickinson
Mark Dickinson added the comment: can you add an approximation of the result in the command? I don't really understand what you're asking here. If you're asking for the behaviour of multiplication to change so that it becomes more do-what-I-mean-ish, that's not going to happen. You could

[issue20100] epoll docs are not clear with regards to CLOEXEC.

2013-12-31 Thread R. David Murray
New submission from R. David Murray: http://docs.python.org/dev/library/select.html#select.epoll documents the EPOLL_CLOEXEC flag as something you can specify that makes the file descriptor be closed on exec. But then it goes on to say that the file descriptor is non-inheritable. So is the

[issue20095] what is that result!?

2013-12-31 Thread Tim Peters
Tim Peters added the comment: @Liam, try using the decimal module instead. That follows rules much like the ones people learn as kids. from decimal import Decimal as D D(0.1) * 3 # decimal results are computed exactly Decimal('0.3') D(1.01) - D(.01) # number of significant digits is

[issue20099] a new idea

2013-12-31 Thread Liam Marsh
Liam Marsh added the comment: first, it was for the second idea, which can be replaced, but maybe sameone needs it, when you reed theese lines, this idea is sent. meen while, have a happy new year. -- status: pending - open ___ Python tracker

[issue20100] epoll docs are not clear with regards to CLOEXEC.

2013-12-31 Thread STINNER Victor
STINNER Victor added the comment: Use os.set_inheritable(epoll.fileno(), True) to make the file descriptor inheritable. You should find this info easily if you follow the link on non inheritable in epoll documentation. EPOLL_CLOEXEC becomes useless in Python 3.4. It is used internally by

[issue20101] Determine correct behavior for time functions on Windows

2013-12-31 Thread Zachary Ware
New submission from Zachary Ware: For previous discussion, see issue1. To summarize, time on Windows is far from straight-forward, and currently for t1 = time.monotonic() time.sleep(0.5) t2 = time.monotonic() dt = t2-t1 dt may end up as very slightly smaller than 0.5 (0.499003017485

[issue3982] support .format for bytes

2013-12-31 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3982 ___ ___ Python-bugs-list

[issue3982] support .format for bytes

2013-12-31 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3982 ___ ___

[issue20096] Mention modernize and future in Python 2/3 porting HOWTO

2013-12-31 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20096 ___ ___ Python-bugs-list

[issue20065] Python-3.3.3/Modules/socketmodule.c:1660:14: error: 'CAN_RAW' undeclared (first use in this function)

2013-12-31 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Revision e767318baccd introduced usage of CAN_RAW. -- keywords: +3.3regression nosy: +Arfrever, neologix, pitrou versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org

[issue6135] subprocess seems to use local encoding and give no choice

2013-12-31 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6135 ___ ___ Python-bugs-list

[issue19714] Add tests for importlib.machinery.WindowsRegistryFinder

2013-12-31 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +vajrasky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19714 ___ ___ Python-bugs-list mailing

[issue20055] On Windows NT 6 with administrator account, there are two failing tests on test_shutil.py

2013-12-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0f888589dbcd by Antoine Pitrou in branch '3.3': Issue #20055: Fix test_shutil under Windows with symlink privileges held. http://hg.python.org/cpython/rev/0f888589dbcd New changeset 6fd3d473e1c2 by Antoine Pitrou in branch 'default': Issue #20055:

[issue20055] On Windows NT 6 with administrator account, there are two failing tests on test_shutil.py

2013-12-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Pushed, thank you! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20055

[issue20099] a new idea

2013-12-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: This isn't a bug, please use https://mail.python.org/mailman/listinfo/python-ideas if you want to propose ideas. -- nosy: +pitrou resolution: - invalid stage: - committed/rejected status: open - closed ___ Python

[issue1346238] A constant folding optimization pass for the AST

2013-12-31 Thread Paul Sokolovsky
Paul Sokolovsky added the comment: 8 years after the original patch, there's still no trivial constant folding in bytecode generated (because peephole of course is not a real optimizer to consistently catch all cases): $ cat const.py FOO = 1 BAR = FOO + 2 + 4 $ python --version Python 2.7.3