[issue20022] Eliminate the use of the deprecated bundlebuilder.py script in OS X builds

2014-03-30 Thread Ned Deily
Ned Deily added the comment: Thanks for the patch, Ronald. I modified it a bit and also removed bundlebuilder.py from the source tree. Applied for release in 3.5.0. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed title: "modernize" the Mac bun

[issue21074] Too aggressive constant folding

2014-03-30 Thread STINNER Victor
STINNER Victor added the comment: The change that I proposed (check parameters before compute the result is simple), whereas implementing a new optimizer working on the AST requires much more work. -- ___ Python tracker

[issue21101] Extend the PyDict C API to handle cases where the hash value in known

2014-03-30 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- components: Interpreter Core files: known_hash.diff keywords: patch nosy: rhettinger priority: normal severity: normal stage: patch review status: open title: Extend the PyDict C API to handle cases where the hash value in known type: enhancement version

[issue21101] Extend the PyDict C API to handle cases where the hash value in known

2014-03-30 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file34667/applied_known_hash.diff ___ Python tracker ___ ___ Python-bugs-lis

[issue21101] Extend the PyDict C API to handle cases where the hash value in known

2014-03-30 Thread Raymond Hettinger
New submission from Raymond Hettinger: Propose adding two functions, PyDict_GetItem_KnownHash() and PyDict_SetItem_KnownHash(). It is reasonably common to make two successive dictionary accesses with the same key. This results in calling the hash function twice to compute the same result. F

[issue21101] Extend the PyDict C API to handle cases where the hash value in known

2014-03-30 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file34668/double_counter_hash.py ___ Python tracker ___ ___ Python-bugs-list

[issue21102] 3.4.0 PDF (a4,letter) and EPUB documentation missing

2014-03-30 Thread koobs
New submission from koobs: python-3.4.0-docs-pdf-letter.{zip,tar.bz2} python-3.4.0-docs-pdf-letter.{zip,tar.bz2} are missing from: https://www.python.org/ftp/python/doc/3.4.0/ /current/ also still points to 3.3.x documentation: https://www.python.org/ftp/python/doc/current/ -- assign

[issue21102] 3.4.0 PDF (a4,letter) and EPUB documentation missing

2014-03-30 Thread koobs
koobs added the comment: Missing files was supposed to read: python-3.4.0-docs-pdf-a4.{zip,tar.bz2} python-3.4.0-docs-pdf-letter.{zip,tar.bz2} python-3.4.0-docs-epub.{zip,tar.bz2} -- ___ Python tracker ___

[issue16716] Deprecate OSError aliases in the doc

2014-03-30 Thread priya
Changes by priya : -- keywords: +patch Added file: http://bugs.python.org/file34669/exception.patch ___ Python tracker ___ ___ Python-

[issue1191964] asynchronous Subprocess

2014-03-30 Thread Richard Oudkerk
Richard Oudkerk added the comment: Using asyncio and the IOCP eventloop it is not necessary to use threads. (Windows may use worker threads for overlapped IO, but that is hidden from Python.) See https://code.google.com/p/tulip/source/browse/examples/child_process.py for vaguely "expect-l

[issue21101] Extend the PyDict C API to handle cases where the hash value in known

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

[issue21100] Micro-optimization for tuple comparison

2014-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This patch breaks lexicographic ordering of tuples: (1, 2) < (1, 2, 0) < (1, 3) -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue21100] Micro-optimization for tuple comparison

2014-03-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- Removed message: http://bugs.python.org/msg215179 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue21100] Micro-optimization for tuple comparison

2014-03-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue21100] Micro-optimization for tuple comparison

2014-03-30 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue1191964] asynchronous Subprocess

2014-03-30 Thread janzert
Changes by janzert : -- nosy: +janzert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue21101] Extend the PyDict C API to handle cases where the hash value in known

2014-03-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Is there any benefit in making them public API functions? -- nosy: +pitrou ___ Python tracker ___ __

[issue1697175] winreg module for cygwin?

2014-03-30 Thread Martin v . Löwis
Martin v. Löwis added the comment: Closing as out of date. -- resolution: -> out of date status: languishing -> closed ___ Python tracker ___ _

[issue21102] 3.4.0 PDF (a4,letter) and EPUB documentation missing

2014-03-30 Thread Georg Brandl
Georg Brandl added the comment: Fixed the symlink. Larry, where did you put the other archives? -- assignee: docs@python -> larry nosy: +georg.brandl, larry ___ Python tracker __

