[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-26 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


Removed file: http://bugs.python.org/file21381/unnamed

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



[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-26 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

IMHO the current unexpected list is fairly pointless.  I just ran the test 
suite on 3.3 and I got the usual expected list of unexpected skips:
7 skips unexpected on linux2:
test_bz2 test_dbm_gnu test_dbm_ndbm test_tcl test_tk
test_ttk_guionly test_ttk_textonly
If these tests were really *expected to run* on my machine, having them skipped 
would be a failure.  They are instead just a set of tests that I *might be able 
to run* once I install all the right dependencies.

I think the tests can be classified in 3 categories:
 1) tests that are known to always run everywhere (e.g. test_unittest);
 2) tests that are known to always run on specific platforms and never on 
others (e.g. test_winreg);
 3) tests that might run on some platforms depending on some specific condition 
(e.g. test_zlib);

For each of these cases, regrtest should:
 1) fail if the test is not run;
 2) fail if the test is not run on the platform(s) where it's always available, 
always skip it on the others;
 3) skip the test conditionally without failing (e.g. checking if zlib can be 
imported or not);

A special case of 3) is when the skip depends on the platform name rather than 
the availability of some specific module/function (e.g. if  some platforms 
shipped with a buggy version of a library and there's no way to check if the 
library is buggy other than keeping a list of platforms that are known to use 
that version).  In this case the condition should check only for the platform 
where it's known to fail, and more platforms can be added if/when people report 
them.

I agree that the logic for this should be moved out of regrtest and added to 
the specific tests.

It's also possible to provide better skip messages, e.g.:
-test_winreg skipped -- No module named 'winreg'
-test_tk skipped -- No module named '_tkinter'
-test_urllibnet skipped -- Use of the `network' resource not enabled
+test_winreg skipped -- No module named 'winreg' (winreg is available on 
windows only)
+test_tk skipped -- No module named '_tkinter' (tcl/tk not installed)
+test_urllibnet skipped -- Use of the `network' resource not enabled (run the 
tests with -unetwork or -uall to enable it)

--

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



[issue11668] _multiprocessing.Connection.poll with timeout uses polling under Windows

2011-03-26 Thread Kristján Valur Jónsson

Kristján Valur Jónsson krist...@ccpgames.com added the comment:

I don't think it is necessary to have the initial call to PeekNamedPipe.  It is 
a kernel call just like WFMO and so just as expensive.  It also has some 
strange semantics, (such as being possibly blocking in a multithreaded 
application.  read the docs...).  Just go for the WFMO to keep things simple.

--

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



[issue5135] Expose simplegeneric function in functools module

2011-03-26 Thread Daniel Urban

Changes by Daniel Urban urban.dani...@gmail.com:


--
nosy: +durban

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



[issue11071] What's New review comments

2011-03-26 Thread Vinay Sajip

Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:


--
nosy:  -vinay.sajip

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



[issue11680] decimal module generates AttributeError: on call to as_integer_ratio

2011-03-26 Thread Daniel Urban

Daniel Urban urban.dani...@gmail.com added the comment:

The problem seems to be that you're calling Decimal.from_float with a Decimal 
instance, not a float.  I'm not sure that should even work.  The Decimal 
constructor can create a decimal from an other decimal.

