[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-04-17 Thread aaugustin
aaugustin added the comment: Hey -- maintainer of Django's transaction support here. This ticket was brought to my attention again today. As I know a few things about this issue and I see Python core devs asking for input, I'll give my $0.02. The core of this issue is that, **by default**, th

[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-04-17 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue21288] hashlib.pbkdf2_hmac Hash Constructor

2014-04-17 Thread Donald Stufft
Donald Stufft added the comment: I agree that this change makes a lot of sense. -- nosy: +dstufft ___ Python tracker ___ ___ Python-bu

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-04-17 Thread Chris Monsanto
Chris Monsanto added the comment: > Unfortunately, I don't have backwards-compatible proposal to fix this. Trying > to account for a bit more syntax will help in the short term but not fix the > underlying issue. aaugustin -- the patch by torsen made 3 years ago is backwards compatible. It ad

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

2014-04-17 Thread Alex Lord
Alex Lord added the comment: Patch that fixes Issue16864. Follows Jim Minters suggestion. Unit test will reproduce the issue without the c modifications. C modifications fix the issue. -- keywords: +patch Added file: http://bugs.python.org/file34953/Issue16864_py35.patch _

[issue21288] hashlib.pbkdf2_hmac Hash Constructor

2014-04-17 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +yselivanov versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue21285] refactor and fix curses configure checks

2014-04-17 Thread Matthias Klose
Matthias Klose added the comment: Victor pointer out the Solaris issue is unrelated. See #13552. Closing. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue21289] make.bat not building documentation

2014-04-17 Thread Dave Sawyer
New submission from Dave Sawyer: With Python 3.5, some refactoring of the documentation structure has been done. Building the documentation targets directly works, but using the supplied make.bat fails, not finding the sphinx python file. -- assignee: docs@python components: Documentat

[issue21289] make.bat not building documentation

2014-04-17 Thread Dave Sawyer
Changes by Dave Sawyer : -- type: compile error -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue21288] hashlib.pbkdf2_hmac Hash Constructor

2014-04-17 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +christian.heimes, gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue21287] Better support for AF_PACKET on opensolaris (illumos)

2014-04-17 Thread Ned Deily
Changes by Ned Deily : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/m

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-04-17 Thread aaugustin
aaugustin added the comment: That patch solves the problem, at the cost of introducing an unwieldy API, "operation_needs_transaction_callback". I'm very skeptical of the other API, "in_transaction". Other database backends usually provide an "autocommit" attribute. "autocommit" is the opposit

[issue21289] make.bat not building documentation

2014-04-17 Thread Dave Sawyer
Changes by Dave Sawyer : -- keywords: +patch Added file: http://bugs.python.org/file34954/mywork.patch ___ Python tracker ___ ___ Pyth

[issue21289] make.bat not building documentation

2014-04-17 Thread Dave Sawyer
Dave Sawyer added the comment: Removed the use of python in the make, calling the sphinx-build executable. Also the Doc directory was called "Docs" in the readme.txt -- ___ Python tracker _

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-04-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: What is the callback thing for? The only value that's ever passed in the tests is `lambda operation: True`. -- nosy: +pitrou ___ Python tracker ___

[issue21288] hashlib.pbkdf2_hmac Hash Constructor

2014-04-17 Thread Christian Heimes
Christian Heimes added the comment: A callable wouldn't work for the OpenSSL back end of PBKDF2. The function takes a digest pointer. I have to think about a solution... Sorry for the brevity, I still don't have proper internet at home. On 17. April 2014 22:20:36 MESZ, Yury Selivanov wrote: >

[issue1514420] Traceback display code can attempt to open a file named ""

