[issue9919] gdbinit lineno result is one line in excess

2010-09-23 Thread qpatata
qpatata added the comment: Well, me also I'm not expert in gdb. Solution looks nice and previous testcase now gives the correct answer. Thanks a lot for your help. -- ___ Python tracker __

[issue9924] sqlite3 SELECT does not BEGIN a transaction, but should according to spec

2010-09-23 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ghaering versions: -Python 2.5, Python 2.6, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list ma

[issue9920] test_cmath on atan fails on AIX

2010-09-23 Thread Sébastien Sablé
Sébastien Sablé added the comment: Thanks for the quick reply Mark. I tried with pydebug and got the same error. Here is the trace for your last question: Python 3.2a2+ (py3k:84969M, Sep 23 2010, 10:55:24) [C] on aix6 Type "help", "copyright", "credits" or "license" for more information. >>>

[issue1743] IDLE fails to launch

2010-09-23 Thread Stephan Bellegy
Stephan Bellegy added the comment: Reproduced today with Python 2.6.6 and 2.7 on Win7 32 bits. Deleting .idlerc directory made it. Doesn't look like fixed guys ! ;-) -- nosy: +Stephan.Bellegy versions: +Python 2.6 -Python 2.5, Python 3.1 ___ Python

[issue9922] subprocess.getstatusoutput can fail with utf8 UnicodeDecodeError

2010-09-23 Thread Ned Deily
Ned Deily added the comment: In Python 3, subprocess.Popen returns stdout as "bytes" rather than "string" so it seems reasonable that subprocess.getstatusoutput should do the same. >>> subprocess.Popen(['dd if=/dev/random bs=1024 count=1'], shell=True, >>> stdout=subprocess.PIPE).communicate(

[issue9922] subprocess.getstatusoutput can fail with utf8 UnicodeDecodeError

2010-09-23 Thread Ned Deily
Changes by Ned Deily : Added file: http://bugs.python.org/file18972/issue9922-31.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1175004] Export more libreadline API functions

2010-09-23 Thread strank
Changes by strank : -- nosy: +strank ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue9582] documentation line needs rewording

2010-09-23 Thread MunSic JEONG
MunSic JEONG added the comment: uploaded patch. patch could be applied to 2.7-maint and p3k successfuly. single word insert. -- nosy: +ruseel Added file: http://bugs.python.org/file18973/issue9582.patch ___ Python tracker

[issue1743] IDLE fails to launch

2010-09-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: Please submit this as a new bug issue, preferably with precise instructions on how to reproduce it. Can you provide some clue how the file became hidden in the first place? -- ___ Python tracker

[issue9920] test_cmath on atan fails on AIX

2010-09-23 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks; so it's probably not an optimization bug, but rather a math library bug somewhere. And thanks for the tanh result; unfortunately I asked the wrong question---I meant to ask about atanh(complex(-0.0, 0.0)) :( Analysis: atan(z) is computed internally

[issue9924] sqlite3 SELECT does not BEGIN a transaction, but should according to spec

2010-09-23 Thread Gerhard Häring
Gerhard Häring added the comment: Yes Mike. Avoiding unnecessary locks was exactly the reason for this behaviour. I agree that for serializable transactions I'd need to make some changes. -- ___ Python tracker ___

[issue9922] subprocess.getstatusoutput can fail with utf8 UnicodeDecodeError

2010-09-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue9890] Visual C++ Runtime Library Error is there a fix?

2010-09-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Can you try to open a Command Prompt and type (with the quotes): "C:\Program Files\Python\python.exe" "C:\Program Files\Python\Lib\idle\idle.py" Do you see error messages? -- nosy: +amaury.forgeotdarc ___

[issue9920] test_cmath on atan fails on AIX

