[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2014-04-17 Thread Christian Theune
Christian Theune added the comment: Not being an export on tar at all, but I tried getting anything working without tell() and seek() but couldn't. The code reads as if its supposed to support some tar formats that do not require seeking, but that would be rather hard to predict on a

[issue21288] hashlib.pbkdf2_hmac Hash Constructor

2014-04-17 Thread Armin Ronacher
New submission from Armin Ronacher: Is there a specific reason why hashlib.pbkdf2_hmac now has a completely inconsistent API with the rest of the stdlib? So far the concept in both hashlib and hmac has been to accept hash constructors as parameters. As such you would expect the API to look

[issue21288] hashlib.pbkdf2_hmac Hash Constructor

2014-04-17 Thread Alex Gaynor
Changes by Alex Gaynor alex.gay...@gmail.com: -- nosy: +alex ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21288 ___ ___ Python-bugs-list mailing

[issue21288] hashlib.pbkdf2_hmac Hash Constructor

2014-04-17 Thread Armin Ronacher
Armin Ronacher added the comment: This commit shows why the API is problematic: https://github.com/mitsuhiko/werkzeug/commit/c527dcbfb0ee621e9faa0a3a2873118438965800 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21288

[issue18159] ConfigParser getters not available on SectionProxy

2014-04-17 Thread João Bernardo
João Bernardo added the comment: ping? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18159 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20309] Not all method descriptors are callable

2014-04-17 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20309 ___ ___ Python-bugs-list

[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**,

[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 ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16484 ___ ___ Python-bugs-list

[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 rep...@bugs.python.org http://bugs.python.org/issue21288 ___

[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 adds

[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 yselivanov...@gmail.com: -- nosy: +yselivanov versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21288 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue21285

[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:

[issue21289] make.bat not building documentation

2014-04-17 Thread Dave Sawyer
Changes by Dave Sawyer dsaw...@box.com: -- type: compile error - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21289 ___ ___

[issue21288] hashlib.pbkdf2_hmac Hash Constructor

2014-04-17 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- nosy: +christian.heimes, gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21288 ___

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

2014-04-17 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21287 ___ ___ Python-bugs-list mailing list

[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 opposite of

[issue21289] make.bat not building documentation

2014-04-17 Thread Dave Sawyer
Changes by Dave Sawyer dsaw...@box.com: -- keywords: +patch Added file: http://bugs.python.org/file34954/mywork.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21289 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue21289

[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 rep...@bugs.python.org http://bugs.python.org/issue10740

[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

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

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 stdin happens: $ strace -e open ./python [...] Python 3.5.0a0 (default:3417a95df7e2, Apr 16 2014, 17:57:12)

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

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 stdin 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:

[issue2771] Test issue

2014-04-17 Thread Ezio Melotti
Ezio Melotti added the comment: Ping. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2771] Test issue

2014-04-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___

[issue2771] Test issue

2014-04-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: committed/rejected - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___

[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 don't

[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. There

[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 rep...@bugs.python.org http://bugs.python.org/issue21288 ___

[issue2771] Test issue

2014-04-17 Thread Ezio Melotti
Ezio Melotti added the comment: mail pong -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 arfrever@gmail.com: -- nosy: +Arfrever versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21282

[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 rep...@bugs.python.org http://bugs.python.org/issue21288 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue21272

[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

[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

[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

[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

[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 class 'subprocess.Popen': r0= None, expected None r1= None, expected None ri0 = None,

[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 rep...@bugs.python.org http://bugs.python.org/issue21292 ___ ___

[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 arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21109 ___

[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 =

[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: open

[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 dsaw...@box.com: -- keywords: +patch Added file: http://bugs.python.org/file34956/joindoc.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15414 ___

[issue20309] Not all method descriptors are callable

2014-04-17 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20309 ___

[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 dsaw...@box.com: -- versions: +Python 3.4, Python 3.5 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15414 ___

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-04-17 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10740 ___ ___ Python-bugs-list

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

2014-04-17 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18304 ___ ___ Python-bugs-list

[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

[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

[issue21289] make.bat not building documentation

2014-04-17 Thread Dave Sawyer
Changes by Dave Sawyer dsaw...@box.com: Added file: http://bugs.python.org/file34957/mywork.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21289 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue21289

[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

[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

[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

[issue21257] Document parse_headers function of http.client

2014-04-17 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21257 ___ ___ Python-bugs-list

[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

[issue16285] Update urllib quoting to RFC 3986

2014-04-17 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16285 ___ ___ Python-bugs-list

[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 j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21202 ___ ___ Python-bugs-list mailing list

[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

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

2014-04-17 Thread Igor Pashev
Changes by Igor Pashev pashev.i...@gmail.com: Added file: http://bugs.python.org/file34961/dyson-socketmodule-ifindex.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21287 ___

[issue21294] len wrong help

2014-04-17 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +larry stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21294 ___ ___

[issue21294] len wrong help

2014-04-17 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- nosy: +ncoghlan, yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21294 ___ ___

[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 rep...@bugs.python.org http://bugs.python.org/issue21286 ___ ___ Python-bugs-list mailing list Unsubscribe:

[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:

[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 rep...@bugs.python.org http://bugs.python.org/issue21294 ___

<    1   2