[issue1535] Rename __builtin__ to builtins

2007-12-02 Thread Georg Brandl
Georg Brandl added the comment: Committed r59268. -- status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1535 __ ___ Python-bugs-list mailing list

[issue1537] Change GeneratorExit's base class from Exception to BaseException

2007-12-02 Thread Christian Heimes
Christian Heimes added the comment: Can you also add a comment to ./Doc/reference/expressions.rst and update Misc/NEWS please? The rest of the patch is looking good. -- assignee: - tiran keywords: +patch nosy: +tiran priority: - normal __ Tracker

[issue1520] 'without make' documentation build anomaly

2007-12-02 Thread Tim Golden
Tim Golden added the comment: Looks like it's the backslash as Windows path separator confusing the sphinx.util.relative_uri function. I'll try to put a patch together, although I'm not sure if relative_uri should use os.sep or whether the paths should be canonicalised before getting there. I'll

[issue1537] Change GeneratorExit's base class from Exception to BaseException

2007-12-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure this change is necessary. Why don't you catch StandardError instead of Exception? StandardError catches all Exception subtypes except GeneratorExit, StopIteration and the various Warnings. -- nosy: +pitrou

[issue1537] Change GeneratorExit's base class from Exception to BaseException

2007-12-02 Thread Christian Heimes
Christian Heimes added the comment: You make a good point. Can you take it to the mailing list, please? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1537 __ ___

[issue1487] PEP 366 implementation

2007-12-02 Thread Nick Coghlan
Changes by Nick Coghlan: Removed file: http://bugs.python.org/file8794/pep_366_v1.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1487 __ ___ Python-bugs-list mailing list

[issue1487] PEP 366 implementation

2007-12-02 Thread Nick Coghlan
Nick Coghlan added the comment: Posted v2 of the patch, which fixes the problem Guido noted, and improved the tests to make sure __package__ is being set correctly. There's also now an explicit test for using -m on a module inside a package (which proved harder to write than I expected - it

[issue1539] test_collections: failing refleak test

2007-12-02 Thread Christian Heimes
New submission from Christian Heimes: The refleak tests of test_collections are broken. I fear that my changes to regrtest.py have cause the problem but I don't understand why it's broken. Can you have a look please? -- assignee: gvanrossum components: Tests keywords: py3k messages:

[issue1540] Refleak tests: test_doctest and test_gc are failing

2007-12-02 Thread Christian Heimes
New submission from Christian Heimes: I've seen the problem on Windows only. test_doctest fails and the problem also causes test_gc to fail when it is run after test_doctest. W/o a prior run of test_doctest test_gc doesn't fail. File c:\dev\python\py3k\lib\test\test_doctest.py, line 1570, in

[issue1520] 'without make' documentation build anomaly

2007-12-02 Thread Tim Golden
Tim Golden added the comment: Patch against sphinx r59269. Split on / and local os.sep. Causes problems with sphinx-web under native Win32. Added file: http://bugs.python.org/file8853/sphinx-r59269.patch __ Tracker [EMAIL PROTECTED]

[issue1520] 'without make' documentation build anomaly

2007-12-02 Thread Tim Golden
Tim Golden added the comment: I'm a little flummoxed. Patching relative_uri in the sphinx/util/__init__.py to re.split on (/ + os.sep) sorts out the static generation. But it seems to introduce a couple of problems with the web-server version of the docs. One is that links end up without a

[issue1520] 'without make' documentation build anomaly

2007-12-02 Thread Joseph Armbruster
Joseph Armbruster added the comment: Tim, Post up a patch of what you have up to now and I will look at it today. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1520 __ ___

[issue1541] Bad OOB data management when using asyncore with select.poll()

2007-12-02 Thread billiejoex
New submission from billiejoex: asyncore's module readwrite() function, used when invoking asyncore.loop(use_poll=1), erroneously calls handle_read_event() when receiving OOB (Out Of Band) data. handle_expt_event() should be called instead. The patch in attachment does that. In addition I

[issue1542] Ship 32 and 64bit libs with MSI installer

2007-12-02 Thread Christian Heimes
New submission from Christian Heimes: Hello Martin! How do you like the idea to ship the 32bit and 64bit libs with the MSI installer? The 64bit libs could be stored in libs64 while the 32bit libs stay in libs. I'm working on a task for the GHOP to add cross compiling support to msvc9compiler.

[issue1543] MSI installer needs to be updated to install x86 and x64 versions of Python on Vista 64 bit

2007-12-02 Thread Isaul Vargas
New submission from Isaul Vargas: Problem: I'd like to run Python 32 bit (for compatibility with extensions) and Python 64 bit on Vista (for speed and 64 bit apps) on one machine. However Vista has an 'improved' installer for MSI apps, where if I install Python 64 bit first, I can't install

[issue1537] Change GeneratorExit's base class from Exception to BaseException

2007-12-02 Thread Chad Austin
Chad Austin added the comment: The mailing list discussion continues... in the meantime, I will update the patch with your suggestions. Can you describe to me what should change in Doc/reference/ expressions.rst? It makes sense to remove the section in the example that says you should never

[issue1543] MSI installer needs to be updated to install x86 and x64 versions of Python on Vista 64 bit

2007-12-02 Thread Georg Brandl
Changes by Georg Brandl: -- assignee: - loewis nosy: +loewis __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1543 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1537] Change GeneratorExit's base class from Exception to BaseException

2007-12-02 Thread Chad Austin
Chad Austin added the comment: New patch... Added file: http://bugs.python.org/file8855/GeneratorExit-BaseException-2.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1537 __ GeneratorExit-BaseException-2.patch

[issue1542] Ship 32 and 64bit libs with MSI installer

2007-12-02 Thread Martin v. Löwis
Martin v. Löwis added the comment: I don't mind adding the libs, although I think inclusion of the libs should be reconsidered, anyway. Why do we ship all of them, when you only ever need pythonxy.lib? If you are creating separate directories, please don't indicate the 64-bit ones as libs64 or

[issue1487] PEP 366 implementation

2007-12-02 Thread Guido van Rossum
Guido van Rossum added the comment: Great, now check it in! On Dec 2, 2007 6:01 AM, Nick Coghlan [EMAIL PROTECTED] wrote: Nick Coghlan added the comment: Posted v2 of the patch, which fixes the problem Guido noted, and improved the tests to make sure __package__ is being set correctly.

[issue1543] MSI installer needs to be updated to install x86 and x64 versions of Python on Vista 64 bit

2007-12-02 Thread Martin v. Löwis
Martin v. Löwis added the comment: It's not so clear that this is a bug. If you install both versions simultaneously, they might stomp on each other's registry settings, at least for the extensions. So this is rather a feature request. Notice that the behaviour is not new to Vista. Ever since

[issue1520] 'without make' documentation build anomaly

2007-12-02 Thread Tim Golden
Tim Golden added the comment: OK, hacking away a bit further, I think I've found a solution, but I'll need to tidy it up a bit. In essence, the problem is that the filename is trying to be two things: the pointer for the local filesystem, and the uri for the web server. On *nix, this will pretty

[issue1245] Document PySys_* API functions

2007-12-02 Thread Georg Brandl
Georg Brandl added the comment: Fixed as of r59281, thanks to GHOP student Charlie Shepherd. -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1245 __

[issue1719933] No docs for PyEval_EvalCode and related functions

2007-12-02 Thread Georg Brandl
Georg Brandl added the comment: Fixed as of r59262. -- nosy: +georg.brandl resolution: - fixed status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1719933 _

[issue1520] 'without make' documentation build anomaly

2007-12-02 Thread Georg Brandl
Georg Brandl added the comment: Really great that you're doing this! Many thanks! (Yes, I must admit that I was sloppy there...) __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1520 __

[issue1520] 'without make' documentation build anomaly

2007-12-02 Thread Joseph Armbruster
Joseph Armbruster added the comment: Tim, Appears you are on your way to a fix. If you need it tested on an alternate windows machine, post up and i'll run through it. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1520

[issue1283] PyBytes (buffer) .extend method needs to accept any iterable of ints

2007-12-02 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Here yet another revision of the patch. This one makes bytearray.extend() try to determine the length of its argument a bit more aggressively -- i.e., also uses PyObject_Length(). Added file: http://bugs.python.org/file8856/byte_extend-4.patch

[issue1283] PyBytes (buffer) .extend method needs to accept any iterable of ints

2007-12-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: There is still another possible leak if the PyMem_Realloc return NULL (i.e., the system is out of memory), but I don't think it worth fixing. Do it. It looks easy: a Py_DECREF(it) before the return PyErr_NoMemory(). __

[issue1283] PyBytes (buffer) .extend method needs to accept any iterable of ints

2007-12-02 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Done. Is there any other issue with the patch? Added file: http://bugs.python.org/file8857/byte_extend-5.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1283 __Index:

[issue1283] PyBytes (buffer) .extend method needs to accept any iterable of ints

2007-12-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: reading 5.patch over... Any particular reason for using buf_size = 32 when the length isn't known up front? add a comment saying why (or that its just a magic guess). anyways it sounds like a fine starting value. picking anything better would require

[issue1544] IDLE installation problems and no message errors

2007-12-02 Thread Daniela
New submission from Daniela: Installed Python 2.5.1 on windows. Menu is set as it was supposed to,all the options appear, the command line works perfectly, the IDLE doesn't - I click on it in the menu and it seems it will start run and then... nothing. No window pops up, not even a flash, no

[issue1545] shutil fails when copying to NTFS in Linux

2007-12-02 Thread ianaré
New submission from ianaré: When using shutil.copy2 or copytree where the source is on a filesystem that has octal permissions (ie ext3) and the destination is on an NTFS partition mounted rw, the operation fails with OSError: [Errno 1] Operation not permitted I am attaching a version of