2014-04-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: The problem is not in the import, but when displaying the traceback of the exception. In other words, if you catch the exception, no attempt to open "" happens: $ strace -e open ./python [...] Python 3.5.0a0 (default:3417a95df7e2, Apr 16 2014, 17:57:12) [GCC

[issue1514420] Traceback display code can attempt to open a file named ""

2014-04-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Also, by construction it will only happen if the import happens under the interpreter prompt (hence the "" filename). I honestly don't think this deserves introducing some complication, only to avoid a couple filesystem accesses. -- _

[issue21289] make.bat not building documentation

2014-04-17 Thread Zachary Ware
Zachary Ware added the comment: I left a review on Rietveld, which should have sent you an email. Thanks for the report and patch! If you plan on submitting anything more than the most trivial of patches, could you please sign the contributor agreement[1][2]? Thanks! [1]The form: https://w

[issue2771] Test issue

2014-04-17 Thread Ezio Melotti
Ezio Melotti added the comment: Ping. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue2771] Test issue

2014-04-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue2771] Test issue

2014-04-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: committed/rejected -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue21288] hashlib.pbkdf2_hmac Hash Constructor

2014-04-17 Thread Yury Selivanov
Yury Selivanov added the comment: On 2014-04-17, 5:02 PM, Christian Heimes wrote: > Christian Heimes added the comment: > > A callable wouldn't work for the OpenSSL back end of PBKDF2. The function > takes a digest pointer. I have to think about a solution... > > Sorry for the brevity, I still d

[issue21288] hashlib.pbkdf2_hmac Hash Constructor

2014-04-17 Thread Armin Ronacher
Armin Ronacher added the comment: > We can accept only hashlib functions, and continue passing their names > to the OpenSSL backend. A bit ugly and limited solution (no user-defined > hash functions) for a better looking API. What I'm doing at the code for my employer is something similar. The

[issue21288] hashlib.pbkdf2_hmac Hash Constructor

2014-04-17 Thread Armin Ronacher
Armin Ronacher added the comment: I should add that we still support non OpenSSL hashers, but we go a different path. -- ___ Python tracker ___ _

[issue2771] Test issue

2014-04-17 Thread Ezio Melotti
Ezio Melotti added the comment: mail pong -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue21282] setup.py: More informative error msg for modules which built but failed import check

2014-04-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___

[issue21288] hashlib.pbkdf2_hmac Hash Constructor

2014-04-17 Thread Yury Selivanov
Yury Selivanov added the comment: Armin, FWIW, I don't think it's possible to push this API change in 3.4. -- ___ Python tracker ___ _

[issue21272] use _sysconfigdata.py in distutils.sysconfig to initialize distutils.sysconfig

2014-04-17 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Maybe distutils.sysconfig could become a small wrapper around sysconfig? -- nosy: +Arfrever ___ Python tracker ___

[issue21288] hashlib.pbkdf2_hmac Hash Constructor

2014-04-17 Thread Armin Ronacher
Armin Ronacher added the comment: I understand that, but given that this API might be backported to 2.7 I think it should get further review. Also, this would only be a change to the error case. Non string arguments are currently being responded to with a TypeError. I am not proposing to rem

[issue21290] imaplib.error when importing email package

2014-04-17 Thread Aaron Briel
New submission from Aaron Briel: I see an error when attempting to import the email package on a mac running Python 2.7.6rc1 (v2.7.6rc1:4913d0e9be30+, Oct 27 2013, 20:52:11) . This does not occur on another system running Python 2.7.3 (default, Mar 25 2013, 15:56:58) [GCC 4.4.7 20120313 (Red

[issue21272] use _sysconfigdata to itinialize distutils.sysconfig

2014-04-17 Thread Éric Araujo
Éric Araujo added the comment: Sure. The API is slightly different, but the data should be the same, so this can be done. -- components: +Distutils -Library (Lib) title: use _sysconfigdata.py in distutils.sysconfig to initialize distutils.sysconfig -> use _sysconfigdata to itinialize

[issue15414] os.path.join behavior on Windows (ntpath.join) is unexpected and not well documented

2014-04-17 Thread Dave Sawyer
Dave Sawyer added the comment: http://bugs.python.org/issue1669539 has been partially fixed. On Windows os.path.join('foo', 'a:bar') gives 'a:bar' not 'foo\\a:bar'. However os.path.isabs('a:bar') returns False yet it causes a reset in the join like an absolute path. '\foo' is considered an ab

[issue21272] use _sysconfigdata to itinialize distutils.sysconfig

2014-04-17 Thread Éric Araujo
Éric Araujo added the comment: doko’s patch is actually conservative, not changing the query functions of distutils.sysconfig but only the _init_posix function, which just defines a global dict. It looks quite safe to me. -- ___ Python tracker

[issue21290] imaplib.error when importing email package

2014-04-17 Thread R. David Murray
R. David Murray added the comment: There is no file 'email.py' in the Python standard library. You must have such a file in your python path somewhere, so when you import email it actually imports that file instead of the email package. You will note that 'email.py' in the traceback does not

[issue21291] subprocess Popen objects are not thread safe w.r.t. wait() and returncode being set

2014-04-17 Thread Gregory P. Smith
New submission from Gregory P. Smith: Executing the supplied test code you either get: sys.version = 3.4.0+ (3.4:635817da596d, Apr 17 2014, 14:30:34) [GCC 4.6.3] Results with : r0= None, expected None r1= None, expected None ri0 = None, expected None ri1 = -9, ex

[issue21292] C API in debug fails

2014-04-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Is that under Windows? -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue21292] C API in debug fails

2014-04-17 Thread Steve
New submission from Steve: Although not a bug, it annoys me enough that it is a bug in my head! The problem is that trying to compile an application in debug that embeds Python fails. Case in point; we canned the idea of embedding Python (went with Lua) for that reason only. We did not have

[issue21109] tarfile: Traversal attack vulnerability

2014-04-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue17218] support title and description in argparse add_mutually_exclusive_group

2014-04-17 Thread paul j3
paul j3 added the comment: The idea of nesting a mutually_exclusive_group in a titled argument_group is already present in `test_argparse.py`. class TestMutuallyExclusiveInGroup(MEMixin, TestCase): def get_parser(self, required=None): parser = ErrorRaisingArgumentParser(prog='P

[issue21286] Refcounting information missing in docs for Python 3.4 and above.

2014-04-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8c12d3e0f1de by Benjamin Peterson in branch '3.4': fix ref count annotations on sphinx >= 1.2.1 (closes #21286) http://hg.python.org/cpython/rev/8c12d3e0f1de -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: op

[issue15414] os.path.join behavior on Windows (ntpath.join) is unexpected and not well documented

2014-04-17 Thread Dave Sawyer
Changes by Dave Sawyer : -- keywords: +patch Added file: http://bugs.python.org/file34956/joindoc.patch ___ Python tracker ___ ___ Pyt

[issue20309] Not all method descriptors are callable

2014-04-17 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue15414] os.path.join behavior on Windows (ntpath.join) is unexpected and not well documented

2014-04-17 Thread Dave Sawyer
Changes by Dave Sawyer : -- versions: +Python 3.4, Python 3.5 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bu

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-04-17 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue18304] ElementTree -- provide a way to ignore namespace in tags and seaches

2014-04-17 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue17218] support title and description in argparse add_mutually_exclusive_group

2014-04-17 Thread paul j3
paul j3 added the comment: oops - one more glitch (revealed by TestMutuallyExclusiveInGroup): 'add_mutually_exclusive_group' accepts a 'required' argument, but 'add_argument_group' does not. So 'add_titled_mutually_exclusive_group' needs to be changed to temporarily remove that argument (if g

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2014-04-17 Thread R. David Murray
R. David Murray added the comment: OK, it is great having a test that makes this at least mostly reproducible :) Having reloaded my brain on this thing, I'm thinking that the best solution may be indeed to switch to ordered dicts. If we then reorder the hardcoded lists to be in "preferred" or

[issue21289] make.bat not building documentation

2014-04-17 Thread Dave Sawyer
Changes by Dave Sawyer : Added file: http://bugs.python.org/file34957/mywork.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue21289] make.bat not building documentation

2014-04-17 Thread Dave Sawyer
Dave Sawyer added the comment: Thanks Zach! The bug tracker was nice enough to prompt me to go look in my email for the agreement too. -- ___ Python tracker ___

[issue21293] Remove "capsule hack" from object.c?

2014-04-17 Thread Larry Hastings
New submission from Larry Hastings: I noticed this code in Objects/object.c today: /* Hack to force loading of pycapsule.o */ PyTypeObject *_PyCapsule_hack = &PyCapsule_Type; What is this doing? Note that PyCapsule_Type is referred to inside _Py_ReadyTypes(), so there's already a refe

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2014-04-17 Thread Martin Panter
Martin Panter added the comment: Looking at Issue 430706 and revision 27f36f4bf525, there is concious support for HTTP 1.1 persistent connections. Apparently the 1.0 default is just for backwards compatibility. -- nosy: +vadmium ___ Python tracker

[issue18304] ElementTree -- provide a way to ignore namespace in tags and seaches

2014-04-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I would like to have a way to ignore namespaces. For many day-to-day problems (parsing Microsoft Excel files saved in an XML format or parsing RSS feeds), this would be a nice simplification. I teach Python for a living and have found that it is common

[issue20309] Not all method descriptors are callable

2014-04-17 Thread Christian Hudon
Christian Hudon added the comment: Here is the (first?) complete version of the patch. All tests pass. Note that I had to remove a test that was checking that the object returned from staticmethod was not callable. Let me know if I should add more tests, or if there are any other problems with

[issue21257] Document parse_headers function of http.client

2014-04-17 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue21291] subprocess Popen objects are not thread safe w.r.t. wait() and returncode being set

2014-04-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: Attaching a proposed fix for this issue. It should make the wait() and poll() methods thread safe. I need to turn the reproducer code into an actual test case and add more test cases for coverage of all code paths being touched. I haven't examined the wind

[issue16285] Update urllib quoting to RFC 3986

2014-04-17 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue21202] Naming a file` io.py` causes cryptic error message

2014-04-17 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue21294] len wrong help

2014-04-17 Thread Vedran Čačić
New submission from Vedran Čačić: >From recently, help(len) gives the wrong signature of len. Help on built-in function len in module builtins: len(...) len(module, object) Return the number of items of a sequence or mapping. I tried to track it down, I think it happen

[issue21287] Better support for AF_PACKET on opensolaris (illumos)

2014-04-17 Thread Igor Pashev
Changes by Igor Pashev : Added file: http://bugs.python.org/file34961/dyson-socketmodule-ifindex.patch ___ Python tracker ___ ___ Python-bugs-

[issue21294] len wrong help

2014-04-17 Thread Ned Deily
Changes by Ned Deily : -- nosy: +larry stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue21294] len wrong help

2014-04-17 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +ncoghlan, yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue21286] Refcounting information missing in docs for Python 3.4 and above.

2014-04-17 Thread Georg Brandl
Georg Brandl added the comment: Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue21294] len wrong help

2014-04-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 679319e3f42b by Benjamin Peterson in branch '3.4': correct len signature in docstring (closes #21294) http://hg.python.org/cpython/rev/679319e3f42b -- nosy: +python-dev resolution: -> fixed stage: needs patch -> committed/rejected status: o

[issue18304] ElementTree -- provide a way to ignore namespace in tags and seaches

2014-04-17 Thread Stefan Behnel
Stefan Behnel added the comment: You can already use iterparse for this. it = ET.iterparse('somefile.xml') for _, el in it: el.tag = el.tag.split('}', 1)[1] # strip all namespaces root = it.root As I said, this would be a little friendlier with support in the QName class,

[issue21294] len wrong help

2014-04-17 Thread Vedran Čačić
Vedran Čačić added the comment: 1. Was it really _that_ easy? I mean, there obviously was a reason for previous change... someone wouldn't add a parameter to documentation out of thin air. As far as I can see, it was because automatic argument inspection didn't work in some cases... 2. If it

[issue21294] len wrong help

2014-04-17 Thread Larry Hastings
Larry Hastings added the comment: It's really that easy, it was a stupid bug that is probably my fault, the fix will be in 3.4.1. -- ___ Python tracker ___ _

<    1   2