[issue20255] Doc/about: update a bit

2014-01-14 Thread Georg Brandl

New submission from Georg Brandl:

What do you think about this patch?

--
assignee: zach.ware
components: Documentation
files: about.diff
keywords: patch
messages: 208081
nosy: georg.brandl, zach.ware
priority: normal
severity: normal
status: open
title: Doc/about: update a bit
Added file: http://bugs.python.org/file33460/about.diff

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



[issue20241] Bad reference to RFC in document of ipaddress?

2014-01-14 Thread Georg Brandl

Georg Brandl added the comment:

5735 seems to be correct (see docstring of is_unspecified), although it doesn't 
talk about unspecified.

--
nosy: +georg.brandl

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



[issue20256] Argument Clinic: compare signed and unsigned ints

2014-01-14 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

For unsigned_int, unsigned_long and size_t return converters Argument Clinic 
generates a code which compares unsigned integer return_value with signed -1.

--
components: Demos and Tools
messages: 208083
nosy: larry, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Argument Clinic: compare signed and unsigned ints
type: behavior
versions: Python 3.4

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



[issue20133] Derby: Convert the audioop module to use Argument Clinic

2014-01-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Patch updated to tip (a little different generated code for Py_buffer).

I don't want to use return converters here because I want to add support for 
float32 and float64 in 3.5.

--

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



[issue20133] Derby: Convert the audioop module to use Argument Clinic

2014-01-14 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


Added file: http://bugs.python.org/file33461/audioop_clinic.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20133
___
___
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-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you Armin for your report.

--
components: +Library (Lib)
resolution:  - fixed
stage: test needed - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20138
___
___
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-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I'll try, but I'm not sure this is possible. Some used C functions (e.g. 
fgets()) returns char* and doesn't work with string containing null bytes. Some 
public API (e.g. PyParser_SimpleParseString()) work with null-terminated C 
strings.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20115
___
___
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-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

See also issue13617.

--

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



[issue18373] implement sys.get/setbyteswarningflag()

2014-01-14 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
components: +Interpreter Core
stage:  - patch review
type:  - enhancement
versions: +Python 3.5 -Python 3.4

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



[issue20257] test_socket fails if using tipc module and SELinux enabled

2014-01-14 Thread Vajrasky Kok

New submission from Vajrasky Kok:

Enable SELinux (by default it is already enabled). Then load tipc module.

# modprobe tipc

Then using whatever account, execute Lib/test/test_socket.py. You'll get:
FAILED (errors=1, skipped=4)
Traceback (most recent call last):
  File Lib/test/test_socket.py, line 1740, in module
test_main()
  File Lib/test/test_socket.py, line 1736, in test_main
test_support.run_unittest(*tests)
  File /home/sky/Code/python/cpython2.7/Lib/test/test_support.py, line 1251, 
in run_unittest
_run_suite(suite)
  File /home/sky/Code/python/cpython2.7/Lib/test/test_support.py, line 1234, 
in _run_suite
raise TestFailed(err)
test.test_support.TestFailed: Traceback (most recent call last):
  File Lib/test/test_socket.py, line 1705, in testStream
msg = self.conn.recv(1024)
error: [Errno 13] Permission denied

Attached the patch to skip the test if we don't have sufficient permission to 
execute the test.

--
components: Tests
files: skip_test_if_selinux_tipc.patch
keywords: patch
messages: 208088
nosy: vajrasky
priority: normal
severity: normal
status: open
title: test_socket fails if using tipc module and SELinux enabled
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file33462/skip_test_if_selinux_tipc.patch

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



[issue20258] Python documentation build fails with markupsafe module cannot be found

2014-01-14 Thread Ned Deily

New submission from Ned Deily:

With the updates to the Sphinx toolchain for 3.3 (05e84d3ecd1e) and 3.4 
(90cd87f64632), the documentation build for the OS X installer now fails with:
  
Error: The markupsafe module cannot be found. Did you install Sphinx and its 
dependencies correctly?

It appears that the updated version of jinja2 now requires MarkupSafe.

Also, the updated version of jinja2 now requires at least Python 2.6. Prior to 
these toolchain updates it was possible to build the Python documentation (and 
all of Python 2.x or 3.x) with Python 2.5.  Perhaps this change should be 
documented somewhere since it does cause some breakage.  For example, the 
current Python 32-bit-only installers are built on OS X 10.5; up until now, the 
Apple-supplied system Python 2.5 could be used to bootstrap the build and build 
the documentation.  Now we'll have to supply a newer local Python to do that.

--
assignee: georg.brandl
components: Build, Documentation
messages: 208089
nosy: georg.brandl, larry, ned.deily
priority: release blocker
severity: normal
stage: needs patch
status: open
title: Python documentation build fails with markupsafe module cannot be found
versions: Python 3.3, Python 3.4

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



[issue20247] Condition._is_owned is wrong

2014-01-14 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
nosy: +mark.dickinson, tim.peters

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



[issue20258] Python documentation build fails with markupsafe module cannot be found

2014-01-14 Thread Georg Brandl

Georg Brandl added the comment:

That's unfortunate, thanks for catching that.  Of course I had markupsafe 
installed for my system Python.

One more reason to switch to virtualenv at some point.

I think we can go back to the old Jinja version -- there haven't been bugs to 
my knowledge and Sphinx doesn't require any advanced features there may be.

But just as a heads up -- Sphinx 1.3 will also require Python 2.6 :)

--

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



[issue20258] Python documentation build fails with markupsafe module cannot be found

2014-01-14 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 92fe1cd256f1 by Georg Brandl in branch '3.3':
Closes #20258: Sphinx toolchain: move back to Jinja2 2.3.1 with support for 
Py2.5.
http://hg.python.org/cpython/rev/92fe1cd256f1

--
nosy: +python-dev
resolution:  - fixed
stage: needs patch - committed/rejected
status: open - closed

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



[issue18622] reset_mock on mock created by mock_open causes infinite recursion

2014-01-14 Thread Laurent De Buyst

Laurent De Buyst added the comment:

Sorry Michael, I should have read your second comment more closely since you 
already pointed out that using a list as default argument is bad.

It is, however, easily fixed by changing to this:

def reset_mock(self, visited=None):
Restore the mock object to its initial state.
if visited is None:
visited = []
if id(self) in visited:
return

--

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



[issue18622] reset_mock on mock created by mock_open causes infinite recursion

2014-01-14 Thread Nicola Palumbo

Nicola Palumbo added the comment:

I should have read more carefully, too! Thanks to both.

--

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



[issue20255] Doc/about: update a bit

2014-01-14 Thread R. David Murray

R. David Murray added the comment:

It seems fine to me, if docs@ is no longer the best place to start. It might be 
better if the tracker link read documentation bugs on the bug tracker.  Also, 
you could link to the devguide as well as core-mentorship.

--
nosy: +r.david.murray

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



[issue18622] reset_mock on mock created by mock_open causes infinite recursion

2014-01-14 Thread Laurent De Buyst

Laurent De Buyst added the comment:

And here's an actual patch with the corrected code

--
Added file: http://bugs.python.org/file33463/issue18622_2.patch

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



[issue17140] Provide a more obvious public ThreadPool API

2014-01-14 Thread Sebastian Rodriguez

Changes by Sebastian Rodriguez srodrig...@gmail.com:


--
nosy: +srodriguez

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



[issue18373] implement sys.get/setbyteswarningflag()

2014-01-14 Thread Daniel Holth

Daniel Holth added the comment:

Just mitigating the bug that -bb is not the default...

--

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



[issue20253] Typo in ipaddress document

2014-01-14 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4f8ad9a4193f by Zachary Ware in branch '3.3':
Issue #20253: Fixed a typo in the ipaddress docs that advertised an
http://hg.python.org/cpython/rev/4f8ad9a4193f

New changeset 2f54b55fcbfa by Zachary Ware in branch 'default':
Closes #20253: Merge typo fix
http://hg.python.org/cpython/rev/2f54b55fcbfa

--
nosy: +python-dev
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

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



[issue20253] Typo in ipaddress document

2014-01-14 Thread Zachary Ware

Zachary Ware added the comment:

Thanks for the report!

--
assignee: docs@python - zach.ware

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20253
___
___
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-14 Thread Ethan Furman

Ethan Furman added the comment:

Depracation warning is in place for 3.4.

When 3.5 is tagged I'll switch it an error.

--
stage: patch review - commit review

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



[issue20259] os.walk conflicts with os.listdir

2014-01-14 Thread Shelby Spencer

New submission from Shelby Spencer:

The problem occurs when you attempt to perform an os.listdir on a directory 
that you don't have access to.  You should get an exception thrown.  Normally 
this occurs, however, if you run the following code:

folder = some parent folder that has a child folder you don't have read access 
to
for currentDir, subDirs, files = os.walk(folder):
temp = os.listdir(currentDir)

temp will hold an empty list on the subdirectory you don't have access to and 
no exception is thrown.  This appears to be some sort of conflict between 
os.walk and os.listdir.  Near as I can tell python is caching the subdirectory 
listing for subDirs (os.walk doesn't throw an error on attempting to read a 
directory is doesn't have access to, obviously) and returning those results 
when os.listdir is called.

--
components: IO
messages: 208100
nosy: shellster
priority: normal
severity: normal
status: open
title: os.walk conflicts with os.listdir
type: behavior
versions: Python 2.7

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



[issue20259] os.walk conflicts with os.listdir

2014-01-14 Thread R. David Murray

R. David Murray added the comment:

That's not how Python works.  If you print out currentDir, you will see that 
os.listdir is never called on the folder for which you do not have permission.  
That is, os.walk does indeed catch the listdir error, when *it* does the 
listdir, does not try to descend into that subdirectory.

If you want to do something with the error (such as raise it), use the 
'onerror' argument of walk.

--
nosy: +r.david.murray
resolution:  - invalid
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20259
___
___
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-14 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Proposed patch adds support for non-bitwise unsigned integer arguments in 
Argument Clinic. I.e. now unsigned_int(bitwise=False) (or just unsigned_int) 
converts Python int in range from 0 to UINT_MAX to C unsigned int. Added 
support for unsigned_short, unsigned_int, unsigned_long, unsigned_PY_LONG_LONG, 
and size_t.

Also added global private functions _Py_UnsignedShort_Converter(), 
_Py_UnsignedInt_Converter(), _Py_UnsignedLong_Converter(), 
_Py_UnsignedLongLong_Converter(), and _Py_Size_t_Converter(), which are used by 
Argument Clinic and in C code still not converted to Argument Clinic.

--
components: Demos and Tools, Interpreter Core
files: clinic_unsigned_converters.patch
keywords: patch
messages: 208102
nosy: georg.brandl, larry, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Argument Clinic: add unsigned integers converters
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file33464/clinic_unsigned_converters.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20260
___
___
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-14 Thread Larry Hastings

Larry Hastings added the comment:

Very nice!  I had an idea to do this in the back of my head too.  But my plate 
is already full.

I haven't reviewed the patch yet--and I have a huge backlog of reviews already. 
 But I can give this higher priority if you need it for other patches.  When do 
you need this reviewed?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20260
___
___
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-14 Thread Fran Bull

Fran Bull added the comment:

I think the sentence either means:
1) The courses of action that defusedxml implements are those recommended for 
any server code that parses untrusted XML data. 
or 
2) Using defused XML is recommended for any server code that parses untrusted 
XML data. 

And I think 2 is more likely. So the attached patch reflects that.

--
keywords: +patch
nosy: +Fran.Bull
Added file: http://bugs.python.org/file33465/20237.patch

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



[issue20255] Doc/about: update a bit

2014-01-14 Thread Georg Brandl

Georg Brandl added the comment:

Both your and Berker's (on rietveld) comments sound good.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20255
___
___
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-14 Thread R. David Murray

R. David Murray added the comment:

Actually, I think it means that the defusedxml documentation tells you what to 
do to protect yourself from various attack vectors, which pretty much amounts 
to importing certain functions from defusedxml and using them instead of the 
stdlib versions.  Your patch may be sufficient, but let's see what Christian 
has to say.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20237
___
___
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-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Currently these converters are used only in zlib (unsigned int) and select 
(unsigned short). But perhaps during conversion to Argument Clinic we will 
discover that they are more appropriate than bitwise converters in other 
places. So there is no hurry.

--

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



[issue20261] Cannot pickle some objects that have a __getattr__()

2014-01-14 Thread Barry A. Warsaw

New submission from Barry A. Warsaw:

I've been debugging a crash in nose 1.3.0, the root cause of which turned out 
to be an instance containing an attribute which itself was an instance of the 
following class (boiled down):

class Picky:
def __getstate__(self):
return {}
def __getattr__(self, attr):
return None

This crashes with a TypeError in Python 2.7 and Python 3 (albeit with slightly 
different tracebacks; and Python 3 is more difficult to debug because the 
TypeError doesn't include any useful information).

TypeError: 'NoneType' object is not callable

The culprit is __getattr__() returning None.  In Python 3 for example, pickle 
tries to get the object's __reduce_ex__() function and then call it.

The problem is the (IMHO) bogus __getattr__() and I'm not sure why nose has 
this.  But I wonder if the pickle documentation should warn against this kind 
of thing.

This isn't a bug in Python - the crash makes sense when you understand the 
implications, but perhaps a warning in the docs would have helped prevent this 
nose bug in the first place.  I suppose I could also see improving _pickle.c to 
provide some additional feedback on the offending attribute, but that's 
probably more difficult.

It's okay to close this as won't fix if we can't think of appropriate wording.  
It's enough that there's a record of this issue for search engines now.

--
assignee: docs@python
components: Documentation
messages: 208108
nosy: barry, docs@python
priority: normal
severity: normal
status: open
title: Cannot pickle some objects that have a __getattr__()
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4

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



[issue20261] Cannot pickle some objects that have a __getattr__()

2014-01-14 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

Hmm, actually, this is a regression in Python 3.4.  Let's amend the test class 
to include a __getnewargs__():

class Picky(object):
Options container that returns None for all options.

def __getstate__(self):
return {}

def __getnewargs__(self):
return ()

def __getattr__(self, attr):
return None

This class is picklable in Python 2.7 - 3.3, but not in 3.4.

--
components: +Library (Lib)
keywords: +3.4regression

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



[issue1652] subprocess should have an option to restore SIGPIPE to default action

2014-01-14 Thread Jakub Wilk

Changes by Jakub Wilk jw...@jwilk.net:


--
nosy: +jwilk

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



[issue20255] Doc/about: update a bit

2014-01-14 Thread Zachary Ware

Zachary Ware added the comment:

Looks good to me, with Berker and David's comments addressed.  Here's an 
alternate approach I came up with, since about.rst already links to bugs.rst, 
which already contains most of what I think we want to get across here.  I'm 
good with either route, really.

--
Added file: http://bugs.python.org/file33466/issue20255.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20255
___
___
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-14 Thread Larry Hastings

Larry Hastings added the comment:

Dang it, I forgot to add the second patch.  Here it is.

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

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



[issue20262] Convert some debugging prints in zipfile to warnings

2014-01-14 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

When ZipFile.debug is not zero, some debugging messages are printed to stdout. 
Some of them are for debugging the zipfile module itself. But some are warnings 
about user's operation which perhaps make not what the user is expected -- 
truncating long archive comment or adding a file with duplicated name. These 
cases cases can be considered as logic error, they can be prevented by external 
checks (check that comment's length does not excite the limit and that 
specified name is not in the ZIP file). So it will be sane and helpful to 
convert these prints to regular warnings, which are controlled in same way as 
all other warnings.

See also issue2824. It have a patch which looks too excessive to me.

Here is a patch. I don't sure to which version it should be targeted.

--
components: Library (Lib)
files: zipfile_warnings.patch
keywords: patch
messages: 208112
nosy: alanmcintyre, georg.brandl, larry, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Convert some debugging prints in zipfile to warnings
Added file: http://bugs.python.org/file33468/zipfile_warnings.patch

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



[issue20255] Doc/about: update a bit

2014-01-14 Thread Georg Brandl

Georg Brandl added the comment:

Very nice. Go ahead and commit your version!

--

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



[issue18695] os.statvfs() not working well with unicode paths

2014-01-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Giampaolo, do you want to provide a test?

--
stage:  - test needed
type:  - behavior

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



[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

2014-01-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

If no one complain I'll commit last patch tomorrow.

--
assignee:  - serhiy.storchaka
stage:  - patch review
type:  - behavior
versions: +Python 3.4 -Python 3.2

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



[issue19534] normalize() in locale.py fails for sr_RS.UTF-8@latin

2014-01-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

locale.normalize() was fixed in issue5815 (and new entry for 
'sr_RS.UTF-8@latin' is not needed anymore). Devanagari entries were fixed in 
issue20027. In any case thank you Mike for your report and proposed patch.

--
resolution:  - duplicate
stage:  - committed/rejected
status: open - closed
type:  - behavior

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



[issue20255] Doc/about: update a bit

2014-01-14 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 74d138cfe564 by Zachary Ware in branch '2.7':
Issue #20255: Update the about and bugs pages.
http://hg.python.org/cpython/rev/74d138cfe564

New changeset 956b8afdaa3e by Zachary Ware in branch '3.3':
Issue #20255: Update the about and bugs pages.
http://hg.python.org/cpython/rev/956b8afdaa3e

New changeset 26236308d58b by Zachary Ware in branch 'default':
Issue #20255: Update the about and bugs pages.
http://hg.python.org/cpython/rev/26236308d58b

--
nosy: +python-dev

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



[issue20255] Doc/about: update a bit

2014-01-14 Thread Zachary Ware

Zachary Ware added the comment:

Done, thanks Georg!

--
resolution:  - fixed
stage:  - committed/rejected
status: open - closed
type:  - enhancement
versions: +Python 2.7, Python 3.3, Python 3.4

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



[issue20261] Cannot pickle some objects that have a __getattr__()

2014-01-14 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue16612] Integrate Argument Clinic into CPython trunk

2014-01-14 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f35b3a86ade3 by Meador Inge in branch 'default':
Fix minor bug in dict.__contains__ docstring.
http://hg.python.org/cpython/rev/f35b3a86ade3

--

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



[issue16612] Integrate Argument Clinic into CPython trunk

2014-01-14 Thread Larry Hastings

Larry Hastings added the comment:

Meador Inge: In the future, please create new issues for these sorts of fixes.

--

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



[issue16612] Integrate Argument Clinic into CPython trunk

2014-01-14 Thread Meador Inge

Meador Inge added the comment:

Will do, but in this case I didn't think a one character diff was worth
it.

--
nosy: +meador.inge

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



[issue16612] Integrate Argument Clinic into CPython trunk

2014-01-14 Thread Larry Hastings

Larry Hastings added the comment:

If it's not worth a new issue, then you can check it in without citing an issue 
at all.

--

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



[issue20261] Cannot pickle some objects that have a __getattr__()

2014-01-14 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
nosy: +alexandre.vassalotti, pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20261
___
___
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-14 Thread Larry Hastings

Larry Hastings added the comment:

Updated the patch.  (Diff #2 apparently didn't apply cleanly, so we didn't get 
a review link.)


Old-guard core devs: I'm *really* desperate for a review of this patch.  You 
don't have to review everything thing, just these files:

* Include/object.h
* Objects/descrobject.c
* Objects/methodobject.c
* Objects/typeobject.c

I can get a different reviewer for the other files.  But I worry about touching 
these tender bits of the type system and I want to make sure that

a) I haven't done something awful, and
b) I haven't missed something important.

