[issue37857] Setting logger.level directly has no effect due to caching in 3.7+

2020-06-15 Thread Doug Hellmann


Change by Doug Hellmann :


--
nosy: +doughellmann

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



[issue32998] regular expression regression in python 3.7

2018-03-05 Thread Doug Hellmann

Change by Doug Hellmann <d...@doughellmann.com>:


--
nosy: +doughellmann

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



[issue9216] FIPS support for hashlib

2017-01-17 Thread Doug Hellmann

Doug Hellmann added the comment:

@Antoine - The idea behind introducing some API mechanism is exactly as you 
say, to let the developer say "this use of this algorithm is not related to 
security" to tell FIPS systems to not be pedantic.

--

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



[issue9216] FIPS support for hashlib

2017-01-17 Thread Doug Hellmann

Doug Hellmann added the comment:

@Robert, I thought you were proposing a hashlib.fips module that did not 
include md5() at all. If it does include the function, and the function does 
whatever is needed to disable the "die when using MD5" on a FIPS system, then I 
agree it would work. 

Your point about the FIPS standard changing and needing to include more hash 
types in the future is good.

--

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



[issue9216] FIPS support for hashlib

2017-01-17 Thread Doug Hellmann

Doug Hellmann added the comment:

@rbcollins, I don't think providing a hashlib.fips module without md5() solves 
the problem. The idea is to have a way to call md5() in non-secure situations, 
and to signal to the FIPS system that the call is OK. A separate module would 
work if it included an md5() function that always did that signaling. But 
creating a separate module just to wrap one function like that seems like 
overkill, doesn't it?

--

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



[issue9216] FIPS support for hashlib

2016-11-23 Thread Doug Hellmann

Changes by Doug Hellmann <d...@doughellmann.com>:


--
nosy: +doughellmann

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



[issue22233] http.client splits headers on non-\r\n characters

2016-08-30 Thread Doug Hellmann

Changes by Doug Hellmann <doug.hellm...@gmail.com>:


--
nosy: +doughellmann

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



[issue24955] webbrowser broken on Mac OS X when using the BROWSER variable

2016-06-18 Thread Doug Hellmann

Changes by Doug Hellmann <doug.hellm...@gmail.com>:


--
nosy: +doughellmann

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



[issue24452] Make webbrowser support Chrome on Mac OS X

2016-06-18 Thread Doug Hellmann

Changes by Doug Hellmann <doug.hellm...@gmail.com>:


--
nosy: +doughellmann

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



[issue26961] Provide an API to help debug super().__getattribute__ results

2016-05-05 Thread Doug Hellmann

Doug Hellmann added the comment:

@Nick - Being able to get to the source is ok, but if I can get the actual type 
I can always get the source from that. I don't need the actual type object 
except to know what it is, and it seems more flexible to return the class 
object than a name or other reference to it that I then have to turn into the 
class object if I really did need it.

--

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



[issue26961] Provide an API to help debug super().__getattribute__ results

2016-05-05 Thread Doug Hellmann

Doug Hellmann added the comment:

