[issue15439] Include Misc/ACKS names into the documentation

2012-07-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: I don't know how Doc ACKS is maintained, but I think the devguide is fine as it stands, whether or not Doc ACKS is preserved or not. People should put themselves into Misc/ACKS if they made a contribution, period. If people need to be acknowledged separately

[issue15444] Incorrectly writen contributor's names

2012-07-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: Is there a reason not to correct that spelling in this issue? Otherwise, we could create a new issue. -- ___ Python tracker ___ _

[issue15444] Incorrectly writen contributor's names

2012-07-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > It seems to be the latter: Žiga Seilnacht Then Misc/ACKS should be corrected too. -- ___ Python tracker ___ __

[issue15439] Include Misc/ACKS names into the documentation

2012-07-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: Okay, thanks for clarifying. Then I have no strong opinion. However, if Doc/ACKS.txt is retained, then I think the Dev Guide should mention Doc/ACKS.txt just as it mentions Misc/ACKS: http://docs.python.org/devguide/patch.html#preparation And it should incl

[issue15402] Correct __sizeof__ support for struct

2012-07-24 Thread Meador Inge
Meador Inge added the comment: I agree with Martin on having tests for the exact values and the s_len + 1 point. I will fix both issues. -- assignee: -> meador.inge nosy: -python-dev stage: patch review -> needs patch ___ Python tracker

[issue15436] __sizeof__ is not documented

2012-07-24 Thread Eric Snow
Eric Snow added the comment: issue2898 smells like an implementation detail to me. Also, sys.getsizeof() isn't necessarily authoritative here, since the sys module is full of all sorts of implementation details. I'm not saying __sizeof__ shouldn't be made an official part of the language, bu

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2012-07-24 Thread Peter Donis
Peter Donis added the comment: Updated patch to ensure that tests pass when the -v flag is set running the test suite. This is done by having the helper script, doctest_testfile.py, call doctest.testfile with verbose=False to ensure there is no output if the test passes (which is what the mas

[issue2122] mmap.flush does not check for errors on windows

2012-07-24 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto : -- nosy: +ishimoto ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue11549] Build-out an AST optimizer, moving some functionality out of the peephole optimizer

2012-07-24 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2012-07-24 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: This patch looks good to me. I generated a patch for current trunk, with some cosmetic changes. -- nosy: +ishimoto Added file: http://bugs.python.org/file26507/issue15207.patch ___ Python tracker

[issue15441] test_posixpath fails on Japanese edition of Windows

2012-07-24 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: I'm sorry, I generated a patch in wrong direction. -- Added file: http://bugs.python.org/file26506/issue15441.patch ___ Python tracker ___

[issue15269] Document dircmp.left and dircmp.right

2012-07-24 Thread Eli Bendersky
Eli Bendersky added the comment: Makes sense. I agree that publicly exposing the left/right attributes makes sense. But let's do it properly: 1. Add an example to the documentation 2. Add some tests to Lib/test/test_filecmp.py that verify these attributes behave as expected In addition, I th

[issue15441] test_posixpath fails on Japanese edition of Windows

2012-07-24 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto : Removed file: http://bugs.python.org/file26502/test_nonascii_abspath_2.patch ___ Python tracker ___ ___ Python-bug

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2012-07-24 Thread Peter Donis
Peter Donis added the comment: I recently noticed that there has been a minor code change in the _load_testfile function in doctest, so I generated a new patch against the latest pull from Mercurial (cpython). No actual changes to the issue fix, but this patch should apply cleanly against a c

[issue15439] Include Misc/ACKS names into the documentation

2012-07-24 Thread Meador Inge
Meador Inge added the comment: What I meant by that was that Serhiy contributed a code change and was already in Misc/ACKS, therefore no ACKS file should have been updated. I didn't mean to imply that someone can't be in both files. My impression is that Misc/ACKS is for code contributions

[issue15445] Ability to do code injection via logging module configuration listener port.

2012-07-24 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue15445] Ability to do code injection via logging module configuration listener port.

2012-07-24 Thread Christian Heimes
Christian Heimes added the comment: ast.literal_eval() is a good choice for limited evaluation of Python string as it only supports data types like numbers, str, dict etc. but no classes or function calls. -- nosy: +christian.heimes ___ Python trac

[issue15445] Ability to do code injection via logging module configuration listener port.

2012-07-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 2.7, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15443] datetime module has no support for nanoseconds

