[issue18698] importlib.reload() does not return the module in sys.modules

2013-08-13 Thread Eric Snow
Eric Snow added the comment: Yep. In 2.7 and 3.2 the PyImport_ExecCodeModuleEx() function in Python/importlib.c returns the module found in sys.modules. Here is a patch. I suppose this should be fixed in 2.7 as well. Thoughts? -- keywords: +patch stage: -> patch review Added file:

[issue18314] Have os.unlink remove junction points

2013-08-13 Thread Kim Gräsman
Kim Gräsman added the comment: Victor, Junction points are like links between directories only. They've been around since the NTFS that came with Windows 2000, but integration with OS tools has been generally poor (e.g. Explorer wouldn't see the difference between a junction point and a regul

[issue18728] Increased test coverage for filecmp.py

2013-08-13 Thread Vajrasky Kok
Vajrasky Kok added the comment: Hi Alex. Typo in "#Speicify subdirectories to hide". I think you should not create WIN32 constant. Use this statement instead: @unittest.skipIf(sys.platform == "win32", "Not valid on Windows") I think you should use addCleanup if you want to remove the directo

[issue18606] Add statistics module to standard library

2013-08-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Revised patch with tests modified to pass, as described in pydev post. 1. test. added to test_statistics_approx import 2. delete test_main and change ending of both to if __name__ == '__main__': unittest.main() -- nosy: +terry.reedy Added file: http:

[issue18314] Have os.unlink remove junction points

2013-08-13 Thread Tim Peters
Tim Peters added the comment: Victor, Wikipedia has a readable explanation: http://en.wikipedia.org/wiki/NTFS_junction_point I haven't used them much. From cmd.exe, I've been able to delete them, not with "del" but with "rmdir". You can create one from cmd.exe with the "mklink" command. --

[issue18734] Berkeley DB versions 4.4-4.9 are not discovered by setup.py