2010-09-23 Thread Sébastien Sablé
Sébastien Sablé added the comment: No problem; I tried with a different compiler this time (gcc instead of xlc) and with -O0 just to be sure it is not a compiler issue. I had the same error. I tried your test and you are right, the problem happens with log1p dropping the sign: >>> import mat

[issue9924] sqlite3 SELECT does not BEGIN a transaction, but should according to spec

2010-09-23 Thread Randall Nortman
Changes by Randall Nortman : -- nosy: +rnortman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue9868] test_locale leaves locale changed

2010-09-23 Thread Michael Foord
Michael Foord added the comment: unittest *can't* know which setUp methods have already been called if an error occurs in one of them (because they are called explicitly by the sub-classes and not by unittest itself). Given this, the specific fix suggested seems good. --

[issue9925] Idle doesn't launch

2010-09-23 Thread Stephan Bellegy
New submission from Stephan Bellegy : Environment is Win7, 32bits. User has Admin rights. I haven't coded in Python at the office for a while and had a little script to write. Thus, I decided to upgrade from 2.6 to 2.7 (that is : 2.6 was already there and functionnal as far as I remind it and

[issue1743] IDLE fails to launch

2010-09-23 Thread Stephan Bellegy
Stephan Bellegy added the comment: New bug reported here http://bugs.python.org/issue9925 -- ___ Python tracker ___ ___ Python-bugs-li

[issue9552] ssl build under Windows always rebuilds OpenSSL

2010-09-23 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Hello. Probably I found the better solution for this issue. * build_ssl.py always runs before _ssl.vcproj or _hashlib.vcproj is built. (If entire solution is built, run only onece) * When OpenSSL sources are modified, because build_ssl.py always runs, c

[issue9552] ssl build under Windows always rebuilds OpenSSL

2010-09-23 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- resolution: fixed -> status: closed -> open versions: +Python 2.7, Python 3.1 ___ Python tracker ___ ___

[issue9582] documentation line needs rewording

2010-09-23 Thread Brian Curtin
Brian Curtin added the comment: Committed in r84971 and r84972. Thanks. -- assignee: d...@python -> brian.curtin nosy: +brian.curtin resolution: -> fixed stage: needs patch -> committed/rejected ___ Python tracker

[issue5497] openssl compileerror with original source

2010-09-23 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: PCBuild on py3k have fix for this. We'll need to investigate/merge in other branches and version. -- ___ Python tracker ___

[issue9552] ssl build under Windows always rebuilds OpenSSL

2010-09-23 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: - Module/_ssl.c or Module/_hashlib.c are rebuilt + Module/_ssl.c or Module/_hashlib.c won't be rebuilt -- ___ Python tracker ___

[issue9582] documentation line needs rewording

2010-09-23 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue9868] test_locale leaves locale changed

2010-09-23 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: > unittest *can't* know which setUp methods have already been called if > an error occurs in one of them (because they are called explicitly by > the sub-classes and not by unittest itself). Well, C++ constructor/destructor behaves like that when constructor

[issue9868] test_locale leaves locale changed

2010-09-23 Thread Michael Foord
Michael Foord added the comment: Destructors are special cased in many languages and tearDown is not a destructor. More importantly though the change you suggest would be backwards incompatible. The 'correct' way to do this in new code is to use cleanUp functions which *are* called even if a

[issue678250] test_mmap failling on AIX

2010-09-23 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file18953/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue678250] test_mmap failling on AIX

2010-09-23 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file18954/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue678250] test_mmap failling on AIX

2010-09-23 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file18955/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue678250] test_mmap failling on AIX

2010-09-23 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file18956/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue678250] test_mmap failling on AIX

2010-09-23 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file18957/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue9926] Wrapped TestSuite subclass does not get __call__ executed

2010-09-23 Thread Martin v . Löwis
New submission from Martin v. Löwis : In Python 3.2, when inheriting from TestSuite, it is no longer possible to override __call__ (e.g. to introduce a TestSuite setUp and tearDown). The __call__ method will not be called anymore. Instead, if the object has a _wrapped_run defined (which it will

[issue9925] Idle doesn't launch

2010-09-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: Is that problem reproducible? I.e. what did you do, in what order, and: when you do it again, will the problem occur again? -- nosy: +loewis ___ Python tracker _

[issue9868] test_locale leaves locale changed

2010-09-23 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: > Destructors are special cased in many languages and tearDown is not a > destructor. Yes, but they are similar. > More importantly though the change you suggest would be > backwards incompatible. > The 'correct' way to do this in new code is to use cleanU

[issue5762] AttributeError: 'NoneType' object has no attribute 'replace'

2010-09-23 Thread Brian Bernstein
Brian Bernstein added the comment: Experiencing this issue too. It occurs when an xml element contains a blank xmlns attribute, e.g.: {{{ }}} When toxml() is called on a minidom document with this attribute, the exception occurs. I am including a simple script that causes this crash. ---

[issue5762] AttributeError: 'NoneType' object has no attribute 'replace'

2010-09-23 Thread Brian Bernstein
Changes by Brian Bernstein : -- versions: +Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue6608] asctime does not check its input

2010-09-23 Thread MunSic JEONG
MunSic JEONG added the comment: As alexandre.vassalotti pointed in msg107596, I added precondition check. * extracted the range check from time_strftime as "is_valid_tm". * time_asctime, time_strftime call "is_valid_tm" * testcase for both asctime and strftime (abbeyj's work) I splited pat

[issue6608] asctime does not check its input

2010-09-23 Thread MunSic JEONG
Changes by MunSic JEONG : Added file: http://bugs.python.org/file18977/issue6608-timemodule.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue6608] asctime does not check its input

2010-09-23 Thread MunSic JEONG
Changes by MunSic JEONG : Removed file: http://bugs.python.org/file18977/issue6608-timemodule.patch ___ Python tracker ___ ___ Python-bugs-list

[issue6608] asctime does not check its input

2010-09-23 Thread MunSic JEONG
Changes by MunSic JEONG : Added file: http://bugs.python.org/file18978/issue6608-testcase.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue9927] Leak around GetFinalPathNameByHandle (Windows)

2010-09-23 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : I've found there are leaks around GetFinalPathNameByHandle in Modules/posixmodule.c. (Leaks when function fails) I hope attached patch will fix this. -- components: Windows files: py3k_fix_leak_around_GetFinalPathNameByHandle.patch keywords: patch

[issue9926] Wrapped TestSuite subclass does not get __call__ executed

2010-09-23 Thread Michael Foord
Michael Foord added the comment: Right, _wrapped_run is private and not intended to be overridden. Perhaps slightly ironically (for this particular bug report) is that the change was introduced to support class and module level setUp and tearDown (similar to the use-case it now blocks). Ano

[issue9927] Leak around GetFinalPathNameByHandle (Windows)

2010-09-23 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: About buffer size, GetFinalPathNameByHandle may return the length or string or the size of required buffer size (the length of striing + 1) depending on platforms and ANSI/WIDE version. If function returns the length of string buffer size, buf_size + 1 is bu

[issue9927] Leak around GetFinalPathNameByHandle (Windows)

2010-09-23 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- Removed message: http://bugs.python.org/msg117199 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue9927] Leak around GetFinalPathNameByHandle (Windows)

2010-09-23 Thread Brian Curtin
Changes by Brian Curtin : -- components: +Extension Modules nosy: +brian.curtin, jaraco stage: -> patch review type: -> resource usage ___ Python tracker ___ ___

[issue9927] Leak around GetFinalPathNameByHandle (Windows)

2010-09-23 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I cannot test this directly. Thank you. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue9926] Wrapped TestSuite subclass does not get __call__ executed

2010-09-23 Thread Michael Foord
Michael Foord added the comment: Hmmm... 2.7 has already been released and has the same issue, so 'drastic' changes (like renaming BaseTestSuite back to TestSuite) are probably out. -- components: +Library (Lib) versions: +Python 2.7 ___ Python trac

[issue9919] gdbinit lineno result is one line in excess

2010-09-23 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- components: +Demos and Tools versions: +Python 3.2 -Python 2.5 ___ Python tracker ___ ___ Python-b

[issue9801] Can not use append/extend to lists in a multiprocessing manager dict

2010-09-23 Thread James Hutchison
James Hutchison added the comment: Is there a way to get this so it behaves more intuitively? You'd think adding a managed list to a managed dictionary (or another managed list) or making a deep copy would work but it still doesn't. When you get an item from a managed data structure, it seems

[issue9287] Minor fix in test_file2k.OtherFileTests.testOpenDir

2010-09-23 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I've committed your fix in r84975. Thank you. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue9925] Idle doesn't launch

2010-09-23 Thread Stephan Bellegy
Stephan Bellegy added the comment: it is reproductible. At first, Python 2.6.? was installed. i tried to install 2.7 and got the problem uninstalled 2.7 tried 2.6.6 and got the problem then google, delete dir and got it running -- ___ Python tracke

[issue9927] Leak around GetFinalPathNameByHandle (Windows)

2010-09-23 Thread Brian Curtin
Brian Curtin added the comment: The tests pass here, but I haven't thoroughly reviewed the patch yet. After a quick glance it generally looks ok, although I wish we didn't have so much duplication. -- ___ Python tracker

[issue6608] asctime does not check its input

2010-09-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The patch looks good to me. Just a few nitpicks: the local convention seems to be no underscores in helper functions such as gettmarg. I would call is_valid_tm, "checktm" instead. Also, predicate-like naming (is_...) suggests a function without side-

[issue1675951] Performance for small reads and fix seek problem

2010-09-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you very much! I have kept the second approach (use PaddedFile at all times), since it is more regular and minimizes the probability for borderline cases. As for the supposed performance slowdown, it doesn't seem significant. On large blocks of data, I

[issue9360] nntplib cleanup

2010-09-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, unescaped utf-8 is explicitly allowed in headers by RFC 3977: The content of a header SHOULD be in UTF-8. However, if an implementation receives an article from elsewhere that uses octets in the range 128 to 255 in some other manner, it MAY pass

[issue9272] CGIHTTPServer poisons os.environ

2010-09-23 Thread R. David Murray
R. David Murray added the comment: Anatoly, last we heard you did not wish to sign the contributor agreement and so were not submitting patches. We are respecting your wishes by not applying this. Have you changed your mind? -- ___ Python tracker

[issue9928] weird oddity with bz2 context manager

