[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 really is that easy, when will the fixed version be available? I know 
I can compile from source, but my pupils are not so comfortable with this. Will 
it be in 3.4.1?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, 
but it's not really complex code. Could be added to the docs as a recipe, with 
a visible warning that this can easily lead to incorrect data processing and 
therefore should not be used in systems where the input is not entirely under 
control.

Note that it's unclear what the "right way to do it" is, though. Is it better 
to 1) alter the data by stripping all namespaces off, or 2) let the tree API 
itself provide a namespace agnostic mode? Depends on the use case, but the more 
generic way 2) should be fairly involved in terms of implementation complexity, 
for just a minor use case. 1) would be ok in most cases where this "feature" is 
useful, I guess, and can be done as shown above.

In fact, the advantage of doing it explicitly with iterparse() is that instead 
of stripping all namespaces, only the expected namespaces can be discarded. And 
errors can be raised when finding unnamespaced elements, for example. This 
allows for a safety guard that prevents the code from completely 
misinterpreting input. There is a reason why namespace were added to XML at 
some point.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 happened here: 
http://bugs.python.org/file33655/larry.support.text_signature.on.more.types.6.txt

I realize it was a part of some big fix, so I don't know how easy it is to fix 
independently. Also, you might think it's not so big an issue. But I teach 
Python, and my pupils are really confused because of this. Please fix it if 
anyhow possible. Tnx.

--
assignee: docs@python
components: Documentation
messages: 216771
nosy: Vedran.Čačić, docs@python
priority: normal
severity: normal
status: open
title: len wrong help
versions: Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 windows side of this code for the issue, it may also be 
useful there.

--
keywords: +patch
Added file: http://bugs.python.org/file34960/issue21291-fix-gps01.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
the patch. Thanks!

--
Added file: http://bugs.python.org/file34959/descr_v2.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 for namespaces to be an obstacle for people
trying to get something done.

Giving them the following answer is unsatisfactory response to legitimate 
needs: 
"""
And it's pretty trivial to pre-process the entire tree by stripping all 
namespaces from it the intention is really to do namespace agnostic processing. 
However, in my experience, most people who want to do that haven't actually 
understood namespaces (although, admittedly, sometimes it's those who designed 
the XML format who didn't understand namespaces ...).
"""

--
nosy: +rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 reference to it from this module.  This 
global seems redundant.

Attached is a patch that removes it.  Trunk compiles and all tests pass with it 
applied, though I only tried on 64-bit Linux so I concede if this is handling 
some obscure edge case I probably wouldn't have hit it.

--
files: larry.remove.no.capsule.hack.1.diff
keywords: patch
messages: 216766
nosy: larry
priority: low
severity: normal
stage: patch review
status: open
title: Remove "capsule hack" from object.c?
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file34958/larry.remove.no.capsule.hack.1.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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" order, that should then also solve issue 1043134.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 given).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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='PROG')
titled_group = parser.add_argument_group(
title='Titled group', description='Group description')
mutex_group = \
titled_group.add_mutually_exclusive_group(required=required)
mutex_group.add_argument('--bar', help='bar help')
mutex_group.add_argument('--baz', help='baz help')
return parser

failures = ['--bar X --baz Y', '--baz X --bar Y']
successes = [
('--bar X', NS(bar='X', baz=None)),
('--baz Y', NS(bar=None, baz='Y')),
]
successes_when_not_required = [
('', NS(bar=None, baz=None)),
]

usage_when_not_required = '''\
usage: PROG [-h] [--bar BAR | --baz BAZ]
'''
usage_when_required = '''\
usage: PROG [-h] (--bar BAR | --baz BAZ)
'''
help = '''\

optional arguments:
  -h, --help  show this help message and exit

Titled group:
  Group description

  --bar BAR   bar help
  --baz BAZ   baz help
'''
 
So now the question is - do we to modify `add_mutually_exclusive_group` to 
streamline this task?  An alternative is to add a note to the documentation, eg.

Note that currently mutually exclusive argument groups do not 
support the title and description arguments of add_argument_group().
However a such a group can be added to a titled argument group.
(and then add an example)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the option of incorporating a Python build into 
our build system and not being able to compile in debug was not an option 
either.  We would have been happy to compile in debug with a release lib of 
Python, but since it was not possible, it got killed.

The fix: It should be possible for someone to compile an application in debug 
that embeds python without having the Python debug libraries.

--
components: Library (Lib)
messages: 216759
nosy: Banger
priority: normal
severity: normal
status: open
title: C API in debug fails
type: behavior
versions: Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 have a path, so it is probably in the directory you 
are running python from.

--
resolution:  -> not a bug
stage:  -> committed/rejected
status: open -> closed
type: compile error -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, expected -9 
  ri2   = -9, expected -9 
  r2= 0, expected -9 *** MISMATCH ***
  r3= 0, expected -9 *** MISMATCH ***

or

Results with :
  r0= None, expected None 
  r1= None, expected None 
  ri0   = None, expected None 
  ri1   = -9, expected -9 
  ri2   = -9, expected -9 
  r2= 0, expected -9 *** MISMATCH ***
  r3= 0, expected -9 *** MISMATCH ***

At first glance it appears that the .returncode attribute is not safely set 
after the wait call... This test code is using the Popen object from multiple 
threads at once.

--
assignee: gregory.p.smith
files: subprocess_wait_problem.py
messages: 216757
nosy: gregory.p.smith
priority: normal
severity: normal
status: open
title: subprocess Popen objects are not thread safe w.r.t. wait() and 
returncode being set
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file34955/subprocess_wait_problem.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 distutils.sysconfig

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 absolute path even though calling os.path.abspath on it 
can yield different results - as if it were a relative path. At minimum we 
should amend the wording about what resets the join.

--
nosy: +dsawyer

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 Hat 4.4.7-3)] on linux2.

aaron-mbp15:core aaronb$ python2.7
Python 2.7.6rc1 (v2.7.6rc1:4913d0e9be30+, Oct 27 2013, 20:52:11) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import email
Traceback (most recent call last):
  File "", line 1, in 
  File "email.py", line 7, in 
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/imaplib.py", 
line 443, in fetch
typ, dat = self._simple_command(name, message_set, message_parts)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/imaplib.py", 
line 1070, in _simple_command
return self._command_complete(name, self._command(name, *args))
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/imaplib.py", 
line 905, in _command_complete
raise self.error('%s command error: %s %s' % (name, typ, data))
imaplib.error: FETCH command error: BAD ['Could not parse command']
>>>

--
components: email
messages: 216752
nosy: barry, r.david.murray, teraincognita
priority: normal
severity: normal
status: open
title: imaplib.error when importing email package
type: compile error
versions: Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 remove the string API, just also allow a hash constructor.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 is a 
PBKDF2 implementation on top of the hmac module.  If a hashlib constructor is 
detected that OpenSSL implements it dispatches that to the PBKDF2 path in 
OpenSSL via ctypes.

Ultimately it's the same situation but it does not expose the implementation 
detail.

--
versions: +Python 3.4 -Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 have proper internet at home.
>

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.

Yury

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://www.python.org/psf/contrib/contrib-form/
[2]More information: https://www.python.org/psf/contrib/

--
assignee: docs@python -> zach.ware
nosy: +zach.ware
stage:  -> patch review
versions: +Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 4.8.1] on linux
[...]
>>> 
>>> try: import dismal
... except ImportError: pass
... 
>>>

--
nosy: +pitrou
priority: normal -> low
stage: test needed -> 
title: Missing module code does spurious file search -> Traceback display code 
can attempt to open a file named ""
versions: +Python 3.5 -Python 2.7, Python 3.1, Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:
>
>Changes by Yury Selivanov :
>
>
>--
>nosy: +christian.heimes, gregory.p.smith
>
>___
>Python tracker 
>
>___

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 "in_transaction" for all practical purposes. 
There's only two situations where they may be equal:

- before the first query
- after an explicit commit

Then you aren't in a transaction and you aren't in autocommit. But in these 
cases, in practice, the question you want to ask is "is the next query going to 
create a transaction?" (and if not, I may want to create one.)

So the semantic of "connection.autocommit" is much more useful than the 
semantic of "connection.in_transaction".

While you're there, it would be cool to provide "connection.autocommit = True" 
as an API to enable autocommit, because "connection.isolation_level = None" 
isn't a good API at all -- it's very obscure and has nothing to do with 
isolation level whatsoever.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: Documentation
messages: 216737
nosy: docs@python, dsawyer
priority: normal
severity: normal
status: open
title: make.bat not building documentation
type: compile error
versions: Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 a hook that you can use to disable autocommits, but you have to opt-in. I 
think that is good enough for now. We can worry about how to transition people 
away from the broken transaction model in the future.

Let's treat this as any other backwards compatibility problem in Python. We 
have a flag, that when enabled, removes the shitty behavior. In a future 
release, you get a warning for relying on the shitty behavior. In a release 
after that, we kill the old behavior. Then we deprecate the flag. In other 
words, it literally doesn't matter what the flag is. torsen's is fine. We just 
need some way to enable transactional DDL.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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**, the sqlite3 module performs a 
simplistic parsing of SQL queries and decides to commit before anything it 
doesn't understand, for example "SAVEPOINT foo".

I don't think it's a good idea to change sqlite's default operation mode to 
autocommit. PEP 249's prescription for transaction management aren't practical 
(and Django enforces the opposite behavior by default) but that's beyond the 
point. It's way too much backwards incompatible.

However, I don't think it's a good idea either to automatically send a COMMIT 
when I want to make a SAVEPOINT. In fact, if you want to use transactions with 
sqlite, connection.isolation_level = None is almost warranted -- and then you 
do everything manually.

For a slightly longer explanation, see 
https://www.youtube.com/watch?v=09tM18_st4I#t=1751

I've struggled mightily with all this when rewriting Django's transaction 
management. See:

- 
https://github.com/django/django/blob/3becac84/django/db/backends/sqlite3/base.py#L107
https://github.com/django/django/blob/3becac84/django/db/backends/sqlite3/base.py#L398-L403
- 
https://github.com/django/django/blob/3becac84/django/db/transaction.py#L185-L195

I have implemented the workarounds I need and I we won't be able to remove them 
from Django anytime soon. As a consequence, I have little interest in getting 
this fixed.

Still, it would be sane to stop committing before savepoints by default -- that 
kinda ruins the concept of savepoints :-) It would be even saner to stop 
parsing SQL. Does 
http://hg.python.org/cpython/file/85fd955c6fc8/Modules/_sqlite/cursor.c#l32 
look like an adequate parser for http://sqlite.org/lang.html?

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.

PS: I find it unfair to brand SQLite as a neutered database engine. Its 
transaction model is vastly superior to, say, MySQL. Too bad sqlite3 ruins it.

--
nosy: +aaugustin

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20309] Not all method descriptors are callable

2014-04-17 Thread Eric Snow

Changes by Eric Snow :


--
nosy: +eric.snow

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18159] ConfigParser getters not available on SectionProxy

2014-04-17 Thread João Bernardo

João Bernardo added the comment:

ping?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21288] hashlib.pbkdf2_hmac Hash Constructor

2014-04-17 Thread Alex Gaynor

Changes by Alex Gaynor :


--
nosy: +alex

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

hashlib.pbkdf2_hmac(hashlib.sha256, b'password', b'salt', 10)

Instead the API now is string based.

This is annoying because a lot of code already in the past exposed a pbkdf2 
implementation that allows passing in a hashlib constructor by passing it to 
HMAC.

If such code now wants to use the stdlib pbkdf2_hmac implementation it has to 
special case known implementations.  If a non known implementation is found it 
needs to dispatch to a separate implementation of PBKDF2.

In addition to that there is no nice way to detect if a algorithm is not 
supported as the exception raised for an invalid algorithm is the same as an 
invalid parameter for the iteration count (ValueError).

I would propose to change the API to allow hash constructors to be passed in in 
addition to strings.

--
messages: 216728
nosy: aronacher
priority: normal
severity: normal
status: open
title: hashlib.pbkdf2_hmac Hash Constructor
versions: Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 file-by-file 
basis, I guess.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-04-17 Thread Игорь Пашев

New submission from Игорь Пашев:

SIOCGIFINDEX could be defined in illumos (aka OpenSolaris) if BSD_COMP macro 
defined. This causes known error: no member ifr_ifindex in struct ifreq.

But OpenSolaris provides newer interface with struct lifreq and SIOCGLIFINDEX.

Attached patch tries to use it.

--
components: Library (Lib)
files: dyson-socketmodule-ifindex.patch
keywords: patch
messages: 216727
nosy: Игорь.Пашев
priority: normal
severity: normal
status: open
title: Better support for AF_PACKET on opensolaris (illumos)
type: compile error
versions: Python 3.4
Added file: http://bugs.python.org/file34952/dyson-socketmodule-ifindex.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-04-17 Thread Christian Theune

Christian Theune added the comment:

I don't think this will be solved. File-like objects (in this case IO wrappers 
for the socket) may have different capabilities and tarfile is just expecting 
too much.

My patch for #15002 relieved the situation somewhat by providing tell() but the 
IO stream just isn't seekable. I think you'll have to download to a temporary 
file first to give tarfile all the capabilities it needs.

I guess this should be rejected.

--
nosy: +ctheune, r.david.murray

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21276] don't define USE_XATTRS on kfreebsd and the Hurd

2014-04-17 Thread Matthias Klose

Matthias Klose added the comment:

fixed

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21274] define PATH_MAX for GNU/Hurd in Python/pythonrun.c

2014-04-17 Thread Matthias Klose

Matthias Klose added the comment:

fixed

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21275] fix a socket test on KFreeBSD

2014-04-17 Thread Matthias Klose

Matthias Klose added the comment:

fixed

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21285] refactor and fix curses configure checks

2014-04-17 Thread Matthias Klose

Changes by Matthias Klose :


--
title: refactor anfd fix curses configure checks -> refactor and fix curses 
configure checks

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21285] refactor anfd fix curses configure checks

2014-04-17 Thread Matthias Klose

Matthias Klose added the comment:

looks like with this change the curses extension isn't built anymore on Solaris.

--
nosy: +haypo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21285] refactor anfd fix curses configure checks

2014-04-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1bc0a8310b9f by doko in branch '2.7':
- Issue #21285: Refactor and fix curses configure check to always search
http://hg.python.org/cpython/rev/1bc0a8310b9f

New changeset 635817da596d by doko in branch '3.4':
- Issue #21285: Refactor and fix curses configure check to always search
http://hg.python.org/cpython/rev/635817da596d

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15887] urlencode should accept iterables of pairs

2014-04-17 Thread Éric Araujo

Éric Araujo added the comment:

>> "Convert a mapping object or a sequence of two-element tuples, which
>> may either be a str or a bytes, to a “percent-encoded” string."
>
> Mappings, duple sequences, and duples cannot be str or bytes.

The only thing making sense to me here is that “which” refers to “element”.  
Rephrased: Convert a mapping or sequence of two-element tuples, where each 
mapping key or each first element in the tuples may be str or bytes.

--
nosy: +eric.araujo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21274] define PATH_MAX for GNU/Hurd in Python/pythonrun.c

2014-04-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ca2edbefca35 by doko in branch '3.4':
Fixes for KFreeBSD and the Hurd:
http://hg.python.org/cpython/rev/ca2edbefca35

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-04-17 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +georg.brandl

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21285] refactor anfd fix curses configure checks

2014-04-17 Thread Thomas Wouters

Thomas Wouters added the comment:

Good fix. Do remove the 'first curses header check' comment you add, and don't 
forget to regenerate configure (and maybe pyconfig.h.in? I don't know if 
that'll change.)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21275] fix a socket test on KFreeBSD

2014-04-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ca2edbefca35 by doko in branch '3.4':
Fixes for KFreeBSD and the Hurd:
http://hg.python.org/cpython/rev/ca2edbefca35

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21276] don't define USE_XATTRS on kfreebsd and the Hurd

2014-04-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ca2edbefca35 by doko in branch '3.4':
Fixes for KFreeBSD and the Hurd:
http://hg.python.org/cpython/rev/ca2edbefca35

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-04-17 Thread Chris Monsanto

Chris Monsanto added the comment:

This issue has been open for 4 years, last update was 2 months ago.

Lack of transactional DDL is a big deal for Python programs that use SQLite 
heavily.

We have a patch for Python 3 that applies cleanly and as far as I can tell 
works fine. I've been using it in testing for months, and I'm about to deploy 
it in production.

What's the next step here? What do we need to do to get something merged?

--
nosy: +monsanto

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21276] don't define USE_XATTRS on kfreebsd and the Hurd

2014-04-17 Thread Thomas Wouters

Thomas Wouters added the comment:

Looks good.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21275] fix a socket test on KFreeBSD

2014-04-17 Thread Thomas Wouters

Thomas Wouters added the comment:

Looks good.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21274] define PATH_MAX for GNU/Hurd in Python/pythonrun.c

2014-04-17 Thread Thomas Wouters

Thomas Wouters added the comment:

You should put the definition closer to the Windows one (right after or before 
it) rather than further down the file. Other than that, looks good.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20434] Fix error handler of _PyString_Resize() on allocation failure

2014-04-17 Thread Kristján Valur Jónsson

Kristján Valur Jónsson added the comment:

Add comments and explicit (void) on the ignored value from _PyString_Resize as 
suggested by Victor

--
Added file: http://bugs.python.org/file34951/string_resize.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-04-17 Thread Mark Dickinson

Mark Dickinson added the comment:

N.B.  When I build the docs locally on the default branch (using 'make html' 
from the Docs directory on a clean checkout), I *do* see the refcounting 
annotations in the html output.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16285] Update urllib quoting to RFC 3986

2014-04-17 Thread Christian Theune

Changes by Christian Theune :


--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16285] Update urllib quoting to RFC 3986

2014-04-17 Thread Christian Theune

Changes by Christian Theune :


--
keywords: +patch
Added file: http://bugs.python.org/file34950/0be3805cade1.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-04-17 Thread Mark Dickinson

Mark Dickinson added the comment:

Yay! Thanks, Benjamin.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16285] Update urllib quoting to RFC 3986

2014-04-17 Thread Christian Theune

Changes by Christian Theune :


--
hgrepos:  -242

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16285] Update urllib quoting to RFC 3986

2014-04-17 Thread Christian Theune

Changes by Christian Theune :


--
hgrepos: +242

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-04-17 Thread Brett Cannon

Brett Cannon added the comment:

No, I have no objections.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-04-17 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +haypo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >