[issue6417] multiprocessing Process examples: print and getppid

2010-10-12 Thread Michael Newman
Michael Newman michael.b.new...@gmail.com added the comment: The example is working correctly for: Python 3.2a3 (r32a3:85355, Oct 10 2010, 17:11:45) [MSC v.1500 32 bit (Intel)] on win32 # First test: C:\mikec:\Python32\python.exe s2.py main line module name: __main__ parent process: 2360

[issue8011] traceback tb_lineno example needs correction for Python3

2010-03-13 Thread Michael Newman
Michael Newman michael.b.new...@gmail.com added the comment: No problem. Please note its actually fixed in r78895 (trunk), r78896 (py3k) and r78897 (release31-maint). Your previous message had the svn revision numbers off by 1000. -- ___ Python

[issue6436] trace module doesn't seem to produce .cover files for Py3 (but does for Py2)

2010-02-21 Thread Michael Newman
Michael Newman michael.b.new...@gmail.com added the comment: I noticed the same behavior today. Let's consider a test case using my python script version_check.py (attached). Normally the script does the following on my Ubuntu 9.10 box: # Python 2.6 example: m...@ebx2009:~/test$ which python

[issue7929] Update copyright notice on python websites to 2010

2010-02-21 Thread Michael Newman
Michael Newman michael.b.new...@gmail.com added the comment: Perhaps this is now really a bug: # Response to e-mail to webmas...@python.org: # This is the mail system at host mail.python.org. I'm sorry to have to inform you that your message could not be delivered to one or more recipients

[issue7929] Update copyright notice on python websites to 2010

2010-02-21 Thread Michael Newman
Michael Newman michael.b.new...@gmail.com added the comment: I posted the copyright note, and the reply bot bug on the wiki at: http://wiki.python.org/moin/SiteImprovements -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7929

[issue7964] -m pdb SyntaxError for \r\n formatted py files

2010-02-19 Thread Michael Newman
New submission from Michael Newman michael.b.new...@gmail.com: Attached is a version checking script. When you run it normally, it produces output such as: E:\notes\Programming\python3c:\Python26\python.exe version_check.py 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel

[issue7956] unittest.Testcase assertDictContainsSubset with integer keys

2010-02-18 Thread Michael Newman
New submission from Michael Newman michael.b.new...@gmail.com: 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

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

2010-02-18 Thread Michael Newman
New submission from Michael Newman michael.b.new...@gmail.com: 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

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

2010-02-14 Thread Michael Newman
New submission from Michael Newman michael.b.new...@gmail.com: 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

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

2010-02-08 Thread Michael Newman
New submission from Michael Newman michael.b.new...@gmail.com: 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. That should

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

2010-01-30 Thread Michael Newman
New submission from Michael Newman michael.b.new...@gmail.com: 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 div

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

2010-01-28 Thread Michael Newman
New submission from Michael Newman michael.b.new...@gmail.com: 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

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

2010-01-28 Thread Michael Newman
New submission from Michael Newman michael.b.new...@gmail.com: 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

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

2010-01-22 Thread Michael Newman
New submission from Michael Newman michael.b.new...@gmail.com: 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

[issue7592] ssl module documentation: SSLSocket.unwrap description shown twice

2009-12-28 Thread Michael Newman
New submission from Michael Newman michael.b.new...@gmail.com: For the ssl module documentation at: http://docs.python.org/3.1/library/ssl.html I noticed that SSLSocket.unwrap() description is listed twice in the 17.3.2. SSLSocket Objects section. -- assignee: georg.brandl components

[issue6417] multiprocessing Process examples: print and getppid

2009-07-04 Thread Michael Newman
New submission from Michael Newman michael.b.new...@gmail.com: The 16.6.1.1. The Process class section of the multiprocessing documentation: http://docs.python.org/dev/py3k/library/multiprocessing.html has errors in both examples. The first example needs the indentation fixed on the from

[issue6417] multiprocessing Process examples: print and getppid

2009-07-04 Thread Michael Newman
Michael Newman michael.b.new...@gmail.com added the comment: # Revised example that is more platform neutral (avoids sys.platform): from multiprocessing import Process, current_process import os def info(title): print(title) print('module name:', __name__) if not hasattr(os

[issue4309] ctypes documentation

