[issue7717] Compilation fixes for IRIX

2010-08-01 Thread Mark Lawrence

Mark Lawrence  added the comment:

@Stuart could you please fill out the paperwork given here 
http://www.python.org/psf/contrib/ .  Without it this issue can't proceed.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue7718] Build shared libpythonX.Y.so on IRIX

2010-08-01 Thread Mark Lawrence

Mark Lawrence  added the comment:

Stuart has been asked to sign the paperwork on #7717.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue8747] Autoconf tests in python not portably correct

2010-08-01 Thread Garrett Cooper

Garrett Cooper  added the comment:

The issue is still present.

The overall problem I suppose is with consistency and presentation of features 
in the python language.

Many features cannot be presented in a 100% portable manner, and the problem is 
that such features that aren't POSIX conforming should be 100% spelled out 
instead of being implied functional on all Unix based platforms.

So, again... if these platforms can't function with these preprocessor defines, 
the platforms need to be fixed -- not python.

--

___
Python tracker 

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



[issue8397] BZ2File doesn't protect against mixed iterator and read usage

2010-08-01 Thread Georg Brandl

Changes by Georg Brandl :


--
assignee:  -> pitrou
nosy: +pitrou
priority: normal -> high
versions: +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



[issue1180267] expanding platform module and making it work as it should

2010-08-01 Thread Georg Brandl

Changes by Georg Brandl :


--
assignee:  -> lemburg
nosy: +lemburg

___
Python tracker 

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



[issue4891] formatwarning function signature change breaks code

2010-08-01 Thread Georg Brandl

Georg Brandl  added the comment:

Probably too late to change something here.

--
nosy: +georg.brandl
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




[issue7702] Wrong order of parameters of _get_socket in SMTP class in smtplib.py

2010-08-01 Thread Georg Brandl

Georg Brandl  added the comment:

This appears to have been fixed since r61624.

--
nosy: +georg.brandl
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



[issue7395] pstats add command raises unhandled exception

2010-08-01 Thread Georg Brandl

Georg Brandl  added the comment:

Fixed in r83388.

--
nosy: +georg.brandl
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



[issue8105] mmap crash on Windows with out of range file descriptor

2010-08-01 Thread Georg Brandl

Georg Brandl  added the comment:

What's the status here?  Can it be committed?

--
nosy: +georg.brandl

___
Python tracker 

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



[issue7952] fileobject.c can switch between fread and fwrite without an intervening flush or seek, invoking undefined behaviour

2010-08-01 Thread Georg Brandl

Changes by Georg Brandl :


--
assignee:  -> pitrou
nosy: +pitrou

___
Python tracker 

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



[issue7937] windows installer package

2010-08-01 Thread Georg Brandl

New submission from Georg Brandl :

No bug reported here.

--
nosy: +georg.brandl
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



[issue8249] expat.ParserCreate - SystemError bad argument to internal function

2010-08-01 Thread Georg Brandl

Georg Brandl  added the comment:

Is this somehow reproducible without svnmerge?

--
nosy: +georg.brandl
status: open -> pending

___
Python tracker 

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



[issue8230] Lib/test/sortperf.py fails to run

2010-08-01 Thread Georg Brandl

Georg Brandl  added the comment:

Thanks, fixed in r83390.

--
nosy: +georg.brandl
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



[issue6128] Consequences of using Py_TPFLAGS_HAVE_GC are incompletely explained

2010-08-01 Thread Mark Lawrence

Mark Lawrence  added the comment:

Can someone in the know provide a doc patch for this?

--
assignee: georg.brandl -> d...@python
nosy: +BreamoreBoy, d...@python

___
Python tracker 

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



[issue8590] test_httpservers.CGIHTTPServerTestCase failure on 3.1-maint Mac OS X

2010-08-01 Thread Georg Brandl

Georg Brandl  added the comment:

Still reproducible?

--
nosy: +georg.brandl

___
Python tracker 

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



[issue8509] fix autoconf quoting in help strings and code snippets

2010-08-01 Thread Georg Brandl

Georg Brandl  added the comment:

Patch has been applied; closing.

--
nosy: +georg.brandl
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



[issue6130] There ought to be a way for extension types to associate documentation with their tp_new or tp_init methods

2010-08-01 Thread Mark Lawrence

Mark Lawrence  added the comment:

Can anyone provide a way forward for this issue?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue870479] Scripts need platform-dependent handling

2010-08-01 Thread Paul Moore

Paul Moore  added the comment:

I don't think that they do, any more than for any .py script. (I assume you're 
talking about in the .py script). Generated scripts on Unix can be whatever the 
code wants, and on Windows I thought the idea of generated scripts had been 
dropped.

--

___
Python tracker 

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



[issue6157] Tkinter.Text: changes for bbox, debug, and edit methods.

2010-08-01 Thread Mark Lawrence

Mark Lawrence  added the comment:

The suggested changes are mostly trivial, but there should be comments on the 
change to the bbox signature.

--
nosy: +BreamoreBoy
stage:  -> patch review
type:  -> behavior
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



[issue8471] Unicode returns in doctest can make subsequent tests fail

2010-08-01 Thread Georg Brandl

Georg Brandl  added the comment:

Thanks, applied in r83392.

--
nosy: +georg.brandl
resolution:  -> accepted
status: open -> closed

___
Python tracker 

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



