[issue8781] 32-bit wchar_t doesn't need to be unsigned to be usable (I think)

2010-08-25 Thread Florent Xicluna
Florent Xicluna added the comment: Hi Daniel, there's a test failure which is related with r84307 on windows buildbot. == FAIL: test_cw_strings (ctypes.test.test_parameters.SimpleTypesTestCase)

[issue9679] unicode DNS names in urllib, urlopen

2010-08-25 Thread Martin v . Löwis
New submission from Martin v. Löwis : Copy of issue 1027206; support in the socket module was provided, but this request remains: Also other modules should support unicode hostnames. (httplib already does) but urllib and urllib2 don't. -- components: Library (Lib), Unicode keywords: bu

[issue1559298] test_popen fails on Windows if installed to "Program Files"

2010-08-25 Thread Tim Golden
Changes by Tim Golden : -- assignee: -> tim.golden nosy: +tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue1027206] unicode DNS names in socket, urllib, urlopen

2010-08-25 Thread Martin v . Löwis
Martin v. Löwis added the comment: I have now committed file 18615 as r84313: thanks for the patch. I have split this issue into two: this one is only about the socket module, and #9679 carries any remaining features (it would be good if we have only one bug per bug report). Since the buildb

[issue9679] unicode DNS names in urllib, urlopen

2010-08-25 Thread Martin v . Löwis
Martin v. Löwis added the comment: >From msg60564: it's not clear to me what this request really means. It could >mean that Python should support IRIs, but then, I'm not sure whether this >support can be in urllib, or whether a separate library would be needed. -- ___

[issue8622] Add PYTHONFSENCODING environment variable

2010-08-25 Thread STINNER Victor
STINNER Victor added the comment: > test_sys is still failing on my system where LC_CTYPE > only is set to utf-8 Oh yes, test_sys fails if LC_ALL or LC_CTYPE is a locale using a different encoding than ascii (eg. LC_ALL=fr_FR.utf8). Fixed by r84314. -- status: open -> closed ___

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2010-08-25 Thread Ask Solem
Ask Solem added the comment: On closer look your patch is also ignoring SystemExit. I think it's beneficial to honor SystemExit, so a user could use this as a means to replace the current process with a new one. If we keep that behavior, the real problem here is that the result handler hangs

[issue2528] Change os.access to check ACLs under Windows

2010-08-25 Thread Tim Golden
Changes by Tim Golden : -- assignee: -> tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue9659] frozenset, when subclassed will yield warning upon call to super(...).__init__(iterable)

2010-08-25 Thread Carsten Klein
Carsten Klein added the comment: Thanks for the information. Where is this documented? I cannot find it in the official Python docs... TIA. -- ___ Python tracker ___ ___

[issue9680] Add in declaration order support for the dictionary passed in to the meta class __init__ and __new__ methods

2010-08-25 Thread Carsten Klein
New submission from Carsten Klein : Example class Meta(type): def __new__(cls, name, bases, locals): print repr(locals.keys()) class Test(object): __metaclass__ = Meta A = 1 B = 2 C = 3 D = 4 E = 5 The above will yield the keys in a somewhat random order,

[issue8781] 32-bit wchar_t doesn't need to be unsigned to be usable (I think)

2010-08-25 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Thanks, I will take a look sometime today. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6978] compiler.transformer dict key bug d[1,] = 1

2010-08-25 Thread Kees Bos
Kees Bos added the comment: Added fix for python 2.7, which includes a test (testDictWithTupleKey) for the compiler test (Lib/test/test_compiler.py). -- status: pending -> open Added file: http://bugs.python.org/file18642/compiler-bug-issue6978.patch __

[issue8781] 32-bit wchar_t doesn't need to be unsigned to be usable (I think)

2010-08-25 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: The underlying problem here is that SIZEOF_WCHAR_T is not defined in pyconfig.h on Windows. My patch assumed that it would be defined on all platforms where HAVE_WCHAR_H is defined (I had checked ./configure, but forgotten Windows). This has come up before

[issue8781] 32-bit wchar_t doesn't need to be unsigned to be usable (I think)

