[issue3613] base64.encodestring does not actually accept strings

2008-08-20 Thread Dmitry Dvoinikov
New submission from Dmitry Dvoinikov [EMAIL PROTECTED]: This quote from base64.py: --- bytes_types = (bytes, bytearray) # Types acceptable as binary data ... def encodestring(s): Encode a string into multiple lines of base-64 data. Argument and return value are bytes. if not

[issue1276] LookupError: unknown encoding: X-MAC-JAPANESE

2008-08-20 Thread Hye-Shik Chang
Changes by Hye-Shik Chang [EMAIL PROTECTED]: Added file: http://bugs.python.org/file11170/cjkmactemporary.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1276 ___

[issue3614] typo in xmlrpc.client

2008-08-20 Thread Dmitry Dvoinikov
New submission from Dmitry Dvoinikov [EMAIL PROTECTED]: In xmlrpc.client:1204: --- headers = {} if extra_headers: for key, val in extra_headers: header[key] = val --- shouldn't it read --- headers[key] = val ^ --- ? Otherwise it bails out with --- NameError:

[issue3609] does parse_header really belong in CGI module?

2008-08-20 Thread Bill Janssen
Bill Janssen [EMAIL PROTECTED] added the comment: I imagine if they were moved (at least for a few versions) the old ones would still work, with a deprecation warning? Yes, that's what I was thinking. ___ Python tracker [EMAIL PROTECTED]

[issue2834] re.IGNORECASE not Unicode-ready