[issue21085] compile error Python3.3 on Cygwin

2014-03-30 Thread Martin v . Löwis
Martin v. Löwis added the comment: dellair jie: would you like to work on a patch? It's fine if not, but it may then be that there is no resolution to this issue for the coming months or years (unless somebody else volunteers to write a patch). Running configure should have created pyconfig.h

[issue21102] 3.4.0 PDF (a4,letter) and EPUB documentation missing

2014-03-30 Thread Benjamin Peterson
Benjamin Peterson added the comment: Added missing docs releases. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue20924] openssl init 100% CPU utilization

2014-03-30 Thread Martin v . Löwis
Martin v. Löwis added the comment: As Antoine says: if the socket is *really* in blocking mode, then SSL_do_handshake should block until the handshake if fully complete. It should not return SSL_ERROR_WANT_READ in this case. If you have managed to build Python for yourself to diagnose this fur

[issue21101] Extend the PyDict C API to handle cases where the hash value in known

2014-03-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Is there any benefit in making them public API functions? Originally, I was going to suggest them as internal functions, but the variety of use cases in the standard library suggested that third-party C extensions would benefit as well. Since this isn'

[issue21101] Extend the PyDict C API to handle cases where the hash value in known

2014-03-30 Thread Alex Gaynor
Alex Gaynor added the comment: Would it be reasonable to develop a Python API for this? If C functions have a need to do this, surely Python code does as well. -- nosy: +alex ___ Python tracker ___

[issue21100] Micro-optimization for tuple comparison

2014-03-30 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue21100] Micro-optimization for tuple comparison

2014-03-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 16fd3f4c9128 by Raymond Hettinger in branch 'default': Issue 21100: Amazingly, tuple lexicographic ordering was untested. http://hg.python.org/cpython/rev/16fd3f4c9128 -- nosy: +python-dev ___ Python trac

[issue21103] Encoding str to IDNA with ellipsis decomposes to empty labels

2014-03-30 Thread Christopher Foo
New submission from Christopher Foo: When encoding a string with the IDNA codec I expected that it will always raise an exception with empty labels. When I do this >>> 'example.c…'.encode('idna').decode('ascii') it returns 'example.c...' instead of raising UnicodeError. The original

[issue21101] Extend the PyDict C API to handle cases where the hash value is known

2014-03-30 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- title: Extend the PyDict C API to handle cases where the hash value in known -> Extend the PyDict C API to handle cases where the hash value is known ___ Python tracker __

[issue21104] Read from file aborted

2014-03-30 Thread Alex Grinko
New submission from Alex Grinko: When reading from text file on Windows Python ends loop on character 0x1A sample.py: number = 0 with open("sample.txt",'r') as f: for line in f: number += 1 print line print "File has 8 lines, but Python could read only ",number -- com

[issue21105] functools.partialmethod example doesn't actually work

2014-03-30 Thread Alex Gaynor
New submission from Alex Gaynor: Specifically the example at: https://docs.python.org/3/library/functools.html?highlight=functools#functools.partialmethod ``_alive`` isn't actually assigned before the example tries to read it. Running this code at a for-real REPL results in: >>> class Cell(ob

[issue21101] Extend the PyDict C API to handle cases where the hash value is known

2014-03-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Would it be reasonable to develop a Python API for this? I suspect that in pure Python, the overhead would exceed the benefit. Current code: d[key] = d[key] + 1 Effort to save a double hash: h = hash(key) c = d.getitem_known_hash(key, hash)

[issue11824] freeze.py broken due to ABI flags

2014-03-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4e37a4a036c6 by Martin v. Löwis in branch '3.4': Issue #11824: Consider ABI tags in freeze. Patch by Meador Inge. http://hg.python.org/cpython/rev/4e37a4a036c6 New changeset 1b6fc88ae3f5 by Martin v. Löwis in branch 'default': Merge 3.4: Issue #1182

[issue11824] freeze.py broken due to ABI flags

2014-03-30 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks for the patch. Closing this issue as it only deals with the ABI flags; the remaining issues with freeze are dealt with elsewhere. -- nosy: +loewis resolution: -> fixed status: open -> closed ___ Python track

[issue21105] functools.partialmethod example doesn't actually work

