[pygr-notify] Issue 22 in pygr: define informative __repr__ for BlastDBbase, BlastDB, and PrefixUnionDict; better KeyError report

codesite-noreply at google.com codesite-noreply at google.com
Sat Aug 16 15:41:49 PDT 2008


Issue 22: define informative __repr__ for BlastDBbase, BlastDB, and  
PrefixUnionDict; better KeyError report
http://code.google.com/p/pygr/issues/detail?id=22

New issue report by ti... at idyll.org:
replaces KeyError report:

   File "/Users/t/dev/pygr/pygr/seqdb.py", line 777, in get_real_id
     raise KeyError # FOUND NO MAPPING, SO RAISE EXCEPTION
KeyError


with more informative:

KeyError: "no key 'x' in database <BlastDB 'dnaseq'>"

and

KeyError: "no key 'db2.x' in <pygr.seqdb.PrefixUnionDict object at  
0xd95b90>"


Attachments:
	0001-defined-informative-__repr__-for-BlastDB-and-PrefixU.patch  2.1 KB


Issue attributes:
	Status: Assigned
	Owner: ti... at idyll.org
	Labels: Type-Patch Priority-Medium

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings



More information about the pygr-notify mailing list