2010-08-25 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Adding other Windows developers to the nosy list. See msg114893 where your input would be helpful. -- nosy: +brian.curtin, tim.golden ___ Python tracker ___

[issue8781] 32-bit wchar_t doesn't need to be unsigned to be usable (I think)

2010-08-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Daniel Stutzbach wrote: > > Daniel Stutzbach added the comment: > > The underlying problem here is that SIZEOF_WCHAR_T is not defined in > pyconfig.h on Windows. My patch assumed that it would be defined on all > platforms where HAVE_WCHAR_H is defined

[issue8781] 32-bit wchar_t doesn't need to be unsigned to be usable (I think)

2010-08-25 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: On Windows, the Python headers define HAVE_USABLE_WCHAR_T and Py_UNICODE_SIZE 2, so we are already relying on sizeof(wchar_t) == 2 on Windows. My patch ran into trouble because it inadvertently disabled that assumption in a few places, causing code to take

[issue1589266] bdist_sunpkg distutils command

2010-08-25 Thread Holger Joukl
Holger Joukl added the comment: > Holger, sorry your work has to be rejected. No harm done - kind of paradoxical that my employer allowed me to release the code into the wild but hasn't been willing to let me sign the contribution form, in 4 years. So it's at least out in the open and maybe

[issue9680] Add in declaration order support for the dictionary passed in to the meta class __init__ and __new__ methods

2010-08-25 Thread R. David Murray
R. David Murray added the comment: The ordering of dictionary keys is a fundamental property of Python dictionaries (it's a hash table). PEP 3115 provides the functionality you are looking for, your metaclass just needs to be slightly more complicated. -- nosy: +r.david.murray resolu

[issue9679] unicode DNS names in urllib, urlopen

2010-08-25 Thread R. David Murray
R. David Murray added the comment: There was a discussion about IRI on python-dev in the middle of a discussion about adding a coercable bytes type, but I can't find it. I believe the conclusion was that the best solution for IRI support was a new library that implements the full IRI spec. I

[issue9679] unicode DNS names in urllib, urlopen

2010-08-25 Thread R. David Murray
Changes by R. David Murray : -- keywords: -buildbot, patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2010-08-25 Thread Jesse Noller
Jesse Noller added the comment: > If we keep that behavior, the real problem here is that the > result handler hangs if the process that reserved a job is gone, which is > going to be handled > by #9205. Should we mark it as a duplicate? I would tend to agree with your assessment; we're better

[issue9681] small typo in online documentation

2010-08-25 Thread Winston C. Yang
New submission from Winston C. Yang : See http://docs.python.org/library/subprocess.html 17.1.1.2. Exceptions containing traceback information from the child[']s point of view -- messages: 114901 nosy: wcyang priority: normal severity: normal status: open title: small typo in online do

[issue9610] buildbot: uncaptured python exception (smtpd), but no failure in regrtest

2010-08-25 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: It's very hard to tell what went wrong without an actual traceback message. What I don't understand is why smtpd module is mentioned in the message, since apparently test_ssl.py doesn't use it at all. -- ___ Pyt

[issue9674] make install DESTDIR=/home/blah fails when the prefix specified is /

2010-08-25 Thread R. David Murray
R. David Murray added the comment: See also issue1676135. Seems that the posters were wrong in concluding that the double slashes wouldn't bother anyone using prefix=/ :) -- nosy: +r.david.murray ___ Python tracker

[issue9659] frozenset, when subclassed will yield warning upon call to super(...).__init__(iterable)

2010-08-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/8/25 Carsten Klein : > > Carsten Klein added the comment: > > Thanks for the information. Where is this documented? I cannot find it in the > official Python docs... TIA. http://docs.python.org/dev/reference/datamodel.html#object.__new__ --

[issue9680] Add in declaration order support for the dictionary passed in to the meta class __init__ and __new__ methods

2010-08-25 Thread Éric Araujo
Éric Araujo added the comment: For reference, a shorter explanation that the PEP is http://docs.python.org/dev/reference/datamodel#customizing-class-creation -- nosy: +eric.araujo versions: -Python 2.6, Python 2.7, Python 3.3 ___ Python tracker

[issue1589266] bdist_sunpkg distutils command

2010-08-25 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> rejected stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue9668] strings in json.dump in '' instead of ""

2010-08-25 Thread R. David Murray
R. David Murray added the comment: refresh, can you provide an example that shows the problem you are seeing? Otherwise we'll close this. -- nosy: +r.david.murray resolution: -> works for me stage: -> committed/rejected status: open -> pending __

[issue1512791] module wave does no rounding

2010-08-25 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the patches. The general idea looks fine to me. Comments: - I'd like to see a doc entry indicating that float inputs to setframerate get rounded to the nearest integer. - In 3.x, the extra int() isn't necessary: round() returns an integer anyway

[issue9610] buildbot: uncaptured python exception (smtpd), but no failure in regrtest

2010-08-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: $ python2.7 test/test_asyncore.py -v test_closeall (__main__.HelperFunctionTests) ... ok test_closeall_default (__main__.HelperFunctionTests) ... ok test_compact_traceback (__main__.HelperFunctionTests) ... ok test_readwrite (__main__.HelperFunctionTests) ... o

[issue9607] Test file 'test_keyword.py' submission for use with keyword.py

2010-08-25 Thread R. David Murray
R. David Murray added the comment: Greg, thanks for working on this. I haven't looked over the whole patch yet, but there's one thing I noticed right away that needs to be fixed. 'python.exe' is the name of the python executable only on OS X, and the tests are not always run from the build

[issue8716] test_tk fails on OS X if run from buildbot slave daemon -- crashes Python

2010-08-25 Thread R. David Murray
R. David Murray added the comment: I just ran into this while trying to run the test suite with -uall while sshed into an OSX machine and running a non-framework build. This makes it kind of hard to run the full test suite. Is there some way to detect that we don't have access to the window

[issue1512791] module wave does no rounding

2010-08-25 Thread Neil Tallim
Neil Tallim added the comment: The differences are small enough that it probably doesn't matter which one of us makes the extra changes. It'll take one step less for you to implement them while applying the fixes, so it's probably easiest if I leave that in your court. Thanks for asking if I

[issue1602133] non-framework built python fails to define environ properly

2010-08-25 Thread Mark Lawrence
Mark Lawrence added the comment: @Ronald is this still a problem or can this be closed? -- components: +Build nosy: +BreamoreBoy versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker _

[issue1602742] itemconfigure returns incorrect text property of text items

2010-08-25 Thread Mark Lawrence
Changes by Mark Lawrence : -- stage: -> needs patch type: -> behavior versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.4, Python 2.6 ___ Python tracker ___ ___

[issue1606233] readline on popen3 file returns empty string before end

2010-08-25 Thread Mark Lawrence
Mark Lawrence added the comment: This won't go forward unless there is a patch with changes to code, unit tests and if needed docs. -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker

[issue1608267] Create the DESTDIR as part of the make install process

2010-08-25 Thread Mark Lawrence
Mark Lawrence added the comment: No reply to msg51470. -- nosy: +BreamoreBoy resolution: -> out of date status: open -> closed ___ Python tracker ___

[issue1610654] cgi.py multipart/form-data

2010-08-25 Thread Mark Lawrence
Mark Lawrence added the comment: No reply to msg110090. -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ _

[issue1611154] os.path.exists("file/") failure on Solaris 9

2010-08-25 Thread Mark Lawrence
Changes by Mark Lawrence : -- stage: unit test needed -> patch review versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker ___ _

[issue1611944] sndhdr.what() does not recognize wav file

2010-08-25 Thread Mark Lawrence
Changes by Mark Lawrence : -- stage: -> unit test needed type: -> behavior versions: +Python 3.2 ___ Python tracker ___ ___ Python

[issue1612262] Class Browser doesn't show internal classes

2010-08-25 Thread Mark Lawrence
Changes by Mark Lawrence : -- versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8781] 32-bit wchar_t doesn't need to be unsigned to be usable (I think)

2010-08-25 Thread Brian Curtin
Brian Curtin added the comment: +1 on option 1 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue1525343] Webserver TypeError: expected read buffer, NoneType found

2010-08-25 Thread Mark Lawrence
Mark Lawrence added the comment: Hi Mark, due to: Failed issue tracker submission You are not a registered user. I send the mail to your private account. Long time ago. I think you can close it. Regards, Juergen -- resolution: -> out of date status: open -> closed ___

[issue1602133] non-framework built python fails to define environ properly

2010-08-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is still a problem. Technically this only works accidently with a framework build, code that expects that '_environ' is defined in a shared library on OSX is broken. -- ___ Python tracker

[issue9681] small typo in online documentation

2010-08-25 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> d...@python components: +Documentation nosy: +d...@python type: -> behavior ___ Python tracker ___ _

[issue5131] pprint doesn't know how to print a defaultdict

2010-08-25 Thread Éric Araujo
Éric Araujo added the comment: Jack, can you update your patch to reflect Terry’s review? Amaury, have you opened a feature request about your registration idea? -- nosy: +eric.araujo ___ Python tracker __

[issue8716] test_tk fails on OS X if run from buildbot slave daemon -- crashes Python

2010-08-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: In python 2.x 'MacOS.WMAvailable()' returns True if the windowserver is available. The whole MacOS extension is gone in 3.x, although it should be easy enough to reimplement WMAvailable() using ctypes. -- ___ Py

[issue5131] pprint doesn't know how to print a defaultdict

2010-08-25 Thread Éric Araujo
Éric Araujo added the comment: BTW, Tarek’s name is valid UTF-8 in py3k. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue9674] make install DESTDIR=/home/blah fails when the prefix specified is /

2010-08-25 Thread Roumen Petrov
Changes by Roumen Petrov : -- nosy: +rpetrov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue9309] Add environment variable complementing command line option -no-user-cfg

2010-08-25 Thread Éric Araujo
Changes by Éric Araujo : -- components: +Distutils2 nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue8797] urllib2 basicauth broken in 2.6.5: RuntimeError: maximum recursion depth exceeded in cmp

2010-08-25 Thread Dmitry Jemerov
Dmitry Jemerov added the comment: I've also run into this problem after upgrading to Python 2.6.6. My code, which uses the same HTTPBasicAuthHandler instance for many requests to the same server, worked correctly with Python 2.6.2 and broke with 2.6.6. It would be great if zenyatta's patch to

[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing

2010-08-25 Thread R. David Murray
New submission from R. David Murray : >>> socket.create_connection(('a..com', 25)) Traceback (most recent call last): File "", line 1, in File "/home/rdmurray/python/py3k/Lib/socket.py", line 300, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): File "/home/rdm

[issue9208] SMTPHandler in the logging module does not handle unicode strings

2010-08-25 Thread R. David Murray
R. David Murray added the comment: Given Vinay's last comment I don't think this needs addressing in 2.x, and it is not a problem in 3.x. -- nosy: +r.david.murray resolution: -> out of date stage: -> committed/rejected status: pending -> closed versions: +Python 2.7 -Python 3.2

[issue9683] Dead code in pyk inspect module

2010-08-25 Thread Andreas Stührk
New submission from Andreas Stührk : There is some code in the inspect module that is now with the removal of tuple unpacking in arguments in Python 3 no longer needed. The mentioned code does not even work with Python 3 (because ``len(map(...))`` will raise a TypeError). The attached patch re

[issue9684] PC/pyconfig.h should define SIZEOF_WCHAR_T

2010-08-25 Thread Daniel Stutzbach
New submission from Daniel Stutzbach : Presently, the pyconfig.h generated by configure defines SIZEOF_WCHAR_T, but PC/pyconfig.h does not, periodically causing problems: http://bugs.python.org/issue8781 http://bugs.python.org/issue4474 http://trac.wxwidgets.org/ticket/12013 Problem and the on

[issue8781] 32-bit wchar_t doesn't need to be unsigned to be usable (I think)

2010-08-25 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- dependencies: +PC/pyconfig.h should define SIZEOF_WCHAR_T ___ Python tracker ___ ___ Python-bugs-list

[issue9684] PC/pyconfig.h should define SIZEOF_WCHAR_T

2010-08-25 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: After making a Windows build and running the tests, committed in r84317. -- resolution: -> accepted stage: -> committed/rejected status: open -> closed ___ Python tracker _

[issue8781] 32-bit wchar_t doesn't need to be unsigned to be usable (I think)

2010-08-25 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: I opened a separate issue for the SIZEOF_WCHAR_T issue so I could refer to that issue number in Misc/NEWS. Fixed in r84317. -- status: open -> closed ___ Python tracker ___

[issue9685] tuples should remember their hash value

2010-08-25 Thread David Albert Torpey
New submission from David Albert Torpey : Dictionary keys are commonly numbers, strings, or tuples. Python has optimized numbers and strings to remember their hash values on successive calls. Tuples should do this too since their recursive hash function can take a long time to compute. Tuples

[issue9685] tuples should remember their hash value

2010-08-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: This seems reasonable. Will look at it in the next few days. -- assignee: -> rhettinger keywords: +easy nosy: +rhettinger priority: normal -> low stage: -> needs patch versions: +Python 3.2 -Python 2.6 ___ Pyth

[issue9686] asyncore infinite loop on raise

2010-08-25 Thread mmw
New submission from mmw <0xcafef...@gmail.com>: def send(self, data): try: result = self.socket.send(data) return result except socket.error, why: if why.args[0] == EWOULDBLOCK: return 0 elif why.args[0] in (ECONNRESE

[issue9685] tuples should remember their hash value

2010-08-25 Thread Tim Peters
Tim Peters added the comment: - Tuple objects don't currently reserve space to store their hash code, so it's likely this would increase the size of every tuple. - It's unclear to me which natural use patterns would actually enjoy a major speed boost. Note that dicts remember the hash codes

[issue9687] dbmmodule.c:dbm_contains fails on 64bit big-endian (test_dbm.py fails) when built against gdbm (int vs Py_ssize_t)

2010-08-25 Thread Dave Malcolm
New submission from Dave Malcolm : With a clean build of release27-maint (r84317), test_dbm.py fails on ppc64 with this error: File "test_dbm.py", line 24, in test_keys self.assert_(k in self.d) AssertionError I'm building gainst gdbm-1.8.0 (specifically, on a prerelease of RHEL6, with g

[issue9686] asyncore infinite loop on raise

2010-08-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: What change are you proposing? -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list m

[issue9687] dbmmodule.c:dbm_contains fails on 64bit big-endian (test_dbm.py fails) when built against gdbm (int vs Py_ssize_t)

2010-08-25 Thread Dave Malcolm
Dave Malcolm added the comment: Note to self: I'm tracking this one in RH's downstream tracker as: https://bugzilla.redhat.com/show_bug.cgi?id=626756 -- ___ Python tracker ___

[issue9685] tuples should remember their hash value

2010-08-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: FWIW, I'm -1 on this without a demonstrable improvement on some real-world cases. -- nosy: +benjamin.peterson ___ Python tracker ___ ___

[issue9685] tuples should remember their hash value

2010-08-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Hello Tim! If you have a chance, please also take a look at issue9685 which I was planning to work on in the next couple of weeks. For memoizing tuple hashes, I'm inclined to think the one extra field is worth it. That would help all the cases where peopl

[issue8855] Shelve documentation lacks security warning

2010-08-25 Thread Longpoke
Longpoke added the comment: Okay I've attached one for the py3k branch. What about 2.7? Same patch applies there. -- keywords: +patch Added file: http://bugs.python.org/file18645/shelve.rst.patch ___ Python tracker

[issue9685] tuples should remember their hash value

2010-08-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/8/25 Raymond Hettinger : > I suppose we could prepare a patch, instrument it, and try it with Twisted, > SQLalchemy, and Django to find-out how many tuple hash calculations would be > saved by memoizing. You should also check memory usage. --

[issue9683] Dead code in py3k inspect module

2010-08-25 Thread Andreas Stührk
Changes by Andreas Stührk : -- title: Dead code in pyk inspect module -> Dead code in py3k inspect module ___ Python tracker ___ ___ Py

[issue9686] asyncore infinite loop on raise

2010-08-25 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> giampaolo.rodola nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list ma

[issue9688] object.__basicsize__ is erroneously0

2010-08-25 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: dmalcolm priority: normal severity: normal status: open title: object.__basicsize__ is erroneously0 ___ Python tracker ___ _

[issue9686] asyncore infinite loop on raise

2010-08-25 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Could you provide a code sample which demonstrates the problem? -- ___ Python tracker ___ ___ Pyt

[issue9686] asyncore infinite loop on raise

2010-08-25 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +josiah.carlson, josiahcarlson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue9689] threading.Timer poorly documented

