[issue16612] Integrate "Argument Clinic" specialized preprocessor into CPython trunk

2012-12-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > What lines end with a colon? > > He probably means semicolon, for example: > > +int dir_fd = DEFAULT_DIR_FD; > +default=None Oops, yes, sorry. Semicolon indeed. -- ___ Python tracker

[issue16612] Integrate "Argument Clinic" specialized preprocessor into CPython trunk

2012-12-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: > What lines end with a colon? He probably means semicolon, for example: +int dir_fd = DEFAULT_DIR_FD; +default=None -- ___ Python tracker ___

[issue16612] Integrate "Argument Clinic" specialized preprocessor into CPython trunk

2012-12-09 Thread Larry Hastings
Larry Hastings added the comment: What lines end with a colon? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue16580] Add examples to int.to_bytres and int.from_bytes

2012-12-09 Thread Paddy McCarthy
Paddy McCarthy added the comment: On 09/12/2012 10:55, Ezio Melotti wrote: > Ezio Melotti added the comment: > > Usually we add plain Python equivalents when they are simple enough that the > code equivalent is as understandable as the prose or more (see for example > http://docs.python.org/3/l

[issue10852] SSL/TLS sni use in smtp, pop, imap, nntp, ftp client libs by default

2012-12-09 Thread danblack
danblack added the comment: the one error in the previous review corrected. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2012-12-09 Thread Ben Hoyt
Ben Hoyt added the comment: Actually, I was suggesting using the hardcoded types for Windows only (i.e., only removing read_windows_registry). Several bugs have been opened on problems with the Windows registry mimetypes, but as far as I know this isn't an issue on Linux -- in other words, if

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2012-12-09 Thread Dave Chambers
Dave Chambers added the comment: > removing read_windows_registry() If you're suggesting hardcoding *ALL* the mimetypes for *ALL* OSes, I think that's probably the best overall solution. No variability, as fast as can be. The downside is that there would occasionally be an unrecognized type, thu

[issue8109] Server-side support for TLS Server Name Indication extension

2012-12-09 Thread danblack
danblack added the comment: I've added a full set of alert descriptions and cleaned up the doco some more. The reference counting when the SNI callback comes in is my greatest worry. -- Added file: http://bugs.python.org/file28271/issue-8109-sni-serverside.patch ___

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2012-12-09 Thread Ben Hoyt
Ben Hoyt added the comment: Either way -- this needs to be reverted or fixed. It's a nasty gotcha for folks writing Python web services at the moment. I'm still for reverting, per my reasons above. Dave Chambers, I'm not for "faster but broken" but for "faster and fixed" -- from what I've sho

[issue16654] IDLE problems with Mac OS 10.6.8 ("print syntax")

2012-12-09 Thread stephenhohs
stephenhohs added the comment: You are right. Thanks Stephen M. Hohs smh...@aol.com -- ___ Python tracker ___ ___ Python-bugs-list

[issue16654] IDLE problems with Mac OS 10.6.8 ("print syntax")

2012-12-09 Thread R. David Murray
R. David Murray added the comment: The statement print "hello world" is indeed invalid syntax in Python3. -- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue16629] IDLE: Calltips test fails due to int docstring change

2012-12-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: I created issue 16655 for the three test failures I observed above. -- ___ Python tracker ___ ___ Py

[issue16655] IDLE list.append calltips test failures

2012-12-09 Thread Chris Jerdonek
New submission from Chris Jerdonek: There are three IDLE test failures in the 3.2 branch: $ ./python.exe Lib/idlelib/CallTips.py list.append - expected 'L.append(object) -> None -- append object to end' - but got 'L.append(object) -- append object to end' [].append - expected 'L.append(object)

[issue16629] IDLE: Calltips test fails due to int docstring change

2012-12-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks a lot, Roger! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue16629] IDLE: Calltips test fails due to int docstring change

2012-12-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 181c170c6270 by Chris Jerdonek in branch '3.2': Issue #16629: Fix IDLE idlelib.CallTips test. Patch by Roger Serwy. http://hg.python.org/cpython/rev/181c170c6270 New changeset 5182cc18b7b4 by Chris Jerdonek in branch '3.3': Issue #16629: Merge IDLE

[issue14783] Make int() and str() docstrings correct

2012-12-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 181c170c6270 by Chris Jerdonek in branch '3.2': Issue #16629: Fix IDLE idlelib.CallTips test. Patch by Roger Serwy. http://hg.python.org/cpython/rev/181c170c6270 -- ___ Python tracker

[issue16629] IDLE: Calltips test fails due to int docstring change

