On Friday, March 25, 2016 at 9:20:23 PM UTC+5:30, Steven D'Aprano wrote:
>
> Undefined behaviour in C is a minefield waiting to blow your program's legs
> off, because the designers of the language made the explicit choice that
> they wanted the language to be as fast and efficient as possible, ev
On Saturday, March 26, 2016 at 9:55:15 AM UTC+5:30, Chris Angelico wrote:
> On Sat, Mar 26, 2016 at 2:37 PM, Thomas 'PointedEars' Lahn wrote:
> > Chris Angelico wrote:
> >
> >> On Sat, Mar 26, 2016 at 12:36 PM, Thomas 'PointedEars' Lahn wrote:
> Thomas is not typical of the Python community. W
On Sat, Mar 26, 2016 at 2:37 PM, Thomas 'PointedEars' Lahn
wrote:
> Chris Angelico wrote:
>
>> On Sat, Mar 26, 2016 at 12:36 PM, Thomas 'PointedEars' Lahn
>> wrote:
Thomas is not typical of the Python community. We are mostly nice
people.
:)
>>>
>>> You do not even know me. I *am*
On Sat, Mar 26, 2016 at 2:30 PM, Thomas 'PointedEars' Lahn
wrote:
> Since nothing indicates the used module and accessed DBMS (only that, if it
> is Python code, the module cannot be sqlite3 as that does not support “%s”),
> then this code can, if the module uses an escaping mechanism, still be
>
Chris Angelico wrote:
> On Sat, Mar 26, 2016 at 12:36 PM, Thomas 'PointedEars' Lahn
> wrote:
>>> Thomas is not typical of the Python community. We are mostly nice
>>> people.
>>> :)
>>
>> You do not even know me. I *am* a nice person, if only for the fact that
>> I do not let people suffer from
Chris Angelico wrote:
> On Sat, Mar 26, 2016 at 9:25 AM, Thomas 'PointedEars' Lahn
> wrote:
Attribution line, not attribution novel.
>> Chris Angelico wrote:
>>> On Sat, Mar 26, 2016 at 8:28 AM, Thomas 'PointedEars' Lahn
>>> wrote:
Then enlighten me, please: How is “parameterization” or a
On Sat, Mar 26, 2016 at 12:36 PM, Thomas 'PointedEars' Lahn
wrote:
>> Thomas is not typical of the Python community. We are mostly nice people.
>> :)
>
> You do not even know me. I *am* a nice person, if only for the fact that I
> do not let people suffer from their own ignorance, and I encourage
Steven D'Aprano writes:
> Culturally, C compiler writers have a preference for using undefined
> behaviour to allow optimizations, even if it means changing the semantics
> of your code.
If your code has UB then by definition it has no semantics to change.
Code with UB has no meaning.
--
https:
On Fri, Mar 25, 2016, at 22:46, Steven D'Aprano wrote:
> Culturally, C compiler writers have a preference for using undefined
> behaviour to allow optimizations, even if it means changing the semantics
> of your code. The C compiler is allowed to ignore your code, move it
> around
> so that things
On Sat, 26 Mar 2016 03:57 am, Marko Rauhamaa wrote:
> Steven D'Aprano :
>
>> Undefined behaviour in C is a minefield waiting to blow your program's
>> legs off, because the designers of the language made the explicit
>> choice that they wanted the language to be as fast and efficient as
>> possib
On Sat, 26 Mar 2016 01:42:37 +, Mark Lawrence wrote:
> On 25/03/2016 05:10, Wildman via Python-list wrote:
>> I have a program that I have been trying to rewrite so it will
>> run on Python 2.7 and 3.4.
>
> This http://pythonhosted.org/six/ might come in handy in future.
>
> As I'm also clim
On Sat, 26 Mar 2016 09:08 am, BartC wrote:
> On 25/03/2016 16:22, Steven D'Aprano wrote:
>> On Fri, 25 Mar 2016 10:06 pm, BartC wrote:
>
> (OK, I'll risk the wrath of Mark Lawrence et al by daring to post my
> opinions.)
Please ignore Mark Lawrence when he is acting as an obnoxious troll, as he
On Sat, 26 Mar 2016 08:17 am, PointedEars wrote:
..^^^
> get a real name.
You sign your posts "PointedEars". Do you not realise how hypocritical these
repeated carping complaints about "real names" are?
Not to mention pointless. Aside from the fact that "real
On 25/03/2016 05:10, Wildman via Python-list wrote:
I have a program that I have been trying to rewrite so it will
run on Python 2.7 and 3.4.
This http://pythonhosted.org/six/ might come in handy in future.
As I'm also climbing the tkinter cliff at the moment I've found anything
on stackoverf
Ned Batchelder wrote:
> Chris, I apologize for Thomas.
How dare you to speak for me, and *again* the rest of the subscribers?
There is nothing to apologize for when I am *helping* someone by giving them
useful information. You can apologize for your own presumptous behavior
instead.
> is ma
On Friday, March 25, 2016 at 5:17:21 PM UTC-4, Thomas 'PointedEars' Lahn wrote:
> c...@isbd.net wrote:
>
> > Occasionally I have to make forays into Javascript, can anyone
> > recommend a place similar to this list where Javascript questions can
> > be asked? The trouble is that there are very ma
On Sat, Mar 26, 2016 at 9:25 AM, Thomas 'PointedEars' Lahn
wrote:
> Chris Angelico wrote:
>
>> On Sat, Mar 26, 2016 at 8:28 AM, Thomas 'PointedEars' Lahn
>> wrote:
>>> Chris Angelico wrote:
[…] Thomas 'PointedEars' Lahn […] wrote:
> Chris Angelico wrote:
>> […] Thomas 'PointedEars' L
Chris Angelico wrote:
> On Sat, Mar 26, 2016 at 8:28 AM, Thomas 'PointedEars' Lahn
> wrote:
>> Chris Angelico wrote:
>>> […] Thomas 'PointedEars' Lahn […] wrote:
Chris Angelico wrote:
> […] Thomas 'PointedEars' Lahn […] wrote:
>> Daniel Wilcox wrote:
>>> Cool thanks, highly recom
On 25/03/2016 16:22, Steven D'Aprano wrote:
On Fri, 25 Mar 2016 10:06 pm, BartC wrote:
(OK, I'll risk the wrath of Mark Lawrence et al by daring to post my
opinions.)
But it is an optimisation that /could/ be done by the byte-code compiler
I would also expect that Victor Stinner's FAT Py
On Sat, Mar 26, 2016 at 8:28 AM, Thomas 'PointedEars' Lahn
wrote:
> Chris Angelico wrote:
>
>> […] Thomas 'PointedEars' Lahn […] wrote:
>>> Chris Angelico wrote:
[…] Thomas 'PointedEars' Lahn […] wrote:
> Daniel Wilcox wrote:
>> Cool thanks, highly recommended to use an ORM to deter e
Chris Angelico wrote:
> […] Thomas 'PointedEars' Lahn […] wrote:
>> Chris Angelico wrote:
>>> […] Thomas 'PointedEars' Lahn […] wrote:
Daniel Wilcox wrote:
> Cool thanks, highly recommended to use an ORM to deter easy SQL
> injections.
That is to crack a nut with a sledgehammer.
On Sat, Mar 26, 2016 at 2:50 AM, Steven D'Aprano wrote:
> On Fri, 25 Mar 2016 06:54 am, BartC wrote:
>
>>> In the case of C, the line is limited to working with some specific type
>>> (say, an int32). Even there, if the addition might overflow, the
>>> behaviour is undefined and the compiler can d
Mark Lawrence wrote:
> […] It is so blatantly obvious that he knows precisely nothing about
> Python, but still the moderators on this list let him get away with it.
This is a mailing list? It is moderated? *Seriously*?
--
PointedEars
Twitter: @PointedEars2
Please do not cc me. / Bitte keine
c...@isbd.net wrote:
> Occasionally I have to make forays into Javascript, can anyone
> recommend a place similar to this list where Javascript questions can
> be asked? The trouble is that there are very many usenet Javascript
> lists and it's difficult to guess which one[es] might be good.
The
On 25/03/2016 02:49, Michael Torrie wrote:
I've been trying to follow things on this thread, and I understand a bit
about Pythonic ideomatic style and I know what Python is really good at
and some of what it's not so good at, but it seems like one of Bart's
original contentions was that given a
On Fri, Mar 25, 2016 at 5:00 PM, Zachary Ware wrote:
> I'm assuming you're doing `await process_request()` elsewhere, which
> is what's producing your error: you're trying to start the loop within
> a coroutine running on that loop. loop.run_in_executor() returns a
> Future just like any other c
On Fri, Mar 25, 2016 at 3:56 PM, Marko Rauhamaa wrote:
> Ray Cote :
>
>> I’m trying to perform an synchronous task while using asyncio.
>
> You seem to want to do something you shouldn't be doing. Asyncio does
> not tolerate synchronous/blocking calls. You will need to move those in
> separate thr
Ray Cote :
> I’m trying to perform an synchronous task while using asyncio.
You seem to want to do something you shouldn't be doing. Asyncio does
not tolerate synchronous/blocking calls. You will need to move those in
separate threads or processes if you can't turn them into asynchronous
tasks.
On Fri, Mar 25, 2016 at 3:24 PM, Ray Cote
wrote:
> Hello:
>
> I’m trying to perform an synchronous task while using asyncio.
> I understand the solution is to use run_in_executor.
> I’m not clear on how to add this into an already running event loop.
>
> I’ve found lots of examples showing how to
Hello:
I’m trying to perform an synchronous task while using asyncio.
I understand the solution is to use run_in_executor.
I’m not clear on how to add this into an already running event loop.
I’ve found lots of examples showing how to set up a loop and run this, but
I’m blocked in regards to doin
Cousin Stanley writes:
>
>> Occasionally I have to make forays into Javascript,
>> can anyone recommend a place similar to this list
>> where Javascript questions can be asked ?
>
>
> Several years back I found
> the newsgroup comp.lang.javascript
> to be helpful
Still go
> Occasionally I have to make forays into Javascript,
> can anyone recommend a place similar to this list
> where Javascript questions can be asked ?
Several years back I found
the newsgroup comp.lang.javascript
to be helpful
However, I haven't used that group
for som
Steven D'Aprano :
> Undefined behaviour in C is a minefield waiting to blow your program's
> legs off, because the designers of the language made the explicit
> choice that they wanted the language to be as fast and efficient as
> possible, even at the cost of safe, reproducible behaviour.
Yes, a
On 03/25/2016 06:03 AM, Albert-Jan Roskam wrote:
> Somebody wrote:
>> Somebody else wrote:
I know Python does not have variables, but names.
Multiple names cant then be bound to the same objects.
So this behavior
--> b = 234
--> v = 234
--> b is v
True
according to the above that is ok
But
On Fri, 25 Mar 2016 10:06 pm, BartC wrote:
> On 25/03/2016 01:02, Dennis Lee Bieber wrote:
>> On Thu, 24 Mar 2016 19:54:54 +, BartC declaimed the
>> following:
>>
>>
>>>
>>> (I use a dedicated repeat-N-times loop that needs no explicit loop
>>> variable,
>
>> Well, that sure wouldn't support
On Fri, 25 Mar 2016 06:54 am, BartC wrote:
>> In the case of C, the line is limited to working with some specific type
>> (say, an int32). Even there, if the addition might overflow, the
>> behaviour is undefined and the compiler can do anything it wants
>> (including time travel,
>
> I'm pretty
On Fri, 25 Mar 2016 00:34:13 -0500, Zachary Ware wrote:
> On Fri, Mar 25, 2016 at 12:10 AM, Wildman via Python-list
> wrote:
>> I have a program that I have been trying to rewrite so it will
>> run on Python 2.7 and 3.4. It has been a pain to say the least.
>> Thank $DIETY for aliases. Anyway,
On Fri, 25 Mar 2016 01:30:17 -0400, Terry Reedy wrote:
> On 3/25/2016 1:10 AM, Wildman via Python-list wrote:
>> I have a program that I have been trying to rewrite so it will
>> run on Python 2.7 and 3.4. It has been a pain to say the least.
>> Thank $DIETY for aliases. Anyway, I got it all wor
On Thursday, March 24, 2016 at 9:24:44 PM UTC-4, Wildman wrote:
> On Thu, 24 Mar 2016 13:24:16 -0700, kevind0718 wrote:
>
> > Hello:
> >
> > newbie Tkinter question
> >
> > If I run the code below two windows appear.
> > One empty and one with the text box and button.
> >
> > Why? please
> >
On Sat, Mar 26, 2016 at 12:03 AM, Albert-Jan Roskam
wrote:
>> You should not bother with object identity for objects other than None.
>
>
> A little late to the party, but: how about Ellipsis? Shouldn't "is" also be
> used for that one? (It's rare, I know :))
Yes, and also True and False, if you
> To: python-list@python.org
> From: __pete...@web.de
> Subject: Effects of caching frequently used objects, was Re: Explaining
> names vs variables in Python
> Date: Wed, 2 Mar 2016 10:12:48 +0100
>
> Salvatore DI DIO wrote:
>
> > Hello,
> >
> > I know Python does not have variables, but na
On 25/03/2016 01:02, Dennis Lee Bieber wrote:
On Thu, 24 Mar 2016 19:54:54 +, BartC declaimed the
following:
(I use a dedicated repeat-N-times loop that needs no explicit loop
variable,
Well, that sure wouldn't support a Python for-loop...
If I may, I'll reply to this point
On Thu, 24 Mar 2016 23:46:14 +, Mark Lawrence wrote:
> On 24/03/2016 23:33, Ian Kelly wrote:
>> On Thu, Mar 24, 2016 at 4:58 PM, Mark Lawrence
>> wrote:
>>> No. While this idiot, BartC, is let loose on this forum, I'll say
>>> what I like.
>>
>> Good to know. I've been on the fence about thi
On Thu, 24 Mar 2016 18:17:43 -0700, 121sukha wrote:
> I am new to python and I want to use web scraping to download songs from
> website.
> how do I write code to check if the website has uploaded a new song and
> have that song automatically be downloaded onto my computer. I know how
> to use the
Larry Martell wrote:
> On Thu, Mar 24, 2016 at 4:53 PM, wrote:
> > I use Python wherever I can and find this list (as a usenet group via
> > gmane) an invaluable help at times.
> >
> > Occasionally I have to make forays into Javascript, can anyone
> > recommend a place similar to this list where
Mark Lawrence writes:
> No. While this idiot, BartC, is let loose on this forum, I'll say
> what I like.
That is the attitude of a petulant schoolyard bully. Stop, please. You
are to behave well in this community, and this is not conditional on the
behaviour of others.
You are better that that
46 matches
Mail list logo