Changes by Craig McQueen pyt...@craig.mcqueen.id.au:
--
nosy: +cmcqueen1975
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7639
___
___
Chris Rebert pyb...@rebertia.com added the comment:
I found some extra time. Here's an initial suggested patch against py3k head.
Disclaimer: I have no special expertise in computer security beyond having read
Secure Coding: Principles and Practices a while back.
--
keywords: +patch
Martin v. Löwis mar...@v.loewis.de added the comment:
I fail to see the bug in this report. '\xff' is a letter because the C library
says it is. If you think the result is wrong, file a bug report with the OS
vendor.
--
nosy: +loewis
___
Python
Eli Bendersky eli...@gmail.com added the comment:
Attaching a patch vs. the 2.6 maintenance branch for the Doc/library/trace.rst
file
* Fixed some formatting issues for command line options and class references
* Documented all relevant user-accessible methods
* Divided command-line options
Barry A. Warsaw ba...@python.org added the comment:
I'd love it if Windows was also supported, but right now I don't have the
cycles to make and test the changes, or the expertise to understand any related
Windows issues. I've mentioned this in PEP 3149, and I'd happily accept code
and PEP
Virgil Dupras hs...@hardcoded.net added the comment:
It looks like this issue has been fixed in issue7105 already. Can we close this
ticket?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue839159
Sébastien Sablé sa...@users.sourceforge.net added the comment:
Well I am still interested in getting this patch officially integrated in
Python.
This patch is integrated in the version of Python that we deploy to our
customers with our products (Sungard GP3). So it runs in production at
Mark Dickinson dicki...@gmail.com added the comment:
It's not yet fixed in 2.7 or 2.6. Updating versions.
--
nosy: +mark.dickinson
versions: +Python 2.6 -Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
Virgil Dupras hs...@hardcoded.net added the comment:
We might as well backport Antoine's patch rather than take this one (even if
mine for 2.x already). It would be weird to have 2 wildly different patches to
solve the same problem.
Maybe close this ticket and flag issue7105 for backporting?
Mark Dickinson dicki...@gmail.com added the comment:
Agreed.
--
resolution: - duplicate
status: open - closed
superseder: - weak dict iterators are fragile because of unpredictable GC runs
___
Python tracker rep...@bugs.python.org
Mark Dickinson dicki...@gmail.com added the comment:
The issue still exists in 2.6 and 2.7.
Closing issue 839159 as a duplicate of this one.
--
nosy: +mark.dickinson
resolution: fixed -
stage: committed/rejected -
status: closed - open
versions: +Python 2.6, Python 2.7 -Python 3.1,
Changes by Mark Dickinson dicki...@gmail.com:
--
nosy: +BreamoreBoy, ajaksu2, dcjim, elachuni, tseaver, vdupras
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7105
___
Ronald Oussoren ronaldousso...@mac.com added the comment:
Committed a fix in r83067 (py3k), will backport to other active branches
shortly.
--
versions: -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4047
Changes by Peter p.j.a.c...@googlemail.com:
--
nosy: +maubp
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2734
___
___
Python-bugs-list mailing
Changes by Peter p.j.a.c...@googlemail.com:
--
nosy: +maubp
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9257
___
___
Python-bugs-list mailing
Martin v. Löwis mar...@v.loewis.de added the comment:
At Europython, we agreed that this functionality is too trivial to add to the
standard library; for all practical purposes, os.listdir(.) will do the right
thing.
So rejecting this as won't fix.
--
nosy: +loewis
resolution: -
Ronald Oussoren ronaldousso...@mac.com added the comment:
As Ned noted Tkinter is named tkinter in py3k.
--
resolution: - invalid
stage: - committed/rejected
status: open - closed
type: - behavior
___
Python tracker rep...@bugs.python.org
Virgil Dupras hs...@hardcoded.net added the comment:
If I understand the patch correctly, this patch basically add a test for
relative imports. I'm pretty sure this is already testes in importlib.test.
Brett, am I right?
If yes, there's no point in applying this patch.
--
nosy:
Changes by Ronald Oussoren ronaldousso...@mac.com:
--
keywords: +easy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7895
___
___
Python-bugs-list
Richard Jones richardjo...@optushome.com.au added the comment:
After discussing with core devs at the EuroPython sprint I will implement a
different approach: new attributes with the old, private attributes implemented
as properties over the new attributes. The properties responsible for this
Brett Cannon br...@python.org added the comment:
Yes, importlib has tests for relative import, but those are only run against
importlib and not __import__. Adding Skip's tests and seeing how they differ
from what importlib.test.import_.test_relative_imports would be good.
--
Ronald Oussoren ronaldousso...@mac.com added the comment:
This is still an issue for the PPC Tiger buildbot:
test_ttk_guionly
make: *** [buildbottest] Segmentation fault
(Direct link:
http://www.python.org/dev/buildbot/builders/PPC%20Tiger%202.7/builds/39/steps/test/logs/stdio)
--
Tarek Ziadé ziade.ta...@gmail.com added the comment:
what do you mean by 'too trivial' ?
I don't understand why this is now suddenly rejected. Raymond, Guido, and other
people have +1 this on python-ideas.
http://mail.python.org/pipermail/python-ideas/2009-May/004871.html
People have worked
New submission from Mark Dickinson dicki...@gmail.com:
Proposal: make the str of a float (or complex number) identical to the repr of
a float (or complex number), in Python 3.2. This idea came up a couple of
times at EuroPython, and generally met with approval.
An open question: what should
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6095
___
___
Python-bugs-list mailing
Martin v. Löwis mar...@v.loewis.de added the comment:
ok, so reopening. Linking to the mailing list would have helped.
--
resolution: wont fix -
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6095
New submission from Steven Bethard steven.beth...@gmail.com:
[From the old argparse tracker:
http://code.google.com/p/argparse/issues/detail?id=20]
You can't follow a nargs='+' optional argument with a positional argument:
import argparse
parser = argparse.ArgumentParser(prog='PROG')
Steve Holden st...@holdenweb.com added the comment:
With the 2.7 release now completed should we close this issue? There's nothing
to be done about the 2.6 issue.
--
nosy: +holdenweb
___
Python tracker rep...@bugs.python.org
Changes by Éric Araujo mer...@netwok.org:
--
resolution: - duplicate
stage: needs patch - committed/rejected
status: open - closed
superseder: - argparse does not accept options taking arguments beginning
with dash (regression from optparse)
___
Tarek Ziadé ziade.ta...@gmail.com added the comment:
Yes, sorry. I should have added the link when I opened the bug. Thanks for
reopening it
--
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
resolution: wont fix -
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6095
___
Changes by Fred L. Drake, Jr. fdr...@acm.org:
--
nosy: +tarek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9173
___
___
Python-bugs-list mailing
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
nosy: -gvanrossum
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6095
___
Tarek Ziadé ziade.ta...@gmail.com added the comment:
reopening again sorry (roundup bug)
--
resolution: wont fix -
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6095
Ronald Oussoren ronaldousso...@mac.com added the comment:
I agree, this issue can be closed as there's nothing useful we can do at this
point in time.
--
resolution: - wont fix
stage: - committed/rejected
status: open - closed
___
Python tracker
Ronald Oussoren ronaldousso...@mac.com added the comment:
Fixed in r83070, NEWS update in r83071.
--
resolution: - fixed
stage: - committed/rejected
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9275
Virgil Dupras hs...@hardcoded.net added the comment:
Because importlib is already well tested and that it already has the machinery
to test __import__ instead of the importlib code, I suggest that we re-use
importlib's relative tests instead.
Attached is a patch that does this. I made sure
Dmitry Jemerov intelliy...@gmail.com added the comment:
Patch (with unittest) attached.
--
keywords: +patch
Added file: http://bugs.python.org/file18139/8123.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8123
Changes by Ronald Oussoren ronaldousso...@mac.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9275
___
___
New submission from Brian Brazil brian.bra...@gmail.com:
http://docs.python.org/py3k/library/threading.html
Roughly, a thread is alive from the moment the start() method returns until
its run() method terminates.
Using Roughly in relation to threading is a bit unspecific. I've had a look
Steven Bethard steven.beth...@gmail.com added the comment:
Note that the negative number heuristic you're complaining about doesn't
actually affect your code below. The negative number heuristic is only used
when you have some options that look like negative numbers. See the docs for
more
Steven Bethard steven.beth...@gmail.com added the comment:
This is definitely a different bug from the one you just marked it as a
duplicate of.
--
resolution: duplicate -
stage: committed/rejected - needs patch
status: closed - open
superseder: argparse does not accept options taking
Changes by Brian Brazil brian.bra...@gmail.com:
Removed file: http://bugs.python.org/file18140/threading-roughly-doc-fix.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9339
___
Brian Brazil brian.bra...@gmail.com added the comment:
Here's a slightly cleaner version.
--
Added file: http://bugs.python.org/file18141/threading-roughly-doc-fix.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9339
Éric Araujo mer...@netwok.org added the comment:
I read too fast, I’m sorry for that.
--
nosy: +merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9338
___
Petras Zdanavičius petra...@gmail.com added the comment:
I have added tests.
--
nosy: +Petras.Zdanavičius
Added file: http://bugs.python.org/file18142/fix-6878-with-tests.patch
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Looks good to me. Thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6878
___
___
New submission from Steven Bethard steven.beth...@gmail.com:
[Moved from http://code.google.com/p/argparse/issues/detail?id=45]
If you try to use parse_known_args and you have a subparser, the subparser will
still complain if it sees extra arguments:
parser = argparse.ArgumentParser()
Brett Cannon br...@python.org added the comment:
3.2: 83072
3.1: 83076
2.7: 83077
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9255
___
Virgil Dupras hs...@hardcoded.net added the comment:
Applies cleanly on the py3k branch at r83069, the tests work correctly (fail
before applying the patch, success afterwards), and, to the best of my C-API
knowledge, the C code is alright.
Oh, and it behaves as described...
Python 3.2a0
Dmitry Jemerov intelliy...@gmail.com added the comment:
Patch (suggested fix and unittest) attached.
--
keywords: +patch
Added file: http://bugs.python.org/file18143/9291.patch
___
Python tracker rep...@bugs.python.org
Virgil Dupras hs...@hardcoded.net added the comment:
Oops, used it wrong (but it still works correctly).
p2 = partial(p1, 2)
p2.func, p2.args
(function foo at 0x10051da68, (1, 2))
--
___
Python tracker rep...@bugs.python.org
New submission from Steven Bethard steven.beth...@gmail.com:
[Moved from http://code.google.com/p/argparse/issues/detail?id=53]
It's currently not possible to have subcommands formatted in groups, e.g.
instead of:
subcommands:
{a,b,c,d,e}
a a subcommand help
b b
Dmitry Jemerov intelliy...@gmail.com added the comment:
And by the way I've verified that the problem doesn't happen in py3k trunk.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9291
___
New submission from John Chandler therealmetal...@gmail.com:
Hi,
Attaching a patch for the test_calendar.py file.
Adds six tests to provide test coverage of the monthrange function.
John
--
components: Tests
files: test_calendar.patch
keywords: patch
messages: 111292
nosy:
Martin v. Löwis mar...@v.loewis.de added the comment:
Thanks for the patch. Committed (with modifications) as r83078.
--
resolution: - accepted
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6095
Steven Bethard steven.beth...@gmail.com added the comment:
In argparse, -debug is a perfectly valid flag (you're not required to have
--debug, and you can even have +debug if you want and you specify it
correctly), so unless I misunderstand what the bug is, this doesn't apply to
argparse.
Tarek Ziadé ziade.ta...@gmail.com added the comment:
Thanks for looking into this !
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6095
___
___
Brett Cannon br...@python.org added the comment:
3.2: 83080
3.1: 83081
2.7: 83082
--
nosy: +brett.cannon
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9339
Ronald Oussoren ronaldousso...@mac.com added the comment:
Backported to 3.1 in r83069, 2.7 in r83079, 2.6 in r83083
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Brett, could you add “r” or “rev ” before revision numbers in the future? It’s
Roundup implicit markup to make a link to a revision. (Evil but handy.) Thanks
in advance :)
--
nosy: +merwok
stage: needs patch - committed/rejected
Mark Lawrence breamore...@yahoo.co.uk added the comment:
@Peter again the py3k patch is fine and the 2.7 fails. Is this worth all your
effort?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1812
Martin v. Löwis mar...@v.loewis.de added the comment:
At EuroPython, Virgil remarked that there was some discussion of this patch
somewhere.
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2979
Steven Bethard steven.beth...@gmail.com added the comment:
Not sure, but I think _print_message in argparse isn't exactly what the OP is
looking for if they really only care about errors. If you want to override how
errors are printed, then it's absolutely correct to override the error method
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4297
___
___
Python-bugs-list mailing
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +merwok
resolution: - accepted
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9341
___
R. David Murray rdmur...@bitdance.com added the comment:
In that case you are correct, it does not apply to argparse.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4640
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8273
___
___
Python-bugs-list mailing
Ronald Oussoren ronaldousso...@mac.com added the comment:
Fixed in r83075 (3.2), r83084 (3.1), r83085 (2.7), r83086 (2.6)
--
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Peter Donis peterdo...@alum.mit.edu added the comment:
@Mark, I'm probably stubborn, yes. :-) Could you post verbose
output from your testing on Windows? I'd at least like to be
able to duplicate your findings; it's possible there's
something simple I'm missing.
--
Mark Lawrence breamore...@yahoo.co.uk added the comment:
The patch seems clean to me. Applied patch to unit test and ran it, tests
failed, then applied patch to module, tests passed. Also tried import
pydoc;pydoc.gui() from the command line, the output looked fine to me. Tested
on Windows
New submission from Steven Bethard steven.beth...@gmail.com:
[From http://code.google.com/p/argparse/issues/detail?id=61]
It should be documented clearly that only the arguments present on the parent
parser at the time ArgumentParser is called will be included in the parser.
parent =
Éric Araujo mer...@netwok.org added the comment:
I removed 3.3, since it currently means “won’t be done for 3.2, so note for
later.” I don’t know if the report applies to 3.1 (doc fixes go into stable
releases too), so I’m not adding it.
--
nosy: +merwok
versions: -Python 3.3
Steven Bethard steven.beth...@gmail.com added the comment:
Ah, thanks for the fix. No it doesn't need to go in 3.1 - argparse is only in
2.7 and 3.2.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9343
New submission from Ronald Oussoren ronaldousso...@mac.com:
A number of unix systems expose a getgroupslist function to fetch the groups
that a user is a member of. It would be nice if that function were exposed to
python.
See issue7900 for more information on why that would be useful.
Changes by Ronald Oussoren ronaldousso...@mac.com:
--
nosy: +belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9344
___
___
Ronald Oussoren ronaldousso...@mac.com added the comment:
I've added issue9344 for adding os.getgroupslist. I'd prefer to keep adding
that function separate from this issue. Btw. I'm +1 on adding such a function.
I will shortly commit a port of os-getgroups-v3.patch to 3.2, but without the
New submission from Steven Bethard steven.beth...@gmail.com:
[From http://code.google.com/p/argparse/issues/detail?id=63]
What steps will reproduce the problem?
1. PYTHONPATH=. python test/test_argparse.py
2. do the above in an 80x24 terminal window and it passes
3. do the same in an 80 wide
Bhargav bhar...@bluejeansnet.com added the comment:
I am seeing the same exception when the server returns ex:nil, even when I
enable allow_none.
The library only accepts 'nil' not 'ex:nil'
As a workaround, I have added dispatch[ex:nil] to my local library (which is
obviously not a solution)
New submission from Brian Brazil brian.bra...@gmail.com:
The attached patch:
Remove unused self-test from threading.py that doesn't really test much.
Add better testing for Thread.__repr__.
This brings coverage as measured by regrtest from 40% to 45%.
--
components: Interpreter Core
Mark Lawrence breamore...@yahoo.co.uk added the comment:
@Peter apologies hereby offered, the 2.7 patch is fine, I'd screwed up
doctest_testfile.txt. As the patch is ok and has been very thoroughly tested
please can this be committed.
--
stage: - commit review
R. David Murray rdmur...@bitdance.com added the comment:
This would involve too much of a behavior change to be introduced in a point
release. string.letters does not exist in py3k. Closing as out of date.
--
nosy: +r.david.murray
resolution: - out of date
stage: -
New submission from Steven Bethard steven.beth...@gmail.com:
What steps will reproduce the problem?
parser = argparse.ArgumentParser()
parser.add_argument('--foo', type=(int, float))
What is the expected output?
ValueError: (type 'int', type 'float') is not callable
What do you see instead?
New submission from Steven Bethard steven.beth...@gmail.com:
What steps will reproduce the problem?
parser = argparse.ArgumentParser()
parser.add_argument('--foo', nargs=2, metavar=('X','Y','Z'))
parser.parse_args(['-h'])
The error dosn't show up until help is formatted.
Giving any
R. David Murray rdmur...@bitdance.com added the comment:
And just for clarity: py3k trunk does contain the _winreg code path.
--
stage: unit test needed - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9291
Changes by Brian Curtin cur...@acm.org:
--
nosy: +brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9291
___
___
Python-bugs-list mailing
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Since I am the OP of this patch, I would like a +1 from another developer
before checking this in. (Or a couple of -1s before rejecting:-)
Antoine,
Does the latest patch address your concerns?
Virgil,
If you care
New submission from Steven Bethard steven.beth...@gmail.com:
Argparse supports silencing help for certain options using SUPPRESS.
parser = argparse.ArgumentParser()
parser.add_argument('--foo', help=argparse.SUPPRESS)
parser.print_help()
usage: [-h]
optional arguments:
-h, --help show
New submission from Steven Bethard steven.beth...@gmail.com:
[From http://code.google.com/p/argparse/issues/detail?id=71]
There is a method ArgumentParser.add_argument_group() to create and add an
argument group to the parser. I would like the ability to remove an argument
group via a method
Brett Cannon br...@python.org added the comment:
3.2 in r83089
--
nosy: +brett.cannon
resolution: - accepted
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9342
___
Brett Cannon br...@python.org added the comment:
Committed in r83090. Tweaked the patch from Virgil slightly so that it sets the
flag used by importlib to delineate whether to use __import__ back to its
original setting after running the tests.
--
resolution: - accepted
status: open
New submission from Steven Bethard steven.beth...@gmail.com:
If you use set_defaults on a subparser, but a default exists on the top level
parser, the subparser defaults are ignored:
parser = argparse.ArgumentParser()
xparser = parser.add_subparsers().add_parser('X')
Virgil Dupras hs...@hardcoded.net added the comment:
Brett, I think there's a problem with the tweak you made to the patch. There
was already a testcase called RelativeImportTests and you've hidden it (that I
why I called it ImportlibRelativeImportTests initially).
--
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Fri, Jul 23, 2010 at 4:03 AM, Martin v. Löwis rep...@bugs.python.org
wrote:
..
I fail to see the bug in this report. '\xff' is a letter because the C
library says it is.
This does not explain the difference between
Ronald Oussoren ronaldousso...@mac.com added the comment:
Daniele: which version of OSX do you use? And if you use OSX 10.5 or 10.6:
which is your system language according to system preferences (the topmost
entry in the list of the Language and Text preference pane, whose icon looks
a
New submission from Steven Bethard steven.beth...@gmail.com:
[Moved from http://code.google.com/p/argparse/issues/detail?id=73]
What steps will reproduce the problem?
parser = ArgumentParser(prefix_chars=-+)
parser.add_argument(-a,action=store_true)
parser.add_argument(+b,action=store_true)
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Another issue that may be worth revisiting is whether or not it is OK for
_tkinter to set the locale.
21.2.2. For extension writers and programs that embed Python
Extension modules should never call setlocale(), except
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Right now this would suit me down to the ground, as I'm running four
maintenance versions, 2.6/7 and 3.1/2 in parallel. But as this is a feature
request it will not happen until 3.2 at the earliest.
--
nosy: +BreamoreBoy
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
Added file: http://bugs.python.org/file18148/datetimetester.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7989
___
New submission from Steven Bethard steven.beth...@gmail.com:
[Moved from http://code.google.com/p/argparse/issues/detail?id=75]
What steps will reproduce the problem?
1. import argparse
2. print dir(argparse)
3. print argparse.__all__
Compare the output for public methods and attributes from
1 - 100 of 207 matches
Mail list logo