[issue8860] Rounding in timedelta constructor is inconsistent with that in timedelta arithmetics

2013-08-04 Thread Mark Dickinson
Mark Dickinson added the comment: Alexander: applying this is fine by me. As a user-visible change, yes, I think it should have a Misc/NEWS entry. (It's too small a change to be worth mentioning in the 'whatsnew' documents though.) -- ___ Python

[issue18642] enhancement for operator 'assert'

2013-08-04 Thread Mark Dickinson
Mark Dickinson added the comment: Okay, I'm closing this for now. Al Korgun and mrDoctorWho0 .: if you think this idea deserves wider discussion, you should feel free to bring it up again on the python-ideas mailing list; that's a better forum to discuss these sorts of language changes anywa

[issue18264] enum.IntEnum is not compatible with JSON serialisation

2013-08-04 Thread Ethan Furman
Ethan Furman added the comment: I don't understand. Type checks are already performed throughout the code (int, float, True, False, NaN, Inf, etc.). What will opereator.index buy us? -- ___ Python tracker __

[issue18570] OverflowError in division: wrong message

2013-08-04 Thread Mark Dickinson
Mark Dickinson added the comment: > With that fixed, I am inclined to close this. Agreed. I'll try to find some time for a PEP at some point in the next few weeks. > I had thought of a set-mode function (method), but anticipate objection > to such modal action-at-distance behavior. Yes; I'm

[issue18570] OverflowError in division: wrong message

2013-08-04 Thread Mark Dickinson
Changes by Mark Dickinson : -- resolution: -> postponed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue11033] ElementTree.fromstring doesn't work with Unicode

2013-08-04 Thread Brendan O'Connor
Brendan O'Connor added the comment: Sure, go ahead and close it. I was just trying to be helpful and report a bug in the Python standard library. I don't use Python 3.3 so cannot test it. -- nosy: +Brendan.OConnor ___ Python tracker

[issue18264] enum.IntEnum is not compatible with JSON serialisation

2013-08-04 Thread Nick Coghlan
Nick Coghlan added the comment: The two "isinstance" checks that bother me are the ones for int and float. However, given that the JSON serialiser *already* includes those explicit checks, I now think it makes sense to just do the minimal fix of coercing subclasses to the base type for both of

[issue18151] Idlelib: update to "with open ... except OSError" (in 2.7, leave IOError)

2013-08-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which replace the "open ... close" idiom to the "with open" idiom in IDLE. -- stage: commit review -> patch review Added file: http://bugs.python.org/file31144/idle_with_open.patch ___ Python tracke

[issue18151] Idlelib: update to "with open ... except OSError" (in 2.7, leave IOError)

2013-08-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which replace the "open ... close" idiom to the "with open" idiom in IDLE. -- Added file: http://bugs.python.org/file31145/idle_with_open.patch ___ Python tracker

[issue14012] Misc tarfile fixes

2013-08-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is updated for 3.4 patch. -- Added file: http://bugs.python.org/file31146/tarfile-misc-bugs-3.4.diff ___ Python tracker ___ _

[issue8865] select.poll is not thread safe

2013-08-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Gregory, could you commit the patch or allow me to do this? -- ___ Python tracker ___ ___ Python-bu

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2013-08-04 Thread Mark Dickinson
Mark Dickinson added the comment: See the related python-dev discussion started by Mark Shannon here: http://mail.python.org/pipermail/python-dev/2013-March/125022.html and continuing well into April here: http://mail.python.org/pipermail/python-dev/2013-April/125042.html The consensus that e

[issue18651] test failures on KFreeBSD

2013-08-04 Thread Matthias Klose
New submission from Matthias Klose: Some tests fail on KFreeBSD, attaching a first patch from Petr Salinger. see http://bugs.debian.org/708653 for further issues. Ronald, could you check if that this works for OSX too? -- components: Tests files: kfreebsd.diff keywords: patch messages

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2013-08-04 Thread Mark Dickinson
Mark Dickinson added the comment: New patch that replaces the TypeErrors with warnings and fixes a refleak in the original patch. -- Added file: http://bugs.python.org/file31149/issue17576_v2.patch ___ Python tracker

