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

2010-08-25 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com 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 mar...@v.loewis.de: 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),

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

2010-08-25 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- assignee: - tim.golden nosy: +tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1559298 ___

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

2010-08-25 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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

[issue9679] unicode DNS names in urllib, urlopen

2010-08-25 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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 victor.stin...@haypocalc.com 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. --

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2010-08-25 Thread Ask Solem
Ask Solem a...@opera.com 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

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

2010-08-25 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- assignee: - tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2528 ___ ___ Python-bugs-list

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

2010-08-25 Thread Carsten Klein
Carsten Klein carsten.kl...@axn-software.de added the comment: Thanks for the information. Where is this documented? I cannot find it in the official Python docs... TIA. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9659

[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 carsten.kl...@axn-software.de: 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

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

2010-08-25 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: Thanks, I will take a look sometime today. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8781 ___

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

2010-08-25 Thread Kees Bos
Kees Bos k@zx.nl 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 dan...@stutzbachenterprises.com 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

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

2010-08-25 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com 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 rep...@bugs.python.org

[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 m...@egenix.com added the comment: Daniel Stutzbach wrote: Daniel Stutzbach dan...@stutzbachenterprises.com 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

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

2010-08-25 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com 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

[issue1589266] bdist_sunpkg distutils command

2010-08-25 Thread Holger Joukl
Holger Joukl jh...@gmx.de 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

[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 rdmur...@bitdance.com 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:

[issue9679] unicode DNS names in urllib, urlopen

2010-08-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue9679] unicode DNS names in urllib, urlopen

2010-08-25 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- keywords: -buildbot, patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9679 ___ ___

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2010-08-25 Thread Jesse Noller
Jesse Noller jnol...@gmail.com 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

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

2010-08-25 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com 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. --

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

2010-08-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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 benja...@python.org added the comment: 2010/8/25 Carsten Klein rep...@bugs.python.org: Carsten Klein carsten.kl...@axn-software.de added the comment: Thanks for the information. Where is this documented? I cannot find it in the official Python docs... TIA.

[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 mer...@netwok.org 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 ___

[issue1589266] bdist_sunpkg distutils command

2010-08-25 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- resolution: - rejected stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1589266 ___

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

2010-08-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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 dicki...@gmail.com 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()

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

2010-08-25 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com 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

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

2010-08-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[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 rdmur...@bitdance.com 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

[issue1512791] module wave does no rounding

2010-08-25 Thread Neil Tallim
Neil Tallim red.hamst...@gmail.com 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.

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

2010-08-25 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk 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 rep...@bugs.python.org

[issue1602742] itemconfigure returns incorrect text property of text items

2010-08-25 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- stage: - needs patch type: - behavior versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.4, Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602742

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

2010-08-25 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk 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

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

2010-08-25 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: No reply to msg51470. -- nosy: +BreamoreBoy resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1608267

[issue1610654] cgi.py multipart/form-data

2010-08-25 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: No reply to msg110090. -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1610654 ___

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

2010-08-25 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- stage: unit test needed - patch review 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/issue1611154

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

2010-08-25 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- stage: - unit test needed type: - behavior versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1611944 ___

[issue1612262] Class Browser doesn't show internal classes

2010-08-25 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1612262 ___

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

2010-08-25 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: +1 on option 1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8781 ___ ___ Python-bugs-list

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

2010-08-25 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk 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 -

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

2010-08-25 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com 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

[issue9681] small typo in online documentation

2010-08-25 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - d...@python components: +Documentation nosy: +d...@python type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9681

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

2010-08-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 rep...@bugs.python.org

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

2010-08-25 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com 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. --

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

2010-08-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: BTW, Tarek’s name is valid UTF-8 in py3k. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5131 ___

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

2010-08-25 Thread Roumen Petrov
Changes by Roumen Petrov bugtr...@roumenpetrov.info: -- nosy: +rpetrov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9674 ___ ___ Python-bugs-list

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

2010-08-25 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- components: +Distutils2 nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9309 ___ ___

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

2010-08-25 Thread Dmitry Jemerov
Dmitry Jemerov intelliy...@gmail.com 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

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

2010-08-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue9683] Dead code in pyk inspect module

2010-08-25 Thread Andreas Stührk
New submission from Andreas Stührk andy-pyt...@hammerhartes.de: 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

[issue9684] PC/pyconfig.h should define SIZEOF_WCHAR_T

2010-08-25 Thread Daniel Stutzbach
New submission from Daniel Stutzbach dan...@stutzbachenterprises.com: 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

[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 dan...@stutzbachenterprises.com: -- dependencies: +PC/pyconfig.h should define SIZEOF_WCHAR_T ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8781 ___

[issue9684] PC/pyconfig.h should define SIZEOF_WCHAR_T

2010-08-25 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com 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 dan...@stutzbachenterprises.com 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 dt...@users.sourceforge.net: 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

[issue9685] tuples should remember their hash value

2010-08-25 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net 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

[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

[issue9685] tuples should remember their hash value

2010-08-25 Thread Tim Peters
Tim Peters tim.pet...@gmail.com 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

[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 dmalc...@redhat.com: 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

[issue9686] asyncore infinite loop on raise

2010-08-25 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: What change are you proposing? -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9686 ___

[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 dmalc...@redhat.com 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 rep...@bugs.python.org http://bugs.python.org/issue9687

[issue9685] tuples should remember their hash value

2010-08-25 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: FWIW, I'm -1 on this without a demonstrable improvement on some real-world cases. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9685

[issue9685] tuples should remember their hash value

2010-08-25 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net 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

[issue8855] Shelve documentation lacks security warning

2010-08-25 Thread Longpoke
Longpoke longp...@gmail.com 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 benja...@python.org added the comment: 2010/8/25 Raymond Hettinger rep...@bugs.python.org: 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

[issue9683] Dead code in py3k inspect module

2010-08-25 Thread Andreas Stührk
Changes by Andreas Stührk andy-pyt...@hammerhartes.de: -- title: Dead code in pyk inspect module - Dead code in py3k inspect module ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9683 ___

[issue9686] asyncore infinite loop on raise

2010-08-25 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: - giampaolo.rodola nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9686 ___

[issue9688] object.__basicsize__ is erroneously0

2010-08-25 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: -- nosy: dmalcolm priority: normal severity: normal status: open title: object.__basicsize__ is erroneously0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9688

[issue9686] asyncore infinite loop on raise

2010-08-25 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Could you provide a code sample which demonstrates the problem? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9686 ___

[issue9686] asyncore infinite loop on raise

2010-08-25 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +josiah.carlson, josiahcarlson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9686 ___

[issue9689] threading.Timer poorly documented

2010-08-25 Thread Pedro Mendes
New submission from Pedro Mendes pedrorm2...@gmail.com: 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

[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 dmalc...@redhat.com: 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

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

2010-08-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2010-08-25 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- dependencies: -distutils argument parsing is bogus ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8501 ___

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-25 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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) -- ___

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

2010-08-25 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- dependencies: +distutils dry-run breaks when attempting to bytecompile ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8501 ___

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

2010-08-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 florent.xicl...@gmail.com 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

[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 benja...@python.org added the comment: r84320. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9688 ___

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

2010-08-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue9689] threading.Timer poorly documented

2010-08-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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 rdmur...@bitdance.com: -- 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 bstr from str in ast module.

2010-08-25 Thread Kay Hayen
New submission from Kay Hayen kayha...@gmx.de: 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())],

[issue1109659] distutils argument parsing is bogus

2010-08-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue1109659] distutils argument parsing is bogus

2010-08-25 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: tarek - eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1109659 ___ ___

[issue9690] Cannot distinguish bstr from str in ast module.

2010-08-25 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org 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 rep...@bugs.python.org

[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

[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 rdmur...@bitdance.com 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 rep...@bugs.python.org

[issue9572] IOError or OSError in test_multiprocessing

2010-08-25 Thread Łukasz Czuja
Łukasz Czuja luk...@czuja.pl 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: