[issue3591] elementtree tests do not include bytes handling

2013-07-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +eli.bendersky, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue18373] implement sys.get/setbyteswarningflag()

2013-07-05 Thread R. David Murray
R. David Murray added the comment: Why wouldn't you just enable bytes warning and fix all the code to work correctly? -- nosy: +r.david.murray ___ Python tracker ___ ___

[issue6671] webbrowser doesn't respect xfce default browser

2013-07-05 Thread Éric Araujo
Éric Araujo added the comment: I don’t understand what your message is saying, Christian. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue6671] webbrowser doesn't respect xfce default browser

2013-07-05 Thread Christian Heimes
Christian Heimes added the comment: I have a box with Ubuntu 12.04 and XFCE4: declare -x XDG_CURRENT_DESKTOP="XFCE" declare -x DESKTOP_SESSION="xubuntu" -- nosy: +christian.heimes ___ Python tracker ___

[issue15197] test_gettext failure on Win64 buildbot

2013-07-05 Thread Christian Heimes
Christian Heimes added the comment: Looks fine now. I haven't seen that error in a while. Thanks! -- nosy: +christian.heimes resolution: -> fixed status: open -> closed ___ Python tracker _

[issue3591] elementtree tests do not include bytes handling

2013-07-05 Thread Christian Heimes
Changes by Christian Heimes : -- versions: +Python 3.4 -Python 3.0, Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list

[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2013-07-05 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue6284] C/API PyErr_AsUnicode()

2013-07-05 Thread Christian Heimes
Changes by Christian Heimes : -- components: +Interpreter Core -None versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Pytho

[issue10760] tarfile doesn't handle sysfs well

2013-07-05 Thread Christian Heimes
Changes by Christian Heimes : -- versions: +Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue9660] PEP 383: socket module doesn't handle undecodable protocol or service names

2013-07-05 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes versions: +Python 3.3, Python 3.4 -Python 3.1 ___ Python tracker ___ ___ Pytho

[issue11309] #include in Objects/unicodetype_db.h and Objects/unicodectype.c

2013-07-05 Thread Christian Heimes
Christian Heimes added the comment: Python 2.7 fails even with --enable-unicode=ucs4: $ ./configure --with-wctype-functions --enable-unicode=ucs4 $ make ... In file included from Objects/unicodectype.c:34:0: Objects/unicodetype_db.h: In function '_PyUnicodeUCS4_IsWhitespace': Objects/unicodetyp

[issue10080] Py_Initialize crashes when stdout has been redirected with freopen

2013-07-05 Thread Christian Heimes
Christian Heimes added the comment: I can't reproduce the issue with Python 3.2 and dup2 on Linux. $ gcc -o py_main py_main_dup2.c -I/usr/include/python3.2mu -lpython3.2mu -lm -pthread -ldl -lutil $ ./py_main log.txt contains 'foo' and the debug message, too. Is this still an issue for you?

[issue1298813] sysmodule.c: realpath() is unsafe

2013-07-05 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue11757] test_subprocess.test_communicate_timeout_large_ouput failure on select(): negative timeout?

2013-07-05 Thread Christian Heimes
Christian Heimes added the comment: Is there anything left to do here? -- nosy: +christian.heimes resolution: -> fixed stage: needs patch -> committed/rejected status: open -> pending ___ Python tracker __

[issue18281] tarfile defines stat constants

2013-07-05 Thread Christian Heimes
Christian Heimes added the comment: OK, your proposal is more appealing. Any last words before the constants are gone for good? -- assignee: -> christian.heimes ___ Python tracker

[issue13651] Improve redirection in urllib

2013-07-05 Thread Christian Heimes
Christian Heimes added the comment: New features have to go into 3.4 -- nosy: +christian.heimes versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___

[issue17628] str==str: compare the first character before calling memcmp()

2013-07-05 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue12807] Optimization/refactoring for {bytearray, bytes, unicode}.strip()

2013-07-05 Thread Christian Heimes
Changes by Christian Heimes : -- versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue17221] Resort Misc/NEWS

2013-07-05 Thread Christian Heimes
Christian Heimes added the comment: I think this issue can be closed. :) -- nosy: +christian.heimes resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue1703592] have a way to ignore nonexisting locales in locale.setlocale

2013-07-05 Thread Christian Heimes
Changes by Christian Heimes : -- versions: +Python 3.4 -Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue11366] xml.etree.ElementTree.Element: docs should mention immediate subelement

2013-07-05 Thread Christian Heimes
Christian Heimes added the comment: The introduction [1] to etree explains it: Element.findall() finds only elements with a tag which are direct children of the current element. IMHO it's also the obvious outcome for anybody familiar with XML and XPath. [1] http://docs.python.org/3/library/

[issue9679] unicode DNS names in urllib, urlopen

2013-07-05 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10179] os.stat fails on mapped network drive

2013-07-05 Thread Christian Heimes
Changes by Christian Heimes : -- versions: +Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue18373] implement sys.get/setbyteswarningflag()

2013-07-05 Thread Daniel Holth
New submission from Daniel Holth: This patch lets the user get/set the byteswarningflag() to control whether warnings are emitted at runtime (pursuant to the configuration of the warnings module, of course). The idea is that a user who is concerned with interacting with bytes correctly would

[issue6128] Consequences of using Py_TPFLAGS_HAVE_GC are incompletely explained

2013-07-05 Thread Christian Heimes
Christian Heimes added the comment: Python's extension modules aren't consistent. Some places deallocate the object with PyObject_Del(), other places are using PyObject_GC_Del() or simple Py_DECREF(). -- nosy: +christian.heimes priority: normal -> low stage: -> needs patch type: -> e

[issue6642] returning after forking a child thread doesn't call Py_Finalize

2013-07-05 Thread Richard Oudkerk
Richard Oudkerk added the comment: Shouldn't the child process be terminating using os._exit()? -- nosy: +sbt ___ Python tracker ___ __

[issue18372] _Pickler_New() doesn't call PyObject_GC_Track(self)

2013-07-05 Thread Christian Heimes
New submission from Christian Heimes: In _Pickler_New() PicklerObject is allocated with self = PyObject_GC_New(PicklerObject, &Pickler_Type); but PyObject_GC_Track(self) is never called, same for _Unpickler_New(). I think it's a bug. -- components: Extension Modules messages: 1923

[issue9175] ctypes doesn't build on hp-ux

2013-07-05 Thread Christian Heimes
Christian Heimes added the comment: Is this issue still relevant? -- nosy: +christian.heimes status: open -> languishing ___ Python tracker ___ ___

[issue6642] returning after forking a child thread doesn't call Py_Finalize

2013-07-05 Thread Christian Heimes
Changes by Christian Heimes : -- components: +Interpreter Core stage: -> patch review type: -> behavior ___ Python tracker ___ ___ Py

[issue6642] returning after forking a child thread doesn't call Py_Finalize

2013-07-05 Thread Christian Heimes
Christian Heimes added the comment: Python 3.x is affected, too. -- nosy: +christian.heimes versions: +Python 2.7, Python 3.3, Python 3.4 -Python 2.6 ___ Python tracker ___ __

[issue14748] spwd.getspall() is returning LDAP (non local) users too

2013-07-05 Thread Christian Heimes
Christian Heimes added the comment: Dave has explained the problem very well. I like to add one thing. The module just returns what your operation system's getspent() API returns. http://linux.die.net/man/3/getspnam Please ask your vendor for more details, too. -- nosy: +christian.hei

[issue8931] '#' has no affect with 'c' type

2013-07-05 Thread Christian Heimes
Christian Heimes added the comment: I'm moving the patch to Python 3.4. 2.7 to 3.3 are out of scope as the change might break software. -- nosy: +christian.heimes stage: -> patch review versions: +Python 3.4 -Python 2.6, Python 2.7, Python 3.1, Python 3.2 _

[issue18371] Should be able to specify SSL version for smtplib

2013-07-05 Thread Christian Heimes
Christian Heimes added the comment: As this counts as a new feature it can't be implemented in Python 2.7. Only fixes are applied to 2.7. You have to roll your own subclass that overwrites starttls() or _get_socket(). I'm sorry for the inconvenience. Starting with Python 3.3 the methods suppor

[issue18351] Incorrect variable name in importlib._bootstrap._get_sourcefile