2014-03-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset ed81acc970d9 by Benjamin Peterson in branch '3.4': make partialmethod example work (closes #21105) http://hg.python.org/cpython/rev/ed81acc970d9 New changeset b8a76485b5ed by Benjamin Peterson in branch 'default': merge 3.4 (#21105) http://hg.python

[issue16047] Tools/freeze no longer works in Python 3

2014-03-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 001a6dc996e7 by Martin v. Löwis in branch '3.4': Issue #16047: Fix module exception list and __file__ handling in freeze. http://hg.python.org/cpython/rev/001a6dc996e7 New changeset 87ded2fdac4b by Martin v. Löwis in branch 'default': Merge 3.4 (#16

[issue16047] Tools/freeze no longer works in Python 3

2014-03-30 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks for the patch. It seems to work now. http://buildbot.python.org/all/builders/AMD64%20Ubuntu%20LTS%20Freeze%203.x/builds/9 -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue11549] Build-out an AST optimizer, moving some functionality out of the peephole optimizer

2014-03-30 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue21103] Encoding str to IDNA with ellipsis decomposes to empty labels

2014-03-30 Thread Martin v . Löwis
Martin v. Löwis added the comment: I believe this behavior is correct wrt. RFC 3490. In the input, the last label is "c…", which is not empty. It is passed to ToASCII, which normalizes the ellipsis to "...". If UseSTD3ASCIIRules was true, conversion would fail as it yields "." (\x2E). However,

[issue21103] Encoding str to IDNA with ellipsis decomposes to empty labels

2014-03-30 Thread R. David Murray
R. David Murray added the comment: For whatever it is worth, it looks like rfc 5892 marks U+2026 as disallowed. -- nosy: +r.david.murray ___ Python tracker ___ __

[issue21106] Updated Mac folder icon

