[issue10092] calendar does not restore locale properly

2010-10-19 Thread Georg Brandl
Changes by Georg Brandl : Removed file: http://bugs.python.org/file19286/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue10092] calendar does not restore locale properly

2010-10-19 Thread Georg Brandl
Georg Brandl added the comment: Let's see if r85735 fixed this. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue10150] Local references not released after exception

2010-10-19 Thread Georg Brandl
Georg Brandl added the comment: Alex is correct. (You can prove that by raising and catching another exception before the second getrefcount().) -- nosy: +georg.brandl resolution: -> wont fix status: open -> closed ___ Python tracker

[issue10092] calendar does not restore locale properly

2010-10-19 Thread Stephen Hansen
Stephen Hansen added the comment: I can't be entirely sure, because a) I have never even glanced at the calendar module, and b) my locale-fu is very weak, but my buildbot has consistently failed on this test since this commit: =

[issue10150] Local references not released after exception

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

[issue10150] Local references not released after exception

2010-10-19 Thread James Bowman
New submission from James Bowman : 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 CPy

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

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

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

2010-10-19 Thread R. David Murray
R. David Murray added the comment: I agree with Terry. -- nosy: +r.david.murray resolution: -> out of date stage: -> committed/rejected status: open -> closed ___ Python tracker __

[issue10149] Data truncation in expat parser

2010-10-19 Thread Maciek J
New submission from Maciek J : 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.

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

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

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

2010-10-19 Thread R. David Murray
Changes by R. David Murray : -- dependencies: +email.Generators does not separates headers with "\r\n" ___ Python tracker ___ ___ Pyth

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

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

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

2010-10-19 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : Removed file: http://bugs.python.org/file19278/py3k_posixpath_v1.patch ___ Python tracker ___ ___ Python-bugs-l

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

2010-10-19 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : Added file: http://bugs.python.org/file19290/py3k_posixpath_v1.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue10148] st_mtime differs after shutil.copy2

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

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

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

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

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

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

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

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

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

[issue10148] st_mtime differs after shutil.copy2

2010-10-19 Thread Luke McCarthy
New submission from Luke McCarthy : 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: sour

[issue9791] nntplib.py lacks a test suite

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

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

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

[issue7096] test_curses fails on 3.1 when run under regrtest

2010-10-19 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6460] test failure in test_xmlrpc on Gentoo in trunk

2010-10-19 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2010-10-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: Am 19.10.2010 06:58, schrieb Raymond Hettinger: > > Raymond Hettinger 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 Pyt

[issue6460] test failure in test_xmlrpc on Gentoo in trunk

2010-10-19 Thread Ned Deily
Ned Deily added the comment: I have not seen any recent failures either. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue10144] Buffering bug after calling curses function

2010-10-19 Thread Ned Deily
Changes by Ned Deily : -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue7096] test_curses fails on 3.1 when run under regrtest

2010-10-19 Thread Sandro Tosi
Sandro Tosi added the comment: mh, 3 months and no taker, let's close it? :) -- nosy: +sandro.tosi ___ Python tracker ___ ___ Python-b

[issue10144] Buffering bug after calling curses function

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

[issue6460] test failure in test_xmlrpc on Gentoo in trunk

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

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

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

[issue2193] Cookie Colon Name Bug

2010-10-19 Thread John J Lee
John J Lee 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.p

[issue7061] Improve 24.5. turtle doc

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

[issue10147] Python Documentation bugs

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

[issue10144] Buffering bug after calling curses function

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

[issue10144] Buffering bug after calling curses function

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

[issue10146] Incorrect regex generation in translate_pattern

2010-10-19 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> Impossible to include file in sdist that starts with 'build' on Win32 ___ Python tracker _

[issue10147] Python Documentation bugs

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

[issue10144] Buffering bug after calling curses function

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

[issue10147] Python Documentation bugs

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

[issue10146] Incorrect regex generation in translate_pattern

2010-10-19 Thread Noah Kantrowitz
New submission from Noah Kantrowitz : 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, "

[issue10092] calendar does not restore locale properly

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

[issue10092] calendar does not restore locale properly

2010-10-19 Thread Boštjan Mejak
Boštjan Mejak 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 wrote: > > Éric Araujo added the comment: > > Indeed. Would you like to try to make a patch for Python 3.2? Help is > here: htt

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

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

[issue10092] calendar does not restore locale properly

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

[issue7061] Improve 24.5. turtle doc

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

[issue10092] calendar does not restore locale properly

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

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

2010-10-19 Thread Georg Brandl
Georg Brandl added the comment: It will be merged in due time. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

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

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

[issue5135] Expose simplegeneric function in functools module

2010-10-19 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file18131/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

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

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

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

2010-10-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed the docstring patch in r85725. -- ___ Python tracker ___ ___ Python-bugs-list maili

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

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

[issue1528363] forward in turtle module may cause incorrect display

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

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

2010-10-19 Thread Boštjan Mejak
Changes by Boštjan Mejak : Removed file: http://bugs.python.org/file19275/calendar-isleap.patch ___ Python tracker ___ ___ Python-bugs-list ma

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

2010-10-19 Thread Boštjan Mejak
Changes by Boštjan Mejak : Removed file: http://bugs.python.org/file19284/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue4480] bdist_msi and bdist_wininst are missing an uninstaller icon

2010-10-19 Thread Éric Araujo
Changes by Éric Araujo : -- components: +Windows ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue4480] bdist_msi and bdist_wininst are missing an uninstaller icon

2010-10-19 Thread Éric Araujo
Changes by Éric Araujo : -- components: +Distutils2 -Distutils, Windows versions: +3rd party -Python 3.2 ___ Python tracker ___ ___ Pyt

[issue4480] bdist_msi and bdist_wininst are missing an uninstaller icon

2010-10-19 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

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

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

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

2010-10-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Oct 19, 2010 at 12:34 PM, Boštjan Mejak 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 ma

[issue10092] calendar does not restore locale properly

2010-10-19 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10090] python -m locale fails on OSX

2010-10-19 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo, loewis versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2010-10-19 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file19283/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing l

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

2010-10-19 Thread Boštjan Mejak
Boštjan Mejak 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 wrote: > > Éric Araujo added the comment: > > > for

[issue10145] float.is_integer is undocumented

2010-10-19 Thread R. David Murray
R. David Murray added the comment: Woops, I didn't meant to unassign docs. -- assignee: -> d...@python nosy: +r.david.murray ___ Python tracker ___

[issue10036] compiler warnings for various modules on Linux buildslaves

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

[issue10145] float.is_integer is undocumented

2010-10-19 Thread Éric Araujo
Changes by Éric Araujo : -- stage: -> needs patch title: (4.2).is_integer() is undocumented. -> float.is_integer is undocumented versions: -Python 2.6, Python 3.3 ___ Python tracker __

[issue10036] compiler warnings for various modules on Linux buildslaves

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

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

2010-10-19 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +gregorlingl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

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

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

[issue9929] subprocess.Popen unbuffered not work

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

[issue9929] subprocess.Popen unbuffered not work

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

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

2010-10-19 Thread Matthias Klose
Matthias Klose added the comment: Lib/distutils/command/install.py () needs updates in INSTALL_SCHEMES/headers. -- ___ Python tracker ___

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

2010-10-19 Thread Matthias Klose
Matthias Klose added the comment: the python.pc installation name should be changed too, and a symlink added. -- ___ Python tracker ___ __

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

2010-10-19 Thread R. David Murray
Changes by R. David Murray : -- assignee: d...@python -> nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing li

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

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

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

2010-10-19 Thread Ask Solem
Ask Solem added the comment: Is this on Windows? Does it work for you now? -- ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2010-10-19 Thread Ralph Corderoy
New submission from Ralph Corderoy : 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

[issue10142] Support for SEEK_HOLE/SEEK_DATA

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

[issue10142] Support for SEEK_HOLE/SEEK_DATA

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

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

2010-10-19 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I noticed stat() won't set S_IEXEC in stat() with my patch (py3k_posixpath_v1.patch). :-( -- ___ Python tracker ___

[issue10135] Format specifier 'n' not working

2010-10-19 Thread Eric Smith
Changes by Eric Smith : -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue9974] tokenizer.untokenize not invariant with line continuations

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

[issue10141] SocketCan support

2010-10-19 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

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

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

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

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

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

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

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

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