[issue10859] Is GeneratorContextManager public?

2011-01-07 Thread Michael Foord
Michael Foord added the comment: I have no objection to a rename that adds a leading underscore. -- ___ Python tracker <http://bugs.python.org/issue10

[issue10859] Is GeneratorContextManager public?

2011-01-07 Thread Michael Foord
Changes by Michael Foord : -- nosy: -michael.foord ___ Python tracker <http://bugs.python.org/issue10859> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10884] pkgutil EggInfoDistribution requirements for .egg-info metadata

2011-01-10 Thread Michael Mulich
New submission from Michael Mulich : Found an issue where the metadata initialization of .egg-info dirs (an EggInfoDistribution object) overrides the 'path' variable, which makes it impossible to find a distributions requirements. I've fixed the issue at https://bitbu

[issue10907] OS X installer: warn users of buggy Tcl/Tk in OS X 10.6

2011-01-14 Thread Michael Foord
Michael Foord added the comment: This looks good Ned. My main concern is that we make it clear from the *Download* page that users who want IDLE to "just work" (even on 10.6) they should install the 32 bit version. Noting that Activestate Tcl/Tk 8.5 is a *requirement* for Tkinter

[issue10969] Make Tcl recommendation more prominent

2011-01-22 Thread Michael Foord
Michael Foord added the comment: For what it's worth I prefer Raymond's original wording. Installing the Activestate Tcl/Tk will never be a *bad* thing to do for using Python, so I don't see a problem with stating it as a requirement. Users are unlikely to see the current wa

[issue10973] OS X 10.6 IDLE, tkinter: Cocoa Tk 8.5 crash when composite character typed in text field

2011-01-23 Thread Michael Foord
Michael Foord added the comment: There are a few issues here. X11 is not installed by *default* on Mac OS X (it is supplied separately) so it doesn't provide an "out of the box" solution. Starting IDLE as 32bit alone doesn't solve the problem as it launches a subpro

[issue10979] setUpClass exception causes explosion with "-b"

2011-01-23 Thread Michael Foord
Changes by Michael Foord : -- assignee: -> michael.foord ___ Python tracker <http://bugs.python.org/issue10979> ___ ___ Python-bugs-list mailing list Unsubscri

[issue10573] Consistency in unittest assert methods: order of actual, expected

2011-01-23 Thread Michael Foord
Michael Foord added the comment: There was a BDFL ruling on python-dev mailing list that assert argument names should be (first, second). See: http://mail.python.org/pipermail/python-dev/2010-December/106954.html I'm basically reverting the patch to go back to (first, second) in the

[issue10573] Consistency in unittest assert methods: order of actual, expected

2011-01-23 Thread Michael Foord
Michael Foord added the comment: Note that I looked at making the sequence comparison code symmetric - but it generates nice diffs for even nested containers by using prettyprint and difflib. Switching to a symmetric output ("in first, not in second" etc) would be very difficu

[issue10973] OS X 10.6 IDLE, tkinter: Cocoa Tk 8.5 crash when composite character typed in text field

2011-01-24 Thread Michael Foord
Michael Foord added the comment: Activestate has said (replying to me on Twitter as it happens) that a patch is available and they will do a new 8.5 release before 3.2 final. -- ___ Python tracker <http://bugs.python.org/issue10

[issue10973] OS X 10.6 IDLE, tkinter: Cocoa Tk 8.5 crash when composite character typed in text field

2011-01-25 Thread Michael Foord
Michael Foord added the comment: Ronald: The subprocess also uses Tkinter (right?) so would also require 32bit. FWIW I'm -1 on X11 as well. -- ___ Python tracker <http://bugs.python.org/is

[issue10973] OS X 10.6 IDLE, tkinter: Cocoa Tk 8.5 crash when composite character typed in text field

