[issue17827] Document codecs.encode and codecs.decode

2013-07-08 Thread Grant
Grant added the comment: codecs module and 'whats new' doc patch for 3.4 -- keywords: +patch nosy: +Grant versions: -Python 2.7, Python 3.3 Added file: http://bugs.python.org/file30860/17827.diff ___ Python tracker

[issue10042] functools.total_ordering fails to handle NotImplemented correctly

2013-07-08 Thread Nick Coghlan
Nick Coghlan added the comment: As part of this, I finally reviewed Jim's proposed alternate implementations for the helper functions. Katie's patch used my version while I figured out the differences in behaviour :) The key difference between them relates to the following different approaches

[issue18393] Gestalt() is deprecated on OSX 10.8, remove support?

2013-07-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached patch removes the use of the Gestalt API. The removed code is effectively dead, I yet have to find a machine were platform._mac_ver_xml does not work and the gestalt based code only gets used when the XML variant does not work. -- keywor

[issue18073] pickle.Unpickler may read too many bytes, causing hangs with blocking input stream

2013-07-08 Thread Dylan Radcliffe
Dylan Radcliffe added the comment: What I see in gdb is that that read is occurring due to the unpickling thread reading peeking ahead in the stream due to buffered io being used. #0 0x77bcbcbd in read () from /lib/x86_64-linux-gnu/libpthread.so.0 #1 0x0061f521 in fileio_readi

[issue18073] pickle.Unpickler may read too many bytes, causing hangs with blocking input stream