[issue18652] Add a “first” function to the stdlib

2013-08-04 Thread Hynek Schlawack
New submission from Hynek Schlawack: Let met try to get you sold on adding the “first” function I released on PyPI roughly a year ago: https://github.com/hynek/first It’s a very nice complement to functions like `any()` or itertools. I consists effectively of 9 lines of code but it proved ext

[issue18647] re.error: nothing to repeat

2013-08-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset e2ba4592ce3a by Serhiy Storchaka in branch '2.7': Issue #18647: Temporary disable the "nothing to repeat" check to make buildbots happy. http://hg.python.org/cpython/rev/e2ba4592ce3a -- ___ Python tracke

[issue13612] xml.etree.ElementTree says unknown encoding of a regular encoding

2013-08-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch for 2.7. -- Added file: http://bugs.python.org/file31150/expat_buffer_overflow-2.7.patch ___ Python tracker ___ __

[issue18652] Add a “first” function to the stdlib

2013-08-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The function name looks a little misleading. I expected first([0, None, False, [], (), 42]) returns 0. -- nosy: +serhiy.storchaka ___ Python tracker

[issue18201] distutils write into symlinks instead of replacing them

2013-08-04 Thread Michał Górny
Michał Górny added the comment: Oh, sorry. I've looked throughout the code again and it seems that distutils is doing the right thing. It's setuptools/distribute that is broken. -- resolution: -> invalid status: open -> closed ___ Python tracker

[issue18652] Add a “first” function to the stdlib

2013-08-04 Thread Nick Coghlan
Nick Coghlan added the comment: It's a direct counterpart to any() and all() - first([0, [], ()]) is None for the same reason that any([0, [], ()]) and all([0, [], ()]) are both False. If first returned the actual first item in the iterable (regardless of truth value), then it would just be "n

[issue13238] Add shell command helpers to subprocess module

2013-08-04 Thread Piotr Dobrogost
Changes by Piotr Dobrogost : -- nosy: +piotr.dobrogost ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue17684] Skip tests in test_socket like testFDPassSeparate on OS X

2013-08-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: Charles-Francois: why did you commit this to default only, and not to 3.3? (see also issue18651) -- nosy: +loewis ___ Python tracker ___ __

[issue18651] test failures on KFreeBSD

2013-08-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: Note that 3.4 will need a different patch, due to issue17684. -- nosy: +loewis ___ Python tracker ___ _

[issue18652] Add a “first” function to the stdlib

2013-08-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In this case it would be pointless too. It is just next(filter(key, iterable), default) Are you need a special function for combination of two builtins? -- ___ Python tracker

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2013-08-04 Thread Nick Coghlan
Nick Coghlan added the comment: The deprecation warning version looks good to me. Something I'll mention explicitly (regarding the PyCon discussions that Eric mentioned above), is that we unfortunately couldn't do something like this for the various concrete APIs with overly permissive subclas

[issue18652] Add a “first” function to the stdlib

2013-08-04 Thread Hynek Schlawack
Hynek Schlawack added the comment: `filter()` exhausts the full iterator which is potentially very expensive – like in conduction with regular expressions. -- ___ Python tracker ___

[issue18652] Add a “first” function to the stdlib

2013-08-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: I also think it should go to itertools. I also found the name "first" confusing, in particular since it means what Serhiy assumes in LISP, which might be familiar to people interested in functional list processing. Also, Ruby and Smalltalk use "first" in that

[issue18652] Add a “first” function to the stdlib

2013-08-04 Thread Nick Coghlan
Nick Coghlan added the comment: Serhiy, Hynek covered the issue with the status quo in the original proposal.The existing alternative are painful to try and decipher by comparison with the named function: filterednext([0, None, False, [], (), 42]) vs next(filter(None, [0, None, False, []

[issue18652] Add a “first” function to the stdlib

2013-08-04 Thread Hynek Schlawack
Hynek Schlawack added the comment: Ah ok sorry. Anyhow, it’s just a very common idiom that should be easy and readable. As said, I’m not married to any names at all and would happily add a compatibility package to PyPI with the new names/parameters. -- ___

[issue18652] Add a “first” function to the stdlib

2013-08-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: Nick: that the code is difficult to decipher is really the fault of functional programming, which is inherently difficult to decipher (since last function applied is written first). Explicit iteration is easier to read. I would write Hynek's example as for r

[issue18652] Add a “first” function to the stdlib

2013-08-04 Thread Nick Coghlan
Nick Coghlan added the comment: Regarding the key parameter name, I believe this is closer to itertools.groupby (which uses "key=" as an optional argument, akin to min, max and sorted) than it is to filterfalse, dropwhile or takewhile (which use "pred" as the first positional argument) The on

[issue18652] Add a “first”-like function to the stdlib

2013-08-04 Thread Hynek Schlawack
Hynek Schlawack added the comment: Martin, I don’t find the loop easier to read because you have to *remember* the `break` otherwise “weird stuff happens”. Coalesce seems common enough, I would +1 on that too. -- title: Add a “first” function to the stdlib -> Add a “first”-like functio

[issue18652] Add itertools.coalesce

2013-08-04 Thread Nick Coghlan
Nick Coghlan added the comment: (Updated the issue title to reflect the currently proposed name and location for the functionality) While I'm a fan of explicit iteration as well ("inside every reduce is a loop trying to get out"), I think the fact Martin's explicit loop is buggy (it will neve

[issue18652] Add itertools.coalesce

2013-08-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: Simplicity is in the eye of the beholder, yet... you need to remember the break when *writing* the code, so the loop might be more difficult to write (but then, I need to remember/lookup the function name and parameters for coalesce)... when reading the code,

[issue1300] subprocess.list2cmdline doesn't do pipe symbols

2013-08-04 Thread Piotr Dobrogost
Piotr Dobrogost added the comment: >Maybe the solution is to make what I was trying to do easier without >fooling with the shell instead of playing the fool's game of trying to >improve the ability to deal with the shell so we can pass things >through it unnecessarily. You are too harsh for your

[issue18653] mingw-meta: build core modules

2013-08-04 Thread Roumen Petrov
New submission from Roumen Petrov: split of issue3871 - this is meta issue only for part related to build core. Remark: build of interpreter core is in issue17605 . Now split is: - 01 issue13756 : Python make fail on cygwin - 02 issue17219 : add current dir in library path if building python st

[issue18652] Add itertools.coalesce

2013-08-04 Thread Mark Dickinson
Mark Dickinson added the comment: [Nick] > Regarding the key parameter name, I believe this is closer to > itertools.groupby ... Isn't this mostly about the return type? `pred` is an indication that a boolean is being returned (or that the return value will be interpreted in a boolean context

[issue18264] enum.IntEnum is not compatible with JSON serialisation

2013-08-04 Thread Eli Bendersky
Eli Bendersky added the comment: I also think that exchanging the explicit type checks by __index__ merits more thought and is outside the scope of this local fix. The proposed patch does not add any new type checks, but acts within the bounds of code for which the type is already established.

[issue18652] Add itertools.coalesce

2013-08-04 Thread Nick Coghlan
Nick Coghlan added the comment: Mark's rationale makes sense to me. I believe that would make the latest version of the proposed API (in the itertools module): def coalesce(iterable, default=None, pred=None): ... -- ___ Python tracker

[issue18624] Add alias for iso-8859-8-i which is the same as iso-8859-8

2013-08-04 Thread Dan Søndergaard
Dan Søndergaard added the comment: Is it satisfactory to just add the -i and -e variants to ALIASES in charset.py? Or don't they qualify as "Aliases for other commonly-used names for character sets"? -- nosy: +das ___ Python tracker

[issue18654] modernize mingw&cygwin compiler classes

2013-08-04 Thread Roumen Petrov
New submission from Roumen Petrov: Python mingw and cygwin compiler classes tests for outdated features. Also python code set some flags like zero optimization level and etc. that prevent users to build optimized python or even worse build to fail. This issue is part of split of issue3871 with

[issue13612] xml.etree.ElementTree says unknown encoding of a regular encoding

2013-08-04 Thread Eli Bendersky
Eli Bendersky added the comment: Thanks, Serhiy. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue13612] xml.etree.ElementTree says unknown encoding of a regular encoding

2013-08-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset b3efc140d8a6 by Eli Bendersky in branch '2.7': Issue #13612: Fix a buffer overflow in case of a multi-byte encoding. http://hg.python.org/cpython/rev/b3efc140d8a6 -- ___ Python tracker

[issue18647] re.error: nothing to repeat

2013-08-04 Thread Eli Bendersky
Eli Bendersky added the comment: Would it not be better to temporarily-fix the test rather than the code? -- nosy: +eli.bendersky ___ Python tracker ___ _

[issue18654] modernize mingw&cygwin compiler classes

2013-08-04 Thread Roumen Petrov
Roumen Petrov added the comment: Proposed customization allow users to build extension module for windows with GNU compiler in all environments: - native with installed official build of python for windows - native either MSYS or CYGWIN enviroment and python build with GCC - cross-build in cygwi

[issue18653] mingw-meta: build core modules

2013-08-04 Thread Roumen Petrov
Roumen Petrov added the comment: This patch require "modernize mingw&cygwin compiler classes" now opened as separate issue18654 . -- ___ Python tracker ___ _

[issue18652] Add itertools.coalesce

2013-08-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: def coalesce(iterable, default=None, pred=None): return next(filter(pred, iterable), default) Are you sure you want add this one-line function to the itertools module rather then to recipes? -- ___ Python

[issue18647] re.error: nothing to repeat

2013-08-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: All doctests affected. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue17684] Skip tests in test_socket like testFDPassSeparate on OS X

2013-08-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset b7d764807343 by Charles-Francois Natali in branch '3.3': Issue #17684: Fix some test_socket failures due to limited FD passing support http://hg.python.org/cpython/rev/b7d764807343 -- ___ Python tracker

[issue18647] re.error: nothing to repeat

2013-08-04 Thread Eli Bendersky
Eli Bendersky added the comment: Wonderfully terse, as usual. Can you be so kind to elaborate just a tiny bit more? Is the amount of doctests this affects so large that it's better to change the implementation? What are the plans for this "temporary" stage - is there an intention to fix the co

[issue17684] Skip tests in test_socket like testFDPassSeparate on OS X

2013-08-04 Thread Charles-François Natali
Charles-François Natali added the comment: > Charles-Francois: why did you commit this to default only, and not > to 3.3? I overlooked it (apparently, the issue was tagged 3.4 only, and I didn't double-check that the code was present in 3.3 as well). Should be better now! -- versions:

[issue18655] GUI apps take long to launch on Windows

2013-08-04 Thread netrick
New submission from netrick: On both Python 2 or 3, when you have GUI app (for example something in pygame or pyside or tk), when you launch it on Windows it takes about 4-6 seconds to display the Window for the first run. The next runs are faster, but only untill you reboot the PC. The thing

[issue9148] os.execve puts process to background on windows

2013-08-04 Thread Piotr Dobrogost
Changes by Piotr Dobrogost : -- nosy: +piotr.dobrogost ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue17605] mingw-meta: build interpeter core

2013-08-04 Thread Roumen Petrov
Roumen Petrov added the comment: please follow build of core modules - issue18653 . -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue18649] list2cmdline function in subprocess module handles \" sequence wrong

2013-08-04 Thread Richard Oudkerk
Richard Oudkerk added the comment: Firstly, list2cmdline() takes a list as its argument, not a string: >>> import subprocess >>> print subprocess.list2cmdline([r'\"1|2\"']) \\\"1|2\\\" But the problem with passing arguments to a batch file is that cmd.exe parses arguments differently fro

[issue6335] Add support for mingw

2013-08-04 Thread Roumen Petrov
Roumen Petrov added the comment: I would like to config that path to this issue is one of those for issue3871 - my patch for 2.6/2.7 enhanced by "?? (sorry I forgot user :( ) " for 3.0 . Now as requested "all in one patch" is split and first set is listed in issue17605 "build interpeter core"

[issue9148] os.execve puts process to background on windows

2013-08-04 Thread Matt Joiner
Changes by Matt Joiner : -- nosy: +anacrolix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue17684] Skip tests in test_socket like testFDPassSeparate on OS X

