[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

[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

[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:

[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

[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

[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

[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

[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

[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 >>>

[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

[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 ___ __

[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/

[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

[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 ___ _

[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

[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

[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_

[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.

[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

[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

[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 ___

[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

[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 ___

[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

[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 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] 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

[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

[issue17810] Implement PEP 3154 (pickle protocol 4)

2013-04-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: And here is an implementation of PREFETCH over Alexandre's work. As you can see the code complexity compared to framing is mostly a wash, but I think fixing pickletools.optimize() will be easier with PREFETCH (still needs confirmation, of course :-)).

[issue17700] Update Curses HOWTO for 3.4

2013-04-29 Thread A.M. Kuchling
A.M. Kuchling added the comment: Updated version of the patch, applying many changes suggested by merwok: * use ~curses.funcname notation for links. * use 3-hyphen em-dash * minor fixes to various examples * rewrap long paragraphs (this makes the diff larger -- sorry!) -- Added file: ht

[issue17872] Crash in marshal.load() with bad reader

2013-04-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue17872] Crash in marshal.load() with bad reader

2013-04-29 Thread Dmi Baranov
Changes by Dmi Baranov : -- nosy: +dmi.baranov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11632] difflib.unified_diff loses context

2013-04-29 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.4 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17872] Crash in marshal.load() with bad reader

2013-04-29 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: There is a buffer overflow in marshal.load() when len(read(n)) > n. Here is a sample. -- components: Interpreter Core files: marshal_bad_reader.py messages: 188107 nosy: serhiy.storchaka priority: normal severity: normal stage: needs patch status: o

[issue17871] Wrong signature of TextTestRunner's init function

2013-04-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy stage: -> needs patch type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list

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

2013-04-29 Thread Devin Jeanpierre
Devin Jeanpierre added the comment: PyLong_FromVoidPtr works for uintptr_t, but not intptr_t. -- ___ Python tracker ___ ___ Python-bug

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

2013-04-29 Thread STINNER Victor
STINNER Victor added the comment: Did you try PyLong_FromVoidPtr()? -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailin

[issue17871] Wrong signature of TextTestRunner's init function

2013-04-29 Thread Piotr Dobrogost
New submission from Piotr Dobrogost: TextTestRunner's init as of 3.3.1 has (http://hg.python.org/cpython/file/d9893d13c628/Lib/unittest/runner.py#l128) the following parameters: stream, descriptions, verbosity, failfast, buffer, resultclass, warnings whereas docs (http://docs.python.org/3.3/l

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

2013-04-29 Thread Devin Jeanpierre
New submission from Devin Jeanpierre: As far as I can tell, the only safe and correct way to convert a (for example) intptr_t to a python long is something akin to the following: size_t repsize = sizeof(intmax_t)*8 + 2; char i_buf[repsize]; // enough to fit base 2 with sign, let alone b

[issue17810] Implement PEP 3154 (pickle protocol 4)

2013-04-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > With framing it isn't annoying. Slightly less, but you still have to wrap readline() calls in the unpickler. I have started experimenting with PREFETCH, but making the opcode optional is a bit annoying in the C pickler, which means it's simpler to always emit

[issue16754] Incorrect shared library extension on linux

2013-04-29 Thread Éric Araujo
Éric Araujo added the comment: False alarm, disregard my previous message. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue17869] distutils - TypeError in command/build_ext.py

2013-04-29 Thread Éric Araujo
Éric Araujo added the comment: :) -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue17869] distutils - TypeError in command/build_ext.py

2013-04-29 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I'm sorry, you're right. -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___

[issue17810] Implement PEP 3154 (pickle protocol 4)

2013-04-29 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Antoine, I removed STACK_GLOBAL when I found performance issues with the implementation. The changeset that added it had some unrelated changes that made it harder to debug than necessary. I am planning to re-add it when I worked out the kinks.

[issue17869] distutils - TypeError in command/build_ext.py

2013-04-29 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Your Python seems to be built incorrectly. Maybe you forgot to re-run './configure ...; make' after updating working copy. Could you try in a new working copy? (I cannot reproduce this bug.) -- nosy: +Arfrever ___

[issue17810] Implement PEP 3154 (pickle protocol 4)

2013-04-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: With framing it isn't annoying. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

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

2013-04-29 Thread STINNER Victor
STINNER Victor added the comment: >> It looks to be a feature of the standard C library, at least the GNU libc. > Yes, it's guaranteed by POSIX/ANSI (see man exit). Hum, POSIX (2004) is not so strict: "Whether open streams are flushed or closed, or temporary files are removed is implementation-d

[issue16754] Incorrect shared library extension on linux

2013-04-29 Thread Éric Araujo
Éric Araujo added the comment: This change may be responsible for #17869 -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue17646] traceback.py has a lot of code duplication

2013-04-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 84cef4f1999a by Benjamin Peterson in branch 'default': refactor traceback.py to reduce code duplication (closes #17646) http://hg.python.org/cpython/rev/84cef4f1999a -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected st

[issue17869] distutils - TypeError in command/build_ext.py

2013-04-29 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola': Traceback (most recent call last): File "setup.py", line 221, in ... and much more ;)""" File "/home/giampaolo/svn/python/3.4/Lib/distutils/core.py", line 148, in setup dist.run_commands() File "/home/giampaolo/svn/python/3.4/Lib/distutils/d

[issue17714] str.encode('base64') add trailing new line character. It is not documented.

2013-04-29 Thread Dmi Baranov
Dmi Baranov added the comment: Added a patch -- keywords: +patch nosy: +dmi.baranov Added file: http://bugs.python.org/file30069/issue17714.patch ___ Python tracker ___ _

[issue17810] Implement PEP 3154 (pickle protocol 4)

2013-04-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > What is wrong with GLOBAL? It uses the lame "text mode" that scans for newlines, and is generally annoying to optimize. This is like C strings vs. Pascal strings. http://www.python.org/dev/peps/pep-3154/#binary-encoding-for-all-opcodes -- ___

[issue17810] Implement PEP 3154 (pickle protocol 4)

2013-04-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is wrong with GLOBAL? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

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

2013-04-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, so this is a slightly annoying issue, but which isn't critical since there's a workaround (catch the AttributeError). Therefore I'm inclined not to change the behaviour in a bugfix release, for fear of regressions for people who are used to the workaround.

[issue17810] Implement PEP 3154 (pickle protocol 4)

2013-04-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a framing patch on top of Alexandre's work. There is one thing that framing breaks: pickletools.optimize(). I think it would be non-trivial to fix it. Perhaps the PREFETCH opcode is a better idea for this. Alexandre, I don't understand why you removed

[issue17868] pprint long non-printable bytes as hexdump

2013-04-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, I think a separate function would be better. There's another issue for pprint() of bytes with line continuations: http://bugs.python.org/issue17530 -- ___ Python tracker ___

[issue13742] Add a key parameter (like sorted) to heapq.merge

2013-04-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is already one heap class in the stdlib: queue.PriorityQueue. Why create a duplicate instead extend queue.PriorityQueue with desired features? May be name the maxheap parameter as reverse? -- nosy: +serhiy.storchaka ___

[issue17868] pprint long non-printable bytes as hexdump

2013-04-29 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. : -- nosy: -fdrake ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue17868] pprint long non-printable bytes as hexdump

2013-04-29 Thread Ezio Melotti
Ezio Melotti added the comment: A couple of comments: 1) A separate function might be better. I think this kind of output would be more useful while inspecting individual byte objects, rather than having it for arbitrary byte objects (that might be inside other containers). 2) I don't know i

[issue17857] sqlite modules doesn't build with 2.7.4 on Mac OS X 10.4

2013-04-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Thanks, Serhiy. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

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

2013-04-29 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue1475692] replacing obj.__dict__ with a subclass of dict

2013-04-29 Thread Kushal Das
Kushal Das added the comment: In Objects/typeobject.c we have subtype_setdict function, in which at line 1830 we have PyDict_Check() macro call, which checks if it is a subclass of dict or not. The definition is in Include/dictobject.h #define PyDict_Check(op) \ PyType_FastSu

[issue17857] sqlite modules doesn't build with 2.7.4 on Mac OS X 10.4

2013-04-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue17868] pprint long non-printable bytes as hexdump

2013-04-29 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here is a patch with which pprint formats long bytes objects which contain non-ascii or non-printable bytes as a hexdump. Inspired by Antoine's wish (http://permalink.gmane.org/gmane.comp.python.ideas/20329). -- components: Library (Lib) files: pp

[issue13742] Add a key parameter (like sorted) to heapq.merge

2013-04-29 Thread Mark Dickinson
Mark Dickinson added the comment: Looks pretty good to me. - There's a bonus print call in the diff. - Should the "len(self._data)" call be protected by the lock? I can't immediately think of any reason why that would be necessary (e.g., pushpop nd poppush never change the size of self._data

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

2013-04-29 Thread Ian Cordasco
Changes by Ian Cordasco : -- nosy: +icordasc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue17861] put opcode information in one place

2013-04-29 Thread Kushal Das
Kushal Das added the comment: Version 2 of the patchset edited as per review. -- Added file: http://bugs.python.org/file30066/issue17861_v2.patch ___ Python tracker ___ _

[issue16518] add "buffer protocol" to glossary

2013-04-29 Thread Ezio Melotti
Ezio Melotti added the comment: Here's a patch that adds "bytes-like object" to the glossary, links to the buffer protocol docs[0] and provides bytes and bytearray as examples. [0]: http://docs.python.org/dev/c-api/buffer.html#buffer-protocol -- keywords: +patch stage: needs patch -> p

[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: > "When you say Python 2, I assume you mean CPython 2, right? > Because - AFAICT - files got flushed only by accident, not by design." > > It looks to be a feature of the standard C library, at least the GNU libc. > Its libio library installs an exit ha

[issue17861] put opcode information in one place

2013-04-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailin

[issue17857] sqlite modules doesn't build with 2.7.4 on Mac OS X 10.4

2013-04-29 Thread Ben Harper
Ben Harper added the comment: This issue, like 14572, is also effecting Python 2.7.4 on CentOS 5. I can confirm the patch fixes this issue on CentOS5. -- nosy: +bharper ___ Python tracker

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

2013-04-29 Thread STINNER Victor
STINNER Victor added the comment: "In Python 2, a buffered file opened for writing is flushed by the C library when the process exit." "When you say Python 2, I assume you mean CPython 2, right? Because - AFAICT - files got flushed only by accident, not by design." It looks to be a feature of

[issue17861] put opcode information in one place

2013-04-29 Thread Kushal Das
Kushal Das added the comment: As we discussed on #python-dev channel this new patch includes the script in Tools/scripts/generate_opcode_h.py and it also contains the required Makefile.pre.in change so that it gets auto(re)generated at compile time if required. -- keywords: +patch Add

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

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

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2013-04-29 Thread Sarah
Changes by Sarah : -- nosy: +Sarah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailma

[issue17673] add `copy_from` argument to temporaryfile

2013-04-29 Thread Kyle Roberts
Kyle Roberts added the comment: Thanks for the comments Antoine. I didn't have a good reason for using the file name at the time, although even when using the file name I should have used the "file" variable that was already created. I tried using the file descriptor, but I encountered a "[Err

[issue17864] IDLE won't run

2013-04-29 Thread Roger Serwy
Roger Serwy added the comment: This looks like a duplicate of issue8231. -- nosy: +roger.serwy type: crash -> behavior ___ Python tracker ___

[issue17839] base64 module should use memoryview

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

[issue17861] put opcode information in one place

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

[issue17863] Bad sys.stdin assignment hangs interpreter.

2013-04-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 68d1ac152b5d by Benjamin Peterson in branch '3.3': ignore errors when trying to fetch sys.stdin.encoding (closes #17863) http://hg.python.org/cpython/rev/68d1ac152b5d New changeset 97522b189c79 by Benjamin Peterson in branch 'default': merge 3.3 (#1

[issue17863] Bad sys.stdin assignment hangs interpreter.

2013-04-29 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox title: Bad sys.stdin assignment hands interpreter. -> Bad sys.stdin assignment hangs interpreter. ___ Python tracker ___

[issue17867] Deleting __import__ from builtins can crash Python3

2013-04-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 08ce30768003 by Benjamin Peterson in branch '3.3': raise an ImportError (rather than fatal) when __import__ is not found in __builtins__ (closes #17867) http://hg.python.org/cpython/rev/08ce30768003 -- nosy: +python-dev resolution: -> fixe

[issue17867] Deleting __import__ from builtins can crash Python3

2013-04-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: Technically its not a crash but a fatal error. That's not to say its desirable, of course. :) -- nosy: +benjamin.peterson ___ Python tracker ___

[issue17867] Deleting __import__ from builtins can crash Python3

2013-04-29 Thread Dmi Baranov
Dmi Baranov added the comment: Another example of post-effects: >>> del __builtins__.__dict__['__import__'] >>> 1/0 Traceback (most recent call last): File "", line 1, in Fatal Python error: __import__ missing Current thread 0x7f3db64fd700: Aborted -- __

[issue13742] Add a key parameter (like sorted) to heapq.merge

2013-04-29 Thread Mark Dickinson
Mark Dickinson added the comment: Ah, I see the new file now (I'd failed to refresh my browser); sorry for the noise. -- ___ Python tracker ___

[issue13742] Add a key parameter (like sorted) to heapq.merge

2013-04-29 Thread Mark Dickinson
Mark Dickinson added the comment: heap2.diff contains only a single line's change. Wrong file attached? -- nosy: +mark.dickinson ___ Python tracker ___ _

[issue13742] Add a key parameter (like sorted) to heapq.merge

2013-04-29 Thread Raymond Hettinger
Changes by Raymond Hettinger : Removed file: http://bugs.python.org/file30062/heap2.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue13742] Add a key parameter (like sorted) to heapq.merge

2013-04-29 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file30063/heap2.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue15535] Fix pickling efficiency of named tuples in 2.7.3

2013-04-29 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue17867] Deleting __import__ from builtins can crash Python3

2013-04-29 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue17834] Add Heap (and DynamicHeap) classes to heapq module

2013-04-29 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- Removed message: http://bugs.python.org/msg188062 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue17834] Add Heap (and DynamicHeap) classes to heapq module

2013-04-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Daniel, I'm going to close this one so we can continue work in just a single tracker item: http://bugs.python.org/issue13742 I'll see if anything in your code should be merged in to mine and will list you as a co-contributor when it all goes in. --

[issue15535] Fix pickling efficiency of named tuples in 2.7.3

2013-04-29 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- Removed message: http://bugs.python.org/msg188063 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue15535] Fix pickling efficiency of named tuples in 2.7.3

2013-04-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Amaury, please go ahead and apply your patch. -- assignee: rhettinger -> amaury.forgeotdarc ___ Python tracker ___ __

[issue13742] Add a key parameter (like sorted) to heapq.merge

2013-04-29 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: low -> normal Added file: http://bugs.python.org/file30062/heap2.diff ___ Python tracker ___ _

[issue15535] Fix pickling efficiency of named tuples in 2.7.3

2013-04-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: [Antoine] > I would like to call this a critical regression. I concur. I will post the suggested fix with tests. -- ___ Python tracker ___

[issue17834] Add Heap (and DynamicHeap) classes to heapq module

2013-04-29 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- Removed message: http://bugs.python.org/msg188061 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue17834] Add Heap (and DynamicHeap) classes to heapq module

2013-04-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Daniel, I'm going to close this one so we can continue work in just a single tracker item: http://bugs.python.org/issue17794 I'll see if anything in your code should be merged in to mine and will list you as a co-contributor when it all goes in. --

[issue17834] Add Heap (and DynamicHeap) classes to heapq module

2013-04-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: See also http://bugs.python.org/issue17794 -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue17834] Add Heap (and DynamicHeap) classes to heapq module

2013-04-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Daniel, I've already been in the process of adding a class to the heapq module and have done substantial work on it over the last few months. I'll look at your code to see if there are any ideas that should be merged with it before I finish it up. Am atta

  1   2   >