[issue5053] http.client.HTTPMessage.getallmatchingheaders() always returns []

2009-01-26 Thread Mike Watkins
Mike Watkins added the comment: Further investigation ( grep -r getallmatchingheaders Lib/* ) reveals that in addition to having no tests, and being implemented incorrectly in http.client, getallmatchingheaders() is called only once, in http.server; that code is also broken (I reported this y

[issue4673] Distutils should provide an uninstall command

2009-01-26 Thread Tarek Ziadé
Tarek Ziadé added the comment: philobyte, this means you have to keep the source somewhere to be able to run setup.py uninstall. This is not handy imho. What about a uninstall registery in Python that keeps track of the files installed for each package ? this would let us have an uninstall comm

[issue5076] bdist_wininst fails on py3k

2009-01-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: Is it really useful to be have the same stub for 2.x and 3.x? I think it would be better if they mutually ignore each other, and be different. -- nosy: +loewis ___ Python tracker

[issue5075] bdist_wininst should not depend on the vc runtime?

2009-01-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: I think it would be even better if it didn't link with the CRT at all, but until somebody provides a patch for that, linking statically sounds fine to me. -- nosy: +loewis ___ Python tracker

[issue5062] Rlcompleter.Completer does not use __dir__ magic method

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina added the comment: The current behaviour is actually a requested feature: see #449227 I see your point, it may be annoying sometimes -- but calling a method is far more common than just getting a reference to it, so I think the current behaviour is fine (I'm talking about th

[issue5074] python3 and ctypes, script causes crash

2009-01-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: Why do you think this is a bug in ctypes? *Of course* it is possible to crash Python by using ctypes incorrectly. -- nosy: +loewis resolution: -> invalid status: open -> closed ___ Python tracker

[issue5074] python3 and ctypes, script causes crash

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina added the comment: 3rd argument to GetEnvironmentVariableW is the buffer size in *characters*, not bytes. Your buffer has room for 20 characters only, not 40. You should use create_unicode_buffer instead. Probably the names create_unicode_buffer/create_string_buffer should b

[issue5062] Rlcompleter.Completer does not use __dir__ magic method

2009-01-26 Thread Carl Johnson
Carl Johnson added the comment: Ah, I see. It does a dir(obj) then tests things to see which are callable and while it is at that, it removes the names that don't really exist according to getattr. Actually, can we go back to the Python 2.5 behavior? I really hate those auto-added parentheses.

[issue5062] Rlcompleter.Completer does not use __dir__ magic method

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina added the comment: The check is made to decide whether the attribute is a method or not (because methods get a "(" appended) -- for names that fail to exist, one could just omit the "(" and include the name anyway. rlcompleter does nothing special with __dir__, it always use

[issue1397474] timeit execution enviroment

2009-01-26 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: fdrake -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list maili

[issue5077] 2to3 fixer for the removal of operator functions

2009-01-26 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- title: 2to3 fixers for the removal of operator functions -> 2to3 fixer for the removal of operator functions ___ Python tracker ___ _

[issue5077] 2to3 fixers for the removal of operator functions

2009-01-26 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Removed file: http://bugs.python.org/file12874/fix_operator.py ___ Python tracker ___ ___ Python-bugs-list ma

[issue5077] 2to3 fixers for the removal of operator functions

2009-01-26 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Added file: http://bugs.python.org/file12875/fix_operator.py ___ Python tracker ___ ___ Python-bugs-list mail

[issue5062] Rlcompleter.Completer does not use __dir__ magic method

2009-01-26 Thread Carl Johnson
Carl Johnson added the comment: I think that checking to see which things really exist with getattr/hasattr made sense back in the days before the __dir__, since in those days the real API for an object could diverge wildly from what was reported by dir(object), but nowadays, if someone goes to

[issue5077] 2to3 fixers for the removal of operator functions

2009-01-26 Thread Alexandre Vassalotti
New submission from Alexandre Vassalotti : This is a 2to3 fixer for the removal of obsolete functions in r68962. -- components: 2to3 (2.x to 3.0 conversion tool) files: fix_operator.py messages: 80624 nosy: alexandre.vassalotti severity: normal stage: patch review status: open title: 2to

[issue5062] Rlcompleter.Completer does not use __dir__ magic method

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina added the comment: This is what rlcompleter does; it uses dir() to find out what names to return. Or do you mean that it should not iterate along __bases__ because this has already been done by dir()? ___ Python tracker

[issue5076] bdist_wininst fails on py3k

2009-01-26 Thread Mark Hammond
New submission from Mark Hammond : bdist_wininst installers created by py3k fail due to PySys_SetArgv and Py_SetProgramName both being passed 'char *' strings instead of wide strings. The patch is against the svn trunk as currently Python 2.x and 3.x share the same bdist_wininst stub. The patch

[issue5021] doctest.testfile should set __name__, can't use namedtuple

2009-01-26 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue4920] Inconsistent usage of next/__next__ in ABC collections; collections.Iterator is not compatible with Python 2.6 iterators.

2009-01-26 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue1242657] list(obj) can swallow KeyboardInterrupt

2009-01-26 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue2527] Pass a namespace to timeit

2009-01-26 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue5034] itertools.fixlen

2009-01-26 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue1498370] Improve itertools.starmap

2009-01-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: This was fixed in r60013. -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___

[issue5075] bdist_wininst should not depend on the vc runtime?

2009-01-26 Thread Mark Hammond
New submission from Mark Hammond : After consideration of issue 4120 and issue 4566, it seems to me that executables created by bdist_wininst will have a manifest referencing the MSVC9 assembly, and thus will be in a similar position to the .pyd files in issue 4120 - that unless the assembly is i

[issue5062] Rlcompleter.Completer does not use __dir__ magic method

2009-01-26 Thread Carl Johnson
Carl Johnson added the comment: It seems to me that it isn't tab completion's place to out think the __dir__ method. A) Because the documentation doesn't tell you that it does (although you are warned that it may call some stuff) and B) because if someone set up a __dir__ method, they probably a

[issue5032] itertools.count step

2009-01-26 Thread David W. Lambert
David W. Lambert added the comment: Probably a better prime factor algorithm uses Sieve of E. to generate primes through int(1+sqrt(n)) and test these. The other algorithm uses a custom generator anyway. Oh well, good luck, I'll shut up. You do have use cases that I couldn't think of. Dave.

[issue5048] Extending itertools.combinations

2009-01-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I added combinations_with_replacement() in r69001 and r69004 . ___ Python tracker ___ ___ Python-bug

[issue5051] test_update2 in test_os.py invalid due to os.environ.clear() followed by reliance on environ COMSPEC

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina added the comment: I *did* have /bin/sh in a Windows box some time ago. Probably the test should check sys.platform in addition to /bin/sh existence. -- nosy: +gagenellina ___ Python tracker

[issue5062] Rlcompleter.Completer does not use __dir__ magic method

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina added the comment: This is not a bug in rlcompleter; __dir__ is returning bogus items, and rlcompleter checks whether there exist actually an attribute with such name. Defining __getattr__ (or __getattribute__) and a matching __dir__ works fine: >>> class B(object): ...

[issue5032] itertools.count step

2009-01-26 Thread steve21
steve21 added the comment: I already use the second version of the count function you give (without default arguments which I am not a big fan of). I'm not saying its difficult or unreadable to bypass itertools.count and write your own enhanced count function. But if I use a custom count functio

[issue4626] compile() doesn't ignore the source encoding when a string is passed in

2009-01-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: I don't like the change of API to PyTokenizer_FromString. I would prefer another function like PyTokenizer_IgnoreCodingCookie() blows up when parsing has already started. The (char *) cast in PyTokenizer_FromString is unneeded. You need to indent the "else"

[issue5069] Use sets instead of list in posixpath._resolve_link

2009-01-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks for the patch! Applied in r69003. -- nosy: +benjamin.peterson resolution: -> accepted status: open -> closed ___ Python tracker ___ _

[issue5074] python3 and ctypes, script causes crash

2009-01-26 Thread Poor Yorick
New submission from Poor Yorick : the following script causes python3 to crash on my Windows XP Pro Machine: import ctypes b = ctypes.windll.Kernel32 var1 = 'TEMP' out = ctypes.create_string_buffer(40) c = b.GetEnvironmentVariableW(var1,out,40) print('ones', c, out, out.raw) print('two: ', di

[issue1498370] Improve itertools.starmap

2009-01-26 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: anthonybaxter -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue5065] IDLE improve Subprocess Startup Error message

2009-01-26 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue1529142] Allowing multiple instances of IDLE with sub-processes

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina added the comment: If this patch were accepted, #5065 would be a non-issue then. -- nosy: +gagenellina ___ Python tracker ___ ___

[issue5032] itertools.count step

2009-01-26 Thread David W. Lambert
David W. Lambert added the comment: Nice. Now I know that $e$ is a least transcendental number. But I can't figure out why inserting this code into your file (and removing some "itertools.") is difficult or unreadable. I maintain a personal library of modules that I don't actually expect G

[issue5065] IDLE improve Subprocess Startup Error message

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina added the comment: #1529142 would fix this issue also, if it were accepted. -- nosy: +gagenellina ___ Python tracker ___ ___

[issue5058] stop pgen.exe from generating CRLF-ended files and causing mayhem with win32-based patch submissions

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina added the comment: I don't understand the issue. Those files *are* text files, and have CRLF on Windows as expected, like all other text files. I think you should fix your build process, or your environment, or your diff utility, or whatever is causing you a problem -- but n

[issue5053] http.client.HTTPMessage.getallmatchingheaders() always returns []

2009-01-26 Thread Mike Watkins
Mike Watkins added the comment: Re diffs, noted for the future. Re tests: # py3k-devel/Lib/test % grep -r getallmatchingheaders * ... Returns nothing, so not only does the email package need a test for this but so does http.client. Incidentally test_mailbox.py has a test for the proposed a

[issue5032] itertools.count step

2009-01-26 Thread steve21
steve21 added the comment: Here's a couple of functions I use with count and step: def cf_e(): '''return: (iterator) the infinite continued fraction for e e=[2; 1, 2, 1, 1, 4, 1, 1, 6, 1 , ... , 1, 2k, 1, ...] ''' yield 2 for k in itertools.count(2, 2): yield 1

[issue5067] Error msg from using wrong quotes in JSON is unhelpful

2009-01-26 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- keywords: +patch Added file: http://bugs.python.org/file12871/json-messages.diff ___ Python tracker ___ _

[issue5067] Error msg from using wrong quotes in JSON is unhelpful

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina added the comment: This patch provides a better error message for this case:: json.loads("""{'test': "test"}""") but still doesn't help in this one:: json.loads("""{"test": 'test'}""") 'test' looks like garbage to JSON (it *is* garbage!), exactly the same as:: json.

[issue5053] http.client.HTTPMessage.getallmatchingheaders() always returns []

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina added the comment: I think unified diffs are preferred. Isn't there an existing test for this method? -- nosy: +gagenellina ___ Python tracker ___ _

[issue5069] Use sets instead of list in posixpath._resolve_link

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina added the comment: Simple and correct. -- nosy: +gagenellina ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue4673] Distutils should provide an uninstall command

2009-01-26 Thread philobyte
philobyte added the comment: python setup.py uninstall should do all the same processing as 'install' but whenever it gets to the point of copying a file to a system destination, it should instead unlink the destination. besides the obvious use, here is another one: when upgrading a package

[issue5072] urllib.open sends full URL after GET command instead of local path

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina added the comment: I could not reproduce this issue neither with Python 2.6 nor 2.5.2 If I print host and selector near line 313, I get 'localhost:8000' and '/trac-dev', the expected results. Do you have an HTTP proxy? running at the *same* port? (!) -- nosy: +gagenel

[issue4285] Use a named tuple for sys.version_info

2009-01-26 Thread Ross Light
Ross Light added the comment: Tests added and new patch uploaded. Anything else, anyone? Added file: http://bugs.python.org/file12870/patch-4285d.diff ___ Python tracker ___ ___

[issue2459] speedup for / while / if with better bytecode

2009-01-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file9829/loops3.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue2459] speedup for / while / if with better bytecode

2009-01-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file9832/loops4.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue2459] speedup for / while / if with better bytecode

2009-01-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file9863/loops5.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue2459] speedup for / while / if with better bytecode

2009-01-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file9870/loops6.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue2459] speedup for / while / if with better bytecode

2009-01-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file9871/loops7.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue2459] speedup for / while / if with better bytecode

2009-01-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file10147/loops8.patch ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue2459] speedup for / while / if with better bytecode

2009-01-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patches don't apply cleanly anymore, I'll regenerate a new one. ___ Python tracker ___ ___ Python-bugs-li

[issue4705] python3.0 -u: unbuffered stdout

2009-01-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed and applied a small fix to the test so that it passes in debug mode (r68977, r68981, r68982). Thanks! -- resolution: accepted -> fixed status: open -> closed ___ Python tracker

[issue5073] bsddb/test/test_lock.py sometimes fails due to floating point error

2009-01-26 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed in r68978 (trunk) and r68979 (2.6). bsddb is no longer part of the standard Python distribution for 3.x, so the patch doesn't apply there. Thank you! -- resolution: accepted -> fixed status: open -> closed _

[issue5066] IDLE documentation for Unix obsolete/incorrect

2009-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: LOL. That doc was apparently last revised in 2000 for the IDLE released with 1.5.2 (see screenshot). Other needed updates I see are: 'Shell' and 'Options' have been added to the menu line; we now have unicode text; screenshots look different (and nicer) on newe

[issue5073] bsddb/test/test_lock.py sometimes fails due to floating point error

2009-01-26 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Could you commit please? :-) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue4705] python3.0 -u: unbuffered stdout

2009-01-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> pitrou resolution: -> accepted ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue2459] speedup for / while / if with better bytecode

2009-01-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Reminder, make sure we can still break out of a "while 1: pass". Yes, the patch takes care of that. ___ Python tracker ___ ___

[issue5073] bsddb/test/test_lock.py sometimes fails due to floating point error

2009-01-26 Thread Mark Dickinson
Mark Dickinson added the comment: Looks good to me! If it were me I'd probably just code the test directly as self.assertTrue((end_time-start_time) >= 0.0999) to avoid having to look for epsilon when reading. Do you want to commit it or shall I? -- nosy: +marketdickinson resolutio

[issue2459] speedup for / while / if with better bytecode

2009-01-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: Reminder, make sure we can still break out of a "while 1: pass". -- nosy: +rhettinger versions: +Python 2.7, Python 3.1 -Python 2.6 ___ Python tracker __

[issue4705] python3.0 -u: unbuffered stdout

2009-01-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > So 'python3.0 -u' has buffered stdin, while 'python2.6 -u' does not; > I'm wondering: was this an intentional design change? Or was it just > an accident/by-product of the rewritten io? I'm not sure (I didn't write the new io in the first place) but I'd say

[issue5073] bsddb/test/test_lock.py sometimes fails due to floating point error

2009-01-26 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : time.time() returns floating point, so sometimes folloing assertion in LockingTestCase#test03_lock_timeout fails due to floating point calculation error. >self.assertTrue((end_time-start_time) >= 0.1 end_time-start_time becomes 0.099046326 for insta

[issue5072] urllib.open sends full URL after GET command instead of local path

2009-01-26 Thread Olemis Lang
Olemis Lang added the comment: Ooops ... sorry, remove the print statement. The patch is as follows : {{{ #!diff --- /usr/lib/python2.5/urllib.py2008-07-31 13:40:40.0 -0500 +++ /media/urllib_unix.py 2009-01-26 09:48:54.0 -0500 @@ -270,6 +270,7 @@ def open_http

[issue5068] tarfile loops forever on broken input

2009-01-26 Thread Lars Gustäbel
Lars Gustäbel added the comment: Thanks for the report. The problem is in fact easy to reproduce. _BZ2Proxy hangs if it is passed a file object with either no data or with a partial bzipped file. For example try: tarfile.open(mode="r:bz2", fileobj=StringIO.StringIO()) I will create a decent fi

[issue5072] urllib.open sends full URL after GET command instead of local path

2009-01-26 Thread Olemis Lang
New submission from Olemis Lang : Hello ... The first thing I have to say is that I searched the open issues and I found nothing similar to what I am going to report hereinafter. If this ticket is duplicate , I apologize ... Yesterday I was testing how to access the wiki pages in a Trac [1]

[issue2459] speedup for / while / if with better bytecode

2009-01-26 Thread Collin Winter
Changes by Collin Winter : -- nosy: +collinwinter ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue5061] Inadequate documentation of the built-in function open

2009-01-26 Thread David W. Lambert
David W. Lambert added the comment: (prospective, not perspective programmer) Spelling out the possibilities as suggested in Message80563 makes better sense to me than writing in words the logic handling the mode argument of the io.open function. (Perhaps there is a clearer implementation usin

[issue5070] Distutils should create install dir if needed

2009-01-26 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Yea. setuptools is often discussed on distutils-sig: http://www.python.org/community/sigs/current/distutils-sig/ And has an issue tracker of its own: http://bugs.python.org/setuptools/ http://bugs.python.org/setuptools/issue54 sounds like this issu

[issue1529142] Allowing multiple instances of IDLE with sub-processes

2009-01-26 Thread Weeble
Weeble added the comment: A thought occurs to me: would this patch make it harder to cope with awkward firewalls that block the connection? Are they more or less likely to intervene when passing a port of 0 and letting it pick a port automatically? And if they do intervene, would users be abl

[issue5070] Distutils should create install dir if needed

2009-01-26 Thread Andy Buckley
Andy Buckley added the comment: Thanks for the rapid feedback: yes, I am using setuptools and didn't realise it would be responsible for this override. Is setuptools feedback done completely independently from this tracker? ___ Python tracker

[issue5071] Distutils should not fail if install dir is not in PYTHONPATH

2009-01-26 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue5070] Distutils should create install dir if needed

2009-01-26 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue1885] [distutils] - error when processing the "--formats=tar" option

2009-01-26 Thread Tarek Ziadé
Tarek Ziadé added the comment: done (in r68969 for py3k branch) -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue4010] configure options don't trickle down to distutils

2009-01-26 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: -> tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue4010] configure options don't trickle down to distutils

2009-01-26 Thread Akira Kitada
Akira Kitada added the comment: Attached patch changes distutils to pass CPPFLAGS to compiler. -- nosy: +tarek Added file: http://bugs.python.org/file12868/issue4010.diff ___ Python tracker

[issue4626] compile() doesn't ignore the source encoding when a string is passed in

2009-01-26 Thread STINNER Victor
STINNER Victor added the comment: Ping! Can anyone review my patch? ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue4474] PyUnicode_FromWideChar incorrect for characters outside the BMP (unix only)

2009-01-26 Thread STINNER Victor
STINNER Victor added the comment: @marketdickinson, @lemburg: ping! I updated the patch, does it look better? ___ Python tracker ___ ___ Pytho

[issue5071] Distutils should not fail if install dir is not in PYTHONPATH

2009-01-26 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: See my comment on issue5070. -- nosy: +exarkun ___ Python tracker ___ ___ Python-bugs-list mail

[issue5071] Distutils should not fail if install dir is not in PYTHONPATH

2009-01-26 Thread Andy Buckley
New submission from Andy Buckley : At present, distutils exits with an error return code if the directory that modules are being installed into is not in PYTHONPATH. Since the install path is not easily obtained (it at least requires running Python to work out the version string, plus some guessw

[issue4705] python3.0 -u: unbuffered stdout

2009-01-26 Thread Mark Dickinson
Mark Dickinson added the comment: > It's not about changing it, stdin has always been buffered in py3k. Sorry: I should have been clearer. It's the change from 2.x to 3.x that interests me. So 'python3.0 -u' has buffered stdin, while 'python2.6 -u' does not; I'm wondering: was this an int

[issue5070] Distutils should create install dir if needed

2009-01-26 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: This isn't accurate. distutils *will* create the directory if it does not exist. Perhaps you have setuptools installed? setuptools disables this behavior of distutils and forces you to create the directory manually. -- nosy: +exarkun __

[issue5070] Distutils should create install dir if needed

2009-01-26 Thread Andy Buckley
New submission from Andy Buckley : If you attempt to call "python setup.py install --prefix=/foo", and /foo/lib/pythonX.Y/site-packages does not exist, the installation will fail, requiring that the directory be made by hand. Since there is no easy way to know in advance (other than by running P

[issue4753] Faster opcode dispatch on gcc

2009-01-26 Thread Kevin Watters
Changes by Kevin Watters : -- nosy: +kevinwatters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue4672] Distutils SWIG support blocks use of SWIG -outdir option

2009-01-26 Thread Andy Buckley
Andy Buckley added the comment: Dumb question, but why is distutils wrapping the command args in quotes anyway? I'm not even sure why lists are being used (rather than a string) for the options, except that lists are a bit more "Pythony" and can be used to semantically divide the options from ea

[issue4753] Faster opcode dispatch on gcc

2009-01-26 Thread Paolo 'Blaisorblade' Giarrusso
Paolo 'Blaisorblade' Giarrusso added the comment: -fno-gcse is controversial. Even if it might avoid jumps sharing, the impact of that option has to be measured, since common subexpression elimination allows omitting some recalculations, so disabling global CSE might have a negative impact on ot

[issue5069] Use sets instead of list in posixpath._resolve_link

2009-01-26 Thread Χρήστος Γεωργίου (Christos Georgiou)
New submission from Χρήστος Γεωργίου (Christos Georgiou) : The paths_seen object is a list; a set is more appropriate, since its main use is a lookup as in "path in paths_seen" -- components: Library (Lib) files: posixpath.diff keywords: patch messages: 80570 nosy: tzot severity: normal

[issue5053] http.client.HTTPMessage.getallmatchingheaders() always returns []

2009-01-26 Thread Mike Watkins
Changes by Mike Watkins : -- title: http.client.HTTPMessage.getallmatchingheaders() -> http.client.HTTPMessage.getallmatchingheaders() always returns [] ___ Python tracker ___ __

[issue1722344] Thread shutdown exception in Thread.notify()

2009-01-26 Thread Qiangning Hong
Changes by Qiangning Hong : -- nosy: +hongqn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue5067] Error msg from using wrong quotes in JSON is unhelpful

2009-01-26 Thread Steven D'Aprano
Changes by Steven D'Aprano : -- components: +Library (Lib) type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue4941] Tell GCC Py_DECREF is unlikely to call the destructor

2009-01-26 Thread Paolo 'Blaisorblade' Giarrusso
Paolo 'Blaisorblade' Giarrusso added the comment: >Probably #if the definitions of Py_LIKELY and Py_UNLIKELY instead of __builtin_expect so new compilers can easily add their own definitions. This was done in the first version, but with the currently supported compilers it's simpler to do like

[issue5068] tarfile loops forever on broken input

2009-01-26 Thread Lars Gustäbel
Changes by Lars Gustäbel : -- assignee: -> lars.gustaebel nosy: +lars.gustaebel ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue4676] python3 closes + home keys

2009-01-26 Thread Weeble
Weeble added the comment: Just got a chance to test this on a Windows desktop with a proper keyboard. (My laptop does weird things with num-lock and scroll-lock.) I got it to crash once, but I have no idea what was special about that time. Otherwise I can reproduce the exception traceback pri

[issue5057] Unicode-width dependent optimization leads to non-portable pyc file

2009-01-26 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue5068] tarfile loops forever on broken input

2009-01-26 Thread Maciek Fijalkowski
New submission from Maciek Fijalkowski : I have troubles actually finding such a file, but I encountered it at least once (file is gone by now though). The lines in question are for bz2 compression: in _BZ2Proxy.read: try: raw = self.fileobj.read(self.blocksize)

[issue4707] round(25, 1) should return an integer, not a float

2009-01-26 Thread Mark Dickinson
Mark Dickinson added the comment: Some minor modifications to the last patch: - fix round docstring: it now reads "round(number[, ndigits]) -> number" instead of "round(number[, ndigits]) -> floating-point number" - add Misc/NEWS entry - add extra tests for round(x, n) with n huge and po

[issue4707] round(25, 1) should return an integer, not a float

2009-01-26 Thread Mark Dickinson
Mark Dickinson added the comment: Clearer title. -- title: round() shows undocumented behaviour -> round(25, 1) should return an integer, not a float ___ Python tracker ___