2010-09-23 Thread Antoine Pitrou
New submission from Antoine Pitrou : I haven't investigated but this is weird (especially the fact that it doesn't *always* happen). There might be a problem with SETUP_WITH or perhaps the method cache: >>> import bz2 >>> f = bz2.BZ2File('foo.bz2', 'wb') >>> with f: pass ... Traceback (most r

[issue9928] weird oddity with bz2 context manager

2010-09-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, it is because bz2 doesn't call PyType_Ready() but instead sets some field manually. Perhaps we could have a guard somewhere that raises a fatal error when a C extension type hasn't been properly readied? In the meantime, this patch seems to solve th

[issue9928] weird oddity with bz2 context manager

2010-09-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/9/23 Antoine Pitrou : > > Antoine Pitrou added the comment: > > Actually, it is because bz2 doesn't call PyType_Ready() but instead sets some > field manually. Perhaps we could have a guard somewhere that raises a fatal > error when a C extension type

[issue9929] subprocess.Popen unbuffered not work (windows)

2010-09-23 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : Following script hangs on Python3.x. from subprocess import * import sys p = Popen([sys.executable, "-c", "import sys; print(sys.stdin.read(1))"], stdin=PIPE) p.stdin.write(b'x') p.wait() This is because unbuffered functionality of subprocess.Popen is d

[issue9929] subprocess.Popen unbuffered not work (windows)

2010-09-23 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Interestingly, following code also hangs. Maybe I'm misunderstanding the meaning of *bufsize* from subprocess import * import sys p = Popen([sys.executable, "-c", "import sys; print(sys.stdin.read(1))"], stdin=PIPE) p.stdin.write(b'xx') # size 2 p.wait

[issue9272] CGIHTTPServer poisons os.environ

2010-09-23 Thread anatoly techtonik
anatoly techtonik added the comment: I still haven't received answers on the licensing questions in developer's mailing list. After the amount of negative feedback received I decided not to continue. But I am still interested in constructive discussion to get satisfying and full answers to th

[issue9930] Incorrect semantics of __radd__ method for builtin types

2010-09-23 Thread Mark Shannon
New submission from Mark Shannon : Attached program fails. See comments in file for details and possible diagnosis -- files: binary_op_mimic.py messages: 117216 nosy: Mark.Shannon priority: normal severity: normal status: open title: Incorrect semantics of __radd__ method for builtin typ

[issue9272] CGIHTTPServer poisons os.environ

2010-09-23 Thread Georg Brandl
Georg Brandl added the comment: ISTM that the attached patch is trivial enough not to require any contributor agreement or copyright assignment, at least if we change "Ma Test CGI Server v1.0" to something neutral. -- ___ Python tracker

[issue9930] Incorrect semantics of __radd__ method for builtin types

2010-09-23 Thread R. David Murray
R. David Murray added the comment: Could you post some simple examples and an explanation of what you think the problem is? I have no clue what problem your code is trying to show just by looking at it. (Maybe it will be clear to someone else, but still, simple examples are usually better,

[issue9930] Incorrect semantics of __radd__ method for builtin types

2010-09-23 Thread Georg Brandl
Georg Brandl added the comment: This is indeed weird. PyNumber_Add ends up calling compare_add with the float as its first argument, which is impossible to do from Python. And the wrap_binaryfunc_r check for subtypes means that compare.__radd__ claims it doesn't support floats either. So f

[issue9921] os.path.join('x','') behavior

2010-09-23 Thread Brian Brazil
Brian Brazil added the comment: The behaviour is a bit more nuanced: >>> os.path.join('x', '') 'x/' >>> os.path.join('x', '', 'y') 'x/y' >>> os.path.join('x', '', 'y', '', '') 'x/y/' >>> os.path.join('', 'x') 'x' I'm unsure how to word this best, maybe "non-trailing empty paths are ignored"? -

[issue9930] Incorrect semantics of __radd__ method for builtin types

2010-09-23 Thread Mark Dickinson
Mark Dickinson added the comment: If I understand correctly, the complaint is that (for example) in Python 3.x, we have: Python 3.1.2 (r312:79147, Aug 20 2010, 20:06:00) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> fl

[issue9930] Incorrect semantics of __radd__ method for builtin types

2010-09-23 Thread Mark Dickinson
Changes by Mark Dickinson : -- versions: +Python 3.2 -Python 2.5, Python 2.6, Python 2.7 ___ Python tracker ___ ___ Python-bugs-list ma

[issue9930] Incorrect semantics of __radd__ method for builtin types

2010-09-23 Thread Mark Dickinson
Mark Dickinson added the comment: > PyNumber_Add ends up calling compare_add with the float as its first > argument, which is impossible to do from Python. [Assuming you mean complex_add.] I think this bit is expected, though. complex_add (or float_add, or whatever) provides both the __add__

[issue9930] Incorrect semantics of __radd__ method for builtin types

2010-09-23 Thread Georg Brandl
Georg Brandl added the comment: Hmm, not sure. I'm referring to Objects/abstract.c, binary_op1, which tries to call both slotv and slotw. -- ___ Python tracker ___

[issue9815] test_tarfile sometimes ends with error "Cannot remove dir"

2010-09-23 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- keywords: +needs review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue9930] Incorrect semantics of __radd__ method for builtin types

2010-09-23 Thread Mark Dickinson
Mark Dickinson added the comment: It looks like Mark is right: the wrap_binaryfunc_r subtype check should just be removed. The corresponding check in 2.x only occurs for types which don't have the Py_TPFLAGS_CHECKTYPES flag set. As of 2.7, *all* of the numeric types have this flag set (in

[issue9930] Incorrect semantics of __radd__ method for builtin types

2010-09-23 Thread Georg Brandl
Georg Brandl added the comment: That's encouraging. I would suggest making this fix; the fact that Jython and IronPython also get this right is another reason. -- ___ Python tracker __

[issue9808] Implement os.getlogin on Windows

2010-09-23 Thread Brian Curtin
Brian Curtin added the comment: Committed in r84983. Thanks! -- components: +Extension Modules -Library (Lib) resolution: accepted -> fixed stage: patch review -> committed/rejected ___ Python tracker _

[issue9930] Incorrect semantics of __radd__ method for builtin types

2010-09-23 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed in r84984 (py3k), r84986 (release31-maint). Thanks for the report! -- assignee: -> mark.dickinson resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue9928] weird oddity with bz2 context manager

