[issue18790] incorrect text in argparse add_help example

2013-08-20 Thread Michael Bikovitsky
Changes by Michael Bikovitsky : -- nosy: +Michael.Bikovitsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue18790] incorrect text in argparse add_help example

2013-08-20 Thread Michael Bikovitsky
Changes by Michael Bikovitsky : -- keywords: +patch Added file: http://bugs.python.org/file31393/doc_fix.patch ___ Python tracker ___

[issue812369] module shutdown procedure based on GC

2013-08-20 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- superseder: module shutdown procedure based on GC -> Stop purging modules which are garbage collected before shutdown ___ Python tracker ___

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

2013-08-20 Thread Mark Dickinson
Mark Dickinson added the comment: > Shouldn't it be PendingDeprecationWarning? Hmm. Possibly. I'm not sure what the policy is any more regarding DeprecationWarning versus PendingDeprecationWarning. Nick? -- ___ Python tracker

[issue18713] Enable surrogateescape on stdin and stdout when appropriate

2013-08-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > After some thought, Nick came up with this solution. The idea is that > surrogateescape was originally accepted to allow roundtripping data > from the OS and back when the OS considers it to be a "string" but > python does not consider it to be "text". When t

[issue18772] Fix gdb plugin for new sets dummy object

2013-08-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset be29efa60b68 by Raymond Hettinger in branch 'default': Issue 18772: Restore set dummy object back to unicode and restore the identity checks in lookkey(). http://hg.python.org/cpython/rev/be29efa60b68 -- nosy: +python-dev

[issue18772] Fix gdb plugin for new sets dummy object

2013-08-20 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- Removed message: http://bugs.python.org/msg195720 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue18794] select.devpoll objects have no close() method

2013-08-20 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.

[issue18738] String formatting (% and str.format) issues with Enum

2013-08-20 Thread Eric V. Smith
Eric V. Smith added the comment: On 8/20/2013 9:26 PM, Ethan Furman wrote: > Sounds like the way forward is to specify in the docs how the default > Enum __format__ behaves (basically honors width and justification > settings to yield the name, anything else passes through to the Enum > member

[issue18704] IDLE: PEP8 Style Check Integration

2013-08-20 Thread Ramchandra Apte
Ramchandra Apte added the comment: Agree with Terry Reedy. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue18796] Wrong documentation of show_code function from dis module

2013-08-20 Thread Vajrasky Kok
New submission from Vajrasky Kok: $ ./python Python 3.4.0a1+ (default:afb1b4797419, Aug 21 2013, 09:54:46) [GCC 4.7.2] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import dis >>> import sys >>> def spam(x): ... return x * 2 ... >>> dis.show_code(spam, fi

[issue18713] Enable surrogateescape on stdin and stdout when appropriate

2013-08-20 Thread Nick Coghlan
Nick Coghlan added the comment: Think sysadmins running scripts on Linux, writing to the console or a pipe. I agree the generalisation is a bad idea, so only consider the original proposal that was specifically limited to the standard streams. Specifically, if a system is properly configured to

[issue18788] Proof of concept: implicit call syntax

2013-08-20 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue14191] argparse doesn't allow optionals within positionals

2013-08-20 Thread Glenn Linderman
Glenn Linderman added the comment: So I read over your code again, and even read the documentation this time, and it all looks good, and I know it works good because I've been using the code. I tried to send a notice through Reitveld, and maybe did, but I don't know where it went, so I'll say

[issue18738] String formatting (% and str.format) issues with Enum

2013-08-20 Thread Ethan Furman
Ethan Furman added the comment: Eric V. Smith added the comment: > > this gives the (to me) surprising results of: > format(S.a) > 'S.a' format(S.a, '10') > 'S.a' format(S.a, '10s') > 'A' that is surprising: if a __format__ is defined in the Enum class chain then it should be use

