[issue20236] Invalid inline markup in xml document.

2014-01-12 Thread INADA Naoki

New submission from INADA Naoki:

http://docs.python.org/3.3/library/xml.html#xml-vulnerabilities

> DTD retrieval
> Some XML libraries like Python’s mod:’xml.dom.pulldom’ retrieve document

mod: should be :mod:

--
assignee: docs@python
components: Documentation
messages: 208012
nosy: docs@python, naoki
priority: normal
severity: normal
status: open
title: Invalid inline markup in xml document.
versions: Python 3.3, 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



[issue20186] Derby #18: Convert 31 sites to Argument Clinic across 23 files

2014-01-12 Thread Georg Brandl

Georg Brandl added the comment:

Actually I put all I have in one.  Rietveld doesn't care.

The mathmodule still awaits some kind of solution for the macro atrocities.

Objects will be attacked next.

--
Added file: http://bugs.python.org/file33442/modules_issue20186.patch

___
Python tracker 

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



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2014-01-12 Thread Georg Brandl

Georg Brandl added the comment:

New patch.

In selectmodule.c I haven't touched devpoll and kqueue, which I can't compile 
here.

_hashopenssl does weird things with macros, I'm waiting with that.

--
Added file: http://bugs.python.org/file33441/modules_issue20182.patch

___
Python tracker 

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



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2014-01-12 Thread Georg Brandl

Changes by Georg Brandl :


Removed file: http://bugs.python.org/file33428/signal_clinic.patch

___
Python tracker 

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



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2014-01-12 Thread Georg Brandl

Changes by Georg Brandl :


Removed file: http://bugs.python.org/file33429/sys_clinic.patch

___
Python tracker 

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



[issue20186] Derby #18: Convert 31 sites to Argument Clinic across 23 files

2014-01-12 Thread Georg Brandl

Changes by Georg Brandl :


Removed file: http://bugs.python.org/file33426/lsprof_clinic.patch

___
Python tracker 

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



[issue20186] Derby #18: Convert 31 sites to Argument Clinic across 23 files

2014-01-12 Thread Georg Brandl

Georg Brandl added the comment:

OK, new patches coming in.

--

___
Python tracker 

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



[issue20186] Derby #18: Convert 31 sites to Argument Clinic across 23 files

2014-01-12 Thread Georg Brandl

Changes by Georg Brandl :


Removed file: http://bugs.python.org/file33422/csv_module_clinic.patch

___
Python tracker 

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



[issue20186] Derby #18: Convert 31 sites to Argument Clinic across 23 files

2014-01-12 Thread Georg Brandl

Changes by Georg Brandl :


Removed file: http://bugs.python.org/file33423/tracemalloc_clinic.patch

___
Python tracker 

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



[issue20186] Derby #18: Convert 31 sites to Argument Clinic across 23 files

2014-01-12 Thread Georg Brandl

Changes by Georg Brandl :


Removed file: http://bugs.python.org/file33424/io_clinic.patch

___
Python tracker 

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



[issue20186] Derby #18: Convert 31 sites to Argument Clinic across 23 files

2014-01-12 Thread Georg Brandl

Changes by Georg Brandl :


Removed file: http://bugs.python.org/file33425/heapq_clinic.patch

___
Python tracker 

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



[issue20186] Derby #18: Convert 31 sites to Argument Clinic across 23 files

2014-01-12 Thread Georg Brandl

Changes by Georg Brandl :


Removed file: http://bugs.python.org/file33419/mathmodule_part1.patch

___
Python tracker 

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



[issue20235] Argument Clinic: recover a bit more gracefully from exceptions

2014-01-12 Thread Georg Brandl

New submission from Georg Brandl:

I had specified c_default=-1 (note missing quotes) somewhere, and it raises an 
exception during the clinic --make run; there was no indication which file/line 
this was on.

Suggested patch attached.

--
assignee: larry
files: clinic_exception_reporting.patch
keywords: patch
messages: 208008
nosy: georg.brandl, larry
priority: normal
severity: normal
status: open
title: Argument Clinic: recover a bit more gracefully from exceptions
Added file: http://bugs.python.org/file33440/clinic_exception_reporting.patch

___
Python tracker 

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



[issue20234] Argument Clinic: use PyTuple_GET_SIZE?

2014-01-12 Thread Georg Brandl

New submission from Georg Brandl:

In the presence of [ ] , clinic generates PyTuple_Size() calls.

Since argument tuples always are tuples, you can use the macro form 
PyTuple_GET_SIZE() to speed it up.

--
assignee: larry
messages: 208007
nosy: georg.brandl, larry
priority: normal
severity: normal
status: open
title: Argument Clinic: use PyTuple_GET_SIZE?

___
Python tracker 

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



[issue6625] UnicodeEncodeError on pydoc's CLI

2014-01-12 Thread Akira Kitada

Akira Kitada added the comment:

I suppose this is a duplicate of #1065986.

--
nosy: +akitada

___
Python tracker 

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



[issue20227] Argument Clinic: rename arguments in generated C?

2014-01-12 Thread Georg Brandl

Georg Brandl added the comment:

> There are also several PyArg_ParseTuple-using functions that have the 
> same kind of name mismatch, but since the names don't really mean 
> anything on the Python side when they're positional-only, I don't feel 
> too bad about changing them to make them make sense (or to avoid churn).

Although now is a good time to ensure sensible argument names (I usually look 
at the docs to find the documented ones), so that switching the function to 
keyword arg support is basically just a removal of '/'.

--

___
Python tracker 

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



[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)

2014-01-12 Thread Zachary Ware

Zachary Ware added the comment:

And here is the patch to _winapi.c.

--
Added file: http://bugs.python.org/file33439/issue20172._winapi.diff

___
Python tracker 

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



[issue20230] structseq types should expose _fields

2014-01-12 Thread Yury Selivanov

Changes by Yury Selivanov :


--
components: +Interpreter Core, Library (Lib)
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



[issue20230] structseq types should expose _fields

2014-01-12 Thread Yury Selivanov

Changes by Yury Selivanov :


--
nosy: +yselivanov

___
Python tracker 

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



[issue20227] Argument Clinic: rename arguments in generated C?

2014-01-12 Thread Zachary Ware

Zachary Ware added the comment:

I second this request.  Every PyArg_ParseTupleAndKeywords-using function in 
_winapi has a keyword argument "overlapped" which is stuffed into a C variable 
"use_overlapped", while the local variable "overlapped" is used for an 
Overlapped object, which makes for a big hairy diff.  There are also several 
PyArg_ParseTuple-using functions that have the same kind of name mismatch, but 
since the names don't really mean anything on the Python side when they're 
positional-only, I don't feel too bad about changing them to make them make 
sense (or to avoid churn).

Although, for this:

Georg Brandl wrote:
> sometimes the function uses 'O' in PyArg_ParseTuple and then converts the 
> object itself with a nontrivial process.

This kind of case is a good candidate for considering a custom converter; 
posixmodule.c has a good example with a path_t converter that I used for a 
guide in writing one for HKEY in winreg.c.  Of course, if that 'nontrivial 
process' is only done once in one function, a custom converter doesn't make a 
whole lot of sense, but a rename does.

--
nosy: +zach.ware

___
Python tracker 

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



[issue20233] Re-enable buffer API slots for heap types

2014-01-12 Thread Benno Rice

New submission from Benno Rice:

The API slots for bf_getbuffer and bf_releasebuffer are still disabled despite 
the bug referenced (issue 10181) being marked as fixed. These should be 
re-enabled if the stable ABI is to be used for types that use buffers.

--
components: Extension Modules
messages: 208002
nosy: Benno.Rice
priority: normal
severity: normal
status: open
title: Re-enable buffer API slots for heap types
type: enhancement
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



[issue20233] Re-enable buffer API slots for heap types

2014-01-12 Thread Benno Rice

Changes by Benno Rice :


--
nosy: +ncoghlan

___
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-12 Thread Meador Inge

Meador Inge added the comment:

None of the sites in Modules/_curses_panel.c look convertible.

--

___
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-12 Thread Meador Inge

Meador Inge added the comment:

Larry, the attached patch converts what is convertible of
Modules/_ctypes/_ctypes.  Although, I ran into an odd case
with this conversion: the converted functions are each used
in *multiple* PyMethodDef tables.  So while clinic can generate
equivalent code, the builtins are not all pinned to one type.
The type I pinned it to is the same type that the methods
are documented against:
http://docs.python.org/2/library/ctypes.html#ctypes._CData

Since clinic makes you explicitly specify the fully qualified method
name, I assume sharing like this is not allowed.

Thoughts?

--
keywords: +patch
Added file: http://bugs.python.org/file33438/issue20178-cyptes-01.patch

___
Python tracker 

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



[issue20232] Argument Clinic NULL default falsely implies None acceptability

2014-01-12 Thread Vajrasky Kok

Vajrasky Kok added the comment:

Yes, this issue bothers me. Currently _sha1.sha1 constructor will use NULL (not 
None) value if used without parameters: _sha1.sha1()

_sha1.sha1(None) will throw error while _sha1.sha1() won't.

So for NULL (not None) default value, the generated signature 
_sha1.sha1(string=None) is kinda misleading. I am not sure what is the correct 
signature should be without changing behaviour.

--
nosy: +vajrasky

___
Python tracker 

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



[issue20232] Argument Clinic NULL default falsely implies None acceptability

2014-01-12 Thread Ryan Smith-Roberts

New submission from Ryan Smith-Roberts:

When one specifies a default of NULL, the generated signature doc indicates a 
default of None. However, if the user actually supplies None, perhaps as a 
placeholder in a positional-only call, C code which only checks for NULL will 
fail inappropriately.

The solution may be to convert a None object to a null pointer in the wrapper.

--
components: Build
messages: 207998
nosy: larry, rmsr
priority: normal
severity: normal
status: open
title: Argument Clinic NULL default falsely implies None acceptability
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



[issue20231] Argument Clinic accepts no-default args after default args

2014-01-12 Thread Ryan Smith-Roberts

Changes by Ryan Smith-Roberts :


--
type:  -> crash

___
Python tracker 

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



[issue20231] Argument Clinic accepts no-default args after default args

2014-01-12 Thread Ryan Smith-Roberts

New submission from Ryan Smith-Roberts:

A signature of the form

a: object = None
b: object

results in b being uninitialized in the generated C code prior to the 
PyArgs_ParseTuple call. If ParseTuple does not set a value for b (as it is an 
optional argument), b then contains a garbage pointer and the interpreter may 
segfault.

AC should reject this configuration.

--
components: Build
messages: 207997
nosy: larry, rmsr
priority: normal
severity: normal
status: open
title: Argument Clinic accepts no-default args after default args
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



[issue20229] platform.py uses deprecated feature of plistlib

2014-01-12 Thread Ned Deily

Ned Deily added the comment:

Thanks for the report!  Here's a patch.

--
keywords: +needs review
nosy: +ned.deily
stage:  -> patch review
Added file: http://bugs.python.org/file33437/issue20229.py

___
Python tracker 

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



[issue18983] Specify time unit for timeit CLI

2014-01-12 Thread Vajrasky Kok

Vajrasky Kok added the comment:

This feature is for Python 3.5. I think, we will not commit anything to Python 
3.5 until Python 3.4 branch is created (in other world, released). So, be 
patient. :)

--
nosy: +vajrasky

___
Python tracker 

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



[issue20230] structseq types should expose _fields

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



[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

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



[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2014-01-12 Thread Andrew Barnert

Andrew Barnert added the comment:

See issue20230, which includes a patch implementing just the first part of part 
2 (adding _fields, but not _asdict or _replace).

Since this one has been open for 5+ years, if it's not going to be done soon, 
any chance of the easy (_fields) change being committed and putting off the 
harder parts until later?

--
nosy: +abarnert

___
Python tracker 

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



[issue20230] structseq types should expose _fields

2014-01-12 Thread Andrew Barnert

Andrew Barnert added the comment:

After more searching (I should have searched on structseq instead of 
PyStructSequence…), this might be a dup of #1820. If so, apologies.

--

___
Python tracker 

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



[issue7796] No way to find out if an object is an instance of a namedtuple

2014-01-12 Thread Andrew Barnert

Andrew Barnert added the comment:

I believe the structseq issues are a lot easier to solve than the appear. See 
#20230, which adds a _fields member to every structseq type. Having done that, 
a NamedTuple ABC works on them just fine. And of course duck typing them 
without an ABC does too.

--
nosy: +abarnert

___
Python tracker 

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



[issue20230] structseq types should expose _fields

2014-01-12 Thread Meador Inge

Changes by Meador Inge :


--
nosy: +meador.inge

___
Python tracker 

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



[issue20230] structseq types should expose _fields

2014-01-12 Thread Andrew Barnert

New submission from Andrew Barnert:

A PyStructSequence type doesn't expose its field names in any way to Python 
code (except indirectly, via the repr, which you could parse if you really 
wanted to…).

The docs claim that "Struct sequence objects are the C equivalent of 
namedtuple() objects", so it seems like the obvious way to expose them is the 
exact same way namedtuple types do—as a class attribute named "_fields".

Also, in #7796, and in a recent thread on python-ideas, multiple people 
suggested that "named tuple" is a protocol, not a type, and duck typing on 
_fields is the obvious way to detect types matching that protocol.

Only the "sequence fields" need to be exposed—fields that don't match up to 
sequence indices aren't named tuple fields, they're just extra instance 
attributes (that don't even show up in the repr).

Patch included. For the tests, I tested the fields in struct_time and 
stat_result in effectively the same way test_repr tests their repr, so it 
should pass on all the same platforms/builds.

--
files: structseq.diff
keywords: patch
messages: 207991
nosy: abarnert
priority: normal
severity: normal
status: open
title: structseq types should expose _fields
type: enhancement
Added file: http://bugs.python.org/file33436/structseq.diff

___
Python tracker 

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



[issue18983] Specify time unit for timeit CLI

2014-01-12 Thread Julian Gindi

Julian Gindi added the comment:

What needs to be done to close this one out?

--

___
Python tracker 

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



[issue19082] Lib/xmlrpc/client.py demo code points to the dead server

2014-01-12 Thread Senthil Kumaran

Senthil Kumaran added the comment:

Addressed this in all active branches (2.7, 3.3 and 3.4). Thanks!

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



[issue19082] Lib/xmlrpc/client.py demo code points to the dead server

2014-01-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1730f4a97cbb by Senthil Kumaran in branch '2.7':
Issue #19082: Working SimpleXMLRPCServer and xmlrpclib examples, both in 
modules and documentation.
http://hg.python.org/cpython/rev/1730f4a97cbb

New changeset 72560f9bb2a2 by Senthil Kumaran in branch '3.3':
Issue #19082: Working xmlrpc.server and xmlrpc.client examples. Both in modules 
and in documentation.
http://hg.python.org/cpython/rev/72560f9bb2a2

New changeset bdf6c0135d39 by Senthil Kumaran in branch 'default':
merge from 3.3
http://hg.python.org/cpython/rev/bdf6c0135d39

--
nosy: +python-dev

___
Python tracker 

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



[issue20229] platform.py uses deprecated feature of plistlib

2014-01-12 Thread Marc Tamlyn

New submission from Marc Tamlyn:

platform.mac_ver() triggers the following deprecation warning:

python3.4 -Wall
Python 3.4.0b2 (v3.4.0b2:ba32913eb13e, Jan  5 2014, 11:02:52)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.mac_ver()
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/platform.py:652:
 DeprecationWarning: The readPlist function is deprecated, use load() instead
  pl = plistlib.readPlist(fn)
('10.9.1', ('', '', ''), 'x86_64')

--
assignee: ronaldoussoren
components: Macintosh
messages: 207987
nosy: Marc.Tamlyn, ronaldoussoren
priority: normal
severity: normal
status: open
title: platform.py uses deprecated feature of plistlib
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



[issue20228] Argument Clinic should understand Python special methods

2014-01-12 Thread Larry Hastings

Changes by Larry Hastings :


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



[issue20228] Argument Clinic should understand Python special methods

2014-01-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset bc5f257f5cc1 by Larry Hastings in branch 'default':
Issue #20228: Argument Clinic now has special support for class special
http://hg.python.org/cpython/rev/bc5f257f5cc1

--
nosy: +python-dev

___
Python tracker 

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



[issue20174] Derby #5: Convert 50 sites to Argument Clinic across 3 files

2014-01-12 Thread Larry Hastings

Larry Hastings added the comment:

I don't know what you mean by a "multipart patch", but the bug tracker has 
handled every patch I've thrown at it so far.  (Assuming that the patch is 
based on a reasonably fresh checkout of trunk.)

--

___
Python tracker 

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



[issue20174] Derby #5: Convert 50 sites to Argument Clinic across 3 files

2014-01-12 Thread Ryan Smith-Roberts

Ryan Smith-Roberts added the comment:

Just discovered that the bugtracker mail was all going into my spam filter, 
yay. Didn't notice your reply until just now.

The functools patch was just a quickie to get it out of my mental queue, and 
I'm still working on socketmodule. This is my first time using the Python 
bugtracker, I don't know if multipart patches are acceptable?

--

___
Python tracker 

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



[issue20202] ArgumentClinic howto: document change in Py_buffer lifecycle management

2014-01-12 Thread Larry Hastings

Larry Hastings added the comment:

Fixed in revision 43e109ca9018.  Well, changed anyway, maybe it's still not 
wonderful text.

--

___
Python tracker 

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



[issue20202] ArgumentClinic howto: document change in Py_buffer lifecycle management

2014-01-12 Thread Ryan Smith-Roberts

Ryan Smith-Roberts added the comment:

Thank you for including the doc change in your other patch. As the grammar was 
off, instead of just fixing it I naturally rewrote it. Use this patch or just 
remove the extraneous "for you" as you prefer.

--
keywords: +patch
Added file: 
http://bugs.python.org/file33435/argument_clinic_PyBuffer_release.patch

___
Python tracker 

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



[issue20228] Argument Clinic should understand Python special methods

2014-01-12 Thread Larry Hastings

Larry Hastings added the comment:

Updated patch incorporating changes from Georg Brandl.  Thanks Georg!

--
Added file: 
http://bugs.python.org/file33434/larry.special.methods.support.patch.2.txt

___
Python tracker 

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



[issue8876] distutils should not assume that hardlinks will work

2014-01-12 Thread Fabian Kochem

Changes by Fabian Kochem :


--
nosy: +Fabian.Kochem

___
Python tracker 

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



[issue20228] Argument Clinic should understand Python special methods

2014-01-12 Thread Larry Hastings

New submission from Larry Hastings:

As per Georg's request (and hacks in other places), Argument Clinic should have 
support for special methods.  To wit:

__init__ should be required to be an instance method.  Clinic should suppress 
its methoddef #define.

__new__ should be required to be a class method.  Its C function name should 
have the __new__ stripped off, and by convention its first argument should be 
"PyTypeObject *type".  Clinic should suppress its methoddef #define.

All other dunder-methods which have special slots in the PyTypeObject structure 
should be rejected by Argument Clinic.  (Their arguments are pre-parsed, and 
they don't have docstrings... what would Clinic do for them?)  Obviously 
generic dunder-methods ("__getstate__", "__sizeof__") are still fine.

--
assignee: larry
components: Demos and Tools
files: larry.special.methods.support.patch.1.txt
messages: 207980
nosy: georg.brandl, larry
priority: normal
severity: normal
stage: patch review
status: open
title: Argument Clinic should understand Python special methods
type: behavior
versions: Python 3.4
Added file: 
http://bugs.python.org/file33433/larry.special.methods.support.patch.1.txt

___
Python tracker 

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



[issue20201] Argument Clinic: rwbuffer support broken

2014-01-12 Thread Larry Hastings

Larry Hastings added the comment:

Fixed as part of the rollup patch in #20214.

--
assignee:  -> larry
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



[issue20214] Argument Clinic rollup fixes

2014-01-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3eee3967d03f by Larry Hastings in branch 'default':
Issue #20214: Fixed a number of small issues and documentation errors in
http://hg.python.org/cpython/rev/3eee3967d03f

--
nosy: +python-dev

___
Python tracker 

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



[issue20214] Argument Clinic rollup fixes

2014-01-12 Thread Larry Hastings

Larry Hastings added the comment:

Third patch, with these new features:

* Relaxed rules regarding c_default and py_default; they can now be
  used even when no default value is supplied.
* Added bool return converter.
* Made one fail() call easier to read, through the power of str.format().
* More doc updates and fixes.

--
Added file: 
http://bugs.python.org/file33432/larry.argument.clinic.misc.fixes.patch.3.txt

___
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-12 Thread Nikolaus Rath

Nikolaus Rath added the comment:

I've updated the patch again to fix a problem with HTTPSConnection.

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

___
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-12 Thread Yury Selivanov

Yury Selivanov added the comment:

Larry, just a small thing.. Could you please add something like "Parameter = 
cls._parameter_cls" in the "from_builtin" method? (see the discussion in #17373)

--

___
Python tracker 

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



[issue17373] Add inspect.Signature.from_callable()

2014-01-12 Thread Yury Selivanov

Yury Selivanov added the comment:

OK, got it now.

Green light from me. Looking through the code, I saw that 'from_builtin' 
doesn't use the 'Signature._parameter_cls' (as in from_function). That's 
probably needs to be fixed as well, maybe in a separate issue.

--

___
Python tracker 

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



[issue17373] Add inspect.Signature.from_callable()

2014-01-12 Thread Eric Snow

Eric Snow added the comment:

It's not about customizing inspect.signature.  It's about customizing the
nice behavior of that function, including what type it returns.

--

___
Python tracker 

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



[issue17373] Add inspect.Signature.from_callable()

2014-01-12 Thread Yury Selivanov

Yury Selivanov added the comment:

Eric,

Moreover, 'Signature.from_function' and newly added 'Signature.from_builtin'
are private API, or implementation detail (they are not part of PEP, not
mentioned in the docs). If at some point it is needed to rewrite Signature 
in C, probably those two won't be a part of a new implementation.

--

___
Python tracker 

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



[issue17373] Add inspect.Signature.from_callable()

2014-01-12 Thread Yury Selivanov

Yury Selivanov added the comment:

> The difference is that inspect.signature is not friendly to Signature
> subclasses.  Without from_callable you can't customize the behavior in
> inspect.signature easily.

OK, suppose you have "Signature.from_callable".  You then create a subclass
MySignature, and override it. How can you customize 'inspect.signature' to 
use the MySignature class?

--

___
Python tracker 

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



[issue17373] Add inspect.Signature.from_callable()

2014-01-12 Thread Eric Snow

Eric Snow added the comment:

The difference is that inspect.signature is not friendly to Signature
subclasses.  Without from_callable you can't customize the behavior in
inspect.signature easily.

--

___
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-12 Thread Brett Cannon

Changes by Brett Cannon :


--
assignee:  -> brett.cannon
keywords: +3.3regression -patch
nosy: +larry
priority: normal -> release blocker
status: closed -> open

___
Python tracker 

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



[issue20196] Argument Clinic generates invalid code for optional parameter

2014-01-12 Thread Larry Hastings

Larry Hastings added the comment:

Easy fix.  Thanks for the report!

--
resolution:  -> fixed
stage: patch review -> commit review
status: open -> closed

___
Python tracker 

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



[issue20196] Argument Clinic generates invalid code for optional parameter

2014-01-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 250b481a0d28 by Larry Hastings in branch 'default':
Issue #20196: Fixed a bug where Argument Clinic did not generate correct
http://hg.python.org/cpython/rev/250b481a0d28

--
nosy: +python-dev

___
Python tracker 

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



[issue20214] Argument Clinic rollup fixes

2014-01-12 Thread Larry Hastings

Larry Hastings added the comment:

I goofed, I do have some additional fixes.  Here's everything.

Changes since patch #1:
* Added 'converter' argument to 'object' converter.
* Fixed misspelled variable name (see #20201).
* Several documentation updates.

--
Added file: 
http://bugs.python.org/file33430/larry.argument.clinic.misc.fixes.patch.2.txt

___
Python tracker 

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



[issue19995] %c, %o, %x, %X accept non-integer values instead of raising an exception

2014-01-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset cc8b21988efb by Ethan Furman in branch 'default':
Issue19995: fixed typo; switched from test.support.check_warnings to assertWarns
http://hg.python.org/cpython/rev/cc8b21988efb

--

___
Python tracker 

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



[issue20214] Argument Clinic rollup fixes

2014-01-12 Thread Larry Hastings

Larry Hastings added the comment:

Also adding the one-byte fix from #20201 to the rollup patch here.  (Not 
bothering to upload a fresh patch because it is literally one byte, fixing a 
misspelled variable name.)

--

___
Python tracker 

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



[issue20201] Argument Clinic: rwbuffer support broken

2014-01-12 Thread Larry Hastings

Larry Hastings added the comment:

Looks like you don't, so I'll commit this on your behalf.

--

___
Python tracker 

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



[issue20196] Argument Clinic generates invalid code for optional parameter

2014-01-12 Thread Larry Hastings

Larry Hastings added the comment:

Georg, you mind reviewing this too?  Six line patch.  Just trying to clean my 
plate a little before I fix a bug for you :D

--
nosy: +georg.brandl

___
Python tracker 

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



[issue20201] Argument Clinic: rwbuffer support broken

2014-01-12 Thread Larry Hastings

Larry Hastings added the comment:

Do you have commit rights?  I can commit this patch for you if you don't.  Just 
wondering what (if anything) is holding this up.

--

___
Python tracker 

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



[issue20214] Argument Clinic rollup fixes

2014-01-12 Thread Larry Hastings

Larry Hastings added the comment:

Freshened patch,

--
nosy: +georg.brandl

___
Python tracker 

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



[issue19097] bool(cgi.FieldStorage(...)) may be False unexpectedly

2014-01-12 Thread Senthil Kumaran

Senthil Kumaran added the comment:

Fixed in:

New changeset a3e49868cfd0 by Senthil Kumaran in branch '3.3':
Issue #19092 - Raise a correct exception when cgi.FieldStorage is given an
http://hg.python.org/cpython/rev/a3e49868cfd0

New changeset 1638360eea41 by Senthil Kumaran in branch 'default':
merge from 3.3
http://hg.python.org/cpython/rev/1638360eea41

(Thanks for correcting my bad merge Serhiy. I did fix :w and then did a hg 
resolve --mark, but still ended up with merge lines. I got to look more 
carefully next time).

--

___
Python tracker 

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



[issue19092] ExitStack.__exit__ incorrectly suppresses exceptions in __exit__ callbacks of inner context managers

2014-01-12 Thread Senthil Kumaran

Senthil Kumaran added the comment:

The last tracker message msg207926 is applicable to issue #19097 and not here. 
Sorry for the confusion.

--
nosy: +orsenthil

___
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-12 Thread Marcel Hellkamp

Marcel Hellkamp added the comment:

This change breaks existing applications.

The cgi.FieldStorage.file attribute is public and mentioned in the 
documentation. It even states "You can then read the data at leisure from the 
file attribute".

Consider this example::

form = cgi.FieldStorage()
fileitem = form.getfirst("userfile")
if fileitem and fileitem.file:
executor.submit(store_file, fileitem.file, fileitem.filename)

This code is no longer safe. The garbage collector might close the file handle 
while it is still referenced and accessed from the worker thread.

Another example is the bottle web framework. It uses cgi.FieldStorage for 
parsing only, extracts the valuable information and stores the result in its 
own data structures. The cgi.FieldStorage instance is lost. Python 3.4 breaks 
every single bottle application that works with file uploads.

How about implementing the context manager protocol for cgi.FieldStorage to 
resolve this issue?

--
nosy: +Marcel.Hellkamp

___
Python tracker 

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



[issue20226] Argument Clinic: support for simple expressions?

2014-01-12 Thread Georg Brandl

Georg Brandl added the comment:

Nice, thanks.

--

___
Python tracker 

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



[issue20226] Argument Clinic: support for simple expressions?

2014-01-12 Thread Larry Hastings

Larry Hastings added the comment:

Yes, this is supported, just undocumented (for now).  The magic you want is, 
for example in Modules/_sre.c:

endpos: Py_ssize_t(c_default="PY_SSIZE_T_MAX") = sys.maxsize

--

___
Python tracker 

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



[issue20225] Argument Clinic: simplify METH_NOARGS generated code

2014-01-12 Thread Georg Brandl

Georg Brandl added the comment:

Sure, I wasn't concerned with compilation, only saving lines of code. But I 
agree that the buffer way sounds much more promising.

Just seemed odd that METH_O was clean and METH_NOARGS less so :)

--

___
Python tracker 

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



[issue20225] Argument Clinic: simplify METH_NOARGS generated code

2014-01-12 Thread Larry Hastings

Larry Hastings added the comment:

(Actually a self converter would be fine too.  Those are only allowed to cast.)

I'm not doing this; here's why.  I want the call signature to the impl function 
to be the *idealized* signature of that function.  And METH_NOARGS passes in a 
dumb stupid second argument that is always a NULL pointer.  I just don't want 
that there.

The long-term goal of Clinic is to let us speed up argument parsing.  We'll do 
this by rewriting the whole approach to argument parsing.  I suspect this will 
include not just PyArg_ParseTuple but even the whole callback mechanism, METH_O 
METH_NOARGS and all that.  So I can live with the extra three-line function for 
now.

Also, I assert that compilers are sufficiently smart today to fold the impl 
function back into the parsing function.  Therefore this approach has no 
run-time cost.

Finally, if you're trying to reduce the number of lines of generated code 
stomping on your poor tired eyes, consider playing with the Clinic buffer 
prototype:

https://bitbucket.org/larry/python-clinic-buffer

You can at least prototype with it before checking in for now.

--
components: +Demos and Tools
resolution:  -> rejected
stage:  -> committed/rejected
status: open -> closed
type:  -> enhancement
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



[issue20158] Argument Clinic: add --clean option

2014-01-12 Thread Larry Hastings

Larry Hastings added the comment:

You can accomplish that workflow by using the Clinic buffer prototype and 
moving all your output to the "side".  Or by using the "buffer" approach, and 
stopping when you hit the generated code.  One of these might actually happen 
in Clinic, too, so hang on to your hats.

https://bitbucket.org/larry/python-clinic-buffer

--

___
Python tracker 

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



[issue20218] Add `pathlib.Path.write` and `pathlib.Path.read`

2014-01-12 Thread Ram Rachum

Ram Rachum added the comment:

(Replace `is` with `if` in my code sample, typo.)

--

___
Python tracker 

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



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2014-01-12 Thread Georg Brandl

Georg Brandl added the comment:

Here's sys.

For it to generate the correct code you need to add "args" to c_keywords in 
clinic.py.

--
Added file: http://bugs.python.org/file33429/sys_clinic.patch

___
Python tracker 

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



[issue20227] Argument Clinic: rename arguments in generated C?

2014-01-12 Thread Georg Brandl

Georg Brandl added the comment:

One more: I can't have an argument called "args".

--

___
Python tracker 

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



[issue20227] Argument Clinic: rename arguments in generated C?

2014-01-12 Thread Georg Brandl

Georg Brandl added the comment:

OK, I see that AC automatically handles case 1, great!

Still you have to decide if you like the code churn caused by case 2.

--

___
Python tracker 

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



[issue20227] Argument Clinic: rename arguments in generated C?

2014-01-12 Thread Georg Brandl

Changes by Georg Brandl :


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue20227] Argument Clinic: rename arguments in generated C?

2014-01-12 Thread Georg Brandl

New submission from Georg Brandl:

This is a request to be able to name C arguments differently from Python 
arguments.

Two reasons:

* like for function renaming, some Python argument names are reserved in C 
("default" for example, used in sys.getsizeof())

* sometimes the function uses 'O' in PyArg_ParseTuple and then converts the 
object itself with a nontrivial process.  Usually the converted variable has 
the name of the Python argument, while the temporary object is named "obj_foo" 
or "foo_obj".  When converting to Argument Clinic, we have to name the object 
"foo" and find a new name for the converted "foo", which leads to code churn 
and less beautiful code.

--
assignee: larry
messages: 207948
nosy: georg.brandl, larry
priority: normal
severity: normal
status: open
title: Argument Clinic: rename arguments in generated C?

___
Python tracker 

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



[issue20226] Argument Clinic: support for simple expressions?

2014-01-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

See also a discussion in issue20193. zlib needs this in many functions.

--
nosy: +serhiy.storchaka
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



[issue20225] Argument Clinic: simplify METH_NOARGS generated code

2014-01-12 Thread Georg Brandl

Changes by Georg Brandl :


--
assignee:  -> larry
nosy: +larry

___
Python tracker 

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



[issue20226] Argument Clinic: support for simple expressions?

2014-01-12 Thread Georg Brandl

Changes by Georg Brandl :


--
assignee:  -> larry
nosy: +larry

___
Python tracker 

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



[issue20226] Argument Clinic: support for simple expressions?

2014-01-12 Thread Georg Brandl

New submission from Georg Brandl:

Take for example select.epoll.__new__():

static PyObject *
pyepoll_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
{
int flags = 0, sizehint = FD_SETSIZE - 1;
static char *kwlist[] = {"sizehint", "flags", NULL};

if (!PyArg_ParseTupleAndKeywords(args, kwds, "|ii:epoll", kwlist,
 &sizehint, &flags))
return NULL;

How should that be handled?  Currently I can't specify ``FD_SETSIZE - 1`` as 
the default value, but I don't want a magic ``-909`` either :)

--
messages: 207946
nosy: georg.brandl
priority: normal
severity: normal
status: open
title: Argument Clinic: support for simple expressions?

___
Python tracker 

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



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2014-01-12 Thread Georg Brandl

Changes by Georg Brandl :


Removed file: http://bugs.python.org/file33427/signal_clinic.patch

___
Python tracker 

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



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2014-01-12 Thread Georg Brandl

Georg Brandl added the comment:

Now without crap.

--
Added file: http://bugs.python.org/file33428/signal_clinic.patch

___
Python tracker 

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



[issue20225] Argument Clinic: simplify METH_NOARGS generated code

2014-01-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Seconded.

But only if there are no self or result converters.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue20225] Argument Clinic: simplify METH_NOARGS generated code

2014-01-12 Thread Georg Brandl

New submission from Georg Brandl:

For METH_NOARGS, you can get rid of the separate _impl function.  This makes 
the generated code much smaller.

--
messages: 207943
nosy: georg.brandl
priority: normal
severity: normal
status: open
title: Argument Clinic: simplify METH_NOARGS generated code

___
Python tracker 

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



[issue20138] wsgiref on Python 3.x incorrectly implements URL handling causing mangled Unicode

2014-01-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 29732b43ccf2 by Serhiy Storchaka in branch '3.3':
Issue #20138: The wsgiref.application_uri() and wsgiref.request_uri()
http://hg.python.org/cpython/rev/29732b43ccf2

New changeset 73781fe1daa2 by Serhiy Storchaka in branch 'default':
Issue #20138: The wsgiref.application_uri() and wsgiref.request_uri()
http://hg.python.org/cpython/rev/73781fe1daa2

New changeset 40fb60df4755 by Serhiy Storchaka in branch '2.7':
Issue #20138: Backport tests for handling non-ASCII URLs in the
http://hg.python.org/cpython/rev/40fb60df4755

--
nosy: +python-dev

___
Python tracker 

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



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2014-01-12 Thread Georg Brandl

Georg Brandl added the comment:

Here's the signalmodule.

--
keywords: +patch
nosy: +georg.brandl
Added file: http://bugs.python.org/file33427/signal_clinic.patch

___
Python tracker 

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



[issue19995] %c, %o, %x, %X accept non-integer values instead of raising an exception

2014-01-12 Thread STINNER Victor

STINNER Victor added the comment:

Typo in the C code: depracation :-)

--

___
Python tracker 

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



[issue20138] wsgiref on Python 3.x incorrectly implements URL handling causing mangled Unicode

2014-01-12 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka

___
Python tracker 

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



[issue20115] NUL bytes in commented lines

2014-01-12 Thread Georg Brandl

Georg Brandl added the comment:

I'm in favor of PyPy's behavior: null bytes anywhere in the source, even in 
comments, usually mean there's something weird or fishy going on with either 
the editor or (if downloaded/copied) the source of the code.

--
nosy: +georg.brandl

___
Python tracker 

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



[issue20186] Derby #18: Convert 31 sites to Argument Clinic across 23 files

2014-01-12 Thread Georg Brandl

Georg Brandl added the comment:

And lsprof.

--
Added file: http://bugs.python.org/file33426/lsprof_clinic.patch

___
Python tracker 

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



[issue20186] Derby #18: Convert 31 sites to Argument Clinic across 23 files

2014-01-12 Thread Georg Brandl

Georg Brandl added the comment:

And _heapq.  No problems there, except that it also used "->" return 
annotations in the docstring.

--
Added file: http://bugs.python.org/file33425/heapq_clinic.patch

___
Python tracker 

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



[issue20186] Derby #18: Convert 31 sites to Argument Clinic across 23 files

2014-01-12 Thread Georg Brandl

Georg Brandl added the comment:

Here's _iomodule.  _io.open has a whopping 100-line docstring, which is ... 
unfortunate ... to have duplicated in the file :)

--
Added file: http://bugs.python.org/file33424/io_clinic.patch

___
Python tracker 

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



  1   2   >