[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-08 Thread Darryl Miles
Darryl Miles added the comment: In order to build Python with a specific version of OpenSSL followed the CYGWIN instructions and edited Modules/Setup to make it read (note - I added "-L$(SSL)" into the linker options too, since by default on CentOS 5.4 i386 OpenSSL build in static library mod

[issue8354] siginterrupt with flag=False is reset when signal received

2010-04-08 Thread Andrew Bennetts
New submission from Andrew Bennetts : The effect of signal.siginterrupt(somesig, False) is reset the first time a that signal is received. This is not the documented behaviour, and I do not think this is a desireable behaviour. It renders siginterrupt effectively useless at providing the rob

[issue8352] imp.find_module of a .py ending dir causes glibc double free crash

2010-04-08 Thread Shashwat Anand
Shashwat Anand added the comment: mkdir bla.py; python -c 'import imp; imp.find_module("bla", ["."])' This causes bpython to crash after the first input char if such a directory exist. I am sure you do not mean 'bpython intepretor' here. -- nosy: +l0nwlf _

[issue4007] make clean fails to delete .a and .so.X.Y files

2010-04-08 Thread Shashwat Anand
Shashwat Anand added the comment: skip.montanaro forgot to attached the patch obviously, however the issue is trivial but there i.e. the presence of libpython.a file. -- nosy: +l0nwlf ___ Python tracker __

[issue7443] test.support.unlink issue on Windows platform

2010-04-08 Thread Tim Golden
Tim Golden added the comment: This is basically a rerun of this discussion a couple of years ago: http://mail.python.org/pipermail/python-dev/2008-April/078333.html The problem certainly still happens against trunk -- I have a semi-aggressive test-harness which can cause it to reproduce pre

[issue8353] Negative exponentiation behaving oddly in python shell

2010-04-08 Thread Chris Ward
Chris Ward added the comment: Thanks for clearing that up and pointing me in the right direction. I should have tested print first. The assumption was based on the evaluation of (-4) ** 2 within an expression, which does return correctly. I hadn't made the distinction that the parentheses mad

[issue8350] os.mkdir doc comment is incorrect

2010-04-08 Thread Shashwat Anand
Shashwat Anand added the comment: Tested on trunk. 11:46:02 l0nwlf-MBP:python-svn $ ./python.exe Python 2.7a4+ (trunk:79888M, Apr 9 2010, 11:41:22) [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import posix >

[issue8353] Negative exponentiation behaving oddly in python shell

2010-04-08 Thread Martin v . Löwis
Martin v. Löwis added the comment: This is expected behavior. The power operator binds with higher precedence than the unary minus: http://docs.python.org/reference/expressions.html#unary-arithmetic-and-bitwise-operations Therefore, your term is interpreted as -(4 ** 2) As for "it only affe

[issue8353] Negative exponentiation behaving oddly in python shell

2010-04-08 Thread Chris Ward
New submission from Chris Ward : When using exponentiation interactively in the python shell, it returns all negative results when a negative number is the input. For example: -4 ** 2 will return -16 -4 ** 2 should evaluate as -4 * -4, which correctly returns 16 This does not occur when using

[issue7978] SocketServer doesn't handle syscall interruption

2010-04-08 Thread Vetoshkin Nikita
Vetoshkin Nikita added the comment: I vote for making a global wrapper. As neologix pointed - many other modules can be (or are) affected. Futher found bugs could be fixed using that global wrapper. -- ___ Python tracker

[issue4007] make clean fails to delete .a and .so.X.Y files

2010-04-08 Thread Martin v . Löwis
Martin v. Löwis added the comment: If it did eat the patch, we would have lost it by now: there is nothing in the history that shows that a file was attached at some point. More likely, Skip forgot to attach it when submitting this report. -- ___ P

[issue8351] Suppress large diffs in unitttest.TestCase.assertSequenceEqual()

2010-04-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue8026] strftime bug when timedelta is negative

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: Confirmed on trunk, needs a simpler repro :) -- components: +Library (Lib) -None nosy: +ajaksu2 priority: -> normal stage: -> test needed versions: +Python 2.6, Python 2.7 -Python 2.5 ___ Python tracker

[issue4007] make clean fails to delete .a and .so.X.Y files

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: Skip, was there a patch here? I can't find it in the bug lists, so I think we both missed it? Pinging Martin in case the tracker ate the patch :) -- nosy: +ajaksu2, loewis stage: -> needs patch versions: +Python 2.7, Python 3.1 ___

[issue8351] Suppress large diffs in unitttest.TestCase.assertSequenceEqual()

2010-04-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti priority: -> normal stage: -> patch review versions: +Python 3.2 -Python 3.3 ___ Python tracker ___

[issue3985] removed string module from distutils [patch]

2010-04-08 Thread Ezio Melotti
Ezio Melotti added the comment: Patch looks good. There's only a missing space before the for in: +self.metadata.platforms = [kw.strip() + for kw in platformlist.split(',')] -- nosy: +ezio.melotti resolution: -> accepted stage:

[issue8352] imp.find_module of a .py ending dir causes glibc double free crash

2010-04-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +brett.cannon, ncoghlan priority: -> high stage: -> test needed type: -> crash versions: -Python 2.5 ___ Python tracker ___

[issue7378] unexpected truncation of traceback

2010-04-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue5207] extend strftime/strptime format for RFC3339 and RFC2822

2010-04-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue7132] Regexp: capturing groups in repetitions

2010-04-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- status: open -> languishing ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue7927] SSL socket is not closed properly

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: Confirmed on trunk. -- nosy: +ajaksu2 priority: -> normal stage: -> test needed versions: +Python 2.7 ___ Python tracker ___ ___

[issue7943] Memory leak due to circular references in ssl.SSLSocket

2010-04-08 Thread Daniel Diniz
Changes by Daniel Diniz : -- priority: -> normal stage: -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue7842] py_compile.compile SyntaxError output

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: Change went into py3k without tests, do we want them? If so, please update Stage to "test needed". -- nosy: +ajaksu2 priority: -> normal stage: -> patch review ___ Python tracker

[issue7865] io close() swallowing exceptions

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: Wouldn't this break code that currently works? -- nosy: +ajaksu2 priority: -> low stage: -> needs patch type: -> behavior versions: -Python 2.5 ___ Python tracker ___

[issue5207] extend strftime/strptime format for RFC3339 and RFC2822

2010-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue7584] datetime.rfcformat() for Date and Time on the Internet

2010-04-08 Thread Éric Araujo
Éric Araujo added the comment: Should have checked before speaking. RFC 3339 is a subset of W3CDTF, as said on Daniel’s first link. -- ___ Python tracker ___ ___

[issue7584] datetime.rfcformat() for Date and Time on the Internet

2010-04-08 Thread Éric Araujo
Éric Araujo added the comment: Note that the Atom format requires a subset of RFC 3339 (which is in turn a subset of ISO 8601 if I remember correctly, and is the same as the W3C Datetime Format): https://www.tools.ietf.org/html/rfc4287#section-3.3 Summary: Atom requires using an uppercase T b

[issue7584] datetime.rfcformat() for Date and Time on the Internet

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: It looks like feed generators need this feature[1]. See also issue 5207 and a current implementation[2]. [1] http://validator.w3.org/feed/docs/error/InvalidRFC3339Date.html [2] http://code.google.com/p/formattime/ -- keywords: +easy nosy: +ajaksu2 prior

[issue8156] pybsddb 4.8.4 integration

2010-04-08 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- resolution: -> accepted status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue7378] unexpected truncation of traceback

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: Patch still applies to py3k, not applying cleanly to trunk anymore. Tests pass with patch on py3k. -- nosy: +ajaksu2 priority: -> normal stage: -> patch review ___ Python tracker

[issue7425] [PATCH] Improve the robustness of "pydoc -k" in the face of broken modules

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: Nice improvement. This would also solve the "help(), modules" brokenness, right? -- nosy: +ajaksu2 priority: -> normal stage: -> test needed type: -> behavior ___ Python tracker _

[issue7897] Support parametrized tests in unittest

2010-04-08 Thread Yaroslav Halchenko
Yaroslav Halchenko added the comment: In PyMVPA we have our little decorator as an alternative to Fernando's generators, and which is closer, I think, to what Michael was wishing for: @sweepargs http://github.com/yarikoptic/PyMVPA/blob/master/mvpa/testing/sweepargs.py NB it has some minor Py

[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting

2010-04-08 Thread R. David Murray
Changes by R. David Murray : -- title: patch: BaseHTTPServer reinventing rfc822 -> patch: BaseHTTPServer reinventing rfc822 date formatting ___ Python tracker ___ ___

[issue7370] patch: BaseHTTPServer reinventing rfc822

2010-04-08 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue7370] patch: BaseHTTPServer reinventing rfc822

2010-04-08 Thread R. David Murray
R. David Murray added the comment: The issue is not invalid. The code duplication should be removed, but using the email module as Éric suggests. Reopening. -- nosy: +r.david.murray resolution: invalid -> stage: committed/rejected -> test needed status: closed -> open __

[issue870479] Scripts need platform-dependent handling

2010-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue976869] Stripping script extensions with distutils

2010-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue4151] Separate build dir broken

2010-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue3985] removed string module from distutils [patch]

2010-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue5411] add xz compression support to distutils

2010-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue1649329] gettext.py incompatible with eggs

2010-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue7370] patch: BaseHTTPServer reinventing rfc822

2010-04-08 Thread Éric Araujo
Éric Araujo added the comment: Following the last link on #2859, I’ve found that “rfc822.formatdate(time)” can be changed to “email.utils.formatdate(time, usegmt=True)”. I’ll make a real diff in a few days if noone beats me to it. Regards -- nosy: +merwok ___

[issue7370] patch: BaseHTTPServer reinventing rfc822

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: Thanks for the patch. Per issue 2849, use of rfc822 should be gone from the stdlib. Please re-open if you disagree. -- nosy: +ajaksu2 priority: -> normal resolution: -> invalid stage: -> committed/rejected status: open -> closed _

[issue7443] test.support.unlink issue on Windows platform

2010-04-08 Thread Jason R. Coombs
Changes by Jason R. Coombs : -- nosy: +jaraco ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue1578269] Add os.symlink() and os.path.islink() support for Windows

2010-04-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: It seems issue7443 discusses the cause of the transient failures. -- ___ Python tracker ___ ___

[issue8352] imp.find_module of a .py ending dir causes glibc double free crash