2012-12-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: FYI, in the 3.2 branch I get 4 failures rather than just the one due to int: $ ./python.exe Lib/idlelib/CallTips.py int - expected 'int(x[, base]) -> integer' - but got 'int(x=0) -> integer' list.append - expected 'L.append(object) -> None -- append object to e

[issue16049] Create abstract base classes by inheritance rather than a direct invocation of __metaclass__

2012-12-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 The patch looks fine. Éric do you want to apply it? -- ___ Python tracker ___ ___ Python-bugs

[issue16651] Find out what stdlib modules lack a pure Python implementation

2012-12-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: Would it make sense for this list to be somehow reflected in or be reconstructible from the documentation? -- nosy: +chris.jerdonek ___ Python tracker

[issue16654] IDLE problems with Mac OS 10.6.8 ("print syntax")

2012-12-09 Thread stephenhohs
New submission from stephenhohs: Numerous attempts were made to install (and deinstall) IDLE along with getting the recommended version of ActiveTCL. IDLE will always give a print syntax error with one liners print "hello, world". This is occurring for Mac OS 10.6.8 -- components: ID

[issue7741] Allow multiple statements in code.InteractiveConsole.push

2012-12-09 Thread Chris Withers
Changes by Chris Withers : -- nosy: -cjw296 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16649] Add a PyCF_DISPLAY_EXPRESSION_RESULTS flag

2012-12-09 Thread Nick Coghlan
Nick Coghlan added the comment: Not when the string is provided as one big block of text. I haven't checked yet if including a blank line after compound statements makes a difference, though. -- ___ Python tracker

[issue16653] reference kept in f_locals prevents the tracing/profiling of a destructor

2012-12-09 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +georg.brandl versions: +Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list maili

[issue16653] reference kept in f_locals prevents the tracing/profiling of a destructor

2012-12-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: Tracing/profiling is disabled when tstate->tracing is true or tstate->use_tracing is false. The proposed patch fixes the problem by reducing the scope where this condition is true. As a consequence call_trace, profile_trampoline, trace_trampoline and call_trampo

[issue16582] Tkinter calls SystemExit with string

2012-12-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. Thanks. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue16582] Tkinter calls SystemExit with string

2012-12-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset fed68e0bce53 by Andrew Svetlov in branch '3.2': Issue #16582: use int exit code in tkinter._exit http://hg.python.org/cpython/rev/fed68e0bce53 New changeset e39677feabe0 by Andrew Svetlov in branch '3.3': Issue #16582: use int exit code in tkinter._

[issue11122] bdist_rpm should use rpmbuild, not rpm

2012-12-09 Thread Eric V. Smith
Eric V. Smith added the comment: I agree on just switching to rpmbuild, at least for 3.4. -- ___ Python tracker ___ ___ Python-bugs-li

[issue16653] reference kept in f_locals prevents the tracing/profiling of a destructor

2012-12-09 Thread Xavier de Gaye
New submission from Xavier de Gaye: The following debugging session, run with python on the default branch, shows that pdb does not stop in __del__ when it is invoked. The reason is: - The destructor is not called when processing the 'c = 1' statement because foo frame.f_locals owns a ref

[issue16634] urllib.error.HTTPError.reason is not documented

2012-12-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for raising the bug and patch, Berker Peksag. Fixed in all versions. -- nosy: +orsenthil resolution: -> fixed status: open -> closed ___ Python tracker __

[issue13211] urllib2.HTTPError does not have 'reason' attribute.

2012-12-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset e1ba514ddcd2 by Senthil Kumaran in branch '3.2': Fix issue13211 - Document the reason attribute for urllib.error.HTTPError http://hg.python.org/cpython/rev/e1ba514ddcd2 -- ___ Python tracker

[issue16308] Undocumented (?) behaviour change in argparse from 3.2.3 to 3.3.0

2012-12-09 Thread telmich
telmich added the comment: Anyone alive at bugs.python.org? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16652] socket.getfqdn docs are not explicit enough about the algorithm.

2012-12-09 Thread R. David Murray
New submission from R. David Murray: >From the docs it isn't quite clear if getfqnd() does the equivalent of: gethostbyaddr('127.0.0.1') or gethostbyaddr(gethostbyname(gethostname())) It matters which it is, when debugging a host's name configuration and DNS server problems. --

[issue16651] Find out what stdlib modules lack a pure Python implementation

2012-12-09 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16612] Integrate "Argument Clinic" specialized preprocessor into CPython trunk

2012-12-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le dimanche 09 décembre 2012 à 19:20 +, Stefan Krah a écrit : > > If I'm the only one who is slightly bothered by the aesthetic and readability > aspects, then 5) obviously need not be discussed. You're not the only one. The vertical space argument also res