2011-01-25 Thread Michael Foord
Michael Foord added the comment: The reason I think it is an issue is that a previous release of Python 2.7 could start IDLE (the initial window would appear), but a dialog would also appear saying that it could not connect to the subprocess and IDLE would exit. IDLE itself had been set to

[issue10573] Consistency in unittest assert methods: order of actual, expected

2011-01-28 Thread Michael Foord
Michael Foord added the comment: Patch to docs and minor change to assertCountEqual to not use actual / expected internally. -- Added file: http://bugs.python.org/file20580/expected-actual.diff ___ Python tracker <http://bugs.python.org/issue10

[issue10573] Consistency in unittest assert methods: order of actual, expected

2011-01-28 Thread Michael Foord
Changes by Michael Foord : -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue11090] Doc errors for unittest in Python 3.1

2011-02-01 Thread Michael Foord
New submission from Michael Foord : Looks like some unittest doc changes got incorrectly backported to Python 3.1. For example the command line features using -m are new in 3.2 and don't work with 3.1: http://docs.python.org/py3k/library/unittest.html#command-line-inte

[issue11090] Doc errors for unittest in Python 3.1

2011-02-02 Thread Michael Foord
Michael Foord added the comment: This incorrect section on unittest command line features was added by Eric according to svn blame. -- nosy: +eric.araujo ___ Python tracker <http://bugs.python.org/issue11

[issue11133] inspect.getattr_static code execution

2011-02-06 Thread Michael Foord
Michael Foord added the comment: The fix is to use dict methods rather than accessing members through the instance. It will have to wait until 3.2 is out now though. -- ___ Python tracker <http://bugs.python.org/issue11

[issue11133] inspect.getattr_static code execution

2011-02-06 Thread Michael Foord
Changes by Michael Foord : -- assignee: -> michael.foord ___ Python tracker <http://bugs.python.org/issue11133> ___ ___ Python-bugs-list mailing list Unsubscri

[issue7719] distutils: ignore .nfsXXXX files

2011-02-07 Thread Michael Haubenwallner
Changes by Michael Haubenwallner : -- nosy: +haubi ___ Python tracker <http://bugs.python.org/issue7719> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11151] Arguments to various types not specified in types module

2011-02-08 Thread Michael Foord
Michael Foord added the comment: Care to provide a patch Noufal? -- nosy: +michael.foord ___ Python tracker <http://bugs.python.org/issue11151> ___ ___ Python-bug

[issue941346] AIX shared library fix