Your suggested solution probably would solve this exception, but I'm not sure 
it would be the good solution.  This way when creating a decimal from another 
decimal with from_float (which doesn't makes much sense, I think) could result 
in a loss of precision:

 Decimal(Decimal('0.9'))
Decimal('0.9')
 
 math.fabs(Decimal('0.9'))
1.0


--
nosy: +durban
type: crash - behavior
versions: +Python 3.1, Python 3.2, Python 3.3

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



[issue11680] decimal module generates AttributeError: on call to as_integer_ratio

2011-03-26 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

As Daniel says, from_float expects a float object, not a Decimal instance.

What did you want to achieve in the following line:

   self.from_float(value * decimal.Decimal(1.0))/decimal.Decimal(1.0)

?

By the way: in all current versions of Python, from_float is redundant:  you 
can create a Decimal directly from a float:


Python 2.7.1+ (2.7:d52b1faa7b11+, Mar 25 2011, 21:48:24) 
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type help, copyright, credits or license for more information.
 from decimal import Decimal
[64140 refs]
 Decimal(2.3)
Decimal('2.29982236431605997495353221893310546875')
[64149 refs]

--
nosy: +mark.dickinson
resolution:  - invalid
status: open - closed

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



[issue11635] concurrent.futures uses polling

2011-03-26 Thread s7v7nislands

Changes by s7v7nislands s7v7nisla...@gmail.com:


--
nosy: +s7v7nislands

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



[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2011-03-26 Thread Steven Bethard

Steven Bethard steven.beth...@gmail.com added the comment:

Thanks for the analysis Eric. Yeah, it does seem like it's not possible to 
implement this feature request while still supporting optionals with variable 
number arguments.

@andersk: Would the restriction to only having flags with a fixed number of 
arguments be acceptable for your use case?

--
versions:  -Python 3.1

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



[issue11614] import __hello__ is broken in Python 3

2011-03-26 Thread Andreas Stührk

Andreas Stührk andy-pyt...@hammerhartes.de added the comment:

On Fri, Mar 25, 2011 at 5:52 PM, Éric Araujo rep...@bugs.python.org wrote:
 Okay, it doesn’t work with -m __hello__, but using -c import __hello__ I 
 can see the message in all versions.

Can you elaborate on that? I.e. the versions and the actual message.
The current bytecode of the __hello__ module is (default branch):

  1   0 LOAD_CONST   1 (True)
  3 STORE_NAME   1 (initialized)
  6 LOAD_CONST   0 (None)
  9 RETURN_VALUE

I'd be a bit surprised if that really prints a message.

--

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



[issue11675] multiprocessing Arrays not automatically zeroed.

2011-03-26 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 2af0c2c106ea by Mark Dickinson in branch '2.7':
Issue #11675:  Zero-out newly-created multiprocessing.[Raw]Array objects.
http://hg.python.org/cpython/rev/2af0c2c106ea

--
nosy: +python-dev

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



[issue7311] Bug on regexp of HTMLParser

2011-03-26 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

The attached patch changes the regex to allow non-ascii letters in attribute 
values (using \w with the re.UNICODE flag instead of [a-zA-Z0-9_]).

Using [^\s] (or even [^ ]) might be OK too, since that's what browsers seem 
to use (e.g. Firefox and Chrome show テ<ス＀☃ト   -d-fg as title of 'a href= 
title=テ<ス＀☃ト   -d-fg href=foo/a', including the non-ascii spaces in the 
middle).

--
keywords: +patch
nosy: +belopolsky
Added file: http://bugs.python.org/file21406/issue7311.diff

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



[issue7284] argparse - display version in usage by default

2011-03-26 Thread Steven Bethard

Steven Bethard steven.beth...@gmail.com added the comment:

In argparse, you could so something like:

version = 2.7
parser = argparse.ArgumentParser(
description=My program XXX, version  + version)
parser.add_argument('-v', action='version', version=version)

That would then produce:

usage: PROG [-h] [-v]

My program XXX, version 2.7

optional arguments:
  -h, --help  show this help message and exit
  -v  show program's version number and exit

Is that acceptable? This is basically the style of svn:

$ svn help
usage: svn subcommand [options] [args]
Subversion command-line client, version 1.6.15.
...

I see though that vi puts the full name and version before the usage (which is 
currently impossible in argparse):

$ vi --help
VIM - Vi IMproved 7.0 (2006 May 7, compiled Sep 19 2009 17:22:08)

usage: vim [arguments] [file ..]   edit specified file(s)
...

Most other programs I tried didn't give a version number at all, though some 
did give a full name before the usage:

$ hg
Mercurial Distributed SCM
...
$ hg clone --help
hg clone [OPTION]... SOURCE [DEST]
...
$ git
usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]
...
$ emacs --help
Usage: emacs [OPTION-OR-FILENAME]...
...

I guess we could add, say, a headline= option to ArgumentParser which would 
then be printed before the usage message if it's really crucial to have that 
message first... I'd rather not though if the description= approach is 
acceptable to you, since adding headline= would add more complexity to an 
already complex ArgumentParser constructor.

--

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



[issue11675] multiprocessing Arrays not automatically zeroed.

2011-03-26 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 0cb276628528 by Mark Dickinson in branch '3.1':
Issue #11675:  Zero-out newly-created multiprocessing.[Raw]Array objects.
http://hg.python.org/cpython/rev/0cb276628528

New changeset 64ab52a64cc9 by Mark Dickinson in branch '3.2':
Merge #11675
http://hg.python.org/cpython/rev/64ab52a64cc9

New changeset f60e55b14d92 by Mark Dickinson in branch 'default':
Merge #11675
http://hg.python.org/cpython/rev/f60e55b14d92

--

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



[issue8554] suspicious comment in msilib.py/__init__.py

2011-03-26 Thread Mark Mc Mahon

Mark Mc Mahon mtnbikingm...@gmail.com added the comment:

Per: http://msdn.microsoft.com/en-us/library/aa369212(v=vs.85).aspx
The Identifier data type is a text string. Identifiers may contain the
ASCII characters A-Z (a-z), digits, underscores (_), or periods (.). However, 
every identifier must begin with either a letter or an underscore.

So the spec would say that colons are NOT allowed. Editing some entries in the 
File table of an MSI (using Orca from the MSI SDK) and running the validation 
confirms that.

All the following were flagged as errors during validation:
'KDiff3EXE;ASDF@#$', 'chmFile-', 'pdfFile(', 'hgbook]', 'TortoisePlinkEXE]', 
'Hg.Cämd', 'merg:epatterns.rc'

I think that this issue should be fixed when issue2694 is fixed. (I would like 
to put together some tests and patch for that :)

--
nosy: +markm

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



[issue11675] multiprocessing Arrays not automatically zeroed.

2011-03-26 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
assignee:  - mark.dickinson
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

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



[issue11673] RawArray does not accept long

2011-03-26 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
resolution:  - fixed
stage: commit review - committed/rejected
status: open - closed

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



[issue11678] Add support for Arch Linux to platform.linux_distributions()

2011-03-26 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

Please provide a patch for review.

Thanks.

--

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



[issue7284] argparse - display version in usage by default

2011-03-26 Thread anatoly techtonik

anatoly techtonik techto...@gmail.com added the comment:

On Sat, Mar 26, 2011 at 12:20 PM, Steven Bethard rep...@bugs.python.org wrote:

 I see though that vi puts the full name and version before the usage (which 
 is currently impossible in argparse):

That was exactly my use case, which I'd say is very common for small
utilities. Just in 10 minutes I could find that about a half of
command line utilities on my Windows machine are reporting full name
and version before the usage with --help option, including NSIS,
PuTTY, Far Manager, Android Debug Bridge and 7-Zip.

A pity that before argparse replaced optparse, there was no research
made to gather the output from various console tools to see how
argparse really saves people from reinventing their solutions.

Do you think we could avoid this problem if there was more active
turnaround between Roundup community and Python community to import
all issues from Google Code tracker in time to do some planning?
http://code.google.com/p/argparse/issues/detail?id=50

--

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



[issue7284] argparse - display version in usage by default

2011-03-26 Thread anatoly techtonik

anatoly techtonik techto...@gmail.com added the comment:

On Sat, Mar 26, 2011 at 12:20 PM, Steven Bethard rep...@bugs.python.org wrote:

 I guess we could add, say, a headline= option to ArgumentParser which would 
 then be printed before the usage message if it's really crucial to have that 
 message first... I'd rather not though if the description= approach is 
 acceptable to you, since adding headline= would add more complexity to an 
 already complex ArgumentParser constructor.

Instead of adding epilog, usage, description to constructor, you
could just add one usage_template with these substitution variables,
including version.

--

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



[issue11174] add argparse formatting option to display type names for metavar

2011-03-26 Thread Steven Bethard

Steven Bethard steven.beth...@gmail.com added the comment:

Sorry about such a slow response on this. Thanks for the patch!

I think rather than adding an ArgumentParser constructor parameter though, we 
should add a new formatter class. The attached patch allows you to write:

parser = argparse.ArgumentParser(
   ... prog='PROG',
   ... formatter_class=argparse.MetavarTypeHelpFormatter)
parser.add_argument('--foo', type=int)
parser.add_argument('bar', type=float)
parser.print_help()
   usage: PROG [-h] [--foo int] float

   positional arguments:
 float

   optional arguments:
 -h, --help  show this help message and exit
 --foo int

What do you think?

--
Added file: http://bugs.python.org/file21407/MetavarTypeHelpFormatter.diff

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



[issue5880] test___all__

2011-03-26 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
title: Remove unneeded context pointer from getters and setters - 
test___all__

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



[issue5880] Remove unneeded context pointer from getters and setters

2011-03-26 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
title: test___all__ - Remove unneeded context pointer from getters and 
setters

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



[issue11174] add argparse formatting option to display type names for metavar

2011-03-26 Thread Filip Gruszczyński

Filip Gruszczyński grusz...@gmail.com added the comment:

Well, since you are the designer of the package, I believe you have better 
knowledge on how to extend it :-). I just provided a patch according to what 
you described in the first message. Anyway having separate help formatter seems 
better than bloating parser's constructor.

