[issue22085] Drop support of Tk 8.3

2014-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I forgot about this difference. Of course we can convert input arguments to match new syntax, but trace vinfo and trace info variable return different results: % trace add variable foo {read write} {tracer foo} % trace info variable foo {{read write}

[issue11429] ctypes is highly eclectic in its raw-memory support

2014-07-31 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11429 ___ ___ Python-bugs-list

[issue21580] PhotoImage(data=...) apparently has to be UTF-8 or Base-64 encoded

2014-07-31 Thread Serhiy Storchaka
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/issue21580 ___

[issue22085] Drop support of Tk 8.3

2014-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yet one incompatibility is that callbacks set but old command are called with last argument one of 'r', 'w' or 'u', but callbacks set but old command are called with last argument one of 'read', 'write' or 'unset' (or 'array'). --

[issue21308] PEP 466: backport ssl changes

2014-07-31 Thread Arnaud Fontaine
Arnaud Fontaine added the comment: Would it be possible to also backport the changes to httplib.py to support TLS SNI as many libraries (including setuptools) relies on this module to download files and some servers reject clients not supporting TLS SNI (such as cloud.github.com)? I have

[issue11955] 3.3 : test_argparse.py fails 'make test'

2014-07-31 Thread Mark Lawrence
Mark Lawrence added the comment: @Ezio will you be following this up, specifically msg193970 ? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11955 ___

[issue21308] PEP 466: backport ssl changes

2014-07-31 Thread Nick Coghlan
Nick Coghlan added the comment: Hi Arnaud, such a change is out of scope for PEP 466. To minimise the scale of the changes in a maintenance release, it was deliberately limited to provide the core infrastructure, so at least third party libraries like requests can support SNI in Python 2,

[issue22113] memoryview and struct.pack_into

2014-07-31 Thread Clayton Stangeland
New submission from Clayton Stangeland: I expect struct.pack_into to work for a memoryview. Currently struct.pack_into throws an exception. import struct buf = bytearray(10) struct.pack_into(B, buf, 0, 99) buf[0] 99 view = memoryview(buf) view.readonly False struct.pack_into(B, view, 0,

[issue22113] memoryview and struct.pack_into

2014-07-31 Thread Stefan Krah
Stefan Krah added the comment: This works in Python 3.3+. It is a bug in 2.7, so we have to wait for someone motivated enough to work on an outdated Python version. -- components: +Interpreter Core nosy: +skrah stage: - needs patch ___ Python

[issue15986] memoryview: expose 'buf' attribute

2014-07-31 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15986 ___ ___ Python-bugs-list

[issue22112] '_UnixSelectorEventLoop' object has no attribute 'create_task'

2014-07-31 Thread STINNER Victor
STINNER Victor added the comment: This has been fixed in 3.4.2, but shows up in the 3.4.1 documentation. Well, I didn't want to change Python 3.4.1 documentation, but it looks like https://docs.python.org/3.4/ is updated after each commit into the 3.4 branch. For example, new asyncio

[issue15986] memoryview: expose 'buf' attribute

2014-07-31 Thread Josh Rosenberg
New submission from Josh Rosenberg: To do what? -- nosy: +josh.rosenberg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15986 ___ ___

[issue22043] Use a monotonic clock to compute timeouts

2014-07-31 Thread STINNER Victor
STINNER Victor added the comment: pymonotonic.patch is large and difficult to review. I prefer to split it into two parts: - pytimespec.patch: Change pytime.h to use _PyTimeSpec structure (nanosecond resolution) instead of _PyTime_timeval structure (microsecond resolution) -

[issue22043] Use a monotonic clock to compute timeouts

2014-07-31 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Added file: http://bugs.python.org/file36177/pymonotonic-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22043 ___

[issue12312] is ok

2014-07-31 Thread Missy Gomrz
Missy Gomrz added the comment: Re: is ol missy orr -- nosy: +Missy.Gomrz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12312 ___ ___

[issue22043] Use a monotonic clock to compute timeouts

2014-07-31 Thread STINNER Victor
STINNER Victor added the comment: pytimespec.patch removes *private* functions which were exposed in the stable ABI: - _PyTime_gettimeofday() - _PyTime_gettimeofday_info() It also removes private macros: - _PyTime_ADD_SECONDS() - _PyTime_INTERVAL() In pymonotonic.patch, I reused the same

[issue22043] Use a monotonic clock to compute timeouts

2014-07-31 Thread STINNER Victor
STINNER Victor added the comment: Oh, pymonotonic-2.patch didn't get its review link because it depends on pytimespec.patch which is not merged yet. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22043

[issue15986] memoryview: expose 'buf' attribute

2014-07-31 Thread Martin Panter
Martin Panter added the comment: This issue was linked from https://mail.python.org/pipermail/python-dev/2012-September/121781.html. I was looking for ways to pass read-only memory views into “ctypes” without copying memory, and came across that thread. Assuming this “buf” attribute points

[issue11427] ctypes from_buffer no longer accepts bytes

2014-07-31 Thread Martin Panter
Martin Panter added the comment: For the record, I have been (ab?)using the “c_char_p” type to get the address of immutable byte strings without copying memory: from ctypes import * data = b123\x00abc pubyte = cast(c_char_p(data), POINTER(c_ubyte)) address = addressof(pubyte.contents)

[issue17620] Python interactive console doesn't use sys.stdin for input

2014-07-31 Thread Drekin
Drekin added the comment: I looked to the sourcecode and found the following. First, the codepath of how interactive loop gets its input follows: Python/pythonrun.c:PyRun_InteractiveLoopFlags Python/pythonrun.c:PyRun_InteractiveOneObject Python/pythonrun.c:PyParser_ASTFromFileObject

[issue17620] Python interactive console doesn't use sys.stdin for input

2014-07-31 Thread Drekin
Drekin added the comment: Sorry for formating in the previous message. Repeating… I looked to the sourcecode and found the following. First, the codepath of how interactive loop gets its input follows: Python/pythonrun.c:PyRun_InteractiveLoopFlags Python/pythonrun.c:PyRun_InteractiveOneObject

[issue22114] You cannot call communicate() safely after receiving EAGAIN

2014-07-31 Thread Amrith Kumar
New submission from Amrith Kumar: Environment: - Linux (Ubuntu 14.04 LTS, x64) running Python 2.7. - Code uses eventlet.green.subprocess Code establishes subprocess as: subprocess.Popen(command, stdin=subprocess.PIPE, stdout=subprocess.PIPE,

[issue22114] You cannot call communicate() safely after receiving EAGAIN

2014-07-31 Thread Amrith Kumar
Amrith Kumar added the comment: I'll supply a patch for this proposed change. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22114 ___ ___

[issue22114] You cannot call communicate() safely after receiving EAGAIN

2014-07-31 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22114 ___ ___ Python-bugs-list

[issue22108] python c api wchar_t*/char* passing contradiction

2014-07-31 Thread Martin v . Löwis
Martin v. Löwis added the comment: Jonas, why do you say that? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22108 ___ ___ Python-bugs-list

[issue17371] Mismatch between Python 3.3 build environment and distutils compiler support

2014-07-31 Thread Martin v . Löwis
Martin v. Löwis added the comment: Installing VS 2010 express was indeed the right solution. -- resolution: - not a bug status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17371

[issue18597] On Windows sys.stdin.readline() doesn't handle Ctrl-C properly

2014-07-31 Thread Drekin
Drekin added the comment: Shouldn't there be a Ctrl-C check in Modules/_io/fileio.c:fileio_read* functions? I think some of these are called by standard sys.stdin.readline(). -- ___ Python tracker rep...@bugs.python.org

[issue22101] collections.abc.Set doesn't provide copy() method

2014-07-31 Thread Akira Li
Akira Li added the comment: I don't think this is needed nor do I think that it is a good idea to have a copy() method in the ABCs because they know so little about their concrete underlying class (perhaps the backing store in the filesystem or a database). Besides, a user already has

[issue22111] Improve imaplib testsuite.

2014-07-31 Thread Milan Oberkirch
Milan Oberkirch added the comment: AntoinePitrou: Thanks for the review! I made the suggested changes and could not resist refactoring the hole thing (since I plan to spend some time on that file I wanted it to be readable and pep conform). -- Added file:

[issue22114] You cannot call communicate() safely after receiving EAGAIN

2014-07-31 Thread R. David Murray
R. David Murray added the comment: I believe our recent thinking in recent times has been to handle EAGAIN in the higher level interfaces such as subprocess, not expose them to the caller. Does python3 have the same problem? I isn't clear that you have provided enough information to

[issue22115] Add new methods to trace Tkinter variables

2014-07-31 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Command used to monitor Tcl variable access (trace variable, trace vdelete, trace vinfo) are deprecated and will likely be removed in a future version of Tcl. Replacements (trace add variable, trace remove variable, trace info variable) use slightly

[issue22108] python c api wchar_t*/char* passing contradiction

2014-07-31 Thread Zachary Ware
Zachary Ware added the comment: See also issue20466 (which has a patch for this, but I cannot speak for its effectiveness). I'd be in favor of closing that issue and this one as duplicates of #18395, and noting in #18395 that the embedding example must be updated before that issue is closed.

[issue22085] Drop support of Tk 8.3

2014-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I close this issue because don't want to change topic yet once (and one feature per issue). Separate issue22115 was opened for adding new trace methods. -- resolution: - fixed stage: needs patch - resolved status: open - closed

[issue15381] Optimize BytesIO to do less reallocations when written, similarly to StringIO

2014-07-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +benjamin.peterson, dw, hynek, kmike, python-dev, scoder, skrah, stutzbach ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15381 ___

[issue15986] memoryview: expose 'buf' attribute

2014-07-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: ctypes could grow a way to access the Py_buffer API instead. -- nosy: +amaury.forgeotdarc, belopolsky, meador.inge, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15986

[issue15381] Optimize BytesIO to do less reallocations when written, similarly to StringIO

2014-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Synchronized with tip. Unfortunately there are no common points with recent issue22003 changes so they should be reverted (except tests). -- versions: +Python 3.5 -Python 3.4 Added file: http://bugs.python.org/file36180/bytesio_resized_bytes-4.patch

[issue22114] You cannot call communicate() safely after receiving EAGAIN

2014-07-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: This sounds like an issue specific to eventlet. There's no reason for the standard communicate() call to raise EAGAIN, since the created pipes are blocking. That said, if the fix is that trivial, I wouldn't be opposed to see it enter the stdlib (assuming it

[issue22114] You cannot call communicate() safely after receiving EAGAIN

2014-07-31 Thread STINNER Victor
STINNER Victor added the comment: Instead of just catching EAGAIN, you can catch BlockingIOError. In Python 2.7, it means catching: (EAGAIN, EALREADY, EINPROGRESS, EWOULDBLOCK) errors. I made a similar change in asyncore recently: --- changeset: 91833:d422062d7d36 branch: 2.7 parent:

[issue15986] memoryview: expose 'buf' attribute

2014-07-31 Thread David Beazley
David Beazley added the comment: There are other kinds of libraries that might want to access the .buf attribute. For example, the llvmpy extension. Exposing it would be useful. -- ___ Python tracker rep...@bugs.python.org

[issue22111] Improve imaplib testsuite.

2014-07-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you, Milan. The latest patch looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22111 ___

[issue15986] memoryview: expose 'buf' attribute

2014-07-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ha, llvmpy... Yes, it could be useful. It's dangerous too, especially since the buffer isn't necessarily contiguous. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15986

[issue15986] memoryview: expose 'buf' attribute

2014-07-31 Thread David Beazley
David Beazley added the comment: Well, a lot of things in this big bad world are dangerous. Don't see how this is any more dangerous than all of the peril that tools like ctypes and llvmpy already provide. -- ___ Python tracker

[issue15986] memoryview: expose 'buf' attribute

2014-07-31 Thread David Beazley
David Beazley added the comment: One of the other goals of memoryviews is to make memory access less hacky. To that end, it would be nice to have the .buf attribute available given that all of the other attributes are already there. I don't see why people should need to do some even more

[issue15986] memoryview: expose 'buf' attribute

2014-07-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 31/07/2014 11:24, David Beazley a écrit : Well, a lot of things in this big bad world are dangerous. Don't see how this is any more dangerous than all of the peril that tools like ctypes and llvmpy already provide. The point of the buffer API is to make

[issue22114] You cannot call communicate() safely after receiving EAGAIN

2014-07-31 Thread Amrith Kumar
Amrith Kumar added the comment: I see three comments, one from r.david.murray, one from haypo and one from pitrou. I'll try and address all three. r.david.murray: The code in question is in https://github.com/openstack/oslo-incubator/blob/master/openstack/common/processutils.py#L177-L189

[issue22114] You cannot call communicate() safely after receiving EAGAIN

2014-07-31 Thread STINNER Victor
STINNER Victor added the comment: However, I submit to you that this is NOT an eventlet issue. (...) capture all exceptions that would point a user to retry (such as EAGAIN and EINTR) and mask them and return some EFATAL. You cannot get EAGAIN on a blocking file descriptor and subprocess

[issue11427] ctypes from_buffer no longer accepts bytes

2014-07-31 Thread eryksun
eryksun added the comment: cast calls ctypes._cast(obj, obj, typ). _cast is a ctypes function pointer defined as follows: _cast = PYFUNCTYPE(py_object, c_void_p, py_object, py_object)(_cast_addr) Since cast makes an FFI call that converts the first arg to c_void_p,

[issue22100] Use $HOSTPYTHON when determining candidate interpreter for $PYTHON_FOR_BUILD.

2014-07-31 Thread Shiz
Shiz added the comment: After some further investigation it seems the which-clause fails when given a relative path. Since we should expect $HOSTPYTHON to be present in the first place, I modified the patch a bit to special-case the $HOSTPYTHON check, and fall back on the other interpreters

[issue22114] You cannot call communicate() safely after receiving an exception (EINTR or EAGAIN)

2014-07-31 Thread Amrith Kumar
Changes by Amrith Kumar amr...@tesora.com: -- title: You cannot call communicate() safely after receiving EAGAIN - You cannot call communicate() safely after receiving an exception (EINTR or EAGAIN) ___ Python tracker rep...@bugs.python.org

[issue22114] You cannot call communicate() safely after receiving an exception (EINTR or EAGAIN)

2014-07-31 Thread Amrith Kumar
Amrith Kumar added the comment: haypo; no argument from me. I just updated the description to make it more exact. I may have received EINTR or EAGAIN. In either event, I need to debug some more and try and do a clean repro and then figure out a proper fix. In the meanwhile, I proposed a fix

[issue18402] Finding perl64

2014-07-31 Thread Steve Dower
Steve Dower added the comment: At one point the version of OpenSSL on svn.python.org did not have the correct makefiles for a 64-bit Windows build, but this was resolved. You also don't need 64-bit Perl to generate these files, and the file has been renamed to prepare_ssl.py and appears to

[issue22114] You cannot call communicate() safely after receiving an exception (EINTR or EAGAIN)

2014-07-31 Thread R. David Murray
R. David Murray added the comment: By the definition of the (blocking) communicate API, communicate can only be called once (it feeds in all the input, and reads all the output). -- ___ Python tracker rep...@bugs.python.org

[issue22114] You cannot call communicate() safely after receiving an exception (EINTR or EAGAIN)

2014-07-31 Thread Amrith Kumar
Amrith Kumar added the comment: r.david.murray, I guess the issue we have is that something (hypothesis: eventlet) is causing the blocking API to communicate() to throw an EAGAIN. This (https://bugs.launchpad.net/nova/+bug/1271331) is the bug that was fixed a while ago in OpenStack that

[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-07-31 Thread Zachary Ware
Zachary Ware added the comment: The patch applies and compiles cleanly, and I finally tracked down what was causing the errors I reported yesterday: os_utime_impl was changed to use Py_RETURN_NONE instead of just setting return_value = Py_None, so Windows skipped the exit routine and left an

[issue22112] '_UnixSelectorEventLoop' object has no attribute 'create_task'

2014-07-31 Thread Guido van Rossum
Guido van Rossum added the comment: asyncio has an explicit exemption from the general rule that bugfixes should not add new features. This is because of the provisional status of the PEP. We'll stop doing this once 3.5 is out. I don't know what's up with the online docs. On Thu, Jul 31, 2014

[issue22101] collections.abc.Set doesn't provide copy() method

2014-07-31 Thread Guido van Rossum
Guido van Rossum added the comment: You need to learn when to give up. :-) I wasn't the one who added a copy() method to other containers. I personally despise almost all uses of copying (including the entire copy module, both deep and shallow copy functionality). I much prefer to write

[issue22112] '_UnixSelectorEventLoop' object has no attribute 'create_task'

2014-07-31 Thread Daniel Greenfeld
Daniel Greenfeld added the comment: First, if there is documentation that says, 3.4.1, doesn't it make sense that the documentation should only be for 3.4.1? Which means that this create_task documentation should be reverted in the 3.4.1 documentation to match the 3.4.1 specification. Second

[issue22116] Weak reference support for C function objects

2014-07-31 Thread Antoine Pitrou
New submission from Antoine Pitrou: Currently, it is not possible to take a weakref to a PyCFunction object. However, those objects already have full GC support, so it wouldn't be silly to add weakref support to them. (this came in the context of numba, which generates such C functions

[issue22110] enable extra compilation warnings

2014-07-31 Thread Charles-François Natali
Charles-François Natali added the comment: Antoine Pitrou added the comment: Enabling the warnings may be a good incitation for other people to fix them ;) That was my intention... Can I push it, and let warnings be fixed on a case-by-case basis? --

[issue15862] IDLE not working when due to wrong Hard Drive point of os.path.expanduser

2014-07-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15862 ___ ___

[issue19923] OSError: [Errno 512] Unknown error 512 in test_multiprocessing

2014-07-31 Thread Charles-François Natali
Charles-François Natali added the comment: Closing, since it's likely a kernel bug. -- resolution: - third party stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19923

[issue19062] problems with pyshell to get userdir

2014-07-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- components: +Windows stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19062 ___

[issue15152] test_subprocess failures on awfully slow builtbots

2014-07-31 Thread Charles-François Natali
Charles-François Natali added the comment: Closing, I haven't seen this in a while. -- resolution: - out of date stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15152

[issue18142] Tests fail on Mageia Linux Cauldron x86-64 with some configure flags

2014-07-31 Thread Mark Lawrence
Mark Lawrence added the comment: Is there anything we can do here, do we close it as out of date or what? -- nosy: +BreamoreBoy type: - behavior versions: +Python 3.4, Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org

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

2014-07-31 Thread Lita Cho
Lita Cho added the comment: Hey! So I have been investigating this bug, but I wanted to know is the issue the fact that korka wants to create multiple turtles or do you really want to use multiple threads with Turtle? I feel like this crash is due to Tkinter not being thread safe and I am not

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

2014-07-31 Thread Lita Cho
Lita Cho added the comment: I also want to note that you can create duplicate turtles by using clone, and I am not sure why you would use multiple inheritance to draw more than 1 turtle running around. I didn't think turtle was meant to be used this way. In order to draw multiple turtles, I

[issue17085] test_socket crashes the whole test suite

2014-07-31 Thread Mark Lawrence
Mark Lawrence added the comment: Is this still an issue with Python 2.7.8? (I don't have 2.7 or linux to test on) -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17085

[issue20540] Python 3.3/3.4 regression in multiprocessing manager ?

2014-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What would you say about multi_nagle_simplify.patch, Antoine? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20540 ___

[issue21860] Correct FileIO docstrings

2014-07-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: docs@python - haypo stage: needs patch - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21860 ___

[issue17923] test glob with trailing slash fail

2014-07-31 Thread Mark Lawrence
Mark Lawrence added the comment: Couldn't part of the patch be simplified to:- if basename or os.path.isdir(dirname): yield pathname or have I misread it? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org

[issue18004] test_list.test_overflow crashes Win64

2014-07-31 Thread Mark Lawrence
Mark Lawrence added the comment: What if anything needs to be done here? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18004 ___

[issue18188] ERROR: test_no_optimize_flag on Mageia Linux Cauldron x86-64 with certain configure flags

2014-07-31 Thread Mark Lawrence
Mark Lawrence added the comment: Is this still a problem with later versions of Python on this platform? -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18188

[issue17085] test_socket crashes the whole test suite

2014-07-31 Thread Charles-François Natali
Charles-François Natali added the comment: Thanks for the reminder Mark. Yes, it is probably still an issue with the latest 2.7 release. There were actually two issues: - send send()/sendall() call didn't block because the test doesn't write enough data: we have since added a SOCK_MAX_SIZE

[issue22108] python c api wchar_t*/char* passing contradiction

2014-07-31 Thread Jonas Jelten
Jonas Jelten added the comment: Martin, i think the most intuitive and easiest way for working with strings in C are just char arrays. Starting with the main() argv being char*, probably most programmers just go with char* and all the encoding just works. This is because contact with encoding

[issue22110] enable extra compilation warnings

2014-07-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 31/07/2014 13:51, Charles-François Natali a écrit : Enabling the warnings may be a good incitation for other people to fix them ;) That was my intention... Can I push it, and let warnings be fixed on a case-by-case basis? +1 from me. --

[issue22116] Weak reference support for C function objects

2014-07-31 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22116 ___ ___ Python-bugs-list mailing

[issue21859] Add Python implementation of FileIO

2014-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Next iteration of the patch addressed Victor's and Akira's comments. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21859 ___

[issue21859] Add Python implementation of FileIO

2014-07-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file36183/pyio_fileio_5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21859 ___

[issue11429] ctypes is highly eclectic in its raw-memory support

2014-07-31 Thread eryksun
eryksun added the comment: Extending byref to support bytes and str objects sounds reasonable. Here's another workaround to pass a bytes object with an offset: from ctypes import * from ctypes.util import find_library class offset: def __init__(self, arg, offset):

[issue22111] Improve imaplib testsuite.

2014-07-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6b2cafab7a9f by Antoine Pitrou in branch 'default': Issue #22111: Assorted cleanups in test_imaplib. Patch by Milan Oberkirch. http://hg.python.org/cpython/rev/6b2cafab7a9f -- nosy: +python-dev ___

[issue22111] Improve imaplib testsuite.

2014-07-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is now pushed. -- resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22111 ___

[issue20540] Python 3.3/3.4 regression in multiprocessing manager ?

2014-07-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 20fd13242a45 by Antoine Pitrou in branch 'default': Simplify code in multiprocessing.Connection.send_bytes(). http://hg.python.org/cpython/rev/20fd13242a45 -- ___ Python tracker rep...@bugs.python.org

[issue11271] concurrent.futures.ProcessPoolExecutor.map() doesn't batch function arguments by chunks

2014-07-31 Thread Dan O'Reilly
Dan O'Reilly added the comment: I've attached an updated patch based on your review comments; there's now a unit test with a non-default chunksize, the chunking algorithm is more readable, and the same code path is used no matter what chunksize is provided. I've also updated the test script

[issue11271] concurrent.futures.ProcessPoolExecutor.map() doesn't batch function arguments by chunks

2014-07-31 Thread Dan O'Reilly
Changes by Dan O'Reilly oreil...@gmail.com: Removed file: http://bugs.python.org/file36065/test_mult.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11271 ___

[issue11271] concurrent.futures.ProcessPoolExecutor.map() doesn't batch function arguments by chunks

2014-07-31 Thread Dan O'Reilly
Changes by Dan O'Reilly oreil...@gmail.com: Added file: http://bugs.python.org/file36185/test_mult.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11271 ___

[issue22117] Rewrite pytime.h to work on nanoseconds

2014-07-31 Thread STINNER Victor
New submission from STINNER Victor: To prepare Python to add support of monotonic clock in pytime.h, I propose to rewrite pytime.h to use a new _PyTimeSpec structure which has a resolution of 1 nanosecond on only work on integers. Currently, pytime.h uses a _PyTime_timeval structure which has

[issue22117] Rewrite pytime.h to work on nanoseconds

2014-07-31 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- type: - enhancement versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22117 ___

[issue22117] Rewrite pytime.h to work on nanoseconds

2014-07-31 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +belopolsky, tim.peters ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22117 ___ ___

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2014-07-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Why not simply use $SHELL? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16255 ___ ___

[issue18651] test failures on KFreeBSD

2014-07-31 Thread Mark Lawrence
Mark Lawrence added the comment: A different patch is still needed for 3.4. -- nosy: +BreamoreBoy type: - behavior versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18651

[issue11429] ctypes is highly eclectic in its raw-memory support

2014-07-31 Thread Martin Panter
Martin Panter added the comment: Interesting that “cast” accepts a byte string. If this is intended behaviour, it would be good to document that. Currently it says it takes “an object that can be interpreted as a pointer”. -- ___ Python tracker

[issue22043] Use a monotonic clock to compute timeouts

2014-07-31 Thread STINNER Victor
STINNER Victor added the comment: pytimespec.patch become too large, I splitted this patch into a new issue: issue #22117. If this issue is rejected, I will rewrite pymonotonic-2.patch to use the _PyTime_timeval structure. -- ___ Python tracker

[issue7897] Support parametrized tests in unittest

2014-07-31 Thread Mark Lawrence
Mark Lawrence added the comment: Is there any possibility of getting this into 3.5? If it helps I've always got time on my hands so if nothing else I could do testing on Windows 8.1. -- nosy: +BreamoreBoy, zach.ware versions: +Python 3.5 -Python 3.4

[issue7944] Use the 'with' statement in conjunction with 'open' throughout test modules

2014-07-31 Thread Mark Lawrence
Mark Lawrence added the comment: Following on from msg185817 I'd suggest this is closed. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7944 ___

[issue20056] Got deprecation warning when running test_shutil.py on Windows NT 6

2014-07-31 Thread Mark Lawrence
Mark Lawrence added the comment: The deprecation warnings are coming from the various os calls so are nothing to do with test_shutil. I think this can be closed as not a bug. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org

[issue7944] Use the 'with' statement in conjunction with 'open' throughout test modules

2014-07-31 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: -brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7944 ___ ___ Python-bugs-list

[issue7897] Support parametrized tests in unittest

2014-07-31 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: -brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7897 ___ ___ Python-bugs-list

[issue22117] Rewrite pytime.h to work on nanoseconds

2014-07-31 Thread STINNER Victor
STINNER Victor added the comment: Oh, I forgot to mention that the patch of the issue #22043 also changes _PyTimeSpec_get_time() to use clock_gettime(CLOCK_REALTIME) which has a resolution of 1 nanosecond. _PyTimeSpec_get_time() already uses GetSystemTimeAsFileTime() which has a resolution

[issue22117] Rewrite pytime.h to work on nanoseconds

2014-07-31 Thread STINNER Victor
STINNER Victor added the comment: The effective* resolution -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22117 ___ ___ Python-bugs-list

[issue22108] python c api wchar_t*/char* passing contradiction

2014-07-31 Thread STINNER Victor
STINNER Victor added the comment: What I'd really like to see in CPython is that the internal storage (and the way it's exposed in the C-API) is just raw bytes (= char*). Python is portable, we care of Windows. On Windows, wchar_t* is the native type for strings (ex: command line,

  1   2   >