[issue4591] 32-bits unsigned user/group identifier

2013-02-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4591 ___

[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) = sizeof(long)

2013-02-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file29071/posix_uid_gid_conv_signed_long_long.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2005 ___

[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) = sizeof(long)

2013-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Auxiliary conversion functions for uid_t and gid_t was added in issue4591. They are supports unsigned types not larger than unsigned long. If someone need the support of the platform with signed uid_t/gid_t or with uid_t/gid_t larger than long (I don't know

[issue15528] Better support for finalization with weakrefs

2013-02-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Richard, do you still want to push this forward? Otherwise I'd like to finalize the patch (in the other sense ;-). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15528

[issue16612] Integrate Argument Clinic specialized preprocessor into CPython trunk

2013-02-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: I agree with Stefan that the file is a lot more readable if the docstring is not repeated twice. Couldn't the generated C docstring end up in a separate file? It's only a constant after all. It seems to me that one reason we don't give much love to C

[issue7365] grp and pwd should treat uid and gid as unsigned

2013-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed by patch for issue4591. -- nosy: +serhiy.storchaka resolution: - duplicate stage: patch review - committed/rejected status: open - closed superseder: - 32-bits unsigned user/group identifier ___ Python

[issue17205] In the help() function the order of methods changes

2013-02-14 Thread py.user
New submission from py.user: class A: ... '''class''' ... def c(self): ... '''c doc''' ... pass ... def b(self): ... '''b doc''' ... pass ... def a(self): ... '''a doc''' ... pass ... help(A) class A(builtins.object) | class | | Methods defined here: |

[issue16043] xmlrpc: gzip_decode has unlimited read()

2013-02-14 Thread Christian Heimes
Christian Heimes added the comment: IMHO the patch should also limit the maximum amount of read bytes in Transport.parse_response(). Do you agree? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16043

[issue15301] os.chown: OverflowError: Python int too large to convert to C long

2013-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Similar test was committed for issue4591 and it fixes this issue. There are only two differences with Larry's patch: tests and handling of non-integers. Here is a patch based on Larry's patch which extends tests for *chown(). -- nosy:

[issue15301] os.chown: OverflowError: Python int too large to convert to C long

2013-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And here is a patch which uses __index__ for uid and gid conversion. decimal.Decimal should be added to the list of wrong types in the test. I'm not sure about the last patch, whether to consider it as a bugfix or as a new feature? -- nosy: +skrah

[issue12641] Remove -mno-cygwin from distutils

2013-02-14 Thread Martin v . Löwis
Martin v. Löwis added the comment: doko: this issue is about Windows; autoconf is not being used here (plus the correct compiler would be MSC). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12641

[issue1285086] urllib.quote is too slow

2013-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Serhiy: One question. Is there a need to have - + append = res.append And then use 'append'? This speed up unquote_to_bytes by 15%. -- ___ Python tracker rep...@bugs.python.org

[issue15528] Better support for finalization with weakrefs

2013-02-14 Thread Richard Oudkerk
Richard Oudkerk added the comment: Richard, do you still want to push this forward? Otherwise I'd like to finalize the patch (in the other sense ;-). I started to worry a bit about daemon threads. I think they can still run while atexit functions are being run.* So if a daemon thread

[issue16043] xmlrpc: gzip_decode has unlimited read()

2013-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think instead of global variable it will be better to add an optional parameter for gzip_decode() (with a sane default value) and related functions. Or at least in additional to it. -- nosy: +serhiy.storchaka

[issue16278] os.rename documentation slightly inaccurate

2013-02-14 Thread Todd Rovito
Todd Rovito added the comment: Thanks Terry and Chris you guys have supplied great feedback. I will work on the issue and try to get a new patch updated by end of the weekend (2/18/13). Sent from my iPhone On Feb 13, 2013, at 11:56 PM, Terry J. Reedy rep...@bugs.python.org wrote: Terry

[issue17205] In the help() function the order of methods changes

2013-02-14 Thread Ramchandra Apte
Ramchandra Apte added the comment: Sorry, but there is no way of telling the order as methods are respresented internally as a dictionary. Please close this as invalid. -- nosy: +ramchandra.apte ___ Python tracker rep...@bugs.python.org

[issue17135] imp doc should direct to importlib

2013-02-14 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy nosy: +brett.cannon stage: - needs patch type: - enhancement versions: +Python 2.7 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17135

[issue17143] trace.py uses _warn without importing it

2013-02-14 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17143 ___ ___

[issue17160] test_urllib2net fails

2013-02-14 Thread Ezio Melotti
Ezio Melotti added the comment: See also #16969. -- nosy: +ezio.melotti resolution: out of date - duplicate superseder: - test_urlwithfrag fail type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17160

[issue17143] trace.py uses _warn without importing it

2013-02-14 Thread Ronald Chapman
Ronald Chapman added the comment: Islamabad l guythen vkd dudziozl -- hgrepos: +174 nosy: +Ronald.Chapman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17143 ___

[issue17103] ampersand in path prevents compilation of Python

2013-02-14 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17103 ___ ___

[issue17143] trace.py uses _warn without importing it

2013-02-14 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- Removed message: http://bugs.python.org/msg182097 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17143 ___

[issue17143] trace.py uses _warn without importing it

2013-02-14 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- hgrepos: -174 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17143 ___ ___ Python-bugs-list

[issue17143] trace.py uses _warn without importing it

2013-02-14 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: -Ronald.Chapman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17143 ___ ___

[issue17143] trace.py uses _warn without importing it

2013-02-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Eric, do you want to commit? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17143 ___ ___

[issue15528] Better support for finalization with weakrefs

2013-02-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Is it necessary/desirable to allow daemon threads to run during shutdown. Maybe blocking thread switching at shutdown could cause deadlocks? Mmmh... thread switching is already blocked at shutdown:

[issue17179] Incorrect use of type function in types.new_class

2013-02-14 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17179 ___ ___ Python-bugs-list mailing

[issue17201] Use allowZip64=True by default

2013-02-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: +1. Let's make it for 3.4. -- keywords: +easy stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17201 ___

[issue13461] Error on test_issue_1395_5 with Python 2.7 and VS2010

2013-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Can we fix this easy issue before 2.7.4 release? -- keywords: +easy nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13461 ___

[issue13461] Error on test_issue_1395_5 with Python 2.7 and VS2010

2013-02-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ageed, it's probably easy enough. -- stage: - needs patch versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13461 ___

[issue15528] Better support for finalization with weakrefs

2013-02-14 Thread Richard Oudkerk
Richard Oudkerk added the comment: On 14/02/2013 3:16pm, Antoine Pitrou wrote: Mmmh... thread switching is already blocked at shutdown: http://hg.python.org/cpython/file/0f827775f7b7/Python/ceval.c#l434 But in Py_Finalize(), call_py_exitfuncs() is called *before* _Py_Finalizing is set to a

[issue11048] import ctypes causes segfault on read-only filesystem

2013-02-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - test needed versions: +Python 3.4 -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11048 ___

[issue11837] smtplib._quote_periods triggers spurious type error in re.sub

2013-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Already fixed in issue12283. -- components: +email nosy: +barry, r.david.murray, serhiy.storchaka resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - python3.2 smtplib _quote_periods type: crash - behavior

[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2013-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13153 ___ ___ Python-bugs-list mailing list

[issue17206] Py_XDECREF() expands its argument multiple times

2013-02-14 Thread Dave Malcolm
New submission from Dave Malcolm: When running my refcount static analyzer [1] on a large corpus of real-world C extension code for Python, I ran into the following construct in various places: Py_XDECREF(PyObject_CallObject(callable, args)); This is bogus code: Py_XDECREF expands its

[issue6083] Reference counting bug in PyArg_ParseTuple and PyArg_ParseTupleAndKeywords

2013-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: FreeBSD 6.4 and Windows test failures was fixed in changesets 8fb98fb758e8 and ec70abe8c886. -- assignee: - serhiy.storchaka resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___

[issue17205] In the help() function the order of methods changes

2013-02-14 Thread R. David Murray
R. David Murray added the comment: Ramchandra is correct. If you were to implement a don't sort flag, what you would get is *random* order (and a different order each time, in 3.3+). Further, this is Python-interpreter internal data structure we are talking about, so it isn't even an option

[issue6083] Reference counting bug in PyArg_ParseTuple and PyArg_ParseTupleAndKeywords

2013-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I shouldn't close this until this dangerous feature will be deprecated. -- assignee: serhiy.storchaka - resolution: fixed - stage: committed/rejected - needs patch status: closed - open ___ Python tracker

[issue17206] Py_XDECREF() expands its argument multiple times

2013-02-14 Thread Brett Cannon
Brett Cannon added the comment: On Thu, Feb 14, 2013 at 11:07 AM, Dave Malcolm rep...@bugs.python.orgwrote: New submission from Dave Malcolm: When running my refcount static analyzer [1] on a large corpus of real-world C extension code for Python, I ran into the following construct in

[issue7145] UTF-16 BOM is not written by socket.makefile (but is expected by read)

2013-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Won't fix? -- nosy: +serhiy.storchaka status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7145 ___

[issue16246] Multiprocessing infinite loop on Windows

2013-02-14 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16246 ___ ___

[issue5202] wave.py cannot write wave files into a shell pipeline

2013-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Now, is there some problem if we remove the calls to the tell method in _write_header ? See patch attached (tests are very welcome too). Yes, there is a problem. User can pass already open file to wave.open() and file position can be not 0 at the start of

[issue17201] Use allowZip64=True by default

2013-02-14 Thread William Mallard
William Mallard added the comment: See attached. The patch updates ZipFile, its documentation, and its unit tests. -- keywords: +patch Added file: http://bugs.python.org/file29074/zipfile_zip64_by_default.patch ___ Python tracker

[issue16893] Create IDLE help.txt from Doc/library/idle.rst

2013-02-14 Thread Zachary Ware
Zachary Ware added the comment: Ping! If there are no objections, would anyone mind committing this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16893 ___

[issue17201] Use allowZip64=True by default

2013-02-14 Thread William Mallard
Changes by William Mallard w...@llard.net: Added file: http://bugs.python.org/file29075/zipfile_zip64_by_default.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17201 ___

[issue11397] os.path.realpath() may produce incorrect results

2013-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Already fixed in issue6975. -- nosy: +serhiy.storchaka resolution: - out of date stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue14515] tempfile.TemporaryDirectory documented as returning object but returns name

2013-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't understand a phrase and is assigned to the target of the as clause on entry to a context. Typo? -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14515

[issue17179] Incorrect use of type function in types.new_class

2013-02-14 Thread Daniel Urban
Daniel Urban added the comment: I don't think this is a bug: from datetime import datetime class tdatetime(datetime, foo='bar'): ... pass ... Traceback (most recent call last): File stdin, line 1, in module TypeError: type() takes 1 or 3 arguments -- nosy: +daniel.urban

[issue14720] sqlite3 microseconds

2013-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Can convert_timestamp(val) be implemented as datetime.datetime.strptime(val.decode(), '%Y-%m-%d %H:%M:%S.%f')? -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14720

[issue11649] startElementNS in xml.sax.saxutils.XMLGenerator ignored encoding

2013-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Already fixed in issue1470548. -- nosy: +serhiy.storchaka resolution: - out of date stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue14515] tempfile.TemporaryDirectory documented as returning object but returns name

2013-02-14 Thread R. David Murray
R. David Murray added the comment: The patch is missing the markup for the 'as' keyword (it should read :keyword:`as`). If that were added, would the sentence make sense to you? Would it be clearer to say that the directory name is returned by the __enter__ method? --

[issue14515] tempfile.TemporaryDirectory documented as returning object but returns name

2013-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Aha, now it makes a sense to me. I don't know which variant will be clear. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14515 ___

[issue15528] Better support for finalization with weakrefs

2013-02-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: But in Py_Finalize(), call_py_exitfuncs() is called *before* _Py_Finalizing is set to a non-NULL value. http://hg.python.org/cpython/file/0f827775f7b7/Python/pythonrun.c#l492 Ah, right. But is it any different from, e.g., registering an atexit handler

[issue15528] Better support for finalization with weakrefs

2013-02-14 Thread Richard Oudkerk
Richard Oudkerk added the comment: In any case, I think it's just something we'll have to live with. Daemon threads are not a terrific idea in general. I agree. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15528

[issue17207] string format precision misbehaving

2013-02-14 Thread Martin Mokrejs
New submission from Martin Mokrejs: Hi, I don't know if this is related to issue8040 or not. I find the 2.7 string formatting behavior inconsistent. I found out sometimes I have to divide my number by 100 so that the percentage values get printed correctly. Somehow, when a percent sign

[issue17207] string format precision misbehaving

2013-02-14 Thread R. David Murray
R. David Murray added the comment: You appear to be mixing up % style formatting and 'format' style formatting, especially since you seem to be using both in your examples, which is redundant. Please see http://docs.python.org/2.7/library/string.html#format-string-syntax for the explanation

[issue16795] Patch: some changes to AST to make it more useful for static language analysis

2013-02-14 Thread Sven Brauch
Sven Brauch added the comment: I don't want to push anything, but did you find time to review this yet? It would be great to have it in the next release. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16795

[issue16795] Patch: some changes to AST to make it more useful for static language analysis

2013-02-14 Thread Brett Cannon
Brett Cannon added the comment: Python 3.4.0a1 isn't due until August so you have no worries about missing the next release. =) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16795 ___

[issue17200] telnetlib.read_until() timeout uses the wrong units

2013-02-14 Thread Reuben D'Netto
Reuben D'Netto added the comment: OK, I've implemented tests for read_until() and expect() using both poll and select. I ended up rewriting _read_until_with_select() to look more like the poll equivalent in the process, which should hopefully make it more maintainable. -- Added file: