[issue6131] test_modulefinder leaks when run after test_distutils

2009-05-29 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I can reproduce refleaks with only test_distutils now. E:\python-dev\py3k\Lib\testpy3k regrtest.py -R3:2: test_distutils test_distutils beginning 5 repetitions 12345 . test_distutils leaked [280, 280] references, sum=560 1 test

[issue6097] Encoded surrogate characters on command line not escaped in sys.argv

2009-05-29 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6097 ___ ___ Python-bugs-list

[issue5274] sys.exc_info()[1] - different handling from str() and unicode() - py 2.6

2009-05-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Duplicate of #6108. -- nosy: +georg.brandl resolution: - duplicate status: open - closed superseder: - unicode(exception) behaves differently on Py2.6 when len(exception.args) 1 ___ Python tracker

[issue6131] test_modulefinder leaks when run after test_distutils

2009-05-29 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Thanks, it fixed it. Applied in the trunk. Can you guys merge r73008 into Py3k please ? I have a problem today, I can't build py3k on Mac OS X anymore, I am trying to figure out why. -- ___

[issue6131] test_modulefinder leaks when run after test_distutils

2009-05-29 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Done in r73010. I think it would be better to patch release26maint.patch for release26-maint (and same patch for release30-maint) to complete super() issue. -- ___ Python tracker

[issue6131] test_modulefinder leaks when run after test_distutils

2009-05-29 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Added file: http://bugs.python.org/file14110/release26maint.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6131 ___

[issue4829] confusing error for file(foo, w++)

2009-05-29 Thread John Szakmeister
John Szakmeister j...@szakmeister.net added the comment: On trunk, it seems that it's perfectly happy if you specify more than one '+': Python 2.7a0 (trunk, May 29 2009, 05:57:26) [GCC 4.0.1 (Apple Inc. build 5470) (Aspen 5470.3)] on darwin Type help, copyright, credits or license for more

[issue6141] missing first argument on subprocess.Popen w/ executable

2009-05-29 Thread Lie Ryan
New submission from Lie Ryan lie.1...@gmail.com: Following from http://comments.gmane.org/gmane.comp.python.tutor/55576 import subprocess subprocess.Popen(['a', 'b', 'c', 'd'], executable='echo') subprocess.Popen object at 0x7fdf7bb2bd50 b c d instead of the (what I) expected result a b c d

[issue3329] API for setting the memory allocator used by Python

2009-05-29 Thread John Szakmeister
Changes by John Szakmeister j...@szakmeister.net: -- nosy: +jszakmeister ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3329 ___ ___

[issue6131] test_modulefinder leaks when run after test_distutils

2009-05-29 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: done thx for the help. Do you happen to know the exact reason why using super rather than an explicit call avoids the leaking ? -- status: open - closed versions: +Python 2.6, Python 2.7, Python 3.0

[issue4618] print_function and unicode_literals don't work together

2009-05-29 Thread John Szakmeister
Changes by John Szakmeister j...@szakmeister.net: -- nosy: +jszakmeister ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4618 ___ ___

[issue6131] test_modulefinder leaks when run after test_distutils

2009-05-29 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Well, I don't know... But probably mixing super() and non super() caused too many call of setUp() or tearDown(). I saw such case before. To track down this, probably this info helps. 1. Revert to previous revision of distutils 2.

[issue6131] test_modulefinder leaks when run after test_distutils

2009-05-29 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I tracked down more deeper. LoggingSilencer.setUp() was called twice, so restoration of log.Log._log was not done correctly. log.Log._log becomes method of TestCase class after test done in most cases. Probably this keeps reference

[issue672115] Assignment to __bases__ of direct object subclasses

2009-05-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Lars, I think that your question has a simple explanation, and is not related to the original issue: - On 4th line, the variable named A is bound to a new type object. This type has no attribute by itself. - The first dir(A) displays the

[issue6012] enhance getargs O to accept cleanup function

2009-05-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I have now committed this patch with the proposed modifications as r73014. I don't believe that the additional destr call is necessary, as releasing the capsule will invoke destr already. -- resolution: - fixed status: open -

[issue6141] missing first argument on subprocess.Popen w/ executable

2009-05-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The way it works is the way most programmers expect it to work, even though most get bitten by it more than once. So the behavior isn't going to change. I've attached a doc fix, but I'm not sure whether or not the 'diplay name' piece

[issue4859] pwd, spwd, grp functions vulnerable to denial of service

2009-05-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Thanks for the patches. Committed as r73015. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4859

[issue6142] Distutils doesn't remove .pyc files

2009-05-29 Thread James
New submission from James purplei...@gmail.com: Priority: 4 Keywords: patch, distutils, pyc Comment: I posted this on the distutils mailing list, and they said I should post it here instead. --- Hi, I'm certaintly new to distutils and setuptools, however I figured I'd send in this patch, and

[issue4873] Refcount error and file descriptor leaks in pwd, grp modules

2009-05-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Thanks for the patch. Committed as r73016, r73017, r73018, r73019. -- nosy: +loewis resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6097] Encoded surrogate characters on command line not escaped in sys.argv

2009-05-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Thanks for the patch. Committed as r73020. -- nosy: +loewis resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6097

[issue6133] LOAD_CONST followed by LOAD_ATTR can be optimized to just be a LOAD_COST

2009-05-29 Thread Collin Winter
Changes by Collin Winter coll...@gmail.com: -- nosy: +collinwinter ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6133 ___ ___ Python-bugs-list

[issue5903] strftime fails in non UTF-8 locale

2009-05-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: This is a duplicate of issue 3061. -- nosy: +loewis resolution: - duplicate status: open - closed superseder: - time.strftime() always decodes result with UTF-8 ___ Python tracker

[issue5562] Locale-based date formatting crashes on non-ASCII data

2009-05-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: This is a duplicate of issue 3061. -- resolution: - duplicate status: open - closed superseder: - time.strftime() always decodes result with UTF-8 ___ Python tracker rep...@bugs.python.org

[issue3585] pkg-config support

2009-05-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Antoine: Don't use autoconf 2.63 to generate pyconfig.h.in and configure. Use 2.61 instead (until it is agreed to switch to a newer version). -- nosy: +loewis ___ Python tracker

[issue3061] time.strftime() always decodes result with UTF-8

2009-05-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Here is a patch that resolves this issue for systems supporting wcsftime, which should be the majority of systems on which the problem can occur. -- keywords: +patch priority: high - release blocker Added file:

[issue3585] pkg-config support

2009-05-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Antoine: Don't use autoconf 2.63 to generate pyconfig.h.in and configure. Use 2.61 instead (until it is agreed to switch to a newer version). Oops, sorry. Are there any known issues with 2.63? --

[issue6092] Changed Shortcuts don't show up in menu

2009-05-29 Thread jamesie
jamesie pos...@jamesie.de added the comment: At least for Run in the main menu the changed shortcut shows up after a restart of IDLE. Nevertheless in the Options dialog the string F5 seems to be hard coded. -- ___ Python tracker

[issue3061] time.strftime() always decodes result with UTF-8

2009-05-29 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: The patch looks good. (Can this be tested?) -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3061 ___

[issue6141] missing first argument on subprocess.Popen w/ executable

2009-05-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Patch looks good, just replace `ps` by :program:`ps` please. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6141 ___

[issue6102] When the package has non-ascii path and .pyc file, we cannot import them.

2009-05-29 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Am closing based on 'My problem seems resolved'. I don't know whether it will be fixed in 3.0.2 or not, but that is pretty much a moot point. -- nosy: +tjreedy resolution: - fixed status: open - closed

[issue6141] missing first argument on subprocess.Popen w/ executable

2009-05-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Fixed in r73026, thanks. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6141

[issue3061] time.strftime() always decodes result with UTF-8

