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
___
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
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
Changes by Daniel Urban urban.dani...@gmail.com:
--
nosy: +durban
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5135
___
___
Python-bugs-list
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:
--
nosy: -vinay.sajip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11071
___
___
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
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
Changes by s7v7nislands s7v7nisla...@gmail.com:
--
nosy: +s7v7nislands
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11635
___
___
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
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
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
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.
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:
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':
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
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
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
___
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
___
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
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
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 =
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
___
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
___
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
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
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
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
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
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.
--
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
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
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);
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
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
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
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
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
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
___
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
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
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
Changes by Facundo Batista facu...@taniquetil.com.ar:
--
assignee: facundobatista -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5340
___
___
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
Changes by Facundo Batista facu...@taniquetil.com.ar:
--
assignee: facundobatista -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7221
___
___
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
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
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
___
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
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
___
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
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
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?)
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
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
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.
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
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
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
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
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
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
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
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti, michael.foord
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11683
___
___
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
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11681
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11649
___
___
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
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
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
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
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
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
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: -pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11236
___
___
Python-bugs-list mailing
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:
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
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
___
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
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
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
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
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
Changes by Benjamin Peterson benja...@python.org:
--
assignee: - ghaering
nosy: +ghaering
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11688
___
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
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:
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
___
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
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
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
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
___
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
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
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
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
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
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
___
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
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.
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
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:
99 matches
Mail list logo