[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-07-26 Thread Ezio Melotti
Ezio Melotti added the comment: I left a review about your patch on rietveld, including a description of what I think it's going on there (the patch lacks some context and it's not easy to figure out how everything works there). I also did some tests with and without the patch: >>> from HTMLP

[issue10854] Output .pyd name in error message of ImportError when DLL load fails

2011-07-26 Thread Nick Coghlan
Nick Coghlan added the comment: See also #1559549, which similarly adds attribute support to ImportError and covers some of the issues with using positional arguments to do so. Extending that approach to a path keyword argument as well should work nicely. -- _

[issue12642] Python2 documentation of the open() built-in function

2011-07-26 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report! -- nosy: +ezio.melotti resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

[issue12642] Python2 documentation of the open() built-in function

2011-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5da7924c4775 by Ezio Melotti in branch '2.7': #12642: fix args names in open() doc. http://hg.python.org/cpython/rev/5da7924c4775 -- nosy: +python-dev ___ Python tracker

[issue12607] subprocess(stdout=..., stderr=sys.stdout) breaks stderr for child

2011-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1140b32747c9 by Ross Lagerwall in branch '3.2': Issue #12607: In subprocess, fix issue where if stdin, stdout or stderr is http://hg.python.org/cpython/rev/1140b32747c9 New changeset 943d323cb4b8 by Ross Lagerwall in branch 'default': Issue #12607:

[issue10854] Output .pyd name in error message of ImportError when DLL load fails

2011-07-26 Thread Brian Curtin
Brian Curtin added the comment: How about something like this? ImportError moves from being a "simple" exception to a "complex" one, then adds a "name" and "path" attribute. In dynload_win.c where we try (and fail) to load C extensions, the name and path are set on the ImportError. The test s

[issue12642] Python2 documentation of the open() built-in function

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

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-07-26 Thread Matt Basta
Matt Basta added the comment: The number of problems produced by this bug can be greatly reduced by adding a relatively small check to the parser. Currently,

[issue12590] First line and cursor not visible when opening files

2011-07-26 Thread Simon Forman
Simon Forman added the comment: You're very welcome. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue12576] urlib.request fails to open some sites

2011-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset d58b43fb9208 by Senthil Kumaran in branch '3.2': Correcting issue 12576 fix, which resulted in buildbot failures. http://hg.python.org/cpython/rev/d58b43fb9208 New changeset dcfce522723d by Senthil Kumaran in branch 'default': merge from 3.2 - Corr

[issue12590] First line and cursor not visible when opening files

2011-07-26 Thread Ned Deily
Ned Deily added the comment: Thanks for the report and the cite. The problem appears to be a difference in behavior between Tk 8.5 and earlier versions of Tk and not a platform difference. The fix is to use that 'yview' method of Text instead of 'see'. That gives the expected behavior with

[issue12590] First line and cursor not visible when opening files

2011-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 73ae3729b8fe by Ned Deily in branch '2.7': Issue #12590: IDLE editor window now always displays the first line http://hg.python.org/cpython/rev/73ae3729b8fe New changeset 1c8aca41845c by Ned Deily in branch '3.2': Issue #12590: IDLE editor window n

[issue12576] urlib.request fails to open some sites

2011-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9eac48fbe21d by Senthil Kumaran in branch '3.2': Fix closes Issue12576 - fix urlopen behavior on sites which do not send (or obsfuscates) Connection: Close header. http://hg.python.org/cpython/rev/9eac48fbe21d New changeset a45c8ce67c7d by Senthil

