[issue6422] timeit called from within Python should allow autoranging

2015-03-21 Thread Nick Coghlan
Nick Coghlan added the comment: The current patch moves print operations inside timeit() and repeat(), instead of leaving the main() function as the only one with side effects. My counter-proposal was to instead extract the current main functionality out into a side-effect free public API of i

[issue23642] Interaction of ModuleSpec and C Extension Modules

2015-03-21 Thread Nick Coghlan
Nick Coghlan added the comment: Added Petr to the nosy list here as well. Petr - this is the kind of discrepancy I'm hoping that PEP 489 can help remedy, so it may make for a good test case :) -- nosy: +encukou ___ Python tracker

[issue23633] Improve py launcher help, index, and doc

2015-03-21 Thread Nick Coghlan
Nick Coghlan added the comment: Given its Windows specific nature, I'll always defer to Steve and the other Windows devs when it comes to the launcher. My main involvement (aside from general mailing list commentary) was asking Vinay to bring the independently distributed version under the PyP

[issue20181] Derby #12: Convert 50 sites to Argument Clinic across 4 files

2015-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch for unicodedata. -- keywords: +patch nosy: +serhiy.storchaka Added file: http://bugs.python.org/file38630/unicodedata_clinic.patch ___ Python tracker

[issue23737] spam

2015-03-21 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> not a bug stage: -> resolved status: open -> closed title: web course -> spam ___ Python tracker ___ ___

[issue23737] web course

2015-03-21 Thread Ezio Melotti
Changes by Ezio Melotti : -- Removed message: http://bugs.python.org/msg238875 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue23737] web course

2015-03-21 Thread Ezio Melotti
Changes by Ezio Melotti : -- hgrepos: -302 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue23737] web course

2015-03-21 Thread bintang raksaguna
New submission from bintang raksaguna: href="http://winstarlink.com/tempat-kursus-website-seo-desain-grafis-favorit-2015-di-jakarta/";>Tempat Kursus website, SEO, Desain Grafis Favorit http://winstarlink.com/tempat-kursus-website-seo-desain-grafis-favorit-2015-di-jakarta/";>Tempat Kursus websit

[issue1191964] add non-blocking read and write methods to subprocess.Popen

2015-03-21 Thread Josiah Carlson
Josiah Carlson added the comment: Okay, I'm sorry for falling asleep at the wheel on this. At this point, I don't expect this to go in for 3.5 - but if it has a chance, I'll do what I need to do to get it there. Let me know. I agree with the .communicate() not raising on broken pipe, and read

[issue23736] "make test" on clean py3 install on CentOS 6.2 - 2 tests fail

2015-03-21 Thread Ned Deily
Ned Deily added the comment: The test_ftp connection timeout error failure (seen on some platforms) is a duplicate of Issue22289. The test_readline failure is a duplicate of, among others, Issue22647 and is believed to no longer occur with the current Python 3.4.3 (released 2015-02-25) and a

[issue23735] Readline not adjusting width after resize with 6.3

2015-03-21 Thread Thomas Kluyver
Changes by Thomas Kluyver : -- nosy: +takluyver ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue23736] "make test" on clean py3 install on CentOS 6.2 - 2 tests fail

2015-03-21 Thread R. David Murray
R. David Murray added the comment: The first test passes for me (although granted we should move that test to a psf hosted target, but we're slowly working on that general issue). The second is a bug in readline (see issue 19884). -- nosy: +r.david.murray resolution: -> duplicate stag

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-21 Thread Nick Coghlan
Nick Coghlan added the comment: Right, I mostly borrowed the issue as a public channel that could reach folks already invested in the problem space, without needing to tidy things up sufficiently to make them coherent for a more general audience on python-dev or python-ideas. As Steve says, w

[issue23735] Readline not adjusting width after resize with 6.3

2015-03-21 Thread R. David Murray
R. David Murray added the comment: If it used to handle the signal and then re-raise it, why doesn't it now set its flag and then re-raise the signal? (I also don't understand why the API isn't that the application takes back the signal handler if it needs it if it is using readline, but I'm

[issue23736] "make test" on clean py3 install on CentOS 6.2 - 2 tests fail

2015-03-21 Thread John Nagle
New submission from John Nagle: Installing Python 3.4.2 on CentOS 6. Clean install. Using procedure in README file: ./configure make make test 2 tests fail in "make test" The first one is because the FTP client test is trying to test against a site that is long gone, the Digital Equipment C

[issue23735] Readline not adjusting width after resize with 6.3

2015-03-21 Thread Carlos Pita
Carlos Pita added the comment: Chet again: Here's the story from the top. Prior to readline-6.3, readline could `steal' signals from the calling application in the sense that readline's signal handler got a crack at all signals in which readline was interested before the application did. Now, t

[issue23159] argparse: Provide equivalent of optparse.OptionParser.{option_groups, option_list, get_option}

2015-03-21 Thread paul j3
paul j3 added the comment: The attached file subclasses ArgumentParser, explores how these optparse methods might be added to argparse. The __name__ section demonstrates how they might be used. argparse differs from optparse in a number of ways: - all actions are included in the parser._acti

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-21 Thread Steve Dower
Steve Dower added the comment: Yeah, this is starting to get out of hand. I'm quite happy to leave things sit until the language summit, when we should have a broad enough representation to make a start. After that it'll get to python-dev before anything major is decided, but the brainstorming

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-21 Thread Mark Lawrence
Mark Lawrence added the comment: No this is not a good forum for this discussion. Python-dev or ideas please, to be followed up by a PEP I'd guess. -- ___ Python tracker ___ __

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-21 Thread Ned Deily
Ned Deily added the comment: This issue seems to be expanding widely in scope and it is not at all clear to me what actionable items would come out of it. It started as a very Window-specific problem and now seems to somehow be being extended to the whole Python ecosphere. What about the OS

[issue22149] the frame of a suspended generator should not have a local trace function

2015-03-21 Thread Mark Lawrence
Mark Lawrence added the comment: Can we have a formal patch review please. I've assumed that if acceptable the patch could also be applied to 3.4 and 2.7. -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.4 ___ Python tracker

[issue23546] Windows, 'Edit withIDLE', and multiple installed versions

2015-03-21 Thread Mark Lawrence
Changes by Mark Lawrence : -- title: Windows, 'Edit withIDLE', and multplie installed versions -> Windows, 'Edit withIDLE', and multiple installed versions ___ Python tracker __

[issue22933] Misleading sentence in doc for shutil.move

2015-03-21 Thread Mike Short
Changes by Mike Short : Added file: http://bugs.python.org/file38628/shutil_latest.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue22933] Misleading sentence in doc for shutil.move

2015-03-21 Thread Mike Short
Changes by Mike Short : -- keywords: +patch Added file: http://bugs.python.org/file38627/shutil_2.7.patch ___ Python tracker ___ ___ P

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-21 Thread Nick Coghlan
Nick Coghlan added the comment: Given the expansion of the discussion to more general questions of getting CPython from upstream into the hands of end users, I've added in some more of the distro level folks to the nosy list (Matthias, Barry, Slavek, Robert). This idea of more actively pursuin

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-21 Thread Tim Graham
Tim Graham added the comment: Here's an exception in Django after the latest patch. The Django code block in the last exception catches ValueError, but this doesn't seem to work any longer since it's "wrapped" in SystemError. As Berker mentioned, some upgrade tips would be great as I'm not sur

[issue23735] Readline not adjusting width after resize with 6.3

2015-03-21 Thread R. David Murray
R. David Murray added the comment: Why would this not constitute a bug in readline? Readline isn't going to be active all of the time in most applications, so why shouldn't it be readline's responsibility to install the signal handler at initialization and handle it? If the application wants

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-21 Thread Nick Coghlan
Nick Coghlan added the comment: As of last month, Microsoft do provide official Python support, but only in the context of the online Azure Machine Learning Environment: http://blogs.technet.com/b/machinelearning/archive/2015/02/18/announcing-the-general-availability-of-azure-machine-learning.a

[issue23546] Windows, 'Edit withIDLE', and multplie installed versions

2015-03-21 Thread Steve Dower
Steve Dower added the comment: Hey Terry, as a first step towards fixing the current 3.5 issue of not having Edit with IDLE at all, is it okay if the "Edit with IDLE" menu launches (approx.) "py -m idlelib.idle %1"? Currently the shortcut menu is part of the launcher - the "Open" item launches

[issue23735] Readline not adjusting width after resize with 6.3

2015-03-21 Thread Carlos Pita
New submission from Carlos Pita: See here: https://github.com/ipython/ipython/issues/6974 Chet Ramey confirmed the bug is downstream: As I recall from looking briefly at the ipython/python source code, it has to do with python not handling the SIGWINCH and expecting readline to do it even when

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-21 Thread Steve Dower
Steve Dower added the comment: > (when does Windows switch to 3.6? Honestly, it can probably never happen...). On re-read, this isn't quite clear: Hypothetically, if Windows 10 included Python 3.5, when would it be upgraded to Python 3.6? Probably never. Back-compat is problematic on Linux, b

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-21 Thread Steve Dower
Steve Dower added the comment: > miniconda does not install all of the sci-data packages, only conda and > python 2.7 miniconda is actually a tool that gives you the "conda" command, which can be used to install Python 2.6, 2.7, 3.3 or 3.4, 32 or 64-bit and a huge range of compatible packages

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-21 Thread Paul Moore
Paul Moore added the comment: I agree with Ned, this sounds like a significant change. In particular, Portable Python seems to currently only offer 3.2.5 at the moment. And it's not at all clear to me whether it's a 32-bit or a 64-bit version (but I suspect the former). One thing I'd want to u

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-21 Thread Mark Mikofski
Mark Mikofski added the comment: WinPython and miniconda are more current distros than portable python, and they come in both 32 & 64bit flavors. Portable python hasn't been updated recently and only offers 32 bit which is IMO worthless except for the bundle as app case, eg meld installer. I

[issue22608] test_socket fails with sem_init: Too many open files

2015-03-21 Thread Martin Panter
Martin Panter added the comment: Maybe these patches work around the problem in these cases, but it sounds like the threading.Event class needs to grow a close() method or support the context manager protocol, rather than relying on the garbage collector to clean it up. -- nosy: +vadmi

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-21 Thread Ned Deily
Ned Deily added the comment: Bringing an umbrella distribution into the CPython release process seems to me like a very big leap and would that requires very careful consideration. It would introduce a whole load of other dependencies into our release process, i.e. that the third-party packag

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-21 Thread Steve Dower
Steve Dower added the comment: Also, I do have this topic on the language summit agenda, so I don't really want to lock anything down before then anyway, but this discussion has been good to flesh out some of the background and possibilities in advance of that. --

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-21 Thread Nick Coghlan
Nick Coghlan added the comment: Larry, Bringing you into this discussion as CPython 3.5 release manager - we're trying to figure out what role we'd like the CPython Windows installers to play in the Windows distribution ecosystem, and I raised the question of whether or not typical Windows ba

[issue23350] Content-length is incorrect when request body is a list or tuple

2015-03-21 Thread Martin Panter
Martin Panter added the comment: Technically I don’t think there is a bug. The documentation says [the] “Content-Length header should be explicitly provided”, so if you don’t set it you could argue that you’re using the library wrong. For this issue I think Demian was trying to add support (i.

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-21 Thread Nick Coghlan
Nick Coghlan added the comment: Along those lines, another option to consider would be offering to publish Portable Python from the python.org release pages in addition to publishing the less comprehensive CPython-only installers. -- ___ Python trac

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-21 Thread Nick Coghlan
Nick Coghlan added the comment: I agree the migration to Program Files & a different installer build process is more than ambitious enough for 3.5. For the embedding case, it's not that it *can't* be done, it's just a PITA. Perhaps for the per-user no-admin-rights needed case, we could direct

[issue22608] test_socket fails with sem_init: Too many open files

2015-03-21 Thread Mark Lawrence
Mark Lawrence added the comment: It's a simple patch so can we have a formal review please. -- nosy: +BreamoreBoy ___ Python tracker ___ _

[issue22610] test_ftplib fails with sem_init: Too many open files

2015-03-21 Thread Mark Lawrence
Mark Lawrence added the comment: It's a simple patch so can we have a formal review please. -- nosy: +BreamoreBoy ___ Python tracker ___ _

[issue23668] Support os.ftruncate on Windows

2015-03-21 Thread Steve Dower
Steve Dower added the comment: Yep, all the way back to VS 2005 and Windows 95. Not sure why it wasn't used previously (_chsize doesn't support 64-bit values, which is a reasonable reason to not use it). -- title: Support os. -> Support os.ftruncate on Windows

[issue22659] SyntaxError in the configure_ctypes

2015-03-21 Thread Mark Lawrence
Mark Lawrence added the comment: Without more detail I very much doubt that anybody can help. -- nosy: +BreamoreBoy ___ Python tracker ___ ___

[issue23668] Support os.

2015-03-21 Thread STINNER Victor
STINNER Victor added the comment: Is _chsize_s() available on all Windows versions and all Visual Studio (msvcrt) versions? Le 21 mars 2015 04:26, "Steve Dower" a écrit : > > Steve Dower added the comment: > > Updated the patch, since there's been a lot of checkins. > > I also removed the pycon

[issue22246] add strptime(s, '%s')

2015-03-21 Thread Mark Lawrence
Mark Lawrence added the comment: It's a comprehensive patch so can we have a formal review please. -- nosy: +BreamoreBoy ___ Python tracker ___ __

[issue23729] Import ElementTree documentation for namespaces and XPath

2015-03-21 Thread Martin Panter
Martin Panter added the comment: Thanks for this improvement; documenting namespace behaviour is sorely needed. -- nosy: +vadmium ___ Python tracker ___ _

[issue13224] Change str(x) to return only the (qual)name for some types

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

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-21 Thread Steve Dower
Steve Dower added the comment: Sorry, Standard Operating Environment. I intended it as shorthand for the "as if it were shipped with the OS" case. -- ___ Python tracker ___

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-21 Thread Paul Moore
Paul Moore added the comment: Sorry, SOE? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-21 Thread Steve Dower
Steve Dower added the comment: Yeah, some of those are fairly ambitious, but at the same time, for the SOE use case we probably don't want the Program Files install at all - it would be a mix between System32 and CommonFiles, with the same environment issues you'd see on Linux. Program Files i

[issue23021] Get rid of references to PyString in Modules/

2015-03-21 Thread Mark Lawrence
Mark Lawrence added the comment: The only PyString that I could find left is in unicodedata.c. I'm assuming that there is little point is preparing a patch for a one word change, is this correct? -- nosy: +BreamoreBoy ___ Python tracker

[issue23729] Import ElementTree documentation for namespaces and XPath

2015-03-21 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file38626/elementtree_doc2.diff ___ Python tracker ___ ___ Python-bugs-list

[issue23729] Import ElementTree documentation for namespaces and XPath

2015-03-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +eli.bendersky, scoder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue23075] Mock backport in 2.7 relies on implementation defined behavior