Just that part of the diff is 345 lines, and it's pretty regular.  I'd be 
surprised if it took you a whole hour.

If you have any questions email me, I'd be thrilled to answer 'em if it means I 
can get this patch checked in.  Maintaining the patch is overhead that I just 
don't need during the Derby.

--
nosy: +barry
Added file: 
http://bugs.python.org/file33469/larry.support.text_signature.on.more.types.diff.3.txt

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



[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-14 Thread Larry Hastings

Larry Hastings added the comment:

Antoine Pitrou took care of cryptmodule.c.

--
title: Derby #17: Convert 50 sites to Argument Clinic across 14 files - Derby 
#17: Convert 49 sites to Argument Clinic across 13 files

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



[issue20247] Condition._is_owned is wrong

2014-01-14 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +neologix
versions: +Python 2.7, Python 3.3, Python 3.4

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



[issue20263] Function print definable as variables?

2014-01-14 Thread Ozy

New submission from Ozy:

Not sure if this is a bug. We're experiencing it in v3.3.2 and was discovered 
by accident.

It seems to be possible to define python functions (like print or input) as 
variables, as if they're not reserved. If you do that, the command 
functionality is lost until Python is reseted.

For example try this in IDLE:

 print = 10
 print
10
 print(print)
TypeError: int object is not callable
 print(10)
TypeError: int object is not callable

Here is a screenshot 

http://imgur.com/IpjELhp

We tested it, and this doesn't happen in v2.

Sorry if this has been reported previously.

Best regards.

--
messages: 208125
nosy: ozy
priority: normal
severity: normal
status: open
title: Function print definable as variables?
type: behavior
versions: Python 3.3

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



[issue20263] Function print definable as variables?

2014-01-14 Thread R. David Murray

R. David Murray added the comment:

Yes, that's the way Python works.  In Python3, print became a function and is 
no longer a keyword, so yes, it can be shadowed in the local namespace just 
like any other Python function.

--
nosy: +r.david.murray
resolution:  - invalid
stage:  - committed/rejected
status: open - closed

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



[issue20263] Function print definable as variables?

2014-01-14 Thread Ezio Melotti

Ezio Melotti added the comment:

FTR you can always get it back from builtins.print:

 print('test')
test
 print = 10
 print('test')
Traceback (most recent call last):
  File stdin, line 1, in module
TypeError: 'int' object is not callable
 import builtins
 print = builtins.print
 print('test')
test

--
nosy: +ezio.melotti

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



[issue20263] Function print definable as variables?

2014-01-14 Thread Ozy

Ozy added the comment:

Great, thanks. Didn't know that.

All the best.

--

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



[issue19855] uuid._find_mac fails if an executable not in /sbin or /usr/sbin

2014-01-14 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis added the comment:

When LC_ALL is already set in environment, LC_MESSAGES will not override it.
I suggest to restore LC_ALL=C in place of LC_MESSAGES=C.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19855
___
___
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-14 Thread Meador Inge

Meador Inge added the comment:

Attached is a first cut for sqlite3.  It is generally OK, but I have the 
following
nits:

* As is probably expected, __init__ and __call__ procs can't be converted.

* sqlite3.Connection.{execute, executemany, executescript} don't use
  PyArg_Parse*.

* The clinic version of 'sqlite3.adapt' has an argument string of O|OO.
  The first optional parameter defaults to 'pysqlite_PrepareProtocolType'
  in C and 'sqlite3.ProtocolType' in Python.  However, I don't know how to
  represent the Python value because Python default values are 'eval'd by
  clinic *and* the 'sqlite3' module is not imported for the eval.

* The clinic version of 'sqlite3.Cursor.fetchmany' has an arguments string
  of |i.  The first parameter defaults to
  '((pysqlite_Cursor *)self)-arraysize' in C and 'self.arraysize' in
  Python.  I don't know how to express the Python initialization.

* 'sqlite3.complete' uses 'as module_complete' because 'sqlite3_complete'
  is a public SQLite API function: 
http://www.sqlite.org/c3ref/complete.html.
  I used 'as' on all the other functions in 'module.c' as well.  Mainly
  for local consistency.

* '_pysqlite_query_execute' required a little refactoring due to the fact
  that it is a utility function used to implement 'sqlite3.Cursor.execute'
  and 'sqlite3.Cursor.executemany'.  'PyArg_ParseTuple' was being called in
  different way depending on a control parameter.

* I didn't convert 'sqlite3.Cursor.setinputsizes' and
  'sqlite3.Cursor.setoutputsize' because they share a docstring and
  simple no-op method def.

* I didn't convert 'sqlite.connect' because it would have required packaing
  the arguments back up to pass to 'PyObject_Call'.

--
Added file: http://bugs.python.org/file33470/issue20178-sqlite-01.patch

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



[issue20247] Condition._is_owned is wrong

2014-01-14 Thread Tim Peters

Tim Peters added the comment:

They certainly should _not_ be swapped, as explained clearly in the message 
following the one you referenced.  For the first half:

if self._lock.acquire(0):

succeeds if and only if the lock is not held by _any_ thread at the time.  In 
that case, the lock is _acquired_ as a side-effect of performing the test, and 
the code goes on to restore the lock again to its initially unacquired state, 
and (correctly) return False:

self._lock.release()
return False

The second half of the code is certainly wrong:

else:
return True

The docs state:

# Return True if lock is owned by current_thread.

but the code actually returns True if the lock is currently owned by _any_ 
thread.  All that is also explained in the thread you pointed at.

However, I don't see any possibility of fixing that.  There is simply no way to 
know, for an arbitrary lock-like object, which thread owns it.

Indeed, on Windows it's not even possible for a threading.Lock.  For example 
(here under Python3, but I'm sure it's the same under Python2):

 import threading as th
 lock = th.Lock()
 c = th.Condition(lock)
 def hmm():
...   print(is_owned:, c._is_owned())
...
 t = th.Thread(target=hmm)
 t.start()
is_owned: False
 lock.acquire()
True
 t = th.Thread(target=hmm)
 t.start()
is_owned: True

Note that the last line showed True despite that the lock is _not_ owned by the 
thread doing the print - it's owned by the main program thread.  That's because 
threading.Lock._is_owned doesn't exist under Windows, so it's falling into the 
second case of the Condition._is_owned() implementation at issue here.

Also note that if the True and False cases were swapped, _none_ of the output 
would make any sense at all ;-)

--

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



[issue20264] Update patchcheck to looks for files with clinic comments

2014-01-14 Thread Meador Inge

New submission from Meador Inge:

It has been noted a few times that someone might forget to re-run
clinic.py after updating the argument clinic comments.  The attached
patch adds a new check to patchcheck.py to note when files containing
argument clinic comments have been changed.  You could take it a step
further and deduce if the lines ranges within the comments were actually
changed, but let's start out simple.

--
assignee: meador.inge
components: Build
files: patchcheck-clinic.patch
keywords: patch
messages: 208132
nosy: larry, meador.inge
priority: normal
severity: normal
stage: patch review
status: open
title: Update patchcheck to looks for files with clinic comments
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file33471/patchcheck-clinic.patch

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



[issue20264] Update patchcheck to looks for files with clinic comments

2014-01-14 Thread Zachary Ware

Zachary Ware added the comment:

This could be taken a step further, following the lead of the whitespace fixing 
checks and just run clinic on files that need it.

--
nosy: +zach.ware

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20264
___
___
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-14 Thread Ryan Smith-Roberts

Ryan Smith-Roberts added the comment:

Here's the socketmodule patch. I aggressively imported text from the docs for 
the docstrings, along with matching parameter names, given how far the old 
docstrings have drifted over time. The Windows-specific code is untested, but 
otherwise the tests pass. I tagged functions which can't be converted or whose 
argument handling is esoteric. These comments can be removed prior to commit.

I am not sure if one should convert a C-level class's init method.

--
Added file: http://bugs.python.org/file33472/argument_clinic_socketmodule.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20174
___
___
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-14 Thread Larry Hastings

Larry Hastings added the comment:

The attached patch extends Argument Clinic and the inspect module: now you may 
use simple (!) expressions as default values.  So for example sys.maxsize - 1 
should now work fine.

* Names may be in the current module; as a backup they will also be looked up 
in sys.modules.
* You may look up attributes of names.
* You may subscript into names.
* You may use math operators, both unary and binary.
* int/float/string literals are (still) fine.
* You may not use: function calls, list/set/dict/tuple/bytes literals, 
generator expressions or comprehensions, if expressions, anything fun.

Other changes in this diff:
* doc_default is gone, it no longer makes sense.
* py_default and c_default handling is simpler and more predictable.
* Minor doc fix suggested on tracker.

The docs still need work.  More tests would be good too but I'm already 
overwhelmed by work--could one of you guys contribute some tests?

--
stage:  - patch review
type:  - enhancement
Added file: 
http://bugs.python.org/file33473/larry.clinic.rollup.patch.two.diff.1.txt

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20226
___
___
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-14 Thread Zachary Ware

New submission from Zachary Ware:

Doc/using/windows still mentions DOS, Windows 3.x, and Python 2.1, and that's 
just in the first short section.  This is a catch-all issue for making sure 
that page is up to date.

--
assignee: docs@python
components: Documentation, Windows
keywords: easy
messages: 208136
nosy: docs@python, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: Bring Doc/using/windows up to date
type: enhancement
versions: Python 2.7, Python 3.3, Python 3.4

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



[issue20262] Convert some debugging prints in zipfile to warnings

2014-01-14 Thread Meador Inge

Meador Inge added the comment:

LGTM.

I audited the other 'ZipFile.debug' uses and agree that the others are
mainly useful in debugging the zipfile implementation itself.

Since it isn't that critical of a change, the default branch should be
sufficient.

--
nosy: +meador.inge
type:  - behavior

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20262
___
___
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-14 Thread Zachary Ware

New submission from Zachary Ware:

The Python on Windows faq could use some TLC.  For instance, cx_Freeze should 
be mentioned in the faq about creating an executable (and py2exe should either 
mention that it doesn't quite support 3.x yet, or just be removed until it 
does), and the embedding faq should be cleaned up with proper voice and 
formatting (and the undocumented facts should be documented).

--
assignee: docs@python
components: Documentation, Windows
keywords: easy
messages: 208138
nosy: docs@python, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: Bring Doc/faq/windows up to date
type: enhancement
versions: Python 2.7, Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20266
___
___
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-14 Thread Meador Inge

Meador Inge added the comment:

Larry, nice.  I am verified that your latest patch fixes my third sqlite3
nit from issue20178.

--
nosy: +meador.inge

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



