On Fri, Sep 5, 2014 at 2:38 PM, Dan Sommers wrote:
> On Thu, 04 Sep 2014 15:17:17 +1000, Chris Angelico wrote:
>
>> On Thu, Sep 4, 2014 at 9:39 AM, MRAB wrote:
>
>>> The key of a dict could also be int, float, or tuple.
>>
>> Yes! Yes! DEFINITELY do this!! Ahem. Calm down a little, it's not that
On Thu, 04 Sep 2014 15:17:17 +1000, Chris Angelico wrote:
> On Thu, Sep 4, 2014 at 9:39 AM, MRAB wrote:
>> The key of a dict could also be int, float, or tuple.
>
> Yes! Yes! DEFINITELY do this!! Ahem. Calm down a little, it's not that
> outlandish an idea...
Using floats is a bad idea. Consi
On Fri, Sep 5, 2014 at 12:56 PM, Rustom Mody wrote:
> On Friday, September 5, 2014 8:01:00 AM UTC+5:30, Chris Angelico wrote:
>
>> That's one particular example that's from Unix. I've seen (and
>> written) Windows GUI programs that use consoles, too. And OS/2 ones.
>> Can't speak for Mac OS Classi
On Fri, Sep 5, 2014 at 12:53 PM, Denis McMahon wrote:
> On Thu, 04 Sep 2014 21:42:56 +1000, Chris Angelico wrote:
>
>> On Thu, Sep 4, 2014 at 9:17 PM, Denis McMahon
>> wrote:
>>> On Wed, 03 Sep 2014 07:16:34 +, Steven D'Aprano wrote:
>>>
Who uses + for disjunction (∨ OR) and concatenatio
On Friday, September 5, 2014 8:01:00 AM UTC+5:30, Chris Angelico wrote:
> That's one particular example that's from Unix. I've seen (and
> written) Windows GUI programs that use consoles, too. And OS/2 ones.
> Can't speak for Mac OS Classic as I've never used it, but I'd be
> surprised if it's not
On Thu, 04 Sep 2014 21:42:56 +1000, Chris Angelico wrote:
> On Thu, Sep 4, 2014 at 9:17 PM, Denis McMahon
> wrote:
>> On Wed, 03 Sep 2014 07:16:34 +, Steven D'Aprano wrote:
>>
>>> Who uses + for disjunction (∨ OR) and concatenation for conjunction (∧
>>> AND)? That's crazy notation.
>>
>> The
In article ,
Chris Angelico wrote:
> On Fri, Sep 5, 2014 at 12:24 PM, Rustom Mody wrote:
> > On Thursday, September 4, 2014 7:38:40 PM UTC+5:30, Chris Angelico wrote:
> >
> >> So a fairer comparison is: How many applications produce non-debug
> >> output on stderr or stdout? And that would be a
On Fri, Sep 5, 2014 at 12:24 PM, Rustom Mody wrote:
> On Thursday, September 4, 2014 7:38:40 PM UTC+5:30, Chris Angelico wrote:
>
>> So a fairer comparison is: How many applications produce non-debug
>> output on stderr or stdout? And that would be a much larger
>> percentage. Even GUI programs wi
On Thursday, September 4, 2014 7:38:40 PM UTC+5:30, Chris Angelico wrote:
> So a fairer comparison is: How many applications produce non-debug
> output on stderr or stdout? And that would be a much larger
> percentage. Even GUI programs will, in some cases - for instance, try
> firing up your favo
On Fri, Sep 5, 2014 at 12:09 PM, Ian Kelly wrote:
> On Thu, Sep 4, 2014 at 6:12 PM, Chris Angelico wrote:
>> If it's a Unicode string (which is the default in Python 3), all
>> Unicode characters will work correctly.
>
> Assuming the library that needs this is expecting codepoints and will
> acce
On Thu, Sep 4, 2014 at 6:12 PM, Chris Angelico wrote:
> If it's a Unicode string (which is the default in Python 3), all
> Unicode characters will work correctly.
Assuming the library that needs this is expecting codepoints and will
accept integers greater than 255.
> If it's a byte string (the
On Friday, September 5, 2014 2:22:37 AM UTC+5:30, Ned Batchelder wrote:
> On 9/4/14 1:51 PM, Stewart Graff (Visual Concepts) wrote:
> > Lines 304 - 318 contain non-ascii characters.
> > You need to rewrite all of the leading whitespace for the function
> > def confirm_buffer_is_saved(self, editwin)
On Fri, Sep 5, 2014 at 7:06 AM, Joshua Landau wrote:
> On 3 September 2014 15:48, wrote:
>> Peter Otten <__pete...@web.de> wrote:
>>> >>> [ord(c) for c in "This is a string"]
>>> [84, 104, 105, 115, 32, 105, 115, 32, 97, 32, 115, 116, 114, 105, 110, 103]
>>>
>>> There are other ways, but you hav
On Thursday, September 4, 2014 1:52:37 PM UTC-7, Ned Batchelder wrote:
> This seems like enough of a non-sequitur that I wonder if you posted it
> in the wrong place?
Maybe someone is trying out a new chatbot program?
--
https://mail.python.org/mailman/listinfo/python-list
On 3 September 2014 15:48, wrote:
> Peter Otten <__pete...@web.de> wrote:
>> >>> [ord(c) for c in "This is a string"]
>> [84, 104, 105, 115, 32, 105, 115, 32, 97, 32, 115, 116, 114, 105, 110, 103]
>>
>> There are other ways, but you have to describe the use case and your Python
>> version for us
On 9/4/14 1:51 PM, Stewart Graff (Visual Concepts) wrote:
Lines 304 – 318 contain non-ascii characters.
You need to rewrite all of the leading whitespace for the function
def confirm_buffer_is_saved(self, editwin):
Make sure you also replace the “&nbs p; “ with spaces on line 313.
This se
On 04/09/2014 19:13, sohi.khus...@gmail.com wrote:
Hello group members,
I have worked with languages like C, C++, C#, Java and Objective C before.
Now I want to learn Python. Most of the resources that I have seen online are
oriented mainly towards beginners to programming. Is there any other
Thanks Alister!
--
https://mail.python.org/mailman/listinfo/python-list
Thanks Chris! I think this is the best resource I have found so far as well. :)
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, Sep 4, 2014 at 2:34 PM, alister
wrote:
> On Thu, 04 Sep 2014 11:13:16 -0700, sohi.khushi7 wrote:
>
>> Hello group members,
>>
>> I have worked with languages like C, C++, C#, Java and Objective C
>> before.
>>
>> Now I want to learn Python. Most of the resources that I have seen
>> online
On Thu, 04 Sep 2014 11:13:16 -0700, sohi.khushi7 wrote:
> Hello group members,
>
> I have worked with languages like C, C++, C#, Java and Objective C
> before.
>
> Now I want to learn Python. Most of the resources that I have seen
> online are oriented mainly towards beginners to programming. Is
On Thu, Sep 4, 2014 at 8:13 PM, wrote:
> Hello group members,
>
> I have worked with languages like C, C++, C#, Java and Objective C before.
>
> Now I want to learn Python. Most of the resources that I have seen online are
> oriented mainly towards beginners to programming. Is there any other go
Hello group members,
I have worked with languages like C, C++, C#, Java and Objective C before.
Now I want to learn Python. Most of the resources that I have seen online are
oriented mainly towards beginners to programming. Is there any other good
source which can be used by a person who knows
Lines 304 - 318 contain non-ascii characters.
You need to rewrite all of the leading whitespace for the function
def confirm_buffer_is_saved(self, editwin):
Make sure you also replace the "&nbs p; " with spaces on line 313.
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, Sep 4, 2014 at 11:37 PM, Steven D'Aprano
wrote:
> Chris Angelico wrote:
>
>> On Thu, Sep 4, 2014 at 4:23 PM, Rustom Mody wrote:
>>> You seem to think a print hanging out of a program to be ok, normal.
>>> I consider it exceptional.
>>
>> You keep saying that it's exceptional. You haven't
On 04/09/2014 14:37, Steven D'Aprano wrote:
We often recommend using print as an easy and effective debugging tool. But
we don't (well, I don't) recommend leaving those print statements in the
code once the problem is debugged.
I've given up completely with print for debugging. I start with
On Thu, Sep 4, 2014 at 11:25 PM, Steven D'Aprano
wrote:
> Of course console output is
> often useful, but it is slightly smelly:
>
> - beginners have a tendency to use print when they should be using
> return, and consequently can't easily chain functions together;
>
> - languages like shell scr
Chris Angelico wrote:
> On Thu, Sep 4, 2014 at 4:23 PM, Rustom Mody wrote:
>> You seem to think a print hanging out of a program to be ok, normal.
>> I consider it exceptional.
>
> You keep saying that it's exceptional. You haven't really said why.
> It's the simplest form of "program produces o
On Thu, Sep 4, 2014 at 11:15 PM, Rustom Mody wrote:
> How do each of these apply when comparing
> a. A program that defaults to passing and returning data structures and
>uses print in a very controlled way
>
> b. A program that randomly mixes call/return with input/print
Considering that I'v
Chris Angelico wrote:
> On Thu, Sep 4, 2014 at 12:10 PM, Rustom Mody
> wrote:
>> On Thursday, September 4, 2014 7:26:56 AM UTC+5:30, Chris Angelico wrote:
>>> On Thu, Sep 4, 2014 at 11:48 AM, Rustom Mody wrote:
>>> NO PRINT
>>
>>
>>> Why are you so dead against print?
>>
>> Because it herald
On Thursday, September 4, 2014 12:10:04 PM UTC+5:30, Chris Angelico wrote:
> Practicality beats purity.
Nice statement! Now where did I see it?? Let me see...
I see next to it some others:
- Beautiful is better than ugly.
- Explicit is better than implicit.
- Simple is better than complex.
- Com
On Thursday, September 4, 2014 3:59:57 PM UTC+5:30, alister wrote:
> On Wed, 03 Sep 2014 19:33:41 -0700, Rustom Mody wrote:
> > On Thursday, September 4, 2014 7:56:31 AM UTC+5:30, Chris Angelico
> > wrote:
> >> When you start a script, you have a consistent environment - an empty
> >> one. When yo
On Thu, Sep 4, 2014 at 9:17 PM, Denis McMahon wrote:
> On Wed, 03 Sep 2014 07:16:34 +, Steven D'Aprano wrote:
>
>> Who uses + for disjunction (∨ OR) and concatenation for conjunction (∧
>> AND)? That's crazy notation.
>
> The way I was taught it in the mid 1980s, a.b === a and b, a+b === a or
On Wed, 03 Sep 2014 07:16:34 +, Steven D'Aprano wrote:
> Who uses + for disjunction (∨ OR) and concatenation for conjunction (∧
> AND)? That's crazy notation.
The way I was taught it in the mid 1980s, a.b === a and b, a+b === a or b.
--
Denis McMahon, denismfmcma...@gmail.com
--
https://ma
On 2014-09-04 06:17, Chris Angelico wrote:> On Thu, Sep 4, 2014 at 9:39
AM, MRAB wrote:
>> I occasionally think about a superset of JSON, called, say, "pyson"
>> ... ah, name already taken! :-(
>
> While I'm somewhat sympathetic to the concept, there are some parts
> of your description that I di
On 2014-09-04 14:08, Chris Angelico wrote:
> On Thu, Sep 4, 2014 at 1:52 PM, Cameron Simpson wrote:
>> On 03Sep2014 20:59, Tim Chase wrote:
>>> - mime-parts can be nested, so I need to recursively handle them
>>
>> Just to this. IIRC, the MIME part delimiter is supposed to be
>> absolute. That is,
On Wed, 03 Sep 2014 19:33:41 -0700, Rustom Mody wrote:
> On Thursday, September 4, 2014 7:56:31 AM UTC+5:30, Chris Angelico
> wrote:
>> On Thu, Sep 4, 2014 at 12:10 PM, Rustom Mody wrote:
>> > On Thursday, September 4, 2014 7:26:56 AM UTC+5:30, Chris Angelico
>> > wrote:
>> >> On Thu, Sep 4, 2014
37 matches
Mail list logo