2012-07-24 Thread Vincenzo Ampolo
Vincenzo Ampolo added the comment: On 07/24/2012 04:20 PM, R. David Murray wrote: > R. David Murray added the comment: > > Are the nanosecond timestamps timestamps or strings? If they are timestamps > it's not immediately obvious why you want to convert them to datetime > objects, so motiva

[issue15445] Ability to do code injection via logging module configuration listener port.

2012-07-24 Thread R. David Murray
Changes by R. David Murray : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue15439] Include Misc/ACKS names into the documentation

2012-07-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: Is that a -0 then, Raymond? I think either the combined Misc/ACKS list should be included in the docs, or it should be removed entirely. If what Meador said is true (that people already in Misc/ACKS who contribute documentation should not be added)-- > Doc/

[issue15445] Ability to do code injection via logging module configuration listener port.

2012-07-24 Thread Graham Dumpleton
New submission from Graham Dumpleton : This issue was raised first on secur...@python.org. Guido responded that not sensitive enough to be kept to the list and that okay to log a bug report. This issue may not warrant any action except perhaps an update to documentation for the logging module t

[issue15444] Incorrectly writen contributor's names

2012-07-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: It seems to be the latter: Žiga Seilnacht http://mail.python.org/pipermail/python-dev/2007-March/071786.html -- nosy: +cjerdonek ___ Python tracker __

[issue15439] Include Misc/ACKS names into the documentation

2012-07-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: I agree with Martin and don't think the ACKS list should be exposed further than it already is. -- nosy: +rhettinger ___ Python tracker ___

[issue15443] datetime module has no support for nanoseconds

2012-07-24 Thread R. David Murray
R. David Murray added the comment: Even if accepted this can't get fixed in 2.7, so removing that from versions. -- versions: -Python 2.7 ___ Python tracker ___ ___

[issue15269] Document dircmp.left and dircmp.right

2012-07-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks for taking the time to look at this, Eli. In response to your question, here is one illustrated rationale. When recursing through a directory using dircmp, it is simplest and cleanest to be able to recurse on the subdirs attribute without having to pas

[issue15443] datetime module has no support for nanoseconds

2012-07-24 Thread R. David Murray
R. David Murray added the comment: Are the nanosecond timestamps timestamps or strings? If they are timestamps it's not immediately obvious why you want to convert them to datetime objects, so motivating that would probably help. On the other hand the fact that you have an application that

[issue15438] Incredible issue in math.pow

2012-07-24 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- components: +Documentation -Library (Lib) resolution: -> invalid ___ Python tracker ___ ___ Python-

[issue15438] Incredible issue in math.pow

2012-07-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: The math module is primarily about exposing the C floating point library functions. Any integer arguments are converted to double. We could add more docs but that usually doesn't help someone who already has an expectation that math.pow does the same thin

[issue15443] datetime module has no support for nanoseconds

2012-07-24 Thread Vincenzo Ampolo
Changes by Vincenzo Ampolo : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue15443] datetime module has no support for nanoseconds

2012-07-24 Thread Vincenzo Ampolo
Vincenzo Ampolo added the comment: This is a real use case I'm working with that needs nanosecond precision and lead me in submitting this request: most OSes let users capture network packets (using tools like tcpdump or wireshark) and store them using file formats like pcap or pcap-ng. These f

[issue15443] datetime module has no support for nanoseconds

