[issue21933] Allow the user to change font sizes with the text pane of turtledemo

2014-07-21 Thread Ned Deily
Ned Deily added the comment: Lita, I tried the patch. From the perspective of an OS X user, while I might expect that using the zoom gesture on a mousepad or using a mousewheel (the equivalent) to increase or decrease the font size, I would even more expect scrolling to work especially if scr

[issue21933] Allow the user to change font sizes with the text pane of turtledemo

2014-07-21 Thread Lita Cho
Lita Cho added the comment: Sounds good. I can wait till the sash code gets incorporated in order to add in the font code. I would have to generate a MOUSEWHEEL event and see if it fails. I have generated mouse clicks before. I'll try to see if I can generate a MOUSEWHEEL event and if it errors,

[issue21933] Allow the user to change font sizes with the text pane of turtledemo

2014-07-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: MOUSEWHEEL should continue to scroll. CONTROL+MOUSEWHEEL should change font size, as you said at the beginning. At least on Windows, this seems pretty standard: Internet Explorer, Firefox, Notepad++, LibreOffice (and, I imagin, OpenOffice, and Word), Thunderbird

[issue21933] Allow the user to change font sizes with the text pane of turtledemo

2014-07-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I plan to commit the sash patch before reviewing this. I would wait until then to do a separate patch. -- ___ Python tracker ___ __

[issue21597] Allow turtledemo code pane to get wider.

2014-07-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: For me, FLAT is about as mushy as the default, while SOLID actually looks like a divider. I find the sash easier to 'grab' and move. I plan to go with that. If it looks substantially worse on some other system, we could make the argument conditional on sys.pla

[issue22029] argparse - CSS white-space: like control for individual text blocks

2014-07-21 Thread paul j3
paul j3 added the comment: One way of marking a string for special wrap handing is to make it an instance of a subclass of 'str'. This patch adds class _WhitespaceStyle(str), and 5 subclasses corresponding to the possible values of the CSS whitespace:. Normal Pre NoWrap Pr

[issue22029] argparse - CSS white-space: like control for individual text blocks

2014-07-21 Thread paul j3
New submission from paul j3: A number of the issues seek to customize the wrapping behavior in HelpFormatter - beyond what the current Formatter subclasses offer. http://bugs.python.org/issue13923 and http://bugs.python.org/issue12806 - want a wrapping method that preserves existing \n, while

[issue22021] shutil.make_archive() root_dir do not work

2014-07-21 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue19629] support.rmtree fails on symlinks under Windows

2014-07-21 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ ___

[issue22021] shutil.make_archive() root_dir do not work

2014-07-21 Thread Weinan Li
Weinan Li added the comment: Here's the path -- keywords: +patch Added file: http://bugs.python.org/file36022/Issue22021.patch ___ Python tracker ___

[issue21793] httplib client/server status refactor

2014-07-21 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1702036] Make Turtle thread-safe so it does not crash

2014-07-21 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> low versions: +Python 3.5 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-l

[issue21955] ceval.c: implement fast path for integers with a single digit

2014-07-21 Thread Zach Byrne
Zach Byrne added the comment: I did something similar to BINARY_SUBSCR after looking at the 2.7 source as Raymond suggested. Hopefully I got my binaries straight this time :) The new patch includes Victor's inlining and my new subscript changes. Platform of campaign orig: Python version: 3.5.0

[issue22021] shutil.make_archive() root_dir do not work

2014-07-21 Thread Weinan Li
Weinan Li added the comment: I don't think so. In source code, it just change work dir to root_dir, do nothing, and then the change word dir back. If it works as design, the "root_dir" will be meaningless. should be remove. -- ___ Python tracker <

[issue22028] Python 3.4.1 Installer ended prematurely (Windows msi)

2014-07-21 Thread Jim Conyngham
New submission from Jim Conyngham: Python will not install on my Windows 7 (64-bit) OS. I have repeatedly tried the install with variations (specifying an install directly vs. taking the default; running as admininstrator vs. not; with and without logging) and with multiple downloads python-3.

[issue1702036] Make Turtle thread-safe so it does not crash

