Re: New to Python - block grouping (spaces)

2015-04-15 Thread Paul Rubin
Steven D'Aprano writes: > I'm aware that Coffeescript provides a brace-free wrapper around Javascript; > I'm not aware of any wrapper that *adds* braces to a language without them. You're not old enough to remember Ratfor ;-) -- https://mail.python.org/mailman/listinfo/python-list

Re: New to Python - block grouping (spaces)

2015-04-15 Thread Steven D'Aprano
On Thursday 16 April 2015 14:07, Blake McBride wrote: > Greetings, > > I am new to Python. I am sorry for beating what is probably a dead horse > but I checked the net and couldn't find the answer to my question. > > I like a lot of what I've seen in Python, however, after 35 years and > probab

Re: New to Python - block grouping (spaces)

2015-04-15 Thread Chris Angelico
On Thu, Apr 16, 2015 at 2:07 PM, Blake McBride wrote: > I like a lot of what I've seen in Python, however, after 35 years and > probably a dozen languages under my belt, I very strongly disagree with the > notion of using white space to delimit blocks. Not wanting to beat what I > believe is p

Re: New to Python - block grouping (spaces)

2015-04-15 Thread Paul Rubin
Blake McBride writes: > probably a dozen languages under my belt, I very strongly disagree > with the notion of using white space to delimit blocks. I suggest giving it a try before deciding something like that. I don't guarantee you'll come around, but a lot of people decide after a while that

Re: find all multiplicands and multipliers for a number

2015-04-15 Thread Rustom Mody
On Wednesday, April 15, 2015 at 8:07:31 AM UTC+5:30, Paul Rubin wrote: > Steven D'Aprano writes: > > primes = sieve [2..] > > sieve (p : xs) = p : sieve [x | x <- xs, x `mod` p > 0] > > In her paper http://www.cs.hmc.edu/~oneill/papers/Sieve-JFP.pdf, Melissa > > O'Neill calls this the "Slei

New to Python - block grouping (spaces)

2015-04-15 Thread Blake McBride
Greetings, I am new to Python. I am sorry for beating what is probably a dead horse but I checked the net and couldn't find the answer to my question. I like a lot of what I've seen in Python, however, after 35 years and probably a dozen languages under my belt, I very strongly disagree with t

Re: xlwt 1.0.0 released!

2015-04-15 Thread Mirage Web Studio
On 2015-04-16 4:55 AM, Tim Chase wrote: On 2015-04-15 15:21, Gary Herron wrote: On 04/15/2015 02:51 PM, Chris Withers wrote: I'm pleased to announce the release of xlwt 1.0.0. What a curiously incomplete announcement. Could you tell us what xlwt is? I see no hint here. Heh, this and its si

Re: xlwt 1.0.0 released!

2015-04-15 Thread Tim Chase
On 2015-04-15 15:21, Gary Herron wrote: > On 04/15/2015 02:51 PM, Chris Withers wrote: > > I'm pleased to announce the release of xlwt 1.0.0. > > What a curiously incomplete announcement. Could you tell us what > xlwt is? I see no hint here. Heh, this and its sibling package, xlrd, are Python p

Re: xlwt 1.0.0 released!

2015-04-15 Thread Steven D'Aprano
On Thu, 16 Apr 2015 08:21 am, Gary Herron wrote: > On 04/15/2015 02:51 PM, Chris Withers wrote: >> Hi All, >> >> I'm pleased to announce the release of xlwt 1.0.0. > > What a curiously incomplete announcement. Could you tell us what xlwt > is? I see no hint here. Perhaps you stopped reading to

Re: xlwt 1.0.0 released!

2015-04-15 Thread Gary Herron
On 04/15/2015 02:51 PM, Chris Withers wrote: Hi All, I'm pleased to announce the release of xlwt 1.0.0. What a curiously incomplete announcement. Could you tell us what xlwt is? I see no hint here. Gary Herron This release contains the following: - Python 3 support. - An initial set

Re: ctypes: using .value or .value() doesn't work for c_long

2015-04-15 Thread ethansmithoakland
Thanks so much! Btw (face-palm) Dave, I know dir(), I probably should have used it here, I just read that the return type was a c_long, and I didn't know that LP_c_long was a pointer. Thanks to you both! -- https://mail.python.org/mailman/listinfo/python-list

xlwt 1.0.0 released!

2015-04-15 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlwt 1.0.0. This release contains the following: - Python 3 support. - An initial set of unit tests. - An initial set of Sphinx documentation. - Move to setuptools for packaging. - Wire up Travis, Coveralls and ReadTheDocs. - Allow longs as ro

Re: ctypes: using .value or .value() doesn't work for c_long

2015-04-15 Thread Dave Angel
On 04/15/2015 03:48 PM, IronManMark20 wrote: I am using ctypes to call a few windll funcions. One of them returns a c_long object. I want to know what number the function returns. Problem is, when I try foo.value , it gives me this: AttributeError: LP_c_long object has no attribute value. Any

Re: ctypes: using .value or .value() doesn't work for c_long

2015-04-15 Thread Ian Kelly
On Wed, Apr 15, 2015 at 1:48 PM, IronManMark20 wrote: > I am using ctypes to call a few windll funcions. One of them returns a c_long > object. I want to know what number the function returns. > > Problem is, when I try foo.value , it gives me this: > > AttributeError: LP_c_long object has no att

Re: Installing Python

2015-04-15 Thread Ned Deily
In article <4048ad0c-a403-4141-ab8b-5884a0084...@gildawson.com>, Gil Dawson wrote: > Hi-- > > I'm on MacOS 10.6.8, learning to use Amazon Web Services' Simple Storage > Service's Command Line Interface (AWS S3 CLI). > > They say in their documentation that their CLI needs Python version 2.7 o

Re: Please use the Python Job Board

2015-04-15 Thread Paul Rubin
Ben Finney writes: > nagaraju thoudoju writes:> >> Please find the requirement below > use the Python Job Board ... which is designed for this purpose. It wasn't a Python job from what I could tell. It was just spam. I don't think the Python job board was designed for that. -- https://mail.p

Re: Please use the Python Job Board (was: Immediate Hire: ETL Developers - Boise, Idaho)

2015-04-15 Thread Skip Montanaro
On Wed, Apr 15, 2015 at 2:48 PM, Ben Finney wrote: > nagaraju thoudoju writes: > >> Please find the requirement below and let me know you interest on this >> position > > Please do not post recruitment messages here. He would have been rejected there as well. I saw nothing which looked obviously

Re: Searching the archives

2015-04-15 Thread Ben Finney
Gil Dawson writes: > This is my first message to this list. I just signed on. Welcome! > How do you search the archives? The forum is archived in numerous places. The complete set of forums is at http://mail.python.org/>, for example this one is at https://mail.python.org/mailman/listinfo/pyt

ctypes: using .value or .value() doesn't work for c_long

2015-04-15 Thread IronManMark20
I am using ctypes to call a few windll funcions. One of them returns a c_long object. I want to know what number the function returns. Problem is, when I try foo.value , it gives me this: AttributeError: LP_c_long object has no attribute value. Any idea of what could cause this? -- https://ma

Please use the Python Job Board (was: Immediate Hire: ETL Developers - Boise, Idaho)

2015-04-15 Thread Ben Finney
nagaraju thoudoju writes: > Please find the requirement below and let me know you interest on this > position Please do not post recruitment messages here. Instead, use the Python Job Board https://www.python.org/jobs/> which is designed for this purpose. -- \ “The Vatican is not a sta

Re: Searching the archives

2015-04-15 Thread Tim Golden
On 15/04/2015 19:47, Gil Dawson wrote: Hi-- I'm new here. How do you search the archives? --Gil There's nothing builtin to mailman (v 2.x which we're using). You've got a few options: * Use Google (or whatever engine) with site:, eg: https://www.google.co.uk/search?q=site:mail.python.or

Installing Python

2015-04-15 Thread Gil Dawson
Hi-- I'm on MacOS 10.6.8, learning to use Amazon Web Services' Simple Storage Service's Command Line Interface (AWS S3 CLI). They say in their documentation that their CLI needs Python version 2.7 or 3.4. I checked in terminal: $ python --version Python 2.6.1 So I ran the python-2.7.9-macosx

Searching the archives

2015-04-15 Thread Gil Dawson
Hi-- I'm new here. How do you search the archives? --Gil -- https://mail.python.org/mailman/listinfo/python-list

Re: find all multiplicands and multipliers for a number

2015-04-15 Thread Paul Rubin
Chris Kaynor writes: > That code is substantially different that the code that Steven > D'Aprano posted: Steven's uses filter to call the lambdas, while your > calls the lambdas from another lambda. I wouldn't have thought it made a difference, but apparently it does. Thanks. > Basically, yours

Python-MVC front/backend 4 firewall OPNsense -> alternative to old m0n0wall/pfSense PHP ?

2015-04-15 Thread chol
Hello dear community, dear Python developers! Would this be a reasonable and appealing project? A MVC (backend, frontend) of OPNsense (opnsense.org) -> to proof the security of Python (3. Gen)? The OPNsense backend was recently rewritten in Python already. Manuel Kasper wrote a PHP GUI/backend

Re: find all multiplicands and multipliers for a number

2015-04-15 Thread Chris Kaynor
On Wed, Apr 15, 2015 at 9:21 AM, Paul Rubin wrote: > Ian Kelly writes: >> Nope. You do end up with a lot of nested filter objects, but there's >> no recursion in the Python code, which means that you're not piling up >> frame objects, and you'll never hit the interpreter's recursion limit. > > I

Re: find all multiplicands and multipliers for a number

2015-04-15 Thread Paul Rubin
Ian Kelly writes: > Nope. You do end up with a lot of nested filter objects, but there's > no recursion in the Python code, which means that you're not piling up > frame objects, and you'll never hit the interpreter's recursion limit. I think you do get frame objects. A quick experiment: def d

Re: find all multiplicands and multipliers for a number

2015-04-15 Thread Ian Kelly
On Tue, Apr 14, 2015 at 8:37 PM, Paul Rubin wrote: > Steven D'Aprano writes: >> def turner(): >> nums = itertools.count(2) >> while True: >> prime = next(nums) >> yield prime >> nums = filter(lambda v, p=prime: (v % p) != 0, nums) > > This is nice, though it will s

Searching the archives

2015-04-15 Thread Gil Dawson
This is my first message to this list. I just signed on. How do you search the archives? --Gil -- https://mail.python.org/mailman/listinfo/python-list

Immediate Hire: ETL Developers - Boise, Idaho

2015-04-15 Thread nagaraju thoudoju
Hi, Hope you are doing well, This is Raj from International Systems Technologies. Please find the requirement below and let me know you interest on this position on nagar...@intsystech.com or feel free to call me on D:908-333-3540 Requirement: Role: ETL Developers Location: Boise, Idaho J

Re: bottle.py app doesn't timeout properly ?

2015-04-15 Thread Yassine Chaouche
Here's a traceback I generated by catching a SIGINT and printing an exception : Traceback (most recent call last): File "/usr/lib/python2.7/SocketServer.py", line 295, in _handle_request_noblock self.process_request(request, client_address) File "/usr/lib/python2.7/SocketServer.py", line

PyDev 4.0.0 Released

2015-04-15 Thread Fabio Zadrozny
What is PyDev? --- PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and IronPython development. It comes with goodies such as code completion, syntax highlighting, syntax analysis, code analysis, refactor, debug, interactive console, etc. Details on

Re: error with Firefox Binary 'The browser appears to have exited'

2015-04-15 Thread me
Have you tried specifying the location of Firefox binary explicitly ? from selenium.webdriver.firefox.firefox_binary import FirefoxBinary binary = FirefoxBinary('C:\Users\aplusk\Documents\FirefoxPortable\App\Firefox\\firefox.exe') browser = webdriver.Firefox(firefox_binary=binary) -- https://mai