2010-09-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch committed in r84980 (3.2), r84981 (3.1) and r84982 (2.7). -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue9815] test_tarfile sometimes ends with error "Cannot remove dir"

2010-09-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Adding Michael for review of py3k_fix__AssertRaisesContext.patch. -- nosy: +michael.foord ___ Python tracker ___ ___

[issue9931] test_ttk_guionly hangs on XP5

2010-09-23 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : test_ttk_guionly hangs on x86 XP5 buldbot. But it doesn't hang on test_tk. Former shows widget but latter doesn't on my machine. http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%203.x/builds/1348/steps/test/logs/stdio -- components: Test

[issue9932] List of sets initialization behavior problems

2010-09-23 Thread Adam Nemecek
New submission from Adam Nemecek : I'm not sure if this is the intended behavior, but it seems unusual to me. a = [set([]) for i in range(2)] evaluates to a list [set([]),set([])] and b= 2*[set([])] evaluates to [set([]),set([])]. Nothing wrong here. Nevertheless, if I do a[0].add(1), a has the

[issue9790] ntpath contains imports inside functions

2010-09-23 Thread Brian Curtin
Brian Curtin added the comment: Committed to py3k in r84988 using Nick's second suggestion. -- resolution: -> fixed stage: needs patch -> committed/rejected ___ Python tracker _

[issue9808] Implement os.getlogin on Windows

2010-09-23 Thread Jon Anglin
Changes by Jon Anglin : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue9790] ntpath contains imports inside functions

2010-09-23 Thread Brian Curtin
Changes by Brian Curtin : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue9401] automatically try forward operations when reverse operations are NotImplemented

2010-09-23 Thread R. David Murray
R. David Murray added the comment: No, but you could bring it up on python-ideas. (It would have to wait until after the moratorium in any case.) -- nosy: +r.david.murray ___ Python tracker __

[issue9905] subprocess.Popen fails with stdout=PIPE, stderr=PIPE if standard descriptors (0, 1, 2) are closed.

2010-09-23 Thread R. David Murray
Changes by R. David Murray : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue1385] hmac module violates RFC for some hash functions, e.g. sha512

2010-09-23 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue2052] Allow changing difflib._file_template character encoding.

2010-09-23 Thread R. David Murray
R. David Murray added the comment: I believe that charset is the standard default for html, which would make this a feature request. -- assignee: tim_one -> nosy: +r.david.murray stage: unit test needed -> needs patch type: behavior -> feature request versions: +Python 3.2 -Python 2.6

