[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-19 Thread Mark Dickinson
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

[issue10139] regex A|B : both A and B match, but B is wrongly preferred

2010-10-19 Thread Georg Brandl
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,

[issue10139] regex A|B : both A and B match, but B is wrongly preferred

2010-10-19 Thread Christos Georgi ou
Χρήστος Γεωργίου (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')

[issue10139] regex A|B : both A and B match, but B is wrongly preferred

2010-10-19 Thread Christos Georgi ou
Χρήστος Γεωργίου (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). --

[issue10139] regex A|B : both A and B match, but B is wrongly preferred

2010-10-19 Thread Christos Georgi ou
Χρήστος Γεωργίου (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. --

[issue10141] SocketCan support

2010-10-19 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10141 ___ ___

[issue9974] tokenizer.untokenize not invariant with line continuations

2010-10-19 Thread Brian Bossé
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

[issue10135] Format specifier 'n' not working

2010-10-19 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10135 ___ ___

[issue10027] os.lstat/os.stat don't set st_nlink on Windows

2010-10-19 Thread Hirokazu Yamamoto
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

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2010-10-19 Thread Jesús Cea Avión
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. --

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2010-10-19 Thread Antoine Pitrou
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

[issue10145] (4.2).is_integer() is undocumented.

2010-10-19 Thread Ralph Corderoy
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

[issue10128] multiprocessing.Pool throws exception with __main__.py

2010-10-19 Thread Ask Solem
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 ___

[issue10134] test_email failures on Windows: end of line issue?

2010-10-19 Thread R. David Murray
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

[issue10145] (4.2).is_integer() is undocumented.

2010-10-19 Thread R. David Murray
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 ___

[issue9807] deriving configuration information for different builds with the same prefix

2010-10-19 Thread Matthias Klose
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 ___

[issue9807] deriving configuration information for different builds with the same prefix

2010-10-19 Thread Matthias Klose
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 ___

[issue9929] subprocess.Popen unbuffered not work

2010-10-19 Thread Hirokazu Yamamoto
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

[issue9929] subprocess.Popen unbuffered not work

2010-10-19 Thread Hirokazu Yamamoto
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

[issue3062] Turtle speed() function has no effect under Mac OS X

2010-10-19 Thread Alexander Belopolsky
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:

[issue3062] Turtle speed() function has no effect under Mac OS X

2010-10-19 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: +gregorlingl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3062 ___ ___

[issue10036] compiler warnings for various modules on Linux buildslaves

2010-10-19 Thread Dirkjan Ochtman
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

[issue10145] float.is_integer is undocumented

2010-10-19 Thread Éric Araujo
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

[issue10036] compiler warnings for various modules on Linux buildslaves

2010-10-19 Thread Dirkjan Ochtman
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

[issue10145] float.is_integer is undocumented

2010-10-19 Thread R. David Murray
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

[issue10073] calendar.isleap() not checking parameter type

2010-10-19 Thread Boštjan Mejak
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:

[issue10073] calendar.isleap() not checking parameter type

2010-10-19 Thread Alexander Belopolsky
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 ___

[issue10090] python -m locale fails on OSX

2010-10-19 Thread Éric Araujo
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 ___

[issue10092] calendar does not restore locale properly

2010-10-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10092 ___ ___ Python-bugs-list

[issue10073] calendar.isleap() not checking parameter type

2010-10-19 Thread Alexander Belopolsky
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

[issue10073] calendar.isleap() not checking parameter type

2010-10-19 Thread Boštjan Mejak
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

[issue4480] bdist_msi and bdist_wininst are missing an uninstaller icon

2010-10-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4480 ___ ___

[issue4480] bdist_msi and bdist_wininst are missing an uninstaller icon

2010-10-19 Thread Éric Araujo
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 ___

[issue4480] bdist_msi and bdist_wininst are missing an uninstaller icon

2010-10-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- components: +Windows ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4480 ___ ___ Python-bugs-list

[issue10073] calendar.isleap() not checking parameter type

2010-10-19 Thread Boštjan Mejak
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 ___

[issue10073] calendar.isleap() not checking parameter type

2010-10-19 Thread Boštjan Mejak
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 ___

[issue1528363] forward in turtle module may cause incorrect display

2010-10-19 Thread Alexander Belopolsky
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:

[issue10073] calendar.isleap() not checking parameter type

2010-10-19 Thread Boštjan Mejak
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:

[issue10073] calendar.isleap() not checking parameter type

2010-10-19 Thread Alexander Belopolsky
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 ___

[issue4117] missing update() in _Screen.setup() of Lib/turtle.py

2010-10-19 Thread Alexander Belopolsky
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

[issue5135] Expose simplegeneric function in functools module

2010-10-19 Thread Éric Araujo
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 ___

[issue10073] calendar.isleap() not checking parameter type

2010-10-19 Thread Boštjan Mejak
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

[issue10073] calendar.isleap() not checking parameter type

2010-10-19 Thread Georg Brandl
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 ___ ___

[issue10092] calendar does not restore locale properly

2010-10-19 Thread Boštjan Mejak
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 ___

[issue7061] Improve 24.5. turtle doc

2010-10-19 Thread Alexander Belopolsky
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:

[issue10092] calendar does not restore locale properly

2010-10-19 Thread Éric Araujo
É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 --

[issue10073] calendar.isleap() not checking parameter type

2010-10-19 Thread Éric Araujo
É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

[issue10092] calendar does not restore locale properly

2010-10-19 Thread Boštjan Mejak
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

[issue10092] calendar does not restore locale properly

2010-10-19 Thread Georg Brandl
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

[issue10146] Incorrect regex generation in translate_pattern

2010-10-19 Thread Noah Kantrowitz
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

[issue10147] Python Documentation bugs

2010-10-19 Thread Boštjan Mejak
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

[issue10144] Buffering bug after calling curses function

2010-10-19 Thread Ned Deily
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

[issue10147] Python Documentation bugs

2010-10-19 Thread Boštjan Mejak
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

[issue10146] Incorrect regex generation in translate_pattern

2010-10-19 Thread Éric Araujo
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

[issue10144] Buffering bug after calling curses function

2010-10-19 Thread Andreas Stührk
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

[issue10144] Buffering bug after calling curses function

2010-10-19 Thread Ned Deily
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

[issue10147] Python Documentation bugs

2010-10-19 Thread Georg Brandl
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

[issue7061] Improve 24.5. turtle doc

2010-10-19 Thread Alexander Belopolsky
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

[issue2193] Cookie Colon Name Bug

2010-10-19 Thread John J Lee
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?)

[issue3062] Turtle speed() function has no effect under Mac OS X

2010-10-19 Thread Alexander Belopolsky
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

[issue6460] test failure in test_xmlrpc on Gentoo in trunk

2010-10-19 Thread Sandro Tosi
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

[issue10144] Buffering bug after calling curses function

2010-10-19 Thread Fernando Perez
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

[issue7096] test_curses fails on 3.1 when run under regrtest

2010-10-19 Thread Sandro Tosi
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 ___

[issue10144] Buffering bug after calling curses function

2010-10-19 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10144 ___ ___

[issue6460] test failure in test_xmlrpc on Gentoo in trunk

2010-10-19 Thread Ned Deily
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 ___

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2010-10-19 Thread Martin v . Löwis
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

[issue6460] test failure in test_xmlrpc on Gentoo in trunk

2010-10-19 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6460 ___

[issue7096] test_curses fails on 3.1 when run under regrtest

2010-10-19 Thread R. David Murray
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 ___

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-10-19 Thread STINNER Victor
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

[issue9791] nntplib.py lacks a test suite

2010-10-19 Thread Sandro Tosi
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

[issue10148] st_mtime differs after shutil.copy2

2010-10-19 Thread Luke McCarthy
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.

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-10-19 Thread David Watson
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

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-10-19 Thread STINNER Victor
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

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-10-19 Thread STINNER Victor
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

[issue8725] Python3: use ASCII for the file system encoding on initfsencoding() failure

2010-10-19 Thread STINNER Victor
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.

[issue10148] st_mtime differs after shutil.copy2

2010-10-19 Thread Martin v . Löwis
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

[issue10027] os.lstat/os.stat don't set st_nlink on Windows

2010-10-19 Thread Hirokazu Yamamoto
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 ___

[issue10027] os.lstat/os.stat don't set st_nlink on Windows

2010-10-19 Thread Hirokazu Yamamoto
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 ___

[issue10027] os.lstat/os.stat don't set st_nlink on Windows

2010-10-19 Thread Hirokazu Yamamoto
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

[issue10134] test_email failures on Windows: end of line issue?

2010-10-19 Thread R. David Murray
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 ___

[issue1349106] email.Generator does not separate headers with \r\n

2010-10-19 Thread R. David Murray
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

[issue10149] Data truncation in expat parser

2010-10-19 Thread Maciek J
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 *

[issue8465] re: Backreferences vs. escapes: a silent failure solved

2010-10-19 Thread R. David Murray
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

[issue10128] multiprocessing.Pool throws exception with __main__.py

2010-10-19 Thread Michael Olson
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

[issue10150] Local references not released after exception

2010-10-19 Thread James Bowman
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

[issue10150] Local references not released after exception

2010-10-19 Thread Alex
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