[issue16612] Integrate "Argument Clinic" specialized preprocessor into CPython trunk

2012-12-09 Thread Larry Hastings
Larry Hastings added the comment: I disagree that the Clinic DSL is "verbose". Certainly I find it more succinct than what we do now. On the other hand, the syntax you proposed in the python-dev message you cite is insufficient to the task. Consider a function that takes a "char *". How might

[issue16612] Integrate "Argument Clinic" specialized preprocessor into CPython trunk

2012-12-09 Thread Stefan Krah
Stefan Krah added the comment: Here are some things that I'm interested in right now: 1) From what kind of data structure are signature objects generated? 2) Is there an easy way to do this manually? 3) Can at least part of the verboseness go into header files (virtually all com

[issue16651] Find out what stdlib modules lack a pure Python implementation

2012-12-09 Thread Christian Heimes
Christian Heimes added the comment: hashlib backends (md5, sha1, sha256 / 384 / 512) either through openssl wrappers or implementations based on libtomcrypt. -- nosy: +christian.heimes ___ Python tracker _

[issue16651] Find out what stdlib modules lack a pure Python implementation

2012-12-09 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue16651] Find out what stdlib modules lack a pure Python implementation

2012-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: array audioop binascii random re struct xml.parsers.expat cjkcodecs zlib, bz2, lzma and crypts also can be implemented in pure Python. -- nosy: +serhiy.storchaka ___ Python tracker

[issue16651] Find out what stdlib modules lack a pure Python implementation

2012-12-09 Thread Brett Cannon
New submission from Brett Cannon: I'm wondering which modules in the stdlib lack pure Python implementations (and could legitimately have one, e.g. sqlite can't really have a pure Python implementation). Once we know how big/small the list is a decision could be made as to whether to take on t

[issue16650] Popen._internal_poll() references errno.ECHILD outside of the local scope

2012-12-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: it's a potential bug. your patch looks good. as for _handle_exitstatus referring to SubprocessError, that is fine. In that situation it is trying to raise the exception and the only time that would ever be a problem is when called by the gc during a __del_

[issue15955] gzip, bz2, lzma: add option to limit output size

2012-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > you can just stick "if not output: continue" before it. And then hang. Because d.unconsumed_tail is not empty and no new data will be read. > Why is this necessary? If unconsumed_tail is b'', then there's no need to > prepend it (and the concatenation woul

[issue16650] Popen._internal_poll() references errno.ECHILD outside of the local scope

2012-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm just asking if this is a bug. If using building exceptions is safe, then we can get rid of _os_error and _ECHILD in 3.3+, using OSError and ChildProcessError instead. -- ___ Python tracker

[issue16650] Popen._internal_poll() references errno.ECHILD outside of the local scope

2012-12-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: The patch LGTM. About _handle_exitstatus: I guess nothing wrong to fix it also. -- ___ Python tracker ___ __

[issue16647] LMTP.connect() loses socket error details

2012-12-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file28264/smtplib_LMTP_connect_raise_err.patch ___ Python tracker ___ ___

[issue16647] LMTP.connect() loses socket error details

2012-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patch updated. It can be simpler. -- Added file: http://bugs.python.org/file28269/smtplib_LMTP_connect_raise_err_2.patch ___ Python tracker _

[issue16616] test_poll.PollTests.poll_unit_tests() is dead code

2012-12-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5a022c21ad84 by Richard Oudkerk in branch 'default': Issue #16616: Enable test in test_poll which was (accidentally?) disabled http://hg.python.org/cpython/rev/5a022c21ad84 -- nosy: +python-dev ___ Python

[issue16649] Add a PyCF_DISPLAY_EXPRESSION_RESULTS flag

2012-12-09 Thread Benjamin Peterson
Benjamin Peterson added the comment: I'm sort of surprised "single" doesn't handle that already. Should it not? -- ___ Python tracker ___

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

2012-12-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 03b3124e9ea3 by Antoine Pitrou in branch '3.1': Issue #16248: Disable code execution from the user's home directory by tkinter when the -E flag is passed to Python. http://hg.python.org/cpython/rev/03b3124e9ea3 -- status: pending -> open _

[issue16490] "inspect.getargspec()" and "inspect.getcallargs()" don't work for builtins

2012-12-09 Thread Berker Peksag
Berker Peksag added the comment: This looks like a duplicate of issue 1748064. -- nosy: +berker.peksag ___ Python tracker ___ ___ Pyth

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

