[issue23493] optimize sort_keys in json module by using operator.itemgetter()

2015-03-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue433028] SRE: (?flag:...) is not supported

2015-03-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue23469] Delete Misc/*.wpr files

2015-03-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue23460] Decimals do not obey ':g' exponential notation formatting rules

2015-03-01 Thread Ezio Melotti
Ezio Melotti added the comment: Should we add a note to the format docs, or just close this? -- nosy: +ezio.melotti, mark.dickinson ___ Python tracker ___ ___

[issue23455] file iterator "deemed broken"; can resume after StopIteration

2015-03-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +pitrou type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue23504] Add __all__ into types

2015-03-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue22832] Tweak parameter names for fcntl module

2015-03-01 Thread Alex Shkop
Alex Shkop added the comment: This patch fixes pointed out bugs in documentation and docstring for ioctl() function. -- Added file: http://bugs.python.org/file38295/issue22832_v2.patch ___ Python tracker _

[issue23512] The list of built-in functions is not alphabetical on https://docs.python.org/2/library/functions.html

2015-03-01 Thread Ezio Melotti
Ezio Melotti added the comment: That was me in #10299 (the issue contains a discussion about the ordering in the last few messages). Since there are only 4 functions, I think it would be ok removing them from the table and instead add a sentence like "In addition, there are other 4 built-in f

[issue23552] Have timeit warn about runs that are not independent of each other

2015-03-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: May be add an option to control a warning (e.g. turn it off when Python run with -Wignore)? May be write warning to stderr? -- ___ Python tracker ___

[issue23512] The list of built-in functions is not alphabetical on https://docs.python.org/2/library/functions.html

2015-03-01 Thread Éric Araujo
Éric Araujo added the comment: IIRC the table was added in a 3.x branch and backported to 2.7; the developer doing the backport added the functions missing in 3.x to the end of the table, thinking that re-ordering was not worth the trouble. -- nosy: +eric.araujo __

[issue23004] mock_open() should allow reading binary data

2015-03-01 Thread Berker Peksag
Berker Peksag added the comment: LGTM. -- components: +Library (Lib) stage: patch review -> commit review ___ Python tracker ___ ___ P

[issue23527] test_smtpnet uses incorrect port for STARTTLS

2015-03-01 Thread Berker Peksag
Berker Peksag added the comment: Good catch. The test is skipped as "Resource 'smtp.gmail.com' is not available" on my machine. See https://support.google.com/mail/answer/13287 for reference. Thanks for the patch. -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved statu

[issue23527] test_smtpnet uses incorrect port for STARTTLS

2015-03-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 06d69688ea06 by Berker Peksag in branch '3.4': Issue #23527: Update Gmail port number for STARTTLS to 587. https://hg.python.org/cpython/rev/06d69688ea06 New changeset 9ff477cd79da by Berker Peksag in branch 'default': Issue #23527: Update Gmail por

[issue23477] Increase coverage for wsgiref module

2015-03-01 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Alex. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker

[issue23477] Increase coverage for wsgiref module

2015-03-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9f2ef8654bf8 by Berker Peksag in branch '3.4': Issue #23477: Improve test coverage of wsgiref.simple_server. https://hg.python.org/cpython/rev/9f2ef8654bf8 New changeset 0c786d1fb372 by Berker Peksag in branch 'default': Issue #23477: Improve test c

[issue20521] Cleanup for "dis" module documentation

2015-03-01 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Sven. Most of the changes in your patch have already been fixed in issue 22845. Just committed the "``TOS`` -> TOS" part of the patch. -- nosy: +berker.peksag resolution: -> fixed stage: patch review -> resolved status: open -> clo

[issue20521] [PATCH] Cleanup for "dis" module documentation

2015-03-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 617feb5d8af2 by Berker Peksag in branch '3.4': Issue #20521: Change ``TOS`` to TOS in dis documentation. https://hg.python.org/cpython/rev/617feb5d8af2 New changeset a331d71bdc0a by Berker Peksag in branch 'default': Issue #20521: Change ``TOS`` to

[issue23552] Have timeit warn about runs that are not independent of each other

2015-03-01 Thread Alex Gaynor
Alex Gaynor added the comment: This seems like it probably will report something useless (and ultimately be disabled) on PyPy, where runs before and after the JIT will display significant variance. -- nosy: +alex, arigo, fijall ___ Python tracker <

[issue23552] Have timeit warn about runs that are not independent of each other

2015-03-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: See attached -- keywords: +patch Added file: http://bugs.python.org/file38294/timeit_warning.diff ___ Python tracker ___

[issue23553] Reduce the number of comparisons for range checking.

2015-03-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, here is a small patch to show how this could can be done consistently and with code clarity. -- title: Reduce the number of comparison for range checking. -> Reduce the number of comparisons for range checking. Added file: http://bugs.python.o

[issue23387] test_urllib2 fails with HTTP Error 502: Bad Gateway

2015-03-01 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue23387] test_urllib2 fails with HTTP Error 502: Bad Gateway

2015-03-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7e783289bc12 by Berker Peksag in branch '3.4': Issue #23387: Skip test_issue16464 if it raises an 5xx error. https://hg.python.org/cpython/rev/7e783289bc12 New changeset 4cadc2c65609 by Berker Peksag in branch 'default': Issue #23387: Skip test_issu

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-01 Thread Cyd Haselton
Cyd Haselton added the comment: Ryan, Thanks. First commit in; all fixes for Android's broken mbstowcs, new plat-android and plat-android/DLFCN.py. What are you trying to build? -- ___ Python tracker

[issue23513] Add support for classes/object model in multiprocessing/pickle

2015-03-01 Thread Davin Potts
Davin Potts added the comment: The runnable example in the attached file, issue_23513_play.py, suggests a way to preserve the inheritance of the Result class in any subclasses of Thing yet leaves the definition of Thing.worker as the OP first had it (in the most straightforward way). In creat

[issue4071] ntpath.abspath fails for long str paths

2015-03-01 Thread eryksun
eryksun added the comment: > Can we close this as I'm not aware of any possible way to fix this? Windows system and C runtime calls that take paths could be restricted to wide-character APIs, such as calling GetFullPathnameW in this case, or _wexecve instead of execve (issue 23462). Then for

[issue23485] PEP 475: handle EINTR in the select and selectors module

2015-03-01 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue3931] codecs.charmap_build is untested and undocumented

2015-03-01 Thread Mark Lawrence
Mark Lawrence added the comment: I do not see much purpose in documenting and testing this one function alone. I think that all functions in _codecsmodule.c should be looked at to see if they are private or public, but I'm certainly not volunteering to do it. -- _

[issue21619] Cleaning up a subprocess with a broken pipe

2015-03-01 Thread Martin Panter
Martin Panter added the comment: It seems two different issues have popped up: ## 1. Windows behaviour ## Windows apparently doesn’t handle broken pipes consistently, sometimes raising an EINVAL error, and sometimes not raising any error. I don’t know if this is a problem with Python, or a qu

[issue1724366] cPickle module doesn't work with universal line endings

2015-03-01 Thread Mark Lawrence
Mark Lawrence added the comment: msg185431 from #616013 states "Three years later, I don't think anyone is interested in documenting the outdated cPickle." so I believe this should suffer the same fate. -- ___ Python tracker

[issue18082] Inconsistent behavior of IOBase methods on closed files

2015-03-01 Thread Mark Lawrence
Mark Lawrence added the comment: Anybody? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue20059] Inconsistent urlparse/urllib.parse handling of invalid port values?

2015-03-01 Thread Martin Panter
Martin Panter added the comment: See also Issue 20271, which has a proposed patch with more strict urlsplit() etc behaviour before even returning a SplitResult object. -- ___ Python tracker ___

[issue20271] urllib.parse.urlparse() accepts wrong URLs

2015-03-01 Thread Martin Panter
Martin Panter added the comment: I suspect the proposed patch here would make some of the special error handling for the “port” property redundant, and would compete with my patch for Issue 20059, which raises ValueError in more cases when “port” is accessed, rather than returning None. There

[issue20210] Provide configure options to enable/disable Python modules and extensions

2015-03-01 Thread koobs
koobs added the comment: For what it's worth, we've been running with patch 0001 on FreeBSD's Python 3.4 port for 8 months with no issues [1]. It allows downstreams like us to easily customise what modules gets built, and offers substantial flexibility and benefits for various packaging scenar

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-01 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: Cyd: Just run: $ git commit -m "Put some message here" # commit the changes $ git push # push the changes I'm working on it, but I haven't even gotten it to build (CURSE YOU, AUTOCONF!) -- ___ Python tracker

[issue21483] Skip os.utime() test on NFS?

2015-03-01 Thread Isaac Schwabacher
Isaac Schwabacher added the comment: Patch to do precisely this. Wish I'd spent more time searching for this thread and less time debugging; it would have saved me a lot of trouble. -- keywords: +patch nosy: +ischwabacher Added file: http://bugs.python.org/file38291/test_import.patch

[issue9784] _msi.c warnings under 64-bit Windows

2015-03-01 Thread Mark Lawrence
Changes by Mark Lawrence : -- components: +Windows nosy: +steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___ Python-bugs-lis

[issue12137] Error EBADF in test_urllibnet

2015-03-01 Thread Mark Lawrence
Mark Lawrence added the comment: Can this be closed as it's stated to be a transient failure and it's nearly four years old? -- ___ Python tracker ___ __

[issue6911] Document changes in asynchat

2015-03-01 Thread Mark Lawrence
Changes by Mark Lawrence : -- versions: +Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue19873] There is a duplicate function in Lib/test/test_pathlib.py

2015-03-01 Thread Mark Lawrence
Mark Lawrence added the comment: Pang :( -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue12989] Consistently handle path separator in Py_GetPath on Windows

2015-03-01 Thread Mark Lawrence
Mark Lawrence added the comment: The patch is three parts that adds one line, moves one line and deletes one line. I've checked 2.6, 2.7, 3.2, 3.3, 3.4 and default. In all cases the second part has already been implemented, the first and third have not. Assuming that these changes must stil

[issue13312] test_time fails: strftime('%Y', y) for negative year

2015-03-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Attached patch eliminates undefined behavior, but I am not sure fixing this is worth the trouble. -- keywords: +patch nosy: +haypo Added file: http://bugs.python.org/file38290/issue13312.patch ___ Python tracke

[issue13312] test_time fails: strftime('%Y', y) for negative year

2015-03-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: We still have the following in Lib/test/test_time.py: # Issue #13312: it may return wrong value for year < TIME_MINYEAR + 1900 # Skip the value test, but check that no error is raised self.yearstr(TIME_MINYEAR) I reviewed the curr

[issue15286] normpath does not work with local literal paths

2015-03-01 Thread Mark Lawrence
Mark Lawrence added the comment: As ntpath was cleaned up on #15275 do we need this patch or not, especially given that pathlib made it into 3.4? -- ___ Python tracker ___ _

[issue23484] SemLock acquire() keyword arg 'blocking' is invalid

2015-03-01 Thread Davin Potts
Davin Potts added the comment: To be fair, the docs in 2.7 do actually mention the use of 'block' instead of 'blocking' in acquire though it does so inside a "Note" block a bit later in the docs after first claiming that multiprocessing.Lock is a "clone". In 3.4, that important detail has been

[issue20271] urllib.parse.urlparse() accepts wrong URLs

2015-03-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: splitport() shouldn't handle auth, it should be called after auth is dropped with splituser(). The patch makes URL parsing slower, especially URLs with IPv6 addresses. $ ./python -m timeit -s "from urllib.parse import urlparse, clear_cache" -- "urlparse('ht

[issue13312] test_time fails: strftime('%Y', y) for negative year

2015-03-01 Thread Mark Lawrence
Mark Lawrence added the comment: Sorry should have been #17690. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue13312] test_time fails: strftime('%Y', y) for negative year

2015-03-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: As far as I can tell, the original report was about a test failing due to a system-dependent behavior of time.asctime(). However, since changeset 1e62a0cee092 (see issue #8013), we no longer call system asctime. I believe the test disabled in 1a0bfc26a

[issue20876] python -m test test_pathlib fails

2015-03-01 Thread Isaac Schwabacher
Isaac Schwabacher added the comment: This behavior is caused by the way NFS clients implement unlinking open files: instead of unlinking an open file, the filesystem renames it to .nfs and unlinks it on close. (The search term you want is "silly rename".) The reason this problem appears

[issue23484] SemLock acquire() keyword arg 'blocking' is invalid

2015-03-01 Thread Davin Potts
Davin Potts added the comment: In the docs for 2.7, multiprocessing.Lock refers to threading.Lock in which the signature for acquire looks like: threading.Lock.acquire([blocking]) However, in the current code in 2.7, Modules/_multiprocessing/semaphore.c implements multiprocessing.Lock.ac

[issue13312] test_time fails: strftime('%Y', y) for negative year

2015-03-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Mark, Issue #17960 ("Clarify the required behaviour of locals()") does not seem to be relevant here. I think you meant to refer to a changeset, not issue number. If so please use hash number such as d877d7f3b679. -- __

[issue23476] SSL cert verify fail for "www.verisign.com"

2015-03-01 Thread Cory Benfield
Cory Benfield added the comment: My reading of the OpenSSL issue is that there are no negative side effects from turning this on. -- ___ Python tracker ___ _

[issue23476] SSL cert verify fail for "www.verisign.com"

2015-03-01 Thread Alex Gaynor
Alex Gaynor added the comment: It looks like the existing `verify_flags` param is actually the same thing, so we can just use it. That said, I think this should be on by default, I can't think of a scenario you don't want it. -- ___ Python tracker

[issue23476] SSL cert verify fail for "www.verisign.com"

2015-03-01 Thread Christian Heimes
Christian Heimes added the comment: With the patch the flag is always set. Are there any possible side effects? IMHO it's better to add a store_flags property and make the feature optional. -- ___ Python tracker _

[issue23556] Scope for raise without argument is different in Python 2 and 3

2015-03-01 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue13312] test_time fails: strftime('%Y', y) for negative year

2015-03-01 Thread Mark Lawrence
Mark Lawrence added the comment: I believe that this can be closed as the test code was changed completely in #17960. -- ___ Python tracker ___ _

[issue23531] SSL operations cause entire process to hang

2015-03-01 Thread johnkw
johnkw added the comment: New testcase submitted without "requests". Don't have access to the non-cygwin build so don't know there. -- ___ Python tracker ___ ___

[issue23531] SSL operations cause entire process to hang

2015-03-01 Thread johnkw
Changes by johnkw : Added file: http://bugs.python.org/file38288/sslbug.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue7830] Flatten nested functools.partial

2015-03-01 Thread STINNER Victor
STINNER Victor added the comment: I forgot this issue. Thanks for the enhancement. It will help asyncio for example. It was surprised the first time i tested nested partial. -- ___ Python tracker ___

[issue23476] SSL cert verify fail for "www.verisign.com"

2015-03-01 Thread Alex Gaynor
Alex Gaynor added the comment: I'm attaching a patch that does what Donald suggests. -- keywords: +patch Added file: http://bugs.python.org/file38287/store.diff ___ Python tracker __

[issue23476] SSL cert verify fail for "www.verisign.com"

2015-03-01 Thread Donald Stufft
Donald Stufft added the comment: There actually *is* an API that can be set that will cause OpenSSL to use the shortest trust path it can, however it's only available in OpenSSL 1.0.2+ which means it'll solve it for a handful of people but not the bulk of people. -- __

[issue23476] SSL cert verify fail for "www.verisign.com"

2015-03-01 Thread Ian Cordasco
Ian Cordasco added the comment: So it seems like https://rt.openssl.org/Ticket/Display.html?user=guest&pass=guest&id=3621 includes a fix that we may be able to update Python to use (safely) by default. If we don't then this will continue to be an issue. Other references: - https://bugzilla.r

[issue7830] Flatten nested functools.partial

2015-03-01 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python

[issue7830] Flatten nested functools.partial

2015-03-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7839681ca931 by Alexander Belopolsky in branch 'default': Issue #7830: Flatten nested functools.partial. https://hg.python.org/cpython/rev/7839681ca931 -- nosy: +python-dev ___ Python tracker

[issue22840] strpdate('20141110', '%Y%m%d%H%S') returns wrong date

2015-03-01 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue22752] incorrect time.timezone value

2015-03-01 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue22791] datetime.utcfromtimestamp() shoud have option for create tz aware datetime

2015-03-01 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pytho

[issue22791] datetime.utcfromtimestamp() shoud have option for create tz aware datetime

2015-03-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4a590c66070d by Alexander Belopolsky in branch 'default': Closes issue #22791: Improved datetime from timestamp methods documentation. https://hg.python.org/cpython/rev/4a590c66070d -- nosy: +python-dev _

[issue20408] memoryview() constructor documentation error

2015-03-01 Thread Stefan Krah
Stefan Krah added the comment: I agree that "obj" would be nicer. On the other hand we explicitly test for "object" in the tests, help(memoryview) says "object" and pypy accepts "object". Also, I think there may be other instances in the tree where reserved names are used for parameters. -

[issue4071] ntpath.abspath fails for long str paths

2015-03-01 Thread Mark Lawrence
Mark Lawrence added the comment: Can we close this as I'm not aware of any possible way to fix this? See also issue1776160. -- nosy: +steve.dower, tim.golden, zach.ware ___ Python tracker _

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-01 Thread Demian Brecht
Demian Brecht added the comment: +David, Senthil: Thoughts on this? -- nosy: +orsenthil, r.david.murray ___ Python tracker ___ ___ Pyt

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-01 Thread Demian Brecht
Demian Brecht added the comment: > but I wonder if that goes beyond the scope of this issue? I think it’s worthwhile to fix it while you’re already working on the logic there. I’d consider Content-Type being set for methods not expecting it as a (very) minor bug and it’s better to clear up the

[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

2015-03-01 Thread Mark Lawrence
Mark Lawrence added the comment: find_unused_port is only defined in test.support. It is tested in test.test_support. This solution might not be ideal but if it ain't broke, don't fix it? -- ___ Python tracker ___

[issue6701] Make custom xmlrpc extension easier

2015-03-01 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: +loewis versions: +Python 3.5 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue20210] Provide configure options to enable/disable Python modules and extensions

2015-03-01 Thread Mark Lawrence
Mark Lawrence added the comment: @Thomas do you intend following this up as people certainly seem interested? -- ___ Python tracker ___ __

[issue23558] Unable to install Python 3.4.3 amd64 on Windows 8.1

2015-03-01 Thread Ryan Neve
Ryan Neve added the comment: Turns out I had accidentally installed 3.4.3 32 bit over 3.4.1 64 bit. I re-installed 3.4.1 32 bit, then un-installed it, then I was able to install 3.4.1 x64. I also tried installing and un-installing 3.5 which worked fine but didn't fix anything. -- _

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-01 Thread James Rutherford
James Rutherford added the comment: >> My feeling is that '' implies "present but empty" (so should have a >> content-length set to zero), whereas None implies "missing" (so should only >> have a content-length header set to zero if the method is expecting a body. > ... > In light of that, I th

[issue23558] Unable to install Python 3.4.3 amd64 on Windows 8.1

2015-03-01 Thread Ryan Neve
New submission from Ryan Neve: Much like issue 22648. Windows 8.1, I had version 3.4.1 and installed 3.4.3 without first uninstalling earlier version. Tried uninstalling older versions and it failed with: A program required for this install to complete could not be run. Windows uninstall wind

[issue23555] behavioural change in argparse set_defaults in python 2.7.9

2015-03-01 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue21619] Cleaning up a subprocess with a broken pipe

2015-03-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: When you write to the file you don't want the error was silently ignored. with open(filename, 'w') as f: f.write(content) And also I don't want the error was silently ignored when write to the subprocess. with subprocess.Popen(cmd, universal

[issue20128] Re-enable test_modules_search_builtin() in test_pydoc

2015-03-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: With test_synopsis_sourceless and test_non_ascii there were different issues, related to -OO. Fixed in changesets 663a83c1d42d, d7b3e722152d, 94edd0ef4c2a. -- ___ Python tracker

[issue10716] Modernize pydoc to use better HTML and separate CSS

2015-03-01 Thread Ismail Donmez
Ismail Donmez added the comment: Any update on this? Would be nice to have this for 3.5 release. -- nosy: +cartman ___ Python tracker ___

[issue21619] Cleaning up a subprocess with a broken pipe

2015-03-01 Thread STINNER Victor
STINNER Victor added the comment: Le dimanche 1 mars 2015, Serhiy Storchaka a écrit : > > Why communicate() ignores BrokenPipeError? > It's more convinient. There is nothing useful you can do on pipe error in communicate(). For __exit__, what do you want to on broken pipe error? I did't check

[issue23548] TypeError in event loop finalizer, new in Python 3.4.3

2015-03-01 Thread STINNER Victor
STINNER Victor added the comment: I'm aware of the issue but I would prefer to not fix it. The first problem is that you didn't close the event loop. I modified recently the doc to explain at the begining that you should develop in the debug mode. In this mode, you will see a warning if you don'

[issue23556] Scope for raise without argument is different in Python 2 and 3

2015-03-01 Thread SilentGhost
Changes by SilentGhost : -- nosy: +collinwinter ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue23556] Scope for raise without argument is different in Python 2 and 3

2015-03-01 Thread SilentGhost
SilentGhost added the comment: There is this bit in https://docs.python.org/3/library/exceptions.html : > When raising a new exception (rather than using a bare raise to re-raise the > exception currently being handled),... I presume this can be also suitable for tutorial if it's not already

[issue23557] Misc/SpecialBuilds.txt contains outdated information about PYMALLOC_DEBUG

2015-03-01 Thread Jakub Klama
New submission from Jakub Klama: Section describing block layout under PYMALLOC_DEBUG is wrong - it doesn't contain information about API type byte instead of one of forbidden bytes. That may lead to wrong assumption that one of forbidden bytes is being overwritten until you dig into obmalloc.

[issue23553] Reduce the number of comparison for range checking.

2015-03-01 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue23556] Scope for raise without argument is different in Python 2 and 3

2015-03-01 Thread Antoine Amarilli
New submission from Antoine Amarilli: Hello, Python 2.7.8 and Python 3.4.2 (from Debian testing) have a different behavior on the attached file. Python 2 raises "bar", Python 3 raises "foo". I can't find an adequate explanation in the documentation for this behavior difference. It probably re

[issue20204] pydocs fails for some C implemented classes

2015-03-01 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue21619] Cleaning up a subprocess with a broken pipe

2015-03-01 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue23555] behavioural change in argparse set_defaults in python 2.7.9

2015-03-01 Thread SilentGhost
Changes by SilentGhost : -- nosy: +bethard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue23555] behavioural change in argparse set_defaults in python 2.7.9

2015-03-01 Thread Matthias Klose
New submission from Matthias Klose: seen with ceph, https://launchpad.net/bugs/1413321 This appears to be a regression in the argparse package in python; under trusty ceph-disk works just fine, however in vivid, the cluster attribute remains unset (despite having a default of 'ceph'). Attached

[issue20128] Re-enable test_modules_search_builtin() in test_pydoc

2015-03-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As said koobs, the full log was attached to issue20123. -- ___ Python tracker ___ ___ Python-bugs-

[issue22364] Improve some re error messages using regex for hints

2015-03-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could anyone please make a review? This patch is a prerequisite of other patches. -- ___ Python tracker ___ _

[issue20128] Re-enable test_modules_search_builtin() in test_pydoc

2015-03-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't know what errors was on FreeBSD (logs are no longer available), but these tests modify sys.path and the list of weakrefs to logging handlers. They also require relative long time to run. -- ___ Python trac

[issue21619] Cleaning up a subprocess with a broken pipe

2015-03-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was added in issue10963. I don't know if this way is applicable to this issue. -- nosy: +dmalcolm, pitrou, rosslagerwall resolution: fixed -> stage: resolved -> ___ Python tracker

[issue10963] "subprocess" can raise OSError (EPIPE) when communicating with short-lived processes

2015-03-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: self.stdout.close() also can fail with EPIPE or EINVAL if the stream is buffered (text streams are buffered). I.e. communicate() in text mode can loss the data. See also issue21619. -- nosy: +serhiy.storchaka ___

[issue21619] Cleaning up a subprocess with a broken pipe

2015-03-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Why not ignoring BrokenPipeError like communicate()? Why communicate() ignores BrokenPipeError? -- ___ Python tracker ___ _

[issue21619] Cleaning up a subprocess with a broken pipe

2015-03-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The test still sporadically fails on Windows: http://buildbot.python.org/all/builders/x86%20Windows7%203.x/builds/9323/steps/test/logs/stdio == FAIL: test_broken_pipe_cleanup (test.test_subpro

[issue23553] Reduce the number of comparison for range checking.

2015-03-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: My point is that if the benefit is too small (say < 5% in microbenchmarks), it is not worth code churning. Actually my bar for microbenchmarks is higher, about 20%. -- ___ Python tracker

  1   2   >