2012-07-24 Thread R. David Murray
R. David Murray added the comment: I believe Marc-Andre was looking for an actual real-world use case rather than a hypothetical one. We discussed this briefly on the irc channel and we think Guido vetoed it on a YAGNI basis (we haven't checked the archives though...) so a real world use cas

[issue15413] os.times() disappeared under Windows

2012-07-24 Thread Larry Hastings
Larry Hastings added the comment: Sorry, I've been on the road a lot. Thanks, Antoine! -- ___ Python tracker ___ ___ Python-bugs-lis

[issue15443] datetime module has no support for nanoseconds

2012-07-24 Thread Vincenzo Ampolo
Vincenzo Ampolo added the comment: On 07/24/2012 01:28 PM, Marc-Andre Lemburg wrote: > I would be interested in an actual use case for this. Alice has a dataset with nanosecond granularity. He wants to make a python library to let Bob access the dataset. Nowadays Alice has to implement her own

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2012-07-24 Thread Richard Oudkerk
Richard Oudkerk added the comment: ISTM the simplest approach would be to just set self->args in BaseException.__new__() (like in Georg's patch) but to ignore the possibility that the user might later set self.args to something stupid "wrong": diff -r 51ac5f06dd04 Objects/exceptions.c --- a/O

[issue15443] datetime module has no support for nanoseconds

2012-07-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Vincenzo Ampolo wrote: > > As long as computers evolve time management becomes more precise and more > granular. > Unfortunately the standard datetime module is not able to deal with > nanoseconds even if OSes are able to. For example if i do: > > print

[issue15444] Incorrectly writen contributor's names

2012-07-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> patch review versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python

[issue15444] Incorrectly writen contributor's names

2012-07-24 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Some contributor's names written incorrectly (in ASCII) in documentation: Jesús Cea Avión as Jesús Cea Avion Lars Gustäbel as Lars Gustaebel Gerhard Häring as Gerhard Haering Marc-André Lemburg as Marc-Andre Lemburg Martin von Löwis as Martin von Loewis Cha

[issue15443] datetime module has no support for nanoseconds

2012-07-24 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue15439] Include Misc/ACKS names into the documentation

2012-07-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: I think Guido's wording should be included literally in the online version. It very much explains what this list really is and how to interpret it. The post scriptum should be converted into a ReST comment, since it is primarily a note to maintainers. -

[issue15437] Merge Doc/ACKS.txt names into Misc/ACKS

2012-07-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: Yes, I did. Even though it is throw-away. By the way, I'm taking Antoine's advice to avoid perfectionism on this. Otherwise I'd include your suggestion re: the special characters. :) -- ___ Python tracker

[issue15443] datetime module has no support for nanoseconds

2012-07-24 Thread Vincenzo Ampolo
Changes by Vincenzo Ampolo : -- components: +Library (Lib) -ctypes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue15443] datetime module has no support for nanoseconds

2012-07-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +belopolsky, haypo, lemburg versions: +Python 3.4 -Python 2.7 ___ Python tracker ___ ___ Python-b

[issue15443] datetime module has no support for nanoseconds

2012-07-24 Thread Vincenzo Ampolo
New submission from Vincenzo Ampolo : As long as computers evolve time management becomes more precise and more granular. Unfortunately the standard datetime module is not able to deal with nanoseconds even if OSes are able to. For example if i do: print "%.9f" % time.time() 1343158163.4712090

[issue15439] Include Misc/ACKS names into the documentation

2012-07-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: The second sense of the word "include" is in the possible implementation. Éric pointed out in the other issue's thread that this can be achieved by modifying the existing include directive, for example-- --- a/Doc/about.rst +++ b/Doc/about.rst @@ -30,7 +30,7

[issue15439] Include Misc/ACKS names into the documentation

2012-07-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: I see; I'm changing my vote to -0 then. I don't think this list of names should have been included in the documentation in the first place. Since it is, providing the full list of contributors is just as fine. --

[issue15413] os.times() disappeared under Windows

2012-07-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I fixed it. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue15413] os.times() disappeared under Windows

2012-07-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset d9a881b0d6ca by Antoine Pitrou in branch 'default': Issue #15413: os.times() had disappeared under Windows. http://hg.python.org/cpython/rev/d9a881b0d6ca -- nosy: +python-dev ___ Python tracker

[issue15439] Include Misc/ACKS names into the documentation

2012-07-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Ok, please rephrase: what do you mean by "inlude ... into ..."? http://docs.python.org/about.html#contributors-to-the-python-documentation -- nosy: +storchaka ___ Python tracker

[issue15437] Merge Doc/ACKS.txt names into Misc/ACKS

2012-07-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: Also, if you want to do phonetic translation of non-ASCII, then абгекнор really matches abgeknor, and ш is transliterated to "sh" in English (IIUC) (to "sch" in German). But I agree that this is best done manually. What matters is what the script produces;

[issue15439] Include Misc/ACKS names into the documentation

2012-07-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: Ok, please rephrase: what do you mean by "inlude ... into ..."? If the place of Misc/ACKS doesn't change, in what way is it being included into something? And which "documentation" is it being included into, if it doesn't change its location? -- __

[issue15232] email.generator.Generator doesn't mangle "From " lines in MIME preamble

2012-07-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0caff799e4bf by R David Murray in branch '3.2': #15232: make NEWS entry more accurate. http://hg.python.org/cpython/rev/0caff799e4bf New changeset d53524c43d0e by R David Murray in branch 'default': #15232: make NEWS entry more accurate. http://hg.

[issue15441] test_posixpath fails on Japanese edition of Windows

2012-07-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue12428] functools test coverage

2012-07-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le mardi 24 juillet 2012 à 06:00 +, Brian Thorne a écrit : > Isn't more compatibility between the Python and C implementations > desired? IMHO, not when compatibility regards obscure details such as whether setting an attribute is allowed or not. I don't kn

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-07-24 Thread Éric Araujo
Éric Araujo added the comment: It seems to me there are missing words in the text, and it needs porting to the packaging docs. Proposal: [...] being able to run the command above without warnings is not sufficient to be sure that PyPI will convert the content successfully. -- compone

[issue15285] test_timeout failure when system on IPv4 10.x.x.x subnet

2012-07-24 Thread Brian Brazil
Brian Brazil added the comment: There's already existing infrastructure not to run certain tests when there's no internet connection, no ipv6, no tk etc. -- ___ Python tracker _

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-07-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks a lot, Eli. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue15285] test_timeout failure when system on IPv4 10.x.x.x subnet

2012-07-24 Thread Nam Nguyen
Nam Nguyen added the comment: Using a remote server such as python.org is a good idea when you have internet connection. When you don't, though, how will the test run? -- nosy: +Nam.Nguyen ___ Python tracker

[issue15321] bdist_wininst installers may terminate with "close failed in file object destructor:\nsys.excepthook is missing\nlost sys.stderr"

2012-07-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset f315cfa22630 by Eli Bendersky in branch 'default': Issue #15321: update PyPI upload doc to say --no-raw passed to rst2html.py. Patch by Chris Jerdonek http://hg.python.org/cpython/rev/f315cfa22630 -- nosy: +python-dev

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-07-24 Thread Eli Bendersky
Eli Bendersky added the comment: Committed in f315cfa22630 -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue15321] bdist_wininst installers may terminate with "close failed in file object destructor:\nsys.excepthook is missing\nlost sys.stderr"

2012-07-24 Thread Eli Bendersky
Eli Bendersky added the comment: Sorry about the commit message. Ignore it, I got the issue number wrong :) -- nosy: +eli.bendersky ___ Python tracker ___ __

[issue15321] bdist_wininst installers may terminate with "close failed in file object destructor:\nsys.excepthook is missing\nlost sys.stderr"

2012-07-24 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: -eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue15436] __sizeof__ is not documented

2012-07-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > It is part of runtime services and is mentioned in the documentation for > 'sys.getsizeof' [1]: Yes, but it is not mentioned in the index. -- ___ Python tracker _

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-07-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: LGTM -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-07-24 Thread Eli Bendersky
Eli Bendersky added the comment: The patch looks reasonable to me. Martin/Éric - any objections to committing? -- nosy: +eli.bendersky ___ Python tracker ___ ___

[issue15442] Expand the list of default dirs filecmp.dircmp ignores

2012-07-24 Thread Eli Bendersky
New submission from Eli Bendersky : The default ignore list of filecmp.dircmp is ['RCS', 'CVS', 'tags']. This predates even Subversion! I suggest to freshen up this module to also ignore the dirs for SVN, Mercurial, Git and Bazaar. [this is a new feature, so no earlier than 3.4...] -

[issue15269] Document dircmp.left and dircmp.right

2012-07-24 Thread Eli Bendersky
Eli Bendersky added the comment: Yes, code samples would help clarifying the rationale for this request -- nosy: +eli.bendersky versions: +Python 3.4 -Python 3.3 ___ Python tracker

[issue14916] PyRun_InteractiveLoop fails to run interactively when using a Linux pty that's not tied to stdin/stdout

2012-07-24 Thread Kevin Barry
Kevin Barry added the comment: I've attached a simplified example program (working3.c) that demonstrates both the original problem and that the patch (Python-2.6.6-Run_Interactive-fix.patch) works. It eliminates the need for a pty, 'xterm', and redirection. Compile the attached program with

[issue15436] __sizeof__ is not documented

2012-07-24 Thread Meador Inge
Meador Inge added the comment: It is part of runtime services and is mentioned in the documentation for 'sys.getsizeof' [1]: """ getsizeof() calls the object’s __sizeof__ method and adds an additional garbage collector overhead if the object is managed by the garbage collector. """ [1] http:

[issue15441] test_posixpath fails on Japanese edition of Windows

2012-07-24 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto : Removed file: http://bugs.python.org/file26500/test_nonascii_abspath.patch ___ Python tracker ___ ___ Python-bugs-