The specific case I have right now is with a large code base written by someone 
else who is seeing a TypeError when they call super(their-local-class, 
self).__init__() because whatever class super() is returning is expecting 
arguments to __init__(). The TypeError thrown doesn't say what is being called 
(that's a separate issue) so I was trying to debug. The __init__() method of 
super() is a special wrapper, so there isn't any way using only super() to 
access the class it has decided to use. I'm currently walking the MRO by hand 
to find the class that's causing the problem. I expected to be able to do 
something like super(their-local-class, self).give_me_the_type_with('__init__') 
and get back a class.

--

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



[issue26053] regression in pdb output between 2.7 and 3.5

2016-01-08 Thread Doug Hellmann

New submission from Doug Hellmann:

Under python 2.7 using the "run" command within pdb and passing it arguments 
causes those arguments to be printed out. Under 3.5, this is no longer true.



$ python2.7 -m pdb pdb_run.py
> /Users/dhellmann/Dropbox/PyMOTW/Python3/pymotw-3/source/pdb/pdb_run.py(7)()
-> import sys
(Pdb) c
('Command-line args:', ['pdb_run.py'])
The program finished and will be restarted
> /Users/dhellmann/Dropbox/PyMOTW/Python3/pymotw-3/source/pdb/pdb_run.py(7)()
-> import sys
(Pdb) run a b c "this is a long argument"
Restarting pdb_run.py with arguments:
a b c this is a long argument
> /Users/dhellmann/Dropbox/PyMOTW/Python3/pymotw-3/source/pdb/pdb_run.py(7)()
-> import sys



$ python3.5 -m pdb pdb_run.py
> /Users/dhellmann/Dropbox/PyMOTW/Python3/pymotw-3/source/pdb/pdb_run.py(7)()
-> import sys
(Pdb) c
Command-line args: ['pdb_run.py']
The program finished and will be restarted
> /Users/dhellmann/Dropbox/PyMOTW/Python3/pymotw-3/source/pdb/pdb_run.py(7)()
-> import sys
(Pdb) run a b c "this is a long argument"
Restarting pdb_run.py with arguments:
pdb_run.py
> /Users/dhellmann/Dropbox/PyMOTW/Python3/pymotw-3/source/pdb/pdb_run.py(7)()
-> import sys


It looks like the issue is in the pdb main loop. Under 2.7 the restart logic 
has:

except Restart:
print "Restarting", mainpyfile, "with arguments:"
print "\t" + " ".join(sys.argv[1:])


but under 3.5 that was changed to:

except Restart:
print("Restarting", mainpyfile, "with arguments:")
print("\t" + " ".join(args))


The do_run() method has already reset sys.argv before throwing Restart, so to 
print the correct arguments sys.argv[1:] should be used.

--
files: pdb_run.py
keywords: 3.5regression
messages: 257785
nosy: doughellmann
priority: normal
severity: normal
status: open
title: regression in pdb output between 2.7 and 3.5
type: behavior
versions: Python 3.5, Python 3.6
Added file: http://bugs.python.org/file41538/pdb_run.py

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



[issue26053] regression in pdb output between 2.7 and 3.5

2016-01-08 Thread Doug Hellmann

Doug Hellmann added the comment:

I should also mention that I haven't tested early versions of 3.x to see where 
exactly the regression was introduced.

--

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



[issue23574] datetime: support leap seconds

2015-03-03 Thread Doug Hellmann

Changes by Doug Hellmann doug.hellm...@gmail.com:


--
nosy: +doughellmann

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



[issue19570] distutils' Command.ensure_dirname fails on Unicode

2013-12-11 Thread Doug Hellmann

Changes by Doug Hellmann doug.hellm...@gmail.com:


--
nosy: +doughellmann

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



[issue11638] python setup.py sdist --formats tar* crashes if version is unicode

2013-09-25 Thread Doug Hellmann

Changes by Doug Hellmann doug.hellm...@gmail.com:


--
nosy: +doughellmann

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



[issue1257] atexit errors should result in nonzero exit code

2013-08-18 Thread Doug Hellmann

Changes by Doug Hellmann doug.hellm...@gmail.com:


--
nosy: +doughellmann

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



[issue18776] atexit error display behavior changed in python 3

2013-08-18 Thread Doug Hellmann

New submission from Doug Hellmann:

Under python 2 when an atexit callback raised an exception the full traceback 
was displayed. Under python 3, only the summary of the exception is shown.

Input file:

import atexit


def exit_with_exception(message):
raise RuntimeError(message)

atexit.register(exit_with_exception, 'Registered first')
atexit.register(exit_with_exception, 'Registered second')


Python 2:

$ python2.7 source/atexit/atexit_exception.py
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File 
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/atexit.py, 
line 24, in _run_exitfuncs
func(*targs, **kargs)
  File source/atexit/atexit_exception.py, line 36, in exit_with_exception
raise RuntimeError(message)
RuntimeError: Registered second
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File 
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/atexit.py, 
line 24, in _run_exitfuncs
func(*targs, **kargs)
  File source/atexit/atexit_exception.py, line 36, in exit_with_exception
raise RuntimeError(message)
RuntimeError: Registered first
Error in sys.exitfunc:
Traceback (most recent call last):
  File 
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/atexit.py, 
line 24, in _run_exitfuncs
func(*targs, **kargs)
  File source/atexit/atexit_exception.py, line 36, in exit_with_exception
raise RuntimeError(message)
RuntimeError: Registered first

Python 3:

$ python3.3 source/atexit/atexit_exception.py
Error in atexit._run_exitfuncs:
RuntimeError: Registered second
Error in atexit._run_exitfuncs:
RuntimeError: Registered first

--
messages: 195586
nosy: doughellmann
priority: normal
severity: normal
status: open
title: atexit error display behavior changed in python 3
versions: Python 3.1, Python 3.2, Python 3.3, Python 3.4

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



[issue1680961] remove sys.exitfunc, rewrite atexit in C

2013-08-18 Thread Doug Hellmann

Changes by Doug Hellmann doug.hellm...@gmail.com:


--
nosy: +doughellmann

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



[issue17998] internal error in regular expression engine

2013-07-20 Thread Doug Hellmann

Changes by Doug Hellmann doug.hellm...@gmail.com:


--
nosy: +doughellmann

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



[issue18191] urllib2/urllib.parse.splitport does not handle IPv6 correctly

2013-06-12 Thread Doug Hellmann

Changes by Doug Hellmann doug.hellm...@gmail.com:


--
nosy: +doughellmann

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



[issue18191] urllib2/urllib.parse.splitport does not handle IPv6 correctly

2013-06-12 Thread Doug Hellmann

Doug Hellmann added the comment:

LGTM

--

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



[issue18111] Add a default argument to min max

2013-06-03 Thread Doug Hellmann

Doug Hellmann added the comment:

+1 on adding this

I found today via @dabeaz's cookbook that iter() has a sentinel-detection use 
case. Having one in min/max seems *far* more obviously useful. It's also 
consistent with quite a few methods on builtin types where we provide a way to 
deal with unknown data safely by having a default instead of catching 
exceptions directly.

--
nosy: +doughellmann

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



[issue13817] deadlock in subprocess while running several threads using Popen

2012-02-15 Thread Doug Hellmann

Changes by Doug Hellmann doug.hellm...@gmail.com:


--
nosy: +doughellmann

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



[issue12841] Incorrect tarfile.py extraction

2011-09-02 Thread Doug Hellmann

Changes by Doug Hellmann doug.hellm...@gmail.com:


--
nosy: +doughellmann

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



[issue11879] TarFile.chown: should use TarInfo.uid if user lookup fails

2011-09-01 Thread Doug Hellmann

Changes by Doug Hellmann doug.hellm...@gmail.com:


--
nosy: +doughellmann

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



[issue1170] shlex have problems with parsing unicode

2011-07-18 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

Is unicode supported by shlex in 3.x already? It's curious that unicode support 
is considered a new feature, rather than a bug. I understand wanting to 
allocate development resources carefully, though. If someone were to prepare a 
patch, would it even have a chance of being accepted in 2.7?

--

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



[issue1170] shlex have problems with parsing unicode

2011-07-17 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

Right. Any program that needs to parse command lines containing filenames or 
other arguments with unicode characters will encounter this problem.

--

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



[issue1170] shlex have problems with parsing unicode

2011-01-14 Thread Doug Hellmann

Changes by Doug Hellmann doug.hellm...@gmail.com:


--
nosy: +doughellmann

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



[issue7372] Regression in pstats

2011-01-08 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

I just ran into this problem with pstats under Python 2.7.  The ticket is 
marked as fixed, but it looks like the change was only checked in under the 
py3k branch.

What's the policy on fixing stuff like this for 2.7 patch releases?

Thanks,
Doug

--
nosy: +doughellmann

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



[issue9509] argparse FileType raises ugly exception for missing file

2010-11-21 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

Hi, Tarsis,

That patch looks good to me.

Thanks!
Doug

--

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



[issue9509] argparse FileType raises ugly exception for missing file

2010-11-21 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

Oh, yeah, a test is a good idea.

--

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



[issue10263] python -m site does not print path details

2010-11-01 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

Adding a print to the site.py in Distribute's egg shows it is being run when I 
use 'python -m site'.  However, when I run 'python -c import site; print 
site.__file__' I get the version from the stdlib, as expected.

I guess the module finding mechanism for -m is different from the import code?

--

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



[issue10263] python -m site does not print path details

2010-11-01 Thread Doug Hellmann

Changes by Doug Hellmann doug.hellm...@gmail.com:


--
nosy: +tarek

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



[issue10263] python -m site does not print path details

2010-10-31 Thread Doug Hellmann

New submission from Doug Hellmann doug.hellm...@gmail.com:

Running python -m site is supposed to print a report about the current import 
path and its components (like USER_BASE and USER_SITE).

This works under 2.6 and 3.1, but not 2.7.  No output is produced under 2.7 at 
all.  

When I add a print statement to the end of the module, I see that __name__ is 
set to site instead of __main__, so the _script() function isn't being 
invoked at all.

--
components: Library (Lib)
messages: 120045
nosy: doughellmann
priority: normal
severity: normal
status: open
title: python -m site does not print path details
versions: Python 2.7

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



[issue10263] python -m site does not print path details

2010-10-31 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

I downloaded an OS X installer from python.org, but I don't remember the date I 
did that.

Here's the output when I start the interpreter:

$ which python
/Library/Frameworks/Python.framework/Versions/2.7/bin/python
$ python
Python 2.7 (r27:82508, Jul  3 2010, 21:12:11) 
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type help, copyright, credits or license for more information.


--

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



[issue10263] python -m site does not print path details

2010-10-31 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

Actually I'm trying to update the PyMOTW article about site, and I discovered 
that the output from the old examples that showed using --user-base and 
--user-site were no longer producing any output.  It looks like the build of 
2.7 I downloaded is fairly old, so I'll try updating that.

--

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



[issue10263] python -m site does not print path details

2010-10-31 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

Ah, I assumed that since the revision number was older there might be a newer 
build available now.

--

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



[issue10263] python -m site does not print path details

2010-10-31 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

That's strange.  I have Distribute 0.6.10, including an easy-install.pth file, 
installed under 2.6 and it doesn't exhibit the problem.  Is there some 
interaction between a change in Python 2.7 and Distribute?

--

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



[issue10020] docs for sqlite3 describe functions not available without recompiling

2010-10-03 Thread Doug Hellmann

New submission from Doug Hellmann doug.hellm...@gmail.com:

The documentation for the sqlite3 module describes enable_load_extension() and 
load_extension() methods of the Connection object, but those functions are only 
available if the user has compiled from source *after* modifying the setup.py 
to turn off SQLITE_OMIT_LOAD_EXTENSION.

I'd like to see the functions enabled by default (by changing setup.py) but at 
the very least the documentation should be updated.

--
components: Extension Modules
messages: 117919
nosy: doughellmann
priority: normal
severity: normal
status: open
title: docs for sqlite3 describe functions not available without recompiling
versions: Python 2.7

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



[issue10020] docs for sqlite3 describe functions not available without recompiling

2010-10-03 Thread Doug Hellmann

Changes by Doug Hellmann doug.hellm...@gmail.com:


--
assignee:  - d...@python
components: +Documentation
nosy: +d...@python

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



[issue10020] docs for sqlite3 describe functions not available without recompiling

2010-10-03 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

Thanks, Gerhard!

--
status: pending - open

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



[issue9509] argparse FileType raises ugly exception for missing file

2010-08-05 Thread Doug Hellmann

Changes by Doug Hellmann doug.hellm...@gmail.com:


--
keywords: +easy

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



[issue9509] argparse FileType raises ugly exception for missing file

2010-08-04 Thread Doug Hellmann

New submission from Doug Hellmann doug.hellm...@gmail.com:

Most of the argparse type converters handle exceptions with a single line error 
message explaining the problem.  For example, if an argument -i is declared as 
an int, but the value given ('a') cannot be converted to an int, the message is 
something like argument -i: invalid int value: 'a'.  

On the other hand, FileType raises an IOError, which isn't being caught and 
converted to the simpler error message. Instead, a full traceback is printed.  
To be consistent, the IOError should be trapped and a single error message 
printed.

--
components: Library (Lib)
files: argparse_filetype_error.py
messages: 112798
nosy: doughellmann
priority: normal
severity: normal
status: open
title: argparse FileType raises ugly exception for missing file
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file18380/argparse_filetype_error.py

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



[issue9509] argparse FileType raises ugly exception for missing file

2010-08-04 Thread Doug Hellmann

Changes by Doug Hellmann doug.hellm...@gmail.com:


Added file: http://bugs.python.org/file18381/argparse_int_error.py

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



[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-03 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

Thanks, everyone!

--

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



[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-02 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

Yes, that doc change  is clear.  Thanks!

--
nosy: +ted.turocy

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



[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-01 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

I haven't read the existing tests, but I am not seeing the behavior described 
by Ted in msg112258.  If I specify the prefix_chars as '+/' and define a long 
option '//myopt' then using ++myopt on the command line gives an error that the 
option is unrecognized.  I don't know if that's a bug or the desired behavior.

--

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



[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-01 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

Oh, I should point out that last comment is describing what I see when using 
the unpatched 2.7 version of the module.

--

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



[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-01 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

I was actually surprised that prefix_chars didn't allow *any* of those 
characters to indicate an option.  For example, a program on Unix might use 
options that start with '-', but also support '/' as a prefix under Windows.  
If that's the intended behavior, that's OK, and maybe the docs can be made more 
specific.

It does, however, open the question of how to pick the prefix to use for 
automatically-generated options.  Maybe the current behavior is best after all, 
so the programmer disabling the '-' prefix character realizes they need to 
handle the help and version options explicitly.

--

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



[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-01 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

Explicitly specifying aliases makes sense, it just wasn't clear that was the 
intent from the existing documentation.  So, I don't think the behavior needs 
to change, but a doc update might help.

--

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



[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-01 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

Sorry I'm not being clear: I do like the patch, I think the exception should 
not be raised.

--

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



[issue9444] argparse does not honor prefix_chars when adding default options

2010-07-31 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

One solution would be to use the first character of prefix_chars when building 
those default options.

--

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



[issue9296] json module skipkeys handling changed exception types in 2.7

2010-07-21 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

Committed to py3k as r83016, release31-maint as r83017, and release27-maint as 
r83018.

Thanks for your help, everyone.

--
resolution:  - fixed
status: open - closed

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



[issue9296] json module skipkeys handling changed exception types in 2.7

2010-07-20 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

Ray, thanks for the patches.  Antoine, I appreciate the review.  I'll try to 
get these checked in to svn in the next day or two.  

I see that this ticket is tagged as related to versions 2.7, 3.1, and 3.2.  
Should the changes be applied to any branches other than trunk and py3k?

--

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



[issue9296] json module skipkeys handling changed exception types in 2.7

2010-07-19 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

Bob fixed this in simplejson under ticket 82 
(http://code.google.com/p/simplejson/issues/detail?id=82).

--

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



[issue9296] json module skipkeys handling changed exception types in 2.7

2010-07-18 Thread Doug Hellmann

New submission from Doug Hellmann doug.hellm...@gmail.com:

Under Python 2.6 the json encoder raised a TypeError when it encountered 
dictionary keys that were not strings.  Under 2.7, that exception has changed 
to a ValueError, but the documentation still says it raises TypeError.  I'm not 
sure which is right, but TypeError seems like the correct exception.

--
components: Library (Lib)
messages: 110660
nosy: doughellmann
priority: normal
severity: normal
status: open
title: json module skipkeys handling changed exception types in 2.7
type: behavior
versions: Python 2.7

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



[issue9296] json module skipkeys handling changed exception types in 2.7

2010-07-18 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

The attached file json_skipkeys.py illustrates the problem.

--
Added file: http://bugs.python.org/file18053/json_skipkeys.py

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



[issue9296] json module skipkeys handling changed exception types in 2.7

2010-07-18 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

Looking into the code, I see in _json.c that a ValueError is raised by 
encoder_listencode_dict() on line 2150, but in the pure-Python implementation 
in json/encoder.py a TypeError is raised by _make_iterencode() on line 376.

--

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



[issue6977] Getopt documentation ambiguity

2009-09-23 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

Is there a way in getopt to define an option that takes an optional
argument?  I thought options either required args or did not accept them
at all.

--
nosy: +doughellmann

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



[issue6958] Add Python command line flags to configure logging

2009-09-22 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

@theller, I'm not sure what your point is.  I'm asking what the defined
behavior is if we provide some sort of global way to run a program with
logging configured, and then that app turns around and tries to
reconfigure it.  Should the last one to call the configuration
function(s) win, or the first?

I like the idea of adding this feature to the logging module better than
building it into the interpreter, but I still think it opens up areas
for unexpected behavior, and it would be better to just let each
application set up its own logging.

--

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



[issue6958] Add Python command line flags to configure logging

2009-09-21 Thread Doug Hellmann

Changes by Doug Hellmann doug.hellm...@gmail.com:


--
nosy: +doughellmann

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



[issue6958] Add Python command line flags to configure logging

2009-09-21 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

I think I'm with Michael on this one.  I'd rather add logging
configuration to any stdlib modules that support being run directly and
want to support logging.

--

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



[issue6958] Add Python command line flags to configure logging

2009-09-21 Thread Doug Hellmann

Doug Hellmann doug.hellm...@gmail.com added the comment:

How do these global settings (either via the interpreter or a wrapper
in the logging module) change what an app might do on its own?  IOW, if
my app is already written to configure logging, and someone invokes it
with these other settings, which settings are used?

--

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



[issue4040] ignored exceptions in generators (regression?)

2009-05-28 Thread Doug Hellmann

Changes by Doug Hellmann doug.hellm...@gmail.com:


--
nosy: +doughellmann

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



[issue4184] Remove use of private attributes in smtpd

2008-10-24 Thread Doug Hellmann

Changes by Doug Hellmann [EMAIL PROTECTED]:


--
nosy: +doughellmann

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4184
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com