[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2013-08-20 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2013-08-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Applied the fix to 2.6 and null merged into 2.7. This didn't need a NEWS entry because the regression hadn't been released yet. I'll remove 2.6 from the Versions now. -- ___ Python tracker

[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2013-08-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 84f40562669f by Barry Warsaw in branch '2.6': Fix UnboundLocalError regression due to previous incorrect fix for http://hg.python.org/cpython/rev/84f40562669f -- ___ Python tracker

[issue18738] String formatting (% and str.format) issues with Enum

2013-08-20 Thread Ethan Furman
Ethan Furman added the comment: Eli Bendersky added the comment: > > The whole point of IntEnum and replacing stdlib constants with it was > friendly str & repr out of the box. Sure, friendly str and repr plus an nice way to work them in code. > This means that "just printing out" an enum memb

[issue18713] Enable surrogateescape on stdin and stdout when appropriate

2013-08-20 Thread STINNER Victor
STINNER Victor added the comment: 2013/8/21 Nick Coghlan : > Which reminds me: I'm curious what "ls" currently does for malformed > filenames. The aim of this change would be to get 'python -c "import os; > print(os.listdir())"' to do the best it can to work without losing data in > such a situat

[issue18713] Enable surrogateescape on stdin and stdout when appropriate

2013-08-20 Thread STINNER Victor
STINNER Victor added the comment: On Linux, the locale encoding is usually UTF-8. If a filename cannot be decoded from UTF-8, invalid bytes are escaped to the surrogate range using the PEP 383. If I create a UTF-8 text file and I try to write the filename into this text file, the Python UTF-8 enc

[issue18713] Enable surrogateescape on stdin and stdout when appropriate

2013-08-20 Thread Nick Coghlan
Nick Coghlan added the comment: Which reminds me: I'm curious what "ls" currently does for malformed filenames. The aim of this change would be to get 'python -c "import os; print(os.listdir())"' to do the best it can to work without losing data in such a situation. -- _

[issue18713] Enable surrogateescape on stdin and stdout when appropriate

2013-08-20 Thread Toshio Kuratomi
Toshio Kuratomi added the comment: Nick and I had talked about this at a recent conference and came to it from different directions. On the one hand, Nick made the point that any encoding of surrogateescape'd text to bytes via a different encoding is corrupting the data as a whole. On the ot

[issue18795] pstats - allow stats sorting by cumulative time per call and total time per call

2013-08-20 Thread Alexandre Dias
New submission from Alexandre Dias: Me and a couple of colleagues have stumbled upon the need to sometimes sort our profiling stats by time (cumulative and total) per call. I believe this could be useful to other people, and have therefore opened this patch. Thanks for taking the time to look

[issue18747] Re-seed OpenSSL's PRNG after fork

2013-08-20 Thread STINNER Victor
STINNER Victor added the comment: openssl_prng_atfork5.patch: - you should use RAND_pseudo_bytes() instead of RAND_bytes() in the unit test, to not skip the test depending on the entropy - the change in Misc/NEWS is strange - please remove dead code ("#if 0") - PySSL_RAND_atfork_child() comment

[issue18782] sqlite3 row factory and multiprocessing map

2013-08-20 Thread Ned Deily
Ned Deily added the comment: I agree with Richard's comments. The crash appears to be a result of an unsupported usage of SQLite and one that Python can't really protect you from. -- resolution: -> invalid stage: -> committed/rejected status: open -> closed _

[issue14191] argparse doesn't allow optionals within positionals

2013-08-20 Thread paul j3
paul j3 added the comment: It's everything I intend to add. Now I'm just waiting for a committer to act, either with suggested changes, or a merge. I'm watching more than a dozen argparse patches. -- ___ Python tracker

[issue18747] Re-seed OpenSSL's PRNG after fork

2013-08-20 Thread Christian Heimes
Changes by Christian Heimes : Added file: http://bugs.python.org/file31390/openssl_prng_atfork5.patch ___ Python tracker ___ ___ Python-bugs-l

[issue18747] Re-seed OpenSSL's PRNG after fork

2013-08-20 Thread Christian Heimes
Changes by Christian Heimes : Removed file: http://bugs.python.org/file31389/openssl_prng_atfork5.patch ___ Python tracker ___ ___ Python-bugs

[issue18747] Re-seed OpenSSL's PRNG after fork

2013-08-20 Thread Christian Heimes
Christian Heimes added the comment: Thanks Victor, it sounds like a good suggestion. I have modified my patch to use _PyTime_gettimeofday(). Python 2.7 doesn't have _PyTime_gettimeofday() so I'm going to use time(NULL). -- Added file: http://bugs.python.org/file31389/openssl_prng_atfor

[issue16853] add a Selector to the select module

2013-08-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, I suppose it waits on Charles-François to update the patch. I'd prefer not to add a separate module for this, personally. I think this functionality is fine in the select module. People who know how to use a selector certainly have heard about select() o

[issue18794] select.devpoll objects have no close() method

2013-08-20 Thread Guido van Rossum
Guido van Rossum added the comment: This all sounds fine to fix without waiting for anything else -- can you attach a patch here? -- ___ Python tracker ___ _

[issue16853] add a Selector to the select module

2013-08-20 Thread Guido van Rossum
Guido van Rossum added the comment: I've lost track -- who is waiting for whom? I reviewed the patch selector-12.diff and received zero response AFAICT. (Maybe the email from Rietveld didn't make it?) I'd like to get this into alpha2, even if the proactor won't make it (though I'd love to s

[issue18794] select.devpoll objects have no close() method

2013-08-20 Thread STINNER Victor
STINNER Victor added the comment: See also issue #16853 "add a Selector to the select module". -- ___ Python tracker ___ ___ Python-bu

[issue16853] add a Selector to the select module

2013-08-20 Thread STINNER Victor
STINNER Victor added the comment: FYI I created the issue #18794: "select.devpoll objects have no close() method". If this method is added, it should also be called by the close() method of the selector. -- nosy: +haypo ___ Python tracker

[issue18794] select.devpoll objects have no close() method

2013-08-20 Thread STINNER Victor
New submission from STINNER Victor: select.epoll and select.kqueue objects have a close() method, but not select.poll objects, whereas all these objects store internally a file descriptor. select.poll lacks also a fileno() method. I added the fileno() method in my implementation of the PEP 44

[issue18772] Fix gdb plugin for new sets dummy object

2013-08-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'll get on it this evening. Please be patient. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue17442] code.InteractiveInterpreter doesn't display the exception cause

2013-08-20 Thread Claudiu.Popa
Claudiu.Popa added the comment: Here's an updated patch for the stdlib, with adapted tests. -- keywords: +patch nosy: +Claudiu.Popa Added file: http://bugs.python.org/file31388/code.patch ___ Python tracker ___

[issue18793] occasional test_multiprocessing_forkserver failure on FreeBSD 10.0

2013-08-20 Thread Antoine Pitrou
New submission from Antoine Pitrou: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.0%203.x/builds/243 [259/379] test_multiprocessing_forkserver Process Process-246: Traceback (most recent call last): File "/usr/home/buildbot/koobs-freebsd10/3.x.koobs-freebsd10/build/Lib/multipro

[issue18792] test_ftplib timeouts

2013-08-20 Thread Antoine Pitrou
New submission from Antoine Pitrou: Some ftplib tests sometimes time out. Seem they seem to try to connect to "localhost" (rather than "127.0.0.1"), I was wondering if this could be a DNS issue and if we should resolve "localhost" in advance like Charles-François did for some other tests (or s

[issue18791] PIL freeze reading Jpeg file

2013-08-20 Thread lolo27
New submission from lolo27: With this Python program and 20070517-152405_lovers_4 (copie).jpg (this file is ok whith Gimp and others programs). Program "freeze" ( line print "Done" is not processing). - from PIL import Image from PIL.ExifTags import

[issue18791] PIL freeze reading Jpeg file

2013-08-20 Thread Ezio Melotti
Ezio Melotti added the comment: PIL is not part of the standard library, you should report this on the PIL bug tracker. -- nosy: +ezio.melotti resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue14971] (unittest) loadTestsFromName does not work on method with a decorator

2013-08-20 Thread Claudiu.Popa
Claudiu.Popa added the comment: The patch for Python 2.7 is pretty similar with the one provided for Python 3. -- nosy: +Claudiu.Popa Added file: http://bugs.python.org/file31386/unittest_method_name_difference_27.patch ___ Python tracker

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

2013-08-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Shouldn't it be PendingDeprecationWarning? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18592] IDLE: Unit test for SearchDialogBase.py

2013-08-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: For next edit -- docstring for class SearchDialogBase: > +a row of standard radiobuttons (create_option_buttons); This is wrong -- these are Checkbuttons > +a row of dialog specific radiobuttons (create_other_buttons). dialog-specific Radiobuttons

[issue18704] IDLE: PEP8 Style Check Integration

2013-08-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Summary: I am in favor of making more Python code analysis available from within Idle. I have an alternate, more generalized proposal. I am opposed to this specific proposal and think this issue should be closed. Alternatives: when and how to analyze. 1. Loca

[issue18790] incorrect text in argparse add_help example

2013-08-20 Thread purplezephyr
New submission from purplezephyr: The last example under add_help in the documentation for the argparse module has incorrect text. It is supposed to demonstrate what happens when prefix_chars doesn't include '-', and add_help is True, but the example has the following: usage: PROG [-h]

[issue3158] Doctest fails to find doctests in extension modules

2013-08-20 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue3158] Doctest fails to find doctests in extension modules

2013-08-20 Thread Zachary Ware
Zachary Ware added the comment: Ping! Anyone able to do a review of this patch? It still applies cleanly to default (or even 3.3, if this qualifies as a bug rather than a new feature). -- ___ Python tracker _

[issue13461] Error on test_issue_1395_5 with Python 2.7 and VS2010

2013-08-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for the report Sébastien. Thank you for the patch Yogesh. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed versions: -Python 3.2 ___ Python tracker

[issue8865] select.poll is not thread safe

2013-08-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for the report and the patch Christian. -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue18786] test_multiprocessing_spawn crashes under PowerLinux