2011-02-09 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: Sébastien, why did you need to add '-L$(srcdir)' to BLDSHARED in these patches? As LDLIBRARY points to the immediate file 'libpython$(VERSION).so' instead of '-lpython$(VERSION)', I don't see the need for '-L$(s

[issue11163] iter() documentation code doesn't work

2011-02-09 Thread Michael Grazebrook
New submission from Michael Grazebrook : This code fragment from the documentation of iter() doesn't work as intended. Change "STOP" to "STOP\n". Maybe also check for EOF as it hangs. with open("mydata.txt") as fp: for line in iter(fp.readline, "STOP

[issue11172] Avoid '.' as runpath on AIX

2011-02-10 Thread Michael Haubenwallner
New submission from Michael Haubenwallner : Spotted in issue#941346 msg#128214, the "-L$(srcdir)" should be removed from BLDSHARED on AIX: The problem is that '-L$(srcdir)' adds '$(srcdir)' to the runpath too (as there is no '-blibpath' argument), ope

[issue11178] Running tests inside a package by module name fails

2011-02-10 Thread Michael Foord
New submission from Michael Foord : Reported by a user and verified by me with both Python 2.7 and 3.2. Trying to run tests by module or package name seems to fail. directory structure: project root: C:\Users\hpierson\Projects\pytest \test __init__.py (empty

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2011-02-11 Thread Michael Strein
Michael Strein added the comment: Do we know the status of this issue? Have not seen update in four months. Currently is a major headache on my linux box. -- nosy: +mgstrein ___ Python tracker <http://bugs.python.org/issue1

[issue941346] AIX shared library fix

2011-02-16 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: > You can remove -L\$(srcdir) on this line, but then you need to specify > the > full path to Modules/python.exp. See patch below: Interesting, didn't experience this to be necessary with Python-2.7.1 here... Maybe because I do an i

[issue11133] inspect.getattr_static code execution

2011-02-21 Thread Michael Foord
Michael Foord added the comment: __dict__ as a property is documented as an exception to the "no code execution" claim. The patch is not sufficient - instances may have a class member "__dict__" whilst still having an instance __dict__. Alternatively the "__dict__&q

[issue8407] expose signalfd(2) and sigprocmask(2) in the signal module

2011-02-21 Thread Michael Schurter
Michael Schurter added the comment: Any hopes of getting this into Python 3.3? -- nosy: +schmichael versions: +Python 3.3 -Python 2.7 ___ Python tracker <http://bugs.python.org/issue8

[issue2853] *** glibc detected *** python: double free or corruption

2008-05-14 Thread Michael Lang
New submission from Michael Lang <[EMAIL PROTECTED]>: Hi, i am trying to solve some problems we encounter, when locking files on a NFS Storage using fcntl. since this is a security related problem i just add some pseudo code here that was used to create the problem fh = os.open(&#x

[issue2959] calling GzipFile close() more than once causes exception

2008-05-24 Thread Michael Magin
New submission from Michael Magin <[EMAIL PROTECTED]>: Built-in file objects allow repeated calls to .close(), even the documentation states, "Calling close() more than once is allowed." (http://docs.python.org/lib/bltin-file-objects.html) GzipFile does not obey this as

[issue3145] help> modules os raises UnicodeDecodeError

2008-06-19 Thread Michael Yang
New submission from Michael Yang <[EMAIL PROTECTED]>: >>> help() help> modules os Here is a list of matching modules. Enter any module name to get more help. posix - This module provides access to operating system ... stringprep - Library that exposes various tables found in

[issue3180] Interrupts are lost during readline PyOS_InputHook processing

2008-06-23 Thread Michael Abbott
New submission from Michael Abbott <[EMAIL PROTECTED]>: The (undocumented!) API for PyOS_InputHook has two defects which are addressed in the attached patch (at least when using the readline module): firstly the called hook currently has to guess that input will come on descriptor 0; se

[issue3209] Grammar error in UserDict module docs

2008-06-26 Thread Michael Schreifels
New submission from Michael Schreifels <[EMAIL PROTECTED]>: The second paragraph of the UserDict module documentation begins with this: "This also module defines a class..." which should be: "This module also defines a class..." (See http://docs.python.or

[issue672115] Assignment to __bases__ of direct object subclasses

2008-07-21 Thread Michael Hudson
Michael Hudson <[EMAIL PROTECTED]> added the comment: Another 3 and a bit years on I still think my comment http://bugs.python.org/msg14169 is the crux of the issue. It's even relevant to your class object(object): pass hack! I'm not at all likely to work on this any

[issue3635] pickle.dumps cannot save instance of dict-derived class that overrides __getattribute__

2008-08-21 Thread Michael Yang
New submission from Michael Yang <[EMAIL PROTECTED]>: # pickle.dumps is not able to process an instance of # a class that inherits from 'dict' and # overrides the built-in __getattribute__ method # but can successfully process one that # overrides the__getattr__ method >&

[issue877121] configure detects incorrect compiler optimization

2008-09-04 Thread Michael Schmarck
Michael Schmarck <[EMAIL PROTECTED]> added the comment: This still happens with Python 2.6b3, 3.0b3 and 2.5.2 and Sun Studio 12 on Solaris Sparc. Like mentioned in Issue1162001, the problem seems to be, that cc returns 0 if -OPT:Olimit=0 is used: --($ ~)-- cc -OPT:Olimit=0 test1.c; echo

[issue877121] configure detects incorrect compiler optimization

2008-09-04 Thread Michael Schmarck
Changes by Michael Schmarck <[EMAIL PROTECTED]>: -- versions: +Python 2.4, Python 2.6, Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.

[issue3784] Incorrect compiler options used for cc of Sun Studio 12

2008-09-05 Thread Michael Schmarck
New submission from Michael Schmarck <[EMAIL PROTECTED]>: While compiling Python 2.5.2, I stumbled upon this: cc -G -R/export/home/webservd/.software/Python-2.5.2/lib build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/_ctypes.o build/temp.solari

[issue3785] Can't build ctypes of Python 2.5.2 with Sun Studio 12

2008-09-05 Thread Michael Schmarck
New submission from Michael Schmarck <[EMAIL PROTECTED]>: Compilation of ctypes fails: cc -G build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/_ctypes.o build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_

[issue3785] Can't build ctypes of Python 2.5.2 with Sun Studio 12

2008-09-05 Thread Michael Schmarck
Michael Schmarck <[EMAIL PROTECTED]> added the comment: This does not happen when I use GCC to build Python. --($ ~/Source/gccPy/Python-2.5.2)-- /usr/sfw/bin/gcc -v Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs Configured with: /sfw10/builds/build/sfw10-patch/usr/s

[issue3785] Can't build ctypes of Python 2.5.2 with Sun Studio 12

2008-09-05 Thread Michael Schmarck
Michael Schmarck <[EMAIL PROTECTED]> added the comment: It works fine in 2.6b3, however (I only tested Sun Studio 12). ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3786] _curses, _curses_panel & _multiprocessing can't be build in 2.6b3 w/ SunStudio 12

2008-09-05 Thread Michael Schmarck
New submission from Michael Schmarck <[EMAIL PROTECTED]>: I'm trying to compile Python 2.6b3 using Sun Studio 12 on a Solaris 10 sparc system. It fails. [...] *** WARNING: renaming "_curses" since importing it failed: ld.so.1: python: fatal: relocation error: file build/l

[issue3786] _curses, _curses_panel & _multiprocessing can't be build in 2.6b3 w/ SunStudio 12

2008-09-05 Thread Michael Schmarck
Michael Schmarck <[EMAIL PROTECTED]> added the comment: Yes, the multiprocessing problem has been fixed by the patch in Issue3110. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3784] Incorrect compiler options used for cc of Sun Studio 12

2008-09-07 Thread Michael Schmarck
Michael Schmarck <[EMAIL PROTECTED]> added the comment: It's a warning. Added file: http://bugs.python.org/file11419/config.log ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue3784] Incorrect compiler options used for cc of Sun Studio 12

2008-09-07 Thread Michael Schmarck
Michael Schmarck <[EMAIL PROTECTED]> added the comment: Attaching a log of the complete build process of Python 2.5.2. Added file: http://bugs.python.org/file11420/build-Python-2.5.2.log ___ Python tracker <[EMAIL PROTECTED]> <http://

[issue3786] _curses, _curses_panel & _multiprocessing can't be build in 2.6b3 w/ SunStudio 12

2008-09-07 Thread Michael Schmarck
Michael Schmarck <[EMAIL PROTECTED]> added the comment: I filed that as a bug against Python 2.6, because in 2.5.2, the curses modules could be built just fine. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3786] _curses, _curses_panel & _multiprocessing can't be build in 2.6b3 w/ SunStudio 12

2008-09-09 Thread Michael Schmarck
Michael Schmarck <[EMAIL PROTECTED]> added the comment: Yes, I would _like_ to do that, but I fear that I lack the necessary skills... ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3959] Add Google's ipaddr.py to the stdlib

2008-09-24 Thread Michael Shields
Changes by Michael Shields <[EMAIL PROTECTED]>: -- nosy: +shields ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3959> ___ __

[issue4070] python tests failure if builddir <> sourcedir

2008-10-09 Thread Michael Mysinger
Michael Mysinger <[EMAIL PROTECTED]> added the comment: Just an FYI that I had an error in test_distutils that this patch fixed. I was not doing anything abnormal. Just building from the 2.6 source distribution, making a arch specific sub-directory, using ../configure, make, and then mak

[issue7726] Remove required metadata warnings for sdist

2010-01-17 Thread Michael Foord
New submission from Michael Foord : When building releases with sdist (and other distribution building options) missing metadata should not cause warnings. For public projects this is useful (i.e. projects uploaded to PyPI), but not for internally built distributions. (If a distribution is

[issue7742] please avoid 'which' in Modules/ld_so_aix

2010-01-19 Thread Michael Haubenwallner
New submission from Michael Haubenwallner : In Modules/ld_so_aix there is `which $CC` to search for the full compiler's path. Unfortunately, /usr/bin/which on AIX is a csh-script and thus ~/.cshrc gets sourced before doing the path search. Now, when the user does set some PATH in ~/.

[issue7742] please avoid 'which' in Modules/ld_so_aix

2010-01-19 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: Uhm, as I read the patch again, there's room for improvement of pywhich(): it likely fails with CC=/full/path/to/cc -- ___ Python tracker <http://bugs.python.org/i

[issue7756] Complete your registration to Python tracker -- key rt04e51ru5U1WqGum1kklK4ZYWEe1Mkf

2010-01-22 Thread Michael Smith
New submission from Michael Smith : Python tracker wrote: > To complete your registration of the user "msm...@cbnco.com" with > Python tracker, please do one of the following: > > - send a reply to rep...@bugs.python.org and maintain the subject line as is > (the >

[issue7757] sys.path is incorrect when prefix is ""

2010-01-22 Thread Michael Smith
New submission from Michael Smith : I've built Python 2.6.2 with a prefix of "" for an embedded system, so it's installed into /bin/python, /lib/python2.6/, etc. If I run a script with "python /tmp/script.py" or by putting in a #!/bin/python and executing it dir

[issue7761] telnetlib Telnet.interact fails on Windows but not Linux

2010-01-22 Thread Michael Newman
New submission from Michael Newman : Telnet.interact() is failing on Python 3.1.1 Windows, but works fine on Python 2.6.4 Windows and also works on Python 3.1.1 Linux. See 3 examples below: --- Test #1 (fails): Telnet.interact on Python 3.1.1 Windows --- Python 3.1.1 (r311:74483, Aug 17 2009

[issue7757] sys.path is incorrect when prefix is ""

2010-01-25 Thread Michael Smith
Michael Smith added the comment: Yes, that does look related. The fix from Issue1676135 seems to handle --prefix="/" properly, and from what I can tell PREFIX does get set to "/". There is also code in getpath.c to set sys.prefix to "/" if it's "

[issue7030] Update version{added, changed} entries in py3k unittest docs

2010-01-26 Thread Michael Foord
Michael Foord added the comment: skip* functions are missing 'new in' documentation. These need to be correct for 2.7 and 3.1 / 3.2 as well. Plus the example of assertRaises as a context manager sucks. http://docs.python.org/dev/library/unittest.html#unittest.TestCase.as

[issue7799] unittest returning standard_tests from load_tests in module fails

2010-01-28 Thread Michael Foord
Michael Foord added the comment: Yes. The standard tests should be wrapped in a suite before being passed into load_tests. That's a bug - thanks for catching it. -- assignee: -> michael.foord nosy: +michael.foord ___ Python tracke

[issue7800] Attributes of type list are static

2010-01-28 Thread Michael Foord
Michael Foord added the comment: The list in your example is a *class attribute* not an instance attribute, so yes it is only initialised once. You can still access it through the instance (self) because of Python member lookup rules. If you want one list per instance then initialise it in

[issue7801] xmlrpc.client binary object examples needs to use binary mode

2010-01-28 Thread Michael Newman
New submission from Michael Newman : In Section 20.23.3 Binary Objects of: http://docs.python.org/3.1/library/xmlrpc.client.html The server AND client examples fail because the read and write methods are not set to binary mode. Example of what the client portion shows if you use the examples

[issue7800] Attributes of type list are static

2010-01-28 Thread Michael Foord
Michael Foord added the comment: Because strings are immutable. Your list access (self.list.append) mutates the existing list in place. Because strings are immutable you += is exactly equivalent to the following code: self.string = self.string + str(i) The first lookup of self.string

[issue7802] socket.gaierror before ProtocolError for xmlrpc.client

2010-01-28 Thread Michael Newman
New submission from Michael Newman : Following the example in Section 20.23.5. ProtocolError Objects of: http://docs.python.org/3.1/library/xmlrpc.client.html It implies that an invalid URL will give raise an xmlrpc.client.ProtocolError. Instead I'm getting a socket.gaierror instead. (I

[issue7814] SimpleXMLRPCServer Example uses "mul" instead of "div" in client portion

2010-01-30 Thread Michael Newman
New submission from Michael Newman : In "20.24.1.1. SimpleXMLRPCServer Example": http://docs.python.org/3.1/library/xmlrpc.server.html The client portion of the example uses "mul", which does not exist in the server portion. The easiest fix to change the client to use &q

[issue7832] assertSameElements([0, 1, 1], [0, 0, 1]) does not fail

2010-02-02 Thread Michael Foord
Michael Foord added the comment: Damn. If assertSameElements has already shipped with the existing implementation then we can't change it. The documentation really needs clarifying to make it clear that it ignores duplicates. I would be happy with a 'check_order&#x

[issue7837] assertSameElements doesn't filter enough py3k warnings

2010-02-02 Thread Michael Foord
Changes by Michael Foord : -- assignee: -> ezio.melotti ___ Python tracker <http://bugs.python.org/issue7837> ___ ___ Python-bugs-list mailing list Unsubscri

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-04 Thread Michael Foord
Michael Foord added the comment: Hmm... assertTrue(...) is semantically different from assertEqual(True, ...). -- ___ Python tracker <http://bugs.python.org/issue7

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-04 Thread Michael Foord
Michael Foord added the comment: Dino - if you use assertRaises as a context manager the exception is kept as an attribute on the context. You can make assertions about the exception after the with block has executed. -- ___ Python tracker <h

[issue7030] Update version{added, changed} entries in py3k unittest docs

2010-02-05 Thread Michael Foord
Michael Foord added the comment: assertSameElements doc issue fixed in revision 77997. Also improved example for assertRaises as a context manager and added versionadded to the test skipping section. Revisions 77999-78002. Thanks for sorting the version changed / added in the Py3k docs Ezio

[issue7501] python -m unittest path_to_suite_function errors

2010-02-05 Thread Michael Foord
Michael Foord added the comment: What made you think that would work? In your example foo.test_suite is neither a test nor a suite but a function. -- ___ Python tracker <http://bugs.python.org/issue7

[issue7588] unittest.TestCase.shortDescription isn't short anymore

2010-02-05 Thread Michael Foord
Michael Foord added the comment: The problem this fix was trying to fix was that if you provide a docstring for your test then the test name is ommitted in the report. This could be fixed in the _TextTestResult instead - changing the getDescription() method to always include str(test

[issue7501] python -m unittest path_to_suite_function errors

2010-02-05 Thread Michael Foord
Michael Foord added the comment: So it's a feature request then... -- ___ Python tracker <http://bugs.python.org/issue7501> ___ ___ Python-bugs-list m

[issue7799] unittest returning standard_tests from load_tests in module fails

2010-02-05 Thread Michael Foord
Michael Foord added the comment: Fixed in revision 78010. -- resolution: -> fixed stage: test needed -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue7780] unittest: allow an 'import_path' as an alternative to 'top_level_dir' in test discover

2010-02-05 Thread Michael Foord
Michael Foord added the comment: My suggestion is that test discovery should first try the argument as a directory. If that fails try it as a dotted name by importing it. If the import succeeds discovery can start from the directory containing the imported package. If a module rather than a

[issue7588] unittest.TestCase.shortDescription isn't short anymore

2010-02-06 Thread Michael Foord
Changes by Michael Foord : -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue7588> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7867] Proposed FAQ entry on pass-by-? semantics and the meaning of 'variable' in python

2010-02-06 Thread Michael Foord
Michael Foord added the comment: Wasn't the description of Python's semantics being 'pass by value where the value is a reference' actually very controversial indeed? Do you have a link to the discussion on c.l.p? --

[issue7867] Proposed FAQ entry on pass-by-? semantics and the meaning of 'variable' in python

2010-02-06 Thread Michael Foord
Michael Foord added the comment: Over 122 messages so I'm not going to search exhaustively. In this part of the thread you can see Fredrik Lundh and Aahz disputing "call-by-value-where-the-value-is-a-reference" as a useful way of describing Python calling se

[issue7872] Incorrect error raised on importing invalid module via unittest

2010-02-07 Thread Michael Foord
Michael Foord added the comment: Duplicate of issue 7559. -- resolution: -> duplicate stage: test needed -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue7859] support "with self.assertRaises(SomeException) as exc:" syntax

2010-02-07 Thread Michael Foord
Michael Foord added the comment: Just use the context manager and the exception is available as exc_value. -- nosy: +michael.foord resolution: -> rejected stage: needs patch -> committed/rejected status: open -> closed ___ Python track

[issue7859] support "with self.assertRaises(SomeException) as exc:" syntax

2010-02-07 Thread Michael Foord
Changes by Michael Foord : -- status: pending -> closed ___ Python tracker <http://bugs.python.org/issue7859> ___ ___ Python-bugs-list mailing list Unsubscri

[issue7501] python -m unittest path_to_suite_function errors

2010-02-07 Thread Michael Foord
Michael Foord added the comment: Is this needed as well as the load_tests protocol? If a test module defines a load_tests function that returns a test suite then the following creates the test suite from load_tests and executes that: python -m unittest modulename I don't think we n

[issue7032] Make assertMultilineEqual default for unicode string comparison in

2010-02-08 Thread Michael Foord
Michael Foord added the comment: Revision 78116. -- resolution: -> accepted stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-08 Thread Michael Foord
Michael Foord added the comment: Does this need committing? Dino - do you have checkin rights? -- ___ Python tracker <http://bugs.python.org/issue7855> ___ ___

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-08 Thread Michael Foord
Michael Foord added the comment: Well, probably better for you to get the commit bit and DIY then. :-) -- ___ Python tracker <http://bugs.python.org/issue7