2013-07-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: For the record, this is one of the things that the framing proposal in pickle protocol 4 (pep 3154 - http://www.python.org/dev/peps/pep-3154/#framing) is able to address. -- ___ Python tracker

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

2013-07-08 Thread Mateusz Loskot
Mateusz Loskot added the comment: This is still an issue in VS 2012 Version 11.0.60610.01 Update 3 -- ___ Python tracker ___ ___ Pytho

[issue18356] help(numpy) causes segfault on exit

2013-07-08 Thread Michelle Arzul
Michelle Arzul added the comment: This is what I get from gdb: marzul@Leeward:~$ gdb --args python test.py GNU gdb (GDB) 7.5.91.20130417-cvs-ubuntu Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free softwar

[issue18403] Minor bug in The Python Tutorial

2013-07-08 Thread Xue Fuqiao
New submission from Xue Fuqiao: In http://docs.python.org/3.3/tutorial/introduction.html#strings: In addition to indexing, slicing is also supported. While indexing is used to obtain individual characters, slicing allows you to obtain substring: >>> word[0:2] # characters from position

[issue17759] test_urllibnet.test_bad_address() fails on Ubuntu 13.04

2013-07-08 Thread Matthias Klose
Matthias Klose added the comment: > ... that there is something abnormal with this Ubuntu release. no, it is not. This has nothing to do with Ubuntu, but is an upstream change introduced with glibc-2.17. So you will see it on every system which is based on the glibc version. see https://bug

[issue17128] OS X system openssl deprecated - installer should build local libssl

2013-07-08 Thread Christian Heimes
Christian Heimes added the comment: How about we include certsync [1] as an external program then? It's not as elegant as an internal API but it's not going to cause trouble with forking servers. The first time a root CA cert is require, some new code in Python's SSL module runs certsync and

[issue18393] Gestalt() is deprecated on OSX 10.8, remove support?

2013-07-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 07.07.2013 11:11, Ronald Oussoren wrote: > The easiest solution to avoid this deprecated API is therefore to drop the > _gestalt extension and remove its use in platform.mac_ver() I think it should only be removed in case we no longer support Mac OS X p

[issue17128] OS X system openssl deprecated - installer should build local libssl

2013-07-08 Thread Mateusz Lenik
Mateusz Lenik added the comment: The other way to solve problem with CA certs may be this script[1] that can be used to generate pem files from mozilla CA cert bundle[2] during compilation or installation. [1]: http://curl.haxx.se/docs/caextract.html [2]: http://mxr.mozilla.org/mozilla/source

[issue17840] base64_codec uses assert for runtime validity checks

2013-07-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 07.07.2013 16:31, Alex Henderson wrote: > Having discussed this with Ezio, I think the better option might be to raise > ValueError instead - if someone is expecting to be able to silently recover > from errors they won't be able to, and should find out

[issue18393] Gestalt() is deprecated on OSX 10.8, remove support?

2013-07-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 08.07.2013 13:55, Ronald Oussoren wrote: > > Do we follow the deprecation procedure for private functions as well? > > The patch removes a private and undocumented extension, and removes a private > function that uses that extension. There is no change

[issue13655] Python SSL stack doesn't have a default CA Store

2013-07-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I think we can improve the situation with shipping our own CA certs. > Almost every operating system or distribution comes with a set of CA > certs. Why would we ship our own CA certs if every OS comes with CA certs? > I lots of Linux distributions and most B

[issue18393] Gestalt() is deprecated on OSX 10.8, remove support?

2013-07-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: Do we follow the deprecation procedure for private functions as well? The patch removes a private and undocumented extension, and removes a private function that uses that extension. There is no change in the public API. Also, as I mentioned before the remove

[issue15661] OS X installer packages should be signed for OS X 10.8 Gatekeeper feature

2013-07-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 06.07.2013 18:17, Ronald Oussoren wrote: > As to the question of actually signing the installer: we ask the PSF about > acquiring a developer account once we have something that can actually be > signed. Please write to p...@python.org with an explanati

[issue18393] Gestalt() is deprecated on OSX 10.8, remove support?

2013-07-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: I had hoped to just drop it in 3.4. To remove: * extension _gestalt * function platform._mac_ver_gestalt * function platform._mac_ver_lookup (only used by ^^^) * function platform._bcd2str (likewise) To change: * function platform.mac_ver: remove call to

[issue17128] OS X system openssl deprecated - installer should build local libssl

2013-07-08 Thread Christian Heimes
Christian Heimes added the comment: Mateusz, we would like to avoid that path and use the operating system's root CAs list when the OS provides one. It gives better user experience and the OS' root CA list gets updates through the OS. -- ___ Python

[issue8813] SSLContext doesn't support loading a CRL

2013-07-08 Thread Christian Heimes
Changes by Christian Heimes : -- components: +Extension Modules nosy: +christian.heimes versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ __

[issue18403] Minor bug in The Python Tutorial

2013-07-08 Thread Madison May
Madison May added the comment: Nope, definitely an error! Good catch, Xue. -- nosy: +madison.may ___ Python tracker ___ ___ Python-bu

[issue18393] Gestalt() is deprecated on OSX 10.8, remove support?

2013-07-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 08.07.2013 14:08, Ronald Oussoren wrote: > > Ronald Oussoren added the comment: > > I had hoped to just drop it in 3.4. > > To remove: > > * extension _gestalt > > * function platform._mac_ver_gestalt > > * function platform._mac_ver_lookup (only use

[issue18402] Finding perl64

2013-07-08 Thread Christian Heimes
Christian Heimes added the comment: I don't mind to add perl64 to the search path. -- components: +Windows nosy: +christian.heimes stage: -> patch review ___ Python tracker ___

[issue18404] Memory leak in gdbmmodule

2013-07-08 Thread Bohuslav "Slavek" Kabrda
New submission from Bohuslav "Slavek" Kabrda: Function dbm_length from Modules/_gdbmmodule.c seems to be leaking memory. A simple reproducer: import dbm d = dbm.open('spam', 'c') d['x'] = '1' print(len(d)) The interesting part of valgrind output with --leak-check=full: ==3312== 1 bytes in 1

[issue12272] Python 2.7.1 version conflict for package "Tcl" on Windows 7

2013-07-08 Thread Christian Heimes
Christian Heimes added the comment: I'm closing this ticket because the op hasn't responded in two years and nobody has reported the issue ever since. -- nosy: +christian.heimes resolution: -> out of date status: open -> closed ___ Python tracker <

[issue10071] Should not release GIL while running RegEnumValue

2013-07-08 Thread Christian Heimes
Christian Heimes added the comment: LGTM I suggest that you add a comment with a link to this issue. People may wonder why some places don't release the GIL. -- nosy: +christian.heimes versions: +Python 3.3, Python 3.4 -Python 3.1, Python 3.2 ___ Py

[issue14268] _move_file is broken because of a bad mock

2013-07-08 Thread Éric Araujo
Éric Araujo added the comment: Yes, this was probably kept open for packaging forward-port, which is now moot. Note that many others distutils2 issues are kept open because they can be relevant for the distlib fork or other packaging libs. -- ___ P

[issue18367] See if a venv setup can be used for devinabox for coverage

2013-07-08 Thread Brett Cannon
Brett Cannon added the comment: So first thing is that you can't relocate a venv. The --upgrade option is only for when you upgrade a Python installation in-place (e.g. go from 3.3 to 3.4 but otherwise all other details stay the same). The --clear option empties out the directories so nothing

[issue13655] Python SSL stack doesn't have a default CA Store

2013-07-08 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jul 08, 2013, at 11:56 AM, Antoine Pitrou wrote: >I don't think it's a good idea to maintain a list of hard-coded >paths in Python: it's not manageable, and it will always become >outdated. If there was a widely-respected standard (e.g. in FHS or >LSB), thin

[issue7573] Position independent include of Python.h

2013-07-08 Thread Christian Heimes
Christian Heimes added the comment: Yes, I'm closing it. The issue has been addressed in our documentation. -- nosy: +christian.heimes resolution: -> fixed status: open -> closed ___ Python tracker

[issue15792] Fix compiler options for x64 builds on Windows

2013-07-08 Thread Christian Heimes
Changes by Christian Heimes : -- components: +Windows nosy: +christian.heimes type: -> compile error ___ Python tracker ___ ___ Pytho

[issue9814] subprocess isn't friendly to other Python implementations with different GCs

2013-07-08 Thread Christian Heimes
Changes by Christian Heimes : -- versions: +Python 3.3, Python 3.4 -Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list

[issue10042] functools.total_ordering fails to handle NotImplemented correctly

2013-07-08 Thread Jim Jewett
Jim Jewett added the comment: On Mon, Jul 8, 2013 at 3:30 AM, Nick Coghlan wrote: > The key difference between them relates to the following different approaches > to handling unknown types in __eq__: > @functools.total_ordering > class TotallyOrderedEqualsReturnsFalse: ... >def __eq__(sel

[issue18360] Won't install. Keeps telling me DLL is missing.

2013-07-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: You will have to wait until Martin can respond, but the log says failure occurred with C:\Users\astar\AppData\Local\Temp\MSIA812.tmp entry: _CheckDir@4 Description from web: Driver Install Frameworks for Applications library module This appears to part of the

[issue18360] Won't install. Keeps telling me DLL is missing.

2013-07-08 Thread Dale Smith
Dale Smith added the comment: I have redownloaded. Still getting the same message. Thank you. -- ___ Python tracker ___ ___ Python-b

[issue5060] gcc profile guided optimization

2013-07-08 Thread Christian Heimes
Christian Heimes added the comment: run_profile_task has been fixed a while ago and works with --enabled-shared. -- nosy: +christian.heimes resolution: -> works for me stage: patch review -> committed/rejected status: open -> closed ___ Python tracke

[issue4885] mmap enhancement request

2013-07-08 Thread Christian Heimes
Christian Heimes added the comment: 1) and 2) have been fixed in Python 3.x. mmap supports writable memory views and slice assignment from any object that supports the buffer protocol. 3) is still an issue as mmap objects are not weakref-able yet. It should be easy to add __weakref__ to mmap o

[issue4885] mmap enhancement request

2013-07-08 Thread Christian Heimes
Christian Heimes added the comment: It's a trivial task for any Python developer with some C experience. -- keywords: +easy ___ Python tracker ___

[issue4708] os.pipe should return inheritable descriptors (Windows)

2013-07-08 Thread Christian Heimes
Christian Heimes added the comment: Victor, this fits nicely with your recent PEP. -- nosy: +christian.heimes, haypo versions: +Python 3.4 -Python 2.6, Python 2.7, Python 3.0, Python 3.1 ___ Python tracker _

[issue1208730] expat binding for XML_ParserReset

2013-07-08 Thread Christian Heimes
Changes by Christian Heimes : -- assignee: -> christian.heimes nosy: +christian.heimes stage: test needed -> patch review versions: +Python 3.4 -Python 3.2 ___ Python tracker

[issue3093] Namespace pollution from multiprocessing

2013-07-08 Thread Christian Heimes
Christian Heimes added the comment: Python 3.4 no longer exports symbols without a Py or _Py prefix: $ nm -p build/lib.linux-x86_64-3.4-pydebug/_multiprocessing.cpython-34dm.so | sed -n "/ [TDB] /s/.* //p" | sort __bss_start _edata _end _fini _init PyInit__multiprocessing _PyMp_SemLockType _PyM