[issue15441] test_posixpath fails on Japanese edition of Windows

2012-07-24 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: changed name of test method. In the old patch, new test method shadowed existing one. -- Added file: http://bugs.python.org/file26502/test_nonascii_abspath_2.patch ___ Python tracker

[issue14916] PyRun_InteractiveLoop fails to run interactively when using a Linux pty that's not tied to stdin/stdout

2012-07-24 Thread Kevin Barry
Kevin Barry added the comment: The patch from before needed a slight modification for when Python actually defaults to an interactive session on stdin. Since I rebuild this for my current distro (Slackware64 13.37,) I switched to the Python 2.6.6 source. This might not be the proper way to ha

[issue15441] test_posixpath fails on Japanese edition of Windows

2012-07-24 Thread Atsuo Ishimoto
New submission from Atsuo Ishimoto : test_posixpath.PosixCommonTest.test_nonascii_abspath fails on Japanese edition of Windows. If a file name was invalid byte character, os.chdir() raises UnicodeDecodeError() instead of WindowsError. This is a byte-api issue on Windows, so we may be able to s

[issue15440] multiprocess fails to re-raise exception which has mandatory arguments

2012-07-24 Thread Bala FA
New submission from Bala FA : I use multiprocess in one of my project. When an exception which requires mandatory argument is raised by a server process, is not re-raised properly to client process. I get an error something like below Traceback (most recent call last): File "prod.py", line 6

[issue6056] socket.setdefaulttimeout affecting multiprocessing Manager

2012-07-24 Thread Richard Oudkerk
Changes by Richard Oudkerk : -- nosy: +sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue11466] getpass.getpass doesn't close tty file

2012-07-24 Thread Anton Barkovsky
Changes by Anton Barkovsky : Added file: http://bugs.python.org/file26499/closewarning.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue11466] getpass.getpass doesn't close tty file

2012-07-24 Thread Anton Barkovsky
Changes by Anton Barkovsky : Removed file: http://bugs.python.org/file26498/closewarning.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue15437] Merge Doc/ACKS.txt names into Misc/ACKS

2012-07-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > To assist in this process, the script currently prints "possible > duplicates" to stdout after running. However, the script could easily > be modified to display an in-line indicator before possible duplicates > to make this manual step easier, e.g.: > > Jo

[issue11466] getpass.getpass doesn't close tty file

2012-07-24 Thread Anton Barkovsky
Anton Barkovsky added the comment: I think I've found the root cause. On my system (also tested in 3.2) /dev/tty is opened successfully, but wrapping it in io.BufferedRandom fails. By the time the exception is raised, FileIO object is already created, and then it immediately gets deleted. I'

[issue15437] Merge Doc/ACKS.txt names into Misc/ACKS

2012-07-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: That is correct, Antoine. Duplicates need to be removed by hand. To assist in this process, the script currently prints "possible duplicates" to stdout after running. However, the script could easily be modified to display an in-line indicator before possib

[issue15437] Merge Doc/ACKS.txt names into Misc/ACKS

2012-07-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: I did think through those issues and made a special effort to address them in the script. For starters, the script does not change the order of any names in Misc/ACKS. This is to preserve the existing rough alphabetical ordering, and to ensure that the diff

[issue15437] Merge Doc/ACKS.txt names into Misc/ACKS

2012-07-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, the script output looks good (apart from a few duplicates which can be resolved by hand, e.g. "Terry Reedy" vs. "Terry J. Reedy"). -- ___ Python tracker ___

[issue15438] Incredible issue in math.pow

2012-07-24 Thread R. David Murray
R. David Murray added the comment: Your problems didn't come from the "Python" math library, it came from the C math library that Python provides a wrapper for, which the documentation does clearly state. And the result you got is accurate...for a floating point calculation. -- ___

[issue6056] socket.setdefaulttimeout affecting multiprocessing Manager

2012-07-24 Thread Derek Wilson
Derek Wilson added the comment: Thanks, Jim, here is an updated patch. 1) I feel like it is clearly not-a-feature. Currently 2.7 crashes if remote managers are used and socket.setdefaulttimeout is anything other than None. Crashing seems bad and all this does is keep multiprocessing connecti

[issue15437] Merge Doc/ACKS.txt names into Misc/ACKS

2012-07-24 Thread R. David Murray
R. David Murray added the comment: I'm not clear if your script is trying to do this, but there is no way to automatically alphabetize the file. That's why it says "rough" alphabetic order. The issue is that different languages alphabetize different letters in different places. We try to r

[issue15438] Incredible issue in math.pow

2012-07-24 Thread andrea bergamini
andrea bergamini added the comment: Well, from a library I'm used to expect a good result or an exception. Not a value that differs from the correct of one unit! I agree with Antoine, the doc should warn about this behavior. I've lost a lot of time before discovering my application issue came

[issue15438] Incredible issue in math.pow

2012-07-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: That could help, but you easily miss the title when looking up the doc for a given function. And since log2() already has a seealso for the corresponding int method, pow() could grow one as well. (and in all honesty I don't know the difference between the "**

[issue15438] Incredible issue in math.pow

2012-07-24 Thread Stefan Krah
Stefan Krah added the comment: How about changing the title to something like: math -- 53-bit floating point arithmetic -- ___ Python tracker ___ __

[issue15438] Incredible issue in math.pow

2012-07-24 Thread Stefan Krah
Stefan Krah added the comment: "Title" referring to the section header of http://docs.python.org/dev/library/math.html ... -- ___ Python tracker ___ ___

[issue15438] Incredible issue in math.pow

2012-07-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, the math.pow() doc could use a "seealso" pointing to the built-in pow() function perhaps. -- nosy: +pitrou ___ Python tracker ___ __

[issue15438] Incredible issue in math.pow

2012-07-24 Thread Stefan Krah
Stefan Krah added the comment: I think Serhiy has already explained that 43**10 is too large to be represented exactly in 53-bit floating point arithmetic. The math module wraps the floating point functions from the C standard: "It provides access to the mathematical functions defined by the C

[issue15438] Incredible issue in math.pow

2012-07-24 Thread R. David Murray
R. David Murray added the comment: If I understand correctly, the math module is providing C standard (Annex F) *floating point* mathematical functions. Mark will have the definitive answer once he gets a chance to comment. Perhaps a documentation clarification is in order on this point. -

[issue15438] Incredible issue in math.pow

2012-07-24 Thread andrea bergamini
andrea bergamini added the comment: Ok, but math.pow IMPO has to be aligned to pow and built-in pow (**), otherwise this kind of "inaccuracies" can compromise the application behavior. I was using this funcion in a cryptographic mechanisms, and this issue resulted in a failure. Generally spe

[issue15439] Include Misc/ACKS names into the documentation

2012-07-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: Martin, just to be sure, this is to be done after issue 15437 (a dependency), and the location of Misc/ACKS will not change. Have you already read the discussion there? Éric said that he recalled it was Georg's preference to do this if Doc/ACKS.txt is remov

[issue15437] Merge Doc/ACKS.txt names into Misc/ACKS

2012-07-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: I created a new issue 15439 for including the combined Misc/ACKS into the documentation (as Éric mentioned) because the nature of that discussion is different, and because the changes will be easier to observe and understand if committed separately.

[issue15439] Include Misc/ACKS names into the documentation

2012-07-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: -1. Misc/ACKS is fine where it is. No need to include it into the docs. -- nosy: +loewis ___ Python tracker ___ __

[issue15439] Include Misc/ACKS names into the documentation

2012-07-24 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- dependencies: +Merge Doc/ACKS and Misc/ACKS ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue15439] Include Misc/ACKS names into the documentation

2012-07-24 Thread Chris Jerdonek
New submission from Chris Jerdonek : This issue is to include the names in Misc/ACKS into the documentation -- in place of the names from Doc/ACKS.txt. This was mentioned in the discussion for issue 15437, which is to add the names from Doc/ACKS.txt into Misc/ACKS. This issue should be done sho

[issue15438] Incredible issue in math.pow

2012-07-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: >>> (43**10).bit_length() 55 >>> sys.float_info.mant_dig 53 See http://docs.python.org/faq/design.html#why-are-floating-point-calculations-so-inaccurate -- nosy: +storchaka ___ Python tracker

[issue15438] Incredible issue in math.pow

2012-07-24 Thread Ezio Melotti
Ezio Melotti added the comment: This is what I get on both 2.7 and 3.3: >>> import math >>> math.pow(43, 10) 2.161148231328425e+16 >>> pow(43, 10) 21611482313284249 >>> 43**10 21611482313284249 >>> int(math.pow(43, 10)) 21611482313284248 -- nosy: +ezio.melotti, skrah __

  1   2   >