[issue4523] logging module __init__ uses has_key

2008-12-08 Thread Raymond Hettinger
Changes by Raymond Hettinger [EMAIL PROTECTED]: -- assignee: - georg.brandl nosy: +georg.brandl ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4523 ___

[issue4590] 2to3 strips trailing L for long iterals in two fixers

2008-12-08 Thread Armin Ronacher
New submission from Armin Ronacher [EMAIL PROTECTED]: I noticed that fix_long and fix_numliterals both strip trailing Ls from numbers. That's redudant, one of them should be enough. I attached a patch that removes the literal changing from the fix_long fixer. Because I'm not sure if that may

[issue1717] Get rid of more refercenes to __cmp__

2008-12-08 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: Update patch to include fix for unittest.py and test_unittest.py. Added file: http://bugs.python.org/file12278/remove_cmp5.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1717

[issue3563] fix_idioms.py generates bad code

2008-12-08 Thread Armin Ronacher
Armin Ronacher [EMAIL PROTECTED] added the comment: I would drop the prefix in that case or attach it to the sorted() call. So from this code: x = foo() # perform sorting x.sort() to # perform sorting x = sorted(foo()) Makes more sense than sticking it after the sorted()

[issue4589] 'with' loses -bool exceptions

2008-12-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Good catch. Here is a patch, with test. -- keywords: +needs review, patch nosy: +amaury.forgeotdarc priority: - normal stage: needs patch - patch review Added file: http://bugs.python.org/file12280/with_badbool.patch

[issue4577] distutils: -3 warnings (apply)

2008-12-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Patch is good. -- assignee: - amaury.forgeotdarc nosy: +amaury.forgeotdarc stage: - commit review ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4577

[issue4552] Doc/tools/sphinxext not included in the 2.6.1 tarball

2008-12-08 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: I don't want to *include* sphinx, jinja and docutils but *document* which versions of sphinx, jinja and docutils are required to build the docs. ___ Python tracker [EMAIL PROTECTED]

[issue2734] 2to3 converts long(itude) argument to int

2008-12-08 Thread Armin Ronacher
Armin Ronacher [EMAIL PROTECTED] added the comment: This could probably be fixed by adding a `is_builtin` helper function to the fixer_util module that checks if the name is not overriden in the module. I would use something like a weak dictionary for the `find_binding` function because that

[issue4586] Extending Embedded Python documention uses removed Py_InitModule function

2008-12-08 Thread blake madden
blake madden [EMAIL PROTECTED] added the comment: I am afraid that the webpage that I mentioned still uses Py_InitModule, I just checked. How do I get embedding to work? Thanks. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4586

[issue2356] fixer for sys.exitfunc - atexit

2008-12-08 Thread Armin Ronacher
Armin Ronacher [EMAIL PROTECTED] added the comment: Since yesterday there is a handy little helper that adds imports to files which is already used for the reduce() / intern() fixers. This makes this fix a lot easier. I attached a version that does that. However the import adder is not yet as

[issue4586] Extending Embedded Python documention uses removed Py_InitModule function

2008-12-08 Thread blake madden
blake madden [EMAIL PROTECTED] added the comment: I took a look at the rst file in your comments and I tried that example (which uses PyModule_Create), but I am sorry to say that it doesn't work. It says no module named emb. Are we sure that PyModule_Create is all that needs to be called?

[issue4591] uid/gid problem in os.chown

2008-12-08 Thread Sjoerd Mullender
New submission from Sjoerd Mullender [EMAIL PROTECTED]: On Fedora 8 and 10 using Python 2.5.1 and 2.5.2 (64 bit): $ grep nfsnobody /etc/passwd nfsnobody:x:4294967294:4294967294:Anonymous NFS User:/var/lib/nfs:/sbin/nologin So the UID of nfsnobody is 4294967294 (-2 if viewed as signed 32-bit

[issue4555] Smelly exports

2008-12-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment: For Python 2.x you cannot change the main function name of C extensions, since this is used by the Python import mechanism. -- nosy: +lemburg ___ Python tracker [EMAIL PROTECTED]

[issue4579] .read() and .readline() differ in failing

2008-12-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Python 2 is very platform-dependent: fdopen simply call the C function fdopen() and returns a FILE*. Since the sample code is a mistake (read on a file open in write mode), how and when the error shows up really depends on the platform's

[issue4591] uid/gid problem in os.chown

2008-12-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: This was already corrected by r61540, and will be released with 2.5.3 and 2.6.2. BUT -- fchown() was not modified. patch is similar to r61540, but I don't know how to test: Index: posixmodule.c

[issue1167] gdbm/ndbm 1.8.1+ needs libgdbm_compat.so

2008-12-08 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: Fixed in r67614. (issue4483) -- nosy: +ocean-city resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1167

[issue4592] PyModule_Create doesn't work (or example is missing something)

2008-12-08 Thread blake madden
New submission from blake madden [EMAIL PROTECTED]: Following an example of how to extend and embed that I found in patch file r67655 (the website is out of date [issue4586]), PyModule_Create appears to not work (or example is not complete). When I run r67655 (attached also) I get an error

[issue2899] Fixers find, rfind, etc in 'string' module

2008-12-08 Thread Armin Ronacher
Changes by Armin Ronacher [EMAIL PROTECTED]: -- nosy: +aronacher ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2899 ___ ___ Python-bugs-list mailing

[issue2454] sha and md5 fixer

2008-12-08 Thread Armin Ronacher
Changes by Armin Ronacher [EMAIL PROTECTED]: -- nosy: +aronacher ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2454 ___ ___ Python-bugs-list mailing

[issue2805] 2to3 doesn't correct divisions

2008-12-08 Thread Armin Ronacher
Changes by Armin Ronacher [EMAIL PROTECTED]: -- nosy: +aronacher ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2805 ___ ___ Python-bugs-list mailing

[issue4585] Build failure on OS X 10.5.5: make: *** [sharedmods] Error 1

2008-12-08 Thread nelis
nelis [EMAIL PROTECTED] added the comment: You asked how my locale looked, I've got: 10-92-86-47:Python-3.0 nelis$ locale LANG= LC_COLLATE=C LC_CTYPE=UTF-8 LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LC_ALL= So I the LC_CTYPE is indeed UTF-8. I can also confirm that I can make if I

[issue4336] Fix performance issues in xmlrpclib

2008-12-08 Thread Kristján Valur Jónsson
Kristján Valur Jónsson [EMAIL PROTECTED] added the comment: Please consider applying this patch. It moves the logic handling of non-string message_body inside of endheaders(), allowind clients of HTTPConnection to substitute endheader();send(data) with endheaders(data) without fear. Added

[issue4336] Fix performance issues in xmlrpclib

2008-12-08 Thread Kristján Valur Jónsson
Kristján Valur Jónsson [EMAIL PROTECTED] added the comment: In light of my previous patch, here is a an improvement to urllib.py and logging that uses endheaders(body) Added file: http://bugs.python.org/file12283/htmllibclients.patch ___ Python tracker

[issue1717] Get rid of more refercenes to __cmp__

2008-12-08 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: I've created a new branch to work on the issue: svn+ssh://[EMAIL PROTECTED]/python/branches/py3k-issue1717. It's easier to work on a branch than exchanging monster patches. ___ Python tracker [EMAIL

[issue4593] Documentation for multiprocessing - Pool.apply()

2008-12-08 Thread David M. Beazley
New submission from David M. Beazley [EMAIL PROTECTED]: The documentation for the apply() and apply_async() methods of a Pool object might emphasize that these operations execute func(*args,**kwargs) in only one of the pool workers and that func() is not being executed in parallel on all

[issue4593] Documentation for multiprocessing - Pool.apply()

2008-12-08 Thread Christian Heimes
Changes by Christian Heimes [EMAIL PROTECTED]: -- assignee: georg.brandl - jnoller keywords: +easy nosy: +jnoller priority: - normal stage: - needs patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4593

[issue1717] Get rid of more refercenes to __cmp__

2008-12-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment: Please put the PyUnicode_Compare() API back in there. Removing __cmp__ really doesn't have anything to do with removing often used helper functions for comparing certain object types and only cripples the C API in a needless way. Thanks.

[issue4587] Need to rework the dbm lib/include selection process

2008-12-08 Thread Roumen Petrov
Roumen Petrov [EMAIL PROTECTED] added the comment: About my environment : - one is linux : a) gdbm library, with header gdbm.h, without *ndbm.h b) Berkeley DB many versions but the last is 4.4 I think - other is cross and native(msys) mingw32 environment only Berkeley DB 4.7 I will

[issue4594] Can't compile with -O3, on ARM, with gcc 3.4.4

