[Python-Dev] os.path.join failure mode
Greg Ewing
greg.ewing at canterbury.ac.nz
Sun Feb 10 00:23:17 CET 2013
More information about the Python-Dev mailing list
Sun Feb 10 00:23:17 CET 2013
- Previous message: [Python-Dev] os.path.join failure mode
- Next message: [Python-Dev] os.path.join failure mode
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Terry Reedy wrote: > I agree. Since the exception type is not documented and since no one > should intentionally pass anything but strings, and therefore should not > be writing > > try: > os.path.join(a,b) > except AttributeError: > barf() > > I think it would be acceptable to make a change in 3.4. Why should we go out of our way to address this particular case, and not any of the infinitely many other situations where you could forget to add parens to a function call? -- Greg
- Previous message: [Python-Dev] os.path.join failure mode
- Next message: [Python-Dev] os.path.join failure mode
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list