2014-07-21 Thread Lita Cho
Changes by Lita Cho : -- nosy: +jesstess ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue21933] Allow the user to change font sizes with the text pane of turtledemo

2014-07-21 Thread Lita Cho
Lita Cho added the comment: Here is a patch for changing the font size using the scroll wheel. I also added the shortcuts "Ctrl-plus" to increase the font size and "Ctrl-minus" to decrease the font size. However, since the MouseWheel is now bound to changing the font size, the canvas won't scr

[issue21933] Allow the user to change font sizes with the text pane of turtledemo

2014-07-21 Thread Lita Cho
Lita Cho added the comment: I have a version of this working with Ctrl-plus and Ctrl-minus. However, there is a bug with Tk 8.5.9 where binding to MouseWheel crashes Tkinter for Macs (issue10731), which I am running into. I need to update Tkinter to see if this works. -- __

[issue21536] extension built with a shared python cannot be loaded with a static python

2014-07-21 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue14301] xmlrpc client transport and threading problem

2014-07-21 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue13128] httplib debuglevel on CONNECT doesn't print response headers

2014-07-21 Thread Demian Brecht
Demian Brecht added the comment: Attached a simple fix to the problem as written, matching logging method of HTTPResponse.begin(). -- nosy: +demian.brecht Added file: http://bugs.python.org/file36018/issue13128.patch ___ Python tracker

[issue20898] Missing 507 response description

2014-07-21 Thread Demian Brecht
Demian Brecht added the comment: Being this is tagged for 3.5, I've refactored status codes as part of #21793. Should that be accepted and merged, that will also clear up this issue. -- ___ Python tracker

[issue21976] Fix test_ssl.py to handle LibreSSL versioning appropriately

2014-07-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: This should be fixed now. Thank you very much! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker __

[issue21976] Fix test_ssl.py to handle LibreSSL versioning appropriately

2014-07-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 33fc081285b2 by Antoine Pitrou in branch '2.7': Issue #21976: Fix test_ssl to accept LibreSSL version strings. http://hg.python.org/cpython/rev/33fc081285b2 -- ___ Python tracker

[issue21976] Fix test_ssl.py to handle LibreSSL versioning appropriately

2014-07-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4dac45f88d45 by Antoine Pitrou in branch '3.4': Issue #21976: Fix test_ssl to accept LibreSSL version strings. http://hg.python.org/cpython/rev/4dac45f88d45 New changeset 98aec1d9e2a0 by Antoine Pitrou in branch 'default': Issue #21976: Fix test_ssl

[issue22023] PyUnicode_FromFormat is broken on python 2

2014-07-21 Thread Alex Gaynor
Alex Gaynor added the comment: Hi Victor, thanks for working on this. I don't know the Unicode codebase that well, but this looks like an obvious improvement to me (much less broken :-)). -- ___ Python tracker ___

[issue22023] PyUnicode_FromFormat is broken on python 2

2014-07-21 Thread STINNER Victor
STINNER Victor added the comment: Here is a patch fixing %S and %R formats and supporting %li and %zi. It fixes also %S, %R and %V for non-ASCII characters. PyUnicode_FromFormat() of Python 2 doesn't support width, precision and padding. For example, "%100i" does crash. For %S, %R and %V, the

[issue22003] BytesIO copy-on-write

2014-07-21 Thread David Wilson
Changes by David Wilson : Added file: http://bugs.python.org/file36016/cow4.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue22003] BytesIO copy-on-write

2014-07-21 Thread David Wilson
David Wilson added the comment: Hi Stefan, How does this approach in reinit() look? We first ask for a writable buffer, and if the object obliges, immediately copy it. Otherwise if it refused, ask for a read-only buffer, and this time expect that it will never change. This still does not catc

[issue22027] RFC 6531 (SMTPUTF8) support in smtplib

2014-07-21 Thread Milan Oberkirch
New submission from Milan Oberkirch: This patch is related to and depends on issue 21725. I put it here for review, it can be applied (maybe with small changes) as soon as issue 21725 is fixed. -- components: email files: smtplib_smtputf8_issue21725-dependent.patch keywords: patch messa

[issue1702036] Make Turtle thread-safe so it does not crash

2014-07-21 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: +Lita.Cho ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue22025] webbrowser.get(command_line) does not support Windows-style path separators

2014-07-21 Thread Dan O'Reilly
Dan O'Reilly added the comment: Attached is a patch for the latter approach. -- keywords: +patch Added file: http://bugs.python.org/file36014/web.patch ___ Python tracker ___ ___

[issue22024] Add to shutil the ability to wait until files are definitely deleted

2014-07-21 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue21822] KeyboardInterrupt during Thread.join hangs that Thread

2014-07-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: This works for me under Linux. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue22026] 2.7.8 ttk Button text display problem

2014-07-21 Thread Les Bothwell
New submission from Les Bothwell: My system: Windows 7 64 bit. Python 2.7.8 (32 bit) There's a problem with ttk button label text truncation when using large fonts on 2.7.8. 2.7.6 works Ok. With 2.7.6, increasing the font size in a ttk style makes the button large enough to display the text

[issue21822] KeyboardInterrupt during Thread.join hangs that Thread

2014-07-21 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +neologix, pitrou, tim.peters type: -> behavior versions: +Python 3.5 ___ Python tracker ___ ___

[issue22025] webbrowser.get(command_line) does not support Windows-style path separators

2014-07-21 Thread Dan O'Reilly
New submission from Dan O'Reilly: Currently, when webbrowser.get() is passed a "using" argument that consists of a command line string like "C:\Users\dan\AppData\Local\Google\Chrome\Application\chrome.exe %s", it will use shlex.split(command_line) to tokenize the string. However, when given W

[issue12855] linebreak sequences should be better documented

2014-07-21 Thread Zachary Ware
Changes by Zachary Ware : -- stage: -> patch review versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker ___

[issue21964] inconsistency in list-generator comprehension with yield(-from)

2014-07-21 Thread STINNER Victor
STINNER Victor added the comment: > For `g1`: it returns a generator because the listcomp contains a `yield from`. IMO it's a bug: [... for ... in ...] must create a list. -- ___ Python tracker ___

[issue21964] inconsistency in list-generator comprehension with yield(-from)

2014-07-21 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue22024] Add to shutil the ability to wait until files are definitely deleted

2014-07-21 Thread Zachary Ware
New submission from Zachary Ware: As suggested by Martin in msg170717, shutil should grow some way to block until a given file/directory is actually deleted, due to Windows' scheme of not actually deleting a file until all handles to it are closed. This could take the form of a 'wait=False' pa

[issue21793] httplib client/server status refactor

2014-07-21 Thread Demian Brecht
Demian Brecht added the comment: Removed draft status code, removed S from VARIANTS_ -- Added file: http://bugs.python.org/file36012/issue21793_2.patch ___ Python tracker ___ ___

[issue19629] support.rmtree fails on symlinks under Windows

2014-07-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset c026ed24a211 by Victor Stinner in branch '3.4': Issue #19629: Add missing "import stat" http://hg.python.org/cpython/rev/c026ed24a211 New changeset 168cd3d19fef by Victor Stinner in branch 'default': (Merge 3.4) Issue #19629: Add missing "import sta

[issue22023] PyUnicode_FromFormat is broken on python 2

2014-07-21 Thread STINNER Victor
STINNER Victor added the comment: Python 3 has many unit tests for PyUnicode_FromFormat(): see test_unicode.test_from_format(). -- ___ Python tracker ___ ___

[issue22003] BytesIO copy-on-write

2014-07-21 Thread Stefan Krah
Stefan Krah added the comment: I'm sure many exporters aren't setting the right flags; on the other hand we already hash memoryviews based on readonly buffers, assuming they are immutable. -- ___ Python tracker ___

[issue22003] BytesIO copy-on-write

2014-07-21 Thread David Wilson
David Wilson added the comment: I'm not sure how much work it would be, or even if it could be made sufficient to solve our problem, but what about extending the buffers interface to include a "int stable" flag, defaulting to 0? It seems though, that it would just be making the already arcane

[issue6699] IDLE: Warn user about overwriting a file that has a newer version on filesystem