2008-12-08 Thread John Stracke
New submission from John Stracke [EMAIL PROTECTED]: I downloaded the source to Python 3.0 onto my Nokia N810, an ARM-based Linux machine. The native gcc is 3.4.4 (upgrading might be possible, but would certainly be a pain). I was able to build only by switching from -O3 to -O2; -O3 caused a

[issue4593] Documentation for multiprocessing - Pool.apply()

2008-12-08 Thread Jesse Noller
Jesse Noller [EMAIL PROTECTED] added the comment: Ah, I see what you're talking about David. Good catch. It wouldn't make sense to run the apply() in all of the workers, as apply() is a single function(...) call. map() however is done in parallel amongst all workers.

[issue4585] Build failure on OS X 10.5.5: make: *** [sharedmods] Error 1

2008-12-08 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: Thanks for the information, nelis! This appears to be a duplicate of issue 2173. Further analysis should go there. -- resolution: - duplicate status: open - closed ___ Python tracker [EMAIL

[issue3206] Multiprocessing Array and sharedctypes.Array error in docs/implementation

2008-12-08 Thread Jesse Noller
Changes by Jesse Noller [EMAIL PROTECTED]: -- resolution: - duplicate status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3206 ___ ___

[issue2173] Python fails silently on bad locale

2008-12-08 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: See issue 4585, which appears to be the same problem. -- nosy: +marketdickinson ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2173 ___

[issue3206] Multiprocessing Array and sharedctypes.Array error in docs/implementation

2008-12-08 Thread Jesse Noller
Jesse Noller [EMAIL PROTECTED] added the comment: Dupe, issue4449 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3206 ___ ___ Python-bugs-list mailing list

[issue2899] Fixers find, rfind, etc in 'string' module

2008-12-08 Thread David W. Lambert
David W. Lambert [EMAIL PROTECTED] added the comment: I expect the answer will be that 2to3 cannot know what sort of object string names. Bell's theorem, or some such, as I understand it, tells us that you must execute the algorithm to find out what it does, there isn't a short cut. It does

[issue2173] Python fails silently on bad locale

2008-12-08 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: I think I've traced the 'no output' problem back to the device_encoding function in Modules/posixmodule.c. The problem occurs when this function is called to try to get the encoding for stdout. On my machine, if I do: LC_CTYPE=UTF-8

[issue4592] PyModule_Create doesn't work (or example is missing something)

2008-12-08 Thread blake madden
blake madden [EMAIL PROTECTED] added the comment: It seems that a call to PyDict_SetItemString is what is missing from r67655: PyObject* m = PyModule_Create(EmbModule); PyDict_SetItemString(PyImport_GetModuleDict(), EmbModule.m_name, m); I am just guessing here though, don't know if this is

[issue4592] Example patch is missing something

2008-12-08 Thread blake madden
Changes by blake madden [EMAIL PROTECTED]: -- title: PyModule_Create doesn't work (or example is missing something) - Example patch is missing something ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4592

[issue4595] new types example is out of date

2008-12-08 Thread blake madden
New submission from blake madden [EMAIL PROTECTED]: http://docs.python.org/3.0/extending/newtypes.html This example is using Py_InitModule3, is this function removed in Python 3? -- assignee: georg.brandl components: Documentation messages: 77323 nosy: blakemadden, georg.brandl

[issue4589] 'with' loses -bool exceptions

2008-12-08 Thread Jeffrey Yasskin
Jeffrey Yasskin [EMAIL PROTECTED] added the comment: I think your patch leaks a reference to 'x'. Move the Py_DECREF(x) to before if (err 0)? And then really nitpicky: your test has 3 blank lines after it, and should have 2. Otherwise looks great. Thanks for picking this up! --

[issue2173] Python fails silently on bad locale

2008-12-08 Thread Mark Dickinson
Changes by Mark Dickinson [EMAIL PROTECTED]: -- nosy: +nelis ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2173 ___ ___ Python-bugs-list mailing list

[issue2173] Python fails silently on bad locale

2008-12-08 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: Could someone please try the attached patch and see if it solves the problem. I'm not sure whether Facundo's problem is the same issue or not. -- keywords: +patch versions: +Python 3.1 Added file:

[issue4592] Example patch is missing something

2008-12-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: In python2.6, Py_InitModule4() calls PyImport_AddModule(). Why doesn't python3.0's PyModule_Create() do the same? Index: Objects/moduleobject.c === ---

[issue4596] 2to3 does not fail as early as possible.

2008-12-08 Thread David W. Lambert
New submission from David W. Lambert [EMAIL PROTECTED]: $ #rm -f file_that_is_not_here.py $ 2to3 file_that_is_not_here.py The program spends considerable time preparing itself only to discover that it cannot open the file. -- components: 2to3 (2.x to 3.0 conversion tool) messages:

[issue4589] 'with' loses -bool exceptions

2008-12-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Running the test with -R:: indeed shows the reference leak. 2nd patch with suggested corrections. -- assignee: jyasskin - amaury.forgeotdarc Added file: http://bugs.python.org/file12285/with_badbool_2.patch

[issue2899] Fixers find, rfind, etc in 'string' module

2008-12-08 Thread Armin Ronacher
Armin Ronacher [EMAIL PROTECTED] added the comment: 2to3 could handle it, but it would be a lot of work for something unnecessary. You can use s.replace(a, b) instead of string.replace(s, a, b) since at least 2.0. ___ Python tracker [EMAIL PROTECTED]

[issue3206] Multiprocessing Array and sharedctypes.Array error in docs/implementation

2008-12-08 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc [EMAIL PROTECTED]: -- superseder: - AssertionError in Doc/includes/mp_benchmarks.py ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3206 ___

[issue2899] Fixers find, rfind, etc in 'string' module

2008-12-08 Thread David W. Lambert
David W. Lambert [EMAIL PROTECTED] added the comment: I think the point is to get a message from 2to3 about possible use of feature that is gone. Of course python3 raises an exception when trying to execute the code, but it does leave the user wondering why did 2to3 report that there are no

[issue4589] 'with' loses -bool exceptions

2008-12-08 Thread Jeffrey Yasskin
Jeffrey Yasskin [EMAIL PROTECTED] added the comment: Looks good. Thanks! I assume this should be merged into the 2.6.x and 3.0.x branches? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4589 ___

[issue4597] EvalFrameEx fails to set 'why' for some exceptions

2008-12-08 Thread Jeffrey Yasskin
New submission from Jeffrey Yasskin [EMAIL PROTECTED]: Several opcodes that can raise an exception fail to set x, err, or why afterward. This patch fixes all the examples I could find. I could only figure out how to write a test for PRINT_NEWLINE; the others are hard to trigger. --

[issue4552] Doc/tools/sphinxext not included in the 2.6.1 tarball

2008-12-08 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Well, those which make checkout checks out :) I set this up so that nobody needs to care about any additional packages or dependencies, as long as svn is installed and working. -- nosy: +georg.brandl

[issue4597] EvalFrameEx fails to set 'why' for some exceptions

2008-12-08 Thread Neal Norwitz
Neal Norwitz [EMAIL PROTECTED] added the comment: The patch looks good. These problems also apply to 2.5 I assume? You might want to ping MvL to let him know since he's about to cut that release. -- keywords: -needs review nosy: +nnorwitz ___

[issue4597] EvalFrameEx fails to set 'why' for some exceptions

2008-12-08 Thread Jeffrey Yasskin
Jeffrey Yasskin [EMAIL PROTECTED] added the comment: Submitted as r67666. I'll ping Martin. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4597

[issue4589] 'with' loses -bool exceptions

2008-12-08 Thread Kevin Watters
Changes by Kevin Watters [EMAIL PROTECTED]: -- nosy: +kevinwatters ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4589 ___ ___ Python-bugs-list mailing

[issue4593] Documentation for multiprocessing - Pool.apply()

2008-12-08 Thread David M. Beazley
David M. Beazley [EMAIL PROTECTED] added the comment: Actually, you shouldn't discount the potential usefulness of running apply() in all of the worker nodes. A lot of people coming from parallel programming know about things like global broadcasts, reductions, and so forth. For example, if

[issue4598] IDLE not opening

2008-12-08 Thread Elizabeth Chang
New submission from Elizabeth Chang [EMAIL PROTECTED]: Fresh install, IDLE does not open. Cannot find tk tcl. Reference Issue4049. Problem reported in Python 2.5 and 3.0 on Windows. -- messages: 77338 nosy: ec2929 severity: normal status: open title: IDLE not opening versions: Python

[issue4049] IDLE does not open too

2008-12-08 Thread Elizabeth Chang
Elizabeth Chang [EMAIL PROTECTED] added the comment: Issue 4598 created. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4049 ___ ___ Python-bugs-list mailing

[issue3210] subprocess.Popen does not release process handles if process cannot be started

2008-12-08 Thread Mark Mentovai
Mark Mentovai [EMAIL PROTECTED] added the comment: This is not limited to Windows. I experience this bug on Mac OS X and Linux as well. http://mail.python.org/pipermail/python-list/2008-August/505753.html Attachment 3210.py is a reduced testcase. It attempts to execute nocmd, which should

[issue4599] Strings undisplayable with repr

2008-12-08 Thread Michael Foord
New submission from Michael Foord [EMAIL PROTECTED]: In Python 3 strings with non-ascii characters are undisplayable (even with repr) in the default interactive interpreter on Windows and Mac. Shouldn't the repr use escapes as with previous versions of Python? Python 2.6 Python 2.6

[issue4587] Need to rework the dbm lib/include selection process

2008-12-08 Thread Roumen Petrov
Roumen Petrov [EMAIL PROTECTED] added the comment: I confirm my expectation: in case 'elif cand == gdbm:' the if statement for gdbm.h has to be removed. This header don't provide dbm/ndbm compatible structure/function names. If setup is without 'if find_file(gdbm.h...' statement dbm module is

[issue4600] __class__ assignment: new-style? heap? == confusing

2008-12-08 Thread Terry J. Reedy
New submission from Terry J. Reedy [EMAIL PROTECTED]: ob.__class__ = ob2 gives some confusing TypeError messages. c.__class__ = 1 Traceback (most recent call last): File stdin, line 1, in module TypeError: __class__ must be set to new-style class, not 'int' object Problem: 'new-style' is

[issue4601] permissions errors with altinstall in 3.0

2008-12-08 Thread Leger
New submission from Leger [EMAIL PROTECTED]: Under Debian/Lenny, with Python3.0.final install from the tarball, any user can't import lib-dynload, launch IDLE ... but local root can do them. When I login in root and run chmod -R o+rx /usr/lib/python3.0/*, users can use normaly python3.0.

[issue1717] Get rid of more refercenes to __cmp__

2008-12-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment: Instead of removing cmp(a, b) and replacing all uses with (ab)-(ba) I think it's better to turn cmp() into a helper that applies this operation in C rather than Python. ___ Python tracker [EMAIL

[issue4335] inspect.getsourcelines ignores last line in module

2008-12-08 Thread Alexander Belopolsky
Alexander Belopolsky [EMAIL PROTECTED] added the comment: In order to reproduce the reported problem I had to conjure the attached repro.py which is missing '\n' on the last line. I need to double check the language definition, but I feel this is not a bug because a file that ends with an

[issue4335] inspect.getsourcelines ignores last line in module

2008-12-08 Thread Alexander Belopolsky
Alexander Belopolsky [EMAIL PROTECTED] added the comment: According to my understanding of http://docs.python.org/reference/lexical_analysis.html#id1 a newline character is required at the end of the python file. ___ Python tracker [EMAIL PROTECTED]

[issue4587] Need to rework the dbm lib/include selection process

2008-12-08 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: Roumen I confirm my expectation: Roumen in case 'elif cand == gdbm:' the if statement for gdbm.h has to be Roumen removed. This header don't provide dbm/ndbm compatible Roumen structure/function names. Roumen If setup is

[issue1717] Get rid of more refercenes to __cmp__

2008-12-08 Thread Guido van Rossum
Changes by Guido van Rossum [EMAIL PROTECTED]: -- nosy: -gvanrossum ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1717 ___ ___ Python-bugs-list

[issue4587] Need to rework the dbm lib/include selection process

2008-12-08 Thread Skip Montanaro
Changes by Skip Montanaro [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file12275/setup.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4587 ___

[issue4602] 2to3 drops executable bit with --write

2008-12-08 Thread Adeodato Simó
New submission from Adeodato Simó [EMAIL PROTECTED]: Hello, after using 2to3 --write over some scripts, I found it very cumbersome having to run `chmod +x` on each of them afterwards. The attached patch is a possible way to fix this issue. It'd be great if somebody could apply it, or write a

[issue4555] Smelly exports

2008-12-08 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: I guess you *could* change the name of extensions that become builtin modules. However, I think it is not worth the trouble, especially since PEP 3121 solves the problem for good, for Python 3. I propose to simply filter out init[_a-z]+ from

[issue4601] permissions errors with altinstall in 3.0

2008-12-08 Thread Leger
Leger [EMAIL PROTECTED] added the comment: My root umask = 0027 (hardened system), so the altinstall/install script don't manage umask parameter. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4601 ___

[issue4602] 2to3 drops executable bit with --write

2008-12-08 Thread Adeodato Simó
Changes by Adeodato Simó [EMAIL PROTECTED]: -- type: - behavior ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4602 ___ ___ Python-bugs-list mailing

[issue4601] permissions errors with altinstall in 3.0

2008-12-08 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: I'm able to reproduce the bug with umask set to 0027: drwxr-x--- 2 root root 3072 déc 8 22:59 (...)/lib/python3.1/lib-dynload With umask 0077, it's: drwx-- 2 root root 3072 déc 8 22:59 (...)/lib/python3.1/lib-dynload The problem is

[issue3101] global function _add_one_to_index_C

2008-12-08 Thread Martin v. Löwis
Changes by Martin v. Löwis [EMAIL PROTECTED]: -- title: global function _add_one_to_C - global function _add_one_to_index_C ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3101 ___

[issue3101] global function _add_one_to_index_C

2008-12-08 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: I think _add_one_to_index_C and _add_one_to_index_F should be renamed. If they are meant to be called by non-core extension modules, their names should start with Py_, else with _Py_. ___ Python tracker

[issue4601] permissions errors with altinstall in 3.0

2008-12-08 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: install() method of the install_lib command (Lib/distutils/command/install_lib.py) calls self.copy_tree() which calls copy_tree() from Lib/distutils/dir_util.py. By default, this function preserve the modes (perserve_mode=1 by default). Or

[issue4591] uid/gid problem in os.chown

2008-12-08 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: 2^31-2 doesn't fit in long on 32 bits CPU. On my Linux box, uid_t is an unsigned integer (32 bits unsigned integer). Why not using unsigned int? chown prototype: int chown(const char *path, uid_t owner, gid_t group); -- nosy:

[issue4601] permissions errors with altinstall in 3.0

2008-12-08 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: With Python trunk, the directory has the right permission (drwxr-xr-x) whereas build/lib.linux(...) has permission drwx--. But the problem is still open for listed files (.pyc, .pyo, .picle, .egg-info).

[issue4594] Can't compile with -O3, on ARM, with gcc 3.4.4

2008-12-08 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Now, this isn't really Python's fault; gcc really shouldn't be crashing. However, it'd be nice if configure had a way to specify the optimization level--I had to go in and edit the generated Makefile by hand. Well, Python does have a

[issue4597] EvalFrameEx fails to set 'why' for some exceptions

2008-12-08 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: This is fine to port to 2.5; please go ahead. Don't forget to add Misc/NEWS entries, though - also add them for the branches you have changed already. -- nosy: +loewis ___ Python tracker [EMAIL

[issue4598] IDLE not opening

2008-12-08 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Do you have TCL_LIBRARY or TK_LIBRARY environment variables set? This is a very obscure behavior - the installer is known to work on many machines, including IDLE. So something must be particular with your Windows installation. --

[issue4603] 3.0 document tab interpretation change

2008-12-08 Thread Terry J. Reedy
New submission from Terry J. Reedy [EMAIL PROTECTED]: In 2.6, Ref Manual / Lexical Analysis / Indentation says First, tabs are replaced (from left to right) by one to eight spaces such that the total number of characters up to and including the replacement is a multiple of eight (this is

[issue1717] Get rid of more refercenes to __cmp__

2008-12-08 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: Marc-Andre, how do you like a function PyUnicode_Equal() instead of PyUnicode_Compare()? The old PyUnicode_Compare() function returns -1 for smaller value and errors, 0 for equality and +1 for larger value. I find it confusing to have one

[issue1533164] Installed but not listed *.pyo break bdist_rpm

2008-12-08 Thread Forest Wilkinson
Changes by Forest Wilkinson [EMAIL PROTECTED]: -- nosy: +forest ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1533164 ___ ___ Python-bugs-list mailing

[issue4599] Strings undisplayable with repr

2008-12-08 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: This specific character shouldn't be undisplayable on Windows, not even on your version of Windows. Instead, Python should find out how to convert it to your terminal's encoding, rather than using ASCII. It's a bug that the OSX port using

[issue3101] global function _add_one_to_index_C

2008-12-08 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: I think they currently are private functions which happen to be used accross two different C source files. So they should be renamed _Py_something (or the situation should be fixed so that they can be made static).

[issue4601] directory permission error with make install in 3.0

2008-12-08 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: Gotcha! os.path.walk() was replaced by os.walk() but walk() argument is no more a callback because walk() is a generator! Here is a fix. -- keywords: +patch title: permissions errors with altinstall in 3.0 - directory permission error

[issue4599] Strings undisplayable with repr

2008-12-08 Thread Michael Foord
Michael Foord [EMAIL PROTECTED] added the comment: Hmmm... nope - my terminal encoding (according to Python) on WIndows Vista x64 (with 32bit Python and a vanilla cmd) is cp850. C:\compileC:\Python30\python.exe Python 3.0 (r30:67507, Dec 3 2008, 20:14:27) [MSC v.1500 32 bit (Intel)] on win 32

[issue4599] Strings undisplayable with repr

2008-12-08 Thread Michael Foord
Michael Foord [EMAIL PROTECTED] added the comment: OK - and as a further follow up, the traceback I posted for Mac OS X was from a terminal called iTerm. I tried the same thing on the standard 'Terminal' app and it prints the Euro symbol fine. Looks like iTerm is an ascii terminal. Sorry for

[issue3101] global function _add_one_to_index_C

2008-12-08 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: I think they currently are private functions which happen to be used accross two different C source files. But see msg71879 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3101

[issue4558] with_stdc89

2008-12-08 Thread Roumen Petrov
Roumen Petrov [EMAIL PROTECTED] added the comment: Socket module need to be patched too otherwise test_socket fail on UNIX domain socket tests. After clean build and with new patch the regression tests results are: 337 tests OK. 3 tests failed: test_curses test_urllib2_localnet

[issue4558] with_stdc89

2008-12-08 Thread Roumen Petrov
Changes by Roumen Petrov [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file12253/python-trunk-20081206-c89.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4558 ___

[issue4599] Strings undisplayable with repr

2008-12-08 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Hmmm... nope - my terminal encoding (according to Python) on WIndows Vista x64 (with 32bit Python and a vanilla cmd) is cp850. Ah, ok. That doesn't have the euro sign, either. Try it in IDLE, though. ___

[issue4599] Strings undisplayable with repr

2008-12-08 Thread Martin v. Löwis
Changes by Martin v. Löwis [EMAIL PROTECTED]: -- resolution: - works for me status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4599 ___

[issue1717] Get rid of more refercenes to __cmp__

2008-12-08 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: IMO PyUnicode_Compare() should be replaced by a hypothetical PyObject_RichCompare(), which allows to take shortcuts when comparing strings of different length and a Py_EQ or Py_NE comparison is requested. (see #3106 too) -- nosy:

[issue1717] Get rid of more refercenes to __cmp__

2008-12-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment: On 2008-12-09 00:12, Christian Heimes wrote: Christian Heimes [EMAIL PROTECTED] added the comment: Marc-Andre, how do you like a function PyUnicode_Equal() instead of PyUnicode_Compare()? The old PyUnicode_Compare() function

[issue4580] slicing of memoryviews when itemsize != 1 is wrong

2008-12-08 Thread Antoine Pitrou
Changes by Antoine Pitrou [EMAIL PROTECTED]: -- nosy: +teoliphant ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4580 ___ ___ Python-bugs-list mailing

[issue3101] global function _add_one_to_index_C

2008-12-08 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Well, then a proper API should be devised. Perhaps Travis can shed more light on what he thinks would be useful. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3101

[issue1717] Get rid of more refercenes to __cmp__

2008-12-08 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: I wrote: IMO PyUnicode_Compare() should be replaced by a hypothetical PyObject_RichCompare(), which allows to take shortcuts when comparing strings of different length and a Py_EQ or Py_NE comparison is requested. ... and I didn't even

[issue1717] Get rid of more refercenes to __cmp__

2008-12-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment: On 2008-12-09 00:58, Antoine Pitrou wrote: Antoine Pitrou [EMAIL PROTECTED] added the comment: I wrote: IMO PyUnicode_Compare() should be replaced by a hypothetical PyObject_RichCompare(), which allows to take shortcuts when comparing

  1   2   >