--

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



[issue2694] msilib file names check too strict ?

2011-03-26 Thread Mark Mc Mahon

Mark Mc Mahon mtnbikingm...@gmail.com added the comment:

How about the following patch and tests...

Per: http://msdn.microsoft.com/en-us/library/aa369212(v=vs.85).aspx
The Identifier data type is a text string. Identifiers may contain the
ASCII characters A-Z (a-z), digits, underscores (_), or periods (.). However, 
every identifier must begin with either a letter or an underscore.

So the spec would say that colons are NOT allowed. Editing some entries in the 
File table of an MSI (using Orca from the MSI SDK) and running the validation 
confirms that.

All the following were flagged as errors:
'KDiff3EXE;ASDF@#$', 'chmFile-', 'pdfFile(', 'hgbook]', 'TortoisePlinkEXE]', 
'Hg.Cämd'

I also did some speed testing (just in case non/regex might be slow)
Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on 
win32
Type help, copyright, credits or license for more information.
 from timeit import timeit
 setup = 'import string\nidentifier_chars = string.ascii_letters + 
 string.digits + ._\ntmp_str = []'
 timeit(re.sub(r'[^a-zA-Z_\.]', '_', 'somefilename.txt'), setup = import 
 re)
4.434621757767205
 setup = 'import string\nidentifier_chars = string.ascii_letters + 
 string.digits + ._\ntmp_str = []'
 timeit('.join([c if c in identifier_chars else _ for c in 
 somefilename.txt])', setup)
3.3757537425069906


--
keywords: +patch
nosy: +markm
Added file: http://bugs.python.org/file21408/make_id_fix_and_test.patch

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



[issue7284] argparse - display version in usage by default

2011-03-26 Thread Steven Bethard

Steven Bethard steven.beth...@gmail.com added the comment:

I'm not sure about the usage_template approach - seems like it might be hard to 
make it work, while still supporting formatter_class. (Though maybe it's not so 
bad since the formatter class methods are all considered implementation 
details.) I'm open to patches though if you're willing to provide one.

In the meantime, a simple approach that will work is to override format_help():

class MyArgumentParser(argparse.ArgumentParser):
def format_help(self):
help = super(MyArgumentParser, self).format_help()
return headline + '\n' + help

--

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



[issue11144] int(float) may return a long for no reason

2011-03-26 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset e1ebec2446cd by Mark Dickinson in branch '2.7':
Issue #11144: Fix corner cases where float-to-int conversion unnecessarily 
returned a long.
http://hg.python.org/cpython/rev/e1ebec2446cd

--
nosy: +python-dev

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



[issue11144] int(float) may return a long for no reason

2011-03-26 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
assignee:  - mark.dickinson
resolution:  - fixed
stage:  - committed/rejected
status: open - closed
type:  - behavior

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