2008-08-20 Thread Mark Summerfield
Mark Summerfield [EMAIL PROTECTED] added the comment: On 2008-08-19, Antoine Pitrou wrote: Antoine Pitrou [EMAIL PROTECTED] added the comment: Fixed in r65860. Someone should check the docs though (at least try to generate them, and review my changes a bit since English isn't my mother

[issue2834] re.IGNORECASE not Unicode-ready

2008-08-20 Thread Mark Summerfield
Mark Summerfield [EMAIL PROTECTED] added the comment: On 2008-08-19, Antoine Pitrou wrote: Antoine Pitrou [EMAIL PROTECTED] added the comment: Fixed in r65860. Someone should check the docs though (at least try to generate them, and review my changes a bit since English isn't my mother

[issue3615] Expect methods for testing.

2008-08-20 Thread J. Pablo Fernández
New submission from J. Pablo Fernández [EMAIL PROTECTED]: I'm attaching a patch that adds expect methods to TestCase. They are like fail methods, but they don't fail immediately. They are useful when you want to catch more than one error at a time. I included some tests. There are docstrings but

[issue2834] re.IGNORECASE not Unicode-ready

2008-08-20 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Thanks a lot Mark! ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2834 ___ ___ Python-bugs-list mailing list

[issue3607] test_multiprocessing failure (Unserializable message)

2008-08-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Sorry, I did not notice the failure because test_multiprocessing have other problems on Windows. r65905 restores part of the copy_reg calls, just enough to let the tests pass. I am working on the proper fix, which is to use the custom

[issue3616] shutil.rmtree() fails on invalid filename

2008-08-20 Thread STINNER Victor
New submission from STINNER Victor [EMAIL PROTECTED]: If the directory contains invalid filenames (invalid in the system charset), an exception is raised by os.path.join() used by shutil.rmtree(): fullname = os.path.join(path, name) File /home/haypo/prog/py3k/Lib/posixpath.py, line 64,

[issue3611] invalid exception context

2008-08-20 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: I also noticed a crash in PyErr_SetObject(): in block line 68..86, tstate-exc_value value may changes and so it's possible that tstate-exc_value becomes NULL. How can tstate-exc_value become NULL at that point? Could you investigate?

[issue3603] trivial typo in Include/pymath.h

2008-08-20 Thread Santiago Gala
Santiago Gala [EMAIL PROTECTED] added the comment: Notice the typo is still in a number of branches/tags (I know, tags should be static, but nothing impedes committing into a subversion tag once it is created, so I quote for reference): [EMAIL PROTECTED] ~/newcode/python.git (py3k)$ for i in

[issue3616] shutil.rmtree() fails on invalid filename

2008-08-20 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: This is certainly a consequence of #3187, which is very high priority but also very difficult to find a satisying solution to. -- nosy: +pitrou resolution: - duplicate status: open - closed ___

[issue3187] os.listdir can return byte strings

2008-08-20 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: See #3616 for a consequence of this. -- nosy: +haypo ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3187 ___

[issue3616] shutil.rmtree() fails on invalid filename

2008-08-20 Thread Antoine Pitrou
Changes by Antoine Pitrou [EMAIL PROTECTED]: -- superseder: - os.listdir can return byte strings ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3616 ___

[issue3608] memoryview constructor has no deallocator

2008-08-20 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Well, this is not a bug in itself. Memoryview objects are designed to give access to a memory area backed by another object - they don't own the memory by themselves (in the sense that you e.g. own a reference to a PyObject). Please note by

[issue3608] memoryview constructor has no deallocator

2008-08-20 Thread Antoine Pitrou
Changes by Antoine Pitrou [EMAIL PROTECTED]: -- priority: - normal ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3608 ___ ___ Python-bugs-list mailing

[issue3617] Add MS EULA to the list of third-party licenses in the Windows installer

2008-08-20 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg [EMAIL PROTECTED]: Since we are shipping the msvcr90.dll (+ assemblies) together with the Python installer for Windows, we need to include the MS EULA for VS2008 in the third-party licenses section as this is the license that covers the VS DLLs. --

[issue3617] Add MS EULA to the list of third-party licenses in the Windows installer

2008-08-20 Thread Marc-Andre Lemburg
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment: Note that there are a few gotchas in the MS EULA, such as disallowing to ship the DLLs with GPLed Python products or requiring that the PSF prevents further redistribution of the DLLs unless used in conjunction with Python. --

[issue3615] Expect methods for testing.

2008-08-20 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Interesting, but it should be discussed on the mailing-list first. Also, since this is a new feature, it must be retargeted to 2.7/3.1. -- nosy: +pitrou priority: - normal type: - feature request versions: +Python 2.7, Python 3.1

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-20 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: There's an unquote()-related failure in #3613. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3300 ___ ___

[issue3613] base64.encodestring does not actually accept strings

2008-08-20 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: The encodestring() function is refered to in the docs as the legacy interface. Perhaps it should be simply deprecated in 3.0? -- assignee: - georg.brandl components: +Documentation nosy: +georg.brandl, pitrou priority: - high

[issue3613] base64.encodestring does not actually accept strings

2008-08-20 Thread Matt Giuca
Matt Giuca [EMAIL PROTECTED] added the comment: Hi Dmitry, RE the method behaviour: I think it probably is correct to NOT accept a string. Given that it's base64 encoding it, it only makes sense to encode bytes, not arbitrary Unicode characters which have no well-defined binary representation.

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-20 Thread Matt Giuca
Matt Giuca [EMAIL PROTECTED] added the comment: Thanks for pointing that out, Antoine. I just commented on that bug. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3300 ___

[issue3612] Add some basic mssing types in ctypes.wintypes

2008-08-20 Thread Thomas Heller
Thomas Heller [EMAIL PROTECTED] added the comment: I have no objections against this patch - feel free to check it in if it is not too late before the beta. Also I think that LPDWORD and friends are a good idea, you should extend the patch with them. -- assignee: theller - ocean-city

[issue3613] base64.encodestring does not actually accept strings

2008-08-20 Thread Matt Giuca
Matt Giuca [EMAIL PROTECTED] added the comment: it should be renamed to encodestring Huh ? It is already called that :) Um ... yes. I mean encodebytes :) Best we can do is document them. Oh well. But I don't know the rules. People are saying things like no new features after beta3 but I

[issue3618] possible deadlock in IO library (Lib/io.py)

2008-08-20 Thread STINNER Victor
New submission from STINNER Victor [EMAIL PROTECTED]: BufferedWriter from Lib/io.py is thread-safe, but... the Python instruction with self._write_lock: could be interrupted when the lock is already acquired. Especially, _lsprof.Profiler() uses ceval hook and is called when the lock is

[issue3618] possible deadlock in IO library (Lib/io.py)

2008-08-20 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Yes indeed. We could use an RLock to avoid the problem but RLock's are damn slow since they are written in pure Python (see #3001). Rewriting the critical parts of RLock (constructor, acquire(), release(), __enter__(), __exit__()) in C should

[issue3612] Add some basic mssing types in ctypes.wintypes

2008-08-20 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: I've committed basic type addition in r65908. Addition of LPDWORD and its friends will follow. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3612 ___

[issue3001] RLock's are SLOW

2008-08-20 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: As suggested by pitrou, I wrote an implementation of RLock in C. Changes to Python version: - no debug message: i leave the message in #if 0 ... #endif - acquire() method argument blocking is not a keyword Notes: - RLock has no docstring!

[issue3618] possible deadlock in IO library (Lib/io.py)

2008-08-20 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: @pitrou: I wrote an implementation of RLock in C (see #3001). So it would be possible to use threading.RLock instead of threading.Lock ;-) ___ Python tracker [EMAIL PROTECTED]

[issue3619] A more informative message for ImportError

2008-08-20 Thread Kent Tenney
New submission from Kent Tenney [EMAIL PROTECTED]: from foo import bar ImportError: cannot import name bar The error may be due to the wrong 'foo' being found, some investigation is required. If the the ImportError message included the filename for 'foo', the problem would be obvious.

[issue3618] possible deadlock in IO library (Lib/io.py)

2008-08-20 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: Oops, I forgot to update PyInit__Thread() with my new time: - Add PyType_Ready() - Register RLockType to threading dict Here is the new patch -- keywords: +patch Added file: http://bugs.python.org/file11174/rlock.patch

[issue3619] A more informative message for ImportError

2008-08-20 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- components: +Interpreter Core -None priority: - low versions: +Python 3.1 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3619 ___

[issue3001] RLock's are SLOW

2008-08-20 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: Oops, I forgot to update PyInit__Thread() with my new time: - Add PyType_Ready() - Register RLockType to threading dict Here is the new patch. Added file: http://bugs.python.org/file11175/rlock-v2.patch

[issue3618] possible deadlock in IO library (Lib/io.py)

2008-08-20 Thread STINNER Victor
Changes by STINNER Victor [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11174/rlock.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3618 ___

[issue3618] possible deadlock in IO library (Lib/io.py)

2008-08-20 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: Ooops again, I uploaded my patch to the wrong issue! The new patch is now in the issue #3001. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3618 ___

[issue3001] RLock's are SLOW

2008-08-20 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Wow, that was quick. Did you try to replace threading.RLock with your implementation, and run the tests? By the way: - acquire() method argument blocking is not a keyword - In the Python version, RLock._release_save() replaces owner and

[issue3612] Add some basic mssing types in ctypes.wintypes

2008-08-20 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: I've created the patch which adds LPDWORD and friends. Can you review it? Added file: http://bugs.python.org/file11176/adds_LPDWORD_and_friends.patch ___ Python tracker [EMAIL PROTECTED]

[issue3611] invalid exception context

2008-08-20 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: How can tstate-exc_value become NULL at that point? [error.c:86] Could you investigate? PyEval_CallObject(exception, args) may calls PyErr_SetObject(). Since the same thread state is the same, tstate-exc_value also changes during this

[issue3620] test_asyncore is not cleanup after its self?

2008-08-20 Thread Benjamin Peterson
New submission from Benjamin Peterson [EMAIL PROTECTED]: This is from the sparc Unbuntu 3.0 bot. I'm having trouble reproducing it, though. test test_smtplib produced unexpected output: ** *** line 2 of actual output doesn't

[issue3613] base64.encodestring does not actually accept strings

2008-08-20 Thread Guido van Rossum
Guido van Rossum [EMAIL PROTECTED] added the comment: Did someone fix xmlrpc.client:1168 yet? IMO it's okay to add encodebytes(), but let's leave encodestring() around with a deprecation warning, since it's so late in the release cycle. -- nosy: +gvanrossum

[issue3611] invalid exception context

2008-08-20 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Selon STINNER Victor [EMAIL PROTECTED]: How can tstate-exc_value become NULL at that point? [error.c:86] Could you investigate? PyEval_CallObject(exception, args) may calls PyErr_SetObject(). Since the same thread state is the same,

[issue3611] invalid exception context

2008-08-20 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: I retract what I said above. PyErr_SetObject() and friends only change tstate-curexc_* variables, not tstate-exc_*. The former (tstate-curexc_*) contain the current, pending (uncaught) exception state of the thread. The latter (tstate-exc_*)

[issue3611] invalid exception context

2008-08-20 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: About the PyEval_CallObject() call in errors.c, here is an example: Call exception0x81dcee0(args0x8751dc4) with exception= object : class 'AttributeError' type: type refcount: 6 address : 0x81dcee0 and args= object :

[issue3621] it would be nice if installers made by bdist_wininst stored an EstimatedSize property in the Windows registry

2008-08-20 Thread Jason Spiro
New submission from Jason Spiro [EMAIL PROTECTED]: == Summary == Installers made by bdist_wininst never set EstimatedSize in the Windows registry. So Windows makes an estimate[1] of the installed software's size so the Add/Remove Programs control panel can tell users how much space the

[issue3565] array documentation, method names not 3.0 compliant

2008-08-20 Thread Matt Giuca
Matt Giuca [EMAIL PROTECTED] added the comment: A similar issue came up in another bug (http://bugs.python.org/issue3613), and Guido said: IMO it's okay to add encodebytes(), but let's leave encodestring() around with a deprecation warning, since it's so late in the release cycle. I think

[issue3621] it would be nice if installers made by bdist_wininst stored an EstimatedSize property in the Windows registry

2008-08-20 Thread Jason Spiro
Jason Spiro [EMAIL PROTECTED] added the comment: Attaching testcase. It's basically just some sample code from the distutils documentation. Added file: http://bugs.python.org/file11177/testcase.zip ___ Python tracker [EMAIL PROTECTED]

[issue3611] invalid exception context

2008-08-20 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: [...] This exception may comes from PyObject_IsSubclass() which calls PyObject_GetAttr(cls, __subclasscheck__). If you look at the code for PyObject_IsSubclass(), there is a pair of PyErr_Fetch / PyErr_Restore calls around

[issue3611] invalid exception context

2008-08-20 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: I'm unable to write a short Python script to reproduce the bug. So download the full program: http://neudorf.hachoir.org/tmp/fusil3000.tar.gz Run in with: $ gdb python3.0 (gdb) run fusil-python --fast

[issue3617] Add MS EULA to the list of third-party licenses in the Windows installer

2008-08-20 Thread Thomas Heller
Changes by Thomas Heller [EMAIL PROTECTED]: -- nosy: +theller ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3617 ___ ___ Python-bugs-list mailing list

[issue1675334] Draft implementation for PEP 364

2008-08-20 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: At this point we should probably just have PEP 364 rejected since 2to3 handles the renamings so well. -- assignee: brett.cannon - barry ___ Python tracker [EMAIL PROTECTED]

[issue3602] Move test.test_suport.catch_warning() to the 'warnings' module

2008-08-20 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: Just some quick notes on this. The decorator should become: def catchwarning(*, record=False, using=warnings) Name change is to follow the naming convention in 'warnings' (even though I prefer underscores). The 'using' argument is what module

[issue3602] Move test.test_suport.catch_warning() to the 'warnings' module

2008-08-20 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: I don't think the using argument should live in warnings; it's too test specific. I recommend we still keep a catch_warning in test_support (or even just test_warnings since this seems to be the only use-case). -- nosy:

[issue3608] memoryview constructor has no deallocator

2008-08-20 Thread Roger Upole
Roger Upole [EMAIL PROTECTED] added the comment: As background, what I need is an equivalent of PyBuffer_New(size), which creates an object that manages its own buffer memory, and is not based on another object at all. ___ Python tracker [EMAIL PROTECTED]

[issue3608] memoryview constructor has no deallocator

2008-08-20 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: As background, what I need is an equivalent of PyBuffer_New(size), which creates an object that manages its own buffer memory, and is not based on another object at all. Well, you can create either a bytes or bytearray object with an

[issue3001] RLock's are SLOW

2008-08-20 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: I doubt subclassability of RLock matters but who knows, people do code things. Regardless, using a C version wrapped in a simple python container class that calls the underlying C implementation's methods should be sufficient to allow

[issue3612] Add some basic mssing types in ctypes.wintypes

2008-08-20 Thread Thomas Heller
Thomas Heller [EMAIL PROTECTED] added the comment: I think this is too fancy. I would prefer to spell the definitions out like this: LPDWORD = PDWORD = POINTER(DWORD) LPCSTR = LPSTR = c_wchar_p We could avoid the giant __all__ list when we 'import ctypes as _ctypes' and write (for

[issue1674032] Make threading.Event().wait(timeout=3) return isSet

2008-08-20 Thread Adam Milner
Adam Milner [EMAIL PROTECTED] added the comment: I would like to add my support for this change. As David described, it is often useful to know why the x.wait() has returned, not just that it has. -- nosy: +carmiac ___ Python tracker [EMAIL

[issue3608] memoryview constructor has no deallocator

2008-08-20 Thread Roger Upole
Roger Upole [EMAIL PROTECTED] added the comment: Aha, thanks. I'll go that route for now. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3608 ___ ___

[issue3001] RLock's are SLOW

2008-08-20 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Gregory, would you have an advice on #3618? -- versions: -Python 2.6, Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3001 ___

[issue3611] invalid exception context

2008-08-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: The problem comes when PyErr_SetObject triggers garbage collection which runs python code (finalizers...). I could reproduce the crash several times, and each time garbage collection was triggered by the normalization of the exception

[issue3611] invalid exception context

2008-08-20 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: The problem comes when PyErr_SetObject triggers garbage collection which runs python code (finalizers...). Mmmh, normally this shouldn't change the value of tstate-exc_value once that Python code returns. That's what exception stacking is

[issue3612] Add some basic mssing types in ctypes.wintypes

2008-08-20 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: We could avoid the giant __all__ list when we 'import ctypes as _ctypes' How about the attached patch avoid_giant_all.patch? Added file: http://bugs.python.org/file11178/avoid_giant_all.patch ___ Python

[issue3612] Add some basic mssing types in ctypes.wintypes

2008-08-20 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: And avoid_giant_all_and_add_LPs.patch adds bunch of LP(C)s. I'm not sure all LP types are needed. (Especially handle types) Added file: http://bugs.python.org/file11179/avoid_giant_all_and_add_LPs.patch

[issue504152] rfc822 long header continuation broken

2008-08-20 Thread Kenneth Arnold
Kenneth Arnold [EMAIL PROTECTED] added the comment: This issue still seems to be present in Python 2.5's email module. feedparser.py line 444-445 says: # XXX reconsider the joining of folded lines lhdr = EMPTYSTRING.join(lastvalue)[:-1].rstrip('\r\n') I think that should be something like:

[issue3611] invalid exception context

2008-08-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Having a snippet deterministically reproducing the problem would really help in any case. Here you are. Don't ask how I found this. The attached script, when run, prints (KeyError(), ValueError()) (KeyError(), None) The current

[issue3611] invalid exception context

2008-08-20 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: It looks that the problem is that PyErr_SetObject() is not re-entrant. The crash occurs when PyErr_SetObject() is called (indirectly) by PyErr_SetObject(): tstate-exc_value value is changed (set to NULL). As noticed by amaury.forgeotdarc, the

[issue3614] typo in xmlrpc.client

2008-08-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Corrected as r65920. Thanks for the report! -- nosy: +amaury.forgeotdarc resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3614

[issue3602] Move test.test_suport.catch_warning() to the 'warnings' module

2008-08-20 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: On Wed, Aug 20, 2008 at 10:29 AM, Benjamin Peterson [EMAIL PROTECTED] wrote: Benjamin Peterson [EMAIL PROTECTED] added the comment: I don't think the using argument should live in warnings; it's too test specific. I recommend we still keep a

[issue3602] Move test.test_suport.catch_warning() to the 'warnings' module

2008-08-20 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: On Wed, Aug 20, 2008 at 4:51 PM, Brett Cannon [EMAIL PROTECTED] wrote: Brett Cannon [EMAIL PROTECTED] added the comment: On Wed, Aug 20, 2008 at 10:29 AM, Benjamin Peterson [EMAIL PROTECTED] wrote: Benjamin Peterson [EMAIL PROTECTED]

[issue3611] invalid exception context

2008-08-20 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: Great job amaury! So in ceval, here is the block responsible to clear the execution informations: Index: Python/ceval.c === --- Python/ceval.c (révision 65915) +++

[issue3602] Move test.test_suport.catch_warning() to the 'warnings' module

2008-08-20 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: On Wed, Aug 20, 2008 at 2:53 PM, Benjamin Peterson [EMAIL PROTECTED] wrote: Benjamin Peterson [EMAIL PROTECTED] added the comment: On Wed, Aug 20, 2008 at 4:51 PM, Brett Cannon [EMAIL PROTECTED] wrote: Brett Cannon [EMAIL PROTECTED] added

[issue3602] Move test.test_suport.catch_warning() to the 'warnings' module

2008-08-20 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: On Wed, Aug 20, 2008 at 5:03 PM, Brett Cannon [EMAIL PROTECTED] wrote: Well, the bulk of the code needs to live in 'warnings' for it to exist if the 'test' package is missing. So any differences need to come from the test.support

[issue3611] invalid exception context

2008-08-20 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- priority: - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3611 ___ ___

[issue3618] possible deadlock in IO library (Lib/io.py)

2008-08-20 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- priority: high - deferred blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3618 ___ ___

[issue3622] Slight documentation quirk for random.random

2008-08-20 Thread Allan Crooks
New submission from Allan Crooks [EMAIL PROTECTED]: The documentation for random.random function shows this: random() - x in the interval [0, 1). That should either be [0, 1] or (0, 1). -- assignee: georg.brandl components: Documentation messages: 71582 nosy: amc1, georg.brandl

[issue3602] Move test.test_suport.catch_warning() to the 'warnings' module

2008-08-20 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: On Wed, Aug 20, 2008 at 3:05 PM, Benjamin Peterson [EMAIL PROTECTED] wrote: Benjamin Peterson [EMAIL PROTECTED] added the comment: Alternatively, you could just have another copy of catch_warning in test_warnings with the extra argument.

[issue3622] Slight documentation quirk for random.random

2008-08-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: [0, 1) denotes an interval, not a python object; 0 is included, 1 is excluded. And it follows (one of) the standard syntax to express intervals: http://en.wikipedia.org/wiki/Interval_notation -- nosy: +amaury.forgeotdarc

[issue3602] Move test.test_suport.catch_warning() to the 'warnings' module

2008-08-20 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: All right. You win! :) ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3602 ___ ___ Python-bugs-list

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2008-08-20 Thread Heikki Toivonen
Heikki Toivonen [EMAIL PROTECTED] added the comment: I would think most people/applications want to know to which host they are talking to. The reason I am advocating adding a default check to the stdlib is because this is IMO important for security, and it is easy to get it wrong (I don't think

[issue3611] invalid exception context

2008-08-20 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Unfortunately, removing those lines causes a RuntimeError about exceeding the recursion limit for about 1/3 of the tests. -- nosy: +benjamin.peterson ___ Python tracker [EMAIL PROTECTED]

[issue3623] _json: fix raise_errmsg(), py_encode_basestring_ascii() and linecol()

2008-08-20 Thread STINNER Victor
New submission from STINNER Victor [EMAIL PROTECTED]: _json module of python 3.0 has some bugs. (a) [_json.c] raise_errmsg() calls json.decoder.errmsg() from Python module, but this function may fails. If it fails, error should be be set to NULL. Example: import _json

[issue3611] invalid exception context

2008-08-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Can you try with the following patch, throwflag is specific to a generator being deleted. Index: Python/ceval.c === --- Python/ceval.c (revision 65919) +++

[issue3623] _json: fix raise_errmsg(), py_encode_basestring_ascii() and linecol()

2008-08-20 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- assignee: - bob.ippolito nosy: +bob.ippolito ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3623 ___

[issue3624] Null byte \0 not listed as a possible escape sequence

2008-08-20 Thread Matt Aasted
New submission from Matt Aasted [EMAIL PROTECTED]: In current, future and past documentation, the valid escape sequence \0 (equivalent to \x00) is missing from the list of possible escape sequences in the documentation. As far as I can tell, it is not a case covered by any of the other elements

[issue3611] invalid exception context

2008-08-20 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: And if it doesn't work, try the following instead: if (why == WHY_EXCEPTION) { PyObject *tmp1, *tmp2, *tmp3; tmp1 = tstate-exc_type; tmp2 = tstate-exc_value; tmp3 = tstate-exc_traceback; tstate-exc_type

[issue3611] invalid exception context

2008-08-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: This last proposal does not correct the behaviour of lostcontext.py. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3611 ___

[issue3611] invalid exception context

2008-08-20 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Here's Amaury's patch and a unittest based on lostcontext.py. -- keywords: +patch Added file: http://bugs.python.org/file11182/3611.patch ___ Python tracker [EMAIL PROTECTED]

[issue3611] invalid exception context

2008-08-20 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- resolution: - accepted ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3611 ___ ___ Python-bugs-list

[issue3611] invalid exception context

2008-08-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Short patch review: __context__ tests are mostly found in test_raise.py (class TestContext) test_exceptions.py seems to only deal with the exception object. ___ Python tracker [EMAIL PROTECTED]

[issue3611] invalid exception context

2008-08-20 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Patch was applied in r65921. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3611 ___ ___ Python-bugs-list

[issue3611] invalid exception context

2008-08-20 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Ok. I'll move the test after the betas. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3611 ___ ___

[issue3611] invalid exception context

2008-08-20 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3611 ___ ___ Python-bugs-list

[issue3623] _json: fix raise_errmsg(), py_encode_basestring_ascii() and linecol()

2008-08-20 Thread Bob Ippolito
Bob Ippolito [EMAIL PROTECTED] added the comment: That patch looks ok to me, but I'm not at all familiar with the changes in python 3.0 yet. Is this something that needs to be backported to 2.6? ___ Python tracker [EMAIL PROTECTED]

[issue3623] _json: fix raise_errmsg(), py_encode_basestring_ascii() and linecol()

2008-08-20 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Christian, I believe, did the original 3.0 porting, so he can probably shed some light on this. -- nosy: +benjamin.peterson, christian.heimes ___ Python tracker [EMAIL PROTECTED]

[issue3603] trivial typo in Include/pymath.h

2008-08-20 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Don't worry. It's taken care of in all the active lines of development. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3603 ___

[issue3612] Add some basic mssing types in ctypes.wintypes

2008-08-20 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: Module will be deleted at the end of file anyway (delete _ctypes), maybe we could just do import ctypes and delete ctypes. Added file: http://bugs.python.org/file11183/avoid_giant_all_v2.patch ___ Python

[issue3373] sys recursion limit a lot shorter on trunk?

2008-08-20 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Guido, can you comment? -- assignee: - gvanrossum nosy: +gvanrossum priority: high - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3373

[issue3612] Add some missing basic types in ctypes.wintypes

2008-08-20 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto [EMAIL PROTECTED]: -- title: Add some basic mssing types in ctypes.wintypes - Add some missing basic types in ctypes.wintypes ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3612

  1   2   >