Issue resolved.
My code was working, the problem was PhantomJS 2.0, used 1.9.8 and now I
have the 'cookies.txt' file as expected!
--
https://mail.python.org/mailman/listinfo/python-list
By the way, you're not alone in recognising that Python 3 may be a little
harder to teach to beginners than Python 2. Raymond Hettinger, one of the
most respected Pythonistas around, has pointed out the same thing.
More below.
On Sat, 28 Mar 2015 12:48 am, Rustom Mody wrote:
> On Friday, March
On Sat, Mar 28, 2015 at 6:32 PM, Steven D'Aprano
wrote:
>> | Methods defined here:
>
> This is the usual guff that help() prints when you pass it a class or type.
> Occasionally it is useful. Often it is not, especially the dunder methods.
>
> Unfortunately help's UI is rather primitive. It woul
Larry Hudson :
> Highlight the selection you want copied, move the mouse cursor to the
> location you want it copied to and middle-click with the mouse. Works
> between programs as well as within a single program. And it copies
> directly without going through the clipboard.
Unfortunately, Linux
On Fri, Mar 27, 2015 at 7:40 PM, Steven D'Aprano
wrote:
> Excluding that, the consensus seems to be that Perl's regexes are stronger
> than Chomsky regular expressions, but nobody quite knows how much stronger.
> It's likely that they are at least as powerful as context-free grammars,
> but not as
On Sat, Mar 28, 2015 at 1:50 AM, Marko Rauhamaa wrote:
> Larry Hudson :
>
>> Highlight the selection you want copied, move the mouse cursor to the
>> location you want it copied to and middle-click with the mouse. Works
>> between programs as well as within a single program. And it copies
>> direc
On Sat, 28 Mar 2015 06:50 pm, Marko Rauhamaa wrote:
> Larry Hudson :
>
>> Highlight the selection you want copied, move the mouse cursor to the
>> location you want it copied to and middle-click with the mouse. Works
>> between programs as well as within a single program. And it copies
>> directl
On Sat, 28 Mar 2015 10:08 am, BartC wrote:
> An alternate syntax might be:
>
> hello = .string()
> loop_node =. next
Why propose that?
Every other augmented assignment has the operator on the left hand side of
the equals. Greater-than, less-than, and not-equal all have the symbol on
the lef
On Sat, 28 Mar 2015 08:19 pm, Ian Kelly wrote:
> I've never been a fan of the primary selection style anyway. Copying
> text is conceptually an action. Selecting text is how one indicates
> the target of an action; conceptually it is not an action itself and
> shouldn't cause an action to be perfo
On Sat, 28 Mar 2015 07:48 am, Ian Kelly wrote:
> On Fri, Mar 27, 2015 at 2:24 PM, Jamie Willis
> wrote:
>> I would like to propose a new piece of syntax for the python language; .=
>>
>> In short, the operator is form of syntactic sugar, for instance consider
>> the following code:
>>
>> hello =
The famous Perl coder Allison Randal writes about why Perl is not dead (it's
just pining for the fjords *wink* ) and contrasts the Perl 5/6 split to
Python 2/3:
[quote]
The single biggest thing we didn’t anticipate is that the “community rewrite
of Perl” has, in fact, turned out to be a community
On Sat, 28 Mar 2015 08:53 pm, Steven D'Aprano wrote:
> It saves typing. It might even allow a micro-optimization in the generated
> bytecode (see below).
Oops, I forgot to include the "see below" bit.
Comparing
a = a.spam()
a .= spam()
the Python compiler could perhaps optimize the second
"David H. Lipman" wrote in message
news:qecdnrkftl6qpy_inz2dnuu7-xmdn...@giganews.com... They must be
treated as spam. ab...@sourceforge.net
No doubts now. They are on a spam campaign and has been found spamming Web
Forums such as Malwarebytes.
All Usenet users and Listserver recipien
Hi Ross,
Hiring is easy. Hiring well is hard.
Job boards produce lots of applicants, especially for sales, marketing,
customer service, and admin roles. But then what?
Hundreds of resumes isn't the solution. It's part of the problem.
Recruiters are great at surfacing solid candidates, but
On 28/03/2015 06:26, Steven D'Aprano wrote:
On Sat, 28 Mar 2015 03:18 pm, Rustom Mody wrote:
One thing that is a bit laborious in python are object initializers:
self.attr1 = field1
self.attr2 = field2
In VB one can do:
with self
.attr1 = field1
.attr2 = field2
(or something like that -- do
On Sat, 28 Mar 2015 11:26 pm, Mark Lawrence wrote:
> On 28/03/2015 06:26, Steven D'Aprano wrote:
>>Pascal is another language with a construct like that, and there's a FAQ
>>for it:
>>
>>
https://docs.python.org/2/faq/design.html#why-doesn-t-python-have-a-with-statement-for-attribute-assignments
On 28/03/2015 09:53, Steven D'Aprano wrote:
On Sat, 28 Mar 2015 10:08 am, BartC wrote:
An alternate syntax might be:
hello = .string()
That should have been .strip()
loop_node =. next
Why propose that?
Every other augmented assignment has the operator on the left hand side of
the
On 28/03/2015 12:58, Steven D'Aprano wrote:
On Sat, 28 Mar 2015 11:26 pm, Mark Lawrence wrote:
On 28/03/2015 06:26, Steven D'Aprano wrote:
Pascal is another language with a construct like that, and there's a FAQ
for it:
https://docs.python.org/2/faq/design.html#why-doesn-t-python-have-a-w
On Sat, 28 Mar 2015 13:38:20 +, BartC wrote:
>
>(I'm not sure how this all applies to the loop_node.next example, but
>even here I don't count the "." as an operator, but syntax.
Neiter the language. The dot symbol is a delimiter in the python
grammar. Not an operator. And also defined as a
On Saturday, March 28, 2015 at 11:56:39 AM UTC+5:30, Steven D'Aprano wrote:
> On Sat, 28 Mar 2015 03:18 pm, Rustom Mody wrote:
>
> > One thing that is a bit laborious in python are object initializers:
> >
> > self.attr1 = field1
> > self.attr2 = field2
> >
> > In VB one can do:
> >
> > with se
On Saturday, March 28, 2015 at 9:51:50 PM UTC+5:30, Rustom Mody wrote:
> So if the VB model is followed, it is purely a syntactic (ie not type-related)
> question whether an identifier is an adorned variable or an attribute of
> something else. The preceding dot is the disambiguator.
Uh... UN-ado
Gregory Ewing wrote:
> Ian Kelly wrote:
>> What I mean is that if you construct a parse tree of "foo" "bar" using
>> that grammar, it looks like this:
>>
>> expr
>>|
>> STRING+
>> / \
>> STRING STRING
>
> Not quite -- STRING+ is not a symbol in the grammar, it's
> a shor
On Saturday 28 March 2015 07:27:54 David H. Lipman wrote:
> >> "David H. Lipman" wrote in message
> >> news:qecdnrkftl6qpy_inz2dnuu7-xmdn...@giganews.com... They must be
> >> treated as spam. ab...@sourceforge.net
>
> No doubts now. They are on a spam campaign and has been found
> spamming Web
Ian Kelly wrote:
> […] Thomas 'PointedEars' Lahn […] wrote:
>> Ian Kelly wrote:
>>> What I mean is that if you construct a parse tree of "foo" "bar" using
>>> that grammar, it looks like this:
>>>
>>> expr
>>>|
>>> STRING+
>>> / \
>>> STRING STRING
>>> […]
>>>
>>> There is
On 27-Mar-2015 15:09, Dave Angel wrote:
On 03/27/2015 09:56 AM, Marko Rauhamaa wrote:
"Frank Millman" :
So what I am talking about is called a "satisfactory" puzzle, which is
a subset of a "proper" puzzle.
That is impossible to define, though, because some people are mental
acrobats and can
On Sat, 28 Mar 2015 21:32:31 +1100, Steven D'Aprano
wrote:
>The famous Perl coder Allison Randal writes about why Perl is not dead (it's
>just pining for the fjords *wink* ) and contrasts the Perl 5/6 split to
>Python 2/3:
A shame Allison doesn't frequent these groups. I would have a few
questio
Aditya Raj Bhatt wrote:
>On Wednesday, March 18, 2015 at 1:04:39 PM UTC-5, Laurent Pointal wrote:
>> > Can someone also provide a sort of a 'guide' to triple-quoted
>> > comments in general?
>>
>> A triple ' or " string is a Python string, allowing line-return in
>> string.
>
>What do you mean b
On 28/03/2015 03:39, Sayth wrote:
Good test for pypy to see where it's speed sits between C and Python.
I've spent the last hour or so doing such tests.
Using the OP's algorithm, and testing with the 'hard' puzzle posted by
Ian Kelly, I got these approximate results:
Python 3.1: 1700 se
On Sun, Mar 29, 2015 at 10:50 AM, BartC wrote:
> Using the OP's algorithm, and testing with the 'hard' puzzle posted by Ian
> Kelly, I got these approximate results:
>
> Python 3.1: 1700 seconds (normal Python interpreter)
> PyPy: 93 seconds
> C unoptimised: 17 seconds (gc
Perl 6 tried to acheive to much, and by delay and confusion lost the enthusiasm
of the community behind it Perl 6 and the at that time robust Perl 5 community
who saw it as the future, when that future waned so did their's.
Perl 6 should have just done what the community wanted at that time, in
On Sun, 29 Mar 2015 10:50 am, BartC wrote:
> (X is my own interpreted language, which is where my interest in this
> is. This had been generally faster than Python until PyPy came along. It
> does however use a pure byte-code interpreter, so the result is not too
> bad.
>
> But using X *and* my
Sounds like you want to implement nim special dot syntax in python.
http://nim-lang.org/manual.html#special-operators
--
https://mail.python.org/mailman/listinfo/python-list
On Sun, Mar 29, 2015 at 2:06 PM, Steven D'Aprano
wrote:
> On Sun, 29 Mar 2015 10:50 am, BartC wrote:
>
>> (X is my own interpreted language, which is where my interest in this
>> is. This had been generally faster than Python until PyPy came along. It
>> does however use a pure byte-code interpret
On Sat, Mar 28, 2015 at 9:05 AM, Mario Figueiredo wrote:
> Neiter the language. The dot symbol is a delimiter in the python
> grammar. Not an operator. And also defined as a delimiter in the
> official documentation, right after operators.
What does it matter? How '.' is lexed when it appears on
On Sunday, March 29, 2015 at 9:47:00 AM UTC+5:30, Ian wrote:
> On Sat, Mar 28, 2015 at 9:05 AM, Mario Figueiredo wrote:
> > Neiter the language. The dot symbol is a delimiter in the python
> > grammar. Not an operator. And also defined as a delimiter in the
> > official documentation, right after o
Hello,
I am trying to build a python script to auto create RFC's (Reason For Change).
The web service is using SOAP API 1.1, and requires ntlm authentication.
I have tried several methods to start this process without success.
I found that I could connect via NTLM and it returned the webpage.
36 matches
Mail list logo