2010-04-08 Thread Matthias Klose
New submission from Matthias Klose : [forwarded from http://bugs.debian.org/577005] seen with 2.5.5, 2.6.5 and 2.7alpha4: The imp.find_module function causes a glibc double free or corruption if it would be invoked with a directory with a ".py" ending. It can be reproduced with: mkdir bla.py;

[issue7163] IDLE suppresses sys.stdout.write() return value

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: sys.stdout is a idlelib.rpc.RPCProxy in IDLE. It calls Idlelib.PyShell.PseudoFile.write -> .PyShell.write -> .OutputWindow.OutputWindow.write -> .Percolator.Percolator.insert -> ... I suppose we could mimic the return value patching PseudoFile.write (for educa

[issue7978] SocketServer doesn't handle syscall interruption

2010-04-08 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/op

[issue7978] SocketServer doesn't handle syscall interruption

2010-04-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I think the wrapper approach is a good one. Now remains to decide whether it should stay private to socketserver or be exposed as a generic method (for example in the "os" module as proposed). By the way, adding a test would be nice, too. I'm not sure it

[issue7978] SocketServer doesn't handle syscall interruption

2010-04-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I think the wrapper approach is a good one. Now remains to decide whether it should stay private to socketserver or be exposed as a generic method (for example in the "os" module as proposed). By the way, adding a patch would be nice, too. I'm not sure it

[issue1578269] Add os.symlink() and os.path.islink() support for Windows

2010-04-08 Thread Jason R. Coombs
Changes by Jason R. Coombs : Removed file: http://bugs.python.org/file16203/admin results.zip ___ Python tracker ___ ___ Python-bugs-list ma

[issue1578269] Add os.symlink() and os.path.islink() support for Windows

2010-04-08 Thread Jason R. Coombs
Changes by Jason R. Coombs : Removed file: http://bugs.python.org/file16202/guest results.zip ___ Python tracker ___ ___ Python-bugs-list ma

[issue1578269] Add os.symlink() and os.path.islink() support for Windows

2010-04-08 Thread Jason R. Coombs
Changes by Jason R. Coombs : Added file: http://bugs.python.org/file16835/guest results - patch 29.zip ___ Python tracker ___ ___ Python-bug

[issue1578269] Add os.symlink() and os.path.islink() support for Windows

2010-04-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: With patch 29, I believe all patch-related test failures are corrected. The remaining failures in some modules (namely test_tarfile, test_glob, test_mailbox, test_warnings) can be demonstrated to occur in unpatched builds. Since some failures are transient,

[issue1578269] Add os.symlink() and os.path.islink() support for Windows

2010-04-08 Thread Jason R. Coombs
Changes by Jason R. Coombs : Added file: http://bugs.python.org/file16834/admin results - patch 29.zip ___ Python tracker ___ ___ Python-bug

[issue1578269] Add os.symlink() and os.path.islink() support for Windows

2010-04-08 Thread Jason R. Coombs
Changes by Jason R. Coombs : Added file: http://bugs.python.org/file16833/admin results - no patch.zip ___ Python tracker ___ ___ Python-bug

[issue5747] knowing the parent command

2010-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue3992] removed custom log from distutils

2010-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2010-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue6555] distutils config file should have the same name on both platforms and all scopes

2010-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue6142] Distutils doesn't remove .pyc files

2010-04-08 Thread James
James added the comment: i'm fine with that and willing to contribute patches, however i would feel better if whoever upstream was, was more supportive of the idea. someone let me know. a thought: - it's true (as mentioned) that distclean isn't necessarily directly related to distributing pyt

[issue793069] Add --remove-source option

2010-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue6860] Inconsistent naming of custom command in setup.py help output

2010-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue4908] adding a get_metadata in distutils

2010-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue6142] Distutils doesn't remove .pyc files

2010-04-08 Thread Éric Araujo
Éric Araujo added the comment: Hello So, is this bug “add a distclean command” now? Regards -- nosy: +merwok ___ Python tracker ___

[issue7677] distutils, better error message for setup.py upload -sign without identity.

2010-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue1109659] distutils argument parsing is bogus

2010-04-08 Thread Éric Araujo
Éric Araujo added the comment: “Global option” could be understood as “option that can be given to any command”, i.e. “egg spam -d” == “egg -d spam”. Is it feasible to support such and equivalence, too difficult or not desirable? Regards -- nosy: +merwok

[issue7007] Tiny inconsistency in the orthography of "url encoded" in the doc of urllib.parse

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: Hits from py3k: Doc/library/urllib.rst:239: Convert a mapping object or a sequence of two-element tuples to a "url-encoded" Doc/library/urllib.rst:263: Convert the path component *path* from an encoded URL to the local syntax for a Doc/library/urlparse.r

[issue1004696] translate Windows cr-lf when installing scripts on Linux

2010-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue5187] distutils upload should prompt for the user/password too

