[issue20162] Test test_hash_distribution fails on RHEL 6.5 / ppc64

2014-01-17 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Well, then it LGTM.

--

___
Python tracker 

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



[issue20086] test_locale fails with Turkish locale

2014-01-17 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> 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



[issue16572] Bad multi-inheritance support in some libs like threading or multiprocessing

2014-01-17 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Raymond, what do you think?

--

___
Python tracker 

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



[issue20284] proof for concept patch for bytes formatting methods

2014-01-17 Thread Neil Schemenauer

Neil Schemenauer added the comment:

I'm attaching v2 of my proposed patch.  This one is quite a bit better, IMHO.

- Introduce __ascii__ as a special method, like __str__ but required to exist 
only if an ASCII-only format exists.

- Extract PyString_Format from Python 2.7 and update it for PyBytes.

- %c only accepts integers, not single character strs, maybe should
  accept length one byte objects.

- add %a, should be useful for debugging

- %s calls __bytes__ or __ascii__, otherwise gives a TypeError, should
  eventually support buffer API

- number formats work as they do in Python 2.

--
keywords: +needs review -patch
Added file: http://bugs.python.org/file33505/bytes_mod_v2.patch

___
Python tracker 

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



[issue20284] proof for concept patch for bytes formatting methods

2014-01-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



[issue20284] proof for concept patch for bytes formatting methods

2014-01-17 Thread STINNER Victor

STINNER Victor added the comment:

I reviewed your second patch on Rietveld.

--

___
Python tracker 

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



[issue20162] Test test_hash_distribution fails on RHEL 6.5 / ppc64

2014-01-17 Thread STINNER Victor

STINNER Victor added the comment:

@Christian: Are you ok with siphash_ppc64.patch? I'm going to push the fix.

--

___
Python tracker 

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



[issue20284] proof for concept patch for bytes formatting methods

2014-01-17 Thread Neil Schemenauer

Neil Schemenauer added the comment:

Uploading new patch with the following changes:

- Allow length 1 bytes object as argument to %c.
- Make %r an alias for %a.

I will upload a draft PEP (proposed as a replacement for 461).

Victor, thanks for the review.  My reply is:

- regarding duplicated code: almost all of the code I added came directly from 
Python 2.7.  If it can but shared with unicode object, great.  However, note 
that the Python 2.7 code is well tested and well optimized.

- regarding the introduction of __ascii__, see my draft PEP.  PEP 461 cannot be 
implemented, adding __bytes__ to number objects breaks backwards compatibility.

- regarding the change to _datetime, I don't mind if it gets discarded but I 
think its useful behavior.  Mostly I made it as a proof-of-concept.

--
keywords: +patch
Added file: http://bugs.python.org/file33506/bytes_mod_v3.patch

___
Python tracker 

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



[issue20284] proof for concept patch for bytes formatting methods

2014-01-17 Thread Neil Schemenauer

Changes by Neil Schemenauer :


Added file: http://bugs.python.org/file33507/pep-draft.txt

___
Python tracker 

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



[issue20283] Wrong keyword parameter name in regex pattern methods

2014-01-17 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
keywords: +patch
Added file: http://bugs.python.org/file33508/sre_pattern_string_keyword.patch

___
Python tracker 

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



[issue20283] Wrong keyword parameter name in regex pattern methods

2014-01-17 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


Removed file: http://bugs.python.org/file33508/sre_pattern_string_keyword.patch

___
Python tracker 

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



[issue20283] Wrong keyword parameter name in regex pattern methods

2014-01-17 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


Added file: http://bugs.python.org/file33509/sre_pattern_string_keyword.patch

___
Python tracker 

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



[issue19936] Executable permissions of Python source files

2014-01-17 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Left files with mismatched executable bits and shebangs:

Python 3.4:

- ./Doc/includes/email-unpack.py
- ./Doc/includes/email-alternative.py
- ./Doc/includes/email-dir.py
x ./Tools/scripts/pydocgui.pyw
x ./Lib/idlelib/idle.bat
- ./Modules/_ctypes/libffi/build-ios.sh
x ./Modules/_ctypes/libffi/ltmain.sh
- ./Modules/_ctypes/libffi/msvcc.sh
- ./Modules/_ctypes/libffi/src/arm/gentramp.sh
x ./Modules/_decimal/tests/runall.bat

Python 3.3:

- ./Doc/includes/email-unpack.py
- ./Doc/includes/email-alternative.py
- ./Doc/includes/email-dir.py
x ./Lib/idlelib/idle.bat
- ./Modules/_ctypes/libffi/build-ios.sh
x ./Modules/_ctypes/libffi/ltmain.sh
- ./Modules/_ctypes/libffi/msvcc.sh
- ./Modules/_ctypes/libffi/src/arm/gentramp.sh
x ./Modules/_decimal/tests/runall.bat
x ./PC/VS7.1/rt.bat
x ./PC/VC6/rt.bat

Python 2.7:

- ./Doc/includes/email-unpack.py
- ./Doc/includes/email-alternative.py
- ./Doc/includes/email-dir.py
x ./Demo/rpc/test
x ./Lib/idlelib/idle.bat
x ./PC/VS7.1/rt.bat
x ./PC/VC6/rt.bat

--

___
Python tracker 

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



[issue17849] Missing size argument in readline() method for httplib's class LineAndFileWrapper

2014-01-17 Thread Steve

Steve added the comment:

I just noticed that this is reporducible consistently with the python
requests[1] module, if you route your request through a proxy. I was wondering
whether I should report this as a 'requests' bug or would this be the right
place to add a 'me too' ? Here's the reporducer:

[steve@localhost ~/venvs]$ mkdir requests_bug
[steve@localhost ~/venvs]$ cd requests_bug/
[steve@localhost ~/venvs/requests_bug]$ virtualenv .
New python executable in ./bin/python
Installing 
Setuptools..done.
Installing 
Pip.done.
[steve@localhost ~/venvs/requests_bug]$ . bin/activate
(requests_bug)[steve@localhost ~/venvs/requests_bug]$ pip install requests
Downloading/unpacking requests
  Downloading requests-2.2.0.tar.gz (421kB): 421kB downloaded
  Running setup.py egg_info for package requests

Installing collected packages: requests
  Running setup.py install for requests

Successfully installed requests
Cleaning up...
(requests_bug)[steve@localhost ~/venvs/requests_bug]$ python
Python 2.7.5 (default, Nov 12 2013, 16:18:42)
[GCC 4.8.2 20131017 (Red Hat 4.8.2-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
You've got color, tab completion and pretty-printing. History will be saved
in /home/steve/.pyhistory when you exit.

Typing '\e' will open your $EDITOR with the last executed statement

>>> import requests
>>> requests.get('https://www.google.com/', verify=False)

>>> requests.get('https://www.google.com/', verify=False, 
>>> proxies={'https':'https://192.168.117.157:443'})
Traceback (most recent call last):
  File "", line 1, in 
  File 
"/home/steve/venvs/requests_bug/lib/python2.7/site-packages/requests/api.py", 
line 55, in get
return request('get', url, **kwargs)
  File 
"/home/steve/venvs/requests_bug/lib/python2.7/site-packages/requests/api.py", 
line 44, in request
return session.request(method=method, url=url, **kwargs)
  File 
"/home/steve/venvs/requests_bug/lib/python2.7/site-packages/requests/sessions.py",
 line 383, in request
resp = self.send(prep, **send_kwargs)
  File 
"/home/steve/venvs/requests_bug/lib/python2.7/site-packages/requests/sessions.py",
 line 486, in send
r = adapter.send(request, **kwargs)
  File 
"/home/steve/venvs/requests_bug/lib/python2.7/site-packages/requests/adapters.py",
 line 334, in send
timeout=timeout
  File 
"/home/steve/venvs/requests_bug/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py",
 line 475, in urlopen
conn = self._get_conn(timeout=pool_timeout)
  File 
"/home/steve/venvs/requests_bug/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py",
 line 217, in _get_conn
return conn or self._new_conn()
  File 
"/home/steve/venvs/requests_bug/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py",
 line 656, in _new_conn
return self._prepare_conn(conn)
  File 
"/home/steve/venvs/requests_bug/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py",
 line 625, in _prepare_conn
conn.connect()
  File 
"/home/steve/venvs/requests_bug/lib/python2.7/site-packages/requests/packages/urllib3/connection.py",
 line 90, in connect
self._tunnel()
  File "/usr/lib64/python2.7/httplib.py", line 759, in _tunnel
line = response.fp.readline(_MAXLINE + 1)
TypeError: readline() takes exactly 1 argument (2 given)
>>>

cheers,
- steve

[1] requests-2.2.0

--
nosy: +lonetwin

___
Python tracker 

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



[issue20287] Argument Clinic: support diverting output to buffer, external file, etc

2014-01-17 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Can Argument Clinic be simplified when drop support for all alternative outputs 
besides a side file?

> * "args" and "kwargs" variables in C renamed to "_args" and "_kwargs"

Why this is needed? If buildin function has "args" or "kwargs" keyword 
arguments, C variables can be renamed to args_value and kwargs_value, as for 
any reserved keywords (e.g. "default", "int"). Other changes look very good, 
but these are just add code churn.

--

___
Python tracker 

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



[issue19936] Executable permissions of Python source files

2014-01-17 Thread Stefan Krah

Stefan Krah added the comment:

IMO the .bat files should have the executable bit as a reminder that they're
executable on Windows.

--

___
Python tracker 

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



[issue20288] HTMLParse handing of non-numeric charrefs broken

2014-01-17 Thread Anders Hammarquist

New submission from Anders Hammarquist:

Python 2.7 HTMLParse.py lines 185-199 (similar lines still exist in Python 3.4)
match = charref.match(rawdata, i)
if match:
...
else:
if ";" in rawdata[i:]: #bail by consuming &#
self.handle_data(rawdata[0:2])
i = self.updatepos(i, 2)
break

if you feed a broken charref, that is non-numeric, it will pass whatever random 
string that happened to be at the start of rawdata to handle_data(). Eg:

p = HTMLParser()
p.handle_data = lambda x: sys.stdout.write(x)
p.feed('&#foo;')

will print '

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



[issue20288] HTMLParse handing of non-numeric charrefs broken

2014-01-17 Thread Ezio Melotti

Changes by Ezio Melotti :


--
assignee:  -> ezio.melotti
nosy: +ezio.melotti

___
Python tracker 

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



[issue20135] FAQ need list mutation answers

2014-01-17 Thread Ezio Melotti

Ezio Melotti added the comment:

http://docs.python.org/3/faq/design.html#why-are-default-values-shared-between-objects

--
nosy: +ezio.melotti

___
Python tracker 

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



[issue20289] Make cgi.FieldStorage a context manager

2014-01-17 Thread Brett Cannon

New submission from Brett Cannon:

It has a file attribute which contains a file, so making it so it can be closed 
faster than cgi.FieldStorage.__del__ would be good.

--
components: Library (Lib)
messages: 208338
nosy: brett.cannon
priority: normal
severity: normal
stage: test needed
status: open
title: Make cgi.FieldStorage a context manager
type: behavior
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



[issue18394] cgi.FieldStorage triggers ResourceWarning sometimes

2014-01-17 Thread Brett Cannon

Brett Cannon added the comment:

While you're right, Marcel, that code which pulls out the file object form 
FieldStorage would probably have the file closed from underneath it, I don't 
know if I agree that it's a bad thing. The FieldStorage object created that 
file, implicitly putting it in charge of managing it. Having it guarantee that 
it gets closed seems to me totally reasonable and a bug not to do so. And 
having Bottle break as-is doesn't sway me as this is a bug fix and so updating 
Bottle as part of the process to support Python 3.4 is reasonable.

That use of the term "leisure" is definitely a problem, though. So I'm going to 
make this a bug report for updating the docs to no longer use the term 
"leisure" and add a versionchanged note that FieldStorage will close the 'file' 
attribute upon deletion. I'll also opened http://bugs.python.org/issue20289 to 
add context manager support to FieldStorage.

But since leaving files randomly open is not good I can't bring myself to 
revert this change.

--

___
Python tracker 

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



[issue20266] Bring Doc/faq/windows up to date

2014-01-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset c9706c13a005 by Zachary Ware in branch '3.3':
Issue #20266: Update parts of the Windows FAQ
http://hg.python.org/cpython/rev/c9706c13a005

New changeset 3cb048463ea7 by Zachary Ware in branch 'default':
Issue #20266: Merge with 3.3
http://hg.python.org/cpython/rev/3cb048463ea7

--
nosy: +python-dev

___
Python tracker 

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



[issue17849] Missing size argument in readline() method for httplib's class LineAndFileWrapper

2014-01-17 Thread R. David Murray

R. David Murray added the comment:

Requests may well want to put a workaround in place.  To fix it in 2.7, we need 
a patch that actually respects the size argument, and a unit test.

--

___
Python tracker 

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



[issue20135] FAQ need list mutation answers

2014-01-17 Thread R. David Murray

R. David Murray added the comment:

I *thought* there was a FAQ entry for that.  Didn't think to look for it in the 
design section though :(.  Nor is the title likely to catch the eye of someone 
wondering why their default argument modifications are being unexpectedly 
persistent.  Also, the fact that it starts out with the sentence "This type of 
bug commonly bites neophyte programmers" is, IMO, a clue it should be in the 
programming section.

--

___
Python tracker 

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



[issue18394] cgi.FieldStorage triggers ResourceWarning sometimes

2014-01-17 Thread Brett Cannon

Changes by Brett Cannon :


--
status: open -> closed

___
Python tracker 

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



[issue18394] cgi.FieldStorage triggers ResourceWarning sometimes

2014-01-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 13d04a8713ad by Brett Cannon in branch 'default':
Issue #18394: Document that cgi.FieldStorage now cleans up after its
http://hg.python.org/cpython/rev/13d04a8713ad

--

___
Python tracker 

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



[issue20208] Clarify some things in porting HOWTO

2014-01-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 863b8e71cfee by Brett Cannon in branch 'default':
Issue #20208: Clarify some things in the Python porting HOWTO.
http://hg.python.org/cpython/rev/863b8e71cfee

--
nosy: +python-dev

___
Python tracker 

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



[issue20208] Clarify some things in porting HOWTO

2014-01-17 Thread Brett Cannon

Changes by Brett Cannon :


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



[issue20194] Add :deprecated: marker to formatter module docs

2014-01-17 Thread Roundup Robot

New submission from Roundup Robot:

New changeset 30013dbb5bc2 by Brett Cannon in branch 'default':
Issues #20194,20195: Add missing :deprecated: markers to some module
http://hg.python.org/cpython/rev/30013dbb5bc2

--
nosy: +python-dev

___
Python tracker 

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



[issue20195] Add :deprecated: marker to imp docs

2014-01-17 Thread Brett Cannon

New submission from Brett Cannon:

Fixed by changeset 30013dbb5bc2

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



[issue20194] Add :deprecated: marker to formatter module docs

2014-01-17 Thread Brett Cannon

Changes by Brett Cannon :


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



[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-17 Thread Brett Cannon

Brett Cannon added the comment:

I'm going to start tackling some of these today and checking them in directly. 
If I don't finish I will update the bug with what I didn't get to.

--
assignee:  -> brett.cannon

___
Python tracker 

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



[issue14031] logging module cannot format str.format log messages

2014-01-17 Thread kespindler

kespindler added the comment:

Those new examples look good. I appreciate your revisiting the issue.

On Wed, Jan 15, 2014 at 7:12 AM, Vinay Sajip  wrote:

>
> Vinay Sajip added the comment:
>
> Cookbook updated. See changesets 7c4f0c3dedaf and 0056aaf42bf7 for more
> information - docs.python.org should update within a day.
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue20266] Bring Doc/faq/windows up to date

2014-01-17 Thread Mark Lawrence

Mark Lawrence added the comment:

The faq doesn't mention the new launcher for Windows.  Rather than write too 
much I'd simply cross reference this 
http://docs.python.org/3/using/windows.html#python-launcher-for-windows.  I 
think this also impacts on the section "How do I make Python scripts 
executable?".

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue20288] HTMLParse handing of non-numeric charrefs broken

2014-01-17 Thread Ezio Melotti

Ezio Melotti added the comment:

Thanks for the report, this is indeed a bug.
This behavior was covered by a test (see Lib/test/test_htmlparser.py:164), but 
_run_check feeds the chars one by one to the parser, and in that case it works 
correctly.  While feeding the parser a whole chunk I was able to reproduce the 
bug.  This should be fixed, and the behavior of _run_check should probably be 
changed too -- maybe it could test both the char-by-char and the regular 
feeding.

--
nosy: +r.david.murray
stage:  -> needs patch
versions: +Python 2.7, Python 3.3, Python 3.4

___
Python tracker 

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



[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-17 Thread Brett Cannon

Brett Cannon added the comment:

Patch for multibytecodec.c.

Not sure how you calculated locations, Larry, but this file had 11 things to 
change, so some other work divisions might be off.

--
Added file: http://bugs.python.org/file33510/multibytecodec_derby.diff

___
Python tracker 

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



[issue17849] Missing size argument in readline() method for httplib's class LineAndFileWrapper

2014-01-17 Thread Cory Benfield

Cory Benfield added the comment:

I've been messing around trying to write a test for this, and it looks like 
genuinely the only place this can be hit is in _tunnel(). None of the other 
readline() calls can be hit with the LineAndFileWrapper() wrapping the file 
descriptor.

--
nosy: +Lukasa

___
Python tracker 

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



[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-17 Thread Brett Cannon

Brett Cannon added the comment:

After finding out that the initial site counts were off I went through and 
manually counted each file in this Derby group to get a more accurate idea of 
how much work each file would be.

Modules/cmathmodule.c: 8 sites
Modules/arraymodule.c: 27 sites
Modules/pyexpat.c: 11 sites
Modules/fcntlmodule.c: 4 sites
Modules/pwdmodule.c: 3 sites
Modules/spwdmodule.c: 2 sites
Modules/grpmodule.c: 3 sites

--

___
Python tracker 

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



[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-17 Thread Brett Cannon

Changes by Brett Cannon :


Added file: http://bugs.python.org/file33511/grp_derby.diff

___
Python tracker 

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



[issue17849] Missing size argument in readline() method for httplib's class LineAndFileWrapper

2014-01-17 Thread Cory Benfield

Cory Benfield added the comment:

Alright, here's a patch.

I'm not ecstatic about this test: it's utterly contrived, but it also seems to 
be the least bad way to reproduce this bug. Let me know if you strongly object 
and I'll take another swing at it (it'll probably involve extending the 
FakeSocket quite extensively).

--
keywords: +patch
Added file: http://bugs.python.org/file33512/readline.patch

___
Python tracker 

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



[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-17 Thread Brett Cannon

Changes by Brett Cannon :


Added file: http://bugs.python.org/file33513/spwd_derby.diff

___
Python tracker 

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



[issue20287] Argument Clinic: support diverting output to buffer, external file, etc

2014-01-17 Thread Larry Hastings

Larry Hastings added the comment:

If I removed support for all destinations except files, I might
be able to remove fifty lines or so.  However, I'm not planning
on doing that.  Does cryptmodule.c, which has exactly one function,
really need a 20-line separate file?

Also, the "file" approach often requires rearranging the file
before it will work, like moving struct declarations (or at
least making forward declarations) before the #include of
the generated file.

The change of "args" to "_args" is me planning ahead a little;
I plan to add the ability to get "args" and "kwargs" passed in
to the impl function, both visibly to the signature, or silently
(for bizarre functions like module_connect() in
Modules/sqlite/connect.c).  It would be possible to do this
without renaming them, but then a) it would slightly complicate
the approach I plan to take, and b) it would mean adding those
ugly "_value" suffixes where they aren't strictly necessary.
So I elected to bite the bullet and have the code churn now,
in the middle of this patch that already has some code churn.

However, I've been thinking about it all morning, and maybe
I should just bite the bullet and make the code generator
understand values whose name is different in the parsing and
impl functions.

(By the way, my next major patch, enabling signatures to work
for all the other builtin types besides simple functions,
will have lots of unavoidable code churn.  You are forewarned!)

--

___
Python tracker 

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



[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-17 Thread Brett Cannon

Changes by Brett Cannon :


Added file: http://bugs.python.org/file33514/multibytecodec_derby.diff

___
Python tracker 

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



[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-17 Thread Brett Cannon

Changes by Brett Cannon :


Removed file: http://bugs.python.org/file33510/multibytecodec_derby.diff

___
Python tracker 

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



[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-17 Thread Brett Cannon

Changes by Brett Cannon :


Added file: http://bugs.python.org/file33515/pwd_derby.diff

___
Python tracker 

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



[issue20284] patch to implement %-interpolation for bytes (roughly PEP 461)

2014-01-17 Thread Neil Schemenauer

Neil Schemenauer added the comment:

Another revision of the patch, now quite close to PEP 461 as proposed.  Changes 
from PEP 461:

- include %a

- add -2 command-line flag.  When enabled have %s fallback to calling 
PyObject_Str() and encoding to ASCII and also enable %r as alias for %a.

Changes from previous patch:

- remove __ascii__ special method, %s will only accept objects that
  implement __bytes__ or the buffer API, unless -2 command line is used

- use buffer API if available

- add -2 command-line option

- Add prototypes for PyBytes_Format and _PyUnicode_FormatLong

- improve some exception messages

Reference counting in PyBytes_Format is quite hairy, could use some review.  
The code is nearly the same as Python 2.x stringobject.c.

--
title: proof for concept patch for bytes formatting methods -> patch to 
implement %-interpolation for bytes (roughly PEP 461)
Added file: http://bugs.python.org/file33516/bytes_mod_v4.patch

___
Python tracker 

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



[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-17 Thread Brett Cannon

Brett Cannon added the comment:

Might pick this up later today (or never), but taking a break for now.

Larry, I have patches for grp, spwd, _multibytecodec, and pwd I'd like you to 
give a once-over to make sure I didn't miss anything.

The only one that I think has an obvious improvement is in pwd where there is 
custom logic to deal with a PyArg_ParseTuple() failure. Does Argument Clinic 
have a way to specify custom logic in that instance?

With these patches the TODO for this derby group is:

Modules/cmathmodule.c: 8 sites
Modules/arraymodule.c: 27 sites
Modules/pyexpat.c: 11 sites
Modules/fcntlmodule.c: 4 sites

cmath might not be worth doing, though, for 3.4 as it already has custom macros 
to create function definitions.

--
assignee: brett.cannon -> larry

___
Python tracker 

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



[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-17 Thread Guido van Rossum

Guido van Rossum added the comment:

Now looking.  Note that a few parts of the patch no longer cleanly apply:

hg import --no-c http://bugs.python.org/review/download/issue20189_10572.diff
applying http://bugs.python.org/review/download/issue20189_10572.diff
patching file Modules/_cursesmodule.c
Hunk #2 FAILED at 649
1 out of 2 hunks FAILED -- saving rejects to file Modules/_cursesmodule.c.rej
patching file Modules/_dbmmodule.c
Hunk #3 FAILED at 310
1 out of 5 hunks FAILED -- saving rejects to file Modules/_dbmmodule.c.rej
patching file Modules/_opcode.c
Hunk #2 FAILED at 63
1 out of 2 hunks FAILED -- saving rejects to file Modules/_opcode.c.rej
patching file Modules/zlibmodule.c
Hunk #2 FAILED at 226
1 out of 8 hunks FAILED -- saving rejects to file Modules/zlibmodule.c.rej
patching file Tools/clinic/clinic.py
Hunk #6 FAILED at 1482
Hunk #7 succeeded at 1502 with fuzz 2 (offset -14 lines).
Hunk #12 FAILED at 2393
2 out of 22 hunks FAILED -- saving rejects to file Tools/clinic/clinic.py.rej
abort: patch failed to apply

--
nosy: +gvanrossum

___
Python tracker 

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



[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-17 Thread Larry Hastings

Larry Hastings added the comment:

Updating / merging / resolving now, but it will take me a few minutes.

--

___
Python tracker 

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



[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-17 Thread Larry Hastings

Larry Hastings added the comment:

Here's a fresh patch against trunk.  It applies cleanly against current tip 
(725bc24f5492).

--
Added file: 
http://bugs.python.org/file33517/larry.support.text_signature.on.more.types.diff.4.txt

___
Python tracker 

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



[issue20287] Argument Clinic: support diverting output to buffer, external file, etc

2014-01-17 Thread Larry Hastings

Larry Hastings added the comment:

I have backed out the "args" -> "_args" change.  Not because I'm giving up on 
it, or that I necessarily think it's a bad idea, but because there
are some changes happening in #20189 that will make it easier / that would 
conflict if I attacked it now.

The resulting patch is smaller than the first iteration.  And since you said it 
was fine except for that, I assume this patch is fine and can go in?

--
Added file: http://bugs.python.org/file33518/larry.clinic.buffer.patch.2.txt

___
Python tracker 

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



[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-17 Thread Zachary Ware

Changes by Zachary Ware :


--
nosy: +zach.ware

___
Python tracker 

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



[issue20290] inspect module bug for modules with same filename

2014-01-17 Thread cqxz

New submission from cqxz:

When two files have the same name and the first changes directory to the 
second, the inspect module can retrieve the source code for the latter 
incorrectly, so a simple call to inspect.stack() can be incorrect, and will 
fail if there are less lines in the nested module (foo/bar/mod.py) than in the 
calling module (foo/mod.py)

foo/mod.py
foo/bar/mod.py

(the foo/bar/mod.py need only contain a single line, e.g. print "hello")

--
components: Extension Modules
files: mod.py
messages: 208362
nosy: Nick.Rhinehart
priority: normal
severity: normal
status: open
title: inspect module bug for modules with same filename
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file33519/mod.py

___
Python tracker 

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



[issue20285] Improve object.__doc__ and help(object) output

2014-01-17 Thread Terry J. Reedy

Terry J. Reedy added the comment:

On python-list, Jean-Michel Pichavant pointed out that the status of object is 
different in 2.7. 'for new-style classes' would have to be added. 2.7 currently 
has the same output, but the meaning is slightly different as type and class 
are slightly different there.

--

___
Python tracker 

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



[issue20285] Improve object.__doc__ and help(object) output

2014-01-17 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Rather, 'all classes' should be 'all new-style classes'.

--

___
Python tracker 

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



[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-17 Thread Guido van Rossum

Guido van Rossum added the comment:

I limited myself to the four files you mentioned, and they look totally fine. 
Together with Nick's view you should have enough core review now, right?

--

___
Python tracker 

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



[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-17 Thread Larry Hastings

Larry Hastings added the comment:

I do.  Thanks for your time!

--

___
Python tracker 

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



[issue20265] Bring Doc/using/windows up to date

2014-01-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fc52b657bcd9 by Zachary Ware in branch '3.3':
Issue #20265: Updated some parts of the Using Windows document.
http://hg.python.org/cpython/rev/fc52b657bcd9

New changeset 5a9171e70573 by Zachary Ware in branch 'default':
Issue #20265: Merge with 3.3
http://hg.python.org/cpython/rev/5a9171e70573

--
nosy: +python-dev

___
Python tracker 

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



[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-17 Thread Zachary Ware

Zachary Ware added the comment:

A few issues with this patch:

1) help(os) raises ValueError

"""
Traceback (most recent call last):
  File "", line 1, in 
  File "P:\ath\to\cpython\lib\_sitebuiltins.py", line 99, in __call__
return pydoc.help(*args, **kwds)
  File "P:\ath\to\cpython\lib\pydoc.py", line 1792, in __call__
self.help(request)
  File "P:\ath\to\cpython\lib\pydoc.py", line 1842, in help
else: doc(request, 'Help on %s:', output=self._output)
  File "P:\ath\to\cpython\lib\pydoc.py", line 1578, in doc
pager(render_doc(thing, title, forceload))
  File "P:\ath\to\cpython\lib\pydoc.py", line 1571, in render_doc
return title % desc + '\n\n' + renderer.document(object, name)
  File "P:\ath\to\cpython\lib\pydoc.py", line 356, in document
if inspect.ismodule(object): return self.docmodule(*args)
  File "P:\ath\to\cpython\lib\pydoc.py", line 1142, in docmodule
contents.append(self.document(value, key, name))
  File "P:\ath\to\cpython\lib\pydoc.py", line 358, in document
if inspect.isroutine(object): return self.docroutine(*args)
  File "P:\ath\to\cpython\lib\pydoc.py", line 1323, in docroutine
signature = inspect.signature(object)
  File "P:\ath\to\cpython\lib\inspect.py", line 1551, in signature
raise ValueError(msg)
ValueError: no signature found for builtin function 
"""

2) help(pickle.dump) shows "module" as the first argument.  Of course, that's 
true in C, but not in Python.  This is the same for all module-level builtins.

"""
>>> help(pickle.dump)
Help on built-in function dump in module _pickle:

dump(module, obj, file, protocol=None, *, fix_imports=True)
Write a pickled representation of obj to the open file object file.



>>> pickle.dump.__text_signature__
'(module, obj, file, protocol=None, *, fix_imports=True)'
"""

3) A module-level function with a positional-only parameter named 'module' in 
the first position causes an assertion error:

Clinic block:
"""
/*[clinic input]
_winapi.GetModuleFileName

module: HMODULE
/

Return the fully-qualified path for the file that contains module.


[clinic start generated code]*/
"""

Traceback:
"""
P:\ath\to\cpython>PCbuild\python_d.exe Tools\clinic\clinic.py Modules\_winapi.c
Error in file "Modules\_winapi.c" on line 1299:
Exception raised during parsing:
Traceback (most recent call last):
  File "Tools\clinic\clinic.py", line 1099, in parse
parser.parse(block)
  File "Tools\clinic\clinic.py", line 2283, in parse
self.state(None)
  File "Tools\clinic\clinic.py", line 3022, in state_terminal
self.function.docstring = self.format_docstring()
  File "Tools\clinic\clinic.py", line 2847, in format_docstring
assert isinstance(parameters[0].converter, self_converter)
AssertionError
"""

--

___
Python tracker 

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



[issue17481] inspect.getfullargspec could use __signature__

2014-01-17 Thread Yury Selivanov

Yury Selivanov added the comment:

Can somebody review the patch? I'd be cool if this lands in 3.4.

--
nosy: +larry

___
Python tracker 

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



[issue20222] unittest.mock-examples doc uses builtin file which is removed in Python 3

2014-01-17 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I think /file/open/ would work.

--
nosy: +michael.foord, terry.reedy

___
Python tracker 

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



[issue20223] inspect.signature does not support new functools.partialmethod

2014-01-17 Thread Terry J. Reedy

Terry J. Reedy added the comment:

This strikes me as a bug introduced with the new 3.4 feature and thus a Type: 
behavior issue eligible for 3.4. inspect.signature should work correctly with 
any python-coded callable and not return a wrong answer. (And we are trying to 
get inspect to work with C-coded callables also in 3.4.)

--
nosy: +terry.reedy
type: enhancement -> behavior

___
Python tracker 

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



[issue20223] inspect.signature does not support new functools.partialmethod

2014-01-17 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
stage:  -> patch review

___
Python tracker 

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



[issue20287] Argument Clinic: support diverting output to buffer, external file, etc

2014-01-17 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The patch is too large and I don't very conversant with this code, so I just 
left several minor comments on Rietveld. At first glance all looks good.

All works with my patches, results are good. But I see that side fail names 
have extension .clinic.c. The .c.clinic extension would be better.

For now clinic_test is failed:

Error:
Destination does not exist: 'file'

--

___
Python tracker 

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



[issue20237] Ambiguous sentence in document of xml package.

2014-01-17 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I took the sentence to mean 1) more that 2). I agree that it should be revised.

--
nosy: +terry.reedy
versions:  -Python 3.2

___
Python tracker 

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



[issue20254] Duplicate bytearray test on test_socket.py

2014-01-17 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
nosy: +pitrou, terry.reedy

___
Python tracker 

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



[issue20287] Argument Clinic: support diverting output to buffer, external file, etc

2014-01-17 Thread Larry Hastings

Larry Hastings added the comment:

I have a fix already in place for the clinic_test.py problem.

I disagree with your proposed "foo.c.clinic" nomenclature, and there are 
advantages to "foo.clinic.c": double-clicking on them will launch the correct 
editor, and editors will automatically color them correctly.

We've had this discussion before, and you weren't able to change my mind then, 
so please give the bikeshedding a rest.

--

___
Python tracker 

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



[issue20283] Wrong keyword parameter name in regex pattern methods

2014-01-17 Thread Terry J. Reedy

Terry J. Reedy added the comment:

How nasty. I agree that this is a code bug. Unfortunately in this case, the C 
code does keyword matching of arguments and 'corrects' the doc for anyone who 
tries 'string='.

>>> pat.search(string='xabc', pos=1)
Traceback (most recent call last):
  File "", line 1, in 
pat.search(string='xabc', pos=1)
TypeError: Required argument 'pattern' (pos 1) not found
>>> pat.search(pattern='xabc', pos=1)
<_sre.SRE_Match object; span=(1, 4), match='abc'>

I think we should only change this in 3.4 (and should do so in 3.4).

--
nosy: +terry.reedy

___
Python tracker 

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



[issue20260] Argument Clinic: add unsigned integers converters

2014-01-17 Thread Ryan Smith-Roberts

Ryan Smith-Roberts added the comment:

socketmodule has three builtins which use PyLong_AsUnsignedLong on their 
arguments and would benefit from these converters, but only if they raise 
OverflowError. So I vote for #2.

I don't think it's unreasonable to continue to have locally-defined argument 
converters.

--
nosy: +rmsr

___
Python tracker 

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



[issue4434] Embedding into a shared library fails

2014-01-17 Thread Björn Lindqvist

Björn Lindqvist added the comment:

The bug is still present on the default build which many distros uses which 
produces an invalid build. That means

./configure && make && make install

is broken! --enable-shared should be turned on by default because many (most?) 
distros build with the default settings.

--
components: +Build -Library (Lib)
nosy: +Björn.Lindqvist
versions: +Python 2.7 -Python 2.5

___
Python tracker 

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



[issue20284] patch to implement %-interpolation for bytes (roughly PEP 461)

2014-01-17 Thread Ethan Furman

Changes by Ethan Furman :


--
nosy: +ethan.furman

___
Python tracker 

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



[issue14480] os.kill on Windows should accept zero as signal

2014-01-17 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
nosy: +giampaolo.rodola

___
Python tracker 

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



[issue20287] Argument Clinic: support diverting output to buffer, external file, etc

2014-01-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7f6712954d5d by Larry Hastings in branch 'default':
Issue #20287: Argument Clinic's output is now configurable, allowing
http://hg.python.org/cpython/rev/7f6712954d5d

--
nosy: +python-dev

___
Python tracker 

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



[issue20287] Argument Clinic: support diverting output to buffer, external file, etc

2014-01-17 Thread Larry Hastings

Larry Hastings added the comment:

Done!

--
resolution:  -> fixed
stage: patch review -> 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



[issue20291] Argument Clinic should understand *args and **kwargs parameters

2014-01-17 Thread Larry Hastings

New submission from Larry Hastings:

Argument Clinic currently prevents the "impl" function from ever seeing the 
"args" tuple or the "kwargs" dict.  There should be a way to ask it to pass 
those values in to the "impl" function.

--
assignee: larry
messages: 208380
nosy: larry, meador.inge
priority: normal
severity: normal
stage: needs patch
status: open
title: Argument Clinic should understand *args and **kwargs parameters
type: behavior
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



[issue20178] Derby #9: Convert 52 sites to Argument Clinic across 11 files

2014-01-17 Thread Larry Hastings

Larry Hastings added the comment:

Meador: I'm going to change Argument Clinic so you can get the "args" and 
"kwargs" values passed in to the impl.  That's issue #20291; I already added 
you to it "nosy" list.  With that change in you'll be able to convert 
"sqlite3.connect".

--

___
Python tracker 

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



[issue18574] BaseHTTPRequestHandler.handle_expect_100() sends invalid response

2014-01-17 Thread Ethan Furman

Changes by Ethan Furman :


--
nosy: +ethan.furman

___
Python tracker 

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



[issue12704] Language Reference: Clarify behaviour of yield when generator is not resumed

2014-01-17 Thread Ethan Furman

Changes by Ethan Furman :


--
nosy: +ethan.furman

___
Python tracker 

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



[issue7776] http.client.HTTPConnection tunneling is broken

2014-01-17 Thread Ethan Furman

Changes by Ethan Furman :


--
nosy: +ethan.furman

___
Python tracker 

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



[issue17814] Popen.stdin/stdout/stderr documentation should mention object type

2014-01-17 Thread Ethan Furman

Changes by Ethan Furman :


--
nosy: +ethan.furman

___
Python tracker 

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



[issue17811] Improve os.readv() and os.writev() documentation and docstring

2014-01-17 Thread Ethan Furman

Changes by Ethan Furman :


--
nosy: +ethan.furman

___
Python tracker 

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



[issue7776] http.client.HTTPConnection tunneling is broken

2014-01-17 Thread Nikolaus Rath

Nikolaus Rath added the comment:

Rebased patch on current tip.

--
Added file: http://bugs.python.org/file33520/issue7776.patch

___
Python tracker 

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



[issue17814] Popen.stdin/stdout/stderr documentation should mention object type

2014-01-17 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 3.1, Python 3.2, Python 3.5

___
Python tracker 

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



[issue7776] http.client.HTTPConnection tunneling is broken

2014-01-17 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.6, Python 3.1, Python 3.2, Python 3.5

___
Python tracker 

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



[issue20177] Derby #8: Convert 28 sites to Argument Clinic across 2 files

2014-01-17 Thread Nikolaus Rath

Nikolaus Rath added the comment:

I have started working on this (partial patch attached), but I am unsure how to 
handle cases where the docstring definition utilizes a macro. For example:

PyDoc_STRVAR(strftime_doc,
"strftime(format[, tuple]) -> string\n\
\n\
Convert a time tuple to a string according to a format specification.\n\
See the library reference manual for formatting codes. When the time tuple\n\
is not present, current time as returned by localtime() is used.\n\
\n" STRFTIME_FORMAT_CODES);

I don't think STRFTIME_FORMAT_CODES will be expanded if I put it into the 
[clinic] comment section. 

Should I include the contents verbatim? Or do not convert these functions to 
argument clinic?

--
keywords: +patch
nosy: +Nikratio
Added file: http://bugs.python.org/file33521/issue20177.patch

___
Python tracker 

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



[issue20292] clinic.py str_converter with encoding throws exception

2014-01-17 Thread Ryan Smith-Roberts

New submission from Ryan Smith-Roberts:

Find test file attached. The exception:

Exception raised during parsing:
Traceback (most recent call last):
...
  File "proj/python/trunk.hg/Tools/clinic/clinic.py", line 1535, in render
self.parse_argument(data.parse_arguments)
  File "proj/python/trunk.hg/Tools/clinic/clinic.py", line 1563, in 
parse_argument
list.append(c_repr(self.encoding))
NameError: global name 'c_repr' is not defined

--
components: Build
files: clinic_encoding_exception.c
messages: 208384
nosy: larry, rmsr
priority: normal
severity: normal
status: open
title: clinic.py str_converter with encoding throws exception
type: crash
versions: Python 3.4
Added file: http://bugs.python.org/file33522/clinic_encoding_exception.c

___
Python tracker 

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



[issue18574] BaseHTTPRequestHandler.handle_expect_100() sends invalid response

2014-01-17 Thread Benjamin Peterson

Benjamin Peterson added the comment:

A test would be good.

--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue17811] Improve os.readv() and os.writev() documentation and docstring

2014-01-17 Thread Benjamin Peterson

Benjamin Peterson added the comment:

IMO, it should just refer to the glossary entry for "bytes-like object".

--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue17814] Popen.stdin/stdout/stderr documentation should mention object type

2014-01-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 946257d3c648 by Benjamin Peterson in branch '3.3':
describe type of Popen streams (closes #17814)
http://hg.python.org/cpython/rev/946257d3c648

New changeset 1a7d416c57ff by Benjamin Peterson in branch 'default':
merge 3.3 (#17814)
http://hg.python.org/cpython/rev/1a7d416c57ff

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