[issue9838] Inadequate C-API to Python 3 I/O objects

2013-07-08 Thread Christian Heimes
Christian Heimes added the comment: I agree with Antoine. If you are still interested to improve the situation then please start a discussion on the python-ideas mailing list. -- nosy: +christian.heimes resolution: -> postponed status: open -> closed __

[issue18403] Minor bug in The Python Tutorial

2013-07-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6f16fa5223cc by Ezio Melotti in branch '3.3': #18403: fix an off-by-one typo noticed by Xue Fuqiao. http://hg.python.org/cpython/rev/6f16fa5223cc New changeset d41adb657bd4 by Ezio Melotti in branch 'default': #18403: merge with 3.3. http://hg.pytho

[issue18403] Minor bug in The Python Tutorial

2013-07-08 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report! -- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> enhancement versions: +Python 3.4 ___ Pytho

[issue14097] Improve the "introduction" page of the tutorial

2013-07-08 Thread Ezio Melotti
Ezio Melotti added the comment: This still needs to be backported to 2.7. There's also a typo reported in #18403 that should be fixed before the backport. -- assignee: docs@python -> ezio.melotti ___ Python tracker

[issue1038591] Python 2.3+ socket._fileobject handles EAGAIN with data loss

2013-07-08 Thread Christian Heimes
Christian Heimes added the comment: Shall we close this ticket then? -- nosy: +christian.heimes status: open -> languishing ___ Python tracker ___ _

[issue18391] socket.fromfd()'s API is difficult or impossible to use correctly in general

2013-07-08 Thread Glyph Lefkowitz
Glyph Lefkowitz added the comment: It would be nice for this to be fixed in a 2.7.x release too, if possible, since the workaround involves a ton of extra system calls and there's no other way to construct a socket object directly. -- nosy: +glyph versions: +Python 2.7 ___

[issue8176] Interpreter crash with "double free or corruption" message

2013-07-08 Thread Christian Heimes
Christian Heimes added the comment: I'm closing the bug because it hasn't seen any activity in the past 2.5 years. -- nosy: +christian.heimes status: open -> closed ___ Python tracker ___

[issue10664] xml.sax.expatreader should support namespace prefixes

2013-07-08 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list

[issue17324] SimpleHTTPServer serves files even if the URL has a trailing slash

2013-07-08 Thread Vajrasky Kok
Vajrasky Kok added the comment: Attached the fix and the unit test for this problem. -- nosy: +vajrasky Added file: http://bugs.python.org/file30863/patch_for_fixing_the_server_serving_the_url_with_trailing_slash.txt ___ Python tracker

[issue12097] python.exe crashes if it is unable to find its .dll

2013-07-08 Thread Christian Heimes
Christian Heimes added the comment: 'We' don't show any error message. Windows does it on its own because the pythonXX.dll is a dependency for the executable. If python.exe can't find the DLL then it's also likely that the DLL is unable to find Python's stdlib. Python requires the stdlib to ru

[issue17911] Extracting tracebacks does too much work

2013-07-08 Thread Björn Sandberg Lynch
Björn Sandberg Lynch added the comment: I've been looking into this as an easy piece to bite off. If I understand Guido correctly, he'd like to defer or suppress the linecache call when getting the tb summary. The problem with deferring is that you need to access f_globals for the loader to wo

[issue12999] _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED usage on Solaris

2013-07-08 Thread Christian Heimes
Christian Heimes added the comment: I think the cause of the bug has been addressed because tests on Solaris are passing. -- nosy: +christian.heimes resolution: -> fixed status: open -> pending ___ Python tracker

[issue12984] XML NamedNodeMap ( attribName in NamedNodeMap fails )

2013-07-08 Thread Christian Heimes
Christian Heimes added the comment: Thanks for your report. The issue has been address in Python 3.x. NamedNodeMap properly implements __contains__(). Python 2.7 is in feature freeze mode which means we can't backport the function. -- nosy: +christian.heimes resolution: -> fixed statu

[issue13418] Embedded Python memory leak

2013-07-08 Thread Christian Heimes
Christian Heimes added the comment: Martin, can we close this issue or do you want to keep it around? -- nosy: +christian.heimes resolution: -> wont fix status: open -> languishing ___ Python tracker _

