[issue6394] getppid support in os module on Windows

2009-07-02 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

First, I checked that the API does exist on Window 2000. And python does
not have any "never fail guarantee", specially in low memory conditions.

Then, some remarks:

- If Process32First or Process32Next fail for any reason, "return
win32_error(...)" is called, but the GetLastError function won't find
the cause because CloseHandle will clear it.

- It would be nice to add a comment like "if the loop ends and our pid
was not found, GetLastError() will return ERROR_NO_MORE_FILES.  This is
an error anyway, so let's raise this."

- A unit test is necessary: it could use a subprocess and compare
getpid() with the child's getppid().

- The documentation should state what happens when the parent process
exits.  Is the ppid reset to zero?  Is it possible to have another new
process with the same ppid?

--
nosy: +amaury.forgeotdarc

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6026] test_(zipfile|zipimport|gzip|distutils) fail if zlib is not available

2009-07-02 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

test_zipfile and test_zipimport should be enabled when zlib is not
available: a zip file can store data uncompressed, and does not need
zlib in this case.
Only disable tests that require compression.

--
nosy: +amaury.forgeotdarc

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6026] test_(zipfile|zipimport|gzip|distutils) fail if zlib is not available

2009-07-02 Thread Ezio Melotti

Ezio Melotti  added the comment:

I'm working on a patch.
There a few more tests that need to be skipped in test_zipfile when zlib
is not available. test_gzip has to be skipped entirely if zlib is not
available. I still have to look at test_zipimport and test_distutils.

--
versions: +Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1652] subprocess should have an option to restore SIGPIPE to default action

2009-07-02 Thread Colin Watson

Colin Watson  added the comment:

Is there anything more I can do to move this along? Thanks.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5111] httplib: wrong Host header when connecting to IPv6 litteral URL

2009-07-02 Thread chkneo

chkneo  added the comment:

As per the RFC 2732 host header should be wrapped with []. I am
attaching patch for this too which is applied on trunk(2.7)

--
keywords: +patch
nosy: +chkneo
type:  -> behavior
Added file: http://bugs.python.org/file14424/5111.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5111] httplib: wrong Host header when connecting to IPv6 litteral URL

2009-07-02 Thread chkneo

chkneo  added the comment:

RFC 2732 Section three have the following details.

  host  = hostname | IPv4address | IPv6reference
  ipv6reference = "[" IPv6address "]"

The patch contains check for : and adding the brackets

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6398] README typo

2009-07-02 Thread Ezio Melotti

Changes by Ezio Melotti :


--
assignee: georg.brandl -> ezio.melotti
nosy: +ezio.melotti
priority:  -> low

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5111] httplib: wrong Host header when connecting to IPv6 litteral URL

2009-07-02 Thread chkneo

Changes by chkneo :


Removed file: http://bugs.python.org/file14424/5111.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5111] httplib: wrong Host header when connecting to IPv6 litteral URL

2009-07-02 Thread chkneo

Changes by chkneo :


Added file: http://bugs.python.org/file14425/5111.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6399] Error reporting by logging.config.fileConfig()

2009-07-02 Thread Mike

New submission from Mike :

Hi,
I had a logging.conf file with the following logger def in it:

[logger_Builder]
level=DEBUG
handlers=consoleStderr
qualname=Builder
propogate=0

And I couldn't understand why all my log messages were coming out twice.
 It took me four hours :-\ to realise I had misspelt "propagate".

Wouldn't it be better if spurious names raised parsing exceptions?

Thanks,
Mike.

P.S. Another thing that might have helped me track this down a little
quicker is if I could have printed the name of the logger that was the
source of some output. %(name)s gives the logger that *received* the log
message.  If there was another format variable for the logger that was
the source of a log message I would have seen one message from Builder
and one message from root and it would have been more obvious what was
going on.

--
components: Extension Modules
messages: 90007
nosy: mike
severity: normal
status: open
title: Error reporting by logging.config.fileConfig()
type: behavior
versions: Python 2.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6396] No conversion specifier in the string, no __getitem__ method in the right hand value

2009-07-02 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

If A is a simple class (old or new style):
   class A: pass

Why is there a difference between:
   "" % object()
and
   "" % A()
?

--
nosy: +amaury.forgeotdarc

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1652] subprocess should have an option to restore SIGPIPE to default action

2009-07-02 Thread Andreas Kloeckner

Changes by Andreas Kloeckner :


--
nosy: +inducer

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6396] No conversion specifier in the string, no __getitem__ method in the right hand value

2009-07-02 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

IMO, the *_FromFormat functions are wrong to decide whether the args
object is a mapping. the code is:
if (Py_TYPE(args)->tp_as_mapping && !PyTuple_Check(args) &&
!PyObject_TypeCheck(args, &PyBaseString_Type))
dict = args;

But heap types always fill tp_as_mapping: it points to
PyHeapTypeObject.as_mapping, whose members may be NULL...
PyMapping_Check() would be more appropriate.

--
resolution: invalid -> 
status: closed -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6400] incorrect commands import

2009-07-02 Thread Alejandro

New submission from Alejandro :

I'm porting a project to Py3k wich contains a "commands.py" script on
the project's module. 

Inside "a.py" there is an "import commands" statement:

/mymodule/commands.py
/mymodule/a.py

The 2to3 tool replaces the "import commands" and all the "commands"
ocurrences with the word "subprocess".

Is is possible to adapt the fix_imports fixer to detect a local import,
like the fix_import fixer (probably_a_local_import)?

--
components: 2to3 (2.x to 3.0 conversion tool)
messages: 90010
nosy: alejolp
severity: normal
status: open
title: incorrect commands import
versions: Python 2.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6394] getppid support in os module on Windows

2009-07-02 Thread Jon Anglin

Jon Anglin  added the comment:

I have addressed the issues brought up by Amaury Forgeot d'Arc except 
for the unit test.  I will get a unit test in tommorrow.  Thank you for 
the feedback.  I have uploaded a new diff file Issue6394-2.diff.

- Should I remove the old diff files?

I ran some test with a parent process that had exited.  The code still 
returned the correct parent process id, even though the process does 
not exist.  I am not sure if process ids get recycled, but I am looking 
in to it.

--
Added file: http://bugs.python.org/file14427/Issue6394-2.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6401] Unexpected module garbage collection

2009-07-02 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

The class doesn't hold any references to the module, so naturally it
will be collected if you don't.

--
nosy: +benjamin.peterson
resolution:  -> invalid
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6401] Unexpected module garbage collection

2009-07-02 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

This is a quirk of module finalization semantics. You've got to consider
the following facts:
- a class doesn't hold a reference to the module it is defined it,
because it doesn't need to (the __module__ attribute is a string)
- a function (and a method) holds a reference to the dictionary of
global variables of its defining namespace, that is, to the __dict__ of
the module, but not to the module itself
- therefore, if you remove all explicit references to the module, the
module will get garbage collected (but not its __dict__)
- when a module gets garbage collected, its attributes (members of its
__dict__) are first set to None, in an attempt to minimize circular
references issues

That's why, when you remove all explicit references to your module,
values of its __dict__ (including the "global_variable") get set to None.
(it is also why you shouldn't remove stuff from sys.modules unless you
really know what you are doing :-))

--
nosy: +pitrou

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6400] incorrect commands import

2009-07-02 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

What version of 2to3 are you using?

--
nosy: +benjamin.peterson

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5111] httplib: wrong Host header when connecting to IPv6 litteral URL

2009-07-02 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Thanks for the patch. It would be better if you also added a test to
Lib/test/test_httplib.py (unless for some reason it's technically
impossible to do so).

--
nosy: +pitrou
versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 -Python 2.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6401] Unexpected module garbage collection

