Abhilash Raj added the comment:
David: How does this API look?
https://gist.github.com/maxking/2f37bae7875dde027e3c
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue634412
___
Claudiu.Popa added the comment:
Can we close this? The feature already landed in Python 3.4.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17457
___
Roundup Robot added the comment:
New changeset ec91ee7d9d8d by Terry Jan Reedy in branch '2.7':
Issue #21695: Catch AttributeError created when user closes grep output window
http://hg.python.org/cpython/rev/ec91ee7d9d8d
New changeset d9c1f36494b6 by Terry Jan Reedy in branch '3.4':
Issue
Terry J. Reedy added the comment:
I added try: except: and tested on installed 3.4.1, which previously failed.
There is no way that I know of to start repository Idle without a console to
print a traceback to. I added a missing import, removed an incorrect comment,
added others, and changed
Claudiu.Popa added the comment:
Any type of feedback will be appreciated.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19840
___
___
Claudiu.Popa added the comment:
Since issue15745 hasn't been fixed yet, would be okay to skip these tests when
the test suite runs from a ZFS container? Currently, these failures are a
nuissance when running the test suite.
--
___
Python tracker
koobs added the comment:
I'd like to put the buildbot slave instances back onto ZFS for broader Disk/IO
test coverage for Python and other projects as well as to gain some
administrative disk utilisation flexibility.
These two issues have unfortunately precluded that, and there's much more
Roundup Robot added the comment:
New changeset 79562a31e5a6 by Victor Stinner in branch '3.4':
Issue #21700: Fix asyncio doc, add DatagramProtocol
http://hg.python.org/cpython/rev/79562a31e5a6
New changeset a8dfdae4c4a0 by Victor Stinner in branch 'default':
(Merge 3.4) Issue #21700: Fix
STINNER Victor added the comment:
Fixed. Thanks for the report.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21700
___
New submission from STINNER Victor:
See issue #21701 for a recent issue about this parameter.
--
assignee: docs@python
components: Documentation, asyncio
messages: 220147
nosy: ariddell, docs@python, gvanrossum, haypo, yselivanov
priority: normal
severity: normal
status: open
title:
STINNER Victor added the comment:
I opened the issue #21702 to document the parameter remote_addr.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21701
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17457
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
type: behavior - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18039
___
___
Roundup Robot added the comment:
New changeset 7912179335cc by Victor Stinner in branch '3.4':
Issue #21326: Add a new is_closed() method to asyncio.BaseEventLoop
http://hg.python.org/cpython/rev/7912179335cc
--
___
Python tracker
Sebastian Kreft added the comment:
I was able to recreate the issue again, and now i have some info about the
offending futures:
State: RUNNING, Result: None, Exception: None, Waiters: 0, Cancelled: False,
Running: True, Done: False
The information does not seem very relevant. However, I can
STINNER Victor added the comment:
This issue was discussed on the python-dev mailing list. The conclusion is that
adding a new method to asyncio is safe because asyncio has a provisional API
(whereas the selectors module doesn't).
Ok, Python 3.4.2 will have the new method
Bohuslav Slavek Kabrda added the comment:
Again, thanks for the review. It's true that HAVE_FSTAT can be defined without
stat structure containing st_blksize. I added an ifdef
HAVE_STRUCT_STAT_ST_BLKSIZE for that. Attaching third version of the patch,
hopefully everything will be ok now.
Claudiu.Popa added the comment:
Thanks for the reviews, Serhiy. Here's the new version of the patch.
--
Added file: http://bugs.python.org/file35549/issue18039_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18039
STINNER Victor added the comment:
Can someone please review asyncio_read_from_self.patch?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21595
___
Roundup Robot added the comment:
New changeset 2b3f8b6d6e5c by Victor Stinner in branch '3.4':
Issue #21596: asyncio.wait(): mention that the sequence of futures must not
http://hg.python.org/cpython/rev/2b3f8b6d6e5c
New changeset 68d45a1a3ce0 by Victor Stinner in branch 'default':
(Merge 3.4)
STINNER Victor added the comment:
Fixed. Thanks for the report.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21596
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21515
___
STINNER Victor added the comment:
I've read this entire issue and can't see that much can be done
My patch can be applied in Python 3.5 to notice immediatly users that filenames
cannot be encoded to the ANSI code page. Anyway, bytes filenames are deprecated
(emit a DeprecationWarning
New submission from Saimadhav Heblikar:
Adds test for UndoDelegator class in idlelib.UndoDelegator.
With the help of Victor Stinner on IRC, I managed to reduce the refleak, but
the current status is:
saimadhav@debian:~/dev/34-cpython$ ./python -m test -R 3:3 -uall test_idle
[1/1] test_idle
Matthias Urlichs added the comment:
Actually, the problem is cgi.py around line 550:
clen = -1
if 'content-length' in self.headers:
try:
clen = int(self.headers['content-length'])
except ValueError:
pass
if
Matthias Urlichs added the comment:
Patch attached.
--
keywords: +patch
Added file: http://bugs.python.org/file35551/cgi.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20504
___
Matthias Urlichs added the comment:
This also applies to 3.4 and 3.5.
--
versions: +Python 3.4, Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20504
___
New submission from Arfrever Frehtes Taifersar Arahesis:
When POSIX semaphores are disabled (e.g. by unmounting /dev/shm on a Linux
system), then _multiprocessing module builds with undefined symbol
_PyMp_sem_unlink:
$ ./configure ...
...
checking whether POSIX semaphores are enabled... no
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
keywords: +patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21704
___
Marc-Andre Lemburg added the comment:
I don't have a Windows 8.1 handy, but if ver reports the correct version, why
not have platform.win32_ver() use _syscmd_ver() in case the other APIs report
6.2.9200 and then have win32_ver() the higher version ?!
FWIW: I don't think we should add anything
New submission from Matthias Urlichs:
This code in cgi.py makes no sense whatsoever:
842 if line.endswith(b--) and last_line_lfend:
843 strippedline = line.strip()
844 if strippedline == next_boundary:
845 break
846
R. David Murray added the comment:
I'm hoping that with Argument Clinic we can do better, but I haven't played
with it so I'm not sure.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21309
R. David Murray added the comment:
Review comments added. Patch looks good after the doc fixes. We also need a
whatsnew entry.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19840
___
Claudiu.Popa added the comment:
Here's a patch that marks those tests as expected failures if the source
checkout is inside a zfs container. It uses `df -t zfs`, it was the easiest way
I could find to detect that we are running from a zfs container.
--
keywords: +patch
Added file:
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +r.david.murray
stage: - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21705
___
STINNER Victor added the comment:
You should call cls.percolator.close() in your tearDownClass() method, before
cls.text.destroy().
By the way, I prefer to assign an attribute to None instead of using del
obj.attr.
--
nosy: +haypo
___
Python
New submission from Dmitry Korchemny:
In enum module the functional API for enum creation has the following signature:
Enum(value='NewEnumName', names=..., *, module='...', qualname='...',
type=mixed-in class)
so that the numeration always starts with 1. In some cases it is convenient to
Changes by Zachary Ware zachary.w...@gmail.com:
--
nosy: +barry, eli.bendersky, ethan.furman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21706
___
Claudiu.Popa added the comment:
Thanks, David. The new version of the patch is attached.
--
Added file: http://bugs.python.org/file35554/issue19840_1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19840
Changes by Claudiu.Popa pcmantic...@gmail.com:
Added file: http://bugs.python.org/file3/issue18039_3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18039
___
Steve Dower added the comment:
The two 'correct' options are adding the manifest or doing nothing (based on a
number of very passionate internal discussions I was able to dig up).
Without the manifest, various APIs may behave differently - it's the new way
that Windows decides whether to
Milan Oberkirch added the comment:
Fixed it.
--
Added file: http://bugs.python.org/file35556/smtpd_061014.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14758
___
Changes by Milan Oberkirch milan...@oberkirch.org:
--
nosy: +jesstess, zvyn
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19662
___
___
Giampaolo Rodola' added the comment:
Charles, Antoine, any final thought about this given the reasons I stated
above? If you're still -1 about adding 'send_blocksize' argument I guess I can
get rid of it and perhaps reintroduce it later if we see there's demand for it.
--
New submission from Marc-Andre Lemburg:
Here's the code:
def replace_paths_in_code(self, co):
...
return types.CodeType(co.co_argcount, co.co_nlocals, co.co_stacksize,
co.co_flags, co.co_code, tuple(consts), co.co_names,
Jean-Paul Calderone added the comment:
Please see http://bugs.python.org/issue21652 for a regression introduced by
this change.
--
nosy: +exarkun
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9291
Marc-Andre Lemburg added the comment:
The fix is easy. Simply change the call to:
return types.CodeType(co.co_argcount, co.co_kwonlyargcount,
co.co_nlocals, co.co_stacksize,
co.co_flags, co.co_code, tuple(consts),
Roundup Robot added the comment:
New changeset b841b80e6421 by Zachary Ware in branch '3.4':
Issue #21688: Give informative error message when hhc.exe cannot be found.
http://hg.python.org/cpython/rev/b841b80e6421
New changeset e5594e751a2e by Zachary Ware in branch 'default':
Issue #21688:
Zachary Ware added the comment:
Fixed! I tweaked the message a bit and added errorlevel setting before
committing.
Thanks for the report and patch!
--
assignee: - zach.ware
resolution: - fixed
stage: - resolved
status: open - closed
versions: +Python 3.4
Ned Deily added the comment:
Thanks for the report, the test case, and the patch. It would be helpful if
the informal test could be turned into a patch as a formal test in
Lib/test_cgi.py and if, Matthias, you would be willing to sign the PSF
contributor agreement if you haven't already
Stefan Krah added the comment:
I ran a quick test with profile-guided optimization (PGO, pronounced pogo),
which has supposedly been improved since VC9, and
+saw a very unscientific 20% speed improvement on pybench.py and 10% size
reduction in python35.dll. I'm not sure what we used
+to get
Lita Cho added the comment:
Here are the tests for Vec2D. I have also included the tests for TNavigator
here as well as they are all going into the same test module.
--
Added file: http://bugs.python.org/file35557/test_turtle_textonly.py
___
Python
Marc-Andre Lemburg added the comment:
On 10.06.2014 18:28, Steve Dower wrote:
The one concession that the Windows dev is willing to make is for logging, in
which case the version number should be read as a string from a standard DLL
like kernel32.dll. This would be appropriate for
Steve Dower added the comment:
test_memoryview_assign seems to be okay, but the two test_lzma tests still fail
with the same message. Both pass without PGO.
I'll get in touch with the PGO team and try and get it fixed. I haven't
checked, but it looks consistent with Stefan's analysis of the
Roundup Robot added the comment:
New changeset 3f944f44ee41 by Serhiy Storchaka in branch 'default':
Issue #18039: dbm.dump.open() now always creates a new database when the
http://hg.python.org/cpython/rev/3f944f44ee41
--
nosy: +python-dev
___
New submission from Serhiy Storchaka:
Unlike to other dbm implementations, a dumpdbm database is always opened for
update, and will be created if it does not exist. We can fix this discrepancy
and implement common behavior for 'r' and 'w' modes, but this will change
current behavior and some
Steve Dower added the comment:
So have platform.win32_ver() return the true version is acceptable ?
Note that the platform module is meant for identifying the platform,
not the runtime compatibility environment, so it has a slightly
different target audience
Yes, and that's exactly the
Serhiy Storchaka added the comment:
Committed original Claudiu's patch (issue18039.patch) with minor changes. For
warnings I opened separate issue (issue21708) because patch becomes too large.
Thank you Claudiu for your patch.
--
resolution: - fixed
stage: patch review - resolved
R. David Murray added the comment:
Isn't this change going to cause unexpected data loss for (possibly mythical)
people depending on the existing behavior? At an absolute minimum it needs an
entry in the What's New porting section, but I'm wondering if a deprecation
period is more
Michele Orrù added the comment:
ping.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18564
___
___
Python-bugs-list mailing list
Unsubscribe:
Serhiy Storchaka added the comment:
I think the chance of this is pretty small. I can imagine that some people use
default, 'r' or 'w' mode unintentionally, and all works for them even when
database is missed (for example our tests do this). But it is very unlikely
that someone use the 'n'
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: fixed -
stage: resolved - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18039
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
title: The is no way to tell shutil.move to ignore metadata - shutil.move():
Add ability to use custom copy function to allow to ignore metadata
___
Python tracker
Charles-François Natali added the comment:
I agree it is not necessary for sendfile() (you were right).
Good we agree :-)
Do not introducing it for send(), though, poses some questions.
For instance, should we deprecate or ignore 'blocksize' argument in ftplib as
well?
Honestly, we
R. David Murray added the comment:
Yeah, hopefully you are right. (I didn't mean to reopen the issue, by the way).
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
Tal Einat added the comment:
Regarding Roger Serwy's comment, we could either:
1) normalize the event descriptions using MultiCall's _parse_sequence() and
_triplet_to_sequence() functions
2) remove any Shift-Tab bindings from PrevWindow
I suggest #2.
Regarding the patch itself:
1) Was the
Ned Deily added the comment:
I did a very quick test on OS X. Comments:
1. In keeping with Apple Human Interface Guidelines, the Options menu is
different on OS X: the Configure IDLE menu item appears as a Preferences
menu item in the IDLE application menu row. So, as it stands, adding the
Giampaolo Rodola' added the comment:
I agree, but both points are addressed by sendfile()
I'm talking about send(), not sendfile().
Please remember that send() will be used as the default on Windows or when
non-regular files are passed to the function. My argument is about introducing
an
New submission from Marc-Andre Lemburg:
It is not when freezing the logging package, so any use of the logging package
fails:
import logging
Traceback (most recent call last):
File console, line 1, in module
File pyrun/importlib/_bootstrap.py, line 2237, in _find_and_load
File
Terry J. Reedy added the comment:
The fact that Tab indents regions as well as lines seems not be documented.
This should be added to Automatic Indentation (which should just be
Indentation) with BackTab doc addition if not sooner.
On Windows, 3.4.1, shift-tab is the same as tab. The same is
New submission from Antoine Pitrou:
Looking at the source code in distutils.command.installer, it seems the
--install-base option is ignored, since it is always overwritten, either in
finalize_unix() or finalize_other().
(I haven't tried to check this on the command line, though)
--
Mark Lawrence added the comment:
Can somebody please close as requested in msg210212, thanks.
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1253
___
Milan Oberkirch added the comment:
I see no reason to restrict the filtering possibilities to the domain, so I
added a method validate_recipient_address wich gets an address of the form
local-part@domain and returns `True`.
SMTPChannel.smtp_RCPT checks any address with this method before
Marc-Andre Lemburg added the comment:
The issue is similar to Issue20884.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21709
___
___
Charles-François Natali added the comment:
I agree, but both points are addressed by sendfile()
I'm talking about send(), not sendfile().
Please remember that send() will be used as the default on Windows or when
non-regular files are passed to the function. My argument is about
Mark Lawrence added the comment:
Can it be assumed that there is no interest in this issue as it targets Windows
8 Developer Preview?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13111
Martin v. Löwis added the comment:
Indeed, closing.
--
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13111
___
Mark Lawrence added the comment:
If this is a security issue shouldn't it have been actioned? If not does the
type move to behaviour or what?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12989
Mark Lawrence added the comment:
I cannot reproduce this problem with 3.4.1 or 3.5.a0 on Windows 7.
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3905
___
Mark Lawrence added the comment:
This works fine for me with Windows 7, Python 3.4.1 and Firefox 29.
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13101
___
Jim Jewett added the comment:
I think the new wording is an improvement, but keeping the changes minimal left
it in an awkward in-between state.
Proposal:
A string is a sequence of Unicode code points. Strings can include any
sequence of code points, including some which are semantically
Changes by Brian Curtin br...@python.org:
--
nosy: -brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13101
___
___
Python-bugs-list
Ethan Furman added the comment:
That is certainly nicer than the current idiom:
Animal = Enum('Animal', zip('ant bee cat dog'.split(), range(4)))
--
assignee: - ethan.furman
___
Python tracker rep...@bugs.python.org
Eli Bendersky added the comment:
Is it really worthwhile to complicate the API for the sake of providing a less
flexible solution for rare cases that saves a few keystrokes?
--
___
Python tracker rep...@bugs.python.org
Jim Jewett added the comment:
And even my rewrite showed path dependency; a slight further improvement is to
re-order encoding ahead of bytes. I also added a paragraph that I hope answers
the speed issue.
Proposal:
A string is a sequence of Unicode code points. Strings can include any
Ethan Furman added the comment:
Playing devil's advocate:
The issue is not so much the keystrokes saved as the improvement in reading and
understanding what was intended. If you are happy with starting at 1 the idiom
is easy to both write, read, and understand; but if you want some other
Antoine Pitrou added the comment:
This changeset crashes test_io here:
test_close_error_on_close (test.test_io.CBufferedReaderTest) ... python:
Objects/abstract.c:2091: PyObject_Call: Assertion `(result != ((void *)0)
!PyErr_Occurred()) || (result == ((void *)0) PyErr_Occurred())' failed.
New submission from Antoine Pitrou:
Support for site-python directories in site.py was deprecated in 3.4 and
slated for removal in 3.5. Attached patch does the remove.
--
components: Library (Lib)
files: sitepython.patch
keywords: patch
messages: 220214
nosy: pitrou
priority: normal
Terry J. Reedy added the comment:
Tal could have. Anyway, I made a note to look at this or #1252 if I want to
understand Percolator or Delegator or think about changing them.
--
resolution: - wont fix
status: open - closed
___
Python tracker
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: +Python 3.4, Python 3.5 -Python 2.6, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12989
___
Antoine Pitrou added the comment:
gdb backtrace:
#0 0x7711ff79 in __GI_raise (sig=sig@entry=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x77123388 in __GI_abort () at abort.c:89
#2 0x77118e36 in __assert_fail_base (fmt=0x7726a718 %s%s%s:%u:
%s%sAssertion
Ned Deily added the comment:
The patch has one problem with OS X framework builds. This fixes it:
--- a/Lib/test/test_site.py
+++ b/Lib/test/test_site.py
@@ -240,7 +240,7 @@
sysconfig.get_config_var(PYTHONFRAMEWORK),
Terry J. Reedy added the comment:
Mark, you did not specify which of the variations you tried ;-) I reproduce as
I said in my last message.
C:\Programs\Python34pythonw -m idlelib
Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:45:13) [
import subprocess
p = subprocess.Popen([python, -c,
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +vinay.sajip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21709
___
___
Mark Lawrence added the comment:
*facepalm* looks like I've run it with the wrong exe, sorry about the noise :-(
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3905
___
Giampaolo Rodola' added the comment:
OK then, I'll trust your judgement. I'll use 8K as the default and will commit
the patch soon.
--
assignee: - giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17552
New submission from Pablo Acosta:
The Greatest Common Divisor (gcd) algorithm sometimes breaks because the modulo
operation does not always return a strict integer number, but one very, very
close to one. This is enough to drive the algorithm astray from that point on.
Example:
import
Pablo Acosta added the comment:
Actually probably int(round(a%b)) would be better.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21712
___
___
New submission from Joseph Shen:
in the source file PC/pyconfig.h at line 393 there is a mistype
this is the origin file
==
/* VC 7.1 has them and VC 6.0 does not. VC 6.0 has a version number of 1200.
Microsoft eMbedded
Terry J. Reedy added the comment:
I updated the patch to match a change, since you posted this, from 70 to 72 in
.def and 'maxformatwidth' to ' limit' in formatparagraph. I also added a
'guard' value of 72 in case GetOption returns None (as it did before I changed
the option name). I checked
1 - 100 of 115 matches
Mail list logo