2014-03-30 Thread Vivek Jain
New submission from Vivek Jain: Python 3 still uses an old-style Mac folder icon in its installer (https://github.com/python-git/python/blob/master/Mac/Icons/Python%20Folder.icns?raw=true) that looks out of place on recent Macs. I created a quick replacement that is higher res and fits in bett

[issue21106] Updated Mac folder icon

2014-03-30 Thread Martin v . Löwis
Martin v. Löwis added the comment: Can you please submit a contributor form, and indicate that you are willing to license the icon under this agreement? -- nosy: +loewis ___ Python tracker

[issue21106] Updated Mac folder icon

2014-03-30 Thread Martin v . Löwis
Martin v. Löwis added the comment: We should probably also ask for the PSF's permission (from the trademark committee) to use this specific modification of the logo in CPython. -- ___ Python tracker __

[issue21106] Updated Mac folder icon

2014-03-30 Thread Ned Deily
Changes by Ned Deily : -- assignee: ronaldoussoren -> ned.deily nosy: +ned.deily versions: -Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___ ___

[issue21104] Read from file aborted

2014-03-30 Thread eryksun
eryksun added the comment: AFAIK, this doesn't affect Python 3 under normal circumstances. A file could be manually set to text mode by calling msvcrt.setmode(f.fileno(), os.O_TEXT), but that's out of the norm. In Python 2, on Windows interpreting ctrl+z (0x1a) as end-of-file is normal behavi

[issue21106] Updated Mac folder icon

2014-03-30 Thread Vivek Jain
Vivek Jain added the comment: Submitted the patch, and I license the icon under the PSF contributor agreement. To make the icon, I used: (1) the default Apple folder icon as a starting point and (2) the Python icon from https://www.python.org/community/logos/ (but with modified colors). For (1

[issue21106] Updated Mac folder icon

2014-03-30 Thread Vivek Jain
Vivek Jain added the comment: By "Submitted the patch" I meant "Submitted the contributor agreement." -- ___ Python tracker ___ ___ Py

[issue21106] Updated Mac folder icon

2014-03-30 Thread Ezio Melotti
Ezio Melotti added the comment: Regarding the Python logo, you should write to psf-tradema...@python.org, tell them that you used the logo for the icon and add a link to this issue. I'm sure they will be happy to let you use it, but it's good to let them know. -- nosy: +ezio.melotti sta

[issue1599254] mailbox: other programs' messages can vanish without trace

2014-03-30 Thread David Watson
David Watson added the comment: On Sun 23 Mar 2014, David Watson wrote: > There actually isn't a test for the original locking issue, as > the tests all use the mailbox API, which doesn't provide a way to > turn off dot-locking. ... On second thought, the underlying error doesn't actually have a

[issue21106] Updated Mac folder icon

2014-03-30 Thread Vivek Jain
Vivek Jain added the comment: I just emailed psf-tradema...@python.org (and CC'd assignee ned.deily) requesting permission to use the logo. -- ___ Python tracker ___ ___

[issue21106] Updated Mac folder icon

2014-03-30 Thread Ned Deily
Ned Deily added the comment: Thanks for your contribution. I think the more important issue here is the use of the Apple folder icon. Someone would need to research what restrictions if any exist before we could consider using an icon based on it. The current icons were added back in 2006.

[issue19655] Replace the ASDL parser carried with CPython

2014-03-30 Thread Eli Bendersky
Eli Bendersky added the comment: There were no serious objections bar the pre-release timing. Now that we're safely in 3.5 territory, can I go ahead and create a patch? Note that for purposes of review, the Github project linked in the original message is more convenient, IMHO -- ___

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

2014-03-30 Thread Nadeem Vawda
Nadeem Vawda added the comment: Thanks for the patch, Nikolaus. I'm afraid I haven't had a chance to look over it yet; this past week has been a bit crazy for me. I'll definitely get back to you with a review in the next week, though. -- ___ Python tr

[issue21106] Updated Mac folder icon

2014-03-30 Thread Vivek Jain
Vivek Jain added the comment: Some searching turned up http://www.apple.com/legal/contact/#copyright. I have contacted Apple through the form and will keep you guys updated. Hopefully they will respond. -- ___ Python tracker

[issue21090] File read silently stops after EIO I/O error

2014-03-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Python 2.7 uses C fopen() and fread(), so what happens probably is that fread() silences the error. -- nosy: +pitrou ___ Python tracker ___ ___

[issue21074] Too aggressive constant folding

2014-03-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: > check parameters before compute the result is simple Handling the general case (all sequences and all operators) isn't really simple. It also involves doing more computations and making more assumptions than we want to do in this code (it is not a great

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2014-03-30 Thread Ned Deily
Ned Deily added the comment: I've looked at this a bit, primarily on OS X 10.9 Mavericks, although I expect mostly similar behavior on older recent releases of OS X. On 10.9, the setting of locale variables is done by whatever program is used to launch a shell. I looked at the behavior of th

[issue21044] tarfile does not handle file .name being an int

2014-03-30 Thread Antoine Pietri
Antoine Pietri added the comment: Ping. The patch is just one line and there's a test case, if someone could review that, it would be great! (For the record I signed the contributor agreement a week ago and my profile still hasn't been updated). -- ___

[issue19655] Replace the ASDL parser carried with CPython

2014-03-30 Thread Benjamin Peterson
Benjamin Peterson added the comment: It certainly seems more compact and simple that the current parser, so +1 from me. -- ___ Python tracker ___ ___

[issue21044] tarfile does not handle file .name being an int

2014-03-30 Thread Ned Deily
Changes by Ned Deily : -- nosy: +lars.gustaebel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue21082] os.makedirs(exist_ok=True) is not thread-safe: umask is set temporary to 0, serious security problem

2014-03-30 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue19655] Replace the ASDL parser carried with CPython

2014-03-30 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue21107] Add pgen.vcxproj to allow regenerating grammar files on Windows

2014-03-30 Thread Zachary Ware
New submission from Zachary Ware: Here's a patch to allow building (and using) pgen on Windows. All changes outside of PCbuild are solely to avoid compiler warnings, namely 4 instances of C4005 for PGEN being redefined and 2 instances of C4018, "'<' : signed/unsigned mismatch". pgen.vcxproj i

[issue19655] Replace the ASDL parser carried with CPython

2014-03-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 for moving this forward as early in the 3.5 cycle as possible. -- ___ Python tracker ___ ___ P

[issue21108] Add doc examples for importlib

2014-03-30 Thread Saimadhav Heblikar
New submission from Saimadhav Heblikar: The imp module was the defacto module to access the import internals,upto 3.3 It has been deprecated(pending) in 3.4 in favor of importlib. There are plenty of examples on how to use imp around the web, but very little (even in doc.python.org), on how to u

[issue21108] Add examples for importlib in doc

2014-03-30 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar : -- title: Add doc examples for importlib -> Add examples for importlib in doc ___ Python tracker ___ _

[issue21104] Read from file aborted

2014-03-30 Thread Alex Grinko
Changes by Alex Grinko : -- resolution: -> works for me status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue21108] Add examples for importlib in doc

2014-03-30 Thread Ned Deily
Changes by Ned Deily : -- nosy: +brett.cannon, eric.snow, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib