Changes by Yongzhi Pan fossi...@users.sourceforge.net:
--
versions: +Python 3.5
Added file: http://bugs.python.org/file36604/str_join_exception_message_1.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22379
Yongzhi Pan added the comment:
I updated the patches. Since exceptions in 3 do not have a message attribute, I
did not check them. Are they OK?
--
Added file: http://bugs.python.org/file36605/test_for_35.diff
___
Python tracker
STINNER Victor added the comment:
re_octal_escape_overflow_raise.patch: you should write a subfunction to not
repeat the error message 3 times.
+if c 0o377:
Hum, I never use octal. 255 instead of 0o377 would be less surprising :-p By
the way, you should also check for negative
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - ncoghlan
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22389
___
Raymond Hettinger added the comment:
+1 on Victor's suggestion. I don't think hypergeneralizing it is the way to
go. That adds too much complexity for too little benefit.
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
redirect_stdout(stderr, stream) looks wrong to be: you want to redirect
stdout or stderr?
If you want to redirect something else (ex: stdin), you can still implement the
very simple pattern:
old_stdin = sys.stdin
try:
sys.stdin = mock_input
...
finally:
STINNER Victor added the comment:
We could speed up the import further by not importing collections
in _decimal. That could be done once structseq fully implements
the namedtuple protocol (for DecimalTuple).
I suggest to close this issue. I guess that importing decimal is already fast
enough,
STINNER Victor added the comment:
IMO we should mention the write buffer limits (high- and low-water limits for
write flow control). get_write_buffer_limits() and set_write_buffer_limits()
methods of the transport are public, there is no reason to hide them.
--
Nick Coghlan added the comment:
I'm fine with adding redirect_stderr - better to have the obvious
counterpart, rather than hypergeneralising, or having to explain why it's
missing. It's *currently* missing largely on a wait for someone to ask
basis, and Barry asked.
(Tangentially related, I
Martin Richard added the comment:
Here is an other patch which mentions high and low water limits. I think it's
better to talk about it, since it tells extactly what a full buffer and
partially drained means.
On the other hand, StreamWriter wraps the transport but does not expose the
Stefan Krah added the comment:
I'm fine with closing this. The structseq issue is #1820.
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +neologix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22378
___
___
Python-bugs-list mailing
Ismail Donmez added the comment:
Can we please get a review on this?
--
nosy: +cartman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20631
___
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20631
___
___
Python-bugs-list
R. David Murray added the comment:
You can check .args[0] in python3.
Can you include a complete patch for python3? Your test_for_35 only has a
change for test_bytes, not the ones for string_tests.
--
___
Python tracker rep...@bugs.python.org
Michał Górny added the comment:
In CPython, the _ssl module is compiled in C. How can we check if libssl
provides RAND_egd() or not at compile time?
How about... checking whether the function is provided? Unless I'm missing some
major point, AC_CHECK_FUNC should be good enough.
Is there a
Yury Selivanov added the comment:
Antonie, I'm attaching a patch (issue20334-2.01.patch) to this issue which
should fix the problem. Please review.
--
Added file: http://bugs.python.org/file36607/issue20334-2.01.patch
___
Python tracker
New submission from Brett Cannon:
Now that we have ensurepip, is there any reason to not have the Doc/ Makefile
create a venv for building the docs instead of requiring people to install
sphinx into either their global Python interpreter or some venv outside of
their checkout? Basically it
Roundup Robot added the comment:
New changeset 9efefcab817e by Brett Cannon in branch 'default':
Issue #16104: Allow compileall to do parallel bytecode compilation.
http://hg.python.org/cpython/rev/9efefcab817e
--
nosy: +python-dev
___
Python tracker
Brett Cannon added the comment:
Thanks for the patch, Claudiu!
--
resolution: - fixed
stage: commit review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16104
Claudiu Popa added the comment:
Thank you for committing it. :-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16104
___
___
Python-bugs-list
Changes by Matthias Klose d...@debian.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22381
___
Berker Peksag added the comment:
Here's a simple implementation. I will add tests and update the documentation.
--
keywords: +patch
nosy: +berker.peksag
stage: - patch review
Added file: http://bugs.python.org/file36608/issue22389.diff
___
Python
Serhiy Storchaka added the comment:
By the way, you should also check for negative numbers.
Not in this case. You can't construct negative number from three octal digits.
--
___
Python tracker rep...@bugs.python.org
kernc added the comment:
I am dubious that there are any with a mixture of both sections and
additional option lines at the top without a section.
rsyncd.conf [1] is one such example, and I wouldn't say there aren't
countless more in the wild.
Anyone writing an app and planning to parse a
New submission from Justin Foo:
The _check_complex_symlinks function compares paths for string equality instead
of using the assertSame helper function. Patch attached.
--
components: Tests
messages: 226828
nosy: jfoo
priority: normal
severity: normal
status: open
title: test_pathlib
Justin Foo added the comment:
The _check_complex_symlinks function compares stringified paths for string
equality instead of using the assertSame helper method. Patch attached.
--
keywords: +patch
Added file: http://bugs.python.org/file36609/issue22395.patch
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22356
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22393
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
You can check .args[0] in python3.
Or str(cm.exception). This works on 2.7 too.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22379
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22395
___
___
Python-bugs-list
Antony Lee added the comment:
While your patch works, I think it is a good opportunity to simplify the
implementation of Signature.__eq__, which is *much* more complicated than what
it should be.
Please comment on the attached patch, which uses the helper method approach I
suggested.
Antoine Pitrou added the comment:
Can you explain in which case the assertion breaks?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22395
___
Antoine Pitrou added the comment:
Unless I'm missing some major point, AC_CHECK_FUNC should be good enough.
Building extension modules such as ssl doesn't involve autoconf.
Do you want to make silly assumptions on API depending on provider name, and
then add extra conditionals for
New submission from David Edelsohn:
As with Solaris and Issue10812, test_posix fadvise and fallocate fail on AIX.
Python is compiled with _LARGE_FILES, which changes the function signature for
posix_fadvise and posix_fallocate so that off_t is long long on 32 bit system
passed in two
Serhiy Storchaka added the comment:
Microsoft Windows INI files, POSIX-compatible config files, and other formats
(e.g. Java properties files) use different methods for escaping, quoting, line
continuing, interpolations, etc. Actually there are more differences than
similarity between them.
Antoine Pitrou added the comment:
The Python call to those functions does not place the arguments in the
correct registers
Well... isn't there a way to fix this? I don't understand how this issue can
come up.
--
___
Python tracker
New submission from David Edelsohn:
AIX has the same test_socket problem with FDPassSeparate as Darwin in
Issue12958 so skip some tests.
--
components: Library (Lib)
files: 12958_aix.patch
keywords: patch
messages: 226837
nosy: David.Edelsohn, pitrou
priority: normal
severity: normal
Serhiy Storchaka added the comment:
See similar Ruby issue: https://bugs.ruby-lang.org/issues/9914 .
As workaround we can redeclare posix_fadvise as int posix_fadvise(int fd, long
offset, long len, int advice) on 32-bit AIX with enabled _LARGE_FILES. More
safe option is to disable
New submission from Steve Dower:
This patch has some minor changes to the build scripts for Python 2.7 on
Windows. They're fully tested on my build machine, but I wanted someone who's
more familiar with how the buildbots are set up to either confirm that the
Tools/msi scripts are not used or
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22397
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset 3b974b61e74d by Yury Selivanov in branch 'default':
inspect.Signature: Fix discrepancy between __eq__ and __hash__.
http://hg.python.org/cpython/rev/3b974b61e74d
--
___
Python tracker
Yury Selivanov added the comment:
Antony, I've tweaked the patch a bit and it's now in default branch. Thank you!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20334
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
stage: - test needed
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22343
___
Zachary Ware added the comment:
Actually, I think the method Martin used was to create a local config.py in
Tools/msi/, which provided the proper settings for the release. See
http://hg.python.org/cpython/file/2.7/Tools/msi/msi.py#l37
Either way, the buildbots are completely unaffected by
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22351
___
___
Python-bugs-list mailing
Steve Dower added the comment:
Thanks for confirming. Somehow I never noticed the import config line - guess
that's a pattern I'm not really used to seeing. Still, I prefer having the env
variables there as I invoke the scripts through some batch files (very specific
to my machine,
Roundup Robot added the comment:
New changeset 5c55a7bfec0c by Steve Dower in branch '2.7':
#22398 Tools/msi enhancements for 2.7
http://hg.python.org/cpython/rev/5c55a7bfec0c
--
nosy: +python-dev
___
Python tracker rep...@bugs.python.org
Changes by Steve Dower steve.do...@microsoft.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22398
___
New submission from Philippe Dessauw:
There is a missing anchor for the dict functions in the documentation at
library/functions.html. It is present in the documentation of all python
version.
It seems to impact cross-referencing in Sphinx (using intersphinx).
--
assignee:
Terry J. Reedy added the comment:
I agree that this is an issue, and I believe others have made similar comments
or requests, but I cannot find an existing issue for this.
By experiment, it is possible to tag a tab and change the background color for
the spaces a tab is visually converted to.
Changes by Terry J. Reedy tjre...@udel.edu:
--
title: inconsistent results with inspect.getsource() / inspect.getsourcelines()
- inconsistent results with inspect.getsource / .getsourcelines
versions: +Python 2.7, Python 3.4, Python 3.5 -Python 3.3
Changes by Terry J. Reedy tjre...@udel.edu:
--
resolution: - rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22360
___
Terry J. Reedy added the comment:
I prefer cannot for error messages. Can't is an informal version of
cannot, used in speech, dialog representing speech, and 'informal' writing.
It looks wrong to me in this context.
--
nosy: +terry.reedy
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
resolution: - duplicate
stage: - resolved
superseder: - urllib2.urlopen().read().splitlines() opening a directory in a
FTP server randomly returns incorrect result
___
Python tracker
Terry J. Reedy added the comment:
You should have just added a new message to #22375 with the revision.
#15002 ends with This is fixed in 3.4 and 3.5. I will backport to 2.7 ( I
think, it is worth it). Please check whether the backport has been done or
whether current you still have a problem
Changes by Terry J. Reedy tjre...@udel.edu:
--
stage: - test needed
versions: +Python 3.5 -Python 2.7, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22378
___
koobs added the comment:
See also:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192365
--
nosy: +koobs
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17120
___
Terry J. Reedy added the comment:
I agree with making a complete and separate sentence. There are 3 variations.
--
Add parenthetical note after last sentence. (Contributed by me.)
--
Add note on next line after short line.
(Contributed by me.
--
Add note after a blank line.
(Contributed by
Yury Selivanov added the comment:
Vinay,
Please take a look at the second patch -- 'logging_02.patch' -- with updated
docs
--
Added file: http://bugs.python.org/file36614/logging_02.patch
___
Python tracker rep...@bugs.python.org
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22394
___
___
Changes by Benjamin Peterson benja...@python.org:
--
keywords: +easy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22351
___
___
Python-bugs-list
62 matches
Mail list logo