Brian Curtin cur...@acm.org added the comment:
So the presence of os.symlink depends on some dynamic privilege?
Yes.
Why not simply raise an exception when the user has not enough
privileges? (I mean OSError or WindowsError of course, not AttributeError)
My thinking was that anyone
Éric Araujo mer...@netwok.org added the comment:
My idea is simply using Popen with appropriate args for stdout and stderr
instead of using a shell command with redirections:
--- Lib/subprocess.py (révision 86943)
+++ Lib/subprocess.py (copie de travail)
@@ -560,11 +560,7 @@
return
Michael Foord mich...@voidspace.org.uk added the comment:
Committed revision 86944.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7911
Terry J. Reedy tjre...@udel.edu added the comment:
Here is a pretty minimal patch to expose bjunk and bpopular as attributes and
document them along with b2j, which is already exposed but not documented.
I suppose the proposed paragraph could be formatted as a list, perhaps after
New submission from Michael Foord mich...@voidspace.org.uk:
Reported by a unittest2 user.
A SystemExit (or GeneratorExit) will cause a test run to stop in 2.7 / 3.2.
This would just be reported as an error in 2.6.
from unittest import TestCase
def test(s):
... raise GeneratorExit
...
Changes by Michael Foord mich...@voidspace.org.uk:
--
title: sys.exit() in a test causes the run to stp - sys.exit() in a test
causes a test run to die
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10611
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10611
___
___
Python-bugs-list
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I am probably a bit late to this discussion, but why these things should be
called codecs and why should they share the registry with the encodings? It
looks like the proper term would be transformations or transforms.
Brian Curtin cur...@acm.org added the comment:
Here's a patch which implements the context manager and adds a few tests and a
small doc change.
Tested on Mac and Windows.
--
keywords: +patch
nosy: +brian.curtin
Added file: http://bugs.python.org/file19916/subprocess.diff
Éric Araujo mer...@netwok.org added the comment:
Thanks! Patch looks good, tests pass and doc builds.
I have one question and two micro-nitpicks on
http://codereview.appspot.com/3441041/
--
___
Python tracker rep...@bugs.python.org
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Should we also review the documentation for fractions and decimals? For
example, fractions are documented as accepting strings of decimal digits, but
given that we have presumably non-identical str.isdigit() and
New submission from Michael Foord mich...@voidspace.org.uk:
It is hard for test infrastructure to halt a test run unless it has access to
the result object.
A StopTestRun exception could be provided. This could be caught in TestCase.run
and call TestResult.stop().
It could be parameterized
Brian Curtin cur...@acm.org added the comment:
I updated the doc to be much more simple. I got used to sys.executable based
tests :) New patch attached.
As for __del__, I think it should do it's thing, and the exit will do it's own.
Context managers are traditionally used on file-based
Éric Araujo mer...@netwok.org added the comment:
New doc looks good. Suggested changes: make with a link, explaing why it’s a
context manager.
- Popen objects are supported as context managers via the ``with`` statement.
+ Popen objects are supported as context managers via the
Éric Araujo mer...@netwok.org added the comment:
:keyword:`with`` → :keyword:`with`
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10554
___
___
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
title: Context managerment support for subprocess.Popen - Context management
support for subprocess.Popen
___
Python tracker rep...@bugs.python.org
Ray.Allen ysj@gmail.com added the comment:
Oh, yes, I missed that, too. I didn't pay attention to that. Thanks for
pointing out it and fix it!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9299
Éric Araujo mer...@netwok.org added the comment:
To sum up the current consensus as I understand it, the missing end of line is
clearly a bug, but the addition of “\No newline at end of file” is
controversial. In the current patch, both are changed, so backporting only the
first fix to 3.1
Brian Curtin cur...@acm.org added the comment:
Committed in r86951. Thanks for the reviews!
--
assignee: - brian.curtin
resolution: - fixed
stage: needs patch - committed/rejected
___
Python tracker rep...@bugs.python.org
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I am submitting a new patch that excludes int() changes. The honest reason for
the exclusion is that I gave up chasing a bug that only shows in full regrtest
runs. (Marc, I don't think it is related to what you thought
Éric Araujo mer...@netwok.org added the comment:
Didn’t the first message ask for the feature to be extended to non-exceptions
classes? “Built-in” subclasses is a red herring, to me the feature is: display
subclasses. In the text output you can use the search feature of your pager to
jump
R. David Murray rdmur...@bitdance.com added the comment:
Closing this in favor of 1486713, which has a patch and covers additional
issues.
--
nosy: -BreamoreBoy
resolution: - duplicate
stage: unit test needed - committed/rejected
status: open - closed
superseder: - HTMLParser : A
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Thu, Dec 2, 2010 at 9:56 PM, Éric Araujo rep...@bugs.python.org wrote:
..
Didn’t the first message ask for the feature to be extended to non-exceptions
classes? “Built-in”
subclasses is a red herring, to me the
Éric Araujo mer...@netwok.org added the comment:
Yes, I imagine the feature to be useful to find subclasses defined in the same
module. Rob, am I misunderstanding your original request?
--
___
Python tracker rep...@bugs.python.org
New submission from Charles Harris charlesr.har...@gmail.com:
The attached patch fixes the problem.
--
components: Library (Lib)
files: gzip.patch
keywords: patch
messages: 123171
nosy: charris44
priority: normal
severity: normal
status: open
title: gzip._PaddedFile calls getattr with
Éric Araujo mer...@netwok.org added the comment:
Thanks for the report and patch. Can you add a test, to prevent a regression?
--
nosy: +eric.araujo
stage: - unit test needed
type: - behavior
versions: +Python 2.7, Python 3.1
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
The incompatibility worries me a bit. A program compatible with Python 3.1 and
3.2 would have to support both sets of messages; I don’t know whether the i18n
tools support having all the strings in one PO file, and how inconvenient it
would be
R. David Murray rdmur...@bitdance.com added the comment:
I have committed a version of this patch, without the warnings, using the
keyword 'strict=True' as the default, and with a couple added heuristics from
other similar issues, in r86952.
kxroberto, if you want to supply your full name,
R. David Murray rdmur...@bitdance.com added the comment:
The new strict=False mode from #1486713 handles this case.
--
nosy: +r.david.murray
resolution: - accepted
stage: - committed/rejected
status: open - closed
superseder: - HTMLParser : A auto-tolerant parsing mode
R. David Murray rdmur...@bitdance.com added the comment:
Included this in the 'strict=False' mode in the issue 1486713 patch.
--
nosy: +r.david.murray -BreamoreBoy
resolution: - accepted
stage: patch review - committed/rejected
status: open - closed
superseder: - HTMLParser : A
Changes by R. David Murray rdmur...@bitdance.com:
--
title: HTMLParser fix to accept mailformed tag attributes - HTMLParser fix to
accept malformed tag attributes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1046092
Éric Araujo mer...@netwok.org added the comment:
I’ve started on a test but I’m not sure how to proceed, since I need to use or
intercept gettext and compare the error messages of argparse with translated
messages to prove that the gettext calls are bogus. There are various ways of
using or
Éric Araujo mer...@netwok.org added the comment:
Sounds like a “+1 for the patch” to me :)
I get no warning on linux2 after the patch. This is still a behavior change,
and there might be code out there relying on self.get_export_symbols being
called. My understanding of extension modules
Changes by Éric Araujo mer...@netwok.org:
Removed file: http://bugs.python.org/file19914/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
___
Éric Araujo mer...@netwok.org added the comment:
Whether 1+2j is a literal or an expression is debatable. I think +1 is an
expression but 1+2j is a literal; neither should have a space.
I’m not sure the language reference and the actual implementation are in
agreement here (I have peephole
Charles Harris charlesr.har...@gmail.com added the comment:
Hi Eric,
On Thu, Dec 2, 2010 at 8:12 PM, Ãric Araujo rep...@bugs.python.org wrote:
Where are the guidelines for writing python tests?
Chuck
--
Added file: http://bugs.python.org/file19921/unnamed
Changes by Charles Harris charlesr.har...@gmail.com:
Removed file: http://bugs.python.org/file19921/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10613
___
Éric Araujo mer...@netwok.org added the comment:
The best way is to learn by imitation. If you prefer to read, there is some
guidance on http://www.python.org/dev/workflow/ and
http://www.python.org/dev/faq/#how-to-test-a-patch .
Concretely, you need to open a file, wrap it in a _PaddedFile
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Try not to sprawl this all over the docs. Find the most common root and
document it there. No need to garbage-up Fractions, Decimal etc. with
something that is of zero interest to 99.9% of users.
--
nosy:
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Fri, Dec 3, 2010 at 12:10 AM, Raymond Hettinger
rep...@bugs.python.org wrote:
..
Try not to sprawl this all over the docs. Find the most common root and
document it there.
No need to garbage-up Fractions, Decimal
Charles Harris charlesr.har...@gmail.com added the comment:
Looks like this was fixed by r86555 and a test added. I think you can close the
ticket.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10613
Éric Araujo mer...@netwok.org added the comment:
Good catch. I’m tired, I should have noticed that :)
--
resolution: - duplicate
stage: unit test needed - committed/rejected
status: open - closed
superseder: - gzip module calls getattr incorrectly
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Thu, Dec 2, 2010 at 11:49 PM, Éric Araujo rep...@bugs.python.org wrote:
..
Whether 1+2j is a literal or an expression is debatable.
I think +1 is an expression but 1+2j is a literal; neither should have a
space.
With
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Thu, Dec 2, 2010 at 11:49 PM, Éric Araujo rep...@bugs.python.org wrote:
..
Whether 1+2j is a literal or an expression is debatable.
I think +1 is an expression but 1+2j is a literal; neither should have a
space.
With
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
And of course, roundup ate my work. The tokenize incantation was
pprint(list(tokenize(iter([b'1+1j']).__next__)))
--
___
Python tracker rep...@bugs.python.org
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
Removed message: http://bugs.python.org/msg123186
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
___
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
Removed message: http://bugs.python.org/msg123187
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
___
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Try not to twist yourself in a knot over this.
I'll be happy to review in proposed doc patch.
--
assignee: d...@python - rhettinger
___
Python tracker rep...@bugs.python.org
Sandro Tosi sandro.t...@gmail.com added the comment:
Hi Eric,
on and up-to-date py3k I got this:
for k, v in db.items():
... print(k, '\t', v)
...
Traceback (most recent call last):
File stdin, line 1, in module
AttributeError: '_dbm.dbm' object has no attribute 'items'
'items' in
Senthil Kumaran orsent...@gmail.com added the comment:
On Mon, Nov 29, 2010 at 05:51:35PM +, Antoine Pitrou wrote:
However, urllib.request.urlopen() works fine in this case, so
perhaps this advocates for deprecating the old stuff? Senthil?
Yes. It should be deprecated.. I created a
Éric Araujo mer...@netwok.org added the comment:
Thanks Daniel. I have good and bad news for this patch.
The bad news is that I don’t want to accept patches without tests. We need to
stop guessing or experimenting with the real PyPI to fix bugs.
The good news is that we have a mock PyPI
Changes by Éric Araujo mer...@netwok.org:
--
priority: normal - high
stage: needs patch - unit test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10453
___
Georg Brandl ge...@python.org added the comment:
Don't worry about doc additions too much; all doc changes can be considered bug
fixes.
In this patch, it appears that two of the three attributes are new? They
should get a versionadded.
--
___
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
--
Removed message: http://bugs.python.org/msg123190
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10610
___
Georg Brandl ge...@python.org added the comment:
Committed in r86955. Thanks!
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1745035
___
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Let me know when you have a proposed doc patch. Ideally, the details should
just be in one place and we can refer to it elsewhere. We don't want to add
extra info to every function or method in Python that uses int(s) and
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:
Currently, ZipFile only accepts ascii or utf8 as file
name encodings. On Windows (Japanese), usually CP932
is used for it. So currently, when we melt ZipFile
via py3k, non-ascii file name becomes strange. Can we handle
this issue?
Georg Brandl ge...@python.org added the comment:
Looks good; committed in r86957.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue940286
___
Georg Brandl ge...@python.org added the comment:
I agree; committed in r86960.
If anyone wants to change this to raise TypeError for objects that are both
unhashable and unrefable, please speak up.
--
resolution: - fixed
status: open - closed
___
101 - 159 of 159 matches
Mail list logo