On Mon, Jun 9, 2014 at 10:34 AM, Roy Smith wrote:
> We noticed recently that:
>
> >>> None in 'foo'
>
> raises (at least in Python 2.7)
>
> TypeError: 'in ' requires string as left operand, not NoneType
>
> This is surprising.
>
> It's the same in 3.4, and I agree that it's surprising, at least t
On Thu, Jun 5, 2014 at 2:59 PM, Chris Angelico wrote:
> On Fri, Jun 6, 2014 at 4:52 AM, Ryan Hiebert wrote:
> > 2014-06-05 13:42 GMT-05:00 Johannes Bauer :
> >
> >> On 05.06.2014 20:16, Paul Rubin wrote:
> >> > Johannes Bauer writes:
> >> &g
2014-06-05 13:42 GMT-05:00 Johannes Bauer :
> On 05.06.2014 20:16, Paul Rubin wrote:
> > Johannes Bauer writes:
> >> line = line[:-1]
> >> Which truncates the trailing "\n" of a textfile line.
> >
> > use line.rstrip() for that.
>
> rstrip has different functionality than what I'm doing.
How so
On Wed, Apr 30, 2014 at 9:02 AM, Ethan Furman wrote:
> On 04/30/2014 06:14 AM, Ethan Furman wrote:
>
>> On 04/29/2014 03:51 PM, Chris Angelico wrote:
>>
>>> On Wed, Apr 30, 2014 at 8:42 AM, emile wrote:
>>>
On 04/29/2014 01:16 PM, Adam Funk wrote:
"A man pitches his tent, walks 1
On Tue, Apr 29, 2014 at 3:16 PM, Adam Funk wrote:
>
> "A man pitches his tent, walks 1 km south, walks 1 km east, kills a
> bear, & walks 1 km north, where he's back at his tent. What color is
> the bear?" ;-)
Skin or Fur?
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, Apr 24, 2014 at 9:38 PM, Ned Deily wrote:
> In article ,
> Gregory Ewing wrote:
> > My advice would be to steer clear of things like Fink and MacPorts
> > and do things the native MacOSX way wherever possible. That means
> > using a framework installation of Python and framework version
If you are starting a new project, I'd highly encourage you to use Python
3. It is a stable, well supported, and beautiful language, and gives you
the full power of the innovation that is current in the Python world.
Python 2 is still well supported (for a while to come), but you won't have
the sam