[issue6159] Tkinter.PanedWindow: docstring fixes, change in paneconfigure and removed some returns

2010-08-01 Thread Mark Lawrence

Mark Lawrence  added the comment:

This issue is self explanatory, can it be committed as is?

--
nosy: +BreamoreBoy
stage:  -> patch review
type:  -> behavior
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



[issue1690103] trace module borks __file__

2010-08-01 Thread Georg Brandl

Georg Brandl  added the comment:

Fixed in r83393 with explicit globals that also specify __name__.

--
nosy: +georg.brandl
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



[issue8821] Range check on unicode repr

2010-08-01 Thread Georg Brandl

Georg Brandl  added the comment:

Applied in r83395. Thanks!

--
nosy: +georg.brandl
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



[issue4810] timeit needs "official" '--' flag

2010-08-01 Thread Georg Brandl

Georg Brandl  added the comment:

Usually I would say that this is common UNIX knowledge, except that timeit is 
also used in Windows environments.  Also, the timeit help is already quite 
thorough, so it can't hurt to mention "--".  Done in r83396.

--
nosy: +georg.brandl
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



[issue6187] Improvement in doc of "Extending and Embedding the Python Interpreter, 5.3 Beyond Very High Level Embedding: An overview"

2010-08-01 Thread Mark Lawrence

Mark Lawrence  added the comment:

I don't see why this needs to be done, the 2nd paragraph of the doc is pretty 
explicit.

"This document assumes basic knowledge about Python. For an informal 
introduction to the language, see The Python Tutorial. The Python Language 
Reference gives a more formal definition of the language. The Python Standard 
Library documents the existing object types, functions and modules (both 
built-in and written in Python) that give the language its wide application 
range."

--
assignee: georg.brandl -> d...@python
nosy: +BreamoreBoy, d...@python
versions: +Python 3.2 -Python 2.5, Python 2.6, Python 3.0

___
Python tracker 

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



[issue6310] Windows "App Paths" key is not checked when installed for current user

2010-08-01 Thread Mark Lawrence

Mark Lawrence  added the comment:

Can a windows guru comment on this please.

--
nosy: +BreamoreBoy, brian.curtin, tim.golden

___
Python tracker 

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



[issue8826] Invalid expires date in cookiejar

2010-08-01 Thread Georg Brandl

Georg Brandl  added the comment:

Thanks, fixed in r83398.

--
nosy: +georg.brandl
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



[issue7738] IDLE hang when tooltip comes up in Linux

2010-08-01 Thread Rakesh

Rakesh  added the comment:

I too have the same bug with python 2.6.4 and 3.1. The issue seems to be with 
Tk8.5. Earlier idle packages worked fine Tk8.4.

--
nosy: +rakesh_d

___
Python tracker 

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



[issue6187] Improvement in doc of "Extending and Embedding the Python Interpreter, 5.3 Beyond Very High Level Embedding: An overview"

2010-08-01 Thread Georg Brandl

Georg Brandl  added the comment:

Agreed with Mark.

--
resolution:  -> works for me
status: open -> closed

___
Python tracker 

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



[issue7330] PyUnicode_FromFormat segfault

2010-08-01 Thread Ray.Allen

Ray.Allen  added the comment:

Here is the patch, it add support to use width and precision formatters in 
PyUnicode_FromFormat() for type %s, %S, %R, %V, %U, %A, besides fixed two bugs, 
which at least I believe:


1. According to PyUnicode_FromFormat() doc: 
http://docs.python.org/dev/py3k/c-api/unicode.html?highlight=pyunicode_fromformat#PyUnicode_FromFormat,
 the "%A" should produce result of ascii(). But in the existing code, I only 
find code of  call to ascii(object) and calculate the spaces needed for it, but 
not appending the ascii() output to result. Also according to my simple test, 
the %A doesn't work, as the following simple test function:
static PyObject *
getstr(PyObject *self, PyObject *args)
{
const char *s = "hello world";
PyObject *unicode = PyUnicode_FromString(s);
return PyUnicode_FromFormat("%A", unicode);
}
Which should return the result of calling ascii() with the object named 
*unicode* as its argument. The result should be a unicode object with string 
"hello world". But it actually return a unicode object with string "%A". This 
can be fixed by adding the following line:
   case 'A':
in step 4.


2. another bug, here is a piece of code in Object/unicodeobject.c, 
PyUnicode_FromFormatV():

797  if (*f == '%') {
798  #ifdef HAVE_LONG_LONG
799  int longlongflag = 0;
800  #endif
801  const char* p = f;
802  width = 0;
803  while (ISDIGIT((unsigned)*f))
804  width = (width*10) + *f++ - '0';


Here the variable *width* cannot be correctly calculated, because the while 
loop will not execute, the *f currently is definitely '%'! So the width is 
always 0. But currently this doesn't cause error, since the following codes 
will ensure width >= MAX_LONG_CHARS:

834case 'd': case 'u': case 'i': case 'x':
835(void) va_arg(count, int);
836  #ifdef HAVE_LONG_LONG
837if (longlongflag) {
838   if (width < MAX_LONG_LONG_CHARS)
839width = MAX_LONG_LONG_CHARS;
840}
841else
842  #endif
843/* MAX_LONG_CHARS is enough to hold a 64-bit integer,
844 including sign.  Decimal takes the most space.  This
845 isn't enough for octal.  If a width is specified we
846 need more (which we allocate later). */
847if (width < MAX_LONG_CHARS)
848width = MAX_LONG_CHARS;

(currently width and precision only apply to integer types:%d, %u, %i, %x, not 
string and object types:%s, %S, %R, %A, %U, %V )

To fix, the following line:
801  const char* p = f;
should be:
801  const char* p = f++;
just as the similar loop in step 4, and add another line:
 f--;
after calculate width to adapting the character pointer.


My patch fixed these two problems. Hoping somebody could take a look at it.

--
keywords: +patch
Added file: http://bugs.python.org/file18305/issue_7330.diff

___
Python tracker 

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



[issue6338] Error message displayed on stderr when no C compiler is present with ctypes

2010-08-01 Thread Mark Lawrence

Mark Lawrence  added the comment:

The patch simply sends the error message to os.devnull.  I can't test it as 
posix, but can it be committed as is?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue6226] Inconsistent 'file' vs 'stream' kwarg in pprint, other stdlibs

2010-08-01 Thread Mark Lawrence

Mark Lawrence  added the comment:

@Philip can you provide a patch so we can take this forward?

--
nosy: +BreamoreBoy
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



[issue6439] Demo/embed/demo.c use of PySys_SetArgv() is invalid

2010-08-01 Thread Mark Lawrence

Mark Lawrence  added the comment:

I can't see any sense in supplying a patch for what is a one word change to 
demo.c.  Can a C guru please comment on the OP's 2nd paragraph.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue6445] Add check parameter to subprocess.Popen.communicate

2010-08-01 Thread Mark Lawrence

Mark Lawrence  added the comment:

@OG7 this is unlikely to move unless you provide a patch that changes the code 
and the unit test.

--
nosy: +BreamoreBoy
stage:  -> unit test needed
type:  -> feature request
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



[issue6532] thread.get_ident() should return unsigned value

2010-08-01 Thread Mark Lawrence

Mark Lawrence  added the comment:

Can a C guru comment on this please.

--
components: +Extension Modules -Library (Lib)
nosy: +BreamoreBoy
stage:  -> needs patch
type:  -> behavior
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.4, Python 2.5, Python 
2.6

___
Python tracker 

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



[issue8249] expat.ParserCreate - SystemError bad argument to internal function

2010-08-01 Thread Florent Xicluna

Florent Xicluna  added the comment:

Unable to reproduce.

--
nosy: +haypo
resolution:  -> works for me
status: pending -> closed

___
Python tracker 

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



[issue6602] BaseHTTPServer log_message should log to sys.stdout

2010-08-01 Thread Mark Lawrence

Mark Lawrence  added the comment:

The OP's comments strike me as sensible, do others agree or disagree?

--
components: +Library (Lib) -None
nosy: +BreamoreBoy
stage:  -> unit test needed
type:  -> behavior
versions: +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



[issue3718] environment variable MACHDEP and python build system

2010-08-01 Thread Mark Lawrence

Mark Lawrence  added the comment:

Can someone from the build team please review the patch, thanks.

--
nosy: +BreamoreBoy
stage:  -> patch review
type:  -> behavior
versions: +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



[issue9446] urllib2 tests fail when offline

2010-08-01 Thread Guandalino

New submission from Guandalino :

urllib2 tests fail when internet connection is not available.

$ cd ~/sandbox/2.7/lib/python2.7/test
$ python test_urllib2.py

other output, [cut]

==
ERROR: test_file (__main__.HandlerTests)
--
Traceback (most recent call last):
  File "test_urllib2.py", line 711, in test_file
h.file_open, Request(url))
  File "/home/redt/sandbox/2.7/lib/python2.7/unittest/case.py", line 456, in 
assertRaises
callableObj(*args, **kwargs)
  File "/home/redt/sandbox/2.7/lib/python2.7/urllib2.py", line 1269, in 
file_open
return self.open_local_file(req)
  File "/home/redt/sandbox/2.7/lib/python2.7/urllib2.py", line 1301, in 
open_local_file
(not port and socket.gethostbyname(host) in self.get_names()):
gaierror: [Errno -5] No address associated with hostname

--
Ran 34 tests in 0.414s

FAILED (errors=1)

The issue verifies using ubuntu 8.04 LTS having this /etc/hosts:

127.0.0.1 localhost localhost.localdomain speedy

::1 localhost speedy ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts 

Note that when connected to internet all the tests pass.

Further details can be found in a thread I started 
on comp.lang.python. http://bit.ly/9x9Umu.

I can't guarantee a quick answer but let me know if other info are required, 
I'll be glad to provide them asap. Thank you.

--
components: Installation, Library (Lib), Tests
files: offline.log
messages: 112307
nosy: benjamin.peterson, ezio.melotti, guandalino, orsenthil, tjreedy
priority: normal
severity: normal
status: open
title: urllib2 tests fail when offline
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file18306/offline.log

___
Python tracker 

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



[issue9446] urllib2 tests fail when offline

2010-08-01 Thread Guandalino

Changes by Guandalino :


Added file: http://bugs.python.org/file18307/online.log

___
Python tracker 

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



[issue6664] readlines should understand Line Separator and Paragraph Separator characters

2010-08-01 Thread Mark Lawrence

Changes by Mark Lawrence :


--
nosy: +benjamin.peterson, pitrou
stage:  -> needs patch
type:  -> behavior
versions: +Python 2.7, Python 3.2

___
Python tracker 

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



[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-01 Thread Steven Bethard

Steven Bethard  added the comment:

Yes, this looks fine, assuming a test is also added.

--

___
Python tracker 

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



[issue9416] complex formatting incorrectly omits a negative zero real part

2010-08-01 Thread Mark Dickinson

Mark Dickinson  added the comment:

Fixed in r83400, r83401, r83402.

--
resolution:  -> fixed
stage: patch review -> 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



[issue9399] Provide a 'print' action for argparse

2010-08-01 Thread Steven Bethard

Steven Bethard  added the comment:

The patch looks basically right. A few minor issues:

* "message=None," should probably be "message,", that is, message should not be 
allowed to default to None - I can't see any use case for this action without a 
message. I believe this means the body of __call__ can be simplified to::

  self.file.write(self.message)
  self.file.write("\n")
  parser.exit()

* The other thing the patch needs is to update the test suite to add tests to 
make sure this behavior works. Take a look at test_argparse.py for how to do 
that.

* The last thing is that to have the greatest chance of having someone check 
this in, you'll want to make your patch against Python trunk as explained here:

http://www.python.org/dev/faq/#how-do-i-get-a-checkout-of-the-repository-read-only-or-read-write
http://www.python.org/dev/faq/#how-to-make-a-patch

Thanks!

--

___
Python tracker 

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



[issue6664] readlines should understand Line Separator and Paragraph Separator characters

2010-08-01 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +haypo, lemburg
versions:  -Python 2.7, Python 3.1

___
Python tracker 

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



[issue6691] Support for nested classes and function for pyclbr

2010-08-01 Thread Mark Lawrence

Mark Lawrence  added the comment:

Patch tested ok against 2.7 on windows vista.  Patch seems clean to me, can we 
get this committed please.

--
nosy: +BreamoreBoy
stage:  -> patch review
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



[issue870479] Scripts need platform-dependent handling

2010-08-01 Thread Éric Araujo

Éric Araujo  added the comment:

Sorry, I was unclear. What I meant is: Do you (Tarek and platform experts) 
agree that scripts (in setup(scripts=...), not generated) need to have 
platform-specific EOLs?

--

___
Python tracker 

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



[issue8620] wrong truncation of last line in cmd.Cmd

2010-08-01 Thread Éric Araujo

Éric Araujo  added the comment:

Universal newline mode helps when reading from stdin, but what I had in mind 
was actually  in cmd.exe putting CRLF. Re-reading the original report, I 
see this is not a concern, since the bug is about cmd used with a file only, 
not interactively, so my remark was moot.

--

___
Python tracker 

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



[issue8620] wrong truncation of last line in cmd.Cmd

2010-08-01 Thread Éric Araujo

Éric Araujo  added the comment:

If “l” sorts after “a”, you’ve misplaced Catherine in ACKS. Funny how often 
this happens :)

(Cheers for the Teach Me session by the way Catherine!)

--

___
Python tracker 

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



[issue6696] Profile objects should be documented

2010-08-01 Thread Mark Lawrence

Changes by Mark Lawrence :


--
assignee: georg.brandl -> d...@python
nosy: +d...@python

___
Python tracker 

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



[issue6706] asyncore's accept() is broken

2010-08-01 Thread Mark Lawrence

Mark Lawrence  added the comment:

@Giampaolo it looks as if you meant to attach a patch but didn't! :)  If you do 
attach one could you also supply a modified unit test file with it, thanks.

--
nosy: +BreamoreBoy
stage:  -> needs patch
type:  -> behavior
versions: +Python 3.1, Python 3.2

___
Python tracker 

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



[issue6858] This is a python file, apply syntax highlighting

2010-08-01 Thread Mark Lawrence

Changes by Mark Lawrence :


--
nosy: +taleinat, tjreedy

___
Python tracker 

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



[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-01 Thread Doug Hellmann

Doug Hellmann  added the comment:

I haven't read the existing tests, but I am not seeing the behavior described 
by Ted in msg112258.  If I specify the prefix_chars as '+/' and define a long 
option '//myopt' then using ++myopt on the command line gives an error that the 
option is unrecognized.  I don't know if that's a bug or the desired behavior.

--

___
Python tracker 

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



[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-01 Thread Doug Hellmann

Doug Hellmann  added the comment:

Oh, I should point out that last comment is describing what I see when using 
the unpatched 2.7 version of the module.

--

___
Python tracker 

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



[issue6980] fix ctypes build failure on armel-linux-gnueabi with -mfloat-abi=softfp

2010-08-01 Thread Mark Lawrence

Mark Lawrence  added the comment:

@Matthias did you actually check the referenced patch in, sorry I don't know 
where to look?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue9447] Python 3.1.2 test suite segfaults on the alpha architecture

2010-08-01 Thread Tobias Klausmann

New submission from Tobias Klausmann :

During testing for inclusion in the Gentoo distribution, we ran into a test 
failure (actually a SEGV) when running the test suite on the alpha architecture.

Log of test failure and backtrace in gdb is here:
http://dev.gentoo.org/~klausman/python-3.1.2-testrun.log
and also attached to this bug report.


gcc is 4.4.3
glibc is 2.11.2
Kernel is 2.6.33

If more info or access to an alpha machine is needed, feel free to contact me 
or the alpha arch team at gentoo (al...@gentoo.org)

--
components: Tests
files: python-3.1.2-testrun.log
messages: 112319
nosy: klausman
priority: normal
severity: normal
status: open
title: Python 3.1.2 test suite segfaults on the alpha architecture
type: crash
versions: Python 3.2
Added file: http://bugs.python.org/file18308/python-3.1.2-testrun.log

___
Python tracker 

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



[issue7952] fileobject.c can switch between fread and fwrite without an intervening flush or seek, invoking undefined behaviour

2010-08-01 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

The 2.x file object mostly mirrors abilities of the standard C buffered IO 
functions (including, for example, special behaviour of text files under 
Windows). Therefore, Python code should call flush() manually if needed. It 
should be noted that the 2.x file object has been existing for ages and this 
issue is, to my knowledge, very rarely brought up.

The 3.x IO library should not have this problem since we wrote our own 
buffering layer, and we have dedicated tests for mixed reads and writes.

--
nosy: +georg.brandl
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



[issue9447] Python 3.1.2 test suite segfaults on the alpha architecture

2010-08-01 Thread Mark Dickinson

Changes by Mark Dickinson :


--
assignee:  -> theller
components: +ctypes
nosy: +theller

___
Python tracker 

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



[issue870479] Scripts need platform-dependent handling

2010-08-01 Thread Paul Moore

Paul Moore  added the comment:

Thanks for clarifying.

No, I don't agree. Barring fancy "if os.platform" games in setup.py,
scripts will be platform-independent Python code. From "Distributing
Python Modules" section 2.5, "Scripts are files containing Python
source code", and as such, should follow the normal rules for Python
code (from the language reference section 2.1.2, "In source files, any
of the standard platform line termination sequences can be used").

On Windows, that's the end of the story. I believe Unix is the same,
although it's possible that the #! line processing may rely on \n line
endings - I can't comment on this.

The question here is not about the scripts themselves, but rather
about how they are installed. My view is very simple:

- Scripts should be named with a .py extension
- On Windows, they should be installed with a .py extension
- On Unix, I'd be happy with a .py extension, but some Unix users hate
extensions on commands, and dispute this. (Hence either renaming or
wrapper suggestions :-)).
- There is some debate as to whether "wrappers" should be generated
(shell script on Unix, exe on Windows). I'd prefer not, some people
like them. Ideally, it should be user-configurable, but that's going
to be messy in the case of bdist_xxx installers.

--

___
Python tracker 

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



[issue9332] Document requirements for os.symlink usage on Windows

2010-08-01 Thread Ned Batchelder

Ned Batchelder  added the comment:

This breaks virtualenv3 on Python 3.2, which simply test for the existence of 
os.symlink, which then fails for lack of privileges.  Perhaps an 
os.can_symlink() method, returning a boolean?  It can request privileges if you 
like, but provides a simple test that lets scripts know whether they should 
attempt a symlink or not.

--
nosy: +nedbat

___
Python tracker 

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



[issue9333] Expose a way to enable os.symlink on Windows

2010-08-01 Thread Jason R. Coombs

Jason R. Coombs  added the comment:

I'm not sure the setting has to be restored. All that's being added is an 
attempt to assign the symlink privilege to the current process token.

I would consider to attempt to assign the privilege when the Python process 
starts up (or when os is loaded) - and if the privilege can't be assigned, 
remove the .symlink function from os. This change could be coupled with also 
removing .symlink if running on XP (rather than raising the 
NotImplementedError).

This approach would avoid the need to expose additional functions, and most 
importantly would work best with existing implementations -- namely, that if 
os.symlink exists, one can create symlinks.

--

___
Python tracker 

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



[issue9332] Document requirements for os.symlink usage on Windows

2010-08-01 Thread Jason R. Coombs

Jason R. Coombs  added the comment:

Ned, you bring up a good point. Please see #9333 for a discussion on the new 
os.symlink and privileges.

--

___
Python tracker 

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



[issue6858] This is a python file, apply syntax highlighting

2010-08-01 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Interesting idea.

--

___
Python tracker 

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



[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-01 Thread Theodore Turocy

Theodore Turocy  added the comment:

I was less than clear in what I wrote last night, Doug.  What I mean is that 
the idiom "::foo" for a long argument, instead of the more standard-looking 
"--foo", appears in the test suite.  This suggests to me that the intended 
behavior for the default help option should be to use a doubled prefix 
character in front of the long-form option.

For instance, if prefix_chars='+' and add_help=True, then the automatically 
provided help arguments will be '+h' and '++help'.

Certainly, if one explicitly adds an option '//myopt', we would not expect 
'::myopt' to also be accepted.  I'm talking here only about the options that 
argparse adds as a convenience.

--

___
Python tracker 

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



[issue8397] BZ2File doesn't protect against mixed iterator and read usage

2010-08-01 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Well I'm not the bz2 maintainer but I could take a look. The BZ2File 
implementation is generally a straight ripoff of the 2.x file object, with 
(de)compression calls added where necessary. I guess the ripoff was a one-shot 
effort and subsequent maintenance wasn't done.

It makes it quite a bit alien in the 3.x IO landscape, but until someone 
decides to rewrite it we'll have to live with that.

--

___
Python tracker 

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



[issue9447] Python 3.1.2 test suite segfaults on the alpha architecture

2010-08-01 Thread Tobias Klausmann

Tobias Klausmann  added the comment:

Nevermind, we messed this up ourselves. Sorry for the noise.

--
status: open -> closed

___
Python tracker 

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



[issue9400] multiprocessing.pool.AsyncResult.get() messes up exceptions

2010-08-01 Thread Ray.Allen

Ray.Allen  added the comment:

This is because when an subprocess.CalledProcessError is raised, the 
CalledProcessError instance is picked through a socket and then read by 
"parent" process, but in fact CalledProcessError instances cannot be picked 
correctly. Because CalledProcessError extends PyExc_BaseException, which 
defines a __reduce__ method, that special method cause the pickle load to call 
the exception type's __init__ method with packed self.args as arguments. So if 
a subclass of "Exception" needs to behave correctly in pickling, it should make 
self.args meats its __init__ method's function signature. That is, ensure the 
calling to:
  self.__init__(*self.args)
has no problem. 

But CalledProcessError doesn't meat this requirement. Here is a patch fixing 
the CalledProcessError.__init__ to call its base class's __init__ to store its 
arguments in self.args, which can fix this bug.

--
keywords: +patch
Added file: http://bugs.python.org/file18309/issue9400.diff

___
Python tracker 

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



[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-01 Thread Doug Hellmann

Doug Hellmann  added the comment:

I was actually surprised that prefix_chars didn't allow *any* of those 
characters to indicate an option.  For example, a program on Unix might use 
options that start with '-', but also support '/' as a prefix under Windows.  
If that's the intended behavior, that's OK, and maybe the docs can be made more 
specific.

It does, however, open the question of how to pick the prefix to use for 
automatically-generated options.  Maybe the current behavior is best after all, 
so the programmer disabling the '-' prefix character realizes they need to 
handle the help and version options explicitly.

--

___
Python tracker 

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



[issue8312] Add post/pre hooks for distutils commands

2010-08-01 Thread Éric Araujo

Éric Araujo  added the comment:

Should hooks be allowed for any command or just build and install?

--
keywords: +gsoc
resolution:  -> accepted
stage:  -> needs patch
type:  -> feature request
versions: +Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2

___
Python tracker 

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



[issue6439] Demo/embed/demo.c use of PySys_SetArgv() is invalid

2010-08-01 Thread Georg Brandl

Georg Brandl  added the comment:

Thanks, fixed in r83404.

--
nosy: +georg.brandl
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



[issue6520] urllib.urlopen does not have timeout parameter where as urllib2.urlopen has

2010-08-01 Thread Georg Brandl

Georg Brandl  added the comment:

Not an issue anymore for Python 3.

--
nosy: +georg.brandl
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



[issue4943] trace.CoverageResults.write_results can't write results file for modules loaded by __path__ manipulation

2010-08-01 Thread Georg Brandl

Georg Brandl  added the comment:

Should be fixed in r83405.

--
nosy: +georg.brandl
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



[issue9333] Expose a way to enable os.symlink on Windows

2010-08-01 Thread Jason R. Coombs

Jason R. Coombs  added the comment:

I'm attaching this patch for discussion: Here's what I had in mind for 
addressing the NotImplementedError when calling os.symlink on Windows XP. 
During the posixmodule initialization, if the system does not have the 
CreateSymbolicLink API call, the function is never added to the module. This 
will greatly simplify the tests and will limit the impact of this new 
capability on Windows XP.

This function could be extended to do the same for privilege testing.

Caution - I have not tested the patch, only written it for discussion purposes.

What do you think of this approach to hide the NotImplementedError? If there's 
no objection, I'll flesh out the complete implementation, update the tests and 
documentation, and resubmit another patch.

How about using this technique to hide the function when the privilege isn't 
present?

The one objection I could see w.r.t. privileges is the privilege could be 
granted after the module is initialized - meaning that a given process would 
need to have the privilege granted before importing the os module.

--
Added file: http://bugs.python.org/file18310/self-omitting-symlink.patch

___
Python tracker 

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



[issue8046] mmap.mmap as a context manager

2010-08-01 Thread Georg Brandl

Georg Brandl  added the comment:

Thanks, adapted to current trunk and applied in r83406.

--
nosy: +georg.brandl
resolution:  -> accepted
status: open -> closed

___
Python tracker 

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



[issue8602] documentation of bz2 module mildly erroneous

2010-08-01 Thread Georg Brandl

Georg Brandl  added the comment:

Now present in all maintained branches.

--
nosy: +georg.brandl
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



[issue6858] This is a python file, apply syntax highlighting

2010-08-01 Thread Tal Einat

Tal Einat  added the comment:

I'm +1 on adding such an option to the menu, if only to be able to highlight 
files including only Python code which don't happen to have the .py extension.

If support for files including not only Python code is important to anyone, 
some examples of such files would be very helpful. I've never seen such files 
and I don't know how common such uses are.

Supporting files with some Python code in between other stuff is a different 
matter. Non-Python code being wrongly highlighted may be fine, but we'll need 
to make sure that the syntax highlighting is robust enough to be able to 
withstand going through a lot of invalid syntax, and still correctly highlight 
most of the Python code found in between. If IDLE fails to highlight a file it 
could of course fail gracefully, give an error message and not highlight, so I 
don't foresee this causing any stability issues.

--

___
Python tracker 

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



[issue6858] This is a python file, apply syntax highlighting

2010-08-01 Thread Tal Einat

Tal Einat  added the comment:

In the last paragraph of my previous post, instead of "is a different matter" 
read "may be problematic".

--

___
Python tracker 

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



[issue2155] optparse.OptionGroup with_statement context handling

2010-08-01 Thread Georg Brandl

Georg Brandl  added the comment:

I agree with Sebastian that this is not a good use for a context manager.

--
nosy: +georg.brandl
resolution:  -> 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



[issue3757] threading.local doesn't support cyclic garbage collecting

2010-08-01 Thread Georg Brandl

Georg Brandl  added the comment:

Do you want to fix that?

--
assignee:  -> pitrou
nosy: +georg.brandl

___
Python tracker 

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



[issue5319] I/O error during one-liner fails to return OS error status

2010-08-01 Thread Georg Brandl

Georg Brandl  added the comment:

Python 2.6, from #5320:

$ python2.6 -c 'print 1, 2, 3' > /dev/full || echo error status
close failed in file object destructor:
Error in sys.excepthook:

Original exception was:
$

Python 3.1 doesn't output anything and also doesn't set an error status.

--
nosy: +georg.brandl

___
Python tracker 

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



[issue5320] I/O error during one-liner gives bad diagnostic (and fails to return OS error status)

2010-08-01 Thread Georg Brandl

Georg Brandl  added the comment:

I think this can be merged with #5319.

--
nosy: +georg.brandl
resolution:  -> duplicate
status: open -> closed
superseder:  -> I/O error during one-liner fails to return OS error status

___
Python tracker 

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



[issue3757] threading.local doesn't support cyclic garbage collecting

2010-08-01 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
assignee: pitrou -> 
keywords: +easy
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0

___
Python tracker 

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



[issue5258] addpackage in site.py fails hard on badly formed .pth files

2010-08-01 Thread Georg Brandl

Georg Brandl  added the comment:

Adding a patch that catches exceptions in a single addpackage() call and prints 
them.  I'd like to have more input though if this is a Good Thing(tm).

--
assignee:  -> r.david.murray
keywords: +patch
nosy: +georg.brandl, r.david.murray
Added file: http://bugs.python.org/file18311/site-traceback.diff

___
Python tracker 

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



[issue5551] os.path.ismount takes a cross-device symlink for a mountpoint

2010-08-01 Thread Georg Brandl

Georg Brandl  added the comment:

Thanks, should be fixed in r83408.

--
nosy: +georg.brandl
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



[issue9441] increase logging handlers test coverage

2010-08-01 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

I noticed that you use timedelta.total_seconds in secs which returns a float 
while no test covers fractional number of seconds.  While not a problem with 
your choice of tests, equality comparison of floating point values commonly 
leads to fragile tests.  I would suggest that you use 
delta//timedelta(seconds=1) instead of total_seconds().

--
components: +Tests -Library (Lib)
nosy: +belopolsky

___
Python tracker 

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



[issue8078] add more baud constants to termios

2010-08-01 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
keywords: +easy

___
Python tracker 

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



[issue8105] mmap crash on Windows with out of range file descriptor

2010-08-01 Thread Brian Curtin

Brian Curtin  added the comment:

Fixed in r83407 (py3k), r83409 (release31-maint), and r83410 (release27-maint).

--
assignee:  -> brian.curtin
components: +Extension Modules -Library (Lib)
resolution:  -> fixed
stage: patch review -> 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



[issue8994] pydoc does not support non-ascii docstrings

2010-08-01 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
components: +Library (Lib)

___
Python tracker 

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



[issue9448] test_io leaks memory

2010-08-01 Thread Mark Dickinson

New submission from Mark Dickinson :

regrest -L detects a memory leak in test_io, on OS X 10.6.4.


newton:py3k dickinsm$ ./python.exe Lib/test/regrtest.py -L test_io
test_io

Testing large file ops skipped on darwin.
It requires 2147483648 bytes and a long time.
Use 'regrtest.py -u largefile test_io' to run it.

Testing large file ops skipped on darwin.
It requires 2147483648 bytes and a long time.
Use 'regrtest.py -u largefile test_io' to run it.
1 test OK.
leaks Report Version:  2.0
Process: python.exe [71362]
Path:/Users/dickinsm/python/svn/py3k/python.exe
Load Address:0x1
Identifier:  python.exe
Version: ??? (???)
Code Type:   X86-64 (Native)
Parent Process:  bash [18674]

Date/Time:   2010-08-01 16:51:50.332 +0100
OS Version:  Mac OS X 10.6.4 (10F569)
Report Version:  6

Process 71362: 6679 nodes malloced for 14021 KB
Process 71362: 16 leaks for 2048 total leaked bytes.
Leak: 0x10138bb40  size=128  zone: DefaultMallocZone_0x1002f7000
0x 0x 0x434f4e44 0x DNOC
0x 0x8000 0x 0x 
0x 0x 0x 0x 
0x 0x 0x4d555458 0x XTUM
0x 0x0060 0x 0x `...
0x 0x 0x 0x 
0x 0x 0x 0x 
0x 0x 0xdbdbdbdb 0x0008dbdb 

(15 blocks of similar output omitted)

I'm investigating further...

--
assignee: ronaldoussoren
components: Extension Modules, Macintosh, Tests
messages: 112348
nosy: mark.dickinson, ronaldoussoren
priority: normal
severity: normal
stage: needs patch
status: open
title: test_io leaks memory
type: behavior
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



[issue9448] test_io leaks memory

2010-08-01 Thread Mark Dickinson

Mark Dickinson  added the comment:

test_constructor (test.test_io.CBufferedReaderTest)

appears to be one of the offending tests.

This is probably not an OS X specific problem.  Removing 'Mac' from components.

--
assignee: ronaldoussoren -> 
components:  -Macintosh

___
Python tracker 

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



[issue9448] test_io leaks memory

2010-08-01 Thread Mark Dickinson

Mark Dickinson  added the comment:

Minimal example to reproduce:  the script below exhausts my system memory in a 
minute or two.

import io
rawio = io.BytesIO(b"abc")
bufio = io.BufferedReader(rawio)
while True:
bufio.__init__(rawio)

--

___
Python tracker 

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



[issue9448] test_io leaks memory

2010-08-01 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Can you try the following patch:

diff -r 962e1a7a40fd Modules/_io/bufferedio.c
--- a/Modules/_io/bufferedio.c  Sun Aug 01 17:30:56 2010 +0200
+++ b/Modules/_io/bufferedio.c  Sun Aug 01 18:39:39 2010 +0200
@@ -636,6 +636,8 @@ _buffered_init(buffered *self)
 return -1;
 }
 #ifdef WITH_THREAD
+if (self->lock)
+PyThread_free_lock(self->lock);
 self->lock = PyThread_allocate_lock();
 if (self->lock == NULL) {
 PyErr_SetString(PyExc_RuntimeError, "can't allocate read lock");

--
nosy: +pitrou

___
Python tracker 

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



[issue9448] test_io leaks memory

2010-08-01 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
type: behavior -> resource usage
versions: +Python 2.6, Python 2.7, Python 3.1

___
Python tracker 

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



[issue9449] glibc detected *** /usr/bin/python: corrupted double-linked list

2010-08-01 Thread Nikolaus Rath

New submission from Nikolaus Rath :

$ python --version
Python 2.6.5

$ pylint --version
pylint 0.21.1, 
astng 0.20.1, common 0.50.3
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
[GCC 4.4.3]

$ pylint pylint_crasher.py 
* Module pylint_crasher
R0903: 62:Config: Too few public methods (0/2)
[]
Global evaluation
-
Your code has been rated at 7.33/10

*** glibc detected *** /usr/bin/python: corrupted double-linked list: 
0x09f611d8 ***

[Program hangs here]


Since pylint seems to ship with only .py files, I suppose this has to be a bug 
in the Python interpreter.

--
components: Interpreter Core
files: pylint_crasher.py
messages: 112352
nosy: Nikratio
priority: normal
severity: normal
status: open
title: glibc detected *** /usr/bin/python: corrupted double-linked list
type: crash
versions: Python 2.6
Added file: http://bugs.python.org/file18312/pylint_crasher.py

___
Python tracker 

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



[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-01 Thread Steven Bethard

Steven Bethard  added the comment:

It is intentional that you have to specify both "/foo" and "+foo" if you want 
them to be aliases for the same argument. A common use case for prefix_chars is 
to define "+x" and "-x" options, which usually mean different things.

As far as the current issue, I believe the current behavior is buggy - an 
argument that you can never use is added to the parser automatically:

>>> parser = argparse.ArgumentParser(prefix_chars='+')
Traceback (most recent call last):
  File "", line 1, in 
  File "/Users/bethard/Documents/projects/python/2.X/Lib/argparse.py", line 
1569, in __init__
help=_('show this help message and exit'))
  File "/Users/bethard/Documents/projects/python/2.X/Lib/argparse.py", line 
1246, in add_argument
kwargs = self._get_optional_kwargs(*args, **kwargs)
  File "/Users/bethard/Documents/projects/python/2.X/Lib/argparse.py", line 
1369, in _get_optional_kwargs
raise ValueError(msg % tup)
ValueError: invalid option string '-h': must start with a character '+'

Yes you could explicitly specify add_help=True, but I think using an 
appropriate prefix character is actually the right behavior.

--

___
Python tracker 

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



[issue9448] test_io leaks memory

2010-08-01 Thread Mark Dickinson

Mark Dickinson  added the comment:

Thanks!  That fixes all the test_io leaks I was seeing.

--

___
Python tracker 

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



[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-01 Thread Doug Hellmann

Doug Hellmann  added the comment:

Explicitly specifying aliases makes sense, it just wasn't clear that was the 
intent from the existing documentation.  So, I don't think the behavior needs 
to change, but a doc update might help.

--

___
Python tracker 

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



[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-01 Thread Steven Bethard

Steven Bethard  added the comment:

A doc patch would also be welcome, but I do think it's a bug that 
"ArgumentParser(prefix_chars='+')" throws an exception, and I think Ted's patch 
looks fine to me.

--

___
Python tracker 

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



[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-01 Thread Doug Hellmann

Doug Hellmann  added the comment:

Sorry I'm not being clear: I do like the patch, I think the exception should 
not be raised.

--

___
Python tracker 

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



[issue9448] test_io leaks memory

2010-08-01 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Thanks. Fixed in r83411 (py3k), r83412 (2.7), r83413 (3.1).

--
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



  1   2   >