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.
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
___
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:
Changes by Yury Selivanov yseliva...@gmail.com:
--
dependencies: +add a Generator ABC
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24017
___
___
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
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
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
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
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
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
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?
--
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
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
___
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
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
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
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:
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
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
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
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
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
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
Changes by Davin Potts pyt...@discontinuity.net:
--
nosy: +davin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24153
___
___
Python-bugs-list
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:
New submission from Roman Rader:
==
FAIL: test_server_accept (test.test_ssl.ThreadedTests)
--
Traceback (most recent call last):
File
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
___
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
___
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
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24134
___
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
Changes by Jon Clements jon...@googlemail.com:
--
nosy: +joncle
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24159
___
___
Python-bugs-list
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
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
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
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
Changes by Alex Gaynor alex.gay...@gmail.com:
--
nosy: +dstufft, ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24158
___
___
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
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
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
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
41 matches
Mail list logo