[issue26997] Docs for pdb should note that __future__ magic doesn't work

2016-05-11 Thread Martin Jones

New submission from Martin Jones:

when debugging a program at the pdb prompt, attempting to import from the 
__future__ module appears successful, but actually doesn't work:

(Pdb) from __future__ import division
(Pdb) 2/3
0

This leads to inconsistencies between statements evaluated on the pdb prompt 
and those evaluated in the program, which can hamper debugging. It would be 
good to have a note added to the 2.7 documentation for pdb along the lines of:

Note: importing from the __future__ module does not work under pdb.

--
assignee: docs@python
components: Documentation
messages: 265300
nosy: Martin Jones, docs@python
priority: normal
severity: normal
status: open
title: Docs for pdb should note that __future__ magic doesn't work
type: enhancement
versions: Python 2.7

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26997>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: Learning new APIs/classes (beginner question)

2012-04-07 Thread Martin Jones
On Apr 7, 1:52 am, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:

 Sounds like this library is documented the same way most third party
 libraries are: as an afterthought, by somebody who is so familiar with
 the software that he cannot imagine why anyone might actually need
 documentation.

 I feel your pain.


Thanks Steven, I suspected this might be the case, but wasn't sure if
I was missing something obvious. Maybe I'll start on a different
project using better-documented or just the build-in libraries.

Many thanks,

Martin.
-- 
http://mail.python.org/mailman/listinfo/python-list


Learning new APIs/classes (beginner question)

2012-04-06 Thread Martin Jones
In a nutshell: My question is: how do experienced coders learn about
external/third-party classes/APIs?

I'm teaching myself Python through a combination of Hetland's
'Beginning
Python', various online tutorials and some past experience coding
ASP/VBScript. To start to learn Python I've set myself the task of
coding a
viewer/editor for Google Contacts and Google Calendar, mainly because
I've
been experiencing some synchronisation anomalies lately. This has so
far
entailed getting into Google's Contacts API.

Although they give some examples, my searches haven't been able to
pull up
anything approaching comprehensive documentation on each class/method.

Can anyone experienced advise on how they would usually go about
learning to
use third party APIs/classes like these?

With thanks,

Martin
-- 
http://mail.python.org/mailman/listinfo/python-list