[issue17174] Posix os.path.join should raise TypeError when passed unusable type

2013-02-09 Thread Thomas Scrace

New submission from Thomas Scrace:

Currently os.path.join will raise an AttributeError if passed an argument that 
does not have an endswith() method.

A try/except around the offending line would let us raise a more helpful 
TypeError:

except AttributeError as e:
bad = e.args[0].split()[0]
raise TypeError(object of type {} is not valid as a path
component.format(type(bad)))

--
components: Library (Lib)
messages: 181762
nosy: terry.reedy, thomas.scrace
priority: normal
severity: normal
status: open
title: Posix os.path.join should raise TypeError when passed unusable type
type: enhancement
versions: Python 3.4

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



[issue8809] smtplib should support SSL contexts

2011-04-10 Thread Thomas Scrace

Thomas Scrace t...@scrace.org added the comment:

Is anybody working on this issue? If not, I think it looks like it might be a 
nice one for me to tackle. I'll go ahead unless there are any objections.

--
nosy: +thomas.scrace

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