[issue2636] Regexp 2.6 (modifications to current re 2.2.2)

2008-06-18 Thread Mark Summerfield
Mark Summerfield [EMAIL PROTECTED] added the comment: [snip] 13) Implement a grouptuples(...) method as per Mark Summerfield's suggest on 2008-05-28 09:38. grouptuples would take the same filtering parameters as the other group* functions, and would return a list of 3- tuples (unless only 1

[issue2931] optparse: various problems with unicode and gettext

2008-06-18 Thread Ivan Vilata i Balaguer
Ivan Vilata i Balaguer [EMAIL PROTECTED] added the comment: The attached version of ``optparse_unicode.py`` doensn't depend on a UTF-8 locale, sorry. Added file: http://bugs.python.org/file10650/optparse_unicode2.py ___ Python tracker [EMAIL PROTECTED]

[issue3133] CGIHTTPRequestHandler does not work on windows

2008-06-18 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc [EMAIL PROTECTED]: On windows, test_httpservers fails with the error: File C:\python\py3k\Lib\http\server.py, line 1104, in run_cgi exec(open(scriptfile).read(), {__name__: __main__}) File string, line 3, in module File

[issue3133] CGIHTTPRequestHandler does not work on windows

2008-06-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: The attached patch uses subprocess when fork is not available. test_httpservers now passes on windows -- keywords: +patch Added file: http://bugs.python.org/file10651/httpserver.patch ___

[issue3111] multiprocessing ppc Debian/ ia64 Ubuntu compilation error

2008-06-18 Thread Jesse Noller
Jesse Noller [EMAIL PROTECTED] added the comment: I switched to a more aggressive skip as it doesn't seem /dev/shm is the culprit (at least from overnight runs). I committed it in r64375 on trunk and I am going to wait for the build bots to run on trunk before merging.

[issue2571] cmd.py always uses raw_input, even when another stdin is specified

2008-06-18 Thread Raghuram Devarakonda
Raghuram Devarakonda [EMAIL PROTECTED] added the comment: Richard, I see the following very clearly mentioned in the doc: If you want a given stdin to be used, make sure to set the instance’s use_rawinput attribute to False, otherwise stdin will be ignored. Even though this seems like

[issue3125] test_multiprocessing causes test_ctypes to fail

2008-06-18 Thread roudkerk
roudkerk [EMAIL PROTECTED] added the comment: This patch to sharedctypes should fix the problem by adding a __reduce_ex__() method to a shared ctype object instead of using copy_reg. -- keywords: +patch Added file: http://bugs.python.org/file10652/sharedctypes.py.patch

[issue3004] Bug in slice.indices()

2008-06-18 Thread Arnaud Bergeron
Arnaud Bergeron [EMAIL PROTECTED] added the comment: Would these do? self.assertEqual(slice(None, -10).indices(10), (0, 0, 1)) self.assertEqual(slice(None, -11, ).indices(10), (0, 0, 1)) self.assertEqual(slice(None, -12, -1).indices(10), (9, -1, -1)) If yes, test_slice.patch

[issue3125] test_multiprocessing causes test_ctypes to fail

2008-06-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: But why this is win32 specific? Is it because windows cannot fork(), so data has to be copied through the pickle mechanism? In this case let's remove the if win32 statement, and always execute the body. -- nosy:

[issue3125] test_multiprocessing causes test_ctypes to fail

2008-06-18 Thread roudkerk
roudkerk [EMAIL PROTECTED] added the comment: But why this is win32 specific? Is it because windows cannot fork(), so data has to be copied through the pickle mechanism? In this case let's remove the if win32 statement, and always execute the body. Yes, on Windows pickling is needed to

[issue3125] test_multiprocessing causes test_ctypes to fail

2008-06-18 Thread Thomas Heller
Thomas Heller [EMAIL PROTECTED] added the comment: roudkerk schrieb: roudkerk [EMAIL PROTECTED] added the comment: This patch to sharedctypes should fix the problem by adding a __reduce_ex__() method to a shared ctype object instead of using copy_reg. I can confirm that the patch fixes the

[issue3112] implement PEP 3134 exception reporting

2008-06-18 Thread Antoine Pitrou
Changes by Antoine Pitrou [EMAIL PROTECTED]: -- nosy: +gvanrossum ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3112 ___ ___ Python-bugs-list mailing

[issue3112] implement PEP 3134 exception reporting

2008-06-18 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Does anyone know why there is the following test in pythonrun.c: http://hg.pitrou.net/public/py3k/py3k/file/c143699d8dee/Python/pythonrun.c#l1346 Can PyErr_Display be called with something else than a PyException instance?

[issue3125] test_multiprocessing causes test_ctypes to fail

2008-06-18 Thread Jesse Noller
Jesse Noller [EMAIL PROTECTED] added the comment: Thomas' patch applied and runs clean for me - does anyone have a problem with me submitting it? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3125 ___

[issue2898] Add memory footprint query

2008-06-18 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Three questions on the sizeof.patch: 1) In the first line of function dict_sizeof() + res = sizeof(PyDictObject) + sizeof(mp-ma_table); is the sizeof(mp-ma_table) counted twice? 2) Since functions list_sizeof and dict_sizeof

[issue3134] shutil references undefined WindowsError symbol

2008-06-18 Thread David Vitek
New submission from David Vitek [EMAIL PROTECTED]: If copystat fails in copytree on a non-windows box, you will get: NameError: global name 'WindowsError' is not defined: ... except WindowsError: -- components: Library (Lib) files: p.patch keywords: patch messages: 68373 nosy:

[issue3134] shutil references undefined WindowsError symbol

2008-06-18 Thread Raghuram Devarakonda
Raghuram Devarakonda [EMAIL PROTECTED] added the comment: This is same as #2549 which also reported the same problem. In fact, the problem was originally found in #1545. As I said there, the proposed patch has a very small problem. Can you please take a look? -- nosy: +draghuram

[issue3112] implement PEP 3134 exception reporting

2008-06-18 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Two other questions: 1) Should I expose a PyErr_DisplaySingle API to display an exception without chaining? 2) Should PyErr_Display return an integer value (0: success, -1: failure) rather than void as it currently does?

[issue3125] test_multiprocessing causes test_ctypes to fail

2008-06-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: roudkerk wrote: Yes, on Windows pickling is needed to pass data to a child process. In other contexts these objects are NOT picklable because you would have to worry about garbage collection of the original object before the copy is

[issue2898] Add memory footprint query

2008-06-18 Thread Robert Schuppenies
Robert Schuppenies [EMAIL PROTECTED] added the comment: Jean Brouwers wrote: 1) In the first line of function dict_sizeof() + res = sizeof(PyDictObject) + sizeof(mp-ma_table); is the sizeof(mp-ma_table) counted twice? Yes, you are right. I'll fix this. 2) Since functions

[issue3135] inspect.getcallargs()

2008-06-18 Thread George Sakkis
New submission from George Sakkis [EMAIL PROTECTED]: I'd like to propose a new function for inclusion to the inspect module -- getcallargs(func, *args, **kwds) -- that returns a dict which maps the formal arguments of a function (or other callable) to the values passed as args and kwds, just as

[issue3133] CGIHTTPRequestHandler does not work on windows

2008-06-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Committed change r64389. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3133 ___

[issue3112] implement PEP 3134 exception reporting

2008-06-18 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Here is a draft patch for those who want to take a look. (it works but the final cleanup is waiting for the API decisions mentioned above) -- keywords: +patch Added file: http://bugs.python.org/file10656/exc_reporting.patch

[issue1489] test_socket_ssl hanhs on Windows (deadlock)

2008-06-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Kind of fixed: test_socket_ssl was removed in both trunk and py3k branches. tests are now in test_ssl.py -- nosy: +amaury.forgeotdarc resolution: - fixed status: open - closed ___ Python

[issue2885] Create the urllib package

2008-06-18 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Seems this was done in r64385. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2885 ___

[issue2775] Implement PEP 3108

2008-06-18 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- dependencies: -Create the urllib package ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2775 ___ ___

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-18 Thread Barry A. Warsaw
Barry A. Warsaw [EMAIL PROTECTED] added the comment: I'm going to knock this one down to critical since it's working for me now on OS X and buildbot looks green. We can address any additional patches after the beta release. -- priority: release blocker - critical

[issue3089] All 3.0 buildbots are red

2008-06-18 Thread Barry A. Warsaw
Barry A. Warsaw [EMAIL PROTECTED] added the comment: There are green buildbots now so I'm releasing beta 1. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3089

[issue3089] All 3.0 buildbots are red

2008-06-18 Thread Barry A. Warsaw
Barry A. Warsaw [EMAIL PROTECTED] added the comment: There are green buildbots now so I'm releasing beta 1. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3089 ___

[issue2885] Create the urllib package

2008-06-18 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: And I don't know if the proper additions to 2to3 and a warning in urllib.urlopen() in 2.6 has been done (is urllib.urlopen() so different from urllib2.urlopen() that the warning should be from any usage, or only if incompatible arguments are

[issue3136] [PATCH] logging.config.fileConfig() compulsivly disable all existing loggers

2008-06-18 Thread Leandro Lucarella
New submission from Leandro Lucarella [EMAIL PROTECTED]: When using logging.config.fileConfig() in a large project, with several nested loggers, is very counterintuitive and annoying that this function disable all non-configured-via-fileConfig() loggers, because it forces the config file to

[issue3136] [PATCH] logging.config.fileConfig() compulsivly disable all existing loggers

2008-06-18 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- assignee: - vsajip nosy: +vsajip ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3136 ___ ___

[issue3009] 3.0a5 tarballs contain the code twice

2008-06-18 Thread Barry A. Warsaw
Barry A. Warsaw [EMAIL PROTECTED] added the comment: This must have been a packaging snafu for 3.0a5. The candidate 3.0b1 tarball looks fine. -- resolution: - invalid status: open - closed ___ Python tracker [EMAIL PROTECTED]

[issue2571] cmd.py always uses raw_input, even when another stdin is specified

2008-06-18 Thread Richard King
Richard King [EMAIL PROTECTED] added the comment: There were some other things I wanted too so I just made my own cmd.py. -Rick Raghuram Devarakonda wrote: Raghuram Devarakonda [EMAIL PROTECTED] added the comment: Richard, I see the following very clearly mentioned in the doc: If you want