2009-06-08 Thread Michael Newman
Michael Newman michael.b.new...@gmail.com added the comment: Watch out on Line 247 of r73293: bytes objcet should be: bytes object -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4309

[issue4309] ctypes documentation

2009-06-06 Thread Michael Newman
Michael Newman michael.b.new...@gmail.com added the comment: Regarding Section 15.15.1.5. Calling functions, continued on: http://docs.python.org/3.0/library/ctypes.html I would recommend changing the first example code block to the following: printf = libc.printf printf(bHello, %s\n, bWorld

[issue6155] logging example uses unavailable cPickle module

2009-05-31 Thread Michael Newman
New submission from Michael Newman michael.b.new...@gmail.com: The server portion of the example at: 15.6.9. Sending and receiving logging events across a network http://docs.python.org/3.0/library/logging.html uses import cPickle which is not available for Python 3.0.1 Python 3.0.1 (r301:69561

[issue5758] fileinput.hook_compressed returning bytes from gz file

2009-04-14 Thread Michael Newman
New submission from Michael Newman michael.b.new...@gmail.com: The attached ZIP file contains test.bat which runs test.py with Python 2.6 and Python 3.0. Python 2.6 behaves as expected (see py26.out), since it returns strings from both mike.txt and mike.txt.gz. However, the same test

[issue5595] os.path.ismount (ntpath) gives UnboundLocalError for any input

2009-03-29 Thread Michael Newman
New submission from Michael Newman michael.b.new...@gmail.com: os.path.ismount gives UnboundLocalError for any input in Python 3.0: Python 3.0.1 (r301:69561, Feb 13 2009, 20:04:18) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. import

[issue5532] imap usage in itertools unique_justseen recipe

2009-03-21 Thread Michael Newman
New submission from Michael Newman michael.b.new...@gmail.com: The recipe for unique_justseen listed on: http://docs.python.org/3.0/library/itertools.html uses imap, which is not available in Python 3.0. I fixed it by changing imap to just map, and I also changing itemgetter

[issue5393] cmath.cos and cmath.cosh have nResult typo in help

2009-02-28 Thread Michael Newman
New submission from Michael Newman michael.b.new...@gmail.com: cmath.cos and cmath.cosh have nResult typo in their help text. Python 3.0.1 (r301:69561, Feb 13 2009, 20:04:18) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. import cmath help

[issue5086] set_daemon does not exist in Thread

2009-01-27 Thread Michael Newman
New submission from Michael Newman michael.b.new...@gmail.com: This is related to: http://bugs.python.org/issue3628 http://bugs.python.org/issue4808 I found in the example at the bottom of: http://docs.python.org/3.0/library/queue.html t.set_daemon(True) won't work. Python 3.0 (r30:67507, Dec

[issue5087] set_daemon does not exist in Thread

2009-01-27 Thread Michael Newman
New submission from Michael Newman michael.b.new...@gmail.com: This is related to: http://bugs.python.org/issue3628 http://bugs.python.org/issue4808 I found in the example at the bottom of: http://docs.python.org/3.0/library/queue.html t.set_daemon(True) won't work. Python 3.0 (r30:67507, Dec

[issue4973] calendar formatyearpage returns bytes, not str

2009-01-18 Thread Michael Newman
Michael Newman michael.b.new...@gmail.com added the comment: It seems to be working consistently (see UTF-16 extreme example below), but I had expected it to act similarly to Python 2.6, which it does not. I suppose this is due to the distinction now made between strings and bytes in Python 3.0

[issue4973] calendar formatyearpage returns bytes, not str

2009-01-17 Thread Michael Newman
New submission from Michael Newman michael.b.new...@gmail.com: formatyearpage is returning bytes, not str Python 3.0 (r30:67507, Dec 3 2008, 20:14:27) [MSC v.1500 32 bit (Intel)] on win 32 Type help, copyright, credits or license for more information. import calendar calendar.HTMLCalendar

[issue4700] UnicodeEncodeError in license()

2008-12-19 Thread Michael Newman
New submission from Michael Newman michael.b.new...@gmail.com: UnicodeEncodeError occurs for Microsoft portion of license(). Confirmed on 3 separate Windows XP computers: Python 3.0 (r30:67507, Dec 3 2008, 20:14:27) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license