[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) = sizeof(long)

2012-10-30 Thread Petri Lehtinen
Petri Lehtinen added the comment: Serhiy Storchaka wrote: This can be done in compile time. Something like: if ((uid_t)-1 0) ... Ah, neat. I would have expected that to issue a compiler warning, though, because the comparison is always true if the type is unsigned, but at least gcc

[issue16362] _LegalCharsPatt in cookies.py includes illegal characters

2012-10-30 Thread Simon Blanchard
New submission from Simon Blanchard: _LegalCharsPatt = r[\w\d!#%'~_`@,:/\$\*\+\-\.\^\|\)\(\?\}\{\=] The above regex in cookies.py includes the the comma character but RFC 6265 https://tools.ietf.org/html/rfc6265 section 4.1.1 says: cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B /

[issue16363] super cannot invoke descriptors

2012-10-30 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt: this means its much harder to have a mixin to change the behaviour of a property instead of super(Mixin, self).prop = foo the code is super(Mixin, type(self)).prop.__set__(self, foo) which is way harder to understand the attached file demonstrates the

[issue14897] struct.pack raises unexpected error message

2012-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Matti Mäki, can you please submit a contributor form? http://python.org/psf/contrib/contrib-form/ http://python.org/psf/contrib/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14897

[issue16361] HTTPS/TLS Problem in Python 3.3

2012-10-30 Thread Charles-François Natali
Charles-François Natali added the comment: Well, the first difference that jumps out is that with python 2.7, the protocol used is SSLv2, whereas it's bare SSL on Python 3.3.0. But another interesting thing is the presence, in Python 2.3, of many extenstions (elliptic_curves, heartbeat,

[issue16330] Use surrogate-related macros

2012-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks. Issue #16330: Fix compilation on Windows Oh, how could I miss this? -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue14625] Faster utf-32 decoder

2012-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't know any application using UTF-32-LE or UTF-32-BE. So I don't want to waste Python memory/code size with a heavily optimized decoder. The patch A looks to be enough. Agree. I had the same doubts. That's why I proposed two patches for your

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2012-10-30 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11566 ___ ___

[issue14897] struct.pack raises unexpected error message

2012-10-30 Thread Mark Dickinson
Mark Dickinson added the comment: Enhance error messages of struct.pack and struct.pack_into You probably should have used the word 'fix' rather than 'enhance' here: else it smells like you're putting new features into a maintenance release. :-) --

[issue16335] Integer overflow in unicode-escape decoder

2012-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: (b'\\N{WHITE SMILING FACE' + b'x' * 2**32 + '}').decode('unicode-escape') may pass on platform with 32-bit int and more than 32-bit size_t if there is enough memory. I don't have so much memory. -- ___ Python

[issue14897] struct.pack raises unexpected error message

2012-10-30 Thread Petri Lehtinen
Petri Lehtinen added the comment: You probably should have used the word 'fix' rather than 'enhance' here: else it smells like you're putting new features into a maintenance release. :-) Ah, true. But unfixable now :( -- ___ Python tracker

[issue15478] UnicodeDecodeError on OSError on Windows with undecodable (bytes) filename

2012-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue16074. The patch changes also os.link(), os.rename() and os.replace() to use the source, not the destination, in the error message. It is maybe a mistake because these functions can also fail in the directory of the destination does not

[issue16306] Multiple error line for unknown command line parameter

2012-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Hieu Nguyen, can you please submit a contributor form? http://python.org/psf/contrib/contrib-form/ http://python.org/psf/contrib/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16306

[issue14897] struct.pack raises unexpected error message

2012-10-30 Thread Matti Mäki
Matti Mäki added the comment: I filled up the contributor form and gave it to Petri Lehtinen 2012-10-22 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14897 ___

[issue16322] time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding

2012-10-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: -serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16322 ___ ___

[issue14897] struct.pack raises unexpected error message

2012-10-30 Thread Petri Lehtinen
Petri Lehtinen added the comment: Matti Mäki wrote: I filled up the contributor form and gave it to Petri Lehtinen 2012-10-22 Yeah, and I posted it (along with 14 other contributor forms received at PyCon Finland) to the PSF last week. They just seem to be a bit slow to process them.

[issue16310] zipfile: allow surrogates in filenames

2012-10-30 Thread Stefan Holek
Stefan Holek added the comment: It's possible to distribute Python packages with non-ASCII filenames. Well, it wasn't until very recently (distribute 0.6.29): https://bitbucket.org/tarek/distribute/issue/303/no-support-for-unicode-manifest-files Unless we are not talking about the same thing,

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2012-10-30 Thread Mark Dickinson
Mark Dickinson added the comment: I think there's something generally smelly about the way hypot is handled; this isn't the only hypot-related build issue that's turned up. I'm wondering whether the code can be reworked to deal with hypot in the same way that functions like log1p, etc. are

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2012-10-30 Thread Václav Šmilauer
Václav Šmilauer added the comment: Just for the record: a workaround (mentioned at http://boost.2283326.n4.nabble.com/Boost-Python-Compile-Error-s-GCC-via-MinGW-w64-td3165793.html#a3166760) is to always include cmath before Python.h. -- ___ Python

[issue16306] Multiple error line for unknown command line parameter

2012-10-30 Thread Hieu Nguyen
Hieu Nguyen added the comment: Serhiy, actually I have submitted my contributor form to Petri Lehtinen in a sprint here in Finland. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16306

[issue16330] Use surrogate-related macros

2012-10-30 Thread STINNER Victor
STINNER Victor added the comment: Oh, how could I miss this? The code does compile with error on Linux with GCC. I don't understand how. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16330

[issue16310] zipfile: allow surrogates in filenames

2012-10-30 Thread STINNER Victor
STINNER Victor added the comment: If I am the only one to think this is wrong, then so be it. Our current workaround is to disallow surrogates in the manifest. /me shrugs. You are not alone, that's why there are 3 open issues. But someone should finish the different proposition and write a

[issue16330] Use surrogate-related macros

2012-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was a rhetorical question. This code compiled only if Py_UNICODE_SIZE == 2. But I should be more careful. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16330

[issue16364] datetime.strftime and locale.getdefaultlocale conflict on Windows ?

2012-10-30 Thread jamesf
New submission from jamesf: on windows(windows 7), python 2.7.3 compiled with VS 2008 and code page cp936. locale.getdefaultlocale call Win32 API GetACP and return cp936, but a small test program return C from 'getlocale' CRT function. I am not sure if this behaviour is expected or bug? It

[issue16364] datetime.strftime and locale.getdefaultlocale conflict on Windows ?

2012-10-30 Thread jamesf
jamesf added the comment: i just found that locale.getlocale does return (None, None), maybe defaultlocale just return the DEFAULT, which is the hints. i will use locale.setlocale in my app, so close this issue. -- status: open - closed ___ Python

[issue16363] super cannot invoke descriptors

2012-10-30 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- versions: -Python 3.1, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16363 ___

[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) = sizeof(long)

2012-10-30 Thread Christian Heimes
Christian Heimes added the comment: AFAIK C89 doesn't specify integer overflows: If an exceptional condition occurs during the evaluation of an expression (that is, if the result is not mathematically defined or not in the range of representable values for its type), the behavior is

[issue9351] argparse set_defaults on subcommands should override top level set_defaults

2012-10-30 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: Yeah, I tried figuring out something more clever, as this, in the current form, has a bit too hackish feeling in it, but I couldn't find a proper tool for the job. Anyway, attached a patch with the getattr removed. -- Added file:

[issue9351] argparse set_defaults on subcommands should override top level set_defaults

2012-10-30 Thread Jyrki Pulliainen
Changes by Jyrki Pulliainen jy...@dywypi.org: Removed file: http://bugs.python.org/file27793/issue9351.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9351 ___

[issue9351] argparse set_defaults on subcommands should override top level set_defaults

2012-10-30 Thread Jyrki Pulliainen
Changes by Jyrki Pulliainen jy...@dywypi.org: Added file: http://bugs.python.org/file27795/issue9351.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9351 ___

[issue9351] argparse set_defaults on subcommands should override top level set_defaults

2012-10-30 Thread Jyrki Pulliainen
Changes by Jyrki Pulliainen jy...@dywypi.org: Added file: http://bugs.python.org/file27794/issue9351.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9351 ___

[issue9351] argparse set_defaults on subcommands should override top level set_defaults

2012-10-30 Thread Jyrki Pulliainen
Changes by Jyrki Pulliainen jy...@dywypi.org: Removed file: http://bugs.python.org/file27677/issue9351.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9351 ___

[issue9351] argparse set_defaults on subcommands should override top level set_defaults

2012-10-30 Thread Jyrki Pulliainen
Changes by Jyrki Pulliainen jy...@dywypi.org: Removed file: http://bugs.python.org/file27794/issue9351.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9351 ___

[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) = sizeof(long)

2012-10-30 Thread Petri Lehtinen
Petri Lehtinen added the comment: Christian Heimes wrote: AFAIK C89 doesn't specify integer overflows: Casting a signed integer to an unsigned integer is always defined, if that's what you're talking about. See http://flash-gordon.me.uk/ansi.c.txt, section 3.2.1.2. If you're talking about

[issue9351] argparse set_defaults on subcommands should override top level set_defaults

2012-10-30 Thread Petri Lehtinen
Petri Lehtinen added the comment: LGTM. Steven? -- stage: needs patch - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9351 ___ ___

[issue16344] Traceback Internationalization Proposal

2012-10-30 Thread Ramchandra Apte
Ramchandra Apte added the comment: Unless Python's grammar is translated into other languages I'm -1 on this. I don't see any use of this. You anyway have to know English to understand the docs and Python's grammar is English. @Ezio melotti In some places (like my country, public schools),

[issue16362] _LegalCharsPatt in cookies.py includes illegal characters

2012-10-30 Thread R. David Murray
R. David Murray added the comment: This is a pragmatic choice. Try searching the tracker for 'cookie comma', and read about the lack of adherence to cookie RFCs by the major browsers. Specifically, I think issue 1210326 is relevant here, and am closing this as a duplicate of that issue. If

[issue16363] super cannot invoke descriptors

2012-10-30 Thread R. David Murray
R. David Murray added the comment: I believe this is a duplicate of issue 14965. If you agree please add yourself to nosy there and review the proposed patch and/or make your own proposal. If you think your issue is different you can reopen this one. -- nosy: +r.david.murray

[issue16261] Fix bare excepts in various places in std lib

2012-10-30 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16261 ___ ___

[issue16344] Traceback Internationalization Proposal

2012-10-30 Thread Charles-François Natali
Charles-François Natali added the comment: Schools put a priority on English but not on native languages. Languages must be preserved because they contain culture Of course, but the main goal of a language is to communicate. As it stand, English is the language which is the most likely to

[issue16338] pysnmp/asyncore - timeout ineffective?

2012-10-30 Thread Charles-François Natali
Charles-François Natali added the comment: It's a little too vague :-) You should probably report this on pysnmp mailing list. If you want to debug this, you should perform a tcpdump/wireshark capture while running your script, and see what happens (according to your description, it may

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2012-10-30 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10966 ___ ___

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2012-10-30 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10966 ___ ___

[issue16361] HTTPS/TLS Problem in Python 3.3

2012-10-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Your script works for me under Linux with Python 3.2, 3.3 and 3.4. Perhaps the problem has to do with the version of OpenSSL that we package Windows binaries with? My OpenSSL version here (as given by ssl.OPENSSL_VERSION) is 'OpenSSL 1.0.0d 8 Feb 2011'.

[issue16344] Traceback Internationalization Proposal

2012-10-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: It'll get tricky if in a couple months, we start getting bug reports with traceback in Finnish or French... That is another reason to *always* output the standard English message first. I think this was discussed a couple of years ago on PyDev, or maybe

[issue16361] HTTPS/TLS Problem in Python 3.3

2012-10-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: It looks like we use OpenSSL 1.0.1c for Python 3.3 Windows builds, which would explain the different Client Hello. In your capture, the client identifies itself as TLS 1.2, while on my Linux box it's TLS 1.0. I'm uploading the decoded protocol tree of the two

[issue16361] HTTPS/TLS Problem in Python 3.3

2012-10-30 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Added file: http://bugs.python.org/file27796/linux-tls10-handshake.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16361 ___

[issue16361] HTTPS/TLS Problem in Python 3.3

2012-10-30 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Added file: http://bugs.python.org/file27797/windows-tls12-handshake.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16361 ___

[issue16365] IDLE for Windows 8

2012-10-30 Thread Abhijeet Joshi
New submission from Abhijeet Joshi: Hello, I have installed Idle for python 3.3 on windows 8 and trying to open the GUI but unable to open anything. The screen doesn't show up on monitor. Please help me here. Thanks Abhijeet -- components: IDLE messages: 174217 nosy: jabhijeet

[issue16197] Several small errors in winreg documentation

2012-10-30 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the commit! 3.2 looks good now. 3.3 and default still need a little work, though; the docstrings still say WindowsError instead of OSError and the docs say a OSError instead of an OSError. The attached patch cleans up both issues, as well as

[issue16361] HTTPS/TLS Problem in Python 3.3

2012-10-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note that you could work around the issue by forcing a lower SSL version: ssl_context = ssl.SSLContext(ssl.PROTOCOL_SSLv3) opener = urllib.request.build_opener( urllib.request.HTTPCookieProcessor(cj),

[issue1553375] Add traceback.print_full_exception()

2012-10-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: I recently re-wrote something like this, so I think this is useful. I wonder if it wouldn't be nice to add a caret or some similar marker indicating the frame where the exception was caught, e.g.: Traceback (most recent call last, catch point highlighted):

[issue16341] In examples, except: should use new syntax

2012-10-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4e9617d3c514 by Andrew Svetlov in branch '2.7': Issue #16341: convert examples to use except ... as ... syntax. http://hg.python.org/cpython/rev/4e9617d3c514 -- nosy: +python-dev ___ Python tracker

[issue16341] In examples, except: should use new syntax

2012-10-30 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16341

[issue16366] _handleError not very informative

2012-10-30 Thread Antoine Pitrou
New submission from Antoine Pitrou: logging's _handleError will tell you in which code line the error happened, but it's not very useful when application code has its own logging wrappers. You need more of the stack to get useful information. The attached script showcases this, along with a

[issue1553375] Add traceback.print_full_exception()

2012-10-30 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1553375 ___ ___

[issue14965] super() and property inheritance behavior

2012-10-30 Thread Ronny Pfannschmidt
Changes by Ronny Pfannschmidt ronny.pfannschm...@gmail.com: -- nosy: +Ronny.Pfannschmidt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14965 ___

[issue16365] IDLE for Windows 8

2012-10-30 Thread Roger Serwy
Roger Serwy added the comment: Can you launch Python from a command line and then launch IDLE from there? cd c:\python33 python After python starts, enter the following: import idlelib.idle -- nosy: +serwy ___ Python tracker

[issue16365] IDLE for Windows 8

2012-10-30 Thread Abhijeet Joshi
Abhijeet Joshi added the comment: Thanks for your reply. I have tried re-installing it 3-4 times and it started working now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16365 ___

[issue16326] distutils build_ext fails to set library_dirs in 2.7.2 on Linux

2012-10-30 Thread Andy Salnikov
Andy Salnikov added the comment: Hi Éric, I am attaching a patch that fixes the problem. The patch is tiny, basically 1-line. This replaces the direct use of sys.executable with the symlink-resolved version of the same path. I made the change for linux/unix platforms and also for

[issue15721] PEP 3121, 384 Refactoring applied to tkinter module

2012-10-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: Amaury, you are right: PyTclObject_Type_slots[3].pfunc = PyObject_GenericGetAttr; is not required. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15721

[issue15721] PEP 3121, 384 Refactoring applied to tkinter module

2012-10-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4eb6e07e8171 by Andrew Svetlov in branch 'default': Issue #15721: apply PEP 384 Refactoring to tkinter module. http://hg.python.org/cpython/rev/4eb6e07e8171 -- ___ Python tracker rep...@bugs.python.org

[issue16365] IDLE for Windows 8

2012-10-30 Thread Roger Serwy
Roger Serwy added the comment: I wonder if there is a bug in the Python installer on the new Windows 8 platform, though it is unlikely. I will leave this issue open for Windows 8 developers to comment. (I don't have Win8 for testing just yet.) Feel free to close. -- components:

[issue16365] IDLE for Windows 8

2012-10-30 Thread Abhijeet Joshi
Abhijeet Joshi added the comment: will leave it open so that some win8 developer will check it out. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16365 ___

[issue16351] Add a function to get GC statistics

2012-10-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 43d87cdf9457 by Antoine Pitrou in branch 'default': Issue #16351: New function gc.get_stats() returns per-generation collection statistics. http://hg.python.org/cpython/rev/43d87cdf9457 -- nosy: +python-dev

[issue16351] Add a function to get GC statistics

2012-10-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Now committed. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16351

[issue16344] Traceback Internationalization Proposal

2012-10-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: You anyway have to know English to understand the docs and Python's grammar is English. I don't think Python's grammar is relevant. I took my first steps in programming when I was around 10 and I barely knew English at the time, it didn't stop me from

[issue14625] Faster utf-32 decoder

2012-10-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9badfe3a31a7 by Victor Stinner in branch 'default': Close #14625: Rewrite the UTF-32 decoder. It is now 3x to 4x faster http://hg.python.org/cpython/rev/9badfe3a31a7 -- nosy: +python-dev resolution: - fixed stage: patch review -

[issue14625] Faster utf-32 decoder

2012-10-30 Thread STINNER Victor
STINNER Victor added the comment: I applied the patch A with minor changes: replace multiple goto with classic break/continue and if/else. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14625

[issue16344] Traceback Internationalization Proposal

2012-10-30 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16344 ___ ___

[issue16086] tp_flags: Undefined behaviour with 32 bits long

2012-10-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 10795aac6df7 by Victor Stinner in branch 'default': Issue #16086: PyTypeObject.tp_flags and PyType_Spec.flags are now unsigned http://hg.python.org/cpython/rev/10795aac6df7 -- nosy: +python-dev ___

[issue16351] Add a function to get GC statistics

2012-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Because it's much simpler like that. Well, I wrote a patch with structure sequences, it is really much more expansive. I have some comments. 1. You can allocate list of NUM_GENERATIONS elements and then use PyList_SET_ITEM(result, i, stat). This is 4

[issue16268] dir(closure) does not find __dir__

2012-10-30 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The same fix, but with a unit test. Note that object.__dir__ did not exist in previous versions, but I found a similar failure with __format__, which also applies to 2.7. -- nosy: +amaury.forgeotdarc Added file:

[issue16268] dir(closure) does not find __dir__

2012-10-30 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16268 ___ ___

[issue16086] tp_flags: Undefined behaviour with 32 bits long

2012-10-30 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16086 ___

[issue16311] Use _PyUnicodeWriter API in text decoders

2012-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I will do some experiments and review tomorrow. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16311 ___ ___

[issue14625] Faster utf-32 decoder

2012-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I applied the patch A with minor changes: replace multiple goto with classic break/continue and if/else. Looks good. Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14625

[issue16086] tp_flags: Undefined behaviour with 32 bits long

2012-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Note that Py_TPFLAGS_INT_SUBCLASS already not used in Python 3.x. One bit of tp_flags can be freed. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16086

[issue16086] tp_flags: Undefined behaviour with 32 bits long

2012-10-30 Thread STINNER Victor
STINNER Victor added the comment: Note that Py_TPFLAGS_INT_SUBCLASS already not used in Python 3.x. One bit of tp_flags can be freed. Please open a new issue if you consider this issue important enough. -- ___ Python tracker

[issue16086] tp_flags: Undefined behaviour with 32 bits long

2012-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue9307. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16086 ___ ___ Python-bugs-list mailing

[issue16344] Traceback Internationalization Proposal

2012-10-30 Thread Mariano Reingart
Mariano Reingart added the comment: Sorry for taking so long to replying, and for this long follow up... Antoine Pitrou added the comment: I think the PEP should be proposed on python-dev or python-ideas. Also, it's probably better if the PEP is encoded in utf-8, not latin-1. Ok, I'll

[issue16367] io.FileIO.readall() is not 64-bit safe on Windows

2012-10-30 Thread STINNER Victor
New submission from STINNER Victor: The changeset 374dc910db33 fixed FileIO.readinto(), FileIO.write() and os.write() on Windows for issues #9015, #9611, but FileIO.readall() was not fixed and it has a similar bug. It uses int n; to store the result of read(), so FileIO.readall() may also

[issue15478] UnicodeDecodeError on OSError on Windows with undecodable (bytes) filename

2012-10-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 01cc9fb52887 by Victor Stinner in branch 'default': Issue #15478: Fix test_os on Windows (os.chown is missing) http://hg.python.org/cpython/rev/01cc9fb52887 -- ___ Python tracker rep...@bugs.python.org

[issue9566] Compilation warnings under x64 Windows

2012-10-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 96fc87997ce9 by Victor Stinner in branch 'default': Issue #9566: Explicit downcast to fix compiler warnings on Win64 http://hg.python.org/cpython/rev/96fc87997ce9 New changeset dabe2486e2ce by Victor Stinner in branch 'default': Issue #9566: Use

[issue16368] error when logging message

2012-10-30 Thread Tom Kuiper
New submission from Tom Kuiper: This error comes from the logging module when a message is logged, but only when I also import another module which does use logging at all: Traceback (most recent call last): File /usr/lib/python2.6/logging/__init__.py, line 776, in emit msg =

[issue15478] UnicodeDecodeError on OSError on Windows with undecodable (bytes) filename

2012-10-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset ef87bd0797de by Victor Stinner in branch 'default': Issue #15478: Fix test_os on FreeBSD http://hg.python.org/cpython/rev/ef87bd0797de -- ___ Python tracker rep...@bugs.python.org

[issue12890] cgitb displays p tags when executed in text mode

2012-10-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7648b7ed6d91 by R David Murray in branch '3.3': #12890: fix test on windows http://hg.python.org/cpython/rev/7648b7ed6d91 New changeset d24befb680d6 by R David Murray in branch 'default': #12890: fix test on windows

[issue12890] cgitb displays p tags when executed in text mode

2012-10-30 Thread R. David Murray
R. David Murray added the comment: Thanks everyone. -- stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12890 ___

[issue16368] error when logging message

2012-10-30 Thread R. David Murray
R. David Murray added the comment: Do none of those submodules import logging? It is unlikely that this is a Python bug. Somewhere _fmt is getting set to an integer. The way to prove this one way or another is to start deleting things until you find the code that is triggering the issue.

[issue16368] error when logging message

2012-10-30 Thread Tom Kuiper
Tom Kuiper added the comment: Give me a few moments to dig further. I may have found the submodule culprit. Checking. Tom On 10/30/2012 05:29 PM, R. David Murray wrote: R. David Murray added the comment: Do none of those submodules import logging? It is unlikely that this is a Python

[issue16368] error when logging message

2012-10-30 Thread Tom Kuiper
Tom Kuiper added the comment: On 10/30/2012 05:29 PM, R. David Murray wrote: R. David Murray added the comment: Do none of those submodules import logging? It is unlikely that this is a Python bug. Somewhere _fmt is getting set to an integer. The way to prove this one way or another is

[issue16368] error when logging message

2012-10-30 Thread R. David Murray
R. David Murray added the comment: Yep, that would do it. format is supposed to be a format string. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16368 ___

[issue16268] dir(closure) does not find __dir__

2012-10-30 Thread Bradley Froehle
Bradley Froehle added the comment: Your patch looks good to me, and I can verify that it properly tests for the issue in Python 3.3. On a related note, I've found that PyType_Ready(...) isn't called for a few other core PyTypeObjects... see #16369. --

[issue16369] Global PyTypeObjects not initialized with PyType_Ready(...)

2012-10-30 Thread Bradley Froehle
New submission from Bradley Froehle: In Python 3.3.0, several global `PyTypeObject`s are not initialized using PyType_Ready(...). The list of uninitialized type objects:: PyCapsule_Type PyLongRangeIter_Type PyFieldNameIter_Type PyFormatterIter_Type PySTEntry_Type PyCell_Type

[issue16344] Traceback Internationalization Proposal

2012-10-30 Thread Ramchandra Apte
Ramchandra Apte added the comment: I said Schools put a priority on English but not on native languages. Languages must be preserved because they contain culture Charles-François Natali said Of course, but the main goal of a language is to communicate. As it stand, English is the language

[issue16369] Global PyTypeObjects not initialized with PyType_Ready(...)

2012-10-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset eec0cafe171d by Benjamin Peterson in branch '3.2': initialize more global type objects (closes #16369) http://hg.python.org/cpython/rev/eec0cafe171d New changeset 9371bf2287c4 by Benjamin Peterson in branch '3.3': merge 3.2 (#16369)

[issue16268] dir(closure) does not find __dir__

2012-10-30 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - duplicate status: open - closed superseder: - Global PyTypeObjects not initialized with PyType_Ready(...) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16268

[issue16278] os.rename documentation slightly inaccurate

2012-10-30 Thread Todd Rovito
Todd Rovito added the comment: While writing test cases I discovered another conflict with the documentation. The phrase On Unix, if dst exists and is a file, it will be replaced silently if the user has permission and src is a file. is not correct. According to the test cases I wrote in

[issue13659] Add a help() viewer for IDLE's Shell.

2012-10-30 Thread Ramchandra Apte
Ramchandra Apte added the comment: Bump. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13659 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16271] weird dual behavior with changing __qualname__; different values observed through attribute and descriptor

2012-10-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1d700e1aff33 by Benjamin Peterson in branch '3.3': don't shadow the __qualname__ descriptor with __qualname__ in the class's __dict__ (closes #16271) http://hg.python.org/cpython/rev/1d700e1aff33 -- nosy: +python-dev resolution: - fixed

  1   2   >