[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-26 Thread Miki Tebeka
Miki Tebeka added the comment: My bad about the hg location, it was a private repo (for some reason this is the bitbucket default). I tried to remove the other repos, but for some reason this doesn't work. The right one is https://bitbucket.org/tebeka/cpython#request-method -- _

[issue1602133] non-framework python fails to define os.environ properly

2011-07-26 Thread Dan Colish
Dan Colish added the comment: I can also confirm this patch is required to build py2cairo on OSX with Python2.7.2 when --enable-framework is not used. -- nosy: +dcolish ___ Python tracker __

[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-26 Thread Miki Tebeka
Changes by Miki Tebeka : -- hgrepos: +49 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-26 Thread Miki Tebeka
Changes by Miki Tebeka : -- hgrepos: +48 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue1813] Codec lookup failing under turkish locale

2011-07-26 Thread Stefan Krah
Stefan Krah added the comment: Yes, it's a bug. This works: #include #include int main(void) { char *s; printf("%s\n", setlocale(LC_CTYPE, "tr_TR.ISO8859-9")); printf("%s\n", setlocale(LC_CTYPE, NULL)); s = setlocale(LC_CTYPE, "tr_TR.ISO8859-9"); printf("%s\n", s ? s : "nu

[issue12480] urllib2 doesn't use proxy (fieddler2), configed the proxy with ProxyHandler

2011-07-26 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-07-26 Thread STINNER Victor
STINNER Victor added the comment: patch-Modules_selectmodule_c is not enough to fix kqueue_event_init(): it doesn't catch overflow error on the ident attribute. -- ___ Python tracker _

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-07-26 Thread STINNER Victor
STINNER Victor added the comment: OpenBSD has a patch for this issue: http://www.openbsd.org/cgi-bin/cvsweb/ports/lang/python/2.7/patches/patch-Modules_selectmodule_c -- ___ Python tracker

[issue1813] Codec lookup failing under turkish locale

2011-07-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Stefan Krah wrote: > > (gdb) p result = setlocale(category, "tr_TR.ISO8859-9") > > $8 = 0x0 > > (gdb) p result = setlocale(category, "tr_TR") > > $9 = 0x96d770 "tr_TR" > > (gdb) p locale > > $10 = 0x70f6a5b0 "tr_TR.ISO8859-9" > > (gdb) > > Perhaps this i

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-07-26 Thread STINNER Victor
STINNER Victor added the comment: select.kevent(bignum, 1, 2, 3, sys.maxsize, bignum) raises a OverflowError('signed integer is greater than maximum') on a 64 bits system. select.kevent() constructor parses the 4th argument using "i" (an int): sys.maxsize doesn't fit in a C int on a 64 bits s

[issue1813] Codec lookup failing under turkish locale

2011-07-26 Thread Stefan Krah
Stefan Krah added the comment: Stefan Krah wrote: > (gdb) p result = setlocale(category, "tr_TR.ISO8859-9") > $8 = 0x0 > (gdb) p result = setlocale(category, "tr_TR") > $9 = 0x96d770 "tr_TR" > (gdb) p locale > $10 = 0x70f6a5b0 "tr_TR.ISO8859-9" > (gdb) Perhaps this is a bug in Fedora's set

[issue1813] Codec lookup failing under turkish locale

2011-07-26 Thread Stefan Krah
Stefan Krah added the comment: The Fedora bot fails because here ... locale.setlocale(locale.LC_CTYPE, loc) loc = ('tr_TR', 'ISO8859-9'), and apparently setlocale can only handle "tr_TR", but not "tr_TR.ISO8859-9": 144 if (locale) { 145 /* set locale */ 146

[issue12607] subprocess(stdout=..., stderr=sys.stdout) breaks stderr for child

2011-07-26 Thread STINNER Victor
STINNER Victor added the comment: i12607_v2.patch: the test fails if Python is compiled with pydebug. Add "err = support.strip_python_stderr(err)" before self.assertEqual(err, b"err") in test_subprocess.py to fix the failure. -- versions: -Python 2.6, Python 3.1, Python 3.4

[issue12642] Python2 documentation of the open() built-in function

2011-07-26 Thread R. David Murray
R. David Murray added the comment: The docs are correct in Python3. The docs for Python2 are not *wrong*, since they indicate only positional parameters and if you use positional parameters it works as documented. (I'm surprised that using keyword arguments works, but I haven't looked at the

[issue9968] Let cgi.FieldStorage have named uploaded file

2011-07-26 Thread phep
phep added the comment: I got my head in a brown paper bag This is obviously not fixed... except in a locally edited checkout :-( Please be kind to the tired me, forget my last message and don't talk about this to my boss, will you ? It's closing time, really. -- _

[issue9968] Let cgi.FieldStorage have named uploaded file

2011-07-26 Thread phep
phep added the comment: Oh, my... As we are working with python2.6 on our servers, I overlooked the fact that tempfile.NamedTemporaryFile was already used in python 3 (fixed in r57595, with not many explanations though). Yet, the problem with short length files (cf. msg141179) is still valid

[issue12463] Calling SocketServer.shutdown() when server_forever() was not called will hang

2011-07-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > When you join a thread which hasn't been started, you get an > exception, not a deadlock. But we don't have a deadlock here: another thread could perfectly well call serve_forever() in the meantime and shutdown() should then return after having stopped the ev

[issue12063] tokenize module appears to treat unterminated single and double-quoted strings inconsistently

2011-07-26 Thread Dustin Haffner
Changes by Dustin Haffner : -- nosy: +dhaffner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12463] Calling SocketServer.shutdown() when server_forever() was not called will hang

2011-07-26 Thread Charles-François Natali
Charles-François Natali added the comment: When you join a thread which hasn't been started, you get an exception, not a deadlock. When you join a newly-created queue, it doesn't wait until an item is submitted to the queue. But honestly I don't really care, since it's such a minor nuisance and

[issue12642] 2.6.6 documentation of the open() built-in function

2011-07-26 Thread Jann Eike Kruse
New submission from Jann Eike Kruse : The documentation page http://docs.python.org/release/2.6.6/library/functions.html?highlight=open#open describes the open() built-in function as open(filename[, mode[, bufsize]]) but the Python interpreter complains: Python 2.6.6 (r266:84292, Dec

[issue12464] tempfile.TemporaryDirectory.cleanup follows symbolic links

2011-07-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: You can simply use support.skip_unless_symlink(). > Charles-François Natali added the comment: > > > If someone suggests how to test for the Windows version, I'll update > > the patch, also to remove the issue reference from the code. > > Well, I don't know

[issue8746] os.chflags() and os.lchflags() are not built when they should be be

2011-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset ca236138f0ce by Ned Deily in branch '2.7': Issue #8746: Use tempfile module to get tempdir and randomize the http://hg.python.org/cpython/rev/ca236138f0ce New changeset 4e4554aa1453 by Ned Deily in branch '3.2': Issue #8746: Use tempfile module to

[issue8746] os.chflags() and os.lchflags() are not built when they should be be

2011-07-26 Thread Ned Deily
Changes by Ned Deily : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12464] tempfile.TemporaryDirectory.cleanup follows symbolic links

2011-07-26 Thread Charles-François Natali
Charles-François Natali added the comment: > If someone suggests how to test for the Windows version, I'll update > the patch, also to remove the issue reference from the code. Well, I don't know Windows, but there's platform.win32_ver() (http://docs.python.org/library/platform.html#platform.wi

[issue9968] Let cgi.FieldStorage have named uploaded file

2011-07-26 Thread phep
phep added the comment: Hi, This was test code :-/. It was not under revision control and unfortunately, as I feared then, it turned out I had to stop working shortly after my last message on the low-priority project that made me report this issue . Yet, I have a tarball of a presumably-not-s

[issue10639] reindent.py should not convert newlines

2011-07-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue12463] Calling SocketServer.shutdown() when server_forever() was not called will hang

2011-07-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: [...] > # note, thread may die in any time! regardles of isAlive() > # if thread dead before calling serve_forever(), will hang here without a > workaround > rpc.shutdown() # from xmlrpcservr. Why do you say it "hangs"? It doesn't hang, it just wa

[issue3526] Customized malloc implementation on SunOS and AIX

2011-07-26 Thread Charles-François Natali
Charles-François Natali added the comment: > Fortunately, it is easy to solve by defining the following in > dlmalloc: > #define HAVE_MORECORE 0 I was expecting this answer ;-) Here's a quick demo, on a Linux box: cf@neobox:~/cpython$ ./python Tools/pybench/pybench.py -n 1

[issue1626300] 'Installing Python Modules' does not work for Windows

2011-07-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I do not know why the msi installer *silently* fails to properly register extensions even when I leave that checked, or how common that it. I have never looked into the issue more because for development, I prefer to run from an IDLE window and be dumped into

[issue1626300] 'Installing Python Modules' does not work for Windows

2011-07-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe I meant that 'python setup' works when the script is named 'setup'. Which is to say, python does not require scripts to have an extension, as someone had thought in writing a patch. -- ___ Python tracker

[issue12629] HTMLParser silently stops parsing with malformed attributes

2011-07-26 Thread Kevin Stock
Kevin Stock added the comment: A workaround is to call close() after feed(), which I supposed I should have done anyways. However, this does not resolve the issue that the two cases behave so differently. The code that causes the difference is lines 351-355 of parser.py, which also has a mi

[issue12641] Remove -mno-cygwin from distutils

2011-07-26 Thread Ruben Van Boxem
Ruben Van Boxem added the comment: I can confirm the option has been removed. For those that don't want to believe a random person's comment on a bugtracker, here's the commit: http://repo.or.cz/w/official-gcc.git/commit/2637551aa9314c46cf4205d435ab5e8944e9ac8a The changelog is a bit cryptic,

[issue10639] reindent.py should not convert newlines

2011-07-26 Thread Jason R. Coombs
Jason R. Coombs added the comment: What do you think about this: https://bitbucket.org/jaraco/cpython-issue10639/changeset/ea63310dddce The patch is a little more intrusive than the Python 3 patch because Python 2.7 doesn't allow specifying the newline to use when writing a file (afaict), but

[issue12463] Calling SocketServer.shutdown() when server_forever() was not called will hang

2011-07-26 Thread Марк Коренберг
Марк Коренберг added the comment: class ThreadedRPC(Thread, SimpleXMLRPCServer): def __init__(self): Thread.__init__(self) SimpleXMLRPCServer.__init__(self) # python bug workaround, which eliminate hang on test_exception self._BaseServer__is_shut_down.set()

[issue12463] Calling SocketServer.shutdown() when server_forever() was not called will hang

2011-07-26 Thread Марк Коренберг
Марк Коренберг added the comment: Why you create variable mirror? -- self.__running = False self.__is_shut_down.set() -- You other code is racy. exception may occur at any time. Why not to test state of __is_shut_down directly ? In any case, serv

[issue12463] Calling SocketServer.shutdown() when server_forever() was not called will hang

2011-07-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > In my case, exception occured in separate thread between the begginig > of the thread and starting loop. > > Main thread has a code that correctly stops that separate thread. It > just calls loop_thread.server.server_close() and after that, calls > loop_threa

[issue12463] Calling SocketServer.shutdown() when server_forever() was not called will hang

2011-07-26 Thread Марк Коренберг
Марк Коренберг added the comment: In my case, exception occured in separate thread between the begginig of the thread and starting loop. Main thread has a code that correctly stops that separate thread. It just calls loop_thread.server.server_close() and after that, calls loop_thread.join()

[issue1626300] 'Installing Python Modules' does not work for Windows

2011-07-26 Thread Jason R. Coombs
Jason R. Coombs added the comment: > > Script run without extensions when run with an explicit python > > command. > Like “python.exe setup” when the file really is setup.py? I’d > never have guessed that. No. Python.exe expects the full path. The only way to execute scripts without the exten

[issue10639] reindent.py should not convert newlines

2011-07-26 Thread Éric Araujo
Éric Araujo added the comment: > I've stripped the undesirable revisions and updated the bitbucket repo > so it now contains three changesets for Python 3.2 and 3.3 and > suggested. hg diff combined with hg import can help you flatten a series of changeset into one. > I don't believe running

[issue10639] reindent.py should not convert newlines

2011-07-26 Thread Jason R. Coombs
Jason R. Coombs added the comment: I've stripped the undesirable revisions and updated the bitbucket repo so it now contains three changesets for Python 3.2 and 3.3 and suggested. I don't believe running the test suite is relevant, as I grepped the test suite for reindent, and there's no refe

[issue10639] reindent.py should not convert newlines

2011-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 070dc6e359fb by Jason R. Coombs in branch '3.2': Fixes #10639: reindent.py should not convert newlines http://hg.python.org/cpython/rev/070dc6e359fb New changeset 826a0208d143 by Jason R. Coombs in branch 'default': Merge with 3.2 Issue #10639: rei

[issue1626300] 'Installing Python Modules' does not work for Windows

2011-07-26 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +jason.coombs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue1626300] 'Installing Python Modules' does not work for Windows

2011-07-26 Thread Éric Araujo
Éric Araujo added the comment: > Windows file associations are so disfunctional that you should not > depend on them being anything in particular. Ah. Do you think I should revert the change I did for distutils docs to recommend running “setup.py spam”? I followed the opinion of the original

[issue10639] reindent.py should not convert newlines

2011-07-26 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: eric.araujo -> jason.coombs stage: patch review -> commit review ___ Python tracker ___ ___ Pyth

[issue12632] Windows GPF with Code Page 65001

2011-07-26 Thread STINNER Victor
STINNER Victor added the comment: > All I'm trying to do is run different versions of Python on the same machine > from the command line. > Some code inside Python now "break" if Python 3.1 is started with Code Page > 65001. Yes, this issue can be seen as a regression introduced in Python 3.

[issue12345] Add math.tau

2011-07-26 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file22397/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue12345] Add math.tau

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

[issue10639] reindent.py should not convert newlines

2011-07-26 Thread Éric Araujo
Éric Araujo added the comment: Okay, I hadn’t seen you in http://docs.python.org/devguide/developers and I don’t recall the URI of the generated file with all names. I’ve asked that your Roundup profile be updated so that you get the Python icon and the possibility to be assigned bugs. If y

[issue10639] reindent.py should not convert newlines

2011-07-26 Thread Jason R. Coombs
Jason R. Coombs added the comment: > I assume you’re not talking about hg.python.org/cpython? My name appears as jason.coombs. But your note does remind me that I need to review the devguide, since it's been a while since I've pushed something. I may also look into linking/merging my two acco

[issue12632] Windows GPF with Code Page 65001

2011-07-26 Thread Bruce Ferris
Bruce Ferris added the comment: Victor, thanks for replying and I've had a quick read of everything that went on for issue #1602. I think there's some misunderstanding in what I'm saying here. Maybe this will help clear up what I'm saying... D:\>chcp Active code page: 850 D:\>chcp 65

[issue12480] urllib2 doesn't use proxy (fieddler2), configed the proxy with ProxyHandler

2011-07-26 Thread Peter Bumbulis
Peter Bumbulis added the comment: proxy_bypass_registry in urllib.py does not handle the ProxyOverride registry value properly: it treats an empty override as *, i.e. bypass the proxy for all hosts. This behavior does not match other programs (e.g. Chrome) and can be easily obtained by spec

[issue11797] 2to3 does not correct "reload"

2011-07-26 Thread Éric Araujo
Éric Araujo added the comment: File looks good, although I’m not sure about the “Copyright 2006 Georg Brandl” line. I also don’t know if stable branches can get this fix. -- ___ Python tracker __

[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-26 Thread Éric Araujo
Éric Araujo added the comment: Roundup can’t connect with SSH, it needs a public HTTP URI. The one I added requires authentication, can you fix that? -- ___ Python tracker ___

[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-26 Thread Éric Araujo
Changes by Éric Araujo : -- hgrepos: +47 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue10639] reindent.py should not convert newlines

2011-07-26 Thread Éric Araujo
Éric Araujo added the comment: > If this changeset is acceptable, I will push the revisions to the > master repo. > I'll rebase and push the current patch as-is, What repo are you talking about, BTW? The developers list in the devguide does not contain your name, so I assume you’re not talki

[issue10639] reindent.py should not convert newlines

2011-07-26 Thread Jason R. Coombs
Jason R. Coombs added the comment: No problem. I'll rebase and push the current patch as-is, and then backport to 3.2 and 2.7 without the option (just raising the error when mixed newlines are encountered). -- ___ Python tracker

[issue10639] reindent.py should not convert newlines

2011-07-26 Thread Ezio Melotti
Changes by Ezio Melotti : Added file: http://bugs.python.org/file22766/900df5732f93.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10639] reindent.py should not convert newlines

2011-07-26 Thread Ezio Melotti
Changes by Ezio Melotti : Removed file: http://bugs.python.org/file22765/900df5732f93.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-26 Thread Éric Araujo
Éric Araujo added the comment: Your tests contain this: +sys.path.append(source) When using regrtest (see http://docs.python.org/devguide/runtests#running), you’ll get a warning that test_packaging altered sys.path. Your code should make sure sys.path is restored to its previous tes

[issue10639] reindent.py should not convert newlines

2011-07-26 Thread Éric Araujo
Éric Araujo added the comment: Thanks for your work. The generated patch is for some reason unreadable, so I looked at the changeset on Bitbucket. It looks good, except that a new option would have to be 3.3-only, whereas the bug could be fixed in 2.7 and 3.2 too. If it’s too bothersome fo

[issue10639] reindent.py converts newlines to platform default

2011-07-26 Thread Éric Araujo
Changes by Éric Araujo : Added file: http://bugs.python.org/file22765/900df5732f93.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue3581] failures in test_uuid

2011-07-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Well, without a valid MAC address the function cannot work... On the other hand, I would not worry too much: uuid._ifconfig_getnode() is an internal function; and since all the other tests pass, uuid.getnode() probably has other ways to get a unique ide

[issue10469] test_socket fails using Visual Studio 2010

2011-07-26 Thread Simon Buchan
Simon Buchan added the comment: Confirming this patch fixes the test_aynsc* tests in my VS10 build. Shouldn't it swap all WSA* defines to protect against this in the future, though? Alternatively, should the check for WSA* codes existing be in Lib\asyncore.py? -- nosy: +Simon ___

[issue3581] failures in test_uuid

2011-07-26 Thread Karl Johan Kleist
Karl Johan Kleist added the comment: > /sbin/ifconfig -a | grep -i -e hwaddr -e ether venet0Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 -- ___

[issue3581] failures in test_uuid

2011-07-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: hum, maybe an issue with the MAC address of your virtual server? What do you get if you run: ifconfig -a | grep -i -e hwaddr -e ether -- ___ Python tracker __

[issue3581] failures in test_uuid

2011-07-26 Thread Karl Johan Kleist
Karl Johan Kleist added the comment: == CPython 2.7.2 (default, Jul 26 2011, 12:29:47) [GCC 4.2.1 (SUSE Linux)] == Linux-2.6.18-028stab091.2-i686-athlon-with-SuSE-10.3-i586 little-endian == /home/kjk/local/src/Python-2.7.2/build/test_python_18037 Testing with flags: sys.flags(debug=0, py3k_w

[issue12380] bytearray methods center, ljust, rjust don't accept a bytearray as the fill character

2011-07-26 Thread Petri Lehtinen
Petri Lehtinen added the comment: Updated the bytearray patch to change documentation and add tests. -- Added file: http://bugs.python.org/file22764/c_format_bytearray.patch ___ Python tracker

[issue12380] bytearray methods center, ljust, rjust don't accept a bytearray as the fill character

2011-07-26 Thread Petri Lehtinen
Changes by Petri Lehtinen : Removed file: http://bugs.python.org/file22757/c_format_buffer.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue12380] bytearray methods center, ljust, rjust don't accept a bytearray as the fill character

2011-07-26 Thread Petri Lehtinen
Changes by Petri Lehtinen : Removed file: http://bugs.python.org/file22756/c_format_bytearray.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue3581] failures in test_uuid

2011-07-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: What is the output of this command? ./python -m test.regrtest -v test_uuid -- nosy: +amaury.forgeotdarc ___ Python tracker ___

[issue3581] failures in test_uuid

2011-07-26 Thread Karl Johan Kleist
Karl Johan Kleist added the comment: If it could be of interest to anybody: When running "make test" after building Python 2.7.2, I get the error message "1 test failed: test_uuid". > uname -a Linux h1488277 2.6.18-028stab091.2 #1 SMP Fri Jun 3 00:02:40 MSD 2011 i686 athlon i386 GNU/Linux T

[issue12464] tempfile.TemporaryDirectory.cleanup follows symbolic links

2011-07-26 Thread Petri Lehtinen
Petri Lehtinen added the comment: Charles-François Natali wrote: > > I agree with Antoine - it's a simple bug > > Alright, in that case I agree (I thought this was considered as a > security issue). Yes. The problem is that cleanup() does not delete the temporary directory but deletes files in

[issue12632] Windows GPF with Code Page 65001

2011-07-26 Thread STINNER Victor
STINNER Victor added the comment: > Finally, the "fix" you suggest would be applicable if python > used WriteConsole or WriteFile... but it does not! It uses > the write() function, which probably calls WriteConsole > or WriteFile at some point, but does not take unicode characters... The iss

[issue12632] Windows GPF with Code Page 65001

2011-07-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: First, a call to abort() is not a GPF: it's not an interrupt from the kernel or the OS, it's just an explicit (albeit brutal) way to exit from an application. There is no potential back door here. Then, the "Fatal Python error:" line is written to stde

[issue12615] add array.zeroes

2011-07-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: Array has been around for a very long time and this functionality has never been requested. That and the fact that we already have a way to do it (the same way as for lists) is a strong indication that this isn't needed at all. -- resolution: ->

[issue12464] tempfile.TemporaryDirectory.cleanup follows symbolic links

2011-07-26 Thread Charles-François Natali
Charles-François Natali added the comment: > I agree with Antoine - it's a simple bug Alright, in that case I agree (I thought this was considered as a security issue). Two comments on the patch: Lib/tempfile.py: # Don't recurse to symlinked directories (issue #12464) Is it really necessary