[issue21634] Pystone uses floats

2014-06-02 Thread Lennart Regebro
New submission from Lennart Regebro: Pystone uses some floats in Python 3, while in Python 2 it's all integers. And since it is, as far as I can tell, based on Dhrystone, it should be all ints. After fixing the division in the loop to be a floor division it runs the same as in Python 2. I've

[issue21634] Pystone uses floats

2014-06-02 Thread STINNER Victor
STINNER Victor added the comment: According to the name of variables (IntLoc2 = IntLoc3 // IntLoc1), I agree that integers should be used. Since the performances can be different between int and float, you should change the version and explain your change in the changelog (in the top

[issue13631] readline fails to parse some forms of .editrc under editline (libedit) emulation on Mac OS X

2014-06-02 Thread Ned Deily
Ned Deily added the comment: It appears that Apple's update to editline in OS X 10.9 Mavericks has also broken this patch; with refreshing, it still works with the system editline in 10.8. So, like the fix for Issue18458, we need to make sure that the fix works with either version of a

[issue634412] RFC 2387 in email package

2014-06-02 Thread Abhilash Raj
Abhilash Raj added the comment: David: I had a look at the examples and documentation as you said. I found some support for multipart/related in the form of `add_related` and `set_related` methods. But I am still confused on how to make content_manager recognize miltipart/related messages.

[issue21634] Pystone uses floats

2014-06-02 Thread Lennart Regebro
Lennart Regebro added the comment: Yes, good point, I added this in a new diff. -- Added file: http://bugs.python.org/file35443/pystone12.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21634

[issue4350] Remove dead code from Tkinter.py

2014-06-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patch is synchronized with tip. It also removes Studbutton and Tributton classes which depend on removed methods. These classes are not documented, not tested and never worked in supported Python versions. I even not found reasonable links in Google, except

[issue21635] difflib.SequenceMatcher stores matching blocks as tuples, not Match named tuples

2014-06-02 Thread drevicko
New submission from drevicko: difflib.SequenceMatcher.get_matching_blocks() last lines: non_adjacent.append( (la, lb, 0) ) self.matching_blocks = non_adjacent return map(Match._make, self.matching_blocks) should be something like: non_adjacent.append( (la, lb,

[issue21625] help()'s more-mode is frustrating

2014-06-02 Thread Ned Batchelder
Ned Batchelder added the comment: Serhiy, thanks for the configuration tip. But you seem to be missing my point, which is that beginners need the default to be a little more friendly. I don't want to make it bad for experienced users, of course. I doubt Unix users will be confused by

[issue21600] mock.patch.stopall doesn't work with patch.dict to sys.modules

2014-06-02 Thread fumihiko kakuma
fumihiko kakuma added the comment: Checking mock.py(version 1.0.1) it seems that patch.stopall does not support patch.dict. Does it have any problem to support ptch.dict by stopall. I made the attached patch file for this. It seems to work well. How about this? But I don't know why sys.modules

[issue21628] 2to3 does not fix zip in some cases

2014-06-02 Thread Berker Peksag
Berker Peksag added the comment: This is a duplicate of issue 20742. -- nosy: +berker.peksag resolution: - duplicate stage: - resolved status: open - closed superseder: - 2to3 zip fixer doesn't fix for loops. ___ Python tracker

[issue20742] 2to3 zip fixer doesn't fix for loops.

2014-06-02 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +RobertG, benjamin.peterson versions: +Python 2.7, Python 3.4, Python 3.5 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20742

[issue21627] Concurrently closing files and iterating over the open files directory is not well specified

2014-06-02 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +gregory.p.smith versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21627 ___

[issue20640] Idle: test configHelpSourceEdit

2014-06-02 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com: Removed file: http://bugs.python.org/file34125/test-config-helpsource-33.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20640 ___

[issue20640] Idle: test configHelpSourceEdit

2014-06-02 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com: Removed file: http://bugs.python.org/file34128/test-config-helpsource-27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20640 ___

[issue20640] Idle: test configHelpSourceEdit

2014-06-02 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com: Added file: http://bugs.python.org/file35446/test-cfg-help-34.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20640 ___

[issue20640] Idle: test configHelpSourceEdit

2014-06-02 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com: Added file: http://bugs.python.org/file35447/test-cfg-help-27.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20640 ___

[issue21592] Make statistics.median run in linear time

2014-06-02 Thread Thomas Dybdahl Ahle
Thomas Dybdahl Ahle added the comment: I don't know if it's worth the overhead to implement a multiselect, given we only expose a median function. I've rewritten select2 to be intro, just falling back on sorting. This doesn't appear to degrade the performance. I also added np.median to the

[issue21634] Pystone uses floats

2014-06-02 Thread STINNER Victor
STINNER Victor added the comment: +Unde Python 3 version 1.1 would use the normal division I guess that it's a typo: Under Python 3 ...? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21634

[issue21634] Pystone uses floats

2014-06-02 Thread Lennart Regebro
Lennart Regebro added the comment: Oups, yes, that's a typo. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21634 ___ ___ Python-bugs-list

[issue21636] test_logging fails on Windows for Unix tests

2014-06-02 Thread Claudiu.Popa
New submission from Claudiu.Popa: Hello! The attached patch fixes a crash for the logging tests on Windows. That's because the tests assume that socket.AF_UNIX exists. The actual traceback is: [1/1] test_logging test test_logging crashed -- Traceback (most recent call last): File

[issue21634] Pystone uses floats

2014-06-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1318324aa93a by Victor Stinner in branch '3.4': Issue #21634: Fix pystone micro-benchmark: use floor division instead of true http://hg.python.org/cpython/rev/1318324aa93a New changeset 95b7acdc0f24 by Victor Stinner in branch 'default': (Merge

[issue21634] Pystone uses floats

2014-06-02 Thread STINNER Victor
STINNER Victor added the comment: Thanks the patch, I fixed pystone in Python 3.4 and 3.5. -- resolution: - fixed status: open - closed versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue21636] test_logging fails on Windows for Unix tests

2014-06-02 Thread STINNER Victor
STINNER Victor added the comment: Oh, it looks like a follow-up of the issue #21583 (change f1393e82660819996e74c7eeddc5ae1f38b15f0a), the test was already buggy but not run before. -- nosy: +diana, haypo, python-dev versions: +Python 3.4 ___

[issue21636] test_logging fails on Windows for Unix tests

2014-06-02 Thread STINNER Victor
STINNER Victor added the comment: +if threading and hasattr(socket, AF_UNIX): The check on socket.AF_UNIX attribute looks redundant: there is already a decorator on the testcase class to skip the whole test case. No? -- ___ Python tracker

[issue21627] Concurrently closing files and iterating over the open files directory is not well specified

2014-06-02 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +neologix, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21627 ___ ___

[issue21634] Pystone uses floats

2014-06-02 Thread Lennart Regebro
Lennart Regebro added the comment: Awesome, thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21634 ___ ___ Python-bugs-list mailing list

[issue21636] test_logging fails on Windows for Unix tests

2014-06-02 Thread Claudiu.Popa
Claudiu.Popa added the comment: No, because the tests will be skipped after the assignment of the address family. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21636 ___

[issue21627] Concurrently closing files and iterating over the open files directory is not well specified

2014-06-02 Thread STINNER Victor
STINNER Victor added the comment: I have no opinon on close() vs setting CLOEXEC flag, but you should use _Py_set_inheritable(fd, 0, NULL). _Py_set_inheritable() is able to set the CLOEXEC flag in a single syscall, instead of 2 syscalls. _close_fds_by_brute_force() is already very slow when

[issue21636] test_logging fails on Windows for Unix tests

2014-06-02 Thread STINNER Victor
STINNER Victor added the comment: No, because the tests will be skipped after the assignment of the address family. Ah yes, the body of the class is executed before the decorator. -- ___ Python tracker rep...@bugs.python.org

[issue21636] test_logging fails on Windows for Unix tests

2014-06-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset d7a491c6cbdb by Victor Stinner in branch '3.4': Issue #21636: Fix test_logging, skip UNIX stream (AF_UNIX) tests on Windows. http://hg.python.org/cpython/rev/d7a491c6cbdb New changeset b49e366556ba by Victor Stinner in branch 'default': (Merge 3.4)

[issue21636] test_logging fails on Windows for Unix tests

2014-06-02 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21636 ___

[issue21627] Concurrently closing files and iterating over the open files directory is not well specified

2014-06-02 Thread STINNER Victor
STINNER Victor added the comment: Since Python 3.4, all file descriptors directly created by Python are marked as non-inheritable. It should now be safe to use subprocess with close_fds=False, but the default value was not changed because third party modules (especially code written in C) may

[issue634412] RFC 2387 in email package

2014-06-02 Thread R. David Murray
R. David Murray added the comment: My idea (which I haven't worked out in detail) is to add either a new content manager that extends raw_data_manager, or just add to raw_data_manager, a handler for 'multipart/related'. The set handler would handle a value of type 'dict', and expect it to

[issue21594] asyncio.create_subprocess_exec raises OSError

2014-06-02 Thread Sebastian Kreft
Sebastian Kreft added the comment: I agree that blocking is not ideal, however there are already some other methods that can eventually block forever, and for such cases a timeout is provided. A similar approach could be used here. I think this method should retry until it can actually access

[issue21637] Add a warning section exaplaining that tempfiles are opened in binary mode

2014-06-02 Thread Sebastian Kreft
New submission from Sebastian Kreft: Although it is already explained that the default mode of the opened tempfiles is 'w+b' a warning/notice section should be included to make it clearer. I think this is important as the default for the open function is to return strings and not bytes. I

[issue21638] Seeking to EOF is too inefficient!

2014-06-02 Thread Linlin Yan
New submission from Linlin Yan: I noticed this problem when I run a Python2 program (MACS: http://liulab.dfci.harvard.edu/MACS/) very inefficiently on a large storage on a high performace server (64-bit Linux). It was much slower (more than two days) than running it on a normal PC (less than

[issue21639] tracemalloc crashes with floating point exception when using StringIO

2014-06-02 Thread Claudiu.Popa
New submission from Claudiu.Popa: Given the following code, tracemalloc crashes with: Floating point exception: 8 (core dumped) import tracemalloc tracemalloc.start(10) import io io.StringIO() The culprit is this line assert(nelem = PY_SIZE_MAX / elsize); from tracemalloc_alloc. elsize is 0

[issue21640] References to other Python version in sidebar of documentation index is not up to date

2014-06-02 Thread Auke Willem Oosterhoff
Changes by Auke Willem Oosterhoff awoosterh...@gmail.com: Added file: http://bugs.python.org/file35452/python_3.1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21640 ___

[issue21640] References to other Python version in sidebar of documentation index is not up to date

2014-06-02 Thread Auke Willem Oosterhoff
Changes by Auke Willem Oosterhoff awoosterh...@gmail.com: Added file: http://bugs.python.org/file35455/python_3.3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21640 ___

[issue21640] References to other Python version in sidebar of documentation index is not up to date

2014-06-02 Thread Auke Willem Oosterhoff
Changes by Auke Willem Oosterhoff awoosterh...@gmail.com: Added file: http://bugs.python.org/file35454/python_3.2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21640 ___

[issue21640] References to other Python version in sidebar of documentation index is not up to date

2014-06-02 Thread Auke Willem Oosterhoff
Changes by Auke Willem Oosterhoff awoosterh...@gmail.com: Added file: http://bugs.python.org/file35456/python_3.4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21640 ___

[issue6181] Tkinter.Listbox several minor issues

2014-06-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5ab8ec8b5b5b by Serhiy Storchaka in branch '2.7': Issue #6181: Fixed errors in tkinter.Listbox docstrings. http://hg.python.org/cpython/rev/5ab8ec8b5b5b New changeset 932532360578 by Serhiy Storchaka in branch '3.4': Issue #6181: Fixed errors in

[issue21640] References to other Python version in sidebar of documentation index is not up to date

2014-06-02 Thread Auke Willem Oosterhoff
Changes by Auke Willem Oosterhoff awoosterh...@gmail.com: Added file: http://bugs.python.org/file35453/python_3.2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21640 ___

[issue21640] References to other Python version in sidebar of documentation index is not up to date

2014-06-02 Thread Auke Willem Oosterhoff
Changes by Auke Willem Oosterhoff awoosterh...@gmail.com: -- assignee: docs@python components: Documentation files: python_2.7.patch keywords: patch nosy: OrangeTux, docs@python priority: normal severity: normal status: open title: References to other Python version in sidebar of

[issue21640] References to other Python version in sidebar of documentation index is not up to date

2014-06-02 Thread Auke Willem Oosterhoff
New submission from Auke Willem Oosterhoff: Most version of the documentation are labeling Python 3.4 as 'in development' and missing reference to Python 3.5. -- Added file: http://bugs.python.org/file35457/python_3.5.patch ___ Python tracker

[issue18292] Idle: test AutoExpand.py

2014-06-02 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com: Added file: http://bugs.python.org/file35458/test-autoexpand1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18292 ___

[issue21559] OverflowError should not happen for integer operations

2014-06-02 Thread R. David Murray
R. David Murray added the comment: Your second bullet item would seem to me to be the obvious interpretation of the docs. This is, after all, Python, so 'integer' would refer to Python integers and their operations. So I agree with Stefan that the docs are correct as they stand. As he also

[issue21594] asyncio.create_subprocess_exec raises OSError

2014-06-02 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +giampaolo.rodola, gvanrossum, pitrou, yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21594 ___

[issue20800] Cannot run gui tests twice.

2014-06-02 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: From Ned Deily's message. haven't tried it recently on a Linux system Output from a linux syste: ./python -m test -ugui test_ttk_guionly test_ttk_guionly test_idle test_idle [1/4] test_ttk_guionly [2/4] test_ttk_guionly [3/4] test_idle [4/4] test_idle All

[issue21641] smtplib leaves open sockets around if SMTPResponseException is raised in __init__

2014-06-02 Thread Claudiu.Popa
Claudiu.Popa added the comment: An alternative to this approach would be to catch the error in __init__ and close the socket there. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21641

[issue10656] Out of tree build fails on AIX 5.3

2014-06-02 Thread Michael Haubenwallner
Changes by Michael Haubenwallner michael.haubenwall...@salomon.at: -- nosy: +haubi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10656 ___ ___

[issue21641] smtplib leaves open sockets around if SMTPResponseException is raised in __init__

2014-06-02 Thread Claudiu.Popa
New submission from Claudiu.Popa: Hello! I noticed that test_smtplib raises a ResourceWarning, tracking this to this piece of code: self.assertRaises(smtplib.SMTPResponseException, smtplib.SMTP, HOST, self.port, 'localhost', 3) What happens is that `SMTP.getreply` is

[issue16189] ld_so_aix not found

2014-06-02 Thread Michael Haubenwallner
Changes by Michael Haubenwallner michael.haubenwall...@salomon.at: -- nosy: +haubi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16189 ___ ___

[issue13493] Import error with embedded python on AIX 6.1

2014-06-02 Thread Michael Haubenwallner
Changes by Michael Haubenwallner michael.haubenwall...@salomon.at: -- nosy: +haubi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13493 ___ ___

[issue14150] AIX, crash loading shared module into another process than python like operator.so results in 0509-130

2014-06-02 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: Doing it this way strictly requires runtime-linking to be enabled, to have the main executable and the module use the same runtime instance of the libpython${VERSION}.so symbols. Instead, the main executable better should re-export the python symbols

[issue21625] help()'s more-mode is frustrating

2014-06-02 Thread eryksun
eryksun added the comment: You can use '-P?e(END) .(q to quit)' to add (END) just on the last line. Or show the line count instead: os.environ['LESS'] = '-Pline %lB?L/%L. (press h for help or q to quit)' -- ___ Python tracker

[issue21625] help()'s more-mode is frustrating

2014-06-02 Thread R. David Murray
R. David Murray added the comment: There is also an option to make less quit if enter is pressed on the last line (-e/--quit-at-eof). These more beginner friendly options could be provided by pydoc if there is no existing PAGER or LESS environment variable. -- nosy: +r.david.murray

[issue21631] List/Dict Combination Bug

2014-06-02 Thread Robert w
Robert w added the comment: banner C:\Users\r0b3\files\backuped\own_dropbox\programmierung\raymarcher0C:\Python33\python Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:06:53) [MSC v.1600 64 bit (AMD64)] on win32 Type help, copyright, credits or license for more information.

[issue21631] List/Dict Combination Bug

2014-06-02 Thread Robert w
Changes by Robert w robert...@googlemail.com: -- versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21631 ___ ___

[issue21561] help() on enum34 enumeration class creates only a dummy documentation

2014-06-02 Thread Ethan Furman
Ethan Furman added the comment: I think something like the following, taken from http://bugs.python.org/issue19030#msg199920, shoud do the trick for something to test against: class Meta(type): def __getattr__(self, name): if name == 'ham': return

[issue6167] Tkinter.Scrollbar: the activate method needs to return a value, and set should take only two args

2014-06-02 Thread Jim Jewett
Jim Jewett added the comment: I'm still not seeing why these changes are sufficiently desirable to justify the code churn. Nor am I seeing test or doc changes that would explain the advantages of the new way, and prevent future regressions. I agree that the changes would make the signatures

[issue21631] List/Dict Combination Bug

2014-06-02 Thread R. David Murray
R. David Murray added the comment: You may not be a noob, but on the other hand we can't see the bug. So your best bet would be to post your code to the python-list mailing list and ask for help refining your bug report into something we can take action on. --

[issue10652] test___all_ + test_tcl fails (Windows installed binary)

2014-06-02 Thread Zachary Ware
Zachary Ware added the comment: As for what's actually wrong here, Hirokazu Yamamoto's diagnosis in msg123615 (adjusted for 2.7) is correct. Either of the last two patches I posted should work to fix this issue, but they're both just band-aids rather than a real, once-and-for-all fix. #20035

[issue21594] asyncio.create_subprocess_exec raises OSError

2014-06-02 Thread Guido van Rossum
Guido van Rossum added the comment: I'm not sure. Running out of file descriptors is really not something a library can handle on its own -- this needs to be kicked back to the app to handle. E.g. by pacing itself, or closing some connections, or changing the system limit... The library really

[issue21631] List/Dict Combination Bug

2014-06-02 Thread Robert w
Robert w added the comment: i cutted it down = class EnumSectionContentType(object): DATABYTE = 2 DATADOUBLEWORD = 3 DATAWORD = 4 #LABEL = 0 def _getStringOfElements(elements): objectFileString = elements = [{'type': 2, 'data': {'elements': ['83H', '0FAH', '9AH',

[issue21623] build ssl failed use vs2010 express

2014-06-02 Thread Zachary Ware
Zachary Ware added the comment: The first error makes no sense to me. What version of OpenSSL are you building? How did you invoke the Python build (command line, or through the VS GUI)? As for the second error, all of the VS-generated files in PCbuild have a UTF-8 BOM, which is what the

[issue21623] build ssl failed use vs2010 express

2014-06-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1d36bd258ee8 by Zachary Ware in branch '3.4': Issue #21623: open pyproject.props with an explicit encoding http://hg.python.org/cpython/rev/1d36bd258ee8 -- nosy: +python-dev ___ Python tracker

[issue21631] List/Dict Combination Bug

2014-06-02 Thread R. David Murray
R. David Murray added the comment: I get an exception. I think you need to be more careful with your testing. Please take this to python-list for further help. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21631

[issue21567] cannot create multipart alternative message with us-ascii charset

2014-06-02 Thread R. David Murray
R. David Murray added the comment: I suspect this is either related to or is a duplicate of issue 1823. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21567 ___

[issue21623] build ssl failed use vs2010 express

2014-06-02 Thread Zachary Ware
Zachary Ware added the comment: The cause of the second error should be fixed now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21623 ___ ___

[issue15988] Inconsistency in overflow error messages of integer argument

2014-06-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: I reconsidered this in the light of #21559. getargs_b requires an integer of type int in range(256). A non-int properly raises TypeError. from _testcapi import getargs_b as gb gb(1.0) Traceback (most recent call last): File pyshell#7, line 1, in module

[issue21573] Clean up turtle.py code formatting

2014-06-02 Thread R. David Murray
R. David Murray added the comment: A side note about tests: once a couple or three years ago I made it so that you could run 'make doctest' against the turtle documentation and it would work (displaying stuff on the screen). There's no checking of the output, but it proved the examples at

[issue21559] OverflowError should not happen for integer operations

2014-06-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: I was tempted to close this, but I think there is an issue that 'theme' has implied but not stated clearly enough. The OverflowError entry might be re-written as Raised when the result of an arithmetic operation involving at least one non-int is too large to

[issue21623] build ssl failed use vs2010 express

2014-06-02 Thread Steve Dower
Steve Dower added the comment: Has the first log been abbreviated at all? It looks like it's trying to build the tests before building the library... (Nosied Martin, since he's managed to build this version of OpenSSL with VC10 and may have encountered this. I've only dealt with VC9 so far.)

[issue21533] built-in types dict docs - construct dict from iterable, not iterator

2014-06-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, zach.ware type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21533 ___

[issue21623] build ssl failed use vs2010 express

2014-06-02 Thread Zachary Ware
Zachary Ware added the comment: I will note that VC++ 2010 Express is what I use on one of my usual machines, and don't recall ever having this issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21623

[issue9196] Improve docs for string interpolation %s re Unicode strings

2014-06-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9196 ___ ___ Python-bugs-list

[issue21547] '!s' formatting documentation bug

2014-06-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21547 ___

[issue21642] _ if 1else _ does not compile

2014-06-02 Thread Joshua Landau
New submission from Joshua Landau: By the docs, Except at the beginning of a logical line or in string literals, the whitespace characters space, tab and formfeed can be used interchangeably to separate tokens. Whitespace is needed between two tokens only if their

[issue21559] OverflowError should not happen for integer operations

2014-06-02 Thread R. David Murray
R. David Murray added the comment: Integers are outside a required range makes me wonder why it isn't a ValueError. An OverflowError should be the result of a *computation*, IMO, not a bounds check. So, maybe add your sentence with the additional phrase for historical reasons? :)

[issue1191964] asynchronous Subprocess

2014-06-02 Thread Josiah Carlson
Josiah Carlson added the comment: First, with the use of Overlapped IO on Windows, BlockingIOError should never come up, and we don't even handle that exception. As for BrokenPipeError vs. EOF; while we do treat them more or less the same, we aren't killing the process or reporting that the

[issue21643] File exists error during venv --upgrade

2014-06-02 Thread Virgil Dupras
New submission from Virgil Dupras: There seems to have been a regression in Python 3.4.1 with pyvenv --upgrade, and this regression seems to be caused by #21197. It now seems impossible to use the --upgrade flag without getting a File exists error. Steps to reproduce: $ pyvenv env $ pyvenv

[issue21533] built-in types dict docs - construct dict from iterable, not iterator

2014-06-02 Thread Zachary Ware
Zachary Ware added the comment: LGTM. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21533 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6181] Tkinter.Listbox several minor issues

2014-06-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8cd7eb00894e by Serhiy Storchaka in branch '2.7': Issue #6181: Fixed minor bugs in tkinter.Listbox methods: http://hg.python.org/cpython/rev/8cd7eb00894e New changeset 54a2ceacac05 by Serhiy Storchaka in branch '3.4': Issue #6181: Fixed minor bugs

[issue18373] implement sys.get/setbyteswarningflag()

2014-06-02 Thread Daniel Holth
Daniel Holth added the comment: As an aside, why wouldn't I run my program with -bb? One reason is that the following code won't work on Linux: #!/usr/bin/env python -bb Instead of passing -bb to Python, it will look for an executable called python -bb, and it's not likely to find it. The

[issue21643] File exists error during venv --upgrade

2014-06-02 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21643 ___ ___ Python-bugs-list mailing

[issue6167] Tkinter.Scrollbar: the activate method needs to return a value, and set should take only two args

2014-06-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: 1. In activate, change parameter 'index' to 'element'. I agree with Jim about rejecting this. A (specific). 'index' is routinely used to point to an item in a sequence; arrow1, slider, and arrow2 are visually sequenced. The doc string is clear on the

[issue6181] Tkinter.Listbox several minor issues

2014-06-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I divided the patch to three parts. First, obvious errors in docstrings. Second, minor behavior bugs. Added tests for affected methods. And I didn't commit third part, style changes to docstrings, because I want to update docstrings in separate issue.

[issue21639] tracemalloc crashes with floating point exception when using StringIO

2014-06-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset d87ede8da3c8 by Victor Stinner in branch '3.4': Issue #21639: Fix name of _testcapi test functions http://hg.python.org/cpython/rev/d87ede8da3c8 New changeset 7083634065c9 by Victor Stinner in branch 'default': (Merge 3.4) Issue #21639: Fix name of

[issue21639] tracemalloc crashes with floating point exception when using StringIO

2014-06-02 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the report, it should now be fixed. The crash is a regression introduced by the issue #21233. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue21594] asyncio.create_subprocess_exec raises OSError

2014-06-02 Thread STINNER Victor
STINNER Victor added the comment: I agree that blocking is not ideal, however there are already some other methods that can eventually block forever, and for such cases a timeout is provided. Functions like read() can block during several minutes, but it's something expect from network

[issue6167] Tkinter.Scrollbar: the activate method needs to return a value, and set should take only two args

2014-06-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is no the common interface for the set and activate methods. Listbox.activate(index) - mandatory argument is an index (an integer, active, anchor, end, or @x,y form). Menu.activate(index) - mandatory argument is an index.

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-06-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6374c2d957a9 by Victor Stinner in branch 'default': Issue #21233: Rename the C structure PyMemAllocator to PyMemAllocatorEx to http://hg.python.org/cpython/rev/6374c2d957a9 -- ___ Python tracker

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-06-02 Thread STINNER Victor
STINNER Victor added the comment: I'm not sure: The usual case with ABI changes is that extensions may segfault if they are *not* recompiled [1]. Ok, I renamed the structure PyMemAllocator to PyMemAllocatorEx, so the compilation fails because PyMemAllocator name is not defined. Modules

[issue6167] Tkinter.Scrollbar: the activate method needs to return a value, and set should take only two args

2014-06-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch with added tests. -- Added file: http://bugs.python.org/file35461/tkinter_Scrollbar_fixes_3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6167

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-06-02 Thread STINNER Victor
STINNER Victor added the comment: Okay, then let's please call it: _PyObject_Calloc(void *ctx, size_t nobjs, size_t objsize) _PyObject_Alloc(int use_calloc, void *ctx, size_t nobjs, size_t objsize) void * PyMem_RawCalloc(size_t nelem, size_t elsize); prototype comes from the POSIX standad:

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-06-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset dff6b4b61cac by Victor Stinner in branch 'default': Issue #21233: Revert bytearray(int) optimization using calloc() http://hg.python.org/cpython/rev/dff6b4b61cac -- ___ Python tracker

[issue21644] Optimize bytearray(int) constructor to use calloc()

2014-06-02 Thread STINNER Victor
New submission from STINNER Victor: Python 3.5 has a new PyObject_Calloc() function which can be used for fast memory allocation of memory block initialized with zeros. I already implemented an optimization, but Stefan Krah found issues in my change:

[issue21644] Optimize bytearray(int) constructor to use calloc()

2014-06-02 Thread STINNER Victor
STINNER Victor added the comment: Stefan also wrote: 3) Somewhat similarly, I wonder if it was necessary to refactor PyBytes_FromStringAndSize(). I find the new version more difficult to understand. This issue can also be addressed here. --

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-06-02 Thread STINNER Victor
STINNER Victor added the comment: 2) I'm not happy with the refactoring in bytearray_init(). (...) 3) Somewhat similarly, I wonder if it was necessary to refactor PyBytes_FromStringAndSize(). (...) Ok, I reverted the change on bytearray(int) and opened the issue #21644 to discuss these two

<    1   2   3   >