Re: Python Error message

2016-08-05 Thread dieter
GBANE FETIGUE writes: > ... > I am running a python script to run some CURL commands, and return the > response which is the applicationId and the versionId. I was able to do it. > Now the versionId value supposed to be used on the second CURL as a value of > the applications key which is an ar

Re: make an object read only

2016-08-05 Thread Robin Becker
On 05/08/2016 01:03, Lawrence D’Oliveiro wrote: objects after the save method has been used. The user had mixed results :( As GvR has said: “we’re all consenting adults here”. In other words, we”re capable of coping with the consequences of our actions. agreed :) -- Robin Becker -

Re: make an object read only

2016-08-05 Thread Antoon Pardon
Op 05-08-16 om 02:03 schreef Lawrence D’Oliveiro: > On Wednesday, August 3, 2016 at 3:13:01 AM UTC+12, Robin Becker wrote: >> A reportlab user found he was doing the wrong thing by calling >> canvas.save repeatedly, our documentation says you should not use Canvas >> objects after the save method h

Re: Win32 API in pywin32

2016-08-05 Thread BartC
On 05/08/2016 00:57, Lawrence D’Oliveiro wrote: On Friday, August 5, 2016 at 11:50:28 AM UTC+12, jj0ge...@gmail.com wrote: According to Python.org Mark Hammond has an Add-on (pywin32) that supports Win32 and COM. Are people still using Win32? I thought Windows went 64-bit years ago. Win32 r

Re: Win32 API in pywin32

2016-08-05 Thread Matt Wheeler
On Fri, 5 Aug 2016, 02:23 Lawrence D’Oliveiro, wrote: > On Friday, August 5, 2016 at 12:06:23 PM UTC+12, Igor Korot wrote: > > > > On Thu, Aug 4, 2016 at 4:57 PM, Lawrence D’Oliveiro wrote: > >> On Friday, August 5, 2016 at 11:50:28 AM UTC+12, jj0ge...@gmail.com > wrote: > >>> According to Python

Pompem Exploit and Vulnerability Finder Tool v0.2.0 Python 3.5

2016-08-05 Thread Rafael Francischini
Hello, I would like to share with you my personal project, Pompem. https://github.com/rfunix/Pompem/ I hope you enjoy it. -- https://mail.python.org/mailman/listinfo/python-list

Re: Win32 API in pywin32

2016-08-05 Thread eryk sun
On Fri, Aug 5, 2016 at 11:58 AM, Matt Wheeler wrote: > On Fri, 5 Aug 2016, 02:23 Lawrence D’Oliveiro, > wrote: > >> On Friday, August 5, 2016 at 12:06:23 PM UTC+12, Igor Korot wrote: >> > >> > On Thu, Aug 4, 2016 at 4:57 PM, Lawrence D’Oliveiro wrote: >> >> On Friday, August 5, 2016 at 11:50:28 A

Python slang

2016-08-05 Thread Marco Sulla via Python-list
I have a simple curiosity: why Python has much keywords, and some builtin types and methods, that are different from the other languages? What is the rationale? I'm referring to: * `except` instead of `catch` * `raise` instead of `throw` * `self` instead of `this` (I know, it's not enforced, but i

Re: Python slang

2016-08-05 Thread Chris Angelico
On Sat, Aug 6, 2016 at 8:00 AM, Marco Sulla via Python-list wrote: > I have a simple curiosity: why Python has much keywords, and some > builtin types and methods, that are different from the other > languages? What is the rationale? This isn't slang; it's jargon, perhaps, but "slang" implies an

Re: Python slang

2016-08-05 Thread Chris Angelico
On Sat, Aug 6, 2016 at 9:21 AM, Marco Sulla wrote: > I want to clarify that when I say "different from the other > languages", I mean "different from the most used languages", that in > my mind are C/C++, C#, Java, PHP and Javascript, mainly. > Ah, well, that's because those are all one family of

Re: Python slang

2016-08-05 Thread Steven D'Aprano
On Sat, 6 Aug 2016 08:00 am, Marco Sulla wrote: > I have a simple curiosity: why Python has much keywords, and some > builtin types and methods, that are different from the other > languages? What is the rationale? You should ask those other languages. Which languages do you have in mind? > I'

Re: Python slang

2016-08-05 Thread Chris Angelico
On Sat, Aug 6, 2016 at 11:14 AM, Steven D'Aprano wrote: >> I don't ask about `None` instead of `null` because I suppose here it's >> a matter of disambiguation (null, in many languages, is not equal to >> null). > > Really? Which languages? That's not true in Pascal, C, Ruby or Javascript. > SQL

Re: Python slang

2016-08-05 Thread Steven D'Aprano
On Sat, 6 Aug 2016 08:31 am, Chris Angelico wrote: > On Sat, Aug 6, 2016 at 8:00 AM, Marco Sulla via Python-list > wrote: [...] >> I'm referring to: >> * `except` instead of `catch` > > Not sure. Python does seem to be roughly unique in this. Delphi does uses the same terminology. Standard Pasc

Re: Installing Python 2.7 for all users on SLES 11

2016-08-05 Thread Bo Stone
On Thursday, August 4, 2016 at 8:54:35 PM UTC-7, Bo Stone wrote: > I installed Python 2.7 on SLES 11 box that previously was running Python 2.6. > To do so I used a script described in this post > (http://stackoverflow.com/a/11371726/135946) and run it as a root user. > Everything went well but

Re: Python slang

2016-08-05 Thread Chris Angelico
On Sat, Aug 6, 2016 at 11:55 AM, Steven D'Aprano wrote: >>> * `True`, `False` and None instead of `true`, `false` and `none` (they >>> seems classes) >> >> This one, I've no idea about. Why have "bool" as the type, and "True" >> and "False" as the instances? I think the built-in types have their >

Re: Python slang

2016-08-05 Thread Random832
On Fri, Aug 5, 2016, at 20:14, Dennis Lee Bieber wrote: > .push() tends to make this one think "stack" and not general purpose > list. It's a bit unusual to have .pop() without a matching .push(). -- https://mail.python.org/mailman/listinfo/python-list

Re: Python slang

2016-08-05 Thread Chris Angelico
On Sat, Aug 6, 2016 at 12:46 PM, Random832 wrote: > On Fri, Aug 5, 2016, at 20:14, Dennis Lee Bieber wrote: >> .push() tends to make this one think "stack" and not general purpose >> list. > > It's a bit unusual to have .pop() without a matching .push(). balloon.inflate() balloon.pop() Chr

Re: Python slang

2016-08-05 Thread Rustom Mody
On Saturday, August 6, 2016 at 8:16:36 AM UTC+5:30, Random832 wrote: > On Fri, Aug 5, 2016, at 20:14, Dennis Lee Bieber wrote: > > .push() tends to make this one think "stack" and not general purpose > > list. > > It's a bit unusual to have .pop() without a matching .push(). True… OTOH I tend

Differences between \N escapes and unicodedata

2016-08-05 Thread Chris Angelico
Not all Unicode codepoints are supported by unicodedata.name(), but they are supported in \N escapes and unicodedata.lookup. Is there a reason for this? Normally, you can do this: >>> "\N{GREEK SMALL LETTER OMEGA}" 'ω' >>> unicodedata.name(_) 'GREEK SMALL LETTER OMEGA' But check this out: >>> u

Re: Python slang

2016-08-05 Thread Steven D'Aprano
On Sat, 6 Aug 2016 10:13 am, Chris Angelico wrote: > On Sat, Aug 6, 2016 at 9:21 AM, Marco Sulla > wrote: >> I want to clarify that when I say "different from the other >> languages", I mean "different from the most used languages", that in >> my mind are C/C++, C#, Java, PHP and Javascript, main

Re: Python slang

2016-08-05 Thread Terry Reedy
On 8/5/2016 6:00 PM, Marco Sulla via Python-list wrote: I have a simple curiosity: why Python has much keywords, and some builtin types and methods, that are different from the other languages? What is the rationale? I'm referring to: * `except` instead of `catch` Python partly takes its cue f

Re: Python slang

2016-08-05 Thread Chris Angelico
On Sat, Aug 6, 2016 at 1:10 PM, Steven D'Aprano wrote: > It amuses me when people know a handful of languages, all clearly derived > from each other, and think that's "most" languages. That's like somebody > who knows Dutch, Afrikaans and German[1] being surprised that Russian, > Cantonese, Hebrew

Re: Differences between \N escapes and unicodedata

2016-08-05 Thread eryk sun
On Sat, Aug 6, 2016 at 3:13 AM, Chris Angelico wrote: unicodedata.lookup("NULL") > '\x00' "\N{NULL}" > '\x00' unicodedata.name(_) > Traceback (most recent call last): > File "", line 1, in > ValueError: no such name > > Tested on 3.4, 3.5, and 3.6. Extremely odd. U+ has a le

Re: Python slang

2016-08-05 Thread Michael Selik
On Fri, Aug 5, 2016 at 10:12 PM Chris Angelico wrote: > That answers the question about True and False, but not about None, > which started the question. Why are instances capitalized here? Is it > simply a matter of grandfathering in, with no specific decision? > When people ask me why the core

Re: Python slang

2016-08-05 Thread eryk sun
On Sat, Aug 6, 2016 at 2:10 AM, Chris Angelico wrote: > That answers the question about True and False, but not about None, > which started the question. Why are instances capitalized here? Is it > simply a matter of grandfathering in, with no specific decision? Using CamelCase for the single-ins