Vinay Sajip added the comment:
Issue #18807 relates to symlinks not being available, or not being wanted by
the user creating the environment. The lib64 symlink is (currently) the only
case where we symlink to a directory (in the other cases, such as aliases for
the interpreter, we can use
Roundup Robot added the comment:
New changeset ce1b8b2ddf07 by Vinay Sajip in branch '3.4':
Issue #18807: If copying (no symlinks) specified for a venv, then the python
interpreter aliases (python, python3) are now created by copying rather than
symlinking.
Vinay Sajip added the comment:
I've made the change - not exactly the same as your patch, which was missing an
os.chmod() and doing an unnecessary os.path.join() - but thanks for submitting
a patch :-).
However, note that on 64-bit Linux systems (actually any POSIX other than OS X)
a symlink
New submission from Robert Jordens:
According to the documentation the exec a in b, c is equivalent to exec(a,
b, c). But in the testcase below the tuple form causes a SyntaxError while the
statement form works fine.
diff -r e770d8c4291c Lib/test/test_compile.py
---
Roundup Robot added the comment:
New changeset 6e2833ae1718 by Serhiy Storchaka in branch '2.7':
Issue #10203: sqlite3.Row now truly supports sequence protocol. In particular
http://hg.python.org/cpython/rev/6e2833ae1718
New changeset 6af865f1a59d by Serhiy Storchaka in branch '3.4':
Issue
Serhiy Storchaka added the comment:
Thank you Claudiu for your contribution.
But please be more careful, your patches contained trailing whitespaces.
Thank you Paul for your report.
--
resolution: - fixed
stage: commit review - resolved
status: open - closed
Karl Richter added the comment:
@paul.j3 That's interesting [1]. Documenting argparse.register seems crucial to
me (- reopen or file a new request?).
After dealing more with the very sophisticated and complex functionality of
argparse I'm sure that this is the only use case where such an
Thomas Heller added the comment:
As for progress, the answer is no as the hope is to eventually replace
zipimport with something in pure Python thanks to importlib.
Does this mean there is no chance to put this into 3.4 and 3.3, do we really
have to wait until 3.5 with it's pure-python
jzwinck added the comment:
Yes, I have a practical need for dest=SUPPRESS. One of the reasons is
basically what you said: to implement things analogous to --help. In those
cases you want to be able to invoke a function (e.g. via type=myfunc) but not
store anything. Or you may need to
New submission from Thomas Dybdahl Ahle:
The statistics module currently contains the following comment:
FIXME: investigate ways to calculate medians without sorting? Quickselect?
This is important, because users expect standard library functions to use state
of the art implementations, and
Changes by Zachary Ware zachary.w...@gmail.com:
--
nosy: +steven.daprano
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21592
___
Brett Cannon added the comment:
I actually stopped development of a pure Python zip importer so it won't be in
Python 3.5 either (http://bugs.python.org/issue17630). The motivation simply
wasn't there if zipimport is going to be sticking around for bootstrapping
reasons. This can still get
Changes by Peter Otten __pete...@web.de:
--
nosy: +peter.otten
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5950
___
___
Python-bugs-list mailing
Roundup Robot added the comment:
New changeset c69e8ea3bf10 by Serhiy Storchaka in branch 'default':
Issue #3015: _tkinter.create() now creates tkapp object with wantobject=1 by
http://hg.python.org/cpython/rev/c69e8ea3bf10
--
___
Python tracker
Serhiy Storchaka added the comment:
Lita Cho, originally reported issue is fixed.
I asked Martin (and Guilherme if he is here). Are you agree to close this
issue? See issue21585 about extending testing.
--
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
OK, O_TMPFILE is not related. But Windows is related.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21579
___
New submission from Joshua Landau:
The documentation for re.search does not state that it returns the first match.
This should be added, or a clarification added if this is
implementation-defined.
https://docs.python.org/3/library/re.html#re.search
---
See also
Thomas Dybdahl Ahle added the comment:
I have written some proof of concept code here [1], I would appreciate you
commenting on it, before I turn it into a patch, as I haven't contributed code
to Python before.
I have tried to write it as efficiently as possible, but it is of course
possible
Changes by Guido van Rossum gu...@python.org:
--
Removed message: http://bugs.python.org/msg219253
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1683368
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
Removed message: http://bugs.python.org/msg219255
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1683368
___
Guido van Rossum added the comment:
If you don't know enough about the base class you shouldn't be subclassing it.
In this particular case you should be overriding __init__, not __new__.
--
___
Python tracker rep...@bugs.python.org
Марк Коренберг added the comment:
So, maybe API change? like delete=True|False|Maybe ? don't think that this is
good decisions.
My approach is based on ext4 behaviour about delayed allocation and atomic file
replacements.
In my case, either old file (with contents) or new file appear.
In any
Марк Коренберг added the comment:
why not to make tmpfileobj.delete as property that really sets
self._closer.delete ? this will fix my problem.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21579
Roundup Robot added the comment:
New changeset 5e599b301ebd by Serhiy Storchaka in branch '2.7':
Issue #21493: Added test for ntpath.expanduser(). Original patch by
http://hg.python.org/cpython/rev/5e599b301ebd
New changeset a981a088512c by Serhiy Storchaka in branch '3.4':
Issue #21493: Added
Terry J. Reedy added the comment:
From what I see, you do not need to change either __new__ or __init__, just
add __enter__ and __exit__ , and you only need to do that in 2.6. Since
Zipfile is written in Python, you could monkey-patch instead of subclassing,
if that is easier in your
Claudiu.Popa added the comment:
Looks good to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19385
___
___
Python-bugs-list mailing list
Eric Snow added the comment:
If you don't know enough about the base class you shouldn't be subclassing it.
That's important when overriding any API in subclass and absolutely
always essential when it comes to __new__ and __init__! That's
something that isn't very obvious at first. :(
In
Roundup Robot added the comment:
New changeset 8e5c65719c12 by Serhiy Storchaka in branch '2.7':
Issue #21402: tkinter.ttk now works when default root window is not set.
http://hg.python.org/cpython/rev/8e5c65719c12
New changeset 4a0987b8f630 by Serhiy Storchaka in branch '3.4':
Issue #21402:
Serhiy Storchaka added the comment:
Thanks Claudiu.
--
resolution: - fixed
stage: - resolved
status: open - closed
versions: +Python 2.7, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21493
Roundup Robot added the comment:
New changeset 95207bcd8298 by Serhiy Storchaka in branch '3.4':
Restore performance of some dumb database methods (regression introduced by
#19385).
http://hg.python.org/cpython/rev/95207bcd8298
New changeset 2e59e0b579e5 by Serhiy Storchaka in branch
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21402
___
Serhiy Storchaka added the comment:
Thank you for your report Stephen.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21402
___
___
Serhiy Storchaka added the comment:
Thanks Claudiu.
--
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19385
___
Serhiy Storchaka added the comment:
OK. I say the original issue is not a bug.
--
resolution: - not a bug
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21343
New submission from Sebastian Kreft:
In some cases asyncio.create_subprocess_exec raises an OSError because there
are no file descriptors available.
I don't know if that is expected, but IMO I think it would be better to just
block until the required numbers of fds are available. Otherwise
STINNER Victor added the comment:
I don't know if that is expected, but IMO I think it would be better to just
block until the required numbers of fds are available.
Does it mean that it can block forever? It sounds strange to try to make such
error silent.
Why not retrying in case of such
Serhiy Storchaka added the comment:
All works to me.
import tkinter
b = tkinter.Button()
with open('Lib/test/imghdrdata/python.gif', 'rb') as f: data = f.read()
...
img = tkinter.PhotoImage(data=data)
b['image'] = img
b.pack()
Could you please provide an example which demonstrates the
New submission from Sebastian Kreft:
Using the asyncio.create_subprocess_exec, generates lost of internal error
messages. These messages are:
Exception ignored when trying to write to the signal wakeup fd:
BlockingIOError: [Errno 11] Resource temporarily unavailable
Getting the messages
Serhiy Storchaka added the comment:
Yes, it would be easy to restore this behavior on Posix.
--
keywords: +easy
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21579
___
New submission from Sebastian Kreft:
Passing an empty list/set of futures to asyncio.wait raises an Exception, which
is a little annoying in some use cases.
Probably this was the intended behavior as I see there's a test case for that.
If such, then I would propose to document that behavior.
Serhiy Storchaka added the comment:
We should discuss this suggestion on Python-Dev. It affects the use of enums in
other modules.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20689
___
Saimadhav Heblikar added the comment:
Summary for
htest-28052014-34.diff and htest-28052014-27.diff
1. Add htest for GrepDialog,UndoDelegator and configDialog
2. Makes changes to the way the help string is displayed. The label has been
replaced by a text widget made to look like a label, and
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com:
Added file: http://bugs.python.org/file35387/htest-28052014-27.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21477
___
Guido van Rossum added the comment:
Sorry, I didn't realize why __new__ was being used. But what Jason's code is
doing isn't any cleaner than monkey-patching.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1683368
Terry J. Reedy added the comment:
My worry about the patch is that is is a bandage covering up a problem
elsewhere.
1. You indicate that you only have a problem with your custom build, but not on
a standard build. This seems odd. Perhaps the problem is with your build.
2. turtledemo.__main__
Changes by Lita Cho lita@gmail.com:
--
nosy: +Lita.Cho, jesstess
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21585
___
___
Python-bugs-list
Terry J. Reedy added the comment:
On my widescreen, the buttons are completely gone when I shrink vertically to
about 720 pixels. So they must be gone on a 600x800 screen or 720x1280 small
widescreen and perhaps on a non-fullscreen window on a 780x10xx screen. I agree
with fixing this if
New submission from Terry J. Reedy:
Turtledemo (python -m turtledemo) has a text pane for code and a canvas pane
for the actual demo. The code pane is fixed at about 60% of the width needed to
display full-width code lines. If the window is expanded horizontally, all the
expansion goes to the
Changes by Samuel Bronson naes...@gmail.com:
--
nosy: +SamB
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1054041
___
___
Python-bugs-list mailing
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +giampaolo.rodola, gvanrossum, haypo, pitrou, yselivanov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21596
___
Stefan Krah added the comment:
Sunny, is there a definition of visible positional fields? Currently,
it seems to me that in os.stat_result we have the opposite problem, namely
visible non-positional fields:
For example, st_atime_ns is visible but not indexable:
os.stat_result(st_mode=33188,
Serhiy Storchaka added the comment:
1. 3.3 is in security fixes only mode and shutdowning mechanism was changed in
3.4.
2. Looks as some Tk root was not explicitly destroyed and deleted during
shutdown stage.
3. Tk.destroy does nothing with images, it destroys only subcomponents and
STINNER Victor added the comment:
Exception ignored when trying to write to the signal wakeup fd message comes
from the signal handler in Modules/signalmodule.c. The problem is that Python
gets a lot of SIGCHLD signals (the test scripts creates +300 processes per
second on my computer). The
Jason R. Coombs added the comment:
Maybe I should have focused on a more trivial example to demonstrate the place
where my expectation was violated. The use of a real-world example is
distracting from my intended point. Consider instead this abstract example:
class SomeClass(SomeParentClass):
STINNER Victor added the comment:
BaseProactorEventLoop._loop_self_reading() uses an overlapped read of 4096
bytes. I don't understand how it wakes up the event loop. When the operation is
done, _loop_self_reading() is scheduled with call_soon() by the Future object.
Is it enough to wake up
paul j3 added the comment:
In the attached file I tried another approach - a custom Action class. It
gives you the custom behavior now, instead of 2-3 releases in the future.
class Action2(Action):
# custom action
def __init__(self, *args, **kwargs):
STINNER Victor added the comment:
asyncore documentation now starts with this note (which was approved by the
asyncore maintainer):
This module exists for backwards compatibility only. For new code we recommend
using asyncio.
Since asyncio is now part of the stdlib, I don't think that it's
STINNER Victor added the comment:
This issue was opened 11 years ago, when Windows 95, 98, Me, 2000 and XP were
used. Python is going to drop support of Windows XP, and most older versions
are already no more supported. Does this issue still exist in recent Windows
versions? I'm not aware of
paul j3 added the comment:
In http://bugs.python.org/issue11588#msg212243 I explore the option of using
decorators to 'register' custom functions with the parser. There I was adding
exclusive/inclusive tests, but the same approach could be used to register
custom types and actions.
I
Jason R. Coombs added the comment:
Based on the example above, I've created a blog post to publish my
recommendation for overriding these special methods in a way that's safe
regardless of the parent implementation, given the status quo:
STINNER Victor added the comment:
Can someone review close-3.patch please?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21119
___
___
Maciej Szulik added the comment:
I'm attaching file issue19662_v1.patch. David please have a look at it and let
me know if this is it, if not I'm waiting for your suggestions.
--
Added file: http://bugs.python.org/file35390/issue19662_v1.patch
___
STINNER Victor added the comment:
A first patch to fill remaining XXX docstring of events.py.
--
keywords: +patch
Added file: http://bugs.python.org/file35391/asyncio_events_docstring.patch
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 6d90e8df01f4 by Victor Stinner in branch '3.4':
Issue #21376: document asyncio.TimeoutError
http://hg.python.org/cpython/rev/6d90e8df01f4
New changeset 03bb1077b362 by Victor Stinner in branch 'default':
(Merge 3.4) Issue #21376: document
STINNER Victor added the comment:
Thanks for the report. In fact, asyncio.TimeoutError was not documented at all.
It should now be fixed.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +giampaolo.rodola, gvanrossum, haypo, pitrou, yselivanov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21443
___
Guido van Rossum added the comment:
Good idea.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21443
___
___
Python-bugs-list mailing list
Roundup Robot added the comment:
New changeset 16f399588b2a by Victor Stinner in branch '3.4':
Issue #21454: Fix asyncio.BaseEventLoop.connect_read_pipe doc
http://hg.python.org/cpython/rev/16f399588b2a
New changeset 8391f99208f6 by Victor Stinner in branch 'default':
(Merge 3.4) Issue #21454:
STINNER Victor added the comment:
Yes, the documentation was wrong. It should now be fixed. Thanks for the report.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21454
Milan Oberkirch added the comment:
Done.
--
Added file: http://bugs.python.org/file35392/smtplib_auth.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15014
___
STINNER Victor added the comment:
Serhiy, perhaps it would be useful to see if such optimizations can apply to
Tulip's (or asyncio's) event loop, since it will probably be the new standard
in 3.4.
asyncio was designed differently. Cancelling a task doesn't remove it from a
list of pending
Changes by Milan Oberkirch milan...@oberkirch.org:
--
nosy: +jesstess
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15014
___
___
Python-bugs-list
Martin Panter added the comment:
Thanks for looking at this. Originally the issue was found by reading the GIF
and PNG images on various web pages, such as
http://www.weatherzone.com.au/vic/north-central/castlemaine. However I was
also able to produce the problem with the other formats of
Terry J. Reedy added the comment:
0. My general interest is in running external programs and in particular, for
this issue, python modules intended to be run as main. Some other scripts I
would like to be able to easily launch from Idle include
List/test.test_idle.py,
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: +Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18141
___
___
STINNER Victor added the comment:
I proposed a patch upstream (in Tulip) to solve this issue:
http://code.google.com/p/tulip/issues/detail?id=169
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21326
Guido van Rossum added the comment:
Hrm. I've always thought that the key point of cooperative MI was the term
*cooperative*. Consider a regular (non-constructor) method. You must have a
common base class that defines this method, and *that* method shouldn't be
calling the super-method
STINNER Victor added the comment:
Updated patch to address Guido's remarks.
FYI I copied the documentation from the Doc repository and
Lib/asyncio/unix_events.py (for child watchers), and so I copied typos :-) I
tried to fix all copies of the documentation in my new patch.
I didn't mention
Lita Cho added the comment:
So I don't know what the best way to do this, but I changed the widget_tests.py
in order to set tkinter.wantobjects = 0 if a 'wantobjects' flag was passed
through test.support.use_resources.
Then I added a new test called test_ttk_guionly_wantobj, where it turns
Lita Cho added the comment:
Patches lived in my Linux machine. I've attached my patch. I will add my module
next.
--
keywords: +patch
Added file: http://bugs.python.org/file35394/test_wantobj.patch
___
Python tracker rep...@bugs.python.org
Changes by Lita Cho lita@gmail.com:
Added file: http://bugs.python.org/file35395/test_ttk_guionly_wantobj.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21585
___
Steven D'Aprano added the comment:
On Wed, May 28, 2014 at 02:43:29PM +, Thomas Dybdahl Ahle wrote:
I have written some proof of concept code here [1], I would appreciate
you commenting on it, before I turn it into a patch, as I haven't
contributed code to Python before.
Thanks
Graham Oliver added the comment:
hello
I came across this bug when using 'ā' in a url
To get around the problem I used the 'URL encoded' version '%C4%81' instead of
'ā'
See this page
http://www.charbase.com/0101-unicode-latin-small-letter-a-with-macron
I tried using the 'puny code' for 'ā'
New submission from Santoso Wijaya:
The reference doc for Python data model says that __getslice__ is deprecated
[1], and that __getitem__ should be used instead:
Deprecated since version 2.0: Support slice objects as parameters to the
__getitem__() method. (However, built-in types in
Santoso Wijaya added the comment:
Hm. The docstring for __getitem__ doesn't mention it can/should be accepting
slice object as argument. That's what I'm missing. Doc patch?
--
___
Python tracker rep...@bugs.python.org
Changes by Santoso Wijaya santoso.wij...@gmail.com:
--
resolution: - not a bug
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21598
___
New submission from Vajrasky Kok:
In Lib/asyncio/base_events.py, we have these lines of code:
---
def attach(self, transport):
assert self.sockets is not None
self.active_count += 1
def detach(self, transport):
Vajrasky Kok added the comment:
Yeah, I remember I tried to improve the performance of the median in the past
using median-of-k algorithm. But too bad I could not beat sorted C function
efficiency. Maybe you have a better luck!
--
nosy: +vajrasky
Terry J. Reedy added the comment:
I withdraw my suggestion that turtledemo get anything added just for moving
code to Idle. What is does need is the ability to widen the code pane so one
can more easily read or cut (by normal means). See #21597.
One of my concerns about putting turtledemo on
New submission from fumihiko kakuma:
It seems that stopall doesn't work when do start patch.dict to sys.modules.
I show sample scripts the following.
Using stopall test case seems to always refer the first mock foo object.
But using stop it refers a new mock foo object.
$ cat test_sampmod.py
paul j3 added the comment:
This is not getting much attention for several reasons:
- there's quite a backlog of argparse patches and issues
- 'set_defaults' is not commonly used. Setting default in 'add_argument' seems
more common.
- defining the same argument for both the parser and
New submission from Vajrasky Kok:
https://docs.python.org/3.5/library/asyncio-task.html#task
The cancel method is not documented although it is a part of public API. Here
is the patch to fix the doc.
--
assignee: docs@python
components: Documentation
files: fix_doc_asyncio_task.patch
New submission from Syou Ei:
The smtplib.py also has the same problem.
The EINTR cannot be handled properly.
2014-05-21 19:20:15,631 ERROR actions: Notification 'socket_noti' FAILED to
send emails to set(['mailt...@tscoss.com']): class 'socket.error' - [Errno 4]
Interrupted system
Roundup Robot added the comment:
New changeset 90dab7696e89 by Terry Jan Reedy in branch '2.7':
Issue #21477: Add htests for GrepDialog, UndoDelegator, and configDialog.
http://hg.python.org/cpython/rev/90dab7696e89
New changeset d90905960803 by Terry Jan Reedy in branch '3.4':
Issue #21477:
Terry J. Reedy added the comment:
Ned, this patch includes a call to macosxSupport.
_initializeTkVariantTests(root) in htest.run. Does this work on mac or is
something else needed (like doing the same for individual tests that create
another root)?
--
95 matches
Mail list logo