https://stackoverflow.com/questions/50383210/python-requests-how-to-post-few-stages-forms
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, 17 May 2018 05:33:38 +0400, Abdur-Rahmaan Janhangeer wrote:
> what does := proposes to do?
Simply, it proposes to add a new operator := for assignment (or binding)
as an expression, as an addition to the = assignment operator which
operates only as a statement. The syntax is:
name
On Thu, 17 May 2018 05:25:44 +0400, Abdur-Rahmaan Janhangeer wrote:
> weird, still not much traffic on this thread
How many ways would you like us to answer the question?
It is a FAQ:
https://docs.python.org/3/faq/design.html
Here's an older version:
http://www.effbot.org/pyfaq/why-does-pytho
On Wednesday, May 16, 2018 at 7:42:01 PM UTC-7, Abdur-Rahmaan Janhangeer wrote:
> why is x = list.remove(elem) not return the list?
>
> Abdur-Rahmaan Janhangeer
> https://github.com/Abdur-rahmaanJ
1) If you are naming your list "list," you're asking for trouble. Shadowing
builtin names is risky
On 5/16/18 10:41 PM, Abdur-Rahmaan Janhangeer wrote:
why is x = list.remove(elem) not return the list?
Methods in Python usually do one of two things: 1) mutate the object and
return None; or 2) leave the object alone and return a new object. This
helps make it clear which methods mutate and
why is x = list.remove(elem) not return the list?
Abdur-Rahmaan Janhangeer
https://github.com/Abdur-rahmaanJ
--
https://mail.python.org/mailman/listinfo/python-list
meaning that's precisely what i'm asking for
Abdur-Rahmaan Janhangeer
https://github.com/Abdur-rahmaanJ
On Thu, 17 May 2018, 05:45 Chris Angelico, wrote:
> On Thu, May 17, 2018 at 11:33 AM, Abdur-Rahmaan Janhangeer
> wrote:
> > what does := proposes to do?
> >
> > pep572
> >
>
> If you read th
Am trying to get the edge index of selected edges in polygon.. (Maya).. don't
how to query and get the values. Pls help me to find out..
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, May 17, 2018 at 11:33 AM, Abdur-Rahmaan Janhangeer
wrote:
> what does := proposes to do?
>
> pep572
>
If you read the PEP, you'll find an answer to your question.
https://www.python.org/dev/peps/pep-0572/
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
what does := proposes to do?
pep572
Abdur-Rahmaan Janhangeer
https://github.com/Abdur-rahmaanJ
--
https://mail.python.org/mailman/listinfo/python-list
weird, still not much traffic on this thread
Abdur-Rahmaan Janhangeer
https://github.com/Abdur-rahmaanJ
On Tue, 15 May 2018, 23:15 Tobiah, wrote:
> Why is it len(object) instead of object.len?
>
> Why is it getattr(object, item) rather then object.getattr(item)?
>
> etc...
>
>
> Thanks
> --
> h
On 15May2018 09:37, Travis Griggs wrote:
I have a directory structure that might look something like:
Data
Current
A
B
C
Previous
A
X
In as simple/quick a step as possible, I want to rename Current as Previous
including t
On 05/16/2018 06:21 PM, Mike McClain wrote:
On Wed, May 16, 2018 at 02:33:23PM +0200, Friedrich Rentsch wrote:
I didn't know the site you mention. I've been getting quotes from
Yahoo daily. The service they discontinued was for up to 50 symbols
per page. I now parse a separate page of some 50
On 2018-05-15 11:37, Travis Griggs wrote:
I have a directory structure that might look something like:
Data
Current
A
B
C
Previous
A
X
In as simple/quick a step as possible, I want to rename Current as Previ
On Thu, May 17, 2018 at 1:03 AM, Ned Batchelder wrote:
> On 5/16/18 10:06 AM, Steven D'Aprano wrote:
>>
>> On Wed, 16 May 2018 09:23:02 -0400, Ned Batchelder wrote:
>>
>>> I've also experimented with different ways to better say "everything is
>>> an object". One possibility is, "any right-hand s
On Tue, May 15, 2018, 6:00 PM Steven D'Aprano <
steve+comp.lang.pyt...@pearwood.info> wrote:
> On Tue, 15 May 2018 12:10:07 -0700, Tobiah wrote:
>
> > Why is it len(object) instead of object.len?
>
> Because we're not serfs in the Kingdom of Nouns:
>
> https://steve-yegge.blogspot.com/2006/03/exec
On Wed, May 16, 2018 at 10:06 AM, bartc wrote:
> On 16/05/2018 16:09, Ian Kelly wrote:
>>
>> On Tue, May 15, 2018, 6:36 PM bartc wrote:
>>
>>> On 16/05/2018 01:04, Steven D'Aprano wrote:
>>>
I'm not a C coder, but I think that specific example would be immune to
the bug we are discussin
On Wed, May 16, 2018 at 02:33:23PM +0200, Friedrich Rentsch wrote:
>
> I didn't know the site you mention. I've been getting quotes from
> Yahoo daily. The service they discontinued was for up to 50 symbols
> per page. I now parse a separate page of some 500K of html for each
> symbol! This site i
For Friedrich's, Peter's and the many other responses, many thanks.
I will get a handle on python eventually and the many teachers on this
list are making that easier.
Mike
--
"There are three kinds of men. The ones who learn by reading. The
few who learn by observation. The rest of them have to p
On 16/05/2018 16:09, Ian Kelly wrote:
On Tue, May 15, 2018, 6:36 PM bartc wrote:
On 16/05/2018 01:04, Steven D'Aprano wrote:
I'm not a C coder, but I think that specific example would be immune to
the bug we are discussing, since (I think) you can't chain assignments in
C. Am I right?
Assi
thank you for that tip. I missed that somehow...
На 16 май 2018 г. 16:31:37 GMT+02:00, Peter Otten <__pete...@web.de> написа:
>Friedrich Rentsch wrote:
>
>> >>> ibm = urllib2.urlopen
>> ("https://api.iextrading.com/1.0/stock/IBM/quote";).read()
>> >>> ibm = eval (ibm)
>
>Dont do this. You are al
>It serves a naked set of data, which happens to conform to the python
source code specification for dictionaries and consequently can be compiled
into a dictionary with 'eval', like so:
I would highly discourage any long-term usage (or any usage) of eval() in
this sort of context. If iextrading
On Tue, May 15, 2018, 6:36 PM bartc wrote:
> On 16/05/2018 01:04, Steven D'Aprano wrote:
>
> > I'm not a C coder, but I think that specific example would be immune to
> > the bug we are discussing, since (I think) you can't chain assignments in
> > C. Am I right?
>
> Assignments can be chained in
On 5/16/18 10:06 AM, Steven D'Aprano wrote:
On Wed, 16 May 2018 09:23:02 -0400, Ned Batchelder wrote:
I've also experimented with different ways to better say "everything is
an object". One possibility is, "any right-hand side of an assignment
is an object," though that is a bit tortured.
Wha
On Thu, May 17, 2018 at 12:25 AM, Grant Edwards
wrote:
> On 2018-05-16, Steven D'Aprano wrote:
>> On Tue, 15 May 2018 22:21:15 +0200, Peter J. Holzer wrote:
>>
>>> On 2018-05-15 00:52:42 +, Steven D'Aprano wrote:
>> [...]
By 1991 there had already been *decades* of experience with C
>>>
Friedrich Rentsch wrote:
> >>> ibm = urllib2.urlopen
> ("https://api.iextrading.com/1.0/stock/IBM/quote";).read()
> >>> ibm = eval (ibm)
Dont do this. You are allowing the guys at iextrading.com to execute
arbitrary code on your machine. Use
ibm = json.loads(ibm)
instead or
import
On 2018-05-16, Steven D'Aprano wrote:
> On Tue, 15 May 2018 22:21:15 +0200, Peter J. Holzer wrote:
>
>> On 2018-05-15 00:52:42 +, Steven D'Aprano wrote:
> [...]
>>> By 1991 there had already been *decades* of experience with C
>>
>> About one and a half decades.
>
> That would still be plural
On Wed, 16 May 2018 09:23:02 -0400, Ned Batchelder wrote:
> I've also experimented with different ways to better say "everything is
> an object". One possibility is, "any right-hand side of an assignment
> is an object," though that is a bit tortured.
What if there's no assignment?
> Now I'm th
On 16 May 2018 at 14:23, Ned Batchelder wrote:
> I've also experimented with different ways to better say "everything is an
> object". One possibility is, "any right-hand side of an assignment is an
> object," though that is a bit tortured.
C++ called that an "rvalue". And then went on to defin
On 5/16/18 3:17 AM, Steven D'Aprano wrote:
On Wed, 16 May 2018 17:03:22 +1000, Ben Finney wrote:
So, no, I think the more useful – and less problematic – framing is that
every object *has* a value, and mutable objects may change to a
different value while remaining the same object.
What's an o
On Wed, May 16, 2018 at 8:33 AM, Friedrich Rentsch
wrote:
>
>
> On 05/16/2018 02:23 AM, Mike McClain wrote:
>>
>> Initially I got my quotes from a broker daily to plug into a
>> spreadsheet, Then I found Yahoo and wrote a perl script to grab them.
>> When Yahoo quit supplying quotes I found A
On 05/16/2018 02:23 AM, Mike McClain wrote:
Initially I got my quotes from a broker daily to plug into a
spreadsheet, Then I found Yahoo and wrote a perl script to grab them.
When Yahoo quit supplying quotes I found AlphaVantage.co and rewrote
the perl script.
AlphaVantage.co has been
On Wed, 16 May 2018 17:03:22 +1000, Ben Finney wrote:
> So, no, I think the more useful – and less problematic – framing is that
> every object *has* a value, and mutable objects may change to a
> different value while remaining the same object.
What's an object?
That's not a rhetorical question
Steven D'Aprano writes:
> On Wed, 16 May 2018 11:30:26 +1000, Ben Finney wrote:
>
> > An object is not a value; an object *has* a value. The object
> > retains its identity even when its value changes.
>
> Here you have hit on the crux of the matter. Why cannot both
> statements be true?
The abo
34 matches
Mail list logo