2013-08-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue9098] MSYS build fails with `S_IXGRP' undeclared

2013-08-04 Thread Roumen Petrov
Changes by Roumen Petrov : -- nosy: +rpetrov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue18652] Add itertools.coalesce

2013-08-04 Thread Hynek Schlawack
Hynek Schlawack added the comment: > def coalesce(iterable, default=None, pred=None): >return next(filter(pred, iterable), default) > > Are you sure you want add this one-line function to the itertools module > rather then to recipes? Well, for many – including me – it would mean to ha

[issue15315] Can't build Python extension with mingw32 on Windows

2013-08-04 Thread Roumen Petrov
Changes by Roumen Petrov : -- nosy: +rpetrov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue4709] Mingw-w64 and python on windows x64

2013-08-04 Thread Roumen Petrov
Changes by Roumen Petrov : -- nosy: +rpetrov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue9148] os.execve puts process to background on windows

2013-08-04 Thread Piotr Dobrogost
Piotr Dobrogost added the comment: This is unexpected and makes people wonder what's going on. See http://stackoverflow.com/q/7004687/95735 and http://stackoverflow.com/q/7264571/95735. -- ___ Python tracker _

[issue18649] list2cmdline function in subprocess module handles \" sequence wrong

2013-08-04 Thread Piotr Dobrogost
Piotr Dobrogost added the comment: I think you're missing the point. The implementation is wrong as it does not do what documentation says which is "A double quotation mark preceded by a backslash is interpreted as a literal double quotation mark." How the output of list2cmdline interacts with

[issue18655] GUI apps take long to launch on Windows

2013-08-04 Thread Ramchandra Apte
Ramchandra Apte added the comment: Can you provide a short script that reproduces this problem? AFAIK, Python doesn't display windows, the tcl/pygame libraries' C code creates the windows. -- nosy: +Ramchandra Apte ___ Python tracker

[issue2445] Use The CygwinCCompiler Under Cygwin

2013-08-04 Thread Roumen Petrov
Roumen Petrov added the comment: Hi, Now issue18654 "modernize mingw&cygwin compiler classes" contain enhancement that could be reused by this issue: patch "0007-MINGW-compiler-cygwin-provides-its-own-C-runtime.patch " from archive , i.e. lets avoid change in get_msvcr() that return. Mingw is

[issue18418] Thread.isAlive() sometimes True after fork

2013-08-04 Thread A. Jesse Jiryu Davis
A. Jesse Jiryu Davis added the comment: I'm back from a Zen retreat--no email!--will address your comments momentarily. On Fri, Aug 2, 2013 at 3:07 AM, Charles-François Natali < rep...@bugs.python.org> wrote: > > Charles-François Natali added the comment: > > I've posted another review (not sur

[issue18635] Enum sets _member_type_ to instantiated values but not the class

2013-08-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset b034418e840b by Ethan Furman in branch 'default': Close #18635: Move class level private attribute from instance to class. http://hg.python.org/cpython/rev/b034418e840b -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected

[issue18624] Add alias for iso-8859-8-i which is the same as iso-8859-8

2013-08-04 Thread R. David Murray
R. David Murray added the comment: This issue is actually about adding the aliases to the codecs module. I'm not entirely sure at this point what the canonical character set name should be for email output (which is what the ALIASES table controls). -- ___

[issue18418] Thread.isAlive() sometimes True after fork

2013-08-04 Thread A. Jesse Jiryu Davis
A. Jesse Jiryu Davis added the comment: New patch for 3.3 branch after Charles-François's critique: use _enumerate() where appropriate, and join the test thread before finishing the test. -- Added file: http://bugs.python.org/file31153/issue18418-3.patch ___

[issue18655] GUI apps take long to launch on Windows

2013-08-04 Thread netrick
netrick added the comment: The simplest way to reproduce it is: 1) Reboot your PC 2) Launch IDLE (pre-installed with Python) 3) Look how long it takes to launch and then compare that with instant launch on Linux -- ___ Python tracker

[issue18649] list2cmdline function in subprocess module handles \" sequence wrong

2013-08-04 Thread R. David Murray
R. David Murray added the comment: This is a only a duplicate of issue 1300 in the sense that that issue points out that list2cmdline has nothing to do with passing/quoting strings for cmd.exe. list2cmdline is an internal function of the subprocess module. Its docstring documents the MS C qu

[issue18649] list2cmdline function in subprocess module handles \" sequence wrong

2013-08-04 Thread R. David Murray
R. David Murray added the comment: The first line above is incomplete. I meant that issue 1300 is only a duplicate in the sense that it points out that list2cmdline implements the MS C quoting rules, *not* the cmd.exe quoting rules. -- ___ Python t

[issue18649] list2cmdline function in subprocess module handles \" sequence wrong

2013-08-04 Thread Richard Oudkerk
Richard Oudkerk added the comment: > I think you're missing the point. The implementation is wrong as it > does not do what documentation says which is "A double quotation mark > preceded by a backslash is interpreted as a literal double quotation > mark." That docstring describes how the str

[issue18652] Add itertools.coalesce

2013-08-04 Thread R. David Murray
R. David Murray added the comment: I'm not going to object to the name, since I see that it is used elsewhere in programming for the proposed meaning. But allow me to rant about the corruption of the English language here. To me, "coalesce" should involve a computation based on all of the el

[issue18649] list2cmdline function in subprocess module handles \" sequence wrong

2013-08-04 Thread R. David Murray
R. David Murray added the comment: The list form of Popen should never be used with shell=True. It would be very good if someone would propose a 'cmd.exe quote' function for the stdlib. But both of these points don't have anything to do with this issue, as far as I can see :) -- ___

[issue18484] No unit test for iso2time function from http.cookiejar module

2013-08-04 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue18656] setting function.__name__ doesn't affect repr()

2013-08-04 Thread Guido van Rossum
New submission from Guido van Rossum: In Python 3.2 and earlier: >>> def f(): pass ... >>> f.__name__ = 'g' >>> f However in Python 3.3 and later, the last line shows 'f' instead of 'g'. -- components: Interpreter Core messages: 194394 nosy: gvanrossum priority: normal severity: norma

[issue18656] setting function.__name__ doesn't affect repr()

2013-08-04 Thread Mark Dickinson
Mark Dickinson added the comment: I guess this is a direct consequence of PEP 3155 [1]. From the PEP: """ The repr() and str() of functions and classes is modified to use __qualname__ rather than __name__. """ [1] http://www.python.org/dev/peps/pep-3155/ -- nosy: +mark.dickinson, pit

[issue18656] setting function.__name__ doesn't affect repr()

2013-08-04 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue18656] setting function.__name__ doesn't affect repr()

2013-08-04 Thread STINNER Victor
STINNER Victor added the comment: Python 3.4.0a0 (default:62658d9d8926+, Aug 1 2013, 23:05:18) [GCC 4.4.1 20090725 (Red Hat 4.4.1-2)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> def func(): pass ... >>> func >>> func.__qualname__="PEP 3155" >>> func

[issue18647] re.error: nothing to repeat

2013-08-04 Thread Tim Peters
Tim Peters added the comment: Serhiy, I don't see the regexp '(?:.*$\n?)*' anywhere in doctest.py. Are you talking about the _EXAMPLE_RE regexp? That's the closest I see. If that's the case, the "nothing to repeat" error is incorrect: _EXAMPLE_RE also contains a negative lookahead assertion

[issue11798] Test cases not garbage collected after run

2013-08-04 Thread Matt McClure
Matt McClure added the comment: Michael Foord voidspace.org.uk> writes: > On 2 Aug 2013, at 19:19, Antoine Pitrou pitrou.net> wrote: > > The patch is basically ready for commit, except for a possible doc > > addition, no? > > Looks to be the case, reading the patch it looks fine. I'm currently

[issue8865] select.poll is not thread safe

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

[issue11798] Test cases not garbage collected after run

2013-08-04 Thread Matt McClure
Changes by Matt McClure : Added file: http://bugs.python.org/file31154/11798-20130803-matthewlmcclure.patch ___ Python tracker ___ ___ Python

[issue18651] test failures on KFreeBSD

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

[issue18647] re.error: nothing to repeat

2013-08-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The doctest engine uses a regexp which contains subpattern which now considered as illegal be the regexp engine (due to unlucky coincidence MAXREPEAT == sys.maxsize on 32-bit platforms). We should rewrite the _simple() function in the re module to be more sm

[issue18647] re.error: nothing to repeat

2013-08-04 Thread Tim Peters
Tim Peters added the comment: Serhiy, I'm asking you to be very explicit about which regexp in doctest.py you're talking about. If you're talking about the _EXAMPLE_RE regexp, I already explained what's going on with that. If you're talking about some other regexp, I have no idea which one y

[issue18264] enum.IntEnum is not compatible with JSON serialisation

2013-08-04 Thread Ethan Furman
Ethan Furman added the comment: This patch handles both float and int subclasses, and includes fixes/improvements from the review. -- Added file: http://bugs.python.org/file31155/issue18264.stoneleaf.02.patch ___ Python tracker

[issue18656] setting function.__name__ doesn't affect repr()

2013-08-04 Thread Madison May
Madison May added the comment: Yup, here are the relevant lines of the diff for PEP 3155: @@ -568,7 +607,7 @@ func_repr(PyFunctionObject *op) { return PyUnicode_FromFormat("", - op->func_name, op); + op->func_qualname, op); } -

[issue18264] enum.IntEnum is not compatible with JSON serialisation

2013-08-04 Thread Ethan Furman
Ethan Furman added the comment: Forgot to add float tests. Included in this patch. -- Added file: http://bugs.python.org/file31156/issue18264.stoneleaf.03.patch ___ Python tracker _

[issue16692] Support TLS 1.1 and TLS 1.2

2013-08-04 Thread Wes Turner
Wes Turner added the comment: http://docs.python.org/3.4/whatsnew/3.4.html#ssl re: Backporting to Python 2.7: maybe something like: backports.ssl (like backports.ssl_match_hostname) https://pypi.python.org/pypi/backports/ -- nosy: +westurner ___ Py

[issue11033] ElementTree.fromstring doesn't work with Unicode

2013-08-04 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue18649] list2cmdline function in subprocess module handles \" sequence wrong

2013-08-04 Thread Piotr Dobrogost
Changes by Piotr Dobrogost : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue18649] list2cmdline function in subprocess module handles \" sequence wrong

2013-08-04 Thread R. David Murray
R. David Murray added the comment: "Using the same rules as the MS C runtime" means that, given a sequence (list) of arguments, create a string that uses the same quoting that the MS C runtime uses. That is, if you have a sequence of arguments in a C program, and you want to call another wind

[issue18647] re.error: nothing to repeat

2013-08-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Serhiy, I don't see the regexp '(?:.*$\n?)*' anywhere in doctest.py. Are you > talking about the _EXAMPLE_RE regexp? That's the closest I see. Yes, it is. In my previous message I answered Eli. > If that's the case, the "nothing to repeat" error is incor

[issue18649] list2cmdline function in subprocess module handles \" sequence wrong

2013-08-04 Thread Piotr Dobrogost
Piotr Dobrogost added the comment: The docstring starts with this statement "Translate a sequence of arguments into a command line string, using the same rules as the MS C runtime:" which clearly makes the impression that function list2cmdline uses the same rules as the MS C runtime. However af

[issue18649] list2cmdline function in subprocess module handles \" sequence wrong

2013-08-04 Thread Piotr Dobrogost
Piotr Dobrogost added the comment: Sure, something like "The purpose of this function is to construct a string which will be later interpreted by MS C runtime as denoting a sequence of arguments. Because of this the string is built in such a way as to preserve the original characters when inte

[issue8860] Rounding in timedelta constructor is inconsistent with that in timedelta arithmetics

2013-08-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset f7c84ef35b00 by Alexander Belopolsky in branch 'default': Fixes #8860: Round half-microseconds to even in the timedelta constructor. http://hg.python.org/cpython/rev/f7c84ef35b00 -- nosy: +python-dev ___

[issue8860] Rounding in timedelta constructor is inconsistent with that in timedelta arithmetics

2013-08-04 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

  1   2   >