[issue7888] turtle "settiltangle" should be marked deprecated, not "tiltangle"

2010-02-08 Thread Michael Newman
New submission from Michael Newman : In the turtle module documentation: http://docs.python.org/3.1/library/turtle.html http://docs.python.org/py3k/library/turtle.html Currently it says "Deprecated since Python 3.1" under the "turtle.tiltangle" section.

[issue7889] random produces different output on different architectures

2010-02-09 Thread Michael Foord
Michael Foord added the comment: If we aren't going to fix it, should we document the limitation? -- nosy: +michael.foord ___ Python tracker <http://bugs.python.org/i

[issue7893] unittest: have to subclass TextTestRunner to use alternative TestResult

2010-02-09 Thread Michael Foord
New submission from Michael Foord : A common way to extend unittest is to implement a custom TestResult. Currently you have to subclass TextTestRunner, overriding _makeResult, to get it to use an alternative result class. I suggest adding an additional, optional, argument to TextTestRunner to

[issue7897] Support parametrized tests in unittest

2010-02-10 Thread Michael Foord
Changes by Michael Foord : -- assignee: -> michael.foord nosy: +michael.foord ___ Python tracker <http://bugs.python.org/issue7897> ___ ___ Python-bugs-lis

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-10 Thread Michael Foord
New submission from Michael Foord : test_posix fails on trunk on Mac OS X (Snow Leopard) test.test_support.TestFailed: Traceback (most recent call last): File "Lib/test/test_posix.py", line 42, in testNoArgFunctions posix_func() OSError: [Errno 22] Invalid argument Python 2.7