2009-05-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: It's difficult to test. The only test I can think of is one that gets skipped if the fr_FR (say) locale is not configured. The test would then try to find out what the name of February is, which should return a string (see issue5562).

[issue6132] Implement the GIL with critical sections in Windows

2009-05-29 Thread Phillip Sitbon
Changes by Phillip Sitbon phillip.sitbon+python-...@gmail.com: Removed file: http://bugs.python.org/file14096/thread_nt.h.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6132 ___

[issue6132] Implement the GIL with critical sections in Windows

2009-05-29 Thread Phillip Sitbon
Phillip Sitbon phillip.sitbon+python-...@gmail.com added the comment: Tabified new code and removed one C++-style comment. -- Added file: http://bugs.python.org/file14114/thread_nt.h.patch ___ Python tracker rep...@bugs.python.org

[issue6119] Confusing DeprecationWarning

2009-05-29 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I believe that is a bug. The warning should be about 'order comparisons', which did disappear, and not 'inequality comparisons', and should not trigger on == or !=. -- nosy: +tjreedy ___ Python

[issue6127] Unexpected universal newline behavior (newline duplication) in Windows

2009-05-29 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: FWIW, WindowsXP, Py3.1b1, May 7 io.StringIO('foo\r\nbar\r\n', newline=None).read() 'foo\nbar\n' I believe there were changes to io after April 14 for May 7 release, so this may be fixed in 2.6.3 branch already. -- nosy: +tjreedy

[issue5922] Multi-with patch

2009-05-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This was applied by Georg in r72925. -- nosy: +r.david.murray resolution: - accepted stage: patch review - committed/rejected status: open - closed type: - feature request ___ Python tracker

[issue3061] time.strftime() always decodes result with UTF-8

2009-05-29 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3061 ___ ___

[issue6133] LOAD_CONST followed by LOAD_ATTR can be optimized to just be a LOAD_COST

2009-05-29 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Martin, I agree that we would have to think carefully about all attributes of all constants loaded by LOAD_CONST, and about special-casing marshal, but given that 'str' object attribute 'join' is read-only, how is ''.join not a constant? Do you

[issue6133] LOAD_CONST followed by LOAD_ATTR can be optimized to just be a LOAD_COST

2009-05-29 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I'm working a better patch now. Will give to collin to review when it's ready. Here's a draft of the new opcode: TARGET(LOAD_CONST_ATTR) u = GETLOCAL(oparg);/* Cached attribute or

[issue3061] time.strftime() always decodes result with UTF-8

2009-05-29 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Can you use test_support.run_with_locale? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3061 ___

[issue2292] Missing *-unpacking generalizations

2009-05-29 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I was hoping this would make 3.1. Too late, I guess. What about 3.2? -- nosy: +tjreedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292

[issue6100] Expanding arrays inside other arrays

2009-05-29 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I agree. This and more is part of #2292 -- nosy: +tjreedy resolution: - duplicate status: open - closed superseder: - Missing *-unpacking generalizations ___ Python tracker rep...@bugs.python.org

[issue6139] Typo in email.base64mime

2009-05-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r73028. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6139 ___

[issue6001] Test discovery for unittest

2009-05-29 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Committed in revision 73027. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6001 ___

[issue2292] Missing *-unpacking generalizations

2009-05-29 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: I was hoping this would make 3.1. Too late, I guess. What about 3.2? Here's what I said before: I think we should either get this into the 3.0a5 release planned for May 7, or wait for 3.1. I'd prefer to see some kind of PEP discussion

[issue6133] LOAD_CONST followed by LOAD_ATTR can be optimized to just be a LOAD_COST

2009-05-29 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Attaching a rough patch for caching constant attribute lookups. Has an open TODO for adding the new name to co-co_varnames. -- Added file: http://bugs.python.org/file14115/constattr.diff

[issue6143] IDLE - an extension to clear the shell window

2009-05-29 Thread Roger Serwy
New submission from Roger Serwy roger.se...@gmail.com: I noticed that the feature to clear the shell window has been a discussion topic in the IDLE-dev archives for a few years. Here's an extension that can clear the contents of the shell window. It provides Clear Shell Window under Options and

[issue6144] [IDLE] UnicodeDecodeError when invoking force-open-completions

2009-05-29 Thread jamesie
New submission from jamesie pos...@jamesie.de: IDLE 3.1b1 crashes when I press Control-SPACE in order to invoke Show Completions from the Edit submenu. When I run that funtionality from the menu it works ok. Traceback (most recent call last): File /usr/local/bin/idle3, line 5, in module

[issue3821] trace module bug when using --missing

2009-05-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Brett Cannon apparently fixed this in r69111 for 3.1. I merged it to the 30-maint branch in r73030. It would be nice to add the tests, but they don't currently pass (test_coverage_ignore fails). I don't know if that's a test bug or a

[issue6145] distutils.extension.read_setup_file misinterprets -C switch

2009-05-29 Thread Lorenz Quack
New submission from Lorenz Quack d...@amberfisharts.com: I'm not sure if this is a bug or some weird backward-compatible behaviour... In distutil.extension.read_setup_file it checks for the -C switch but then appends word instead of value So if you pass -C-Wall it actually passes exactly that

[issue4236] Crash when importing builtin module during interpreter shutdown

2009-05-29 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- components: +Interpreter Core stage: - needs patch type: - crash versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue4486] Exception traceback is incorrect for strange exception handling

2009-05-29 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: barry - versions: +Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4486 ___

[issue3585] pkg-config support

2009-05-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Oops, sorry. Are there any known issues with 2.63? Yes: it puts a carriage-return character into configure which completely confuses subversion. I'm puzzled how you were able to commit the generated files; subversion should have reported

[issue3585] pkg-config support

2009-05-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Yes: it puts a carriage-return character into configure which completely confuses subversion. I'm puzzled how you were able to commit the generated files; subversion should have reported an error svn: File 'configure' has inconsistent

[issue1563] asyncore and asynchat incompatible with Py3k str and bytes

2009-05-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Reducing priority since the critical issues seem to have been resolved already. Also retargeting for 3.2 since 3.1 is about to go rc. -- nosy: +r.david.murray priority: critical - normal versions: +Python 3.2 -Python 3.0

[issue6133] LOAD_CONST followed by LOAD_ATTR can be optimized to just be a LOAD_COST

2009-05-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Terry J. Reedy wrote: Terry J. Reedy tjre...@udel.edu added the comment: Martin, I agree that we would have to think carefully about all attributes of all constants loaded by LOAD_CONST, and about special-casing marshal, but given that

[issue3061] time.strftime() always decodes result with UTF-8

2009-05-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Benjamin Peterson wrote: Benjamin Peterson benja...@python.org added the comment: Can you use test_support.run_with_locale? I don't think so. IIUC, run_with_locale will fallback to not setting the locale if none of the listed locales

[issue3061] time.strftime() always decodes result with UTF-8

2009-05-29 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2009/5/29 Martin v. Löwis rep...@bugs.python.org: Martin v. Löwis mar...@v.loewis.de added the comment: Benjamin Peterson wrote: Benjamin Peterson benja...@python.org added the comment: Can you use test_support.run_with_locale? I

[issue2775] Implement PEP 3108

2009-05-29 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2775 ___

[issue3585] pkg-config support

2009-05-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I did get that message (and got puzzled by it). I worked around it by reading the file in universal newlines mode and saving it again. I believe this has broken part of the configure script. There is an ac_cr variable that is supposed to

[issue3585] pkg-config support

2009-05-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ouch, unfortunately it seems my distribution doesn't package autoconf 2.61. Is there any risk in installing it from scratch? -- ___ Python tracker rep...@bugs.python.org

[issue6146] markup error in Doc/library/rlcompleter.rst

2009-05-29 Thread Trundle
New submission from Trundle andy-pyt...@hammerhartes.de: There is a small markup error in the description of Completer objects. The attached patch fixes this. -- assignee: georg.brandl components: Documentation files: rlcompleter_doc_markup.patch keywords: patch messages: 88551 nosy:

[issue6133] LOAD_CONST followed by LOAD_ATTR can be optimized to just be a LOAD_COST

2009-05-29 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: You are right, of course: bound methods are currently created fresh on each access, even though each is equal except for identity. I was thinking in terms of str.join is str.join True This appears to be a classic time-space tradeoff: caching

[issue2919] Merge profile/cProfile in 3.0

2009-05-29 Thread Humberto Diogenes
Humberto Diogenes humbe...@digi.com.br added the comment: How is this going? -- nosy: +hdiogenes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2919 ___

[issue3585] pkg-config support

2009-05-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Ouch, unfortunately it seems my distribution doesn't package autoconf 2.61. Is there any risk in installing it from scratch? I usually install it into a private location, such as ~/ac261. This is absolutely safe. --

[issue2742] example code does not work

2009-05-29 Thread Gordon Fogus
Gordon Fogus gordon.fo...@gmail.com added the comment: I am having this issue again with python code running under python 2.6.2 compiled from source on May 28, 2009 in CentOS 5.3. The patch in the socketmodule.diff file does not seem to be applied to the socketmodule.c file in the current 2.6.2

[issue6133] LOAD_CONST followed by LOAD_ATTR can be optimized to just be a LOAD_COST

2009-05-29 Thread Collin Winter
Collin Winter coll...@gmail.com added the comment: On Fri, May 29, 2009 at 3:45 PM, Martin v. Löwis rep...@bugs.python.org wrote: py s = py s.join is s.join False Every time you read it, you get a new object. Not what I would call a constant. If you don't see how this matters, try def

[issue6147] multithreading.Pool.map() crashes Windows computer

2009-05-29 Thread Alex James
New submission from Alex James ac.ja...@shaw.ca: When calling multithreading.Pool().map() to distribute computational load I've recently got system crashes. The attached minimalist script exhibits this issue. On a Windows Vista home premium sp1 running Python 2.6.2 on a dual-core laptop,

[issue6133] LOAD_CONST followed by LOAD_ATTR can be optimized to just be a LOAD_COST

2009-05-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Does this optimization actually help in real-world cases? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6133 ___

[issue6147] multithreading.Pool.map() crashes Windows computer

2009-05-29 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- assignee: - jnoller nosy: +jnoller status: open - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6147 ___

[issue1563] asyncore and asynchat incompatible with Py3k str and bytes

2009-05-29 Thread Josiah Carlson
Josiah Carlson josiahcarl...@users.sourceforge.net added the comment: You can probably close this unless someone says otherwise. asyncore/asynchat work in Python 3.0+, as long as only bytes are passed. As of right now, this is a request for documentation stating you can only send/receive

[issue6147] multithreading.Pool.map() crashes Windows computer

2009-05-29 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: Can you wrap the execution of the main code in a if __name__ == __main__: block, as shown in the documentation? Failure to do so can cause a fork bomb on windows -- ___ Python tracker

[issue6133] LOAD_CONST followed by LOAD_ATTR can be optimized to just be a LOAD_COST

2009-05-29 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Returning the same object vs new object for bound methods is a non-guaranteed implementation detail (as long the other semantics remain true). I think Martin's real concern is that trying to intern bound methods would be a

[issue6133] LOAD_CONST followed by LOAD_ATTR can be optimized to just be a LOAD_COST

2009-05-29 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: [AP] Does this optimization actually help in real-world cases? Yes and no. Yes, there are real world cases like ','.join and '{}'.format that are dramatically sped-up. No, there are probably no real-world programs that are

[issue6133] LOAD_CONST followed by LOAD_ATTR can be optimized to just be a LOAD_COST

2009-05-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Returning the same object vs new object for bound methods is a non-guaranteed implementation detail (as long the other semantics remain true). I think Martin's real concern is that trying to intern bound methods would be a can of worms