Stefan Behnel sco...@users.sourceforge.net added the comment:
I don't see this having much to do with the DRY principle. It's explicit is
better than implicit and better safe than sorry that applies here.
--
___
Python tracker rep...@bugs.python.org
Martin v. Löwis mar...@v.loewis.de added the comment:
I recommend to revert this change. It seems that some users are opposed to any
kind of folding (as my earlier folding experiment has demonstrated); users who
*really* don't want to see the history would need to step forward and request a
Changes by Martin v. Löwis mar...@v.loewis.de:
--
Removed message: http://bugs.python.org/msg137107
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8583
___
Changes by Santoso Wijaya santoso.wij...@gmail.com:
--
components: +Interpreter Core
versions: +Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12163
___
Roundup Robot devnull@devnull added the comment:
New changeset ecf0ef85c72a by Ned Deily in branch '2.7':
Issue #9670: Increase the default stack size for secondary threads on
http://hg.python.org/cpython/rev/ecf0ef85c72a
New changeset 0cded2f2cea3 by Ned Deily in branch '3.1':
Issue #9670:
Ned Deily n...@acm.org added the comment:
Version 4 looks good and the tests pass on OS X with pydebug enabled. Applied
in 2.7 (for release in 2.7.2), 3.1 (for 3.1.4). 3.2 (for 3.2.1), and default
(for 3.3).
--
resolution: - fixed
stage: patch review - committed/rejected
status:
Ross Lagerwall rosslagerw...@gmail.com added the comment:
Out of interest, is there any reason that the configure check for pipe2 is a
special case near the bottom of configure.in instead of with all the other
function checks in the AC_CHECK_FUNCS[] section in the middle?
I know this patch
Ezio Melotti ezio.melo...@gmail.com added the comment:
I'm not sure it's worth adding this to the PEP 7. The PEP is about conventions
and style not idioms.
PEP 8 has a section about Programming Recommendations that contains a few
idioms, but since PEP 7 doesn't have an equivalent section, I
Ezio Melotti ezio.melo...@gmail.com added the comment:
Terry, I think you can apply the patch you proposed in msg137085 and close this
issue.
If the recommended structure of test files is not documented, a section in the
devguide should be added, but that's another issue. (FWIW I'm not even
Ezio Melotti ezio.melo...@gmail.com added the comment:
Python 3.1.4 should be released today, so I think it's too late for this to be
fixed.
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10449
Ezio Melotti ezio.melo...@gmail.com added the comment:
The release date of 3.1.4 is actually June 11th. Today will be released an RC
though, so what I said should still apply.
--
___
Python tracker rep...@bugs.python.org
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12170
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9382
___
___
Python-bugs-list
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10224
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10225
___
___
Roundup Robot devnull@devnull added the comment:
New changeset a2688e252204 by Ned Deily in branch '3.1':
Issue #985064: Make plistlib more resilient to faulty input plists.
http://hg.python.org/cpython/rev/a2688e252204
New changeset f555d959a5d7 by Ned Deily in branch '3.2':
Issue #985064:
Ned Deily n...@acm.org added the comment:
Thank you for the patch and tests! Applied in 3.1 (for 3.1.4), 3.2 (for
3.2.1), and 3.3. (The 2.x version of plistlib differs somewhat from the 3.x
version so the patch would need some rework and testing for 2.7; that is
probably not worth the effort
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Does this change have a visible effect? If so, can it have some unit test?
Otherwise pypy and other alternative implementations are likely to miss this
change.
--
nosy: +amaury.forgeotdarc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com:
--
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12106
___
___
Charles-François Natali neolo...@free.fr added the comment:
Out of interest, is there any reason that the configure check for pipe2 is a
special case near the bottom of configure.in instead of with all the other
function checks in the AC_CHECK_FUNCS[] section in the middle?
No clue. I'll
Changes by Charles-François Natali neolo...@free.fr:
--
nosy: +gregory.p.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12196
___
___
Senthil Kumaran sent...@uthcode.com added the comment:
I think, if you speak to RM, you can just have this change in. Don't we get no
commits please email request from RM with hg or is the branch already cut?
--
___
Python tracker
Nick Coghlan ncogh...@gmail.com added the comment:
From my review:
One genuine problem with a stale assert and comment in ast.c, and a small
objection to style in compile.c (I'd like a new compile_try() function to match
the new AST node).
Otherwise looked good in a desk review.
--
Nick Coghlan ncogh...@gmail.com added the comment:
The AST version changed, and, more importantly, if other implementations pick
up our AST changes without updating their compilers accordingly, their symbol
table analysis and code compilation processes will break.
So yes, the test suite does
Ross Lagerwall rosslagerw...@gmail.com added the comment:
Also, the pure python implementation of subprocess for posix can now be
updated to use pipe2 if it exists (previously on _posixsubprocess.c
used it).
I don't understand the last part :-)
What do you suggest?
Perhaps, os.pipe2 can
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Thanks for this answer.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12106
___
___
Nick Coghlan ncogh...@gmail.com added the comment:
One other thing I should mention is that in a later checkin, Benjamin did add a
couple of explicit with statement examples to test_ast. These will fail if
other implementations don't update the front end of their compilation processes
Ezio Melotti ezio.melo...@gmail.com added the comment:
That would be c4ddb460f4f2.
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12106
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
Note that usually 'self' is not included in the arguments of methods. The 3.3
doc correctly uses e.g. copy_sign(other). A 'd.' could also be added so that
the end result looks like:
d.copy_sign(other)
but it's not mandatory (if done,
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10449
___
___
Changes by Adam Woodbeck adam.woodb...@gmail.com:
--
nosy: +adam.woodbeck
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12185
___
___
Changes by Adam Woodbeck adam.woodb...@gmail.com:
--
nosy: +adam.woodbeck
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11699
___
___
Jason R. Coombs jar...@jaraco.com added the comment:
To the extent that we can, we should try to support relative symlinks. Absolute
symlinks aren't the right thing in some cases, where the symlinks should be
movable with their targets. I use relative links extensively.
Is it worth
Roundup Robot devnull@devnull added the comment:
New changeset a2f088cf7ced by Ned Deily in branch '2.7':
Issue #11217: For 64-bit/32-bit Mac OS X universal framework builds,
http://hg.python.org/cpython/rev/a2f088cf7ced
New changeset 7f2e3c466d57 by Ned Deily in branch '3.2':
Issue #11217: For
Changes by Adam Woodbeck adam.woodb...@gmail.com:
--
nosy: +adam.woodbeck
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11644
___
___
Changes by Adam Woodbeck adam.woodb...@gmail.com:
--
nosy: +adam.woodbeck
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11203
___
___
Ned Deily n...@acm.org added the comment:
Thanks for the suggested patch. In addition to the installunixtools target,
the altinstallunixtools target needed to be updated; it is used by default in
the Python 3.x Makefiles. The applied fix causes the following additional
symlinks to be added
New submission from Mark Mc Mahon mtnbikingm...@gmail.com:
In _msi.c, summary_getproperty() and summary_setproperty() raise an exception
if the type being set/got is VT_FILETIME.
This issue is to track adding support for (or declining to support) FILETIMEs
in
Jonas H. jo...@lophus.org added the comment:
Does that look good to you? If it does, I'll go on using the script
(http://paste.pocoo.org/show/396661/) on the 3.x docs.
--
keywords: +patch
Added file: http://bugs.python.org/file22164/p1.patch
___
New submission from Mark Mc Mahon mtnbikingm...@gmail.com:
Per Eric V. Smith's comment issue1104 (msg134976) the return value of the call
MsiSummaryInfoGetProperty() in summary_getproperty() (pc\_msi.c) is only
checked for the error return ERROR_MORE_DATA.
Other error values should be
Mark Mc Mahon mtnbikingm...@gmail.com added the comment:
Responding to Eric's comments
1. There are only three valid property types returned by MsiInteger, String
FILETIME. (http://msdn.microsoft.com/en-us/library/aa372045%28v=VS.85%29.aspx)
2. That comment makes sense - I have entered a new
Mark Mc Mahon mtnbikingm...@gmail.com added the comment:
I have added tests to the patch - but it's not easy to know what would cause an
error in MsiSummaryInfoGetProperty which would trigger the new code.
--
keywords: +patch
Added file:
Mark Mc Mahon mtnbikingm...@gmail.com added the comment:
I am not sure that I fully understand the issue - but it seems that trunk still
has this issue.
As stated by Amaury - this is on DEBUG builds only.
c:\pcbuild\python_d.exe
Python 3.3a0 (default, May 28 2011, 20:22:11) [MSC v.1500 32 bit
Eric V. Smith e...@trueblade.com added the comment:
I'm not talking about the method itself but rather the descriptive text. For
example:
copy_sign(other)
Return a copy of the first operand with the sign set to be the same as the
sign of the second operand.
There is no second operand,
Tom Loredo lor...@astro.cornell.edu added the comment:
Thanks for handling this, Ned! -Tom
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11217
___
sorin sorin.sbar...@gmail.com added the comment:
I think that distutils must me modified to auto detect supported architectures
and use them, this without requiring you to hack ARCHFLAGS.
The number of developers that need to build PPC binaries is at least one order
of magnitude lower than
Gregory P. Smith g...@krypto.org added the comment:
I just nuked the pure Python POSIX subprocess implementation in
70467:75ca834df824. No need for both implementations. _posixsubprocess is now
the only option.
--
___
Python tracker
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: docs@python - rhettinger
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12185
___
Changes by Charles-François Natali neolo...@free.fr:
Removed file: http://bugs.python.org/file22154/posix_pipe2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12196
___
Changes by Charles-François Natali neolo...@free.fr:
Removed file: http://bugs.python.org/file22151/support_pipe_max.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12196
___
Charles-François Natali neolo...@free.fr added the comment:
I just nuked the pure Python POSIX subprocess implementation
Nice.
I've updated both patches to address Victor's comments on test_io and
test_subprocess usage of PIPE_MAX_SIZE, and Ross' comment on pipe2's
configure tests.
I left
Terry J. Reedy tjre...@udel.edu added the comment:
I will when I get setup to do that again.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11906
___
Terry J. Reedy tjre...@udel.edu added the comment:
I suspect you are right, but do not know the rules, and have never used the
module. There is no particular person maintaining xml.dom.X at present.
Could you please fill in the ... after the import to give a complete minimal
example that
John O'Connor tehj...@gmail.com added the comment:
I started a draft in python. I am attaching the _pyio version along with tests.
I will continue work on the C implementation and eventually documentation if
this is well received. It seems straightforward, I am interested to see what
you guys
Changes by John O'Connor tehj...@gmail.com:
Added file: http://bugs.python.org/file22169/issue12053-tests.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12053
___
Benjamin Peterson benja...@python.org added the comment:
Thanks for the review. New patch.
--
Added file: http://bugs.python.org/file22170/try2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12199
Catalin Iacob iacobcata...@gmail.com added the comment:
Attached v1 of patch. Please review.
There are some tests using GMail in test_smtpnet.py. They still pass with the
patch. I also did manual tests with GMail with both SMTP + starttls and
SMTP_SSL.
The idea of the patch is that
Terry J. Reedy tjre...@udel.edu added the comment:
From just reading the docs, it appears that json.dump(obj,fp) ==
fp.write(json.dumps(obj)) and it is easy to wonder why .dump even exists, as
it seems a trivial abbreviation (and why not .dump and .dumpf instead). Since,
'_one_shot' and
Matthew Boehm boehm.matt...@gmail.com added the comment:
Here are some windows results with Python 2.7:
import re
re.match(()*?1, 1)
_sre.SRE_Match object at 0x025C0E60
re.match(()+?1, 1)
re.match(()+?1, 11)
_sre.SRE_Match object at 0x025C0E60
re.match(()*?1, 11)
_sre.SRE_Match object at
Changes by Terry J. Reedy tjre...@udel.edu:
--
title: EBADF in test_urllibnet - Error EBADF in test_urllibnet
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12137
___
Terry J. Reedy tjre...@udel.edu added the comment:
If you are able to rebuild Python, have you tried running the ctypes test after
rebuilding with this change? And, does the test cover the internal uses of
_array_type?
--
nosy: +terry.reedy
___
Gregory P. Smith g...@krypto.org added the comment:
Include an appropriate Version Added annotation in the pipe2 documentation.
Otherwise the current patches look good to me.
--
___
Python tracker rep...@bugs.python.org
Changes by Adam Woodbeck adam.woodb...@gmail.com:
--
nosy: +adam.woodbeck
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11785
___
___
R. David Murray rdmur...@bitdance.com added the comment:
For the record (for people reading this ticket later), the removal of the
python version of the unix subprocess code was discussed on IRC, and it was
clarified there that the reason for removing it is not that it duplicates the C
code.
Terry J. Reedy tjre...@udel.edu added the comment:
Exceptions with traceback are ordinary behavior issues. 'Crash' means segfault
or equivalent on Windows. And Jesus is correct.
In general, include system with reports.
With 3.2.0 IDLE on Winxp, adjusted 3.x code
import urllib.request as ur,
Terry J. Reedy tjre...@udel.edu added the comment:
The basic fix is to replace the fake verb 'to or', conjugated not really
properly as or's or or'ing, with the real noun 'bitwise-or'.
help(doctest.testmod)
...
Optional keyword arg optionflags or's together module constants,
and
Terry J. Reedy tjre...@udel.edu added the comment:
The proposed change adds about 7 lines to show the 'trick' of putting
num-worker Nones on the queue. I think that is worth it.
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
Terry J. Reedy tjre...@udel.edu added the comment:
I ran with 3.2, winxp with if __name__ == '__main__': added after the def
statement (without this, process spawned 150 processes before I got logged out)
and ()s added to prints. Hung on pool.join as OP said. I could only stop by
closing
Terry J. Reedy tjre...@udel.edu added the comment:
The doc consistently does NOT quote re's in the text. Rather, they are shaded
gray, both in Windows help version and html version. So this one should not be
treated differently.
Most of the confusion reported is due to not reading the intro
Terry J. Reedy tjre...@udel.edu added the comment:
Return a copy of *self* with the sign set to be the same as the sign of *other*.
seems clearer to me.
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
Charles-François Natali neolo...@free.fr added the comment:
When map is called, a MapResult object is created, which adds itself to the
Pool's result cache.
When the pool is shut down, the result handler thread waits until the cache
drains (while cache and thread._state != TERMINATE). But
R. David Murray rdmur...@bitdance.com added the comment:
Why it works is due to a quirk in the handling of python strings: if an
apparent escape sequence doesn't mean anything, it is retained verbatim,
including the '\' character. This is documented in
Ned Deily n...@acm.org added the comment:
All that said, the best solution to the problem is to use an appropriately
configured Python for the task at hand. If you want to build Python
executables that are compatible with older OS X versions and Mac hardware (in
particular, all machines
New submission from Joesph someone...@gmail.com:
#Example:
class a(object):
pass
b = a()
print([isinstance(a,object), isinstance(b,object)])
'''
outputs: [True, True]
expected: [False, True]
As class a is not instantiated it should return false. As-is isinstance is just
a synonym for
Alex Gaynor alex.gay...@gmail.com added the comment:
I don't see why this is incorrect, type(a) - type, and object is a superclass
of type.
--
nosy: +alex
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12203
Benjamin Peterson benja...@python.org added the comment:
Everything is an instance of object.
--
nosy: +benjamin.peterson
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12203
Ezio Melotti ezio.melo...@gmail.com added the comment:
In this case using:
d.copy_sign(other)
and then refer to 'd' and 'other' might be clearer.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12185
library.engine library.eng...@gmail.com added the comment:
What is so implicit in the passing of a list of undesired namespaces to the
parse function?
This is quite explicit, in my humble opinion, and it lets you not to repeat
yourself for each and every tag you want to find in the tree, as
Ezio Melotti ezio.melo...@gmail.com added the comment:
The regex sets (\d\w\s\D\W\S) don't match any Python escape sequence, so even
if some suggest to always use r'' regardless, I don't find it necessary,
especially for simple regexs.
The two conflicting escape sequences to keep in mind are
Ezio Melotti ezio.melo...@gmail.com added the comment:
The name dump and dumps exist to match the same API provided by pickle and
marshal.
I agree that a note marked as CPython implementation detail should be added.
--
keywords: +easy -patch
stage: - needs patch
versions: +Python
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +georg.brandl
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11975
___
New submission from py.user port...@yandex.ru:
specification
1)
str.upper()¶
Return a copy of the string converted to uppercase.
2)
str.isupper()¶
Return true if all cased characters in the string are uppercase and there
is at least one cased character, false otherwise. Cased
82 matches
Mail list logo