2013-07-05 Thread Madison May
Madison May added the comment: Here's a preliminary attempt at a patch and a small set of test cases for _get_sourcefile. I fixed one more spelling error in _get_sourcefile (bytcode -> bytecode) and tweaked a bit of logic. Instead of: extension.lower()[-3:-1] != '.py' I think we needed ex

[issue18369] X509 cert class for ssl module

2013-07-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I have slightly different plans. But first, do you agree that the _ssl > C extension and all its methods are consider an internal API? How > about the _ssl module's method returns X509 objects and the Python > module calls methods on the X509 object like get_in

[issue18369] X509 cert class for ssl module

2013-07-05 Thread Christian Heimes
Christian Heimes added the comment: A dict subclass? Oh heck ... I have slightly different plans. But first, do you agree that the _ssl C extension and all its methods are consider an internal API? How about the _ssl module's method returns X509 objects and the Python module calls methods on t

[issue18370] ast.parse produces wrong lineno and col_offset for triple-quoted strings

2013-07-05 Thread Aivar Annamaa
Changes by Aivar Annamaa : -- title: ast.parse produces -1 as col_offset for triple-quoted strings -> ast.parse produces wrong lineno and col_offset for triple-quoted strings ___ Python tracker ___

[issue3692] improper scope in list comprehension, when used in class declaration

2013-07-05 Thread John McDonald
John McDonald added the comment: Could we possibly revisit this? This feels like an implementation detail, not something specified. Consider the different cases: Type "help", "copyright", "credits" or "license" for more information. >>> class A: ... b = 5 ... print(locals()) ... x = [i*i

[issue18370] ast.parse produces -1 as col_offset for triple-quoted strings

2013-07-05 Thread Aivar Annamaa
Aivar Annamaa added the comment: Didn't notice before: the lineno attribute is also wrong -- ___ Python tracker ___ ___ Python-bugs-li

[issue18371] Should be able to specify SSL version for smtplib

2013-07-05 Thread YS
New submission from YS: Currently, smtplib is not able to connect to hotmail, giving an SSL version error (at least on some platfroms). See http://stackoverflow.com/q/17434143/429850 and http://stackoverflow.com/q/17011816/429850. Perhaps there should be an option like smtplib.SMTP(ssl_versio

[issue18369] X509 cert class for ssl module

2013-07-05 Thread Michele Orrù
Changes by Michele Orrù : -- nosy: +maker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue18326] Mention 'keyword only' for list.sort, improve glossary.

2013-07-05 Thread Zachary Ware
Changes by Zachary Ware : Added file: http://bugs.python.org/file30785/issue18326.that.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue18326] Mention 'keyword only' for list.sort, improve glossary.

2013-07-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: The new 'which' should be 'that'. Other than that, looks good to me. -- ___ Python tracker ___ ___ P

[issue18233] SSLSocket.getpeercertchain()

2013-07-05 Thread Michele Orrù
Changes by Michele Orrù : -- nosy: +maker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue17202] Add .bat line to .hgeol