2013-08-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks David! The test_gdb failure is another issue (not PowerLinux-specific), see issue18772. -- resolution: -> invalid status: open -> closed ___ Python tracker ___

[issue8865] select.poll is not thread safe

2013-08-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 072ba5df77e4 by Serhiy Storchaka in branch '3.3': Issue #8865: Concurrent invocation of select.poll.poll() now raises a http://hg.python.org/cpython/rev/072ba5df77e4 New changeset 4543408e2ba6 by Serhiy Storchaka in branch 'default': Issue #8865: Co

[issue18786] test_multiprocessing_spawn crashes under PowerLinux

2013-08-20 Thread David Edelsohn
David Edelsohn added the comment: The crash seems to have been due to another user abusing the buildslave system. The remaining failure is a mis-match in the expected GDB output. AssertionError: "{, 'b'}" != "{'b'}" - {, 'b'} + {'b'} -- ___ Python t

[issue13461] Error on test_issue_1395_5 with Python 2.7 and VS2010

2013-08-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 826233404be8 by Serhiy Storchaka in branch '3.3': Issue #13461: Fix a crash in the TextIOWrapper.tell method on 64-bit platforms. http://hg.python.org/cpython/rev/826233404be8 New changeset 6c9d49b8e3ec by Serhiy Storchaka in branch 'default': Issue

