[issue16864] sqlite3.Cursor.lastrowid isn't populated when executing a SQL REPLACE statement

2015-05-10 Thread Alex Lord
Alex Lord added the comment: Went back to test to see if the other statements are covered already. Unit tests show that lastrowid is set properly no matter what form of sqlite insert statement is used. sqlite_lastrowid_35_v2.patch contains the doc changes, unit test changes, and code change.

[issue18789] XML Vunerability Table Unclear

2015-05-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: The table would still be more clear with safe and vulnerable entries. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18789 ___

[issue24161] PyIter_Check returns false positive for objects of type instance

2015-05-10 Thread behzad nouri
New submission from behzad nouri: - python 2 only, not reproducible on python 3 Attached file makes an extension module which just returns PyIter_Check value on passed object. Calling the function with an object of type instance returns true, even though the object is not iterator:

[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-10 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- dependencies: +add a Generator ABC ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24017 ___ ___

[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-10 Thread Yury Selivanov
Yury Selivanov added the comment: New patch is attached. Nick, I think that all of your feedback should be addressed in this patch. Major changes: 1. There are two code flags now: CO_COROUTINE and CO_GENBASED_COROUTINE (I'm OK to use another name, see my older comments). CO_COROUTINE is

[issue21800] Implement RFC 6855 (IMAP Support for UTF-8) in imaplib.

2015-05-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 195343b5e64f by R David Murray in branch 'default': #21800: Add RFC 6855 support to imaplib. https://hg.python.org/cpython/rev/195343b5e64f -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org

[issue24134] assertRaises can behave differently

2015-05-10 Thread R. David Murray
R. David Murray added the comment: Yeah, the general case of wrappers is something I hadn't considered. Probably we should go the deprecation route. Robert, what's your opinion? -- ___ Python tracker rep...@bugs.python.org

[issue24161] PyIter_Check returns false positive for objects of type instance

2015-05-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: The PyIter_Check() macro in Include/abstract.h does a quick test to see whether the tp_iternext slot is null or marked as not implemented. That works for builtin types but not for user defined classes (heap types). Old-style instances, see

[issue16864] sqlite3.Cursor.lastrowid isn't populated when executing a SQL REPLACE statement

2015-05-10 Thread Alex Lord
Alex Lord added the comment: Thanks for Alex_gayner and lifeless. They pointed out the sqlite3_last_row_id is part of the sqlite3 module itself (not cpython). https://www.sqlite.org/c3ref/last_insert_rowid.html According the documentation we can expect that if a constraint stops an insertion

[issue24158] Error of the hint of upgrading pip

2015-05-10 Thread Donald Stufft
Donald Stufft added the comment: Hey, This is actually a message that comes from a third party component, pip in this case. I've opened up https://github.com/pypa/pip/issues/2773 with the pip project and suggest that further discussion/tracking happen there. It will be picked up by Python

[issue24161] PyIter_Check returns false positive for objects of type instance

2015-05-10 Thread behzad nouri
behzad nouri added the comment: That works for builtin types but not for user defined classes Rather than using PyIter_Check(), extensions should just call next() on object and see whether it succeeds but then, what would be the use case of PyIter_Check outside of python core? --

[issue21800] Implement RFC 6855 (IMAP Support for UTF-8) in imaplib.

2015-05-10 Thread R. David Murray
R. David Murray added the comment: Thanks, Maciek (and Milan). I tweaked your patch slightly (mostly doc changes...I moved the discussion of the utf8 RFC into the enable method only, and added back the docs for utf8_enabled). I made some review comments about the changes other than that doc

[issue20362] longMessage attribute is ignored in unittest.TestCase.assertRegexpMatches etc

2015-05-10 Thread Ilia Kurenkov
Ilia Kurenkov added the comment: Hi there! I was wondering if anyone had a chance to take a look at this :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20362 ___

[issue23970] Update distutils.msvccompiler for VC14

2015-05-10 Thread Steve Dower
Steve Dower added the comment: Any further comments on this? I'd like to get it in for beta (though I don't believe it's covered by feature freeze). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23970

[issue23955] Add python.ini file for embedded/applocal installs

2015-05-10 Thread Steve Dower
Steve Dower added the comment: Any further comments/bikeshedding on the applocal parameter? I still need to do some docs, but I want the basic design agreed upon first. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23955

[issue15027] Faster UTF-32 encoding

2015-05-10 Thread Mark Lawrence
Mark Lawrence added the comment: As this appears to be a performance improvement only can it go into 3.5 or do we wait for 3.x? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15027

[issue24162] [2.7 regression] test_asynchat test failure on i586-linux-gnu

2015-05-10 Thread Matthias Klose
New submission from Matthias Klose: I see this on i586-linux-gnu and i686-linux-gnu. Reverting the 95844:fb6c2fbbde34 commit makes the problem go away. python: ../Modules/_collectionsmodule.c:711: deque_del_item: Assertion `i = 0 i (((PyVarObject*)(deque))-ob_size)' failed. Makefile:818:

[issue24163] shutil.copystat pukes when attribute security.selinux is present

2015-05-10 Thread Spencer Stirling
New submission from Spencer Stirling: Using shutil.copytree to copy a directory tree. The source dir lives on a Windows 7 host, however is being accessed from inside a VirtualBox VM as a shared folder (using vagrant to manage this whole thing). The destination directory is just a regular

[issue24161] PyIter_Check returns false positive for objects of type instance

2015-05-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: but then, what would be the use case of PyIter_Check outside of python core? You could still use it anywhere. It will give a correct result in the cases of extension modules, builtin types, and new-style classes. It will give a false positive in the

[issue1818] Add named tuple reader to CSV module

2015-05-10 Thread Ilia Kurenkov
Ilia Kurenkov added the comment: Friendly reminder that this exists. I know everyone's busy and this is marked as low-priority, but I'm gonna keep bumping this till we add a solution :) -- ___ Python tracker rep...@bugs.python.org

[issue24163] shutil.copystat fails when attribute security.selinux is present

2015-05-10 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- title: shutil.copystat pukes when attribute security.selinux is present - shutil.copystat fails when attribute security.selinux is present ___ Python tracker rep...@bugs.python.org

[issue24161] PyIter_Check returns false positive for objects of type instance

2015-05-10 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file39338/doc_iter_check.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24161

[issue16864] sqlite3.Cursor.lastrowid isn't populated when executing a SQL REPLACE statement

2015-05-10 Thread Alex Lord
Alex Lord added the comment: Updated the patch to have a versionchanged for lastrowid in Doc/Library/sqlite3.rst and Doc/whatsnew/3.5.rst One thing of note is that I wasn't able to get the indentation to be on the same level for sqlite3.rst (it would either intent the description text or the

[issue24153] threading/multiprocessing tests fail on chromebook under crouton generated chroots

2015-05-10 Thread Davin Potts
Changes by Davin Potts pyt...@discontinuity.net: -- nosy: +davin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24153 ___ ___ Python-bugs-list

[issue24134] assertRaises can behave differently

2015-05-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Agree, this change breaks general wrappers around assertRaises, and this breakage is unavoidable. Likely we should rollback changes in maintained releases. The fix in Django doesn't LGTM. It depends on internal detail. More correct fix should look like:

[issue24156] test.test_ssl.ThreadedTests unit test failed

2015-05-10 Thread Roman Rader
New submission from Roman Rader: == FAIL: test_server_accept (test.test_ssl.ThreadedTests) -- Traceback (most recent call last): File

[issue24156] unit test

2015-05-10 Thread Roman Rader
Changes by Roman Rader antig...@gmail.com: -- nosy: Roman.Rader priority: normal severity: normal status: open title: unit test ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24156 ___

[issue24134] assertRaises can behave differently

2015-05-10 Thread R. David Murray
R. David Murray added the comment: Given one failure there are probably more. So we should probably back this out of 2.7 and 3.4. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24134 ___

[issue21162] code in multiprocessing.pool freeze if inside some code from scikit-learn (and probably liblinear) executed on ubuntu 12.04 64 Bit

2015-05-10 Thread Ivan K
Ivan K added the comment: This behaviour was reproduced on Ubuntu 12.04 and on Centos 7 (centos image running on vagrant) so I don't expect this is ddistro specific -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21162

[issue24134] assertRaises can behave differently

2015-05-10 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24134 ___

[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-10 Thread Andrew Svetlov
Andrew Svetlov added the comment: On Sun, May 10, 2015 at 7:21 PM, Yury Selivanov rep...@bugs.python.org wrote: Yury Selivanov added the comment: Review sent - very nice work on this Yury. Thanks a lot, Nick! Highlights: * I concur with Stefan that we should have a full

[issue24159] Misleading TypeError when pickling bytes to a file opened as text

2015-05-10 Thread Jon Clements
Changes by Jon Clements jon...@googlemail.com: -- nosy: +joncle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24159 ___ ___ Python-bugs-list

[issue24157] test_urandom_fd_reopened failure on Mac OS X

2015-05-10 Thread Skip Montanaro
New submission from Skip Montanaro: Got this reproducibly on the cpython branch on my Mac (Yosemite 10.10.3). It succeeds on my 3.4 branch, both updated a few minutes ago. Didn't see it already reported: % ./python.exe Lib/test/test_os.py

[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-10 Thread Yury Selivanov
Yury Selivanov added the comment: Review sent - very nice work on this Yury. Thanks a lot, Nick! Highlights: * I concur with Stefan that we should have a full PyCoroutineMethods struct at the C level, with a tp_as_coroutine pointer to that replacing the current tp_reserved slot Do you

[issue24160] Pdb sometimes crashes when trying to remove a breakpoint defined in a different debugger sessoon

2015-05-10 Thread ppperry
New submission from ppperry: import pdb, test3 pdb.run(reload(test3)) string(1)module() (Pdb) s --Call-- c:\documents and settings\perry\desktop\coding_projects\python\test3.py(1)module() - foo = 7789 (Pdb) b 2 Breakpoint 1 at c:\documents and

[issue24158] Error of the hint of upgrading pip

2015-05-10 Thread Codetrainee
New submission from Codetrainee: When first running pip built in python 3.4.3 on windows, it will notify you that you should upgrade to 6.1.1 The recommended command is 'pip install --upgrade pip' However, if you run this command, it will uninstall pip as well as fail to upgrade pip. On

[issue24158] Error of the hint of upgrading pip

2015-05-10 Thread Alex Gaynor
Changes by Alex Gaynor alex.gay...@gmail.com: -- nosy: +dstufft, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24158 ___ ___

[issue17620] Python interactive console doesn't use sys.stdin for input

2015-05-10 Thread Paul Moore
Changes by Paul Moore p.f.mo...@gmail.com: -- nosy: +paul.moore ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17620 ___ ___ Python-bugs-list

[issue19873] There is a duplicate function in Lib/test/test_pathlib.py

2015-05-10 Thread Mark Lawrence
Mark Lawrence added the comment: Can we have a formal commit review please as Jessica's comment in msg212966 that the patch looked good was over one year ago. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19873

[issue24159] Misleading TypeError when pickling bytes to a file opened as text

2015-05-10 Thread Jason R. Coombs
New submission from Jason R. Coombs: I had a piece of code which I distilled to this: import pickle with open('out.pickle', 'w') as out: pickle.dump(out, b'data') Running that code raises this error: TypeError: must be str, not bytes The error is raised at the dump call with no

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-05-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 787cc3d1d3af by Yury Selivanov in branch 'default': Issue #22906: Do incref before SetCause/SetContext https://hg.python.org/cpython/rev/787cc3d1d3af -- ___ Python tracker rep...@bugs.python.org