[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-14 Thread Vajrasky Kok

Vajrasky Kok added the comment:

Here is the patch for Modules/resource.c.

However, I can not convert this method signature:

if (!PyArg_ParseTuple(args, _Py_PARSE_PID i|(OO):prlimit,
  pid, resource, curobj, maxobj))

_Py_PARSE_PID can be 'i' or 'l' or 'L'.

--
keywords: +patch
nosy: +vajrasky
Added file: http://bugs.python.org/file33474/clinic_codecsmodule.patch

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



[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-14 Thread Vajrasky Kok

Changes by Vajrasky Kok sky@speaklikeaking.com:


Removed file: http://bugs.python.org/file33474/clinic_codecsmodule.patch

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



[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-14 Thread Vajrasky Kok

Changes by Vajrasky Kok sky@speaklikeaking.com:


Added file: http://bugs.python.org/file33475/clinic_resource.patch

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



[issue20267] TemporaryDirectory does not resolve path when created using a relative path

2014-01-14 Thread Antony Lee

New submission from Antony Lee:

Essentially, the following fails:

t = tempfile.TemporaryDirectory(dir=.)
os.chdir(some_other_dir)
t.cleanup()

because t.name is a relative path.  Resolving the dir argument when the 
directory is created should(?) fix the issue.

--
components: Library (Lib)
messages: 208141
nosy: Antony.Lee
priority: normal
severity: normal
status: open
title: TemporaryDirectory does not resolve path when created using a relative 
path
versions: Python 3.4

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



[issue20261] Cannot pickle some objects that have a __getattr__()

2014-01-14 Thread Eric Snow

Eric Snow added the comment:

This is a duplicate of #16251, no?  Pickle looks up dunder ;) methods on 
instances rather than on classes, so __getattr__() gets triggered unexpectedly. 
 I had to work around this in some code of mine by special-casing in 
__getattr__() names that start with '_'.  I've said my peace over in #16251.

--
nosy: +eric.snow

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



[issue20268] Argument Clinic: support cloning existing functions

2014-01-14 Thread Larry Hastings

New submission from Larry Hastings:

It was a quick hack: Clinic now has a syntax for cloning an existing
function!  The first line of the function block should be 

module.class.new_function [as c_basename] = module.class.existing_fn

Hurry up and give me a LGTM so you can use it everywhere! :D

--
assignee: larry
files: larry.clinic.clone.functions.diff.1.txt
messages: 208143
nosy: georg.brandl, larry, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Argument Clinic: support cloning existing functions
type: enhancement
versions: Python 3.4
Added file: 
http://bugs.python.org/file33476/larry.clinic.clone.functions.diff.1.txt

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



[issue20268] Argument Clinic: support cloning existing functions

2014-01-14 Thread Georg Brandl

Georg Brandl added the comment:

Functionality looks good. Implementation I can't say.

--

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



[issue20268] Argument Clinic: support cloning existing functions

2014-01-14 Thread Larry Hastings

Larry Hastings added the comment:

Shall I just check it in and fix it if it breaks?

--

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



[issue20268] Argument Clinic: support cloning existing functions

2014-01-14 Thread Georg Brandl

Georg Brandl added the comment:

Sure!

--

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



[issue20268] Argument Clinic: support cloning existing functions

2014-01-14 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 565773aabafb by Larry Hastings in branch 'default':
Issue #20268: Argument Clinic now supports cloning the parameters
http://hg.python.org/cpython/rev/565773aabafb

--
nosy: +python-dev

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



[issue16251] pickle special methods are looked up on the instance rather than the type

2014-01-14 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue20268] Argument Clinic: support cloning existing functions

2014-01-14 Thread Larry Hastings

Larry Hastings added the comment:

Begun, the clone war has.

--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue18695] os.statvfs() not working well with unicode paths

2014-01-14 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18695
___
___
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-14 Thread Larry Hastings

Larry Hastings added the comment:

Zachary: If you refresh your copy of trunk, you can now clone functions.  See 
the howto for the syntax.

The failure you were seeing was in some code that I just rewrote (see #20226).  
I'd be interested if you could apply that patch and try your code again.  Or 
just wait maybe twelve hours, hopefully I'll have landed the patch by then.

(Yeah, it's kind of a moving target.  I'm trying to keep the pace up during the 
Derby.)

--

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



[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-14 Thread Vajrasky Kok

Vajrasky Kok added the comment:

Here is the patch for Modules/gcmodule.c.

--
Added file: http://bugs.python.org/file33477/clinic_gc.patch

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