2010-08-25 Thread Pedro Mendes
New submission from Pedro Mendes : The documentation existent ( http://docs.python.org/library/threading.html#threading.Timer ) is not very helpful. The user is left wondering about the exact syntax of this function, what types of parameter it accepts etc. Could this possibly be fixed? --

[issue9688] object.__basicsize__ is erroneously 0 on big-endian 64-bit machines (int vs Py_ssize_t)

2010-08-25 Thread Dave Malcolm
New submission from Dave Malcolm : On 64-bit bigendian machines (ppc64 and s390x), I'm seeing: >>> print object.__basicsize__ 0 (Discovered via a segfault in Jinja2 tries to use ctypes to manipulate ob_refcnt of variables, and gets the wrong location, corrupting the objects instead; see https:

[issue8501] --dry-run option doesn't work

2010-08-25 Thread Éric Araujo
Éric Araujo added the comment: Wow. I’m amazed to see that the majority of commands don’t even bother with dry-run. I’m changing the component to distutils2: This is between bug fix and new feature, your report is the first one, and it’s easier to hack on distutils2. When this is fixed, I’ll

[issue8501] --dry-run option doesn't work

2010-08-25 Thread Éric Araujo
Changes by Éric Araujo : -- dependencies: -distutils argument parsing is bogus ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-25 Thread STINNER Victor
STINNER Victor added the comment: > r84012 patchs zipimporter_init() to use the new PyUnicode_FSDecoder() > and use Py_UNICODE* (unicode) strings instead of char* (byte) strings. oops, it's r84013 (not r84012) -- ___ Python tracker

[issue8501] --dry-run option doesn't work

2010-08-25 Thread Éric Araujo
Changes by Éric Araujo : -- dependencies: +distutils dry-run breaks when attempting to bytecompile ___ Python tracker ___ ___ Python-bu

[issue1109658] distutils dry-run breaks when attempting to bytecompile

2010-08-25 Thread Éric Araujo
Éric Araujo added the comment: I’ll port this patch to distutils2 as part of #8501 and ask Tarek whether it can go in distutils too. -- assignee: tarek -> eric.araujo components: +Distutils2 -Distutils nosy: +eric.araujo versions: +Python 2.5, Python 2.6 __

[issue9572] IOError or OSError in test_multiprocessing

2010-08-25 Thread Florent Xicluna
Florent Xicluna added the comment: This one looks very similar (r84315 on i386 Ubuntu 3.x buildbot): ./python -Wd -E -bb ./Lib/test/regrtest.py -uall -rwW -l == CPython 3.2a1+ (py3k:84315, Aug 25 2010, 17:07:54) [GCC 4.6.0 20100814 (experimental) [trunk revision 163239]] == Linux-2.6.32-24-

[issue9688] object.__basicsize__ is erroneously 0 on big-endian 64-bit machines (int vs Py_ssize_t)

2010-08-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: r84320. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue9598] untabify.py fails on files that contain non-ascii characters

2010-08-25 Thread Éric Araujo
Éric Araujo added the comment: The builtin open in 3.2 is similar to codecs.open. If you read the error message closely, you’ll see that the decoding that failed did try to use UTF-8. The cause of the problem here is that the bytes used for the ç in François’ name are not valid UTF-8; I can f

[issue9689] threading.Timer poorly documented

2010-08-25 Thread R. David Murray
R. David Murray added the comment: That's just a summary. The full documentation of the class is further down the page. What's missing is a hyperlink from the summary to the full description. It's probably just a markup error. -- nosy: +r.david.murray _

[issue9689] threading.Timer poorly documented

2010-08-25 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> d...@python components: +Documentation nosy: +d...@python type: feature request -> behavior versions: +Python 3.1, Python 3.2 -Python 2.5, Python 2.6 ___ Python tracker

[issue9690] Cannot distinguish b"str" from "str" in ast module.

2010-08-25 Thread Kay Hayen
New submission from Kay Hayen : There is no way to decide if a string literal should be non-unicode when the default has been set to unicode_literals. Please see: >>> import ast >>> ast.dump( ast.parse( """c = "d" """ ) ) "Module(body=[Assign(targets=[Name(id='c', ctx=Store())], value=Str(s='d

[issue1109659] distutils argument parsing is bogus

2010-08-25 Thread Éric Araujo
Éric Araujo added the comment: Being able to write a global option after a command name seems a nice feature to me, and the implementation should be straightforward: The base Command class already adds some options like help to each subclass, it’s just a matter of adding verbose, quiet and dr

[issue1109659] distutils argument parsing is bogus

2010-08-25 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: tarek -> eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue9690] Cannot distinguish b"str" from "str" in ast module.

2010-08-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: You'll have to look at the compile flags or search the future flags. -- nosy: +benjamin.peterson resolution: -> wont fix status: open -> closed ___ Python tracker _

[issue9686] asyncore infinite loop on raise

2010-08-25 Thread mmw
mmw <0xcafef...@gmail.com> added the comment: First it depends on the socket type but might use a select call, secondable raise on a socket.error, thirdable you could call the close_handle with the message and let the guys if he would like to retry, network connection might be capricious especial

[issue2570] backport 3.0-style \u/\U processing in raw strings when unicode_literals is imported from __future__

2010-08-25 Thread R. David Murray
R. David Murray added the comment: Yes it does seem like it is too late for this, code might be depending on this behavior now in 2.7. -- nosy: +r.david.murray status: pending -> closed ___ Python tracker

[issue9572] IOError or OSError in test_multiprocessing

2010-08-25 Thread Łukasz Czuja
Łukasz Czuja added the comment: I Had the same issue while using the lib. I had to replace every: IOError with (IOError, OSError) to catch both and just then compare exc.errno. Also in your r84271 commit, on line 507 you did: 507 : with _io.FileIO(path, 'wb') as file: shouldn't it be: 50

[issue8797] urllib2 basicauth broken in 2.6.5: RuntimeError: maximum recursion depth exceeded in cmp

2010-08-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: I checked in a modified version of reset the retry count for respnse code !=401 in the following checkins: r84323 (py3k) r84324 (release21-maint) r84325 (release31-maint) Unfortunately, we wont be able to patch the 2.6.x release. You might want to use patch

[issue8797] urllib2 basicauth broken in 2.6.5: RuntimeError: maximum recursion depth exceeded in cmp

2010-08-25 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed Added file: http://bugs.python.org/file18648/basic_auth.patch ___ Python tracker ___

[issue9690] Cannot distinguish b"str" from "str" in ast module.

2010-08-25 Thread Kay Hayen
Kay Hayen added the comment: You didn't understand. Please tell me, how to decide if this is a unicode literal or a str (2.x) literal: value=Str(s='d') It's just not possible. When I found a "from __future__ import unicode_literals" in the code before, it means I should convert "value.s" to

[issue9683] Dead code in py3k inspect module

2010-08-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Indeed, with 3.1: >>> def f(x, y): pass ... >>> inspect.formatargspec(inspect.getargspec(f)) TypeError: object of type 'map' has no len() -- nosy: +amaury.forgeotdarc type: -> behavior ___ Python tracker