[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-26 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Well, I'm not so attached to the unexpected skip list that I want to block this 
from getting implemented.  So I guess the bottom line is that things that are 
unexpected skips now should not be failures.

--

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



[issue10665] Expand unicodedata module documentation

2011-03-26 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

FWIW latin-1 chars are fine (e.g. ¶ or è).  The right command to build the pdfs 
is `make latex` and then `make all-pdf` in build/latex/.

Alexander, now you could also make a remote hg repo, and use it to generate 
up-to-date patches that can be reviewed directly.

I left a few more comments on rietveld about the last patch.

--

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



[issue11174] add argparse formatting option to display type names for metavar

2011-03-26 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset a15d65d8f269 by Steven Bethard in branch 'default':
Issue #11174: Add argparse.MetavarTypeHelpFormatter, which uses type names
http://hg.python.org/cpython/rev/a15d65d8f269

--
nosy: +python-dev

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



[issue11668] _multiprocessing.Connection.poll with timeout uses polling under Windows

2011-03-26 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Are you sure about MP_EXCEPTION_HAS_BEEN_SET?
semaphore.c has a more sophisticated logic:

Py_BEGIN_ALLOW_THREADS
ResetEvent(sigint_event);
res = WaitForMultipleObjects(2, handles, FALSE, msecs);
Py_END_ALLOW_THREADS

/* handle result */
if (res != WAIT_OBJECT_0 + 1)
break;

/* got SIGINT so give signal handler a chance to run */
Sleep(1);

/* if this is main thread let KeyboardInterrupt be raised */
if (PyErr_CheckSignals())
return NULL;

/* recalculate timeout */
if (msecs != INFINITE) {
ticks = GetTickCount();
if ((DWORD)(ticks - start) = full_msecs)
Py_RETURN_FALSE;
msecs = full_msecs - (ticks - start);
}

--

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



[issue11174] add argparse formatting option to display type names for metavar

2011-03-26 Thread Steven Bethard

Changes by Steven Bethard steven.beth...@gmail.com:


--
assignee:  - bethard
resolution:  - fixed
stage: needs patch - committed/rejected
status: open - closed

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



[issue11370] Fix distutils to carry configure's LIBS through to extension modules.

2011-03-26 Thread John Szakmeister

John Szakmeister j...@szakmeister.net added the comment:

I'm gonna close this.  It was meant to help port some of the Unladen Swallow 
stuff... but I see that's effectively dead. :-(

--
resolution:  - invalid
status: open - closed

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



[issue11354] argparse: nargs could accept range of options count

2011-03-26 Thread Steven Bethard

Steven Bethard steven.beth...@gmail.com added the comment:

Thanks for the patch. The idea and the approach of the patch look fine. But the 
patch needs to be against the Python repository:

http://docs.python.org/devguide/patch.html#creating

For the tests, you should integrate your test.py into Lib/test/test_argparse.py.

--
stage:  - patch review
versions:  -Python 3.2

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



[issue11588] Add necessarily inclusive groups to argparse

2011-03-26 Thread Steven Bethard

Steven Bethard steven.beth...@gmail.com added the comment:

I think this is a great suggestion. Care to work on a patch?

--
stage:  - needs patch

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



[issue11683] unittest discover should recurse into packages which are already in sys.path

2011-03-26 Thread Calvin Spealman

New submission from Calvin Spealman ironfro...@gmail.com:

For example, if I had a project with a src/ directory and inside that 
directory is a package named foo, then I can run python3 -m unittest 
discover -s . and the tests will be not be found, but I can run python3 -m 
unittest discover -s src/ and the tests in the foo package are run. This is 
because it can only find things which are in the python path, but if I have 
src/ on the path (I ran add2virtualenv src/ at some point) then discover 
should know it can traverse inside this directory.

--
messages: 132242
nosy: Calvin.Spealman
priority: normal
severity: normal
status: open
title: unittest discover should recurse into packages which are already in 
sys.path
type: feature request
versions: Python 3.2

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



[issue10680] argparse: titles and add_mutually_exclusive_group don't mix (even with workaround)

2011-03-26 Thread Steven Bethard

Changes by Steven Bethard steven.beth...@gmail.com:


--
stage: patch review - committed/rejected
status: open - closed

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



[issue11684] (Maybe) Add email.parser.BytesHeaderParser

2011-03-26 Thread Steffen Daode Nurpmeso

New submission from Steffen Daode Nurpmeso sdao...@googlemail.com:

David, you haven't added this one once you've added
BytesParser(), so i assume that happened intentionally.
On the other hand all the package heads in direction bytes,
and HeaderParser as such is currently somewhat unusable.
(The applied diff also corrects a documentation mispelling.)

--
components: Library (Lib)
files: bytes-header-parser.1.diff
keywords: patch
messages: 132243
nosy: r.david.murray, sdaoden
priority: normal
severity: normal
status: open
title: (Maybe) Add email.parser.BytesHeaderParser
type: feature request
versions: Python 3.3
Added file: http://bugs.python.org/file21409/bytes-header-parser.1.diff

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



[issue7284] argparse - display version in usage by default

2011-03-26 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com added the comment:

On Sat, Mar 26, 2011 at 9:14 PM, anatoly techtonik techto...@gmail.com wrote:
 A pity that before argparse replaced optparse, there was no research
 made to gather the output from various console tools to see how
 argparse really saves people from reinventing their solutions.

argparse was adopted because it was a significant improvement over
optparse, not because anyone was under the illusion that it was
perfect.

There'll always be room for additional feature requests, and many of
them won't cause backwards compatibility problems.

Cheers,
Nick.

--
nosy: +ncoghlan

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



[issue7284] argparse - display version in usage by default

2011-03-26 Thread anatoly techtonik

anatoly techtonik techto...@gmail.com added the comment:

On Sat, Mar 26, 2011 at 2:28 PM, Steven Bethard rep...@bugs.python.org wrote:

 I'm not sure about the usage_template approach - seems like it might be hard 
 to make it work, while still supporting formatter_class. (Though maybe it's 
 not so bad since the formatter class methods are all considered 
 implementation details.) I'm open to patches though if you're willing to 
 provide one.

The main point was to cut extra arguments in constructor that are used
solely for formatting the result, but it is too late to do any changes
now.

 In the meantime, a simple approach that will work is to override 
 format_help():

 class MyArgumentParser(argparse.ArgumentParser):
    def format_help(self):
        help = super(MyArgumentParser, self).format_help()
        return headline + '\n' + help

Thanks. I'll try this one next time or think about the patch. ;)

--

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



[issue5340] Change in cgi behavior breaks existing software

2011-03-26 Thread Facundo Batista

Changes by Facundo Batista facu...@taniquetil.com.ar:


--
assignee: facundobatista - 

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



[issue2756] urllib2 add_header fails with existing unredirected_header

2011-03-26 Thread Facundo Batista

Facundo Batista facu...@taniquetil.com.ar added the comment:

Senthil, I'm assigning this issue to you because you know more about this 
subject than me. Feel free to unassign if will not be working in it.

Thanks!

--
assignee: facundobatista - orsenthil

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



[issue7221] DispatcherWithSendTests_UsePoll with test_asyncore does nothing

2011-03-26 Thread Facundo Batista

Changes by Facundo Batista facu...@taniquetil.com.ar:


--
assignee: facundobatista - 

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



[issue11685] possible SQL injection into db APIs via table names... sqlite3

2011-03-26 Thread Rene Dudfield

New submission from Rene Dudfield ill...@users.sourceforge.net:

Hi,

you can possibly do an SQL injection via table names (and maybe some other 
parts of queries).  Tested with sqlite3, but maybe it affects others too.

You can not do parameter substitution for table names, so people use normal 
python string formatting instead.

If the table name comes from an untrusted source, then possibly an SQL 
injection could happen.


cheers,

--
messages: 132247
nosy: illume
priority: normal
severity: normal
status: open
title: possible SQL injection into db APIs via table names... sqlite3
type: security

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



[issue9348] Calling argparse's add_argument with the wrong number of metavars causes delayed error message

2011-03-26 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset c89db9b36ea6 by Steven Bethard in branch '3.2':
Issue #9348: Raise an early error if argparse nargs and metavar don't match.
http://hg.python.org/cpython/rev/c89db9b36ea6

New changeset b93a50bb74f2 by Steven Bethard in branch 'default':
Issue #9348: Raise an early error if argparse nargs and metavar don't match. 
(Merge from 3.2.)
http://hg.python.org/cpython/rev/b93a50bb74f2

New changeset 4bb651eb7539 by Steven Bethard in branch '2.7':
Issue #9348: Raise an early error if argparse nargs and metavar don't match. 
(Merge from 3.2.)
http://hg.python.org/cpython/rev/4bb651eb7539

--
nosy: +python-dev

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



[issue11685] possible SQL injection into db APIs via table names... sqlite3

2011-03-26 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

Why do you think this is a bug in Python?

--
nosy: +loewis

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



[issue9348] Calling argparse's add_argument with the wrong number of metavars causes delayed error message

2011-03-26 Thread Steven Bethard

Steven Bethard steven.beth...@gmail.com added the comment:

Thanks for the patch. I used something similar to what you proposed, but 
instead of creating a local formatter, I just call self._get_formatter() if it 
exists.

--
assignee:  - bethard
nosy:  -python-dev
resolution:  - fixed
stage: needs patch - committed/rejected
status: open - closed
versions: +Python 3.3

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



[issue11685] possible SQL injection into db APIs via table names... sqlite3

2011-03-26 Thread Rene Dudfield

Rene Dudfield ill...@users.sourceforge.net added the comment:

Hello,

because the sqlite3 package comes with python.

--

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



[issue11678] Add support for Arch Linux to platform.linux_distributions()

2011-03-26 Thread Westley Martínez

Westley Martínez aniko...@gmail.com added the comment:

Patch.

--
keywords: +patch
Added file: http://bugs.python.org/file21410/cpython-11678.diff

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



[issue11678] Add support for Arch Linux to platform.linux_distributions()

2011-03-26 Thread Westley Martínez

Westley Martínez aniko...@gmail.com added the comment:

I forgot to say, Arch Linux is rolling release so it doesn't have a version or 
id.

--

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



[issue11686] Update of some email/ __all__ lists

2011-03-26 Thread Steffen Daode Nurpmeso

New submission from Steffen Daode Nurpmeso sdao...@googlemail.com:

This patch adds some BytesXy classes to some __all__[]
exporters.

(Still don't know why i can
import email
x = email.feedparser.Xy()
but not
import email
x = email.parser.Xy()
Is there any reason for that?)

--
components: Library (Lib)
files: __all__.diff
keywords: patch
messages: 132254
nosy: r.david.murray, sdaoden
priority: normal
severity: normal
status: open
title: Update of some email/ __all__ lists
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file21411/__all__.diff

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



[issue11685] possible SQL injection into db APIs via table names... sqlite3

2011-03-26 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

But putting untrusted strings into the table name is a bug in the application, 
not in Python.

--

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



[issue11685] possible SQL injection into db APIs via table names... sqlite3

2011-03-26 Thread Rene Dudfield

Rene Dudfield ill...@users.sourceforge.net added the comment:

The bug in python is that you can not use parameter substitution to put the 
table names into the queries.  So people are forced to use string substitution 
instead.

--

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



[issue11685] possible SQL injection into db APIs via table names... sqlite3

2011-03-26 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

Ah. That's not a limitation of Python, but a limitation of sqlite. See 

http://www.sqlite.org/c3ref/bind_blob.html

for how parameter binding works. The table name is not supported as a 
parameter; neither are column names or database names.

So if you want this feature added, please request it from the sqlite 
developers; Python will then naturally inherit it. I'm skeptical that they are 
open to such a proposal, though, since it will be a massive change in SQL 
parsing.

--

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



[issue11687] Cannot register using command-line

2011-03-26 Thread yac00b

New submission from yac00b qqb...@gmail.com:

I am not exactly sure if it is a proper place for my problem. I am quite new to 
Python in general.
I am working on Windows 7 with Python 3.2. I wanted to upload a module to PyPI. 
To do that I have to register with the command-line. I use the command python3 
setup.py register and then I have to choose whether to use existing login, to 
create new etc. I am already registered on the website. When I choose 1 and 
press Enter, it still wants me to put a proper number.
I searched the web and I found out that the solution is to specify my username 
and password in the .pypirc file. The problem is that I have no idea where to 
find this file. Should I maybe create it? The .pypirc is the extension? What 
is the exact name of the file?
Or maybe is there any other way to solve this problem?

--
components: Windows
messages: 132258
nosy: yac00b
priority: normal
severity: normal
status: open
title: Cannot register using command-line
type: behavior
versions: Python 3.2

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



[issue11664] Add patch method to unittest.TestCase

2011-03-26 Thread Pablo Mouzo

Pablo Mouzo pablomo...@gmail.com added the comment:

I'm attaching a draft patch for patch. Éric, is this patch implementing patch 
as you expected?

This patch is not finished because there are many cases where patch can leave 
patched objects if it fails to unpatch.

--
keywords: +patch
nosy: +pablomouzo
Added file: http://bugs.python.org/file21412/patch.diff

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



[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2011-03-26 Thread Anders Kaseorg

Anders Kaseorg ande...@mit.edu added the comment:

 @andersk: Would the restriction to only having flags with a fixed
 number of arguments be acceptable for your use case?

I think that’s fine.  Anyone coming from optparse won’t need options with 
optional arguments.

However, FWIW, GNU getopt_long() supports options with an optional argument 
under the restrictions that:
 • the option must be a long option,
 • the optional argument must be the only argument for the option, and
 • the argument, if present, must be supplied using the
   ‘--option=argument’ form, not the ‘--option argument’ form.
This avoids all parsing ambiguity.  It would be useful to have feature parity 
with getopt_long(), to facilitate writing Python wrapper scripts for C programs.

--

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



[issue11635] concurrent.futures uses polling

2011-03-26 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 4390d6939a56 by Antoine Pitrou in branch '3.2':
Issue #11635: Don't use polling in worker threads and processes launched by
http://hg.python.org/cpython/rev/4390d6939a56

New changeset a76257a99636 by Antoine Pitrou in branch 'default':
Issue #11635: Don't use polling in worker threads and processes launched by
http://hg.python.org/cpython/rev/a76257a99636

--

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



[issue11635] concurrent.futures uses polling

2011-03-26 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

I've now pushed the patch. I hope this won't break anything, closing.

--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue8982] argparse docs cross reference Namespace as a class but the Namespace class is not documented

2011-03-26 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 423b50086b67 by Steven Bethard in branch '3.2':
Issue #8982: Improve the documentation for the argparse Namespace object.
http://hg.python.org/cpython/rev/423b50086b67

New changeset d832756a82d9 by Steven Bethard in branch 'default':
Issue #8982: Improve the documentation for the argparse Namespace object. 
(Merge from 3.2.)
http://hg.python.org/cpython/rev/d832756a82d9

New changeset fe72160ea2a3 by Steven Bethard in branch '2.7':
Issue #8982: Improve the documentation for the argparse Namespace object. 
(Merge from 3.2.)
http://hg.python.org/cpython/rev/fe72160ea2a3

--
nosy: +python-dev

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



[issue8982] argparse docs cross reference Namespace as a class but the Namespace class is not documented

2011-03-26 Thread Steven Bethard

Steven Bethard steven.beth...@gmail.com added the comment:

I fixed the docs here so that they're clearer about what the Namespace object 
is, and also so that they mention the `vars` approach if you want dict-style 
access.

--
resolution:  - fixed
stage: needs patch - committed/rejected
status: open - closed

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



[issue11683] unittest discover should recurse into packages which are already in sys.path

2011-03-26 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti, michael.foord

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



[issue11664] Add patch method to unittest.TestCase

2011-03-26 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

I'd like to ponder this a bit. Note that the patch is incorrect - fetching the 
attribute should not be done with getattr (this will trigger descriptors 
instead of fetching the underlying member) and should not be reset 
unconditionally (if the original was fetched from a base class the just 
deleting the patched member will restore the original). 

If we decide to do this I can provide a patch.

--

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



[issue11681] -b option undocumented

2011-03-26 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

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



[issue11649] startElementNS in xml.sax.saxutils.XMLGenerator ignored encoding

2011-03-26 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

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



[issue9056] Adding additional level of bookmarks and section numbers in python pdf documents.

2011-03-26 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

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



[issue1602] windows console doesn't print or input Unicode

2011-03-26 Thread David-Sarah Hopwood

David-Sarah Hopwood david-sa...@jacaranda.org added the comment:

Glenn wrote:
 So if flush checks that bit, maybe TextIOWriter could just call buffer.flush, 
 and it would be fast if clean and slow if dirty?

Yes. I'll benchmark how much overhead is added by the calls to flush; there's 
no point in breaking the abstraction boundary of BufferedWriter if it doesn't 
give a significant performance benefit. (I suspect that it might not, because 
Windows is very slow at scrolling a console, which might make the cost of 
flushing insignificant in comparison.)

--

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



[issue11659] Fix ResourceWarning in test_subprocess

2011-03-26 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset bd46aef7cf10 by Ross Lagerwall in branch '3.1':
Issue #11659: Fix ResourceWarning in test_subprocess introduced by #11459.
http://hg.python.org/cpython/rev/bd46aef7cf10

--
nosy: +python-dev

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



[issue11659] Fix ResourceWarning in test_subprocess

2011-03-26 Thread Ross Lagerwall

Changes by Ross Lagerwall rosslagerw...@gmail.com:


--
assignee:  - rosslagerwall
nosy: +rosslagerwall
resolution:  - fixed
stage:  - committed/rejected
status: open - closed
versions: +Python 3.1, Python 3.2

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



[issue1602] windows console doesn't print or input Unicode

2011-03-26 Thread Glenn Linderman

Glenn Linderman v+pyt...@g.nevcal.com added the comment:

David-Sarah wrote:
Windows is very slow at scrolling a console, which might make the cost of 
flushing insignificant in comparison.)

