[issue17700] Update Curses HOWTO for 3.4

2013-04-29 Thread STINNER Victor
STINNER Victor added the comment: window.get_wch() and curses.unget_wch(ch) should be used instead of window.getch() and curses.ungetch(ch), when available. They work much better with non-ASCII characters. -- nosy: +haypo ___ Python tracker

[issue17870] Hard to create python longs from arbitrary C integers

2013-04-29 Thread STINNER Victor
STINNER Victor added the comment: "PyLong_FromVoidPtr works for uintptr_t, but not intptr_t." Ok correct. You should use something like: PyObject* PyLong_FromIntptr_t(intptr_t value) { if (sizeof(intptr_t) == sizeof(long)) return PyLong_FromLong(value); else { assert(siz

[issue17870] Python does not provide a PyLong_FromIntptr_t() function

2013-04-29 Thread STINNER Victor
Changes by STINNER Victor : -- title: Hard to create python longs from arbitrary C integers -> Python does not provide a PyLong_FromIntptr_t() function ___ Python tracker ___ __

[issue17870] Python does not provide a PyLong_FromIntptr_t() function

2013-04-29 Thread Devin Jeanpierre
Devin Jeanpierre added the comment: With regards to the title change, I would prefer a FromIntMax_t (and FromUintMax_t) to a FromIntPtr_t. The former covers every use case of the latter, and more. -- ___ Python tracker

[issue17870] Python does not provide a PyLong_FromIntptr_t() function

2013-04-29 Thread Devin Jeanpierre
Devin Jeanpierre added the comment: Isn't it possible for a >64-bit architecture to have intptr_t be wider than long long? As for my use-case, I am wrapping the C-API for Rust. Rust can call and be called by C (and therefore Python), but a Rust "int" is a C "intptr_t", and a Rust "uint" is a

[issue17864] IDLE fails to launch when it cannot create .idlerc directory

2013-04-29 Thread Ned Deily
Ned Deily added the comment: Ah, yes, it is a duplicate, thanks. Let's move any further discussion to Issue8231. -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed title: IDLE won't run -> IDLE fails to launch when it cannot create .idlerc directory ___

[issue8231] Unable to run IDLE without write-access to home directory

2013-04-29 Thread Ned Deily
Ned Deily added the comment: Issue17864 is a duplicate of this. Also, note the error reported here is a result of IDLE not having write access in the user's home directory and thus cannot create the .idlerc directory. IDLE seems to handle more gracefully the case of .idlerc existing but not

[issue17870] Python does not provide PyLong_FromIntMax_t() or PyLong_FromUintMax_t() function

2013-04-29 Thread STINNER Victor
Changes by STINNER Victor : -- title: Python does not provide a PyLong_FromIntptr_t() function -> Python does not provide PyLong_FromIntMax_t() or PyLong_FromUintMax_t() function ___ Python tracker ___

[issue17873] _ctypes/libffi missing bits for aarch64 support

2013-04-29 Thread Andreas Schwab
New submission from Andreas Schwab: ctype modules doesn't build for aarch64 due to missing bits in the fficonfig.py script. -- components: ctypes files: ctypes-libffi-aarch64.patch keywords: patch messages: 188116 nosy: schwab priority: normal severity: normal status: open title: _ctype

[issue17797] Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program

2013-04-29 Thread Mateusz Loskot
Mateusz Loskot added the comment: I've just got an update on the bug report [1] I submitted to Microsoft. The Visual C++ team confirmed "It does appear to be a regression from Visual Studio 2010." So, it's not a bug in Python, but I think it may be important for Python to consider applying som

[issue17797] Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program

2013-04-29 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue17870] Python does not provide PyLong_FromIntMax_t() or PyLong_FromUintMax_t() function

2013-04-29 Thread STINNER Victor
STINNER Victor added the comment: The problem is to support platforms not providing a intmax_t type. I don't know if the following C code would be a good "approximation" of the maximum integral value (signed/unsigned). #ifdef HAVE_INTMAX_T typedef intmax_tPy_intmax_t; typedef uintmax_

[issue17700] Update Curses HOWTO for 3.4

2013-04-29 Thread A.M. Kuchling
A.M. Kuchling added the comment: Victor: I would like to add a section about using Unicode characters with curses, but found little material about doing that in either Python or the underlying C API. Do you have any suggested references or example code that I could look at? (It's probably be

[issue12458] Tracebacks should contain the first line of continuation lines

2013-04-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is an enhancement request (at best), not a bug report. I would close it because I think it somewhat dubious, unreasonable, and not helpful. First, I think tracebacks *should* report 'the spot of the foul' for each call frame. What would sometimes be helpf

[issue13721] ssl.wrap_socket on a connected but failed connection succeeds and .peer_certificate gives AttributeError

2013-04-29 Thread Ben Darnell
Ben Darnell added the comment: That proposal sounds good to me. I agree that any change here should target 3.4, not backports to older versions. -- ___ Python tracker ___ _

[issue17642] IDLE add font resizing hot keys

2013-04-29 Thread Alejandro Rodas
Changes by Alejandro Rodas : Added file: http://bugs.python.org/file30074/ZoomInOut.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue17874] ProcessPoolExecutor in interactive shell doesn't work in Windows

2013-04-29 Thread Theodore Randolph
New submission from Theodore Randolph: ProcessPoolExecutor doesn't work in an interactive shell in Windows, such as IDLE or the command prompt. It does work in Unix, and it works if I use the ThreadPoolExecutor instead. For example, let's use the tutorial at http://eli.thegreenplace.net/2013/

[issue17874] ProcessPoolExecutor in interactive shell doesn't work in Windows

2013-04-29 Thread Decade
Decade added the comment: Oh, yeah, using Python 3.3.1 (v3.3.1:d9893d13c628, Apr 6 2013, 20:30:21) [MSC v.1600 64 bit (AMD64)] on win32 -- ___ Python tracker ___ __

[issue17642] IDLE add font resizing hot keys

2013-04-29 Thread Roger Serwy
Roger Serwy added the comment: Abhishek, Alejandro, welcome to IDLE development! If you can, please sign a contributor agreement. We have two patches to create this enhancement, both are good. I suggest that we figure out how to merge the solutions. The zoom-out binding should also include Ct

[issue17875] Set Intersection returns unexpected results

2013-04-29 Thread Afif Elghraoui
New submission from Afif Elghraoui: I have two lists of strings (gene identifiers) that I know have something in common. I convert them to lists and do an intersection and I get the empty set. As an example test case, I know they both have the string 'Rv0500' >>> list1.index('Rv0500') 278 >>>

[issue17870] Python does not provide PyLong_FromIntMax_t() or PyLong_FromUintMax_t() function

2013-04-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > It is the same question than yours: is there a platform with an integer type > wider than a pointer (intptr_t/void*)? It's x86. sizeof(void*) == 4, sizeof(long long) == 8. -- nosy: +serhiy.storchaka ___ Python t

[issue17876] Doc issue with threading.Event

2013-04-29 Thread Xavier Ordoquy
New submission from Xavier Ordoquy: The documentation isn't correct for the threading.Event class under python 3.2. In the threading doc page (http://docs.python.org/3.2/library/threading.html), Event is said to be at the same time a function and a class. This is misleading and lead to a regre

[issue17642] IDLE add font resizing hot keys

2013-04-29 Thread Abhishek Kumar
Abhishek Kumar added the comment: Thanks Roger, for the feedback especially the licence part. I have least idea about licences but will take care in future. One question: Is it right to change IdleConf on Ctrl+ and Ctrl- ? I mean to change font for all open windows? It happens with most text e

[issue17870] Python does not provide PyLong_FromIntMax_t() or PyLong_FromUintMax_t() function

2013-04-29 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue17192] libffi-3.0.13 import

2013-04-29 Thread Gregory P. Smith
Gregory P. Smith added the comment: it _looks_ like the libffi updates i put in 3.2, 3.3 and default (3.4) are messed up with some changes missing in 3.2 and more missing in 3.3 and 3.4. (i'm comparing vs upstream 3.0.13 <-> 2.7 <-> 3.2 <-> 3.3 <-> 3.4). i blame the mess of merging that was r

[issue17852] Built-in module _io can loose data from buffered files at exit

2013-04-29 Thread Charles-François Natali
Charles-François Natali added the comment: > Hum, POSIX (2004) is not so strict: > "Whether open streams are flushed or closed, or temporary files are > removed is implementation-defined." > http://pubs.opengroup.org/onlinepubs/009695399/functions/exit.html You're looking at the wrong section:

[issue17870] Python does not provide PyLong_FromIntMax_t() or PyLong_FromUintMax_t() function

2013-04-29 Thread Mark Dickinson
Changes by Mark Dickinson : -- stage: -> needs patch type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue17192] libffi-3.0.13 import

2013-04-29 Thread Georg Brandl
Georg Brandl added the comment: Thanks. For 3.2, please attach a patch here. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

<    1   2