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

2011-03-26 Thread William Edward Stuart Clemens
William Edward Stuart Clemens 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

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

2011-03-26 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ghaering ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

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

2011-03-26 Thread William Edward Stuart Clemens
New submission from William Edward Stuart Clemens : 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 file

[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 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

[issue10740] sqlite3 module should allow DDL statements in transactions

2011-03-26 Thread Torsten Landschoff
Changes by Torsten Landschoff : Added file: http://bugs.python.org/file21419/sqlite_transaction_config_py27.diff ___ Python tracker ___ ___ Py

[issue10740] sqlite3 module should allow DDL statements in transactions

2011-03-26 Thread Torsten Landschoff
Torsten Landschoff 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 __

[issue11687] Cannot register using command-line

2011-03-26 Thread yac00b
yac00b 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

[issue10740] sqlite3 module should allow DDL statements in transactions

2011-03-26 Thread Torsten Landschoff
Torsten Landschoff 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 applicati

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

2011-03-26 Thread David-Sarah Hopwood
David-Sarah Hopwood 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), the

[issue11690] Add "communication" FAQ to devguide

2011-03-26 Thread Nick Coghlan
New submission from Nick Coghlan : 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 on

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

2011-03-26 Thread Denver Coneybeare
Denver Coneybeare added the comment: Awesome, thanks for committing the patch. Glad I could help. -- ___ Python tracker ___ ___ Pytho

[issue1838] Ctypes C-level infinite recursion

2011-03-26 Thread Roundup Robot
Roundup Robot 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 possi

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

2011-03-26 Thread Michael Foord
Michael Foord 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

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

2011-03-26 Thread Michael Foord
Michael Foord 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

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

2011-03-26 Thread Torsten Landschoff
Changes by Torsten Landschoff : Added file: http://bugs.python.org/file21416/test_clear_handler_py27.diff ___ Python tracker ___ ___ Python-bu

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

2011-03-26 Thread Torsten Landschoff
New submission from Torsten Landschoff : 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: p

[issue887237] Machine integers

2011-03-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: You could write a Python script to generator the methods. -- nosy: +benjamin.peterson ___ Python tracker ___ __

[issue11688] SQLite trace callback

2011-03-26 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> ghaering nosy: +ghaering ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue11688] SQLite trace callback

2011-03-26 Thread Torsten Landschoff
Torsten Landschoff 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 ___

[issue11688] SQLite trace callback

2011-03-26 Thread Torsten Landschoff
New submission from Torsten Landschoff : 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 t

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

2011-03-26 Thread Calvin Spealman
Calvin Spealman 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

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

2011-03-26 Thread Steven Bethard
Steven Bethard 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

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

2011-03-26 Thread Roundup Robot
Roundup Robot 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'

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

2011-03-26 Thread Michael Foord
Changes by Michael Foord : -- versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2011-03-26 Thread Michael Foord
Michael Foord 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 patte

[issue5340] Change in cgi behavior breaks existing software

2011-03-26 Thread Bob Kline
Bob Kline 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

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

2011-03-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

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

2011-03-26 Thread Martin v . Löwis
Martin v. Löwis 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

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

2011-03-26 Thread Glenn Linderman
Glenn Linderman 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 comp

[issue11659] Fix ResourceWarning in test_subprocess

2011-03-26 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- assignee: -> rosslagerwall nosy: +rosslagerwall resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.1, Python 3.2 ___ Python tracker __

[issue11659] Fix ResourceWarning in test_subprocess

2011-03-26 Thread Roundup Robot
Roundup Robot 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 tr

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

2011-03-26 Thread David-Sarah Hopwood
David-Sarah Hopwood 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 abstrac

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

2011-03-26 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

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

2011-03-26 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11681] -b option undocumented

2011-03-26 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11664] Add patch method to unittest.TestCase

2011-03-26 Thread Michael Foord
Michael Foord 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 fetc

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

2011-03-26 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2011-03-26 Thread Steven Bethard
Steven Bethard 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

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

2011-03-26 Thread Roundup Robot
Roundup Robot 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: I

[issue11635] concurrent.futures uses polling

2011-03-26 Thread Antoine Pitrou
Antoine Pitrou 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

[issue11635] concurrent.futures uses polling

2011-03-26 Thread Roundup Robot
Roundup Robot 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

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

2011-03-26 Thread Anders Kaseorg
Anders Kaseorg 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

[issue11664] Add patch method to unittest.TestCase

2011-03-26 Thread Pablo Mouzo
Pablo Mouzo 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 Ad

[issue11687] Cannot register using command-line

2011-03-26 Thread yac00b
New submission from yac00b : 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.

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

2011-03-26 Thread Martin v . Löwis
Martin v. Löwis 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 th

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

2011-03-26 Thread Rene Dudfield
Rene Dudfield 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

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

2011-03-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: But putting untrusted strings into the table name is a bug in the application, not in Python. -- ___ Python tracker ___ _

[issue11686] Update of some email/ __all__ lists

2011-03-26 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso : 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: Libr

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

2011-03-26 Thread Westley Martínez
Westley Martínez added the comment: I forgot to say, Arch Linux is rolling release so it doesn't have a version or id. -- ___ Python tracker ___ ___

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

2011-03-26 Thread Westley Martínez
Westley Martínez added the comment: Patch. -- keywords: +patch Added file: http://bugs.python.org/file21410/cpython-11678.diff ___ Python tracker ___ ___

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

2011-03-26 Thread Rene Dudfield
Rene Dudfield added the comment: Hello, because the sqlite3 package comes with python. -- ___ Python tracker ___ ___ Python-bugs-lis

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

2011-03-26 Thread Steven Bethard
Steven Bethard 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 -> com

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

2011-03-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: Why do you think this is a bug in Python? -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-

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

2011-03-26 Thread Roundup Robot
Roundup Robot 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

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

2011-03-26 Thread Rene Dudfield
New submission from Rene Dudfield : 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 ins

[issue7221] DispatcherWithSendTests_UsePoll with test_asyncore does nothing

2011-03-26 Thread Facundo Batista
Changes by Facundo Batista : -- assignee: facundobatista -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue2756] urllib2 add_header fails with existing unredirected_header

2011-03-26 Thread Facundo Batista
Facundo Batista 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 <

[issue5340] Change in cgi behavior breaks existing software

2011-03-26 Thread Facundo Batista
Changes by Facundo Batista : -- assignee: facundobatista -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue7284] argparse - display version in usage by default

2011-03-26 Thread anatoly techtonik
anatoly techtonik added the comment: On Sat, Mar 26, 2011 at 2:28 PM, Steven Bethard 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 met

[issue7284] argparse - display version in usage by default

2011-03-26 Thread Nick Coghlan
Nick Coghlan added the comment: On Sat, Mar 26, 2011 at 9:14 PM, anatoly techtonik 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. ar

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

2011-03-26 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso : 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 corr

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

2011-03-26 Thread Steven Bethard
Changes by Steven Bethard : -- stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs

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

2011-03-26 Thread Calvin Spealman
New submission from Calvin Spealman : 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

[issue11588] Add "necessarily inclusive" groups to argparse

2011-03-26 Thread Steven Bethard
Steven Bethard added the comment: I think this is a great suggestion. Care to work on a patch? -- stage: -> needs patch ___ Python tracker ___ _

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

2011-03-26 Thread Steven Bethard
Steven Bethard 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.p

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

2011-03-26 Thread John Szakmeister
John Szakmeister 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

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

2011-03-26 Thread Steven Bethard
Changes by Steven Bethard : -- assignee: -> bethard resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

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

2011-03-26 Thread Antoine Pitrou
Antoine Pitrou 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 /* h

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

2011-03-26 Thread Roundup Robot
Roundup Robot 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 ___ Pytho

[issue10665] Expand unicodedata module documentation

2011-03-26 Thread Ezio Melotti
Ezio Melotti 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

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-26 Thread R. David Murray
R. David Murray 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. -- ___ Pyt

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

2011-03-26 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> mark.dickinson resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker ___ _

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

2011-03-26 Thread Roundup Robot
Roundup Robot 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 ___

[issue7284] argparse - display version in usage by default

2011-03-26 Thread Steven Bethard
Steven Bethard 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 patch

[issue2694] msilib file names check too strict ?

2011-03-26 Thread Mark Mc Mahon
Mark Mc Mahon 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,

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

2011-03-26 Thread Filip Gruszczyński
Filip Gruszczyński 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 pa

[issue5880] Remove unneeded "context" pointer from getters and setters

2011-03-26 Thread Mark Dickinson
Changes by Mark Dickinson : -- title: test___all__ -> Remove unneeded "context" pointer from getters and setters ___ Python tracker ___ __

[issue5880] test___all__

2011-03-26 Thread Mark Dickinson
Changes by Mark Dickinson : -- title: Remove unneeded "context" pointer from getters and setters -> test___all__ ___ Python tracker ___ __

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

2011-03-26 Thread Steven Bethard
Steven Bethard 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(

[issue7284] argparse - display version in usage by default

2011-03-26 Thread anatoly techtonik
anatoly techtonik added the comment: On Sat, Mar 26, 2011 at 12:20 PM, Steven Bethard 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 i

[issue7284] argparse - display version in usage by default

2011-03-26 Thread anatoly techtonik
anatoly techtonik added the comment: On Sat, Mar 26, 2011 at 12:20 PM, Steven Bethard 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.

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

2011-03-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Please provide a patch for review. Thanks. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue11673] RawArray does not accept long

2011-03-26 Thread Mark Dickinson
Changes by Mark Dickinson : -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue11675] multiprocessing Arrays not automatically zeroed.

2011-03-26 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> mark.dickinson resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

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

2011-03-26 Thread Mark Mc Mahon
Mark Mc Mahon 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

[issue11675] multiprocessing Arrays not automatically zeroed.

2011-03-26 Thread Roundup Robot
Roundup Robot 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:

[issue7284] argparse - display version in usage by default

2011-03-26 Thread Steven Bethard
Steven Bethard 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 p

[issue7311] Bug on regexp of HTMLParser

2011-03-26 Thread Ezio Melotti
Ezio Melotti 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 "

[issue11675] multiprocessing Arrays not automatically zeroed.

2011-03-26 Thread Roundup Robot
Roundup Robot 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 tra

[issue11614] import __hello__ is broken in Python 3

2011-03-26 Thread Andreas Stührk
Andreas Stührk added the comment: On Fri, Mar 25, 2011 at 5:52 PM, Éric Araujo 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 o

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

2011-03-26 Thread Steven Bethard
Steven Bethard 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 b

[issue11635] concurrent.futures uses polling

2011-03-26 Thread s7v7nislands
Changes by s7v7nislands : -- nosy: +s7v7nislands ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2011-03-26 Thread Mark Dickinson
Mark Dickinson 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 i

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

2011-03-26 Thread Daniel Urban
Daniel Urban 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 exce

[issue11071] What's New review comments

2011-03-26 Thread Vinay Sajip
Changes by Vinay Sajip : -- nosy: -vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue5135] Expose simplegeneric function in functools module

2011-03-26 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

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

2011-03-26 Thread Kristján Valur Jónsson
Kristján Valur Jónsson 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

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-26 Thread Ezio Melotti
Ezio Melotti 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_t

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-26 Thread Ezio Melotti
Changes by Ezio Melotti : Removed file: http://bugs.python.org/file21381/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu