[issue9085] Version number inconsistency in email package

2010-06-28 Thread Tokio Kikuchi
Tokio Kikuchi tkiku...@users.sourceforge.net added the comment: I couldn't track down the bug but the symptom is that python 2.5 -- mailman 2.1.13 combination make Japanese message 'mojibake'. Using only email package for generating message cause no trouble as far as I can check, so the bug

[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-06-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Alexander Belopolsky wrote: Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I am attaching a patch which makes python3 read 27.bench without errors. I think this should be applied while a complete solution

[issue3428] httplib.HTTPMessage undocumented

2010-06-28 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Fixed in r82322 and r82323. Actually urllib.urlopen.info method return a mimetools.Message instance and a HTTPMessage instance is used within httplib only. It is more internal purposes to deal with headers with add_continue like methods

[issue3990] The Linux2 platform definition is incorrect for alpha, hppa, mips, sparc

2010-06-28 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3990 ___ ___ Python-bugs-list mailing list

[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-06-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Alexander Belopolsky wrote: Alexander Belopolsky belopol...@users.sourceforge.net added the comment: The bytes/string issu was a red herring: with pickle.load(open('27.bench', 'b')), I get the same stack trace as from command line

[issue9097] os.chdir(path) to return current dir

2010-06-28 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: os.chdir(path) is often used with os.getcwd() call and doesn't return anything. It can return the name of the directory before the change. prev = os.chdir(path) ... os.chdir(prev) Maybe it will also be possible to implement 'with'

[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-06-28 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8611 ___ ___

[issue9098] MSYS build fails with `S_IXGRP' undeclared

2010-06-28 Thread Martin Ellison
New submission from Martin Ellison martin.elli...@gmail.com: Python 2.6.5 build fails on MSYS with the following messages mar...@edward /c/Downloads/Python-2.6.5 $ make gcc -c -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes - I. -IInclude -I./Include -DPy_BUILD_CORE -o

[issue9099] multiprocessing/win32:

2010-06-28 Thread Alexander Myodov
New submission from Alexander Myodov amyo...@gmail.com: I am using Python 2.6.5/win32, and working with multiprocessing module, doing that with Python interpreter embedded using Cython (if that may be related to the problem). While creating a subprocess and a Pipe to communicate with it, I've

[issue8852] _socket fails to build on OpenSolaris x64

2010-06-28 Thread David Kirkby
David Kirkby david.kir...@onetel.net added the comment: Thank you Mark for confirming what I found. I understand your reservations about the code if you don't know of its correctness. I must admit I don't myself. I don't have a clue how this _socket module should be built. But it is clear

[issue9099] multiprocessing/win32: WindowsError: [Error 0] Success on Pipe()

2010-06-28 Thread Alexander Myodov
Alexander Myodov amyo...@gmail.com added the comment: Sorry for formatting above, a copypaste issue. The lines 202-204: win32.SetNamedPipeHandleState( h2, win32.PIPE_READMODE_MESSAGE, None, None ) The change that fixes the problem (at least for me): try:

[issue9098] MSYS build fails with `S_IXGRP' undeclared

2010-06-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I don't think MSYS (or mingw32) is supported at all. I'm even surprised that the build went so far. -- assignee: - loewis nosy: +amaury.forgeotdarc, loewis ___ Python tracker

[issue9100] test_sysconfig fails (test_user_similar)

2010-06-28 Thread Zsolt Cserna
New submission from Zsolt Cserna zsolt.cse...@morganstanley.com: Python 2.7rc2 test_user_similar test in test_sysconfig fails for me. I think it's because I have different --exec-prefix and --prefix specified. The test assumes that get_config_var('base') is the part of the global_path =

[issue9097] os.chdir(path) to return current dir

2010-06-28 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: -0 for having os.chdir be responsible for the previous directory. I'm not too much against this, but it's very easily done in it's current state. -1 for making os.chdir into a context manager which reverts itself upon exit. There are a number of

[issue9098] MSYS build fails with `S_IXGRP' undeclared

2010-06-28 Thread Martin Ellison
Martin Ellison martin.elli...@gmail.com added the comment: I thought Python ran everywhere. That's what the documentation says. Regards, Martin (m...@acm.org) On 28 June 2010 21:00, Amaury Forgeot d'Arc rep...@bugs.python.org wrote: Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

[issue9099] multiprocessing/win32: WindowsError: [Error 0] Success on Pipe()

2010-06-28 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9099 ___ ___ Python-bugs-list

[issue9098] MSYS build fails with `S_IXGRP' undeclared

2010-06-28 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: I thought Python ran everywhere. That's what the documentation says. Python does *run* on Windows (when compiled with Visual Studio or gcc via Cygwin), it just might not be setup to build with the MSYS compiler. -- nosy: +brian.curtin

[issue8653] urlparse.urlparse/urlsplit doc missing

2010-06-28 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Fixed in r82324, r82325, r82326, r82327. Only the urlunsplit need the docstrings, I added that. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker

[issue9101] reference json format in file formats chapter

2010-06-28 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: Quite often people use .json files for storing configuration. Having a reference to json module from chapter 14. File Formats would be a good pointer for those looking to .ini alternatives. -- assignee: d...@python components:

[issue9102] pybench: Cannot compare 2.x and 3.x benchmarks

2010-06-28 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: There are several issues that prevent $ python3 Tools/pybench/pybench.py -s 27.bench -c 32.bench from working. 1. There is a bug in _pickle that prevents 2.x pickles that contain classic class instances from loading

[issue9097] os.chdir(path) to return current dir

2010-06-28 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: -1 on chdir returning a the directory name. -1 on having it as context manager. Both are non-intuitive and may not serve any utility value. This can be verified by looking the code at the places where these functions are currently used.

[issue9102] pybench: Cannot compare 2.x and 3.x benchmarks

2010-06-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- dependencies: +3.1 cannot unpickle 2.7-created pickle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9102 ___

[issue9103] API keyword

2010-06-28 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: Need API keyword to filter refused API proposals. -- anatoly t. -- messages: 108836 nosy: techtonik priority: normal severity: normal status: open title: API keyword ___ Python tracker

[issue3428] httplib.HTTPMessage undocumented

2010-06-28 Thread ipatrol
ipatrol ipatrol6...@yahoo.com added the comment: What about urllib2? It's explicitly mentioned as the return value of .info() -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3428 ___

[issue9103] API keyword

2010-06-28 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Please post on meta-tracker. -- nosy: +benjamin.peterson resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9103

[issue9103] API keyword

2010-06-28 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Oops. Wrong tracker http://psf.upfronthosting.co.za/roundup/meta/issue341 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9103 ___

[issue9104] test_exceptions does not test pickling with pickle.py

2010-06-28 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: This is probably one example of many where pickling is only tested with _pickle module if it is available rather than separately with C and Python implementation. I am attaching a patch which implements one possible

[issue9097] os.chdir(path) to return current dir

2010-06-28 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Brian, in case you remove previous directory - you will get the same exception that in the following code. prev = os.chdir(somepath) os.rmdir(prev) os.chdir(prev) Senthil, your arguments are strange. Both use cases are at least useful

[issue9104] test_exceptions does not test pickling with pickle.py

2010-06-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9104 ___

[issue9077] argparse does not handle arguments correctly after --

2010-06-28 Thread Domen Kožar
Domen Kožar ielect...@gmail.com added the comment: I always used optparse like this, using the rargs (maybe this is not main intention, but worked so far): import optparse parser = optparse.OptionParser() parser.add_option('--test', action='store_true') Option at 0x7f55bdb32dd0: --test

[issue9104] test_exceptions does not test pickling with pickle.py

2010-06-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It looks good on the principle. As you say, factoring out this kind of machinery in test.support is probably the way to go. -- ___ Python tracker rep...@bugs.python.org

[issue3428] httplib.HTTPMessage undocumented

2010-06-28 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: That was a Documentation mistake. Thanks for pointing out. Corrected it in revision 82334 and merged to other branches. -- ___ Python tracker rep...@bugs.python.org

[issue9097] os.chdir(path) to return current dir

2010-06-28 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: On Mon, Jun 28, 2010 at 04:50:12PM +, anatoly techtonik wrote: I also can't see how can I verify you assumptions by looking at the code. In the python source: find -name *.py | xargs grep 'os.chdir' gives 143 instances of its usage.

[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-06-28 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I am attaching a patch which focuses on fixing _pickle behavior. I opened a separate issue9102 to deal with pybench specific problems. Marc-Andre, I am reassigning this issue to myself and assigning issue9102 to you.

[issue9105] pickle security note should be more prominent

2010-06-28 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: Pickle warning about insecurity is located only at the second page near the bottom of Relationship to other Python modules chapter. For me the proper place for it is the first page of documentation. -- assignee: d...@python

[issue9105] pickle security note should be more prominent

2010-06-28 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: See also issue8855. I believe Anatoly refers to http://docs.python.org/py3k/library/pickle.html I agree, the warning can be moved up so that it is visible on the first page in typical rendering. Note that there is

[issue9097] os.chdir(path) to return current dir

2010-06-28 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: In addition, os functions tend to be thin wrappers around system functions, and the system chdir does not return the cwd. Thus we'd be adding code to chdir that would be executed every time it was called even though it would only be

[issue9106] remove numbers from 3-.. level entries in docs toc

2010-06-28 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: It seems that left side ToC menu will be more clear without numeric prefixes from chapter on 3-.. nesting levels. How about to remove them? For example - the ToC menu now starting from root level: 15.6. logging — Logging facility for

[issue9105] pickle security note should be more prominent

2010-06-28 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Also http://docs.python.org/library/pickle.html http://docs.python.org/library/logging.html#sending-and-receiving-logging-events-across-a-network and http://mail.python.org/pipermail/python-dev/2010-June/101179.html The link to Nadia

[issue9045] 2.7rc1: 64-bit OSX installer is not built with 64-bit tkinter

2010-06-28 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: On 2010-06-27, at 5:48 AM, Ronald Oussoren wrote: Even when building using an SDK you can use frameworks in /Library/Frameworks because $SDKROOT/Library/Frameworks is a symlink to the real /Library/Frameworks. When building on

[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-06-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Removed file: http://bugs.python.org/file17781/issue5180.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5180 ___

[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-06-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Removed file: http://bugs.python.org/file17788/issue5180-fix.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5180 ___

[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-06-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- stage: unit test needed - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5180 ___

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2010-06-28 Thread S Arrowsmith
S Arrowsmith si...@chiark.greenend.org.uk added the comment: I've dug into it -- again -- and my original analysis still holds. Getting consistent guess_extension() results across an explicit init() call depends on dict.items() returning keys in the same order on two different dictionaries

[issue9104] test_exceptions does not test pickling with pickle.py

2010-06-28 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: In the new patch, issue9104.diff, I factored out import machinery into test.support.import_module_implementations and added it to a a couple of other test modules. I did not attempt to improve all pickle tests. The

[issue9107] PyModule_Create not working properly

2010-06-28 Thread Krauzi
New submission from Krauzi krauzi_g...@yahoo.de: Hi guys i have a big problem with my code: PyModule_Create doesnt add any methods to the module (all methods are correctly added to the PyMethodDef structure respective the PyModuleDef). With python 2.6.5 everything works well (Py_InitModule used

[issue9104] test_exceptions does not test pickling with pickle.py

2010-06-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Removed file: http://bugs.python.org/file17793/issue9104.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9104 ___

[issue9104] test_exceptions does not test pickling with pickle.py

2010-06-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Added file: http://bugs.python.org/file17794/issue9104.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9104 ___

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-06-28 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The discussion on #152807 references two other closed tracker issues: #1678339 Test case that currently fails #1678345 Patch to change behavior - rejected because crippled behavior is supposedly intentional and removing the change would slow

[issue3430] httplib.HTTPResponse documentations inconsistent

2010-06-28 Thread ThomasH
ThomasH thomas.bugzi...@gmx.net added the comment: Still applies. Neither the 2.7 documentation has changed (judging from the current online dev docs), nor the implementation (judging from current svn). So my first two lists are still valid. I cannot comment on the third, as I don't have a

[issue9094] Make python-m pickletools do something useful

2010-06-28 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Good idea! You can remove the doctest behavior. I don't think it is useful. But if you remove it, make sure you add an usage message when no argument is given. -- ___ Python tracker

[issue9045] 2.7rc1: 64-bit OSX installer is not built with 64-bit tkinter

2010-06-28 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: I tried patching setup.py to force linking to Apple's Tcl/Tk: --- python/setup.py.original2010-06-28 11:40:26.0 -0700 +++ python/setup.py 2010-06-28 11:45:39.0 -0700 @@ -1682,6 +1682,15 @@ for F in

[issue9104] test_exceptions does not test pickling with pickle.py

2010-06-28 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: The code for import_module_implementations seems a bit fragile. Prefixing the module name with an underscore might not always yield the name of the optimized implementation. An explicit dictionary to map the Python and C

[issue3430] httplib.HTTPResponse documentations inconsistent

2010-06-28 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Yes, I know httplib documentation needs improvement. There is a great deal of documentation in the module itself. A lot can be .rst'ifed. -- assignee: georg.brandl - orsenthil nosy: +orsenthil resolution: - accepted stage: -

[issue655802] cPickle not always same as pickle

2010-06-28 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: It's a documentation enhancement request. The updated documentation in Python 3 for pickle added most of the requested details. -- resolution: - fixed status: open - closed ___ Python

[issue9098] MSYS build fails with `S_IXGRP' undeclared

2010-06-28 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Martin (Ellison): What people are trying to say is that likely, nobody will be working on this, and likely so for the next few years. So unless you volunteer to provide a patch, I recommend to close the issue as won't fix. Unassigning

[issue1536] pickle's documentation is severely outdated

2010-06-28 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: The new documentation for pickle in Python 3 fixes this. I still believe we should outline the differences between pickle.py and cPickle. But at this point, it's unlikely I will put the time to do it. Feel free to open a new issue

[issue3428] httplib.HTTPMessage undocumented

2010-06-28 Thread ThomasH
ThomasH thomas.bugzi...@gmx.net added the comment: Actually urllib.urlopen.info method return a mimetools.Message instance But the urllib.rst documentation is still flawed: The :meth:`info` method returns an instance of the class :class:`httplib.HTTPMessage`

[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-06-28 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Thank you for the nice investigative work! I will try my best to review this patch by next week. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5180

[issue6589] smtpd.SMTPServer can cause asyncore.loop to enter infinite event loop

2010-06-28 Thread Casey McGinty
Casey McGinty casey.mcgi...@gmail.com added the comment: This is how it gets in an invalid state. Not sure why you can't look at the code and see the mistake. There is no code in the SMTPServere.__init__ method that catches the exception raised, caused by the failed bind attempt. After the

[issue9097] os.chdir(path) to return current dir

2010-06-28 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: -1 on this functionality being in os, for the same reasons David mentions. I find both of these behaviors useful and I have small utility functions of my own that do the same (and ignore any errors). I'm not so sure they need to be in stdlib,

[issue9107] PyModule_Create not working properly

2010-06-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The issue tracker is not here to get help. Please ask your question on the comp.lang.python newgroup, or the python-list mailing list. There, I think you will have to show part of your code; there will certainly be several people

[issue3385] cPickle to pickle conversion in py3k missing methods

2010-06-28 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Do I understand correctly that the issue is that python Pickler class has dispatch attribute but C Pickler does not? Yes. The add_dispatch_check-0.patch patch does not seem to add class attribute, it adds an instance attribute

[issue9106] remove numbers from 3-.. level entries in docs toc

2010-06-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - needs patch type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9106 ___

[issue8943] Bug in InteractiveConsole

2010-06-28 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: One easy fix for this would be to make InteractiveConsole use the string __main__ instead of __console__. But other than that, I don't think we can fix this within pickle. -- ___ Python

[issue9108] list object variable assign with multiplication sign

2010-06-28 Thread muzuiget
New submission from muzuiget muzui...@gmail.com: platform: ubuntu 10.04 amd64, python 2.6.5 r265:79063 run below code a = [{}, {}, {}] b = [{}] + [{}] + [{}] c = [{}] * 3 print a, len(a), type(a) print b, len(b), type(b) print c, len(c), type(c) a[1][test] = 1234 b[1][test] = 1234 c[1][test]

[issue9108] list object variable assign with multiplication sign

2010-06-28 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: That's because with [{}] * 3 you get a list with 3 copies of the same object, so all the elements in c refer to the same dict: a = [{}, {}, {}] b = [{}] + [{}] + [{}] c = [{}] * 3 map(id, a) [12850496, 12850784, 12850928] map(id, b)

[issue9109] absolute import cleanups for Python 3

2010-06-28 Thread Neil Schemenauer
New submission from Neil Schemenauer nas-pythonb...@arctrix.com: It looks like there is a bunch of legacy relative import cruft kicking around in Python 3. The first thing I noticed is that __import__.__doc__ claims that level=-1 is the default (i.e. use the Python 2 behavior). A little

[issue9109] absolute import cleanups for Python 3

2010-06-28 Thread Neil Schemenauer
Changes by Neil Schemenauer nas-pyt...@arctrix.com: -- assignee: - brett.cannon nosy: +brett.cannon -nas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9109 ___

[issue9109] absolute import cleanups for Python 3

2010-06-28 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9109 ___ ___ Python-bugs-list mailing

[issue9109] absolute import cleanups for Python 3

2010-06-28 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Having level=-1 doesn't even work in Python 3 like it did in Python 2 (it seems to just act as if level is 0), so yes the -1 code can be removed. Probably need all values less than 0 to get rounded up to 0 for backwards-compatibility with

[issue9109] absolute import cleanups for Python 3

2010-06-28 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- stage: - unit test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9109 ___ ___

[issue9109] absolute import cleanups for Python 3

2010-06-28 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: brett.cannon - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9109 ___ ___ Python-bugs-list

[issue4151] Separate build dir broken

2010-06-28 Thread Neil Schemenauer
Neil Schemenauer nas-pyt...@arctrix.com added the comment: I believe the latest problem reported has been fixed by SVN rev 80649. -- assignee: - nascheme nosy: -nas stage: - committed/rejected ___ Python tracker rep...@bugs.python.org

[issue9110] contextlib.ContextDecorator

2010-06-28 Thread Michael Foord
New submission from Michael Foord mich...@voidspace.org.uk: Patch to add a ContextDecorator class to contextlib. This allows context managers that inherit from ContextDecorator (including using it as a mixin) to be used as decorators as well as context managers. Context managers inheriting

[issue9094] Make python-m pickletools do something useful

2010-06-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, assuming you want to make it useful, I'd make that behaviour depend on a command-line option, such that other actions can be added later. -- nosy: +pitrou ___ Python tracker

[issue9110] contextlib.ContextDecorator

2010-06-28 Thread Michael Foord
Changes by Michael Foord mich...@voidspace.org.uk: Added file: http://bugs.python.org/file17796/docs.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9110 ___

[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-06-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: My patch attempts to emulate 2.x PyInstance_NewRaw with a call to tp_alloc. This is certainly the wrong thing to do. You could at least try PyBaseObject_Type.tp_new (see object_new() in typeobject.c), but even this is not necessarily right

[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-06-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: (and to follow on my example, I'd point that the unpickled instance is still an instance of the right class: type(x) class '__main__.C' ) -- ___ Python tracker rep...@bugs.python.org

[issue9104] test_exceptions does not test pickling with pickle.py

2010-06-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: An explicit dictionary to map the Python and C implementations may be a better approach. +1. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9104

[issue9045] 2.7rc1: 64-bit OSX installer is not built with 64-bit tkinter

2010-06-28 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Here's one resolution: 1. Edit setup.py to make INCLUDE/LIB paths for OpenSSL use the SDKROOT (for 10.5+ compat): [...] search_for_ssl_incs_in = [/Developer/SDKs/MacOSX10.5.sdk/usr/include/ if ON_SNOW_LEOPARD else /usr/include]

[issue9111] cmd.do_help documentation should mention docstrings

2010-06-28 Thread Miki Tebeka
New submission from Miki Tebeka miki.teb...@gmail.com: cmd.Cmd looks for help either by searching for help_XXX method or by the docstring of do_XXX. The latter is not mentioned in the docs. -- components: Library (Lib) messages: 108883 nosy: tebeka priority: normal severity: normal

[issue9094] Make python-m pickletools do something useful

2010-06-28 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Well, assuming you want to make it useful, I'd make that behaviour depend on a command-line option, .. OK, Antoine, you asked for it. :-) issue9094.diff -- Added file:

[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-06-28 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Mon, Jun 28, 2010 at 7:32 PM, Antoine Pitrou rep...@bugs.python.org wrote: My patch attempts to emulate 2.x PyInstance_NewRaw with a call to tp_alloc. This is certainly the wrong thing to do. You could at least try

[issue9106] remove numbers from 3-.. level entries in docs toc

2010-06-28 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: -1 -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9106 ___ ___

[issue2236] Distutils' mkpath implementation ignoring the mode parameter

2010-06-28 Thread Greg Ward
Greg Ward g...@gerg.ca added the comment: Is it too late for 2.7? I have no idea. It does look as though someone has written unit tests for distutils, so the patch needs a test change too. Henrique? -- stage: - unit test needed ___ Python

[issue6589] smtpd.SMTPServer can cause asyncore.loop to enter infinite event loop

2010-06-28 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: If you can provide a short example that reproduces the problem it will be much more likely to get fixed. -- nosy: +r.david.murray stage: - unit test needed type: - behavior ___ Python

[issue1581183] pickle protocol 2 failure on int subclass

2010-06-28 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I reproduced the problem in py3k (both protocol 2 and 3). See issue1581183-test-py3k.py attached. -- nosy: +alexandre.vassalotti, belopolsky versions: +Python 3.2 Added file:

[issue960821] Add an updating load function in pickle

2010-06-28 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: This functionality already exists. If a string is returned [from __reduce__() method], the string should be interpreted as the name of a global variable. It should be the object’s local name relative to its module;

[issue9106] remove numbers from 3-.. level entries in docs toc

2010-06-28 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: R. David Murray rdmur...@bitdance.com added the comment: -1 Why? Do you like wrapped menu entries three lines long? -- ___ Python tracker rep...@bugs.python.org

[issue5212] Incorrect note about md5 in hmac module documentation

2010-06-28 Thread .:. brainsik
.:. brainsik spork-pyt...@theory.org added the comment: Since the note is incorrect, it seems like it should be removed. What results it is based on are you referring to and what complaints are you concerned about? -- ___ Python tracker

[issue5212] Incorrect note about md5 in hmac module documentation

2010-06-28 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The supposed 'known weaknesses'. I have no particular opinion. Anyway, we have your recommendation: remove the note. I will let others defend it. -- ___ Python tracker rep...@bugs.python.org