2010-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue8351] Suppress large diffs in unitttest.TestCase.assertSequenceEqual()

2010-04-08 Thread Michael Foord
Changes by Michael Foord : -- assignee: -> michael.foord nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue4843] make distutils use shutil

2010-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue3984] python interpreter import dependency with disutils/util

2010-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue8351] Suppress large diffs in unitttest.TestCase.assertSequenceEqual()

2010-04-08 Thread Floris Bruynooghe
New submission from Floris Bruynooghe : This patch adds the ability to suppress large diffs in the failure message of TestCase.assertSequenceEqual(). The maximum size of the diff is customisable as an new keyword parameter with hopefully a sensible default. -- components: Library (Lib

[issue6878] outdated docstring in tkinter.Canvas.coords

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: I think the obvious code fix of list(map()) is less likely to cause surprises than updating the docstring to the new map in 3.x. -- keywords: +easy nosy: +ajaksu2 priority: -> low stage: -> needs patch type: -> behavior __

[issue6700] inspect.getsource() returns incorrect source lines

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: Confirmed in trunk and py3k. Also affects inspect.getsourcelines. -- nosy: +ajaksu2 priority: -> normal stage: -> patch review ___ Python tracker __

[issue6650] sre_parse contains a confusing generic error message

2010-04-08 Thread Daniel Diniz
Daniel Diniz added the comment: Thanks for the patch, LGTM assuming we don't need a test for this. Do you think the vague message could be less cryptic for users that didn't want lookbehind (or don't know what it is)? -- nosy: +ajaksu2 priority: -> low stage: -> patch review version

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-08 Thread Nir Aides
Nir Aides added the comment: Uploaded an update. -- Added file: http://bugs.python.org/file16830/bfs.patch ___ Python tracker ___ ___

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-08 Thread Nir Aides
Changes by Nir Aides : Removed file: http://bugs.python.org/file16710/bfs.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue8350] os.mkdir doc comment is incorrect

2010-04-08 Thread Todd Whiteman
New submission from Todd Whiteman : The doc command for os.mkdir is incorrect (at least for posix). It specifies that there is an optional mode keyword, but it's not a keyword argument, see below: >>> import os >>> help(os.mkdir) mkdir(...) mkdir(path [, mode=0777]) Create a direc

[issue8349] os.environ.get returns incorrect data

2010-04-08 Thread Martin v . Löwis
Martin v. Löwis added the comment: This is the correct result. The value of the environment variables depends on whether a 32-bit or a 64-bit process is looking at them, see http://msdn.microsoft.com/en-us/library/aa384274%28VS.85%29.aspx -- nosy: +loewis resolution: -> invalid stage

[issue8349] os.environ.get returns incorrect data

2010-04-08 Thread Dan Brandow
New submission from Dan Brandow : I have a Windows 7 64 bit machine, which means it has a few different environment variables concerning the program files location: PROGRAMFILES=C:\Program Files (x86) ProgramFiles(x86)=C:\Program Files (x86) Note that both env variables have "(x86)" at the end.

[issue3081] Py_(X)SETREF macros

2010-04-08 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue3081] Py_(X)SETREF macros

2010-04-08 Thread Mark Dickinson
Mark Dickinson added the comment: I agree with Raymond about the Py_INCREF. I could see more uses for this macro without the Py_INCREF, especially for things like in-place arithmetic operations. The following pattern appears a lot in code like Objects/longobject.c: Old code: /* add one to

[issue3081] Py_(X)SETREF macros

2010-04-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Py_ASSIGN could be a better name, but given the enthusiasm generated by this proposal, I think we might just as well close the issue. -- ___ Python tracker ___

[issue2643] mmap_object_dealloc does not call FlushViewOfFile on windows

2010-04-08 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +akuchling, exarkun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue7559] TestLoader.loadTestsFromName swallows import errors

2010-04-08 Thread R. David Murray
R. David Murray added the comment: Thank you very much for those tests. I think you can simplify them a bit. For example, you can use assertRaises. You also might be able to use the test_support.temp_cwd context manager in your context manager, even though you don't need the cwd part. I've

[issue2643] mmap_object_dealloc does not call FlushViewOfFile on windows

2010-04-08 Thread Charles-Francois Natali
Changes by Charles-Francois Natali : Added file: http://bugs.python.org/file16828/test_mmap.py ___ Python tracker ___ ___ Python-bugs-list mail

[issue2643] mmap_object_dealloc does not call FlushViewOfFile on windows

2010-04-08 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: Alright, the current behaviour is quite strange: we don't call msync() when closing the object, we just unmap() it: mmap_close_method(mmap_object *self, PyObject *unused) { [...] #ifdef UNIX if (0 <= self->fd) (void) close(self->

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: My analysis of SSL_shutdown() was missing something: timeout sockets are really non-blocking sockets in disguise. I guess it's never too late to notice. OpenSSL doesn't know about the timeout, so we have to do it ourselves. Ironically, the infrastructure is a

[issue1578269] Add os.symlink() and os.path.islink() support for Windows

2010-04-08 Thread Jason R. Coombs
Changes by Jason R. Coombs : Removed file: http://bugs.python.org/file16824/windows symlink draft 28.patch ___ Python tracker ___ ___ Python

[issue1578269] Add os.symlink() and os.path.islink() support for Windows

2010-04-08 Thread Jason R. Coombs
Changes by Jason R. Coombs : Removed file: http://bugs.python.org/file16821/windows symlink draft 28.patch ___ Python tracker ___ ___ Python

[issue1578269] Add os.symlink() and os.path.islink() support for Windows

2010-04-08 Thread Jason R. Coombs
Changes by Jason R. Coombs : Removed file: http://bugs.python.org/file16809/windows symlink draft 27.patch ___ Python tracker ___ ___ Python

[issue1578269] Add os.symlink() and os.path.islink() support for Windows

2010-04-08 Thread Jason R. Coombs
Changes by Jason R. Coombs : Added file: http://bugs.python.org/file16825/windows symlink draft 29.patch ___ Python tracker ___ ___ Python-b

[issue1578269] Add os.symlink() and os.path.islink() support for Windows

2010-04-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: In the last patch, I addressed test_platform running a test under a symlinked Python. I then found the same error resulting from essentially the same code in test_sysconfig. So I refactored those methods into a generator method in test.support. This is patch

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I raised the "errno 0" issue on the openssl mailing-list, and I had a nice response by Darryl Miles here: http://www.mail-archive.com/openssl-us...@openssl.org/msg60710.html The bottom line is that any "socket error" return from unwrap(), that is any "SSL

[issue7559] TestLoader.loadTestsFromName swallows import errors

2010-04-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: The new unit tests pass with this patch (minor clean-up still needed). -- Added file: http://bugs.python.org/file16822/_patch-7559-5.diff ___ Python tracker ___

[issue8347] string capitalize erroneously lower-case any non-first letters

2010-04-08 Thread Philip Jenvey
Philip Jenvey added the comment: S.capitalize() -> string Return a copy of the string S with only its first character capitalized. You've misunderstood the docs, only the first character is indeed capitalized. You want string.capwords instead -- nosy: +pjenvey resolution: -> invalid

[issue3081] Py_(X)SETREF macros

2010-04-08 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: The name suggests a different behavior to me - I assumed it would set the reference count to a specific value. Maybe this is the kind of thing Raymond had in mind when he said "The mnemonic doesn't work for me". -- nosy: +exarkun __

[issue8348] test_urllib2net fails because of bad URL

2010-04-08 Thread Martin v . Löwis
Martin v. Löwis added the comment: I changed the URL in r79908. -- keywords: +buildbot resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker _

  1   2   >