[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)
Mark Dickinson dicki...@gmail.com added the comment: The calculation of long_hash assumes an unsigned temporary type to get correct results for the bit shifting and masking. Yes, exactly. The calculation is done on the absolute value of the long and then the sign is applied. We either needed to (1) add an unsigned Py_hash_t type or (2) just use size_t and Py_ssize_t. I like (2); the use of Py_hash_t suggests to me that the type used for the hash is configurable independently of Py_ssize_t, which isn't true. Also, with Py_hash_t it's no longer clear that printing a hash value (e.g., using PyErr_Format and friends) should use the '%zd' modifier. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9778 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10139] regex A|B : both A and B match, but B is wrongly preferred
Georg Brandl ge...@python.org added the comment: I'm not sure this is valid. First, I think I have a much easier example: import re re.search('bc|abc', 'abc').group() 'abc' I assume you'd expect this to give 'bc' as well. However, for a string s, search looks for matches looking at s, then looking at s[1:], then s[2:], and so on. For s, it looks at both branches, and the second branch matches. This can be inferred from the docs of search: Scan through string looking for a location where the regular expression pattern produces a match;, for the first location a match is produced for the second branch. -- nosy: +georg.brandl resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10139 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10139] regex A|B : both A and B match, but B is wrongly preferred
Χρήστος Γεωργίου (Christos Georgiou) t...@users.sourceforge.net added the comment: As I see it, it's more like: re.search('a.*c|a.*|.*c', 'abc').group() producing 'bc' instead of 'abc'. Substitute (?=^A) for a and (?=Z$) for c in the pattern above. In your example, the first part ('bc') does not match the whole string ('abc'). In my example, the first part ('(?=^A).*(?=Z$)') matches the whole string ('A***Z'). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10139 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10139] regex A|B : both A and B match, but B is wrongly preferred
Χρήστος Γεωργίου (Christos Georgiou) t...@users.sourceforge.net added the comment: Georg, please re-open it. Focus on the difference between example regex_1|regex_2 (both matching; regex_1 is used as it should be), and regex_1|regex_3 (both matching; regex_3 is used incorrectly). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10139 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10139] regex A|B : both A and B match, but B is wrongly preferred
Χρήστος Γεωργίου (Christos Georgiou) t...@users.sourceforge.net added the comment: No, my mistake, you did well for closing it. The more explicit version of the explanation: both regex_1 and regex_2 start actually matching at index 1, while regex_3 starts matching at index 0. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10139 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10141] SocketCan support
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10141 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9974] tokenizer.untokenize not invariant with line continuations
Brian Bossé pen...@gmail.com added the comment: Yup, that's related to ENDMARKER being tokenized to its own line, even if EOF happens at the end of the last line of actual code. I don't know if anything relies on that behavior so I can't really suggest changing it. My patch handles the described situation, albeit a bit poorly as I mentioned in comment 2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9974 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10135] Format specifier 'n' not working
Changes by Eric Smith e...@trueblade.com: -- stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10135 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10027] os.lstat/os.stat don't set st_nlink on Windows
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I noticed stat() won't set S_IEXEC in stat() with my patch (py3k_posixpath_v1.patch). :-( -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10027 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10142] Support for SEEK_HOLE/SEEK_DATA
Jesús Cea Avión j...@jcea.es added the comment: Seems to be adopted too in *bsd: http://manpages.ubuntu.com/manpages/lucid/man2/lseek.2freebsd.html . The feature has patches available too for Linux, but never integrated in mainline kernel, AFAIK. Googling SEEK_HOLE is interesting. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10142 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10142] Support for SEEK_HOLE/SEEK_DATA
Antoine Pitrou pit...@free.fr added the comment: If it's just additional constants then I don't see the problem. We already have a lot of platform-specific constants. However, it would be a lot better if the io module were made to work properly with these constants, too. There are a lot of places where we hardcode tests such as `whence == SEEK_SET` or even `whence == 0`, and whence values above 2 aren't generally considered. So the patch is probably a bit less trivial than what you imagine :) -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10142 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10145] (4.2).is_integer() is undocumented.
New submission from Ralph Corderoy ralph-pythonb...@inputplus.co.uk: floats now have an is_integer() method. I think it was added in 2.6 around the same time as as_integer_ratio(). It has a docstring but it isn't mentioned in the documentation. I only idled across it when reading the C source. I'd expect to find it, for example, at http://docs.python.org/library/stdtypes.html?highlight=as_integer_ratio#additional-methods-on-float http://docs.python.org/py3k/library/stdtypes.html?highlight=as_integer_ratio#additional-methods-on-float Can it please be added, and for Py2, mention what version it appeared in. -- assignee: d...@python components: Documentation messages: 119133 nosy: d...@python, ralph.corderoy priority: normal severity: normal status: open title: (4.2).is_integer() is undocumented. versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10145 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10128] multiprocessing.Pool throws exception with __main__.py
Ask Solem a...@opera.com added the comment: Is this on Windows? Does it work for you now? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10128 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10134] test_email failures on Windows: end of line issue?
R. David Murray rdmur...@bitdance.com added the comment: Having looked more carefully at the email4 (python2) code, I think I'm wrong. The test I changed appears to codify the behavior expected when parsing a crlf file in binary mode. This means that email4 code being ported to email5 may depend on that behavior. So my initial statement was in fact correct: the email5 code as it stands is correct, it is the tests that are broken. Fixing the tests so that they run on Windows may be hard enough that I end up just skipping that particular test class on Windows. The difficulty arises from the fact that email uses '\n' when serializing headers, but the message bodies in binary mode will have the \r\n line endings if and only if the source used \r\n. Since the source files for those tests are text, they have different line endings depending on the platform, and so the output of re-serializing the messages is different. Which means, in essence, that on Windows those test failures are correct failures: binary parse/binary serialize are *not* inverses. This is also, then, true for a binary parse of an RFC valid input stream, since the RFCs require \r\n line separators. In Python2 this wasn't a problem because the file or data stream could be read as text using universal newline mode, thus obscuring the difference in the input line end discipline. In Python3 this is not possible. So, an alternative and perhaps better fix is to add a new feature to email5's BytesGenerator that allows the output line end character sequence to be specified. This would have the additional advantage of closing issue 1349106, and would make it easier to interface with an as-yet-nonexistent binary input interface in smtplib. -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10134 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10145] (4.2).is_integer() is undocumented.
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: d...@python - nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10145 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9807] deriving configuration information for different builds with the same prefix
Matthias Klose d...@debian.org added the comment: the python.pc installation name should be changed too, and a symlink added. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9807 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9807] deriving configuration information for different builds with the same prefix
Matthias Klose d...@debian.org added the comment: Lib/distutils/command/install.py () needs updates in INSTALL_SCHEMES/headers. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9807 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9929] subprocess.Popen unbuffered not work
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I implemented msg117279 with v2 patch. Can I commit it? # If your are already working on this issue, please ignore # my patch. -- Added file: http://bugs.python.org/file19280/py3k_fix_unbuffered_in_subprocess_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9929 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9929] subprocess.Popen unbuffered not work
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Umm, v2 patch broke test_subprocess. I'll repost v3 patch after removing bufsize=0 universal_newlines check. == ERROR: test_universal_newlines (__main__.ProcessTestCase) -- Traceback (most recent call last): File e:\python-dev\py3k\lib\test\test_subprocess.py, line 422, in test_unive rsal_newlines universal_newlines=1) File e:\python-dev\py3k\lib\subprocess.py, line 621, in __init__ raise ValueError(cannot use bufsize=0 with universal newlines) ValueError: cannot use bufsize=0 with universal newlines == ERROR: test_universal_newlines_communicate (__main__.ProcessTestCase) -- Traceback (most recent call last): File e:\python-dev\py3k\lib\test\test_subprocess.py, line 442, in test_unive rsal_newlines_communicate universal_newlines=1) File e:\python-dev\py3k\lib\subprocess.py, line 621, in __init__ raise ValueError(cannot use bufsize=0 with universal newlines) ValueError: cannot use bufsize=0 with universal newlines -- Added file: http://bugs.python.org/file19281/py3k_fix_unbuffered_in_subprocess_v3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9929 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3062] Turtle speed() function has no effect under Mac OS X
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I am attaching a simpler and hopefully more revealing test, speed_test.py. This test repeatedly draws a full circle at various speeds and prints the time spent. Here is the result: # python3.1 speed_test.py 0: 0.03 1: 6.61 2: 4.32 3: 3.78 4: 3.23 5: 3.21 6: 2.65 7: 2.72 8: 2.66 9: 2.86 10: 2.67 Note that time decreases as speed changes from 1 to 4 as expected, but then changes unpredictably as speed changes from 5 to 10. -- nosy: +belopolsky Added file: http://bugs.python.org/file19282/speed_test.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3062 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3062] Turtle speed() function has no effect under Mac OS X
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: +gregorlingl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3062 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10036] compiler warnings for various modules on Linux buildslaves
Dirkjan Ochtman dirk...@ochtman.nl added the comment: At least one of these also happens on Gentoo: Modules/_ctypes/libffi/src/dlmalloc.c:3193: warning: implicit declaration of function 'mremap' Modules/_ctypes/libffi/src/dlmalloc.c:3193: warning: cast to pointer from integer of different size Modules/_ctypes/libffi/src/dlmalloc.c:3612: warning: comparison between pointer and integer -- nosy: +djc title: compiler warnings for various modules on Ubuntu x86 - compiler warnings for various modules on Linux buildslaves ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10036 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10145] float.is_integer is undocumented
Changes by Éric Araujo mer...@netwok.org: -- stage: - needs patch title: (4.2).is_integer() is undocumented. - float.is_integer is undocumented versions: -Python 2.6, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10145 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10036] compiler warnings for various modules on Linux buildslaves
Dirkjan Ochtman dirk...@ochtman.nl added the comment: Current Ubuntu builds from the buildbot also only show the libffi warning: http://www.python.org/dev/buildbot/builders/x86%20Ubuntu%20Shared%203.x/builds/2326/steps/compile/logs/warnings I suspect we don't really fix libffi compile warnings because (a) libffi is just bundled from upstream in python, for ctypes, AFAICT, and (b) libffi maintenance seems to be intermittent at best. For example, it seems like we're not bundling any released version of libffi, but just some snapshot from the upstream repo. -- nosy: +theller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10036 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10145] float.is_integer is undocumented
R. David Murray rdmur...@bitdance.com added the comment: Woops, I didn't meant to unassign docs. -- assignee: - d...@python nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10145 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10073] calendar.isleap() not checking parameter type
BoÅ¡tjan Mejak bostjan.me...@gmail.com added the comment: I have read the Zen of PYthon before. I have also written a typo report. But got rejected. No one listens to my ideas. So why do you have a bug tracker anyway? On Tue, Oct 19, 2010 at 6:46 AM, Ãric Araujo rep...@bugs.python.org wrote: Ãric Araujo mer...@netwok.org added the comment: for example, the isleap() function which should be defined as is_leap() Who says that? Not PEP 8: âFunction names should be lowercase, with words separated by underscores *as necessary to improve readability*â (emphasis mine). isleap is perfectly readable. But now it's all too late for that fixes. Youâll find that Python has a balance between readability/ease of use and pragmatism. In some cases, changes canât be made, but itâs best to accept it and move on to the next issue. Working on feature requests instead of style issues is great. On a closing note, Iâll let you enjoy the Zen of Python: $ python -m this -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10073 ___ -- Added file: http://bugs.python.org/file19283/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10073 ___I have read the Zen of PYthon before. I have also written a typo report. But got rejected. No one listens to my ideas. So why do you have a bug tracker anyway?brbrdiv class=gmail_quoteOn Tue, Oct 19, 2010 at 6:46 AM, Ãric Araujo span dir=ltrlt;a href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;/span wrote:br blockquote class=gmail_quote style=margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;br Ãric Araujo lt;a href=mailto:mer...@netwok.org;mer...@netwok.org/agt; added the comment:br div class=imbr gt; for example, the isleap() function which should be defined as is_leap()br /divWho says that?  Not PEP 8: âFunction names should be lowercase, with words separated by underscores *as necessary to improve readability*â (emphasis mine).  isleap is perfectly readable.br div class=imbr gt; But now it#39;s all too late for that fixes.br /divYouâll find that Python has a balance between readability/ease of use and pragmatism.  In some cases, changes canât be made, but itâs best to accept it and move on to the next issue.  Working on feature requests instead of style issues is great.br br On a closing note, Iâll let you enjoy the Zen of Python:br $ python -m thisbr divdiv/divdiv class=h5br --br br ___br Python tracker lt;a href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;br lt;a href=http://bugs.python.org/issue10073; target=_blankhttp://bugs.python.org/issue10073/agt;br ___br /div/div/blockquote/divbr ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10073] calendar.isleap() not checking parameter type
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Removed file: http://bugs.python.org/file19283/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10073 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10090] python -m locale fails on OSX
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo, loewis versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10090 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10092] calendar does not restore locale properly
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10092 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10073] calendar.isleap() not checking parameter type
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Tue, Oct 19, 2010 at 12:34 PM, Boštjan Mejak rep...@bugs.python.org wrote: I have also written a typo report. But got rejected. No one listens to my ideas. So why do you have a bug tracker anyway? Bug tracker is not the place to discuss ideas. We have python-ideas mailing list for that. I searched the tracker and found four documentation issues that you submitted in the past: #4389, #4648, #4649, and #6475. In each case, your issue received attention from the most senior python developers. In each case the issue was closed with a detailed comment explaining the reasons for rejection. I think if you search the tracker for issues with accepted or fixed resolution, you will understand why we have the bug tracker. Reading successful reports may also help you to submit better reports in the future. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10073 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10073] calendar.isleap() not checking parameter type
Boštjan Mejak bostjan.me...@gmail.com added the comment: your change to the parentheses changes the semantics. (Georg Brandl) How does adding those parens change semantics? The behaviour of the function isleap() is the same. I have throughtly tested this function and found no semantic errors in it. So the parens don't matter for behaviour, only for clarity they matter. But since you decided not to fix this, I won't push the envelope. At least fix the docstrings to match the return value. Please fix the docstrings to Return True for leap years, False for non-leap years. On Tue, Oct 19, 2010 at 7:02 PM, Alexander Belopolsky rep...@bugs.python.org wrote: Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Tue, Oct 19, 2010 at 12:34 PM, Boštjan Mejak rep...@bugs.python.org wrote: I have also written a typo report. But got rejected. No one listens to my ideas. So why do you have a bug tracker anyway? Bug tracker is not the place to discuss ideas. We have python-ideas mailing list for that. I searched the tracker and found four documentation issues that you submitted in the past: #4389, #4648, #4649, and #6475. In each case, your issue received attention from the most senior python developers. In each case the issue was closed with a detailed comment explaining the reasons for rejection. I think if you search the tracker for issues with accepted or fixed resolution, you will understand why we have the bug tracker. Reading successful reports may also help you to submit better reports in the future. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10073 ___ -- Added file: http://bugs.python.org/file19284/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10073 ___blockquote class=gmail_quote style=margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; your change to the parentheses changes the semantics. (Georg Brandl)/blockquotedivbr/divHow does adding those parens change semantics? The behaviour of the function isleap() is the same. I have throughtly tested this function and found no semantic errors in it. So the parens don#39;t matter for behaviour, only for clarity they matter. But since you decided not to fix this, I won#39;t push the envelope. At least fix the docstrings to match the return value. Please fix the docstrings to quot;quot;quot;Return True for leap years, False for non-leap years.quot;quot;quot;div br/divdivbrdiv class=gmail_quoteOn Tue, Oct 19, 2010 at 7:02 PM, Alexander Belopolsky span dir=ltrlt;a href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;/span wrote:brblockquote class=gmail_quote style=margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex; br Alexander Belopolsky lt;a href=mailto:belopol...@users.sourceforge.net;belopol...@users.sourceforge.net/agt; added the comment:br div class=imbr On Tue, Oct 19, 2010 at 12:34 PM, Boštjan Mejak lt;a href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt; wrote:br gt; I have also written a typo report. Butbr gt; got rejected. No one listens to my ideas. So why do you have a bug trackerbr gt; anyway?br br /divBug tracker is not the place to discuss ideas.  We have python-ideasbr mailing list for that.br br I searched the tracker and found four documentation issues that youbr submitted in the past: #4389, #4648, #4649, and #6475.  In each case,br your issue received attention from the most senior python developers.br In each case the issue was closed with a detailed comment explainingbr the reasons for rejection.br br I think if you search the tracker for issues with quot;acceptedquot; orbr quot;fixedquot; resolution, you will understand why we have the bug tracker.br Reading successful reports may also help you to submit better reportsbr in the future.br divdiv/divdiv class=h5br --br br ___br Python tracker lt;a href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;br lt;a href=http://bugs.python.org/issue10073; target=_blankhttp://bugs.python.org/issue10073/agt;br ___br /div/div/blockquote/divbr/div ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4480] bdist_msi and bdist_wininst are missing an uninstaller icon
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4480 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4480] bdist_msi and bdist_wininst are missing an uninstaller icon
Changes by Éric Araujo mer...@netwok.org: -- components: +Distutils2 -Distutils, Windows versions: +3rd party -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4480 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4480] bdist_msi and bdist_wininst are missing an uninstaller icon
Changes by Éric Araujo mer...@netwok.org: -- components: +Windows ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4480 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10073] calendar.isleap() not checking parameter type
Changes by Boštjan Mejak bostjan.me...@gmail.com: Removed file: http://bugs.python.org/file19284/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10073 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10073] calendar.isleap() not checking parameter type
Changes by Boštjan Mejak bostjan.me...@gmail.com: Removed file: http://bugs.python.org/file19275/calendar-isleap.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10073 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1528363] forward in turtle module may cause incorrect display
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I cannot reproduce this on OSX. I have verified that the turtle position is correct (-70.00,30.00) after the steps reported by OP. This must be out of date. -- nosy: +belopolsky resolution: - out of date stage: unit test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1528363 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10073] calendar.isleap() not checking parameter type
Boštjan Mejak bostjan.me...@gmail.com added the comment: I am applying a patch that only fixes the docstrings to match the return value of calendar.isleap(). The return value of isleap() is not 1 or 0 -- it is True or False. Please apply the patch. Thank you. -- Added file: http://bugs.python.org/file19285/isleap-docstrings.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10073 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10073] calendar.isleap() not checking parameter type
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Committed the docstring patch in r85725. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10073 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4117] missing update() in _Screen.setup() of Lib/turtle.py
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: It looks like this has been fixed in turtle 1.1. See r72318 and issue 5923. -- nosy: +belopolsky, georg.brandl resolution: - out of date stage: - committed/rejected status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4117 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5135] Expose simplegeneric function in functools module
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file18131/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5135 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10073] calendar.isleap() not checking parameter type
Boštjan Mejak bostjan.me...@gmail.com added the comment: Thank you for applying my patch. Glad to help. Please apply it to the trunk and other branches as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10073 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10073] calendar.isleap() not checking parameter type
Georg Brandl ge...@python.org added the comment: It will be merged in due time. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10073 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10092] calendar does not restore locale properly
Boštjan Mejak bostjan.me...@gmail.com added the comment: It seems that calendar.LocaleTextCalendar() changes the locale for the current interpreter session to the one you pass to argument 'locale'. This is a bug to be fixed. -- nosy: +Retro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10092 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7061] Improve 24.5. turtle doc
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: It seems that 'add=False' would be same as 'add=None' and more consistent with below. The add argument is passed unchanged to canvas' bind method which is documented as taking either '' or '+' string: http://docs.python.org/library/tkinter.html?highlight=canvas#bindings-and-events I think anything that can be used in boolean context can be used there. None and '' are equivalent to False and '+' is equivalent to True. I agree that True/False are better options and suggest to change tkinter doc accordingly. As far as changing the default value from None to False, if this is done in doc, the same should be done in the code. I am -0 on that. -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7061 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10092] calendar does not restore locale properly
Éric Araujo mer...@netwok.org added the comment: Indeed. Would you like to try to make a patch for Python 3.2? Help is here: http://www.python.org/dev/ (especially http://www.python.org/dev/patches/ ) and here: http://docs.pythonsprints.com/core_development/beginners.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10092 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10073] calendar.isleap() not checking parameter type
Éric Araujo mer...@netwok.org added the comment: How does adding those parens change semantics? It changes boolean evaluation paths. See for example http://docs.python.org/py3k/reference/expressions#boolean-operations . If you have more questions, python-list is an open and friendly mailing list dedicated to answering them. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10073 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10092] calendar does not restore locale properly
BoÅ¡tjan Mejak bostjan.me...@gmail.com added the comment: Would you like to try to make a patch for Python 3.2? I'm not that geeky. :) On Tue, Oct 19, 2010 at 8:36 PM, Ãric Araujo rep...@bugs.python.org wrote: Ãric Araujo mer...@netwok.org added the comment: Indeed. Would you like to try to make a patch for Python 3.2? Help is here: http://www.python.org/dev/ (especially http://www.python.org/dev/patches/ ) and here: http://docs.pythonsprints.com/core_development/beginners.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10092 ___ -- Added file: http://bugs.python.org/file19286/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10092 ___blockquote class=gmail_quote style=margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; span class=Apple-style-span style=font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; Would you like to try to make a patch for Python 3.2?/span/blockquotedivI#39;m not that geeky. :) /div brdiv class=gmail_quoteOn Tue, Oct 19, 2010 at 8:36 PM, Ãric Araujo span dir=ltrlt;a href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;/span wrote:brblockquote class=gmail_quote style=margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex; br Ãric Araujo lt;a href=mailto:mer...@netwok.org;mer...@netwok.org/agt; added the comment:br br Indeed.  Would you like to try to make a patch for Python 3.2?  Help is here: a href=http://www.python.org/dev/; target=_blankhttp://www.python.org/dev//a (especially a href=http://www.python.org/dev/patches/; target=_blankhttp://www.python.org/dev/patches//a ) and here: a href=http://docs.pythonsprints.com/core_development/beginners.html; target=_blankhttp://docs.pythonsprints.com/core_development/beginners.html/abr br --br divdiv/divdiv class=h5br ___br Python tracker lt;a href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;br lt;a href=http://bugs.python.org/issue10092; target=_blankhttp://bugs.python.org/issue10092/agt;br ___br /div/div/blockquote/divbr ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10092] calendar does not restore locale properly
Georg Brandl ge...@python.org added the comment: Fixed in r85728. The problem was that unlike other system calls, setlocale() doesn't return the old setting but the new setting. The context manager that resets the locale therefore didn't work as intended. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10092 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10146] Incorrect regex generation in translate_pattern
New submission from Noah Kantrowitz noah+bugs.python@coderanger.net: If a prefix is passed to translate_pattern it will generate a pattern using the unescaped output of os.path.join(). This is fine on *nix, but on Windows it results in a pattern like r'build\.*', which matches any string starting with build (in my case, buildout.cfg). Escaping the separator fixes this (patch attached). -- assignee: tarek components: Distutils files: filelist.diff keywords: patch messages: 119159 nosy: coderanger, eric.araujo, tarek priority: normal severity: normal status: open title: Incorrect regex generation in translate_pattern type: behavior versions: Python 2.6, Python 2.7, Python 3.1 Added file: http://bugs.python.org/file19287/filelist.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10146 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10147] Python Documentation bugs
New submission from Boštjan Mejak bostjan.me...@gmail.com: Please read the docs here: http://docs.python.org/py3k/reference/expressions#boolean-operations This is the last sentence in the '5.10. Boolean operations' text): ([...] Because not has to invent a value anyway, it does not bother to return a value of the same type as its argument, so e.g., not 'foo' yields False, not ''.) Fix to: ([...] Because not has to invert a value anyway, it does not bother to return a value of the same type as its argument, so e.g., not 'foo' yields False, not ''.) -- assignee: d...@python components: Documentation messages: 119160 nosy: Retro, d...@python priority: normal severity: normal status: open title: Python Documentation bugs versions: 3rd party, Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10147 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10144] Buffering bug after calling curses function
Ned Deily n...@acm.org added the comment: The problem is reproducible with the python2 versions I have access to, that is, on Mac OS X and Debian Linux, and likewise not with any of the python3 3.1 and 3.2 versions. It is most likely due to the underlying ncurses library interacting with the libc stdio, maybe changing the buffer size of the stdout file. The output is flushed as expected if the program is changed to use the python2.7 io module to write to stdout, like python3 does, rather than print which uses the 'file' object. As a workaround on python2, it looks like the expected behavior can be restored by closing and reopening sys.stdout with something like this: f() stdout=sys.stdout print('Calling bug() now!') bug() fn = sys.stdout.fileno() sys.stdout.close() sys.stdout = os.fdopen(fn,'a') f() -- nosy: +akuchling, ned.deily, pitrou versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10144 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10147] Python Documentation bugs
Boštjan Mejak bostjan.me...@gmail.com added the comment: There is one more typo bug I noted in the documentation. Please go here: http://docs.python.org/library/locale#locale.setlocale Fix this text... setlocale() is not thread safe on most systems. ...like this: setlocale() is not thread-safe on most systems. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10147 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10146] Incorrect regex generation in translate_pattern
Changes by Éric Araujo mer...@netwok.org: -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - Impossible to include file in sdist that starts with 'build' on Win32 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10146 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10144] Buffering bug after calling curses function
Andreas Stührk andy-pyt...@hammerhartes.de added the comment: That behaviour is indeed caused by ncurses as it changes the buffer size of stdio. The rationale behind that is explained in a comment in ncurses/tinfo/setbuf.c (http://codesearch.google.com/codesearch/p?hl=en#5KTrgOW2hXs/pub/nslu2/sources/ncurses-5.4.tar.gz%7CqZkYBenqdbw/ncurses-5.4/ncurses/tinfo/setbuf.cl=46) That behaviour is also mentioned in the man-page of ncurses and one can disable it using the NCURSES_NO_SETBUF environment variable. If I set that environment variable, the example behaves as expected on my machine. -- nosy: +Trundle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10144 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10144] Buffering bug after calling curses function
Ned Deily n...@acm.org added the comment: Thanks for NCURSES_NO_SETBUF (when it doubt read the man page!). Since the problem does not seem to exist in python3 and this is likely been an issue for a long time and apparently not previously reported and there are various workarounds, I think this could be closed as wont fix. Any objections? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10144 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10147] Python Documentation bugs
Georg Brandl ge...@python.org added the comment: The first one is not a typo. Fixed the second one (and similar occurrences of thread safe) in r85731. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10147 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7061] Improve 24.5. turtle doc
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Committed some of the simpler fixes in r85732. ?? Unclear how [delay()] interacts with turtle.speed Unclear indeed. See issue 3062. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7061 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2193] Cookie Colon Name Bug
John J Lee jj...@users.sourceforge.net added the comment: dstanek Would it be better to file bugs against buggy implementations instead of changing Python's implementation to be more lenient? No. Another app running on the same domain that knows nothing about RFC 2109 (and why should it?) shouldn't break your Cookie.py-using app -- did you look at the trac bug? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2193 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3062] Turtle speed() function has no effect under Mac OS X
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I am attaching another test that demonstrates that the speed of the turtle is different when it draws a straight line and a circle. The output shows the time it takes to draw a line and a circle of the same length at various speed settings. $ python3 speed_test2.py 0: 0.01 0.02 1: 0.96 2.25 2: 0.67 2.24 3: 0.32 1.81 4: 0.25 1.39 5: 0.27 1.89 6: 0.15 1.44 7: 0.12 1.53 8: 0.10 1.69 9: 0.10 1.73 10: 0.08 1.64 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3062 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6460] test failure in test_xmlrpc on Gentoo in trunk
Sandro Tosi sandro.t...@gmail.com added the comment: Hello, can we consider this bug as fixed? test has been fixed, buildbots don't show this problem anymore and a run on my system with 300 instances of the test_xmlrpc running in parallel generated only OK as result. Regards, Sandro -- nosy: +sandro.tosi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6460 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10144] Buffering bug after calling curses function
Fernando Perez fdo.pe...@gmail.com added the comment: No problem for us (IPython) if you mark it as won't fix. I've just applied the environment workaround you guys suggested: http://github.com/ipython/ipython/commit/147b245d2ead0e15d2c17b7bb760a03126660fb7 Thanks a lot for that tip! That leaves us in good shape. -- nosy: +fperez ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10144 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7096] test_curses fails on 3.1 when run under regrtest
Sandro Tosi sandro.t...@gmail.com added the comment: mh, 3 months and no taker, let's close it? :) -- nosy: +sandro.tosi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7096 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10144] Buffering bug after calling curses function
Changes by Ned Deily n...@acm.org: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10144 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6460] test failure in test_xmlrpc on Gentoo in trunk
Ned Deily n...@acm.org added the comment: I have not seen any recent failures either. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6460 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10142] Support for SEEK_HOLE/SEEK_DATA
Martin v. Löwis mar...@v.loewis.de added the comment: Am 19.10.2010 06:58, schrieb Raymond Hettinger: Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Martin, any thoughts on adding a ZFS dependent feature? ISTM this Solaris feature hasn't taken hold elsewhere and it may be a mistake to immortalize it in Python. There isn't any specific patch to review yet. However, Python has a long tradition of exposing all symbolic constants that users have asked for, and these are no different (e.g. how many systems support EX_SOFTWARE, or ENOTACTIVE). As long as it's just new constants, and as long as they are guarded with an ifdef, no approval is necessary for adding them. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10142 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6460] test failure in test_xmlrpc on Gentoo in trunk
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6460 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7096] test_curses fails on 3.1 when run under regrtest
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7096 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error
STINNER Victor victor.stin...@haypocalc.com added the comment: Patch version 7: - don't use snprintf() because it is not signal safe - catch also SIGBUS and SIGILL if available - Py_FatalError() uses fileno(stderr) instead of directly 2 - Factorize code in segfault.c and test_segfault.py -- Added file: http://bugs.python.org/file19288/segfault_handler-7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9791] nntplib.py lacks a test suite
Sandro Tosi sandro.t...@gmail.com added the comment: Hello, in r85111 Antoine revamped nntplib modules, making it compatible with Python 3, improving its documentation and also adding a test suite. I'm marking this bug as closed/accepted; Giampaolo, if you feel you still want to work on the test suite (I admit I didn't check the coverage), please reopen it (or log a new one). Regards, Sandro -- nosy: +sandro.tosi resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9791 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10148] st_mtime differs after shutil.copy2
New submission from Luke McCarthy l...@iogopro.co.uk: When copying a file with shutil.copy2() between two ext4 filesystems on 64-bit Linux, the mtime of the destination file is different after the copy. It appears as if the resolution is slightly different, so the mtime is truncated slightly. For example: source file mtime: 1287367331.8433506 destination file mtime: 1287367331.84335 -- components: Library (Lib) messages: 119176 nosy: shaurz priority: normal severity: normal status: open title: st_mtime differs after shutil.copy2 type: behavior versions: Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10148 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names
David Watson bai...@users.sourceforge.net added the comment: In fact, I would think that non-ASCII bytes in a hostname most probably indicated that a name resolution mechanism other than the DNS was in use, and that the byte string should be passed unaltered just as a typical C program would. I'm not talking about byte strings, but character strings. I mean that passing the str object from socket.gethostname() to the Python lookup function ought to result in the same byte string being passed to the C lookup function as was returned by the C gethostname() function (or else that the programmer must re-encode the str to ensure that that result is obtained). I don't object to that, but it does force a choice between decoding an 8-bit name for display (e.g. by using the locale encoding), and decoding it to round-trip automatically (e.g. by using ASCII/surrogateescape, with support on the encoding side). In the face of ambiguity, refuse the temptation to guess. Yes, I would interpret that to mean not using the locale encoding for data obtained from the network. That's another reason why the ASCII/surrogateescape scheme appeals to me more. Well, Python is not C. In Python, you would pass a str, and expect it to work, which means it will get automatically encoded with IDNA. I think there might be a misunderstanding here - I've never proposed changing the interpretation of Unicode characters in hostname arguments. The ASCII/surrogateescape scheme I suggested only changes the interpretation of unpaired surrogate codes, as they do not occur in IDNs or any other genuine Unicode data; all IDNs, including those solely consisting of ASCII characters, would be encoded to the same byte sequence as before. ASCII/surrogateescape decoding could also be used without support on the encoding side - that would satisfy the requirement to refuse the temptation to guess, would allow the original bytes to be recovered, and would mean that attempting to look up a non-ASCII result in str form would raise an exception rather than looking up the wrong name. Marc-Andre wants gethostname to use the Wide API on Windows, which, in theory, allows for cases where round-tripping to bytes is impossible. Well, the name resolution APIs wrapped by Python are all byte-oriented, so if the computer name were to have no bytes equivalent then it wouldn't be possible to resolve it anyway, and an exception rightly ought be raised at some point in the process of trying to do so. -- title: socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names - socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9377 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error
STINNER Victor victor.stin...@haypocalc.com added the comment: Patch version 8: - fix compiler warning on Windows - skip test_sigfpe() on Windows: it looks like the signal handler is not executed, the program exits directly - fix tests for Windows end of line (\r\n vs \n) -- Added file: http://bugs.python.org/file19289/segfault_handler-8.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error
STINNER Victor victor.stin...@haypocalc.com added the comment: One other concern: many OSes (e.g. Linux distributions) implement some kind of system-wide crash-catching utility; ... Even if it would be possible to call the original signal handler, I think that it would be better to just disable this feature if a (better?) program also watchs for segfaults. We should provide different ways to enable and/or disable this feature: - command line option? (eg. see issue #10089) - environment variable? - add a function to the sys module (or another module) to enable or disable this feature? (eg. sys.getsegfaultenabled(), sys.setsegfaultenabled(False)) I don't think that a command line option and an environment variable is pratical for an OS distributor. With a sys function, the OS distributor can call it in the site module. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8725] Python3: use ASCII for the file system encoding on initfsencoding() failure
STINNER Victor victor.stin...@haypocalc.com added the comment: initfsencoding() now raises a fatal error on get_codeset() error. Use a encoding different than the locale encoding on get_codeset() only leads to mojibake and encoding issues, it's not a good idea. Close this issue as invalid. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8725 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10148] st_mtime differs after shutil.copy2
Martin v. Löwis mar...@v.loewis.de added the comment: This is a system limitation. The underlying file system supports nanosecond resolution for the file stamps, and stat(2) also supports reporting them. However, utimes(2) only supports microsecond resolution when setting them. Linux supports utimensat(2) since 2.6.22 (July 2007), however, Python doesn't use it. It would be possible to come up with a patch to transparently use it where available. Are you interested in writing such a patch? As a consequential issue: For Python, a long time ago, it was decided that time stamps in system interfaces are floating point numbers. As a consequence, nanoseconds cannot be accurately represented for today's dates (IIUC). I doubt there is anything we could do about this; this is likely won't fix. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10148 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10027] os.lstat/os.stat don't set st_nlink on Windows
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Added file: http://bugs.python.org/file19290/py3k_posixpath_v1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10027 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10027] os.lstat/os.stat don't set st_nlink on Windows
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Removed file: http://bugs.python.org/file19278/py3k_posixpath_v1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10027 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10027] os.lstat/os.stat don't set st_nlink on Windows
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I replaced my patch (almost reverted stat() part) I think st_nlink will be set via stat()/lstat(), at least. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10027 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10134] test_email failures on Windows: end of line issue?
Changes by R. David Murray rdmur...@bitdance.com: -- dependencies: +email.Generators does not separates headers with \r\n ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10134 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1349106] email.Generator does not separate headers with \r\n
R. David Murray rdmur...@bitdance.com added the comment: Malcolm: a Content-Transfer-Encoding of 8bit may only contain \r and \n characters as part of the line ending sequence. 8bit is *not* binary; to use a CTE of binary the SMTP server must support BINARYMIME, which I don't think is all that common yet. At any rate, my up-to-date postfix server doesn't support it. And in any case, the email package doesn't support the binary CTE, so it's kind of irrelevant anyway :) All that said, however, it certainly seems useful to be able to generate crlf terminated messages as an option. And it turns out that that capability is needed in order to be able to generate binary messages in Python3 while still remaining backward compatible with the behavior of Python2 when parsing binary messages (see issue 10134). (Actually I think the scenario I'm finding problematic in Python3 is also problematic in Python2, it's just that there are tricks you can use to work around it in Python2 that aren't allowed in Python3 because of the byte/string separation.) So, attached find a patch implementing a linesep option in Generator.flatten and Header.encode. Note that this patch also fleshes out the currently abbreviated documentation for BytesGenerator. -- keywords: +patch stage: unit test needed - patch review title: email.Generators does not separates headers with \r\n - email.Generator does not separate headers with \r\n versions: -Python 2.7 Added file: http://bugs.python.org/file19291/email_linesep.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1349106 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10149] Data truncation in expat parser
New submission from Maciek J e...@wp.pl: Not sure if this is a Python problem or an expat problem, but I get truncated data while parsing XML documents. This particular project is for parsing an XML file of Wikipedia dump. The attached files are: * xml-parse-revisions.py - parser script * revision-test.xml - input XML * revision-test.xml.sql - output XML * revision_create.sql - not really needed for this test case, but attached for completeness You can notice that the output file sometimes contains too short values for the timestamp. Also note that if you add whitespace to the input XML, then different timestamps will be truncated. My Python is 2.6.6. -- components: XML files: pyxml_error.zip messages: 119184 nosy: Maciek.J priority: normal severity: normal status: open title: Data truncation in expat parser versions: Python 2.6 Added file: http://bugs.python.org/file19292/pyxml_error.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10149 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8465] re: Backreferences vs. escapes: a silent failure solved
R. David Murray rdmur...@bitdance.com added the comment: I agree with Terry. -- nosy: +r.david.murray resolution: - out of date stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8465 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10128] multiprocessing.Pool throws exception with __main__.py
Michael Olson ol...@irinim.net added the comment: Sorry about that, yes, this is on Windows XP and 7, 32 bit. And with the if statement it seems to work fine. v/r -- Michael Olson -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10128 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10150] Local references not released after exception
New submission from James Bowman bowmana...@gmail.com: import sys def foo(): x = [o] * 100 raise ArithmeticError o = something print sys.getrefcount(o) try: foo() except ArithmeticError: pass print sys.getrefcount(o) --- Gives: 4 104 Looking at the CPython source, FrameObject's deallocator does actually decrement refcounts of its locals and arguments. Guessing that the FrameObject is not being deallocated. -- components: Interpreter Core messages: 119187 nosy: James.Bowman priority: normal severity: normal status: open title: Local references not released after exception type: resource usage versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10150 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10150] Local references not released after exception
Alex alex.gay...@gmail.com added the comment: That's because in Python 2.5 at that point in the code sys.exc_info() still points at the traceback (and by extension, the frame) thus x is not deallocated yet. I don't think this is a bug. -- nosy: +alex ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10150 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com