2015-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Done. Thanks for raising it Mark. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue23075] Mock backport in 2.7 relies on implementation defined behavior

2015-03-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset d0b497c86c60 by Serhiy Storchaka in branch '2.7': Issue #23075: Whether __builtins__ is a module or a dict is undefined in https://hg.python.org/cpython/rev/d0b497c86c60 -- nosy: +python-dev ___ Python tr

[issue23075] Mock backport in 2.7 relies on implementation defined behavior

2015-03-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list ma

[issue23075] Mock backport in 2.7 relies on implementation defined behavior

2015-03-21 Thread Mark Lawrence
Mark Lawrence added the comment: Can we have a commit review please as this is such a simple patch. -- nosy: +BreamoreBoy ___ Python tracker ___ _

[issue23729] Import ElementTree documentation for namespaces and XPath

2015-03-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Attaching a runnable version of the namespace demo to show that the code works. -- versions: +Python 2.7, Python 3.4 Added file: http://bugs.python.org/file38625/xml_namespace_demo.py ___ Python tracker

[issue23106] Remove smalltable from set objects

2015-03-21 Thread Mark Lawrence
Mark Lawrence added the comment: My feeling is that this is worth doing for the code clarity alone but what do others think about it? -- nosy: +BreamoreBoy ___ Python tracker __

[issue23720] __del__() order is broken since 3.4.0

2015-03-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Can this be closed as not-a-bug. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list

[issue23126] Add Python hook function to replace NameError

2015-03-21 Thread Mark Lawrence
Mark Lawrence added the comment: See the thread starting here https://mail.python.org/pipermail/python-ideas/2014-December/030521.html -- nosy: +BreamoreBoy type: -> enhancement ___ Python tracker ___

[issue15836] unittest assertRaises should verify excClass is actually a BaseException class

2015-03-21 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue23097] unittest can unnecessarily modify sys.path (and with the wrong case)

2015-03-21 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-21 Thread STINNER Victor
STINNER Victor added the comment: Le 21 mars 2015 18:05, "Serhiy Storchaka" a écrit : > But an assertion itself provides less information than an exception. Debug build is less informative than release build. I like Antoine's idea to replace the assertion with Py_FatalError() in debug mode. I'

[issue23723] Provide a way to disable bytecode staleness checks

2015-03-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: That sounds kind of reasonable, but how are we supposed to document this? Or is this only a "secret backdoor" for people in the know? -- ___ Python tracker ___

[issue23350] Content-length is incorrect when request body is a list or tuple

2015-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are two issues. The one is that calculated Content-Length is not correct for lists, tuples, and other types (such as deque or array.array). The right solution is to calculate size using a technique used in urllib. Content-Length shouldn't be calculated

[issue23734] zipimport should not check pyc timestamps against zipped py files

2015-03-21 Thread Gregory P. Smith
New submission from Gregory P. Smith: The zipimport module checks the timestamp of a pyc file loaded from the zip file against the timestamp of a corresponding py file in the zip if any. This seems pointless. By the time someone has created a zip file for zipimport they should have guarantee

[issue23723] Provide a way to disable bytecode staleness checks

2015-03-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: We already use zipimport for most production deployments. It works well. We've modified our own zipimport to ignore timestamps as keeping them in sync between pyc and py files in the zip files own timestamps is painful. Unfortunately the stdlib zipimport

[issue23731] Implement PEP 488

2015-03-21 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue23726] Don't enable GC for classes that don't add new fields

2015-03-21 Thread Eugene Toder
Changes by Eugene Toder : Added file: http://bugs.python.org/file38624/class_gc2.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue17840] base64_codec uses assert for runtime validity checks

2015-03-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: patch review -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue15836] unittest assertRaises should verify excClass is actually a BaseException class

2015-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm +0.5 for the variant suggested by Berker and Ezio. Do you have time to look at the patch Michael? I could commit modified patch (there is one defect in tests). -- nosy: +serhiy.storchaka ___ Python tracker

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-21 Thread Mark Lawrence
Mark Lawrence added the comment: I'm concerned about being overcautious so that nothing ever happens. Do something, break it, fix it. If you delay all you do is put off the fix. Plus I've every confidence in our Windows developers to just do the right thing. --

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-21 Thread Paul Moore
Paul Moore added the comment: Regarding the "poor relation" argument, I'd see that as the other way round. We don't have the resources to deal with major breakages, so we should be relatively cautious. -- ___ Python tracker

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-21 Thread Paul Moore
Paul Moore added the comment: Personally, I'd like to have 3.5 be the release that changes to using "Program Files" as the default install, and offers a per-user install to Appdata. I suspect there will be enough fallout from that change to keep us busy. Let's look to 3.6 for major renamings o

[issue23657] Don't do isinstance checks in zipapp

2015-03-21 Thread Paul Moore
Paul Moore added the comment: Updated patch with fixes for review comments. I did remove the tests for the exact error messages, as testing for a non-zero exit code was actually what I was trying to do, and I found a better way of doing that. -- Added file: http://bugs.python.org/file3

[issue17232] Improve -O docs

2015-03-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: patch review -> needs patch versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ ___ Pytho

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-21 Thread Mark Lawrence
Mark Lawrence added the comment: python35.exe follows things like pip so +1. py.exe to python.exe -1 from me, how about pylaunch.exe as it's explicit? As for urgency in the Python world Windows is and always has been the poor relation compared to *nix, so I say let's bite the bullet and get

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This exception or assertion is triggered by the bug in CPython or in an extension. CPython developer uses release and debug builds of CPython and can get both exception or assertion. An extension developer usually uses release build of CPython with release a

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-21 Thread Steve Dower
Steve Dower added the comment: Paul has basically summed up the pragmatism beats purity side of the argument. Whether we like it or not, users are mostly coming to python.org for their installer, and we need to support that. That said, we can do some things to support all three cases once we a

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-21 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka added the comment: > Why this assert is needed? Why not always raise SystemError? A SystemError exception may be ignored by a generic "except Exception: pass" or logged at debug level at then ignored. I consider that the bug is important, and t

[issue23602] Implement __format__ for Fraction

2015-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: >>> from fractions import Fraction as F >>> format(F(4, 27), 'f') '0.1481481' >>> format(F(4, 27), '.1f') '0.2' -- ___ Python tracker ___

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 970f33dff5ca by Victor Stinner in branch 'default': Issue #23571: Fix test_capi https://hg.python.org/cpython/rev/970f33dff5ca -- ___ Python tracker __

[issue23360] Content-Type when sending data with urlopen()

2015-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The documentation looks contradictory. "The *data* argument must be", but "The *data* argument may also be". "must be a bytes object", but "If *data* is a buffer". Why not write just "The data argument must be a bytes-like object, an iterable of bytes-like

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Non-Linux buildbots failed. http://buildbot.python.org/all/builders/AMD64%20Snow%20Leop%203.x/builds/2798/steps/test/logs/stdio == FAIL: test_return_result_with_error (test.test_capi.CAPITest)

[issue23723] Provide a way to disable bytecode staleness checks

2015-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Wouldn't zipimport provide better performance? If bytecode generation is thoroughly controlled, could you collect your .pyc files in a ZIP file? -- nosy: +serhiy.storchaka ___ Python tracker

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-21 Thread Paul Moore
Paul Moore added the comment: One implication of Nick's (and Steve's) position seems to me that we don't view per-user installs as a key aspect of the python.org installers. And yet the impression I get of the direction that the 3.5 installers is taking seems to contradict that - there's a def

[issue23723] Provide a way to disable bytecode staleness checks

2015-03-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Can you please provide timing numbers? -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-21 Thread STINNER Victor
STINNER Victor added the comment: > I believe that this patch exposes some subtle bugs in Django (see > https://gist.github.com/berkerpeksag/8b8dbe594eb1a1c51275) and it would be > great to add a note for third party libraries. Berker, can you please rerun your test with my new commit to check

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset f30a5f6a665c by Victor Stinner in branch 'default': Issue #23571: _Py_CheckFunctionResult() now gives the name of the function https://hg.python.org/cpython/rev/f30a5f6a665c -- ___ Python tracker

[issue23733] Update porting HOWTO for bytes interpolation

2015-03-21 Thread Brett Cannon
New submission from Brett Cannon: The porting HOWTO for Python 3.5 doesn't mention that bytes interpolation will exist. -- assignee: brett.cannon components: Documentation messages: 238804 nosy: brett.cannon priority: normal severity: normal status: open title: Update porting HOWTO for

[issue23732] Update porting HOWTO about new -b semantics

2015-03-21 Thread Brett Cannon
New submission from Brett Cannon: Thanks to http://bugs.python.org/issue23681 we now have a better story about helping people find int/bytes comparison issues. The docs for Python 3.5 -- but not Python 3.4! -- should get updated to point out this change. -- assignee: brett.cannon compo

[issue23360] Content-Type when sending data with urlopen()

2015-03-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue23042] ctypes module doesn't build on FreeBSD, RHEL (x86) - Undefined symbol "ffi_call_win32"

2015-03-21 Thread koobs
koobs added the comment: @marc I took a look at the code upstream and it does indeed appear to be the same. It was introduced in 3.1 [1]. I cant explain however how or why our Python ports work with libffi 3.2.1. See msg238767 for a link to another similar (same?) issue, with failure of OSX o

[issue23723] Provide a way to disable bytecode staleness checks

2015-03-21 Thread Brett Cannon
Brett Cannon added the comment: What Greg said. =) Basically it would allow those who know what they are doing to cut out a stat call per load. I suspect anyone deploying to a server is in a similar situation where they are not actively editing the code once deployed, and so saving on the star

[issue22619] Possible implementation of negative limit for traceback functions

2015-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Due to changes in issue17911 the patch no longer applied cleanly an should be rewritten. But changes in issue17911 are close to my patch. _tb_frame_lineno_iter matches walk_tb and _stack_frame_lineno_iter matches walk_stack. So new patch is simpler. ---

[issue23731] Implement PEP 488

2015-03-21 Thread Brett Cannon
New submission from Brett Cannon: https://www.python.org/dev/peps/pep-0488/ -- assignee: brett.cannon components: Interpreter Core messages: 238799 nosy: brett.cannon priority: release blocker severity: normal stage: test needed status: open title: Implement PEP 488 type: enhancement ver

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-21 Thread Nick Coghlan
Nick Coghlan added the comment: Short version of the above: I personally think we should be focusing on addressing the "system Python" and "Python as a library" cases upstream, as we're the only ones that can do that. Solving the latter problem well then also sets the baseline for user focused

  1   2   >