Just for the record, I noticed a huge speedup in Windows console scrolling when 
I switched from WinXP to Win7 on a faster computer :)
How much is due to the XP-7 switch and how much to the faster computer, I 
cannot say, but it seemed much more significant than other speedups in other 
software.  The point?  Benchmark it on Win7, not XP.

--

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



[issue11236] getpass.getpass does not respond to ctrl-c or ctrl-z

2011-03-26 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

Greg: Can you please comment what the original motivation was for removing ISIG 
from the flags? This is your change, from issue 7208, AFAICT.

--
nosy: +loewis

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



[issue11236] getpass.getpass does not respond to ctrl-c or ctrl-z

2011-03-26 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy:  -pitrou

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



[issue5340] Change in cgi behavior breaks existing software

2011-03-26 Thread Bob Kline

Bob Kline bkl...@rksystems.com added the comment:

Just to make life interesting, someone went in and changed all the URLs for 
messages in the Python mailing list.  Here's the new URL for the message which 
contains the repro instructions:

http://mail.python.org/pipermail/python-list/2009-February/1192951.html

The URL which represents the reported behavior in that message now points to a 
machine which has been upgraded to Python 2.7, not 2.6 as reported in the repro 
instructions, but the behavior is still the same.  Of course, these 
instructions won't be useful forever, because the Debian server which is 
running Python 2.5 (to show the previous behavior) will (I assume) eventually 
move on to a later version of Python itself.  But for now the repro 
instructions are still valid.