[issue18788] Proof of concept: implicit call syntax

2013-08-20 Thread Nick Coghlan
Nick Coghlan added the comment: To clarify how my patch works: leaving out the parentheses is permitted *only* when the call is a statement unto itself. That's how it avoids conflicting with any existing syntax like "a *b" or "a **b": the parser consumes those as part of the initial expression, s

[issue12641] Remove -mno-cygwin from distutils

2013-08-20 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue18326] Mention 'keyword only' for list.sort, improve glossary.

2013-08-20 Thread Zachary Ware
Zachary Ware added the comment: How about this? -- Added file: http://bugs.python.org/file31385/issue18326.v2.diff ___ Python tracker ___

[issue18704] IDLE: PEP8 Style Check Integration

2013-08-20 Thread Ezio Melotti
Ezio Melotti added the comment: > I think modern editors are expected to have this sort of functionality > built into them [1]. Mine doesn't :) > XCode is simply amazing where it will pop up errors and quote the C99 > standard [2]. That's a standard though, the ones in PEP8 are just conventio

[issue18512] sys.stdout.write does not allow bytes in Python 3.x

2013-08-20 Thread Ezio Melotti
Ezio Melotti added the comment: > A workaround is to perform sys.stdout.flush() before > sys.stdout.buffer.write(). FWIW you can just use print(..., flush=True) from 3.3+. -- ___ Python tracker __

