Ned Deily added the comment:
That warning has been around for some time. The question is: is it something
to be concerned about? I don't know of any ctypes test failures on OS X.
There have been various discussions of the warning in other (non-Python)
contexts, for example,
Raymond Hettinger added the comment:
It's not a bug. Guido designed the Set ABC to use operators instead of the
named methods. The += operator for the __iadd__() method that provides much of
the same functionality.
Mutable mapping has an update() method because it is an essential part of
Ned Deily added the comment:
turtle_demo_v3.patch looks good to me. I have satisfied myself that the
AppleScript works OK with a non-English system. And, while it is a bit of a
kludge for OS X and assuming the rest of the change works OK on Windows and
Linux, I would recommend to Terry that
Akira Li added the comment:
Akira, your patch does this:
-self._writetranslate = newline != ''
-self._writenl = newline or os.linesep
+self._writetranslate = newline in (None, '\r', '\r\n')
+self._writenl = newline if newline is not None else os.linesep
Alejandro MJ added the comment:
Thanks a lot for your help, as you suggested the problem was because of the
method set_tunnel. I've tested the code that you have posted and now works
perfectly.
I'll keep in mind this for future works. We can conclude that it's not really a
bug of Python, so
Serhiy Storchaka added the comment:
On X11 Button-4 and Button-5 events are generated on mouse wheel roll. So
you should add
widget.bind('Control-Button-4', self._increaseFont)
widget.bind('Control-Button-5', self._decreaseFont)
But mouse wheel events still are sent to widget
Larry Hastings added the comment:
Here's an updated patch. I cleaned it up a little. I think it's about ready
to go in.
Zachary, iirc you're a Windows guy and have helped with ensuring patches apply
cleanly to Windows in the past. Can you give this a try on Windows?
--
Added file:
New submission from Akira Li:
$ ./python -mtest -uaudio test_ossaudiodev
[1/1] test_ossaudiodev
test test_ossaudiodev failed -- Traceback (most recent call last):
File ./Lib/test/test_ossaudiodev.py, line 148, in test_playback
self.play_sound_file(*sound_info)
File
Changes by Akira Li 4kir4...@gmail.com:
--
title: test_ossaudiodev fails unnecessarily - oss_audio_device.write(data)
produces short writes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22094
Akira Li added the comment:
From Modules/ossaudiodev.c:
/* NB. writeall() is only useful in non-blocking mode: according to
Guenter Geiger gei...@xdv.org on the linux-audio-dev list
(http://eca.cx/lad/2002/11/0380.html), OSS guarantees that
write() in blocking mode
Ronald Oussoren added the comment:
I don't have a better solution for this, although I'd slightly prefer to add a
hack to the turtledemo main function to force itself to the foreground on
startup. That way the hack also works when the user starts the script in a
Terminal window.
--
Changes by Akira Li 4kir4...@gmail.com:
--
components: +Library (Lib) -Tests
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22094
___
___
Akira Li added the comment:
Maybe is_something() is a better name than get_something()
if something is a boolean?
--
nosy: +akira
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22054
___
Martin v. Löwis added the comment:
Dropping support for 8.3 sounds fine with me (for Python 3.5 only, of course).
Otherwise, the patch looks also fine, so please apply.
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
David Wilson added the comment:
Newest patch incorporates Antoine's review comments. The final benchmark
results are below. Just curious, what causes e.g. telco to differ up to 7%
between runs? That's really huge
Report on Linux k2 3.14-1-amd64 #1 SMP Debian 3.14.9-1 (2014-06-30) x86_64
Total
STINNER Victor added the comment:
Maybe is_something() is a better name than get_something()
if something is a boolean?
os and socket modules already use getxxx() / setxxx() names:
- os.get_inheritable() / os.set_inheritable()
- os.getuid() / os.setuid()
- os.getgroups() / os.setgroups()
-
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: -haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1602
___
___
Python-bugs-list
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +benhoyt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12970
___
___
Python-bugs-list
Charles-Axel Dein added the comment:
Anything else I need to do?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20351
___
___
Python-bugs-list
Changes by Brett Cannon br...@python.org:
--
assignee: larry - brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20152
___
___
Akira Li added the comment:
I've updated os.walk() documentation to mention that *dirnames* list
includes symlinks to directories.
To imitate the other two cases:
- treat the symlinks as files:
for dirpath, dirnames, files in os.walk(top):
dirs = []
for name in dirnames:
Stefan Krah added the comment:
Just curious, what causes e.g. telco to differ up to 7% between runs? That's
really huge.
telco.py always varies a lot between runs (up to 10%), even in the
big version telco.py full:
http://bytereef.org/mpdecimal/quickstart.html#telco-benchmark
Using the
Stefan Krah added the comment:
So I wonder why the benchmark suite says that the telco slowdown is
significant. :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22003
___
Akira Li added the comment:
os and socket modules already use getxxx() / setxxx() names:
- os.get_inheritable() / os.set_inheritable()
- os.getuid() / os.setuid()
- os.getgroups() / os.setgroups()
- os.getxattr() os.setxattr()
- socket.gettimeout() / socket.settimeout()
-
Changes by Brian Curtin br...@python.org:
--
nosy: -brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8232
___
___
Python-bugs-list
Charles-François Natali added the comment:
I agree with Akira, although it's probably too late now to rename.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22054
___
Zachary Ware added the comment:
MSVC is not happy, here's some build output:
P:\ath\to\cpython\PCbuild\pcbuild.sln (Build target) (1) -
P:\ath\to\cpython\PCbuild\python.vcxproj (default target) (2) -
P:\ath\to\cpython\PCbuild\pythoncore.vcxproj (default target) (3) -
(ClCompile target) -
Alex Gaynor added the comment:
Investigations:
The test_poplib failures are caused by the backporting of
http://bugs.python.org/issue20951, does anyone have opinions on whether we
should backport Antoine's fix for poplib, or revert that particular change?
I'm not sure how to fix that
Raymond Hettinger added the comment:
Anything else I need to do?
Nothing else. I've got it from here :-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20351
___
New submission from Demian Brecht:
Creating this bug for clarity, but was encountered while investigating 22041
(now set as not a bug).
When using set_tunnel with default port, the port value in the host header is
set to None:
send: b'POST [PATH] HTTP/1.1\r\nHost:
Changes by Demian Brecht demianbre...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file36140/issue22095.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22095
___
Lita Cho added the comment:
Thanks for the input Ronald! How would I go about forcing the turtledemo to be
in the foreground? Do I just need to call 'fg' on the subprocess? I've been
Googling and couldn't find anything obvious.
--
___
Python
Mark Lawrence added the comment:
I suppose that technically this can only go into 3.5, but is there any real
reason that this couldn't be backported?
--
versions: +Python 3.5 -Python 3.4
Added file: http://bugs.python.org/file36141/Issue19980.diff
Alex Gaynor added the comment:
Latest patch makes the needed change to Makefile.pre.in
--
Added file: http://bugs.python.org/file36142/ssl-backport.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21308
Demian Brecht added the comment:
No problem, happy you were able to get things sorted. Feel free to close this
issue as I've opened #22095 to address the host port header issue.
--
___
Python tracker rep...@bugs.python.org
Changes by Zachary Ware zachary.w...@gmail.com:
--
versions: +Python 3.5
Added file: http://bugs.python.org/file36143/issue20586.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20586
___
Changes by Zachary Ware zachary.w...@gmail.com:
Removed file: http://bugs.python.org/file34025/clinic_sig_no_docstring.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20586
___
Zachary Ware added the comment:
Certainly, Martin. I'm in the process of getting it updated and self-reviewing
again. This patch will require #20586 and possibly another new Clinic feature
(allowing output to multiple destinations; I have a change for that feature on
my issue20172 sandbox
Ned Deily added the comment:
Ronald:
I'd slightly prefer to add a hack to the turtledemo main function to force
itself to the foreground on startup. That way the hack also works when the
user starts the script in a Terminal window.
That's exactly what the proposed patch does. The
Changes by Ned Deily n...@acm.org:
--
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22041
___
___
Mark Lawrence added the comment:
Can our testing gurus shed any light on this?
--
nosy: +BreamoreBoy, ezio.melotti, michael.foord, pitrou
versions: +Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17763
Larry Hastings added the comment:
thanks! I'm flying from London to Brisbane (via Singapore), gonna take about a
day. Now I have something to do on the flight ;-)
(that and nullable ints)
--
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
Guido van Rossum told me that he's ok for get: I'd go with get, since that
seems the tradition in the os module.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22054
STINNER Victor added the comment:
Ok, I will write a a patch to raise an exception in debug mode if the socket is
in blocking mode.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22063
Mark Lawrence added the comment:
Can we get this into 3.5 for the reasons given in msg179596 ?
--
nosy: +BreamoreBoy
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10572
Changes by Zachary Ware zachary.w...@gmail.com:
--
components: Demos and Tools
nosy: larry, zach.ware
priority: normal
severity: normal
status: open
title: Argument Clinic: add ability to specify an existing impl function
type: enhancement
versions: Python 3.4, Python 3.5
Mark Lawrence added the comment:
Is this ever likely to be implemented or is it more likely to be rejected owing
to the reasons given in msg75587 ?
--
nosy: +BreamoreBoy
versions: +Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
New submission from Zachary Ware:
It would be nice to be able to specify an existing function as the _impl
function, for cases like winreg.OpenKey and OpenKeyEx which are the same
function by different names, or _winapi.GetCurrentProcess, whose impl function
is return GetCurrentProcess().
Mark Lawrence added the comment:
Looking at msg128306 and msg128319 I believe this can be closed.
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5833
___
Mark Lawrence added the comment:
@David (Edelsohn) what is your take on this?
--
nosy: +BreamoreBoy, David.Edelsohn
versions: +Python 3.4, Python 3.5 -Python 2.6, Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
New submission from Antoine Pitrou:
Right now Python doesn't have an ordered container which allows O(1) insertion
at any place. It would be nice to have such an API on ordered dicts (e.g.
insert_after() / insert_before()).
--
messages: 224191
nosy: pitrou, rhettinger,
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22097
___
___
Python-bugs-list
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22097
___
___
Richard Oudkerk added the comment:
I can't remember why I did not use fstat() -- probably it did not occur to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18174
___
Puneeth Chaganti added the comment:
Hi,
The attached patch is an attempt to write tests for this issue, and get all the
tests passing.
Since a new threshold has been introduced, `maxDiff` doesn't always make a
difference and this required changing the `testAssertSequenceEqualMaxDiff`
STINNER Victor added the comment:
I backported and adapted most Python 3 fixes related to the Windows binary mode
for stdout/stderr used when Python is started with the -u command line option.
See attached binary.patch.
My change to file.write() looks wrong because the function returns None
New submission from Florian Dold:
Habimg __slots__ = [] on a class inheriting from ctypes.Structure prevents
undefined fields from being set, as expected.
When inheriting from ctypes.BigEndianStructure, however, it is possible to set
undefined fields.
See the attached file for small test
Changes by Florian Dold florian.d...@gmail.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22098
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset 039ac3f01c4e by Victor Stinner in branch '2.7':
Issue #19612: subprocess.communicate() now also ignores EINVAL when using at
http://hg.python.org/cpython/rev/039ac3f01c4e
--
___
Python tracker
STINNER Victor added the comment:
While testing binary.patch, test_subprocess failed because of the issue #19612.
I backported the fix:
changeset: 91905:039ac3f01c4e
branch: 2.7
parent: 91895:bffa0b8a16e8
user:Victor Stinner victor.stin...@gmail.com
date:Tue Jul 29
STINNER Victor added the comment:
I didnd't see the failure recently on Windows, so I close the issue.
I backported the fix on Python 2.7 for the issue #21946.
--
resolution: - fixed
status: open - closed
versions: +Python 2.7
___
Python tracker
Roundup Robot added the comment:
New changeset f618f6739200 by Richard Oudkerk in branch '3.4':
Issue #21704: Fix build error for _multiprocessing when semaphores
http://hg.python.org/cpython/rev/f618f6739200
New changeset a9637b29954d by Richard Oudkerk in branch 'default':
Issue #21704:
Changes by Yoann Aubineau yoann.aubin...@gmail.com:
--
nosy: +yaubi
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22097
___
___
Python-bugs-list
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20766
___
___
Python-bugs-list
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20746
___
___
Python-bugs-list
STINNER Victor added the comment:
Modified patch to use os.fstat(), and try to use /proc/self/fd/ on Linux.
--
Added file: http://bugs.python.org/file36147/fdleak-2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18174
Roundup Robot added the comment:
New changeset 379aad232000 by Victor Stinner in branch '3.4':
Issue #11453, #18174: Fix leak of file descriptor in test_asyncore
http://hg.python.org/cpython/rev/379aad232000
New changeset 0ced2d2325fb by Victor Stinner in branch 'default':
(Merge 3.4) Issue
Roundup Robot added the comment:
New changeset 379aad232000 by Victor Stinner in branch '3.4':
Issue #11453, #18174: Fix leak of file descriptor in test_asyncore
http://hg.python.org/cpython/rev/379aad232000
New changeset 0ced2d2325fb by Victor Stinner in branch 'default':
(Merge 3.4) Issue
Roundup Robot added the comment:
New changeset 746339776f19 by Victor Stinner in branch '3.4':
Issue #18174: Fix leak of file descriptor in test_tempfile
http://hg.python.org/cpython/rev/746339776f19
New changeset 017d701116d5 by Victor Stinner in branch 'default':
(Merge 3.4) Issue #18174: Fix
New submission from Adam Kimbrough:
I am on a Mac running Mavericks 10.9.4. Whenever I press shift+command+s to
save a file as a specific name, it opens two windows. But, if I Save As
through the button in the menu bar, it only opens one window.
--
components: IDLE
messages: 224204
Ned Deily added the comment:
This is due to a bug in earlier versions of Cocoa Tk 8.5.x, originally
documented in Issue11055. Unfortunately, Apple is still shipping such a
version in current versions of OS X. One solution is to install a newer
version of Tk 8.5, such as ActiveTcl 8.5.15 and
Terry J. Reedy added the comment:
I agree with skipping 2.7. The current patch is based on importing turtledemo,
while on 2.7, turtleDemo.py is in Demo/turtle/ and cannot be imported. It could
run with execfile, but the viewer will only run if /turtle is the current
directory. On Windows,
Yoann Aubineau added the comment:
Here is an attempt to implement such an API. The patch adds 4 methods to
OrderedDict: move_before, move_after, insert_before and insert_after with
corresponding tests.
The method signatures do not feel right though. I am not sure where the
reference key
Raymond Hettinger added the comment:
It's not a bug. Guido designed the Set ABC to use operators instead of the
named methods. The += operator for the __ior__() method that provides much of
the same functionality.
In your concrete class, you can add an update() method easily:
class
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
Removed message: http://bugs.python.org/msg224153
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22089
___
Ned Deily added the comment:
If the activate code is moved to macosxSupport.activate(), does the
following work in EditorWindow.open_turtle_demo?
cmd = [sys.executable, '-c',
'from idlelib.macosxSupport import activate as A; A()\n'
'from turtledemo.__main__ import main; main()']
Does the
Raymond Hettinger added the comment:
I would like any proposed API extensions to be use case driven.
The omission of these methods wasn't accidental. I studied pre-existing OD
implementations for Python and looked at how they were used in the real-world
(back when we still had Google Code
Changes by Yoann Aubineau yoann.aubin...@gmail.com:
--
nosy: +yaubi
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21740
___
___
Python-bugs-list
Changes by Yoann Aubineau yoann.aubin...@gmail.com:
--
nosy: +yaubi
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21724
___
___
Python-bugs-list
Changes by Yoann Aubineau yoann.aubin...@gmail.com:
--
nosy: +yaubi
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21710
___
___
Python-bugs-list
Antoine Pitrou added the comment:
My current use case is manipulation of Numba IR code. I'm working on a
transformation pass that adds instructions at arbitrary places in existing IR.
The primitive I need is add an instruction after another one (which is
exactly the insert_after() primitive
Milan Oberkirch added the comment:
Thanks for the review and improvements!
I fixed the warnings (didn't see them with running tests as described in the
dev guide; I may improve that later), updated the docs to RFC 5321 (issue 19679
is referring to RFC 3463 which is not
Roundup Robot added the comment:
New changeset 04dd26ca02f4 by Terry Jan Reedy in branch '3.4':
Issue #17172: Add the ability to run turtledemo from Idle.
http://hg.python.org/cpython/rev/04dd26ca02f4
--
nosy: +python-dev
___
Python tracker
Terry J. Reedy added the comment:
I would have made the turtledemo fix a separate issue. Given the combined
patch, I will just make separate NEWS entries (which I am working on now).
I expect there to be other new entries for Shell/Run, and will move when that
is true.
--
Changes by Terry J. Reedy tjre...@udel.edu:
--
resolution: - fixed
stage: commit review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17172
___
Roundup Robot added the comment:
New changeset e344539cda11 by Terry Jan Reedy in branch '3.4':
Issue #17172: add NEWS
http://hg.python.org/cpython/rev/e344539cda11
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17172
Changes by Terry J. Reedy tjre...@udel.edu:
--
assignee: ezio.melotti - terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17172
___
___
Changes by Yoann Aubineau yoann.aubin...@gmail.com:
--
nosy: +yaubi
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22098
___
___
Python-bugs-list
Changes by Yoann Aubineau yoann.aubin...@gmail.com:
--
nosy: +yaubi
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22086
___
___
Python-bugs-list
Changes by Yoann Aubineau yoann.aubin...@gmail.com:
--
nosy: +yaubi
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22090
___
___
Python-bugs-list
Josh Rosenberg added the comment:
Minor correction to example. That should be:
class MySet(Set):
update = Set.__ior__
(no paren after __ior__, since we're assigning, not calling)
--
nosy: +josh.rosenberg
___
Python tracker
91 matches
Mail list logo