[issue9932] List of sets initialization behavior problems

2010-09-23 Thread Eric Smith
Eric Smith added the comment: This is well defined in Python and will not change. -- nosy: +eric.smith resolution: -> rejected stage: -> committed/rejected status: open -> closed type: -> feature request ___ Python tracker

[issue8879] Implement os.link on Windows

2010-09-23 Thread Brian Curtin
Brian Curtin added the comment: Here's a patch of the functionality. The doc change is small and easy, I'll add it shortly. One oddity is that os.path.samefile is False for a link and its source, but True for a symlink and its source. I find that to be quite odd, but stepping through the cod

[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) <= sizeof(long)

2010-09-23 Thread R. David Murray
R. David Murray added the comment: It appears as though this was fixed as part of issue 1983. Antoine, can you confirm that? -- nosy: +pitrou, r.david.murray -BreamoreBoy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0 ___ Pyt

[issue8879] Implement os.link on Windows

2010-09-23 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: With following implementation, issamefile return True for hard link. I heard GetFinalPathNameByHandle returns different paths for hard links. >>> import nt, os >>> def issamefile(path1, path2): ... fd1 = os.open(path1, os.O_RDONLY) ... fd2 = os.open(

[issue3873] Unpickling is really slow

2010-09-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a fixed version of Victor's bench (didn't work on 2.x). -- Added file: http://bugs.python.org/file18983/bench_pickle.py ___ Python tracker _

[issue6706] asyncore's accept() is broken

2010-09-23 Thread Dave Malcolm
Dave Malcolm added the comment: giampaolo: did you ever rewrite the patch? For reference to other users: http://code.google.com/p/pyftpdlib/source/browse/trunk/pyftpdlib/ftpserver.py Note the complexity of the two handle_accept implementations in that file; both of them begin: try:

[issue3873] Unpickling is really slow

2010-09-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: And here is new performance patch (Victor's patch was outdated because of heavy changes incorporated from Unladen Swallow). Results of bench_pickle.py are as follows: * Python 2.7 (cPickle): Protocol 0 - dump: 189.8 ms - load (seekable=False): 318.1 ms - loa

[issue9905] subprocess.Popen fails with stdout=PIPE, stderr=PIPE if standard descriptors (0, 1, 2) are closed.

2010-09-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: issue6610 looks very similar. issue9074 may also be related. -- nosy: +amaury.forgeotdarc ___ Python tracker ___ _

[issue9888] int overflow in datetime causes seg fault from datetime.ctime()

2010-09-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: yes, this was fixed by issue7150. -- nosy: +amaury.forgeotdarc resolution: -> out of date status: open -> closed superseder: -> datetime operations spanning MINYEAR give bad results ___ Python tracker

[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) <= sizeof(long)

2010-09-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: The pid_t issue was fixed but not uid_t/gid_t. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue9933] os module does not have the documented EX_NOTFOUND attribute

2010-09-23 Thread Kamil Kisiel
New submission from Kamil Kisiel : The library documentation (http://docs.python.org/library/os.html) states: """ os.EX_NOTFOUND Exit code that means something like “an entry was not found”. Availability: Unix. New in version 2.3. """ However, on both my Linux and OS X installs of OS X this h

[issue9933] os module does not have the documented EX_NOTFOUND attribute

2010-09-23 Thread Kamil Kisiel
Kamil Kisiel added the comment: That should have read "Linux and OS X installs of *Python*". -- ___ Python tracker ___ ___ Python-bugs

[issue9790] ntpath contains imports inside functions

2010-09-23 Thread Brian Curtin
Brian Curtin added the comment: Nick noticed another issue with this, and it actually won't work on pre-Vista versions since we load GetFinalPathNameByHandle at runtime, which is why we had that NotImplementedError. Attaching a patch which should handle this. We only try the import on Windows

  1   2   >