[issue13611] Integrate ElementC14N module into xml.etree package

2013-07-08 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes, effbot versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-b

[issue13788] os.closerange optimization

2013-07-08 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes stage: committed/rejected -> versions: +Python 3.4 ___ Python tracker ___ __

[issue13942] ssl.wrap_socket does not work on socket.socketpair()'s

2013-07-08 Thread Christian Heimes
Christian Heimes added the comment: Agreed -- nosy: +christian.heimes status: pending -> closed ___ Python tracker ___ ___ Python-bugs

[issue13856] xmlrpc / httplib changes to allow for certificate verification

2013-07-08 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list

[issue5124] IDLE - pasting text doesn't delete selection

2013-07-08 Thread Mark Young
Mark Young added the comment: +1 at least providing the option. This behavior is obnoxious and weird (no other program on linux that I know of does this (not to say no such program exists)). If I didn't want the original gone, I wouldn't have highlighted it. -- nosy: +Mark.Young _

[issue14139] test_ftplib: segfault

2013-07-08 Thread Christian Heimes
Christian Heimes added the comment: It doesn't crash anymore for me. The link doesn't work anymore, too. -- nosy: +christian.heimes resolution: -> works for me status: open -> closed ___ Python tracker __

[issue14620] Fatal Python error: Cannot recover from stack overflow.

2013-07-08 Thread Christian Heimes
Christian Heimes added the comment: The link doesn't work anymore and I'm unable to reproduce the issue. Please reopen the issue if you still get a stack overflow. Don't forget to attach your script, too. -- nosy: +christian.heimes resolution: -> out of date status: open -> closed __

[issue11012] Add log1p(), exp1m(), gamma(), and lgamma() to cmath

2013-07-08 Thread Christian Heimes
Changes by Christian Heimes : -- priority: normal -> low versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list

[issue7457] Adding a read_pkg_file to DistributionMetadata

2013-07-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: I recently discovered this method is missing from Python 3. I started porting a project which depends on it (a tool that uploads an already-packaged package to a cheeseshop), but found the method missing on Python 3. According to the changelog, this commit la

[issue14518] Add bcrypt $2a$ to crypt.py

2013-07-08 Thread Christian Heimes
Christian Heimes added the comment: I'll have a look -- assignee: -> christian.heimes nosy: +christian.heimes versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ __

[issue7457] Adding a read_pkg_file to DistributionMetadata

2013-07-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: On second thought, the hyperlink for r76706 resolves to d9b4f6ea3e39, which is in the default branch since 2009, so apparently the code was present, so I'll continue to trace why it went away. -- ___ Python tracker

[issue7457] Adding a read_pkg_file to DistributionMetadata

2013-07-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: I see now, the code was removed in 29a3eda89995. But the associated comment indicates distutils is feature-frozen and that subsequent work should be done in distutils2, which of course is now a defunct effort. Given that information, what's the proper soluti

[issue18405] crypt.mksalt() result has unnecessarily low entropy

2013-07-08 Thread Christian Heimes
New submission from Christian Heimes: crypt.mksalt() creates a salt with a lower entropy than possible. It uses random.SystemRandom().sample() to generate a salt string from the set of 64 chars (string.ascii_letters + string.digits + './'). SystemRandom() uses a CPRNG (good) but sample() retur

[issue18406] unicodedata.itergraphemes / str.itergraphemes / str.graphemes

2013-07-08 Thread David P. Kendal
New submission from David P. Kendal: On python-ideas I proposed the addition of a way to iterate over the graphemes of a string, either as part of the unicodedata library or as a method on the built-in str type. I provided

[issue18406] unicodedata.itergraphemes / str.itergraphemes / str.graphemes

2013-07-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +benjamin.peterson, ezio.melotti, loewis stage: -> needs patch ___ Python tracker ___ ___ Python-b

[issue18406] unicodedata.itergraphemes / str.itergraphemes / str.graphemes

2013-07-08 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue7457] Adding a read_pkg_file to DistributionMetadata

2013-07-08 Thread Ned Deily
Ned Deily added the comment: There have been a number of issues that have come up over the past few years due to Python 3.2+'s distutils being a subset of Python 2.7's as a result of the revert (29a3eda89995). Since circumstances have changed since the decision was made to do the revert and d