2013-08-13 Thread Eddie Stanley
New submission from Eddie Stanley: Support for Berkeley DB up to 5.3 was introduced in Python 2.7.4 (see issue #17477) however I'm having problems with the detection code in setup.py. I'm working on RHEL4, I've got Berkeley DB 4.7.25 installed in /opt/db-4.7.25 When I try and "make" Python, it

[issue18425] IDLE Unit test for IdleHistory.py

2013-08-13 Thread Terry J. Reedy
Changes by Terry J. Reedy : Added file: http://bugs.python.org/file31287/test_idlehistory3.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue18425] IDLE Unit test for IdleHistory.py

2013-08-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: IdleHistory.py is identical in 2.7 and 3.3. It is only imported in PyShell.py (within class PyShell, line 852 in 3.3). History is only initialized once, with the default output_sep. See #18732 for deleting the unneeded parameter and associated cruft. The push

[issue18583] Idle: enhance FormatParagraph

2013-08-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Note to myself. The current test suite has one test commented out because it worked with EditorWindow but not the mock. It is possible that it is a mark-gravity issue. (I ran into this with the mock for IdleHistory.). -- __

[issue18719] Remove false optimization for equality comparison of hashed strings

2013-08-13 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed title: Remove false optimizaton for equality comparison of hashed strings -> Remove false optimization for equality comparison of hashed strings ___ Python tracker

[issue18719] Remove false optimizaton for equality comparison of hashed strings

2013-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset ac2f59a6637f by Raymond Hettinger in branch '2.7': Issue 18719: Remove a false optimization http://hg.python.org/cpython/rev/ac2f59a6637f -- ___ Python tracker ___

[issue18719] Remove false optimizaton for equality comparison of hashed strings

2013-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8f9bc9283400 by Raymond Hettinger in branch '3.3': Issue 18719: Remove a false optimization http://hg.python.org/cpython/rev/8f9bc9283400 -- nosy: +python-dev ___ Python tracker

[issue18606] Add statistics module to standard library

2013-08-13 Thread Steven D'Aprano
Steven D'Aprano added the comment: Attached is a patch containing the statistics reference implementation, after considering feedback given here and on python-ideas, and tests. -- keywords: +patch Added file: http://bugs.python.org/file31286/statistics.patch ___

[issue18314] Have os.unlink remove junction points

2013-08-13 Thread STINNER Victor
STINNER Victor added the comment: What is "an NTFS junction point"? Is it possible to delete it in cmd.exe with the del command? -- nosy: +haypo ___ Python tracker ___ _

[issue18408] Fixes crashes found by pyfailmalloc

2013-08-13 Thread STINNER Victor
STINNER Victor added the comment: TODO: - review and integrate frame_fasttolocals.patch - #18507: import_init() should not use Py_FatalError() but return an error - #18509: CJK decoders should return MBERR_EXCEPTION on PyUnicodeWriter error - fix tests hang when an exception occurs in a thread

[issue18408] Fixes crashes found by pyfailmalloc

2013-08-13 Thread STINNER Victor
STINNER Victor added the comment: """ http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.0%203.x/builds/98/steps/test/logs/stdio FAIL: test_finalize_runnning_thread (test.test_threading.ThreadTests) -- Traceback (most

[issue18501] _elementtree.c calls Python callbacks while a Python exception is set

2013-08-13 Thread STINNER Victor
STINNER Victor added the comment: > Instead of having to check if an exception is set in each Python > callback, it would be better to "stop" the XML parser. I created the issue #18733 to track this optimization. The initial issue is fixed, so I'm closing it. -- resolution: -> fixed s

[issue18733] elementtree: stop the parser more quickly on error

2013-08-13 Thread STINNER Victor
New submission from STINNER Victor: When a Python handler of a XML tag fails, the ElementTree parser continues to parse the whole document. It would be nice to stop the parser more quickly. The pyexpat module unregisters all handlers to fail more quickly. ElementTree may do something similar.

[issue18425] IDLE Unit test for IdleHistory.py

2013-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0bb9346665e9 by Terry Jan Reedy in branch '3.3': Issue #18425: Add docstrings to IdleHistory.py. Remove redundant 'history_' http://hg.python.org/cpython/rev/0bb9346665e9 New changeset 22d7c755163d by Terry Jan Reedy in branch '2.7': Issue #18425:

[issue15581] curses: segfault in addstr()

2013-08-13 Thread STINNER Victor
STINNER Victor added the comment: "Seems the bug was fixed for 3.3 in issue12567." "Sorry, but without a smaller example program, I cannot help you on this issue. Please try to write a smaller program to reproduce the crash." Let say that the bug was fixed. -- resolution: -> fixed st

[issue14131] test_threading failure on WIndows 7 3.x buildbot

2013-08-13 Thread STINNER Victor
STINNER Victor added the comment: This failure was not seen recently, let's close this issue. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue18405] crypt.mksalt() result has unnecessarily low entropy

2013-08-13 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed versions: -Python 2.7, Python 3.2 ___ Python tracker ___

[issue18405] crypt.mksalt() result has unnecessarily low entropy

2013-08-13 Thread STINNER Victor
STINNER Victor added the comment: With my change, any character can appear more than once. Example: >>> crypt.mksalt() '$6$idm7/asaywTgRf9V' >>> sorted(_[3:]) ['/', '7', '9', 'R', 'T', 'V', 'a', 'a', 'd', 'f', 'g', 'i', 'm', 's', 'w', 'y'] In this case, the 'a' letter occurs twice. --

[issue18405] crypt.mksalt() result has unnecessarily low entropy

2013-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset e8a314fe248b by Victor Stinner in branch '3.3': Issue #18405: Improve the entropy of crypt.mksalt(). http://hg.python.org/cpython/rev/e8a314fe248b New changeset 122e074c56f7 by Victor Stinner in branch 'default': (Merge 3.3) Issue #18405: Improve th

[issue12015] possible characters in temporary file name is too few

2013-08-13 Thread STINNER Victor
STINNER Victor added the comment: With 8 lowercase characters, the entropy is 41.7 bits, whereas it is only 35.9 bits for 6 characters with uppercase and lowercase letters. >>> math.log(26+26+10+1, 2) * 6 # (a-zA-Z0-9_) x 6 35.8636795409995 >>> math.log(26+10+1, 2) * 6 # (a-z0-9_) x 6 31.256720

[issue12015] possible characters in temporary file name is too few

2013-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset de5077aca668 by Victor Stinner in branch 'default': Close #12015: The tempfile module now uses a suffix of 8 random characters http://hg.python.org/cpython/rev/de5077aca668 -- nosy: +python-dev resolution: -> fixed stage: patch review -> co

[issue18296] test_os.test_trailers() is failing on AMD64 FreeBSD 9.0 dtrace 3.x

2013-08-13 Thread STINNER Victor
STINNER Victor added the comment: @koobs: The problem is in the Python test, not in FreeBSD. Can you upgrade the kernel to the last development version? Attached patch should fix the test. -- keywords: +patch Added file: http://bugs.python.org/file31285/sendfile_trailers.patch ___

[issue18609] test_ctypes failure on AIX in PyEval_CallObjectWithKeywords

2013-08-13 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue18685] Restore re performance to pre-PEP393 level

2013-08-13 Thread STINNER Victor
STINNER Victor added the comment: Using #include "_sre.c" in _sre.c looks weird. Instead of huge sections delimited by "#ifdef SRE_RECURSIVE", I would prefer something similar to the stringlib. ".h" template files included more than once. I also expect shorter files: _sre.c is close to 4000 li

[issue18544] subprocess.Popen support for redirection of arbitrary file descriptors

2013-08-13 Thread STINNER Victor
STINNER Victor added the comment: Why not using the pass_fds parameter for your use case? -- nosy: +haypo ___ Python tracker ___ ___ P

[issue15798] subprocess.Popen() fails if 0, 1 or 2 descriptor is closed

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

[issue1227748] subprocess: inheritance of std descriptors inconsistent

2013-08-13 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue12939] Add new io.FileIO using the native Windows API

2013-08-13 Thread Piotr Dobrogost
Changes by Piotr Dobrogost : -- nosy: +piotr.dobrogost ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue18732] IdleHistory.History: eliminate unused parameter; other cleanup.

2013-08-13 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- dependencies: +IDLE Unit test for IdleHistory.py ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue18732] IdleHistory.History: eliminate unused parameter; other cleanup.

2013-08-13 Thread Terry J. Reedy
New submission from Terry J. Reedy: idlelib.IdleHistory is only imported in PyShell.PyShell. History is only instantiated once, with output_sep defaulting to \n. This constant parameter and the consequence splitting and joining with \n in ._get_source and ._put_source are useless. After the te

[issue15787] PEP 3121, 384 Refactoring

2013-08-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I strongly believe that it is worthwhile to invest in fixing abitype.py. It is much easier to review a patch to one python script than to review 50+ patches to C files. There is no excuse for this tool not to work on all stdlib modules. If there are a

[issue18731] Increased test coverage for uu and telnet

2013-08-13 Thread Alex Volkov
Changes by Alex Volkov : -- components: Tests files: telnet_uu_tests.patch keywords: patch nosy: Alex.Volkov priority: normal severity: normal status: open title: Increased test coverage for uu and telnet type: enhancement versions: Python 3.4 Added file: http://bugs.python.org/file31284

[issue18718] datetime documentation contradictory on leap second support

2013-08-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: +1 :-) -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue18730] suffix parameter in NamedTemporaryFile silently fails when not prepending with a period

2013-08-13 Thread Dan Loewenherz
New submission from Dan Loewenherz: Basically, when creating a NamedTemporaryFile, passing a value to the "suffix" parameter has no effect unless it's prepended with a period. IMO, there are three options here... 1. Add a note in the documentation that this parameter only accepts period-prepe

[issue18090] dict_contains first argument declared register, and shouldn't be

2013-08-13 Thread Larry Hastings
Larry Hastings added the comment: Closed as this is a subset of #18722. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker __

[issue18583] Idle: enhance FormatParagraph

2013-08-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Based on working with the #18226 patch, I now think that rewrapping partial lines is a bug. Although I removed some problematical tests, I think there is still one that verifies buggy behavior. The outline of steps (which necessarily omits some details) would

[issue18729] In unittest.TestLoader.discover doc select the name of load_tests function

2013-08-13 Thread py.user
New submission from py.user: http://docs.python.org/3/library/unittest.html#unittest.TestLoader.discover "If load_tests exists then discovery does not recurse into the package" -- assignee: docs@python components: Documentation files: issue.diff keywords: patch messages: 195092 nosy: doc

[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2013-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > That fix does work, but it should probably get a NEWS entry since it > fixes a regression from 2.7.3 to 2.7.5. Done, thank you? > Also, I think the same fix should be backported to all three of 2.6, > 3.1, and 3.2. Benjamin and Barry will have to decide what

[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2013-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 00bcf202cc3f by Antoine Pitrou in branch '2.7': Add NEWS entry for 0f17aed78168 (issue #16248) http://hg.python.org/cpython/rev/00bcf202cc3f -- ___ Python tracker

[issue18722] Remove uses of the register keyword

2013-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed. I don't think clang or MSVC would bother more than gcc does. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue18722] Remove uses of the register keyword

2013-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset e7f6cef7a4cc by Antoine Pitrou in branch 'default': Issue #18722: Remove uses of the "register" keyword in C code. http://hg.python.org/cpython/rev/e7f6cef7a4cc -- nosy: +python-dev ___ Python tracker

[issue8713] multiprocessing needs option to eschew fork() under Linux

2013-08-13 Thread Richard Oudkerk
Richard Oudkerk added the comment: I have added documentation now so I think it is ready to merge (except for a change to Makefile). -- ___ Python tracker ___ ___

[issue8713] multiprocessing needs option to eschew fork() under Linux

2013-08-13 Thread Richard Oudkerk
Changes by Richard Oudkerk : Added file: http://bugs.python.org/file31282/4fc7c72b1c5d.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18722] Remove uses of the register keyword

2013-08-13 Thread STINNER Victor
STINNER Victor added the comment: Is PCC used by any Linux or BSD distro? BSD prefers Clang. -- ___ Python tracker ___ ___ Python-bugs

[issue18728] Increased test coverage for filecmp.py

2013-08-13 Thread Alex Volkov
Changes by Alex Volkov : -- title: Increased test coverage for test_filecmp -> Increased test coverage for filecmp.py ___ Python tracker ___

[issue18715] Tests fail when run with coverage

2013-08-13 Thread Seydou Dia
Seydou Dia added the comment: The test results have been uploaded. I forgot to mention in my previous comment the version of Coverage.py used: changeset: 1463:2c5fb3a8b81c tag: tip user:Ned Batchelder date:Sun Jun 09 19:10:28 2013 -0400 summary: Branch coverage im

[issue18728] Increased test coverage for test_filecmp

2013-08-13 Thread Alex Volkov
New submission from Alex Volkov: I increased test coverage from 68% to 74% of filecmp.py by adding test cases in test_filecmp.py in functions phase2 & phase4 in dircmp class. -- components: Tests files: test_filecmp.patch keywords: patch messages: 195085 nosy: Alex.Volkov priority: norm

[issue18722] Remove uses of the register keyword

2013-08-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 The era of "register" has passed. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs

[issue18727] test for writing dictionary rows to CSV

2013-08-13 Thread Muhammad Jehanzeb
Changes by Muhammad Jehanzeb : -- keywords: +patch Added file: http://bugs.python.org/file31279/issue18727.patch ___ Python tracker ___ __

[issue18727] test for writing dictionary rows to CSV

2013-08-13 Thread Muhammad Jehanzeb
New submission from Muhammad Jehanzeb: Test for writing dictionary rows to further enhance the test coverage of CSV lib. -- components: Tests messages: 195083 nosy: brett.cannon, mjehanzeb priority: normal severity: normal status: open title: test for writing dictionary rows to CSV type

[issue18579] Dereference after NULL check in listobject.c merge_hi()

2013-08-13 Thread Christian Heimes
Christian Heimes added the comment: Thanks! Your analysis is plausible. I have closed the issue as "false positive". -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue18723] shorten function of textwrap module is susceptible to non-normalized whitespaces

2013-08-13 Thread Vajrasky Kok
Vajrasky Kok added the comment: Okay, attached the fifth version not to care about the case where text is smaller than the placeholder. -- Added file: http://bugs.python.org/file31278/fix_for_non_normalized_whitespaces_in_placeholder_v5.patch ___ Py

[issue18723] shorten function of textwrap module is susceptible to non-normalized whitespaces

2013-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I missed this case: > > >>> from textwrap import shorten > >>> shorten('hell', 4) > Traceback (most recent call last): > File "", line 1, in > File > "/home/sky/Code/python/programming_language/cpython/Lib/textwrap.py", > line 386, in shorten > re

[issue18726] json functions have too many positional parameters

2013-08-13 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue18723] shorten function of textwrap module is susceptible to non-normalized whitespaces

2013-08-13 Thread Vajrasky Kok
Vajrasky Kok added the comment: I missed this case: >>> from textwrap import shorten >>> shorten('hell', 4) Traceback (most recent call last): File "", line 1, in File "/home/sky/Code/python/programming_language/cpython/Lib/textwrap.py", line 386, in shorten return w.shorten(text, plac

[issue18703] To change the doc of html/faq/gui.html

2013-08-13 Thread Éric Araujo
Éric Araujo added the comment: Also, the GPLs allows commercial usage, so using “LGPL” and “commercial” to mean two different licensing cases is not quite right. -- ___ Python tracker _

[issue18707] the readme should also talk about how to build doc.

2013-08-13 Thread Éric Araujo
Éric Araujo added the comment: Either one looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14012] Misc tarfile fixes

2013-08-13 Thread Éric Araujo
Éric Araujo added the comment: Thanks, LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue6875] add os.close() suggestion to mkstemp documentation

2013-08-13 Thread Gabi Davar
Changes by Gabi Davar : -- nosy: +Gabi.Davar ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2013-08-13 Thread Gabi Davar
Changes by Gabi Davar : -- nosy: +Gabi.Davar ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue18725] Multiline shortening

2013-08-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: fill(...) is just '\n'.join(wrap(...)). Directly use wrap() if you need nonstandard newlines. -- ___ Python tracker ___ _

[issue18394] cgi.FieldStorage triggers ResourceWarning sometimes

2013-08-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue18725] Multiline shortening

2013-08-13 Thread Vajrasky Kok
Vajrasky Kok added the comment: What about newline keyword argument? Are we forcing the newline to be '\n'? Alternate newlines will be useful for Windows platform ('\r\n') and HTML platform (''). -- ___ Python tracker

[issue18723] shorten function of textwrap module is susceptible to non-normalized whitespaces

2013-08-13 Thread Vajrasky Kok
Changes by Vajrasky Kok : Added file: http://bugs.python.org/file31276/fix_for_non_normalized_whitespaces_in_placeholder_v3.patch ___ Python tracker ___

[issue18723] shorten function of textwrap module is susceptible to non-normalized whitespaces

2013-08-13 Thread Vajrasky Kok
Changes by Vajrasky Kok : Removed file: http://bugs.python.org/file31275/fix_for_non_normalized_whitespaces_in_placeholder_v3.patch ___ Python tracker ___ __

[issue18723] shorten function of textwrap module is susceptible to non-normalized whitespaces

2013-08-13 Thread Vajrasky Kok
Vajrasky Kok added the comment: Attached more refined patch. Removed unnecessary test. Added more robust test. Added shorten in __all__. -- Added file: http://bugs.python.org/file31275/fix_for_non_normalized_whitespaces_in_placeholder_v3.patch ___ P

[issue18726] json functions have too many positional parameters

2013-08-13 Thread R. David Murray
R. David Murray added the comment: Ach. I didn't read carefully enough (not awake yet, I guess). Yes, boolean parameters are one of the things keyword only arguments are appropriate for. -- ___ Python tracker __

[issue18726] json functions have too many positional parameters

2013-08-13 Thread Ezio Melotti
Ezio Melotti added the comment: Serhiy has a point though, I wouldn't want to see something like json.dumps(someobj, True, False, True, False). -- ___ Python tracker ___ ___

[issue18726] json functions have too many positional parameters

2013-08-13 Thread R. David Murray
R. David Murray added the comment: This is not what we use keyword only arguments for. The standard practice in the stdlib is that arguments are arguments unless there is a good reason to make one keyword only. So I'm -1 on this proposal. -- nosy: +r.david.murray ___

[issue18709] SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

2013-08-13 Thread Christian Heimes
Christian Heimes added the comment: Python 3.1 is affected, too. 3.1 will recieve security fixes until June 2014. -- versions: +Python 3.1 ___ Python tracker ___

[issue18709] SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

2013-08-13 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue18722] Remove uses of the register keyword

2013-08-13 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue18726] json functions have too many positional parameters

2013-08-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The json module functions have too many positional parameters: dump() -- 11 dumps() -- 10 load() -- 9 loads() -- 8 In most time only small part of these options is specified so users call these functions with keyword arguments for all parameters except man

[issue18694] getxattr on Linux ZFS native filesystem happily returns partial values

2013-08-13 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue18723] shorten function of textwrap module is susceptible to non-normalized whitespaces

2013-08-13 Thread Vajrasky Kok
Vajrasky Kok added the comment: > Do you want to write a patch? My pleasure. Attached the second version of the patch to accomodate Pitrou's request. -- Added file: http://bugs.python.org/file31274/fix_for_non_normalized_whitespaces_in_placeholder_v2.patch

[issue18725] Multiline shortening

2013-08-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue18725] Multiline shortening

2013-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sounds like a reasonable enhancement to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue18725] Multiline shortening

2013-08-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Functions in the textwrap module works with multiline text except a newly added (in issue18585) the shorten() function. Wrapping and shortening a multiline text using existing textwrap function is not a trivial job. I propose to add two new parameters to t

[issue18712] Pure Python operator.index doesn't match the C version.

2013-08-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch. Now the code of operator.index() becomes even more complicated. Perhaps you want suggest other wording for documentation? Some code in stdlib (_pyio.py, bz2.py, connection.py) uses a.__index__() instead of type(a).__index__(a) (with replacin

[issue18687] Lib/test/leakers/test_ctypes.py still mentions the need to update Misc/build.sh

2013-08-13 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> enhancement versions: +Python 2.7, Python 3.3 ___

[issue18687] Lib/test/leakers/test_ctypes.py still mentions the need to update Misc/build.sh

2013-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 49edf4cbc453 by Ezio Melotti in branch '2.7': #18687: remove obsolete comment. Patch by Févry Thibault. http://hg.python.org/cpython/rev/49edf4cbc453 New changeset 49fa63610c7f by Ezio Melotti in branch '3.3': #18687: remove obsolete comment. Patc

[issue14019] Unify tests for str.format and string.Formatter

2013-08-13 Thread Ezio Melotti
Ezio Melotti added the comment: I left a review on rietveld. FWIW I think string_tests and related files should undergo a (major?) refactoring. I worked with them a few times and it's a bit of a mess with all those base classes and mixins. I also found some tests that weren't running becaus

[issue18723] shorten function of textwrap module is susceptible to non-normalized whitespaces

2013-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Isn't that weird? Agreed, this one is a bug. The stripping in shorten() should be smarter, i.e. it should not affect the placeholder's own spaces. Do you want to write a patch? -- ___ Python tracker

[issue18723] shorten function of textwrap module is susceptible to non-normalized whitespaces

2013-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Correcting myself: > i.e. it should not affect the placeholder's own spaces. ... except for leading whitespace in case the placeholder ends up alone in the result. i.e. shorten("somethingtoolong") should return "(...)", not " (...)". -- _

[issue18723] shorten function of textwrap module is susceptible to non-normalized whitespaces

2013-08-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue17997] ssl.match_hostname(): sub string wildcard should not match IDNA prefix

2013-08-13 Thread Christian Heimes
Christian Heimes added the comment: Affected versions: - Python 3.2 (< 3.2.5) - Python 3.3 (< 3.3.3) - Python 3.4a1 - requests < 1.2.3 https://pypi.python.org/pypi/requests - backports.ssl_match_hostname (<3.2a3) https://pypi.python.org/pypi/backports.ssl_match_hostname/ - urllib3 < 1.6 https://

[issue15849] PEP 3121, 384 Refactoring applied to xx module

2013-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > In the example Martin gave in his PEP 3121, the PyInit does not perform any > INCREFs on > the Variables that are referenced from inside the module state. > He therefore left out m_free completely as there was nothing to DECREF within > the module > state. >

[issue18709] SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

2013-08-13 Thread Christian Heimes
Christian Heimes added the comment: Thanks! The title now references the new CVE #. -- title: SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4073) -> SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238) __

[issue15849] PEP 3121, 384 Refactoring applied to xx module

2013-08-13 Thread Robin Schreiber
Robin Schreiber added the comment: Updated the patch, corrected multiple syntax errors and missing INCREFS. Also added the comments that include the members names. I am yet undecided regarding the NULL-check for FindModule. Apart from that I have tried to build some tests that prove that loadi

[issue18722] Remove uses of the register keyword

2013-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Serhiy Storchaka added the comment: > > > have exactly the same size > > Binaries contain paddings. I used the "size" command, which gives you the exact size of the various sections (rather than the physical file size). --

[issue18722] Remove uses of the register keyword

2013-08-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > have exactly the same size Binaries contain paddings. > although their md5 hashes differ Timestamps. I'm interesting if someone builds CPython with more simple compilers (i.e. PCC [1]). [1] http://en.wikipedia.org/wiki/Portable_C_Compiler -- no

[issue18724] Typo in docs.python.org: smtplib python2.7

2013-08-13 Thread Ned Deily
Ned Deily added the comment: Thanks for the report! -- nosy: +ned.deily resolution: -> fixed stage: -> committed/rejected status: open -> closed type: enhancement -> versions: +Python 3.3, Python 3.4 ___ Python tracker

[issue18724] Typo in docs.python.org: smtplib python2.7

2013-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset bd030e70cecb by Ned Deily in branch '2.7': Issue 18724: Fix typo noticed by Susan Tan. http://hg.python.org/cpython/rev/bd030e70cecb New changeset 76d71bc949b6 by Ned Deily in branch '3.3': Issue 18724: Fix typo noticed by Susan Tan. http://hg.pytho

[issue18722] Remove uses of the register keyword

2013-08-13 Thread Mark Dickinson
Mark Dickinson added the comment: +1 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue18724] Typo in docs.python.org: smtplib python2.7

2013-08-13 Thread Susan Tan
New submission from Susan Tan: http://docs.python.org/2.7/library/smtplib.html#smtplib.SMTPException "exception smtplib.SMTPException The base exception class for all the other excpetions provided by this module." The word "exceptions" is spelled incorrectly in the in "other excpetions".

  1   2   >