[issue7588] unittest.TestCase.shortDescription isn't short anymore

2010-02-10 Thread Michael Foord
Michael Foord added the comment: Fixed revision 78130. -- resolution: -> accepted stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue7893] unittest: have to subclass TextTestRunner to use alternative TestResult

2010-02-10 Thread Michael Foord
Michael Foord added the comment: Fixed revision 78130. -- resolution: -> accepted stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue7501] python -m unittest path_to_suite_function errors

2010-02-10 Thread Michael Foord
Michael Foord added the comment: Use load_tests instead. -- resolution: -> rejected stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue7897] Support parametrized tests in unittest

2010-02-11 Thread Michael Foord
Michael Foord added the comment: With paramterized tests *all* the tests are run and *all* failures reported. With testing in a loop the tests stop at the first failure. -- ___ Python tracker <http://bugs.python.org/issue7

[issue7897] Support parametrized tests in unittest

2010-02-11 Thread Michael Foord
Michael Foord added the comment: By the way - I have no opinion on whether or not using yield is the right way to support parameterized tests. It may be better for the test method to take arguments, and be decorated as a parameterized test, with the decorator providing the parameters. When I

[issue7897] Support parametrized tests in unittest

2010-02-11 Thread Michael Foord
Michael Foord added the comment: Antoine: the failure message would include a repr of the parameters used in the particular test that failed. So you can tell which test failed and with what parameters. -- ___ Python tracker <h