2009-07-02 Thread j_pok

New submission from j_pok :

This code does not behave as I expected. Removing module from 
sys.modules and from local variable causes garbage collection (?) of 
module in spite of there is an instance of a class from this module. 
Instance method test() from TestClass returns global variable contained 
in module.

import sys

module = __import__("broken_module")
instance = module.TestClass()
print("a: "+str(instance.test()))
del sys.modules["broken_module"]
print("b: "+str(instance.test()))
del module
print("c: "+str(instance.test()))

Output:

a: test
b: test
c: None

--
components: None
files: broken_module.py
messages: 90011
nosy: j_pok
severity: normal
status: open
title: Unexpected module garbage collection
type: behavior
versions: Python 2.6, Python 3.1
Added file: http://bugs.python.org/file14426/broken_module.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6394] getppid support in os module on Windows

2009-07-02 Thread Jon Anglin

Jon Anglin  added the comment:

Just some information, on Windows:
- process ids are re-used.
- parent process id is set at process creation time and never updated.
(Windows Internal 4th Ed. by Russinovich and Solomon).

Thus, I would say that a long running process can not rely on the value 
of its parent process id.  The parent may not be running, or the process 
id may have been re-used and the process with that id may not be in fact 
the actual parent.  Having said that, I don't know the algorithm that 
Windows uses for process ids, so collisions may be rare (or not).

-Do these same issues exist on Unix systems?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6400] incorrect commands import

2009-07-02 Thread Alejandro

Alejandro  added the comment:

The one included on Python 3.1-rc2.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6400] incorrect commands import

2009-07-02 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Oh, I see the problem. mymodule/ isn't a package. If it has __init__.py,
this should work.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6394] getppid support in os module on Windows

2009-07-02 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

> Do these same issues exist on Unix systems?
No. When the parent exits, the child process is attached to the 'init'
process and getppid() returns 1.

And collisions are not rare at all. Actually it seems that you get the
same pid if you close and restart a program quickly.
That's why Windows apps prefer dealing with "process handles" instead of
"process ids"

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6400] incorrect commands import

2009-07-02 Thread Alejandro Santos

Alejandro Santos  added the comment:

Sorry. Yes, there is an "__init__.py" script on the same level as the
"commands.py". I forgot to mention it.

/mymodule/commands.py
/mymodule/a.py
/mymodule/__init__.py

This is the real repository:

http://selenic.com/repo/hg/file/b81baf9e4dd6/mercurial

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6400] incorrect commands import

2009-07-02 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Thanks for the bug report! Fixed in r73771. Now when I run it on
mercurial/dispatch.py I get:

--- mercurial/dispatch.py (original)
+++ mercurial/dispatch.py (refactored)
@@ -5,11 +5,11 @@
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2, incorporated herein by reference.
 
-from i18n import _
+from .i18n import _
 import os, sys, atexit, signal, pdb, socket, errno, shlex, time
-import util, commands, hg, fancyopts, extensions, hook, error
-import cmdutil, encoding
-import ui as _ui
+from . import util, commands, hg, fancyopts, extensions, hook, error
+from . import cmdutil, encoding
+from . import ui as _ui
 
 def run():
 "run the command in sys.argv"
@@ -486,7 +486,7 @@
 p.disable()
 
 if format == 'kcachegrind':
-import lsprofcalltree
+from . import lsprofcalltree
 calltree = lsprofcalltree.KCacheGrind(p)
 calltree.output(ostream)
 else:
RefactoringTool: Files that need to be modified:
RefactoringTool: mercurial/dispatch.py

Much better. :)

I'm glad to see someone is working on porting mercurial. You might want
to use the 2to3 development version, since it's always up to date wiht
bug fixes. [1] If you need any help, feel free to email the
python-porting list.

[1] http://svn.python.org/projects/sandbox/trunk/2to3

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6400] incorrect commands import

2009-07-02 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6400] incorrect commands import

2009-07-02 Thread Alejandro Santos

Alejandro Santos  added the comment:

Thanks!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4533] 3.0 file.read dreadfully slow

2009-07-02 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

This has been fixed as part of the big IO update in trunk. I assume
nobody really cares about making a separate patch for 2.6, please
re-open if you are interested!

--
resolution: accepted -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6119] Confusing DeprecationWarning

2009-07-02 Thread djc

Changes by djc :


--
nosy: +djc

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4753] Faster opcode dispatch on gcc

2009-07-02 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
nosy: +jcea

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4601] directory permission error with make install in 3.0

2009-07-02 Thread STINNER Victor

STINNER Victor  added the comment:

ping

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6402] Crash after attempt to set the error indicator via PyErr_SetString()

2009-07-02 Thread Jan Lieskovsky

New submission from Jan Lieskovsky :

Hello guys,

  i am experiencing segmentation fault, when trying to set the
error indicator via the PyErr_SetString() method called from C source.
This occurs for all Python exceptions, as documented in:

http://docs.python.org/c-api/exceptions.html

Checked Python-2.6.2, also Python-2.4.1 - the crash is present
there (wondering what's wrong with the provided reproducer).

Scenario:

tar xvzf pyexceptions-sample.tar.gz
cd pyexceptions-sample
make
./pyexceptionssample -> 
Segmentation fault (core dumped)

Note: Doesn't matter if compiled with libpython2.6.a or libpython2.4.so,
  the crash is still there.

Here is the most interesting part of the backtrace (the whole
coredump also attached).

gdb ./pyexceptions-sample core.31283

Core was generated by `./pyexceptions-sample'.
Program terminated with signal 11, Segmentation fault.
[New process 31283]
#0  PyErr_Restore (type=0x600058f0, value=0x20435030,
traceback=0x0) at Python/errors.c:39
39  oldtype = tstate->curexc_type;

(gdb) bt
#0  PyErr_Restore (type=0x600058f0, value=0x20435030,
traceback=0x0) at Python/errors.c:39
#1  0x40125180 in PyErr_SetString (exception=0x600058f0,
string=) at Python/errors.c:57
#2  0x40005eb0 in check_value ()
#3  0x40006670 in main ()

(gdb) info args
type = (PyObject *) 0x600058f0
value = (PyObject *) 0x20435030
traceback = (PyObject *) 0x0

(gdb) info locals
tstate = (PyThreadState *) 0x0
oldtype = 
oldvalue = 
oldtraceback = 

(Looks like NULL ptr dereference in tstate = (PyThreadState *)).

Could you please have a look?

Thanks && regards, Jan.
--
Jan iankko Lieskovsky

--
components: Interpreter Core
files: pyexceptions-sample.tar.gz
messages: 90026
nosy: iankko
severity: normal
status: open
title: Crash after attempt to set the error indicator via PyErr_SetString()
type: crash
versions: Python 2.4, Python 2.5, Python 2.6
Added file: http://bugs.python.org/file14428/pyexceptions-sample.tar.gz

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6402] Crash after attempt to set the error indicator via PyErr_SetString()

2009-07-02 Thread Jan Lieskovsky

Changes by Jan Lieskovsky :


Added file: http://bugs.python.org/file14429/core.31283.bz2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6402] Crash after attempt to set the error indicator via PyErr_SetString()

2009-07-02 Thread Jan Lieskovsky

Changes by Jan Lieskovsky :


--
nosy: +benjamin.peterson, gregory.p.smith, pitrou, psss

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6119] Confusing DeprecationWarning

2009-07-02 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Fixed in r73774.

--
nosy: +benjamin.peterson
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5111] httplib: wrong Host header when connecting to IPv6 litteral URL

2009-07-02 Thread chkneo

chkneo  added the comment:

Attaching the test patch

--
Added file: http://bugs.python.org/file14430/5311_test.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4618] print_function and unicode_literals don't work together

2009-07-02 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Fixed in r73776.

--
nosy: +benjamin.peterson
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2009-07-02 Thread Sridhar Ratnakumar

Changes by Sridhar Ratnakumar :


Added file: http://bugs.python.org/file14431/_mbstate_t.h

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2009-07-02 Thread Sridhar Ratnakumar

Changes by Sridhar Ratnakumar :


Added file: http://bugs.python.org/file14432/test.c.preprocessed.txt

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2009-07-02 Thread Sridhar Ratnakumar

Sridhar Ratnakumar  added the comment:

I've attached the files you requested.

> As a wild guess, try defining _XOPEN_SOURCE to 500, 
> i.e. -D_XOPEN_SOURCE=500.

Yes, this works .. the file compiles. I tried modifying the value of 
_XOPEN_SOURCE to 500 in pyconfig.h (currently set to 600). While fixes 
the mbstate_t error .. it results in in-numerous other errors.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6389] os.chmod() documentation refers to non-existent documentation in stat

2009-07-02 Thread R. David Murray

R. David Murray  added the comment:

I've added the documentation of the flags defined in the stat module in
r73778, with the os.chmod references to the hyperlinked.  The
descriptions are taken from the linux stat(2) page, so if anyone spots
any cross-platform inaccuracies let me know.  (As far as I can see the
flags are defined on Windows, they are just meaningless there, for the
most part).

--
assignee: georg.brandl -> r.david.murray
resolution:  -> fixed
stage: needs patch -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2009-07-02 Thread Sridhar Ratnakumar

Changes by Sridhar Ratnakumar :


Added file: 
http://bugs.python.org/file14433/test.c_XOPEN_SOURCE_500_preprocessed.txt

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6402] Crash after attempt to set the error indicator via PyErr_SetString()

2009-07-02 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

This bug tracker is not a place to obtain help. If it is primarily help
that you are after (which it seems to be from your last question), I
recommend that we close the issue, and you ask for help elsewhere.

Most likely, the error happens at a point in the code where there is no
thread state. You have to find out why that is - it could be either that
there is legitimately no thread state, in which case you shouldn't call
Python API, or it might be that the thread state was lost somehow, in
which case you should find out where it got lost.

--
nosy: +loewis

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2009-07-02 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

> Yes, this works .. the file compiles. I tried modifying the value of 
> _XOPEN_SOURCE to 500 in pyconfig.h (currently set to 600). 

That's an HPUX bug then, please report it to HP. They should assume
that any feature present in XPG 5 is also present in any later version.

> While fixes 
> the mbstate_t error .. it results in in-numerous other errors.

Well, we absolutely need mbstate_t, so we need to resolve all these
other errors.

Please be prepared for this becoming a many-months project. I don't
know what you need the HP-UX port for - maybe it would be best to hire
somebody who knows HP-UX, C, and Python.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6403] distutils builds extension modules to root package directory

2009-07-02 Thread ivank

New submission from ivank :

When I built Twisted, I noticed that 'python2.7 setup.py build' created
_c_urlang.so in the wrong place:

$ find . | grep _c_url
./twisted/protocols/_c_urlarg.c
./build/lib.linux-x86_64-2.7/_c_urlarg.so
./build/temp.linux-x86_64-2.7/twisted/protocols/_c_urlarg.o

I noticed the same problem when I built Mercurial 1.3, too.

This happens with svn r73778, but not svn r73145 (June 2). I don't know
which commit caused the problem. I don't know if the problem is in 3.x too.

--
assignee: tarek
components: Distutils
messages: 90034
nosy: ivank, tarek
severity: normal
status: open
title: distutils builds extension modules to root package directory
type: behavior
versions: Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6403] distutils builds extension modules to root package directory

2009-07-02 Thread Jean-Paul Calderone

Changes by Jean-Paul Calderone :


--
nosy: +exarkun

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6402] Crash after attempt to set the error indicator via PyErr_SetString()

2009-07-02 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
resolution:  -> invalid
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6363] __future__ statements break doctest

2009-07-02 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Fixed in r73782 and r73783.

--
nosy: +benjamin.peterson
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6403] distutils builds extension modules to root package directory

2009-07-02 Thread Tarek Ziadé

Changes by Tarek Ziadé :


--
resolution:  -> accepted

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6399] Error reporting by logging.config.fileConfig()

2009-07-02 Thread R. David Murray

R. David Murray  added the comment:

Ignoring unknown options in the configuration file is analogous to
ignoring unknown tags in html: it makes it easier to use the same config
file with multiple versions of the logger, with older versions ignoring
the options they don't understand.  This is a tradeoff, and I suppose it
could be argued that the tradeoff is being made in the wrong direction
here.  I don't use configuration files for logging myself, so I'm not a
good person to render an opinion on that.

But IMO this is not a bug; changing the behavior would be a feature request.

--
nosy: +r.david.murray, vsajip
priority:  -> low
type: behavior -> feature request

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4601] directory permission error with make install in 3.0

2009-07-02 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

Ok, fixed in r73788 and r73789.

--
resolution: accepted -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6404] 3.1 NEWS.txt points to alpha 2 file

2009-07-02 Thread Sridhar Ratnakumar

New submission from Sridhar Ratnakumar :

On Thu, 02 Jul 2009 16:43:15 -0700,  wrote:

> On Mon, Jun 29, 2009, Sridhar Ratnakumar wrote:
>>
>> From http://www.python.org/download/releases/3.1/NEWS.txt
>>
>> (...)
>>
>> What's New in Python 3.1 alpha 2?
>> =
>>
>> *Release date: 2009-4-4*
>
> AFAICT, this isn't maintained by webmasters, please submit a report to
> bugs.python.org

--
assignee: georg.brandl
components: Documentation
messages: 90038
nosy: georg.brandl, srid
severity: normal
status: open
title: 3.1 NEWS.txt points to alpha 2 file
type: behavior
versions: Python 3.1

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6404] 3.1 NEWS.txt points to alpha 2 file

2009-07-02 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Already fixed...

--
nosy: +benjamin.peterson
resolution:  -> out of date
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6395] Add Pickle Support to the codecs Module

2009-07-02 Thread Alexandre Vassalotti

Changes by Alexandre Vassalotti :


--
nosy: +alexandre.vassalotti

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1652] subprocess should have an option to restore SIGPIPE to default action

2009-07-02 Thread R. David Murray

R. David Murray  added the comment:

Find someone to review the patch and post their evaluation here.  It
doesn't have to be a committer, though that would be even better.

--
nosy: +r.david.murray
stage:  -> patch review
versions: +Python 2.7, Python 3.2 -Python 2.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1652] subprocess should have an option to restore SIGPIPE to default action

2009-07-02 Thread R. David Murray

R. David Murray  added the comment:

Hmm.  Looks like the patch is missing a unit test for the new feature.

--
stage: patch review -> test needed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6267] Cumulative patcc:h to http and xmlrpc

2009-07-02 Thread R. David Murray

R. David Murray  added the comment:

Before r73742, test_socketserver and test_urllib2_localnet work, after
this patchset is applied there are failures.  This is on Gentoo linux,
py3k.  See also issue 6381 and issue 6382, which are the same problems
on trunk.  (The test_urllib2_localnet failure seems to now be
consistently repeatable on my machine, for whatever reason.)

--
components: +Library (Lib)
nosy: +r.david.murray
priority:  -> normal
stage:  -> needs patch
versions: +Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2775] Implement PEP 3108

2009-07-02 Thread Henry Precheur

Henry Precheur  added the comment:

I found some bsddb code left in setup.py. Patch attached.

--
nosy: +henry.precheur
Added file: http://bugs.python.org/file14434/setup.py.remove-bsddb.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com