--

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



[issue11683] unittest discover should recurse into packages which are already in sys.path

2011-03-26 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

Going into multiple directories on the path would make discovery more complex 
(but isn't out of the question).

To be compatible with nose test discovery it is likely that we will special 
case an src directory anyway though (as it is a relatively common pattern to 
put code into an src directory).

--

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



[issue11683] unittest discover should recurse into packages which are already in sys.path

2011-03-26 Thread Michael Foord

Changes by Michael Foord mich...@voidspace.org.uk:


--
versions: +Python 3.3 -Python 3.2

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



[issue9343] Document that argparse parents must be fully declared before children

2011-03-26 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset d288666c1d58 by Steven Bethard in branch '3.2':
Issue #9343: Document that argparse parent parsers must be configured before 
their children.
http://hg.python.org/cpython/rev/d288666c1d58

New changeset 15e98607555d by Steven Bethard in branch '2.7':
Issue #9343: Document that argparse parent parsers must be configured before 
their children. (Merge from 3.2.)
http://hg.python.org/cpython/rev/15e98607555d

New changeset 8bdc20468cbc by Steven Bethard in branch 'default':
Issue #9343: Document that argparse parent parsers must be configured before 
their children. (Merge from 3.2.)
http://hg.python.org/cpython/rev/8bdc20468cbc

--
nosy: +python-dev

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



[issue9343] Document that argparse parents must be fully declared before children

2011-03-26 Thread Steven Bethard

Steven Bethard steven.beth...@gmail.com added the comment:

I added some documentation in the parents section of the argparse docs.

--
assignee: docs@python - bethard
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

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



[issue11683] unittest discover should recurse into packages which are already in sys.path

2011-03-26 Thread Calvin Spealman

Calvin Spealman ironfro...@gmail.com added the comment:

Doesn't it already go into multiple directories? Isn't that a requirement of a 
recursive directory walk, which I understand discover does?

I am also thinking the current documentation just doesn't make these details 
clear, so should that be another ticket if I think those should change for the 
3.2 docs to clarify the current behavior?

--

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



[issue11688] SQLite trace callback

2011-03-26 Thread Torsten Landschoff

New submission from Torsten Landschoff t.landsch...@gmx.net:

I'd like to access the SQLite trace callback from Python to actually see the 
same queries that SQLite actually gets to see.

The C API of SQLite supports this via the sqlite3_trace function. I added 
support to this to the sqlite3 module plus unit tests testing that it is 
called, can be removed again and that unicode arguments arrive correctly at the 
callback.

Please consider applying the patch. I am not sure if this should go to the 
pysqlite project on Google Code directly, I am just submitting it here because 
I worked in the python source tree as I am more used to its build system. I am 
sorry, Gerhard, if this is the wrong way.

--
components: Library (Lib)
files: sqlite_trace_py3.diff
keywords: patch
messages: 132275
nosy: torsten
priority: normal
severity: normal
status: open
title: SQLite trace callback
type: feature request
versions: Python 2.7, Python 3.3
Added file: http://bugs.python.org/file21413/sqlite_trace_py3.diff

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



[issue11688] SQLite trace callback

2011-03-26 Thread Torsten Landschoff

Torsten Landschoff t.landsch...@gmx.net added the comment:

Here is the same change for Python 2.7. I don't expect this to get merged on 
the Python 2 branch, put perhaps it is useful to somebody.

--
Added file: http://bugs.python.org/file21414/sqlite_trace_py27.diff

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



[issue11688] SQLite trace callback

2011-03-26 Thread Benjamin Peterson

Changes by Benjamin Peterson benja...@python.org:


--
assignee:  - ghaering
nosy: +ghaering

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



[issue887237] Machine integers

2011-03-26 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

You could write a Python script to generator the methods.

--
nosy: +benjamin.peterson

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



[issue11689] sqlite: Incorrect unit test fails to detect failure

2011-03-26 Thread Torsten Landschoff

New submission from Torsten Landschoff t.landsch...@gmx.net:

The CheckClearHandler test in Lib/sqlite3/test/hooks.py is invalid. It sets a 
local variable in a callback where it wants to change the variable in the 
closure.

Patch attached.

--
components: Tests
files: test_clear_handler_py3.diff
keywords: patch
messages: 132278
nosy: torsten
priority: normal
severity: normal
status: open
title: sqlite: Incorrect unit test fails to detect failure
versions: Python 2.7, Python 3.3
Added file: http://bugs.python.org/file21415/test_clear_handler_py3.diff

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



[issue11689] sqlite: Incorrect unit test fails to detect failure

2011-03-26 Thread Torsten Landschoff

Changes by Torsten Landschoff t.landsch...@gmx.net:


Added file: http://bugs.python.org/file21416/test_clear_handler_py27.diff

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



[issue11683] unittest discover should recurse into packages which are already in sys.path

2011-03-26 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

Discover does recurse into directories - but only packages, so the algorithm 
for importing them is trivial. You're suggesting enhancing that to multiple 
strategies (checking non package directories to see if they are on the path and 
then recursing into them as well). I can well believe the docs could do with 
clarifying though - and a patch for that would be awesome.

--

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



[issue11683] unittest discover should recurse into packages which are already in sys.path

2011-03-26 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

Calvin, note that the modification you suggest is not a *great* complication to 
the discovery algorithm (just some complication); so I'll consider it.

--

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



[issue1838] Ctypes C-level infinite recursion

2011-03-26 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 4945a45b8be4 by Benjamin Peterson in branch '3.1':
check possible recursive _as_parameter_ to prevent segfault (closes #1838)
http://hg.python.org/cpython/rev/4945a45b8be4

New changeset 4bd06503eaca by Benjamin Peterson in branch '2.7':
check possible recursive _as_parameter_ to prevent segfault (closes #1838)
http://hg.python.org/cpython/rev/4bd06503eaca

--
nosy: +python-dev
resolution:  - fixed
stage: test needed - committed/rejected
status: open - closed

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



[issue9348] Calling argparse's add_argument with the wrong number of metavars causes delayed error message

2011-03-26 Thread Denver Coneybeare

Denver Coneybeare denver.coneybe...@gmail.com added the comment:

Awesome, thanks for committing the patch.  Glad I could help.

--

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



[issue11690] Add communication FAQ to devguide

2011-03-26 Thread Nick Coghlan

New submission from Nick Coghlan ncogh...@gmail.com:

It would be good to supplement the here's the list of mailing lists (etc) 
section in the devguide [1] with a more task oriented communications FAQ of the 
form If you are asking about topic A, then ask in forums X, Y or Z.

(where the forums may be any online communications channel, be it a mailing 
list, IRC channel, Stack Overflow, or whatever)

This would also mean that communications questions could be easily answered by 
following the Dev FAQ link in the quick links on the front page of the 
devguide.

[1] http://docs.python.org/devguide/communication.html#communication

Also, that page should be updated to mention the new Python Insiders blog.

--
components: None
messages: 132283
nosy: ncoghlan
priority: normal
severity: normal
status: open
title: Add communication FAQ to devguide

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



[issue11395] print(s) fails on Windows with long strings

2011-03-26 Thread David-Sarah Hopwood

David-Sarah Hopwood david-sa...@jacaranda.org added the comment:

If I understand the bug in the Windows console functions correctly, a limit of 
32767 bytes might not always be small enough. The problem is that if two or 
more threads are concurrently using any console functions (which all use the 
same 64 KiB heap), they could try to allocate up to 32767 bytes plus overhead 
at the same time, which will fail.

I wasn't able to provoke this by writing to sys.stdout.buffer (maybe there is 
locking that prevents concurrent writes), but the following code that calls 
WriteFile directly, does provoke it. GetLastError() returns 8 
(ERROR_NOT_ENOUGH_MEMORY; see 
http://msdn.microsoft.com/en-us/library/ms681382%28v=vs.85%29.aspx), indicating 
that it's the same bug.


# Warning: this test may DoS your system.

from threading import Thread
import sys
from ctypes import WINFUNCTYPE, windll, POINTER, byref, c_int
from ctypes.wintypes import BOOL, HANDLE, DWORD, LPVOID, LPCVOID

GetStdHandle = WINFUNCTYPE(HANDLE, DWORD)((GetStdHandle, windll.kernel32))
WriteFile = WINFUNCTYPE(BOOL, HANDLE, LPCVOID, DWORD, POINTER(DWORD), LPVOID) \
((WriteFile, windll.kernel32))
GetLastError = WINFUNCTYPE(DWORD)((GetLastError, windll.kernel32))
STD_OUTPUT_HANDLE = DWORD(-11)
INVALID_HANDLE_VALUE = DWORD(-1).value

hStdout = GetStdHandle(STD_OUTPUT_HANDLE)
assert hStdout is not None and hStdout != INVALID_HANDLE_VALUE

L = 32760
data = b'a'*L

def run():
n = DWORD(0)
while True:
ret = WriteFile(hStdout, data, L, byref(n), None)
if ret == 0 or n.value != L:
print(ret, n.value, GetLastError())
sys.exit(1)

[Thread(target=run).start() for i in range(10)]

--
nosy: +davidsarah

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



[issue10740] sqlite3 module should allow DDL statements in transactions

2011-03-26 Thread Torsten Landschoff

Torsten Landschoff t.landsch...@gmx.net added the comment:

The attached patch is my take on this issue. I ran into the problem that during 
schema upgrades dropping a table was not rolled back. In another instance, 
renaming a table was not rolled back. This greatly increases the risk of data 
loss for our application.

Because I do not currently foresee which commands might need dropping out of a 
transaction and because of backwards compatibility woes, I added a new field to 
the sqlite3.Connection: operation_needs_transaction_callback

This function is called to decide if a running transaction should be implicitly 
committed (I'd consider this dangerous), if a transaction has to be started if 
not running (should normally always hold) or if the transaction state should be 
left alone.

For example, the pragma foreign_keys = ... is a no-op inside a transaction, 
therefore an implicit begin would be possibly harmful. In our application, we 
enable foreign keys when getting the connection out of the SQLAlchemy pool via 
a pool listener, which would be disabled if there is an implicit begin 
triggered.

The patch also adds a bunch of unit tests to cover the new behaviour.

--
nosy: +torsten
Added file: http://bugs.python.org/file21417/sqlite_transaction_config_py27.diff

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



[issue11687] Cannot register using command-line

2011-03-26 Thread yac00b

yac00b qqb...@gmail.com added the comment:

I searched a little bit more and now I know that if the registration would be 
possible then the .pipyrc file would be created automatically. I would like to 
create it on my own to go around this problem, but Windows does not allow to 
create a file named .pypirc. How to deal with it?

--

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



[issue10740] sqlite3 module should allow DDL statements in transactions

2011-03-26 Thread Torsten Landschoff

Torsten Landschoff t.landsch...@gmx.net added the comment:

Same patch for Python 3. In fact, this also adds a missing Py_XDECREF.

--
Added file: http://bugs.python.org/file21418/sqlite_transaction_config_py3.diff

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



[issue10740] sqlite3 module should allow DDL statements in transactions

2011-03-26 Thread Torsten Landschoff

Changes by Torsten Landschoff t.landsch...@gmx.net:


Added file: http://bugs.python.org/file21419/sqlite_transaction_config_py27.diff

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



[issue1128] msilib.Directory.make_short only handles file names with a single dot in them

2011-03-26 Thread Mark Mc Mahon

Mark Mc Mahon mtnbikingm...@gmail.com added the comment:

I looked at the existing patches - and noted that they went closer to how 
Windows does short files - but still left out some cases.

I believe the latest patch catches all cases.

from http://msdn.microsoft.com/en-us/library/aa368590(v=vs.85).aspx
Short and long file names must not contain the following characters:
slash (/) or (\)
question mark (?)
vertical bar (|)
right angle bracket ()
left angle bracket ()
colon (:)
asterisk (*)
quotation mark ()

In addition, short file names must not contain the following characters:
plus sign (+)
comma (,)
semicolon (;)
equals sign (=)
left square bracket ([)
right square bracket (])

No space is allowed preceding the vertical bar (|) separator for the short 
file name/long file name syntax. Short file names may not include a space, 
although a long file name may. A space can exist after the separator only if 
the long file name of the file name begins with the space. No full-path syntax 
is allowed.

Though I wonder do we really need to check for or replace the first set of 
characters above - none are allowed in any file name, so if they are there it 
is probably a error in how the function was called!

I also tested speed of re.sub, comprehension (.join(c for c in ...) and for 
loops - and for loops were the fasted (for the small set of characters being 
replaced).

I am not patching make_id() - because I have added a patch for that to 
issue2694.

Note - The attached patch will probably not apply cleanly - as it pre-supposes 
that the patch (http://bugs.python.org/file21408/make_id_fix_and_test.patch) 
from issue2694 is applied first (especially for the tests)

--
nosy: +markm
Added file: http://bugs.python.org/file21420/msilib.make_short.patch

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



[issue11691] sqlite3 Cursor.description doesn't set type_code

2011-03-26 Thread William Edward Stuart Clemens

New submission from William Edward Stuart Clemens wesclemens+pyt...@gmail.com:

The DB API Spec 2.0 (PEP 249) clearly requires that column name and type_code 
be set as the first two values in Cursor.description the other 5 attributes are 
optional. The sqlite3 module doesn't set type_code.

--
components: None
files: sqlite.patch
keywords: patch
messages: 132289
nosy: wesclemens
priority: normal
severity: normal
status: open
title: sqlite3 Cursor.description doesn't set type_code
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file21421/sqlite.patch

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



[issue11691] sqlite3 Cursor.description doesn't set type_code

2011-03-26 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
nosy: +ghaering

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



[issue11691] sqlite3 Cursor.description doesn't set type_code

2011-03-26 Thread William Edward Stuart Clemens

William Edward Stuart Clemens wesclemens+pyt...@gmail.com added the comment:

The patch for version 3.3 has a one line difference.

--
assignee:  - docs@python
components: +Documentation, Library (Lib) -None
nosy: +docs@python
versions: +Python 3.3
Added file: http://bugs.python.org/file21422/sqlite3_type_code_py33.diff

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