2014-07-21 Thread Mark Lawrence
Mark Lawrence added the comment: The latest patch reflects msg112886 and msg149117 so I believe it should be committed. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker ___

[issue21965] Add support for Memory BIO to _ssl

2014-07-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: The C part of the patch looks roughly ok to me (modulo a couple of comments). However, we must now find a way to expose this as a Python-level API. -- ___ Python tracker _

[issue22023] PyUnicode_FromFormat is broken on python 2

2014-07-21 Thread Alex Gaynor
Alex Gaynor added the comment: It's worth noting that this function is replete with incorrect assumptions about unicode vs. strings that came from the backport, the one I initially pointed out was merely the first. The motivation for this issue is the SSL module backport (issue21308) for the

[issue21597] Allow turtledemo code pane to get wider.

2014-07-21 Thread Lita Cho
Lita Cho added the comment: Ping! Just wanted to see what the status was on getting this patch reviewed. I hope your eye is feeling better, Terry! -- ___ Python tracker ___

[issue1745108] 2.5.1 curses panel segfault in new_panel on aix 5.3

2014-07-21 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: +David.Edelsohn type: -> crash versions: +Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___ ___

[issue22023] PyUnicode_FromFormat is broken on python 2

2014-07-21 Thread Alex Gaynor
New submission from Alex Gaynor: http://hg.python.org/cpython/file/2.7/Objects/unicodeobject.c#l840 Specifically it calls "PyObject_Str", which will return a PyStringObject * (cast to a PyObject *), and then calls "PyUnicode_GET_SIZE", which is of course totally incorrect. This code was origi

[issue20064] PyObject_Malloc is not documented

2014-07-21 Thread Zachary Ware
Zachary Ware added the comment: It appears that PyObject_Realloc and PyObject_Free are also not documented; they should be along with PyObject_Malloc. I also left a couple of comments on Rietveld. -- nosy: +zach.ware stage: needs patch -> patch review versions: +Python 3.5 -Python 3.3

[issue19629] support.rmtree fails on symlinks under Windows

2014-07-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 28bb1aa9ca3d by Victor Stinner in branch '3.4': Issue #19629: Fix support.rmtree(), use os.lstat() to check if the file is a http://hg.python.org/cpython/rev/28bb1aa9ca3d New changeset e405bcbf761c by Victor Stinner in branch 'default': Merge Python

[issue22022] test_pathlib: shutil.rmtree() sporadic failures on Windows

2014-07-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1db5cde4958f by Victor Stinner in branch '3.4': Issue #19811, #22022: test_pathlib uses support.rmtree() instead of http://hg.python.org/cpython/rev/1db5cde4958f New changeset e405bcbf761c by Victor Stinner in branch 'default': Merge Python 3.4 http

[issue19811] test_pathlib: "The directory is not empty" error on os.rmdir()

2014-07-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1db5cde4958f by Victor Stinner in branch '3.4': Issue #19811, #22022: test_pathlib uses support.rmtree() instead of http://hg.python.org/cpython/rev/1db5cde4958f New changeset e405bcbf761c by Victor Stinner in branch 'default': Merge Python 3.4 http

[issue22022] test_pathlib: shutil.rmtree() sporadic failures on Windows

2014-07-21 Thread Zachary Ware
Zachary Ware added the comment: This looks like a duplicate of #19811, which was closed as a duplicate of #19629. -- nosy: +zach.ware resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> support.rmtree fails on symlinks under Windows

[issue22003] BytesIO copy-on-write

2014-07-21 Thread David Wilson
David Wilson added the comment: Stefan, Thanks for digging here. As much as I'd love to follow this interpretation, it simply doesn't match existing buffer implementations, including within the standard library. For example, mmap.mmap(..., flags=mmap.MAP_SHARED, prot=mmap.PROT_READ) will pro

[issue21822] KeyboardInterrupt during Thread.join hangs that Thread

2014-07-21 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue22005] datetime.__setstate__ fails decoding python2 pickle

2014-07-21 Thread Tim Peters
Tim Peters added the comment: @eddygeek, I'd still call something so unintuitive "a bug" - it's hard to believe this is the _intended_ way to get it to work. So I'd keep this open until someone with better knowledge of intent chimes in. -- ___ Pyth

[issue22003] BytesIO copy-on-write

2014-07-21 Thread Stefan Krah
Stefan Krah added the comment: The original wording in the PEP is this: readonly an integer variable to hold whether or not the memory is readonly. 1 means the memory is readonly, zero means the memory is writable. To me this means that a hypothetical compiler that could figur

[issue22022] test_pathlib: shutil.rmtree() sporadic failures on Windows

2014-07-21 Thread Ned Batchelder
Ned Batchelder added the comment: FWIW, every use of rmtree I have on Windows occasionally fails this way, parallelism seems not to be a factor. -- nosy: +nedbat ___ Python tracker

[issue22022] test_pathlib: shutil.rmtree() sporadic failures on Windows

2014-07-21 Thread STINNER Victor
New submission from STINNER Victor: Sometimes, test_pathlib fails because shutil.rmtree() cannot remove a test directory. Example: http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/4833/steps/test/logs/stdio

[issue22003] BytesIO copy-on-write

2014-07-21 Thread Stefan Krah
Stefan Krah added the comment: I think checking for a readonly view is fine. The protocol is this: 1) Use the PyBUF_WRITABLE flag in the request. Then the provider must either have a writable buffer or else deny the request entirely. 2) Omit the PyBUF_WRITABLE flag in the request. Th

[issue22013] Add at least minimal support for thread groups

2014-07-21 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue22003] BytesIO copy-on-write

2014-07-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: As for whether the "checking for a readonly view" approach is broken, I don't know: that part of the buffer API is still mysterious to me. Stefan, would you have some insight? -- nosy: +skrah ___ Python tracker

[issue22003] BytesIO copy-on-write

2014-07-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Pretty sure this approach is broken. What about the alternative approach of > specializing for Bytes? That would certainly sound good enough, to optimize the common case. Also, it would be nice if you could add some tests to the patch (e.g. to stress the by

[issue22018] Add a new signal.set_wakeup_socket() function

2014-07-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7a1737033a23 by Victor Stinner in branch 'default': Issue #22018: Hum, set_wakeup_fd() still raises ValueError on Windows http://hg.python.org/cpython/rev/7a1737033a23 -- ___ Python tracker

[issue22018] Add a new signal.set_wakeup_socket() function

2014-07-21 Thread STINNER Victor
Changes by STINNER Victor : -- title: signal: accept socket for signal.set_wakeup_fd() -> Add a new signal.set_wakeup_socket() function ___ Python tracker ___ __

[issue22005] datetime.__setstate__ fails decoding python2 pickle

2014-07-21 Thread Edward O
Edward O added the comment: The code works when using encoding='bytes'. Thanks Tim for the suggestion. So this is not a bug, but is there any sense in having encoding='ASCII' by default in pickle ? -- ___ Python tracker

[issue22018] signal: accept socket for signal.set_wakeup_fd()

2014-07-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 42cf963e3ab1 by Victor Stinner in branch 'default': Issue #22018: signal.set_wakeup_fd() now raises an OSError instead of a http://hg.python.org/cpython/rev/42cf963e3ab1 -- ___ Python tracker

[issue22002] Make full use of test discovery in test subpackages

2014-07-21 Thread Zachary Ware
Zachary Ware added the comment: Victor, could you give me a yay or nay on the test_asyncio change? -- nosy: +haypo ___ Python tracker ___

[issue22002] Make full use of test discovery in test subpackages

2014-07-21 Thread Zachary Ware
Zachary Ware added the comment: Thank you, Brett and David. @Mark: This issue is a continuation of the #16748 effort (#16748 is a meta-issue for this kind of thing) and unrelated to #10572 (though this will add a feature to test.support that can be useful for the scattered test packages). --

[issue16748] Make CPython test package discoverable

2014-07-21 Thread Zachary Ware
Changes by Zachary Ware : -- dependencies: +Make full use of test discovery in test subpackages versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ _

[issue22018] signal: accept socket for signal.set_wakeup_fd()

2014-07-21 Thread STINNER Victor
STINNER Victor added the comment: > My worry is that somehow a program has a fd that refers to both a file and a > socket. But I agree that changing the API is not a great option either. Well, when I read again my patch and played with it, I saw that it has different issues: - a Windows socke

[issue22018] signal: accept socket for signal.set_wakeup_fd()

2014-07-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6b536f0516ea by Victor Stinner in branch 'default': Issue #22018: Add _testcapi.raise_signal() http://hg.python.org/cpython/rev/6b536f0516ea -- nosy: +python-dev ___ Python tracker

[issue21901] test_selectors.PollSelectorTestCase.test_above_fd_setsize reported killed by shell

2014-07-21 Thread Charles-François Natali
Charles-François Natali added the comment: Alright, I'll cap the value then (no need to expose FD_SETSIZE). -- ___ Python tracker ___

[issue22021] shutil.make_archive() root_dir do not work

2014-07-21 Thread R. David Murray
R. David Murray added the comment: I believe this is working as designed, although the documentation does not make that clear. root dir is the root directory of the *created archive*, it has nothing to do with where the archive file itself is placed. -- assignee: -> docs@python compo

[issue21901] test_selectors.PollSelectorTestCase.test_above_fd_setsize reported killed by shell

2014-07-21 Thread R. David Murray
R. David Murray added the comment: That is the only test that fails for lack of memory. And it's not the buildbot, it's my development virtual machine. Having the test suite be killed when I do a full test run is...rather annoying. -- ___ Python t

[issue8706] accept keyword arguments on most base type methods and builtins

2014-07-21 Thread Julien Palard
Julien Palard added the comment: I think for some builtins it may be usefull to have keyword arguments, in the case they take more than one parameter. Typically, it's impossible to write: self.drop_elements(partial(isinstance, type(lxml.etree.Comment))) Because isinstance take its argumen

[issue22021] shutil.make_archive() root_dir do not work

2014-07-21 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks for the report, do you want to provide a patch? (You can check the devguide if you need more information.) -- keywords: +easy nosy: +ezio.melotti, hynek, tarek stage: -> needs patch ___ Python tracker

[issue22021] shutil.make_archive() root_dir do not work

2014-07-21 Thread Weinan Li
New submission from Weinan Li: set root_dir do not work output: = Python 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:25:23) [MSC v.1600 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information. >>> import shutil

[issue17695] _sysconfigdata broken with universal builds on OSX

2014-07-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: Sure... The issue is still present. To demonstrate the problem: arch -i386 ./python.exe Python 3.5.0a0 (default:9b450b19aa11+, Jul 21 2014, 10:03:38) [GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin Type "help", "copyright", "credits" or "licen

[issue22012] struct.unpack('?', '\x02') returns (False,) on Mac OSX

2014-07-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: The last draf of ISO C '11: . This says that _Bool is large enough to store 0 and 1, and that conversion of any integer data to _Bool results in 0 or 1. If I interpret the document correctly there i

[issue22012] struct.unpack('?', '\x02') returns (False,) on Mac OSX

2014-07-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: I just confirmed that clang only uses the LSB for _Bool values by looking at the assembly generated for the following code: #include #include int main(void) { _Bool x; *(unsigned char*)&x = 42; printf("%d\n", (int)x); return

[issue16778] Logger.findCaller needs to be smarter

2014-07-21 Thread Vinay Sajip
Vinay Sajip added the comment: > Maybe simply having a class list Thanks, I'm aware of this approach and have considered it. The current patch's skipCallers API seems better than exposing an internal list, but I have held off implementing this in the hope that an approach based on frame annota

[issue21901] test_selectors.PollSelectorTestCase.test_above_fd_setsize reported killed by shell

2014-07-21 Thread Charles-François Natali
Charles-François Natali added the comment: >> rdmurray@pydev:~/python/p34>python -c 'import resource; >> print(resource.getrlimit(resource.RLIMIT_NOFILE))' >> (1024L, 1048576L) > > Oh, 1 million files is much bigger than 4 thousand files (4096). > > The test should only test FD_SETSIZE + 10 file