[issue7911] unittest.TestCase.longMessage should default to True in Python 3.2

2010-02-11 Thread Michael Foord
Changes by Michael Foord : -- assignee: michael.foord keywords: easy nosy: michael.foord severity: normal stage: needs patch status: open title: unittest.TestCase.longMessage should default to True in Python 3.2 versions: Python 3.2 ___ Python

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-12 Thread Michael Foord
Michael Foord added the comment: I still see it on trunk (revision 78165). No idea what the (dot 1) means. -- ___ Python tracker <http://bugs.python.org/issue7

[issue7930] pydoc.stripid doesn't strip ID in py25, py26, py31

2010-02-14 Thread Michael Newman
New submission from Michael Newman : I found that pydoc.stripid doesn't strip the ID in Python 2.5, 2.6, and 3.1. I assume the problem is probably present in 2.7 and 3.2/dev. For a little history, see this older issue back for Python 2.3: http://bugs.python.org/issue934282 The foll

[issue7956] unittest.Testcase assertDictContainsSubset with integer keys

2010-02-18 Thread Michael Newman
New submission from Michael Newman : The attached example unit test file shows that assertDictContainsSubset cannot handle error messages that need to show integer keys. Below is the output of the test suite, where "test_mixed_keys_fail" has an error (code mistake), while "test

[issue7956] unittest.Testcase assertDictContainsSubset with integer keys

2010-02-18 Thread Michael Foord
Michael Foord added the comment: Thanks for reporting this. I can fix this particular error easily by repr'ing the keys. In the process I've found another fun way of killing this assert method: one = ''.join(chr(i) for i in range(255)) two = u'\uFF

[issue7960] test.support.captured_output has invalid docstring example

2010-02-18 Thread Michael Newman
New submission from Michael Newman : test.support.captured_output is not covered in the online documents: http://docs.python.org/3.1/library/test.html http://docs.python.org/dev/py3k/library/test.html However, it does have a docstring in "C:\Python31\Lib\test\support.py" (see b

<    1   2   3   4   5   6   7   8   9   10   >