[issue9552] ssl build under Windows always rebuilds OpenSSL

2010-09-23 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Sorry, previous one contained experimental code for another issue. I've attached correct one. -- Added file: http://bugs.python.org/file18992/py3k_better_build_ssl.zip ___ Python tracker

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

2010-09-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: I fail to see the issue. The documentation clearly says, above the block of all the EX_* constants: Note Some of these may not be available on all Unix platforms, since there is some variation. These constants are defined where they are defined by the under

[issue459007] Document sys.path on Windows

2010-09-23 Thread MunSic JEONG
Changes by MunSic JEONG : -- nosy: +ruseel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue7519] ConfigParser can't read files with BOM markers

2010-09-23 Thread Andrew Ziem
Changes by Andrew Ziem : -- nosy: +AndrewZiem ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

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

2010-09-23 Thread Kamil Kisiel
Kamil Kisiel added the comment: I mostly wanted to just report the issue rather than propose a solution, so I'm in favor of whatever everyone feels is best. As for how I came across the issue, it was mostly curiosity, I wanted to see the numerical value of all the os.EX_* constants and was pr

[issue9936] trace misreports "missing" lines

2010-09-23 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- versions: +Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue1763] Winpath module - easy access to Windows directories like My Documents

2010-09-23 Thread R. David Murray
Changes by R. David Murray : -- status: closed -> languishing ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue1794] Hot keys must work in any keyboard layout

2010-09-23 Thread R. David Murray
R. David Murray added the comment: it does seem that the consensus is that this is not a generally desirable feature. -- nosy: +r.david.murray -BreamoreBoy resolution: -> rejected stage: -> committed/rejected status: open -> closed ___ Python trac

[issue9936] trace misreports "missing" lines

2010-09-23 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +eli.bendersky, terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue9936] trace misreports "missing" lines

2010-09-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching a patch that fixes this issue. Need to add a unit test. -- assignee: -> belopolsky components: +Library (Lib) keywords: +patch stage: -> unit test needed type: -> behavior versions: +Python 3.2 Added file: http://bugs.python.org

[issue9936] trace misreports "missing" lines

2010-09-23 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : With the attached traceme.py, $ python -m trace -m -s -c traceme.py lines cov% module (path) 250% traceme (traceme.py) $ cat traceme.cover x = (1, >> 2, 1: 3) This is wrong because all lines in traceme.py

[issue6608] asctime does not check its input

2010-09-23 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue9784] _msi.c warnings under 64-bit Windows

2010-09-23 Thread Jon Anglin
Jon Anglin added the comment: issue9784.diff contains a patch that compiles clean on 32 and 64 bit Windows. This patch is exactly what Amaury Forgeot d'Arc recommended in msg115750. -- keywords: +patch Added file: http://bugs.python.org/file18989/issue9784.diff ___

[issue2209] mailbox module doesn't support compressed mbox

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

[issue9783] _elementtree.c warnings under 64-bit Windows

2010-09-23 Thread Jon Anglin
Jon Anglin added the comment: issue9783.diff provides a patch that will compile clean on 32 and 64 bit Windows systems. I tried to avoid explicit casts where I could, but it was not always possible. I have ported a lot of my company's code to 64 bit (all Windows based). In my experience man

[issue6608] asctime does not check its input

2010-09-23 Thread MunSic JEONG
MunSic JEONG added the comment: Thank you for a kind guidance. I uploaded patch with - function name "checktm" - add comment above gettmarg - move comment in "checktm" to (above function signature) - change comment little bit to mention issue6608 - "{" on new line -- Added fil

[issue9935] Faster pickling of instances

2010-09-23 Thread Antoine Pitrou
New submission from Antoine Pitrou : This is a bunch of assorted optimizations which make pickling of user-defined classes quite a bit faster. Example on a minimal instance: $ python -m timeit -s "import pickle; import collections, __main__; __main__.X=type('X', (), {}); x=X()" "pickle.dumps(

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

2010-09-23 Thread Brian Curtin
Brian Curtin added the comment: +1 for removing it from the docs. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

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

2010-09-23 Thread R. David Murray
R. David Murray added the comment: s/linux/unix/ -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

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

2010-09-23 Thread R. David Murray
R. David Murray added the comment: Perhaps this constant existed at some point on some linux systems...google found one comment about it referencing posix.2. I also found it mentioned in a specific version of sendmail, and in bash. When it appears it seems to most often have the value 127.

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

2010-09-23 Thread Brian Curtin
Brian Curtin added the comment: The following code exists in Modules/posixmodule.c 8167 /* These come from sysexits.h */ ... 8216 #ifdef EX_NOTFOUND 8217 if (ins(d, "EX_NOTFOUND", (long)EX_NOTFOUND)) return -1; 8218 #endif /* EX_NOTFOUND */ sysexits.h on my Mac has no mention of EX_NO

[issue4661] email.parser: impossible to read messages encoded in a different encoding

2010-09-23 Thread Dan Buch
Changes by Dan Buch : -- nosy: +meatballhat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue9934] Python Docs Typo

2010-09-23 Thread Retro
New submission from Retro : http://docs.python.org/distutils/sourcedist.html#manifest-related-options Please visit the above link and note the typo in: -o is a sortcut for --manifest-only. Should be: -o is a shortcut for --manifest-only. The word "sortcut" is a typo. Please fix it to "shortcut

[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

[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

[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

[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

[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

[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 ___ _

[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

[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: 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 _

[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(

[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 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

[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

[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

[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

[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

[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 __

[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.

[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
Brian Curtin added the comment: Committed to py3k in r84988 using Nick's second suggestion. -- resolution: -> fixed stage: needs patch -> committed/rejected ___ Python tracker _

[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

[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

[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 ___ ___

[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 ___ _

[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

[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 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 __

[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

[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 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 ___

[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 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: 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

[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 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

[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,

[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 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 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

[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

[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

[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

[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 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

[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

[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

[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

[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-

[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

[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

[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 __

[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

[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

[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

[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

[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
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 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

[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
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

[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

[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/file18977/issue6608-timemodule.patch ___ Python tracker ___ ___ Python-bugs-list m

[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

[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

[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. ---

[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

[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 _

[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

[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

[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/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/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/file18953/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[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

[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

[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://

  1   2   >