[issue18788] Proof of concept: implicit call syntax

2013-08-20 Thread Alex Gaynor
Alex Gaynor added the comment: I suppose I'm one of the more qualified people to comment on how Ruby does it: a mess of hacks in the lexer/parser. Ruby's case is complicated by the fact that a bare `foo` can either be a local variable or a method call on self. Consider the case `a +b`, should

[issue18788] Proof of concept: implicit call syntax

2013-08-20 Thread Guido van Rossum
Guido van Rossum added the comment: Well aren't there other languages (Ruby, Coffeescript) that have the same syntax? How do they do it? (Haskell does it too, but I don't think we can learn from it -- but in Ruby and IIRC Coffeescsript it is syntactic sugar for a regular call.) Heck, even P

[issue18786] test_multiprocessing_spawn crashes under PowerLinux

2013-08-20 Thread David Edelsohn
David Edelsohn added the comment: I am not certain what is going on. Only 3.x appears to be affected, but the problems seem somewhat intermittent. There were some strange processes of another user running on the buildslave, which was driving the load up very high. I have killed the processes a

[issue17348] Unicode - encoding seems to be lost for inputs of unicode chars in IDLE

2013-08-20 Thread irdb
Changes by irdb : -- nosy: +irdb ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman

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

2013-08-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue8865] select.poll is not thread safe

2013-08-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: gregory.p.smith -> serhiy.storchaka versions: -Python 3.2 ___ Python tracker ___ ___ Python

[issue18788] Proof of concept: implicit call syntax

2013-08-20 Thread Ramchandra Apte
Ramchandra Apte added the comment: I do not see much use of of implicit call syntax, a good editor will autocomplete the brackets. -- nosy: +Ramchandra Apte ___ Python tracker _

[issue18789] XML Vunerability Table Unclear

2013-08-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +XML versions: -Python 3.2, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list maili

[issue18788] Proof of concept: implicit call syntax

2013-08-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I like a parens-less call syntax, but it is unpythonic and even anti-pythonic. It can be good in some other language (like Forth or Tcl, may be Perl or Ruby) but not in Python. It requires some other coordinated features (a syntax to obtaining a reference to

[issue18787] Misleading error from getspnam function of spwd module

2013-08-20 Thread Vajrasky Kok
Vajrasky Kok added the comment: Sorry about that. Okay, so for now, we wait for other people's suggestion, which way we should use to handle this situation? -- ___ Python tracker _

[issue10388] spwd returning different value depending on privileges

2013-08-20 Thread Vajrasky Kok
Vajrasky Kok added the comment: Attached the patch to raise OSError instead of returning empty list if a normal user uses getspall function of spwd module. I investigated about this issue. There exists situation where /etc/shadow file does not exist: https://bugs.kde.org/show_bug.cgi?id=117202

[issue18789] XML Vunerability Table Unclear

2013-08-20 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue18789] XML Vunerability Table Unclear