2013-07-05 Thread Zachary Ware
Zachary Ware added the comment: I have recently learned why this issue had seemed transient to me previously: the hg eol extension apparently causes hg to create all files that are not explicitly set to LF or BIN using CRLF on Windows. Thus, this is what happens: """ P:\Python\cpython\Doc>rem

[issue18370] ast.parse produces -1 as col_offset for triple-quoted strings

2013-07-05 Thread Aivar Annamaa
New submission from Aivar Annamaa: AST nodes for triple-quoted strings have -1 in col_offset field, as presented in the attached file. -- components: Interpreter Core files: col_offset_bug.py messages: 192355 nosy: Aivar.Annamaa priority: normal severity: normal status: open title: ast.

[issue18369] X509 cert class for ssl module

2013-07-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yeah, this is probably inevitable. Major concern is how to maintain compatibility with getpeercert() currently returning a dict. Should we make X509 a dict subclass? (yikes :-)) -- ___ Python tracker

[issue18369] X509 cert class for ssl module

2013-07-05 Thread Christian Heimes
New submission from Christian Heimes: I'm working on a X509 certificate class for the SSL module. Eventually methods like getpeercert() are going to return X509 instances and the Python interface can decide if it should return a dict, DER bytes or whatever. IMHO it's a mandatory requirement fo

[issue18326] Mention 'keyword only' for list.sort, improve glossary.

2013-07-05 Thread Zachary Ware
Zachary Ware added the comment: How about this patch? I agree that "types of arguments/parameters" has great potential for confusion, so the glossary has been changed to "kinds of argument/parameter" (dropping the pluralization as well; it is unnecessary). I think just taking the word "type"

[issue18368] PyOS_StdioReadline() leaks memory when realloc() fails

2013-07-05 Thread Christian Heimes
New submission from Christian Heimes: PyOS_StdioReadline() contains code such as: p = (char *)PyMem_REALLOC(p, n + incr); The code looses its pointer to p when realloc fails and has no chance to free the memory in p. Also the code sets PyExc_OverflowError when incr > INT_MAX but it doesn't

[issue18360] Won't install. Keeps telling me DLL is missing.

2013-07-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: When responding by email, *please* delete the quote, except perhaps for a line or two if really needed. The email signature is *never* needed and *always* noise. I install on Windows with no problem. I presume you too see 'Install' by right-clicking on the .m

[issue18367] See if a venv setup can be used for devinabox for coverage

2013-07-05 Thread Brett Cannon
New submission from Brett Cannon: Right now there is a bunch of contorting with setuptools and coverage.py's checkout to get things in reasonable places, etc. Might be easiest to create a venv from the built checkout and then install both setuptools and the coverage.py checkout into the venv f

[issue18357] add tests for dictview set difference operations

2013-07-05 Thread Eric Snow
Eric Snow added the comment: Same here. -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue18354] http://www.python.org/doc/ has outdated note

2013-07-05 Thread Brian Curtin
Brian Curtin added the comment: Fixed in r14798 of the site. -- assignee: docs@python -> brian.curtin resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker __

[issue18266] Fix test discovery for test_largefile.py

2013-07-05 Thread Zachary Ware
Zachary Ware added the comment: After testing on Windows, here's version 3. This version changes tearDownClass to truncate the file rather than unlink it, and adds a check to make sure the file is properly truncated to 0 length. Unlinking the file makes the test take an extra 40 seconds on m

[issue18326] Mention 'keyword only' for list.sort, improve glossary.

2013-07-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'keyword argument' refers one to 'argument'. The entry for the latter says that there are only two types of arguments, keyword and positional. That is true as to how actual arguments are passed. There are 3 possibilities for how a single argument for a paramet

[issue18354] http://www.python.org/doc/ has outdated note

2013-07-05 Thread Éric Araujo
Éric Araujo added the comment: Also I don’t think we’ll ever have documentation for non-stdlib libs/tools in the standard docs, so the HHGP or new packaging user doc won’t «be merged into the Python documentation». -- ___ Python tracker

[issue18354] http://www.python.org/doc/ has outdated note

2013-07-05 Thread Éric Araujo
Éric Araujo added the comment: The HHGP was an opinionated, distribute-centric user guide, which is now outdated and obsoleted by the upcoming Python packaging user documentation, which will cover more tools and be blessed by Nick Coghlan and the developers of packaging tools. -- nosy

[issue18366] Look into using setuptools 0.8 with devinabox

2013-07-05 Thread Brett Cannon
New submission from Brett Cannon: Setuptools 0.8 uses a Python 2/3 compatible codebase so it should simplify the instructions for running coverage.py. -- assignee: brett.cannon messages: 192343 nosy: brett.cannon priority: normal severity: normal status: open title: Look into using setu

[issue18357] add tests for dictview set difference operations

2013-07-05 Thread Éric Araujo
Éric Araujo added the comment: Looks good to me. -- nosy: +eric.araujo stage: -> patch review versions: +Python 3.3, Python 3.4 ___ Python tracker ___ __

[issue18326] Mention keywork only in list.sort docs

2013-07-05 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: Not Clear Docs -> Mention keywork only in list.sort docs type: -> enhancement ___ Python tracker ___ __

[issue18351] Incorrect variable name in importlib._bootstrap._get_sourcefile

2013-07-05 Thread Brett Cannon
Brett Cannon added the comment: Wow, I really botched that function. And no one seems to really use it to notice the errors (or at least the branches in the function where the errors exist are never reached). =) So the tests should go in test_importlib or test_import (I'm leaning towards the

[issue18351] Incorrect variable name in importlib._bootstrap._get_sourcefile

2013-07-05 Thread Madison May
Madison May added the comment: Yet another _get_sourcefile() related bug to report. Line 453 should be: source_path = bytcode_path[:-1] instead of source_path = bytcode_path[-1:] -- ___ Python tracker

[issue18351] Incorrect variable name in importlib._bootstrap._get_sourcefile

2013-07-05 Thread Madison May
Madison May added the comment: You might have to bear with me -- I'm a bit new to this. What's the protocol for functions like _get_sourcepath() that require support files for testing? I'll should probably have a couple .pyc's, .pyo's and .py files to use for testing purposes. Additionally,

[issue18351] Incorrect variable name in importlib._bootstrap._get_sourcefile

2013-07-05 Thread Madison May
Madison May added the comment: I'd be glad to -- I'll get right to work =). On a related note, rpartition is also misspelled in _get_sourcefile() on line 446. -- ___ Python tracker ___

[issue18356] help(numpy) causes segfault on exit

2013-07-05 Thread STINNER Victor
STINNER Victor added the comment: > For a full trackdown and workaround of the problem see > http://stackoverflow.com/questions/17344974/python-helpnumpy-causes-segfault-on-exit The gdb trace is not interesting because it stopped at SIGPIPE, which is not an error. Please rerun your program in

[issue18356] help(numpy) causes segfault on exit

2013-07-05 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue18353] PyUnicode_WRITE_CHAR macro definition missing

2013-07-05 Thread STINNER Victor
STINNER Victor added the comment: I don't remember where this macro come from. It is mention in my review of the PEP (the text of the PEP, not the implementation): http://mail.python.org/pipermail/python-dev/2011-September/113668.html PyUnicode_WRITE_CHAR() was removed from the PEP by the fol

[issue18362] Make build_cpython.py from dev-in-a-box work outside of a box

2013-07-05 Thread Eric Snow
Eric Snow added the comment: Out of the box thinking, eh? -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue18335] Add textwrap.dedent, .indent, as str methods.

2013-07-05 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue18354] http://www.python.org/doc/ has outdated note

2013-07-05 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue18360] Won't install. Keeps telling me DLL is missing.

2013-07-05 Thread Dale Smith
Dale Smith added the comment: Was that all the correct information? Do you need more... i.e. about my computer etc? On 7/4/2013 4:17 PM, R. David Murray wrote: > R. David Murray added the comment: > > Exactly which installer are you trying to run and where did you download it > from? > > -

[issue15767] add ModuleNotFoundError

2013-07-05 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue18200] Update stdlib to use ModuleNotFoundError

2013-07-05 Thread Brett Cannon
Brett Cannon added the comment: Discussion occurred on http://bugs.python.org/issue15767 -- ___ Python tracker ___ ___ Python-bugs-lis

[issue18232] running a suite with no tests is not an error

2013-07-05 Thread Ezio Melotti
Ezio Melotti added the comment: > I'm thinking I'll add a '--min-tests=X' parameter to unittest.main, > with the semantic that if there are less than X tests executed, the > test run will be considered a failure, The minimum number of tests is a fast moving target, and unless you know exactly h

[issue18231] What's new in Python should explain what's new in UCD

2013-07-05 Thread Ezio Melotti
Ezio Melotti added the comment: I agree with Martin, mentioning that the database has been updated should be enough. -- ___ Python tracker ___ __

[issue18222] os.path.abspath should accept multiple path parts and join them

2013-07-05 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue18221] abspath strips trailing spaces on win32

2013-07-05 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue18279] IDLE Unit test for RstripExtension.py

2013-07-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I decided that the first commit should be a separate issue that this issue depends on. -- assignee: -> terry.reedy dependencies: +Idle: mock Text class and test thereof ___ Python tracker

[issue18365] Idle: mock Text class and test thereof

2013-07-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: The rstrip patch is with #18279. Design discussion occurred on #18226. Both issues and other future issues depend on this one. -- ___ Python tracker __