Serhiy Storchaka added the comment:
Could anyone please look at the patch? I touches only docs and comments.
--
keywords: +needs review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22581
Changes by Serhiy Storchaka storch...@gmail.com:
--
Removed message: http://bugs.python.org/msg231643
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22581
___
Serhiy Storchaka added the comment:
Could anyone please look at the patch? It touches only docs and comments.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22581
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +serhiy.storchaka
versions: +Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20899
___
Serhiy Storchaka added the comment:
If you are not interested in any of proposed changes Antoine, this issue can be
closed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20002
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20002
___
___
Antoine Pitrou added the comment:
Not really, sorry.
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20002
___
___
Serhiy Storchaka added the comment:
Ping.
--
assignee: - serhiy.storchaka
keywords: +needs review
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19676
___
Akira Li added the comment:
One of the ways to fix this issue is to synchronize time.tzname
attribute with the corresponding C tzname variable.
I've uploaded sync-time-timezone-attr-with-c.diff patch that
synchronizes tzname, timezone, altzone, daylight attributes.
The patch also includes
Changes by Akira Li 4kir4...@gmail.com:
Removed file: http://bugs.python.org/file37132/test_mktime_changes_tzname.c
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22798
___
Amaury Forgeot d'Arc added the comment:
The patch looks good to me.
But it seems that the reverse operation is not possible in the general case:
.decode('unicode_escape') assumes a latin-1 or ascii encoding.
Should we document this?
--
nosy: +amaury.forgeotdarc
Marc-Andre Lemburg added the comment:
The patch looks good.
One nit: the name buffer length should be NAME_MAXLEN instead of 100.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19676
___
New submission from Clement Rouault:
I found an interger overflow in the standard iterator object
(Objects/iterobject.c)
The `it_index` attribute used by the iterator is a `Py_ssize_t` but overflow is
never checked. So after the index `PY_SSIZE_T_MAX`, the iterator object will
ask for the
Nick Coghlan added the comment:
Patch looks good to me, too.
As far as Amaury's question goes, isn't the general reverse operation the same
as for the existing backslashreplace handler?
That is, decode with the appropriate ASCII compatible encoding (since ASCII
compatibility is needed for
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - rejected
stage: patch review - resolved
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20002
___
Roundup Robot added the comment:
New changeset 32d08aacffe0 by Serhiy Storchaka in branch 'default':
Issue #19676: Added the namereplace error handler.
https://hg.python.org/cpython/rev/32d08aacffe0
--
nosy: +python-dev
___
Python tracker
Serhiy Storchaka added the comment:
Thank you all for reviews.
One nit: the name buffer length should be NAME_MAXLEN instead of 100.
NAME_MAXLEN is private name available only in Modules/unicodedata.c. Making it
public name would be other issue. I have increased buffer size to 256.
Serhiy Storchaka added the comment:
Synchronized with the tip (resolved conflicts with issue22470 and issue19676).
--
assignee: - serhiy.storchaka
keywords: +needs review
Added file: http://bugs.python.org/file37274/backslashreplace_decode_2.patch
Serhiy Storchaka added the comment:
Could anyone please make a review?
--
keywords: +needs review
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19105
___
Serhiy Storchaka added the comment:
Now Python 2 with the -3 option warns about b-prefixed strings with non-ASCII
characters (issue19656).
--
versions: +Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +rhettinger, serhiy.storchaka
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22939
___
Robert Kuska added the comment:
FYI fedora (rawhide) has SSLv3 disabled in SSLv23 method of openssl package.
http://pkgs.fedoraproject.org/cgit/openssl.git/commit/?id=80b5477597e9f0d9fababd854adfb4988b37efd5
This looks like the same approach as in attached issue22638.diff.
--
nosy:
R. David Murray added the comment:
For possibly relevant background information, see issue 21444 and the issues
linked from it, and issue 14794.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22939
STINNER Victor added the comment:
The `it_index` attribute used by the iterator is a `Py_ssize_t` but overflow
is never checked.
Yes it is a bug. iter_iternext() must raises an OverflowError if it-it_index
is equal to PY_SSIZE_T_MAX.
--
nosy: +haypo
New submission from bru:
The readline module offers write_history_file from readline/history.h
write_history, but there's no append_history_file that would invoke
append_history from the C header.
This causes inconveniences when saving history to a file (like shown there:
Changes by STINNER Victor victor.stin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22841
___
STINNER Victor added the comment:
Here is a patch with a simple unit test.
Can someone review it? If not, I will commit it without review.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22685
Changes by Brett Cannon br...@python.org:
--
nosy: +gregory.p.smith, twouters
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20899
___
___
R. David Murray added the comment:
There's no review link. And no obvious reason why there isn't. Could you try
regenerating the patch and uploading it again?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22581
Serhiy Storchaka added the comment:
I think OverflowError is good for maintained releases, but for 3.5 Clement's
idea with long index looks attractive to me. In any case an exception should be
raised for negative argument in __setstate__(). Let split this issue on two
parts. First fix the bug
Serhiy Storchaka added the comment:
Regenerated for review. I don't know why Rietweld didn't like previous patch.
--
Added file: http://bugs.python.org/file37276/bytes_like.patch
___
Python tracker rep...@bugs.python.org
Guido van Rossum added the comment:
Sorry, looks good.
On Tue, Nov 25, 2014 at 6:37 AM, STINNER Victor rep...@bugs.python.org
wrote:
STINNER Victor added the comment:
Here is a patch with a simple unit test.
Can someone review it? If not, I will commit it without review.
--
Roundup Robot added the comment:
New changeset f75d40c02f0a by Victor Stinner in branch '3.4':
Closes #22685, asyncio: Set the transport of stdout and stderr StreamReader
https://hg.python.org/cpython/rev/f75d40c02f0a
New changeset 7da2288183d1 by Victor Stinner in branch 'default':
(Merge 3.4)
STINNER Victor added the comment:
Fix also pushed to Python 3.4, 3.5 and to Tulip. Thanks for the report wabu.
Tulip commit:
changeset: 1350:c3a9d355eb34
user:Victor Stinner victor.stin...@gmail.com
date:Tue Nov 25 17:17:13 2014 +0100
files: asyncio/subprocess.py
New submission from Søren Løvborg:
Addition and subtraction of integers are documented for ipaddress.IPv4Address
and ipaddress.IPv6Address, but also work for IPv4Interface and IPv6Interface
(though the only documentation of this is a brief mention that the Interface
classes inherit from the
STINNER Victor added the comment:
I think OverflowError is good for maintained releases, but for 3.5 Clement's
idea with long index looks attractive to me.
What is your use case?
--
___
Python tracker rep...@bugs.python.org
Søren Løvborg added the comment:
Proposed implementation patch attached. If this has any interest, I'll look
into expanding the patch to include documentation and unit tests.
Resulting behavior:
import ipaddress
ipaddress.IPv4Interface('10.0.0.1/8') + 1
IPv4Interface('10.0.0.2/8')
Roundup Robot added the comment:
New changeset b6fab008d63a by Berker Peksag in branch 'default':
Issue #19676: Tweak documentation a bit.
https://hg.python.org/cpython/rev/b6fab008d63a
--
___
Python tracker rep...@bugs.python.org
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +ncoghlan, pmoody
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22941
___
___
Miki Tebeka added the comment:
Can we also update iglob [1] as well?
[1] https://docs.python.org/2/library/glob.html#glob.iglob
--
nosy: +tebeka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22524
Serhiy Storchaka added the comment:
The problem not in pydoc or inspect itself. In Python 3.3 _tkinter.TkappType
has the __module__ attribute:
import _tkinter
_tkinter.TkappType.__module__
'builtins'
Something was changed in 3.4 and builtin classes without dot in qualified name
no longer
Chris Angelico added the comment:
Known issues with the current patch, if anyone feels like playing with this who
better knows the code:
1) Needs a __future__ directive to control behaviour
2) test_generators needs to be heavily reworked
3) The test of what exception was thrown needs to also
Serhiy Storchaka added the comment:
What is your use case?
Something like range(). I agree that it is very unlike to encounter this
problem in real work, and we can live with implementation-related limitation
(for which OverflowError exists).
--
Akira Li added the comment:
scandir is slower on my machine:
$ git clone https://github.com/benhoyt/scandir
$ cd scandir/
$ ../cpython/python benchmark.py /usr/
Using slower ctypes version of scandir
Comparing against builtin version of os.walk()
Priming the system's cache...
wabu added the comment:
thanks for the fixes 'n' integration
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22685
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
Do you want to add a bigmem test or close this issue Benjamin?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22518
___
New submission from Jordan:
# I would like to report three bugs in the
# Language Reference Python 3.4.2
#
# bug 1: Typo in parameter_list #
#
# In 8.6 the rule for parameter_list should be corrected: The first | should
be (
#
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22942
___
___
Benjamin Peterson added the comment:
I wouldn't object if you had a patch.
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22518
___
STINNER Victor added the comment:
scandir is slower on my machine:
Please share more information about your config: OS, disk type (hard
drive, SSD, something else), filesystem, etc.
--
___
Python tracker rep...@bugs.python.org
Xavier de Gaye added the comment:
The attached script raises the PyExc_RecursionErrorInst singleton and
reproduces the issue.
The attached patch fixes the issue by ignoring the warning when clearing
PyExc_RecursionErrorInst and clearing the frames associated with its traceback,
in
Changes by Xavier de Gaye xdeg...@gmail.com:
Added file: http://bugs.python.org/file37279/warn_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22898
___
Ben Hoyt added the comment:
Akira, note the Using slower ctypes version of scandir -- this is the older,
ctypes implementation of scandir. On Linux, depending on file system etc, that
can often be slower. You need to at least be using the fast C version in
_scandir.c, which is then half C,
STINNER Victor added the comment:
You can workaround the issue by setting manually the transport on the
StreamReader objects. Tell me if you need help to write the workaround if you
cannot wait for a release containing the fix.
--
___
Python
STINNER Victor added the comment:
+/* during Python finalization, warnings may be emited after interp-sysdict
+ is cleared: see issue #22898 */
I would prefer to see this comment in the else block.
--
___
Python tracker
New submission from Benjamin Peterson:
One gets this on the Windows bots:
==
FAIL: test01_basic (bsddb.test.test_queue.SimpleQueueTestCase)
--
Traceback (most
Roundup Robot added the comment:
New changeset e5ed983bc784 by Benjamin Peterson in branch '2.7':
disable tests that always fail on windows (#22943)
https://hg.python.org/cpython/rev/e5ed983bc784
--
nosy: +python-dev
___
Python tracker
New submission from Simon Zack:
Python already has tuple unpacking in many places, I wonder if this has been
considered for arguments yet, it seems rather convenient and a natural
extension to me.
Here's what I mean:
def func((a, b, c)):
print(a, b, c)
func((1, 2, 3))
should print 1 2
Benjamin Peterson added the comment:
Python 2 has it. It was removed in Python 3. See
https://www.python.org/dev/peps/pep-3113/
--
nosy: +benjamin.peterson
resolution: - rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by koobs koobs.free...@gmail.com:
Added file:
http://bugs.python.org/file37281/koobs-freebsd10-python34-build-598.log
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22685
___
koobs added the comment:
Buildbot failures observed on koobs-freebsd9 and koobs-freebsd10 for 3.x and
3.4, respectively.
Both logs are attached, inlined failure below:
==
FAIL: test_pause_reading
Changes by Daniel Standage daniel.stand...@gmail.com:
--
hgrepos: -281
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22945
___
___
New submission from Daniel Standage:
The ctypes documentation describes the '._as_parameter_' attribute, which
simplifies using Python objects to encapsulate C objects. If a ctypes object
with the '._as_parameter_' attribute defined is passed as a parameter to a C
function, the value of
Ned Deily added the comment:
FWIW, your test does seem to run if the C test program is instead built in
32-bit mode (modifying CFLAGS to include -arch i386). For example, with the
Apple OS X 10.10 system Python:
DYLD_LIBRARY_PATH=.. arch -i386 /usr/bin/python2.7 test.py
Gizmo 1: 15
Gizmo 2:
Vandana Rao added the comment:
Try uninstalling IDLE and install it once again.I had this situation previously
where the command prompt opens and gets closed within fraction of seconds.
Uninstall it completely and try once again.I hope this would work.
--
nosy: +Vandana.Rao
Serhiy Storchaka added the comment:
_tkinter.TkappType.__flags__ is different.
In 3.3: 0b101
In 3.4: 0b1010010
The difference is Py_TPFLAGS_HEAPTYPE. This is the consequence of the change
made in issue15721.
--
components: +Interpreter Core, Tkinter
nosy:
Serhiy Storchaka added the comment:
_tkinter classes are now heap types and they no longer have the __module__
attribute.
import _tkinter
_tkinter.TkappType.__module__
Traceback (most recent call last):
File stdin, line 1, in module
AttributeError: __module__
See issue20204.
--
67 matches
Mail list logo