2013-08-20 Thread Joe Tennies
New submission from Joe Tennies: EASY This is an issue with the 2.x and 3.x documentation. http://docs.python.org/3.2/library/xml.html#xml-vulnerabilities http://docs.python.org/dev/library/xml.html#xml-vulnerabilities http://docs.python.org/2/library/xml.html#xml-vulnerabilities This section

[issue17087] Improve the repr for regular expression match objects

2013-08-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue18788] Proof of concept: implicit call syntax

2013-08-20 Thread Nick Coghlan
Nick Coghlan added the comment: As Serhiy's examples show, the ambiguities this introduces get confusing fast. A more constrained version that (for example) permitted only name references for the callable could resolve that, but it's probably still a bad idea. Still, interesting to know it is

[issue10388] spwd returning different value depending on privileges

2013-08-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue18787. -- nosy: +akuchling, loewis, serhiy.storchaka versions: +Python 3.3, Python 3.4 -Python 3.1, Python 3.2 ___ Python tracker __

[issue18787] Misleading error from getspnam function of spwd module

2013-08-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was not a suggestion, it was a doubt. See also issue10388. -- nosy: +akuchling ___ Python tracker ___

[issue17087] Improve the repr for regular expression match objects

2013-08-20 Thread Claudiu.Popa
Claudiu.Popa added the comment: Here's my patch attempt. The repr of a match object has the following format: (groups=\d+, span=(start, end), group0=the entire group or the first X characters, where X is represented by a new constant in sre_constants.h, SRE_MATCH_REPR_SIZE). -- keyword

[issue18606] Add statistics module to standard library

2013-08-20 Thread Mark Dickinson
Mark Dickinson added the comment: I agree with Oscar about sum for decimal.Decimal. The *ideal* sum for Decimal instances would return the correctly rounded result (i.e., the exact result, rounded to the current context just once using the current rounding mode). It seems wrong to give a gua

[issue18787] Misleading error from getspnam function of spwd module

2013-08-20 Thread Vajrasky Kok
Vajrasky Kok added the comment: Attached the patch to accomodate Serhiy Storchaka's suggestion by using KeyError exception for backward compatibility. -- Added file: http://bugs.python.org/file31382/fix_error_message_getspnam_v2.patch ___ Python trac

[issue18783] No more refer to Python "long"

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

[issue18788] Proof of concept: implicit call syntax

2013-08-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Ambiguous cases (such as "expr * expr" and "expr ** expr") obey the rule that > implicit calls are very *low* precedence, so you have to use parens to force > the call interpretation. Does "a + b c" mean "(a + b)(c)"? Does "a + b (c)" mean "(a + b)((c))"?

[issue18787] Misleading error from getspnam function of spwd module

2013-08-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PyErr_SetFromErrno(PyExc_OSError) looks more appropriate for permission denied error. However this change is backward incompatible so perhaps we have to left a KeyError. -- nosy: +loewis, serhiy.storchaka stage: -> test needed _

[issue18788] Proof of concept: implicit call syntax

2013-08-20 Thread Peter Otten
Peter Otten added the comment: > a bare expression is not call Wouldn't that silently swallow a lot of bare print statements? -- nosy: +peter.otten ___ Python tracker ___

[issue18788] Proof of concept: implicit call syntax

2013-08-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > In addition to being a pain at the interactive prompt Just type "pr" and the "print(" call will be auto-completed. (with TAB-completion being enabled by default in 3.4 ;-)) > the change of print from a statement to a function has also been noted > as one of

[issue18772] Fix gdb plugin for new sets dummy object

2013-08-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > In other words, we're paying a price for the dummy object being > printable as a string. Which is pointless, I agree. > Antoine, thanks to the link to the python-dev discussion. I hope we > can come with a solution that doesn't involve going back to unicode