2012-12-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed. I will let Benjamin and Barry decide whether this deserves backporting to security branches. Benjamin, Barry, please do your job :) -- nosy: +barry, benjamin.peterson resolution: -> fixed stage: -> committed/rejected status: open -> pending __

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

2012-12-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 822b472eff13 by Antoine Pitrou in branch '2.7': Issue #16248: Disable code execution from the user's home directory by tkinter when the -E flag is passed to Python. http://hg.python.org/cpython/rev/822b472eff13 -- _

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

2012-12-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset d8300842a0e9 by Antoine Pitrou in branch '3.2': Issue #16248: Disable code execution from the user's home directory by tkinter when the -E flag is passed to Python. http://hg.python.org/cpython/rev/d8300842a0e9 New changeset 10d04bdb05ab by Antoine

[issue16632] Enable DEP and ASLR

2012-12-09 Thread Christian Heimes
Christian Heimes added the comment: DEP isn't much of an issue. It's automatically disabled for the entire process when one library w/o DEP is loaded. -- ___ Python tracker ___

[issue16632] Enable DEP and ASLR

2012-12-09 Thread Lukas Lueg
Lukas Lueg added the comment: Only way to be sure: Enable & announce for 3.5 and wait for bug reports -- nosy: +ebfe ___ Python tracker ___ __

[issue13390] Hunt memory allocations in addition to reference leaks

2012-12-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed and pushed! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue13390] Hunt memory allocations in addition to reference leaks

2012-12-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset c40f4c19d20b by Antoine Pitrou in branch 'default': Issue #13390: New function :func:`sys.getallocatedblocks()` returns the number of memory blocks currently allocated. http://hg.python.org/cpython/rev/c40f4c19d20b -- nosy: +python-dev ___

[issue15955] gzip, bz2, lzma: add option to limit output size

2012-12-09 Thread Nadeem Vawda
Nadeem Vawda added the comment: >> # Using zlib's interface >> while not d.eof: >> compressed = d.unconsumed_tail or f.read(8192) >> if not compressed: >> raise ValueError('End-of-stream marker not found') >> output = d.decompress(compressed, 8192) >>

[issue16650] Popen._internal_poll() references errno.ECHILD outside of the local scope

2012-12-09 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue13512] ~/.pypirc created insecurely

2012-12-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you Eric! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue11159] Sax parser crashes if given unicode file name

2012-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: However Python doesn't work with bytes filenames (I don't think this is a bug). The proposed patch allows unicode filenames be used in SAX parser. -- keywords: +patch nosy: +serhiy.storchaka stage: -> patch review Added file: http://bugs.python.org/f

[issue7741] Allow multiple statements in code.InteractiveConsole.push

2012-12-09 Thread Nick Coghlan
Nick Coghlan added the comment: Good to know - I guess in most circumstances copy-and-paste already works, because the input will be arriving via a line-buffered IO stream. I was thinking that with #16649 implemented, it would be possible to simply switch from "single" to "exec", without users

[issue16326] distutils build_ext fails to set library_dirs in 2.7.2 on Linux

2012-12-09 Thread Vinay Sajip
Vinay Sajip added the comment: > Vinay, do you think dereferencing sys.executable could lead to trouble with > venvs? It could - the venv code looks for a venv configuration file relative to sys.executable, which could be a symlink into a system-wide Python installation. Resolving the symlink

[issue16580] Add examples to int.to_bytres and int.from_bytes

2012-12-09 Thread Ezio Melotti
Ezio Melotti added the comment: Usually we add plain Python equivalents when they are simple enough that the code equivalent is as understandable as the prose or more (see for example http://docs.python.org/3/library/functions.html#all, or the itertools functions you mentioned). For this case

[issue16580] Add examples to int.to_bytres and int.from_bytes

2012-12-09 Thread Paddy McCarthy
Paddy McCarthy added the comment: On 06/12/2012 14:31, Ezio Melotti wrote: > Ezio Melotti added the comment: > > I agree. The examples in the doc seem clear to me, whereas the ones you > proposed are not as clear. Do you think there's something that they don't > currently cover that should be

[issue7330] PyUnicode_FromFormat: implement width and precision for %s, %S, %R, %V, %U, %A

2012-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I found one bug and add some nitpicks and optimization suggestion on Rietveld. -- nosy: +serhiy.storchaka ___ Python tracker ___ __

[issue7741] Allow multiple statements in code.InteractiveConsole.push

2012-12-09 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Sounds fine. Just a note to my original intent in #7741: We were using the InteractiveConsole class to implement a remote web-based console for our EVE servers. Often, as a means to hot-fix certain issues, we would paste code snippets into these window