[issue18407] Fix compiler warnings in pythoncore for Win64

2013-07-08 Thread Jeremy Kloth
New submission from Jeremy Kloth: The attached patch fixes compiler warnings for the pythoncore project when building on 64-bit Windows. Fixes for built-in modules are not included, however. -- files: issue18407.diff keywords: patch messages: 192686 nosy: brian.curtin, christian.heimes

[issue18407] Fix compiler warnings in pythoncore for Win64

2013-07-08 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- components: +Build, Windows type: -> compile error versions: +Python 3.4 ___ Python tracker ___ ___ Pyth

[issue18407] Fix compiler warnings in pythoncore for Win64

2013-07-08 Thread STINNER Victor
STINNER Victor added the comment: - /USECL:MS_OPTERON /GS- %(AdditionalOptions) + false Please don't change too much things in the same patch. The issue #15792 is a better place for such change. -- ___ Python tracker

[issue18407] Fix compiler warnings in pythoncore for Win64

2013-07-08 Thread STINNER Victor
STINNER Victor added the comment: This issue duplicates the isuse #9566, but your patch is interesting. I created other more specific issues like #18295 and #18294. -return lb - ll->ll_label; +return Py_SAFE_DOWNCAST(lb - ll->ll_label, Py_intptr_t, int); I don't think that such change

[issue14455] plistlib unable to read json and binary plist files

2013-07-08 Thread Ned Deily
Ned Deily added the comment: Ronald, I think v8 of the patch is missing (and plistlib_generate_testdata.py was uploaded twice). -- ___ Python tracker ___ ___

[issue17911] Extracting tracebacks does too much work

2013-07-08 Thread Guido van Rossum
Guido van Rossum added the comment: In terms of how much freedom you have about changing the internal, I'd check how long ago they were changed. "Internal" APIs that have been stable for many versions tend to have illicit external uses -- but internal APIs that were introduced recently (e.g.

[issue18408] Fixes crashes found by pyfailmalloc

2013-07-08 Thread STINNER Victor
New submission from STINNER Victor: I created a first toy based on the PEP 445 to test of Python handles MemoryError: in short, Python handles them badly... Home page of the project: https://pypi.python.org/pypi/pyfailmalloc I will use this issue to track crashes found by this tool. -

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2013-07-08 Thread Steve Dower
Steve Dower added the comment: I must have missed something when I merged files to create the diffs. In any case, you'll still require VC9 or VC10 to be able to build something compatible with a CPython release (though maybe that doesn't matter for Cython? I don't know). When I get a chance I

[issue18408] Fixes crashes found by pyfailmalloc

2013-07-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 111c2a070f28 by Victor Stinner in branch 'default': Issue #18408: PyObject_GC_NewVar() now raises SystemError exception if nitems http://hg.python.org/cpython/rev/111c2a070f28 New changeset ba766323b53a by Victor Stinner in branch 'default': Issue #

[issue18408] Fixes crashes found by pyfailmalloc

2013-07-08 Thread STINNER Victor
STINNER Victor added the comment: "I created a first toy based on the PEP 445 to test of Python handles MemoryError: in short, Python handles them badly..." Ooops: to test *how* Python handles.. -- ___ Python tracker

[issue18407] Fix compiler warnings in pythoncore for Win64

2013-07-08 Thread Jeremy Kloth
Jeremy Kloth added the comment: Yeah, sorry. This made it in by mistake. It was in the tree just to eliminate warning noise. On Mon, Jul 8, 2013 at 1:20 PM, STINNER Victor wrote: > > STINNER Victor added the comment: > > - /USECL:MS_OPTERON /GS- > %(AdditionalOptions) > + false > >

[issue18407] Fix compiler warnings in pythoncore for Win64

2013-07-08 Thread Jeremy Kloth
Jeremy Kloth added the comment: The change in grammar.c:addlabel() is correct. The return value is an index into the ll->ll_label array, thus an int. The code could be rewritten to avoid the pointer addition by saving the value of ll->ll_nlabels before it is incremented and return that instead,

[issue18407] Fix compiler warnings in pythoncore for Win64

2013-07-08 Thread Jeremy Kloth
Jeremy Kloth added the comment: Ugh, sorry for the bad quoting (silly GMail). -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue18100] socket.sendall() cannot send buffers of 2GB or more

2013-07-08 Thread Anton Tyurin
Anton Tyurin added the comment: This issue is similar like http://bugs.python.org/issue9566. It seems reasonable to apply a similar fix. But why not use the types described in the signature functions in . In particular use for len size_t, and for n - ssize_t? -- _

[issue18100] socket.sendall() cannot send buffers of 2GB or more

2013-07-08 Thread Christian Heimes
Christian Heimes added the comment: Does it affect Python 3, too? -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-li

[issue18365] Idle: mock Text class and test thereof

2013-07-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Great start! Some revisions: * Create root directly (and just once); add root.destroy, which added several warnings. * Create Text directly; test should not require Editors. This removed warnings. I suspect that EditorWindow.py does other things that are not pr

[issue18408] Fixes crashes found by pyfailmalloc

2013-07-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset ba79f6a86300 by Victor Stinner in branch 'default': Issue #18408: Fix ConvParam() of the ctypes module to handle paramfunc failure http://hg.python.org/cpython/rev/ba79f6a86300 New changeset 2ef2edfd1a4c by Victor Stinner in branch 'default': Issue

[issue18364] Remove _not_found hack from importlib

2013-07-08 Thread Eric Snow
Eric Snow added the comment: That'll work. :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue18408] Fixes crashes found by pyfailmalloc

2013-07-08 Thread STINNER Victor
STINNER Victor added the comment: use_failmalloc.patch: Patch to use pyfailmalloc on the Python test suite. Command to run test suite: "gdb -args ./python -m test -F". -- keywords: +patch Added file: http://bugs.python.org/file30866/use_failmalloc.patch

[issue18408] Fixes crashes found by pyfailmalloc

2013-07-08 Thread STINNER Victor
STINNER Victor added the comment: call_exc_trace.patch: Fix for the call_exc_trace() function when the traceback is not set. -- Added file: http://bugs.python.org/file30867/call_exc_trace.patch ___ Python tracker

[issue18408] Fixes crashes found by pyfailmalloc

2013-07-08 Thread STINNER Victor
STINNER Victor added the comment: type_slot_tp_str.patch: Fix for the __str__ slot of types (slot_tp_str() in typeobject.c). -- Added file: http://bugs.python.org/file30868/type_slot_tp_str.patch ___ Python tracker

[issue18408] Fixes crashes found by pyfailmalloc

2013-07-08 Thread STINNER Victor
STINNER Victor added the comment: misc_fixes.patch: Misc bugfixes related to MemoryError, this patch should be read carefully. The changes in unicodeobject.c may be written differently. I wrote them to fix a failing assertion ("assert(data != NULL);") in _PyUnicode_CheckConsistency(), called w

[issue10042] functools.total_ordering fails to handle NotImplemented correctly

2013-07-08 Thread Nick Coghlan
Nick Coghlan added the comment: I'm actually not sure which of us is correct - Katie and I will be looking into it further today to compare the existing implementation, my proposal and yours to see if there's a clear winner in terms of consistent. It may be that we end up choosing the version

[issue15403] Refactor package creation support code into a common location

2013-07-08 Thread Indra Talip
Indra Talip added the comment: updated patch to apply on top of patch from issue15494 -- nosy: +italip Added file: http://bugs.python.org/file30870/issue-15403-3.patch ___ Python tracker ___

[issue4708] os.pipe should return inheritable descriptors (Windows)

2013-07-08 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue10042] functools.total_ordering fails to handle NotImplemented correctly

2013-07-08 Thread Nick Coghlan
Nick Coghlan added the comment: OK, I had misunderstood the way Jim's code works (it still coerces a "False" result for __eq__ into NotImplemented if the ordered comparison returns NotImplemented). However, I spent some more time tinkering with it today (see https://bitbucket.org/ncoghlan/misc

[issue17840] base64_codec uses assert for runtime validity checks

2013-07-08 Thread Nick Coghlan
Nick Coghlan added the comment: ValueError works for me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue18409] IDLE Improvements: Unit test for AutoComplete.py

2013-07-08 Thread Phil Webster
New submission from Phil Webster: I've started writing this test which depends on #18365. -- components: IDLE messages: 192711 nosy: JayKrish, Todd.Rovito, philwebster, terry.reedy priority: normal severity: normal status: open title: IDLE Improvements: Unit test for AutoComplete.py type

  1   2   >