[issue9598] untabify.py fails on files that contain non-ascii characters

2010-08-18 Thread Popa Claudiu

Popa Claudiu pcmantic...@gmail.com added the comment:

Hello.
As it seems, untabify.py opens the file using the builtin function open, making 
the call error-prone when encountering non-ascii character. The proper handling 
should be done by using open from codecs library, specifying the encoding as 
argument.
e.g. codecs.open(filename, mode, 'utf-8') instead of simply open(filename, 
mode).

--
nosy: +Popa.Claudiu

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



[issue9631] Python 2.7 installation issue for Linux Red Hat 4.1

2010-08-18 Thread Prakash Palanivel

Prakash Palanivel spprakash...@gmail.com added the comment:

After complete the installation the below error message was displayed.Kindly 
check and revert.
./python -E ./setup.py install \
--prefix=/usr/local/python-2.7 \
--install-scripts=/usr/local/python-2.7/bin \
--install-platlib=/usr/local/python-2.7/lib/python2.7/lib-dynload \
--root=/
make: execvp: ./python: Text file busy
make: *** [sharedinstall] Error 127

--
status: closed - open

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



[issue5215] change value of local variable in debug

2010-08-18 Thread Markus Pröller

Markus Pröller mproel...@googlemail.com added the comment:

Hello,

I changed pdb.py to the file I added in the attachment (I just used the given 
patch pdb_cache_f_locals.patch)

Then I created the following file:

import pdb

def function_1(number):
stack_1 = number
function_2(stack_1)

def function_2(number):
stack_2 = number + 1
function_3(stack_2)

def function_3(number):
stack_3 = number + 1
pdb.set_trace()
print stack_3

function_1(1)

and run that file with python -i filename
This is my python version:
---
Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on
win32
Type help, copyright, credits or license for more information.

-
And here is what I did in the pdb session:
 c:\tst_pdb.py(14)function_3()
- print stack_3
(Pdb) !print stack_3
3
(Pdb) u
 c:\tst_pdb.py(9)function_2()
- function_3(stack_2)
(Pdb) l
  4 stack_1 = number
  5 function_2(stack_1)
  6
  7 def function_2(number):
  8 stack_2 = number + 1
  9  - function_3(stack_2)
 10
 11 def function_3(number):
 12 stack_3 = number + 1
 13 pdb.set_trace()
 14 print stack_3
(Pdb) !print stack_2
*** NameError: name 'stack_2' is not defined
(Pdb) d
 c:\tst_pdb.py(14)function_3()
- print stack_3
(Pdb) l
  9 function_3(stack_2)
 10
 11 def function_3(number):
 12 stack_3 = number + 1
 13 pdb.set_trace()
 14  - print stack_3
 15
 16 function_1(1) [EOF]
(Pdb) !stack_3 = 125 #this works now with the patch
(Pdb) !print stack_3
125
(Pdb)

When I use my original pdb.py, I can print variable stack_2 when I move one 
frame up, but can't change the value of these local variables.

--
Added file: http://bugs.python.org/file18563/pdb.py

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



[issue5215] change value of local variable in debug

2010-08-18 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

Ah, the patch is buggy; it was corrected with r71019 which indeed fixes up 
and down. You could try to apply this change to your local copy.

Also consider upgrading to 2.7, where everything works as expected...

--

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



[issue9631] Python 2.7 installation issue for Linux Red Hat 4.1

2010-08-18 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

What file system is this on?

--

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



[issue9631] Python 2.7 installation issue for Linux Red Hat 4.1

2010-08-18 Thread Prakash Palanivel

Prakash Palanivel spprakash...@gmail.com added the comment:

After Installed the following error was through:

PYTHONPATH=/usr/local/Python-2.7/lib/python2.7   \
./python -Wi -tt /usr/local/Python-2.7/lib/python2.7/compileall.py \
-d /usr/local/Python-2.7/lib/python2.7 -f \
-x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
/usr/local/Python-2.7/lib/python2.7
Traceback (most recent call last):
  File /usr/local/Python-2.7/lib/python2.7/compileall.py, line 17, in module
import struct
  File /usr/local/Python-2.7/lib/python2.7/struct.py, line 1, in module
from _struct import *
ImportError: No module named _struct
make: *** [libinstall] Error 1

--

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



[issue672656] securing pydoc server

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

This looks weird, a security issue with a low priority???

--
nosy: +BreamoreBoy

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



[issue9631] Python 2.7 installation issue for Linux Red Hat 4.1

2010-08-18 Thread Senthil Kumaran

Senthil Kumaran orsent...@gmail.com added the comment:

spprakash, do the following, in your python2.7 checkout (or download):
do 
make distclean
./configure
make
make install

If there is any failure in make/make install of the above steps, please paste 
that error message and also provide the file system type
(run  df -T)

--
nosy: +orsenthil

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



[issue5215] change value of local variable in debug

2010-08-18 Thread Markus Pröller

Markus Pröller mproel...@googlemail.com added the comment:

Okay,

thanks for giving me the correct patch, but I still face the following problem 
(with the same code snippet):

 c:\tst_pdb.py(14)function_3()
- print stack_3
(Pdb) l
  9 function_3(stack_2)
 10
 11 def function_3(number):
 12 stack_3 = number + 1
 13 pdb.set_trace()
 14  - print stack_3
 15
 16 function_1(1) [EOF]
(Pdb) stack_3
3
(Pdb) !stack_3 = 177
(Pdb) !print stack_3
177
(Pdb) u
 c:\tst_pdb.py(9)function_2()
- function_3(stack_2)
(Pdb) l
  4 stack_1 = number
  5 function_2(stack_1)
  6
  7 def function_2(number):
  8 stack_2 = number + 1
  9  - function_3(stack_2)
 10
 11 def function_3(number):
 12 stack_3 = number + 1
 13 pdb.set_trace()
 14 print stack_3
(Pdb) !print stack_2
2
(Pdb) !stack_2 = 144
(Pdb) !print stack_2
144
(Pdb) d
 c:\tst_pdb.py(14)function_3()
- print stack_3
(Pdb) l
  9 function_3(stack_2)
 10
 11 def function_3(number):
 12 stack_3 = number + 1
 13 pdb.set_trace()
 14  - print stack_3
 15
 16 function_1(1) [EOF]
(Pdb) stack_3
3
(Pdb) u
 c:\tst_pdb.py(9)function_2()
- function_3(stack_2)
(Pdb) !print stack_2
2
(Pdb)

I set the value of stack_3 to 177, go one frame up, do something, go one frame 
down and stack_3 is 3 again (not 177 as expected)

--

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



[issue9433] regrtest.py -j 2 doesn't work on Windows: remove close_fds=True on Windows

2010-08-18 Thread Tim Golden

Tim Golden m...@timgolden.me.uk added the comment:

I can confirm that the patched regrtest runs ok on WinXP.

--

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



[issue8622] Add PYTHONFSENCODING environment variable

2010-08-18 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

STINNER Victor wrote:
 
 STINNER Victor victor.stin...@haypocalc.com added the comment:
 
 Here you have a patch. It adds tests in test_sys.
 
 The tests are skipped on a non-ascii Python executable path because of #8611 
 (see #9425).

Thanks for the patch.

A couple of notes:

 * The command line -h explanation is missing from the patch.

 * The documentation should mention that the env var is only
   read once; subsequent changes to the env var are not seen
   by Python

 * If the codec lookup fails, Python should either issue a warning
   and then ignore the env var (using the get_codeset() API).

 * Unrelated to the env var, but still important: if get_codeset()
   does not return a known codec, Python should issue a warning
   before falling back to the default setting. Otherwise, a
   Python user will never know that there's an issue and this
   make debugging a lot harder.

We should also add a new sys.setfilesystemencoding()
function to make changes possible after Python startup. This
would have to go on a separate ticket, though. Or is there
some concept preventing this ?

--

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



[issue5215] change value of local variable in debug

2010-08-18 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

Right, this last problem still exists with 2.7 or 3.1. Please open a new 
tracker item for it, and let's close this one.

--

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



[issue8622] Add PYTHONFSENCODING environment variable

2010-08-18 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 The command line -h explanation is missing from the patch.

done

 The documentation should mention that the env var is only
 read once; subsequent changes to the env var are not seen
 by Python

I copied the PYTHONIOENCODING doc which doesn't mention that. Does Python 
re-read other environment variables at runtime? Anyway, I changed the doc to:

+   If this is set before running the intepreter, it overrides the encoding used
+   for the filesystem encoding (see :func:`sys.getfilesystemencoding`).

I also changed PYTHONIOENCODING doc. Is it better?

 If the codec lookup fails, Python should either issue a warning

Ok, done. I patched also get_codeset() and get_codec_name() to always set a 
Python error.

 ... and then ignore the env var (using the get_codeset() API).

Good idea, done.

 Unrelated to the env var, but still important: if get_codeset()
 does not return a known codec, Python should issue a warning
 before falling back to the default setting. Otherwise, a
 Python user will never know that there's an issue and this
 make debugging a lot harder.

It does already write a message to stderr, but it doesn't explain why it failed.

I changed initfsencoding() to display two messages on get_codeset() error. 
First explain why get_codeset() failed (with the Python error) and then say 
that we fallback to utf-8.

Full example (PYTHONFSENCODING error and simulated get_codeset() error):
---
PYTHONFSENCODING is not a valid encoding:
LookupError: unknown encoding: xxx
Unable to get the locale encoding:
ValueError: CODESET is not set or empty
Unable to get the filesystem encoding: fallback to utf-8
---

 We should also add a new sys.setfilesystemencoding() ...

No, I plan to REMOVE this function. sys.setfilesystemencoding() is dangerous 
because it introduces a lot of inconsistencies: this function is unable to 
reencode all filenames in all objects (eg. Python is unable to find filenames 
in user objects or 3rd party libraries). Eg. if you change the filesystem from 
utf8 to ascii, it will not be possible to use existing non-ascii (unicode) 
filenames: they will raise UnicodeEncodeError. As sys.setdefaultencoding() in 
Python2, I think that sys.setfilesystemencoding() is the root of evil :-)

At startup, initfsencoding() sets the filesystem encoding using the locale 
encoding. Even for the startup process (with very few objects), it's very hard 
to find all filenames:
 - sys.path
 - sys.meta_path
 - sys.modules
 - sys.executable
 - all code objects
 - and I'm not sure that the list is complete

See #9630 for the details.

To remove sys.setfilesystemencoding(), I already patched PEP 383 tests (r84170) 
and I will open a new issue. But it's maybe better to commit both changes 
(remove the function and PYTHONFSENCODING) at the same time.

--
Added file: http://bugs.python.org/file18564/pythonfsencoding-2.patch

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



[issue9632] Remove sys.setfilesystemencoding()

2010-08-18 Thread STINNER Victor

New submission from STINNER Victor victor.stin...@haypocalc.com:

sys.setfilesystemencoding() function is dangerous because it introduces a lot 
of inconsistencies: this function is unable to reencode all filenames in all 
objects (eg. Python is unable to find filenames in user objects or 3rd party 
libraries). Eg. if you change the filesystem from utf8 to ascii, it will not be 
possible to use existing non-ascii (unicode) filenames: they will raise 
UnicodeEncodeError.

As sys.setdefaultencoding() in Python2, I think that 
sys.setfilesystemencoding() is the root of evil :-) PYTHONFSENCODING (issue 
#8622) is the right solution to set the filesysteme encoding.

Attached patch removes sys.setfilesystemencoding().

--
components: Library (Lib), Unicode
messages: 114211
nosy: haypo
priority: normal
severity: normal
status: open
title: Remove sys.setfilesystemencoding()
versions: Python 3.2

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



[issue9632] Remove sys.setfilesystemencoding()

2010-08-18 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@haypocalc.com:


--
keywords: +patch
nosy: +Arfrever, lemburg, pitrou
Added file: 
http://bugs.python.org/file18565/remove_sys_setfilesystemencoding.patch

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



[issue8622] Add PYTHONFSENCODING environment variable

2010-08-18 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@haypocalc.com:


Removed file: http://bugs.python.org/file18562/pythonfsencoding.patch

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



[issue8622] Add PYTHONFSENCODING environment variable

2010-08-18 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 To remove sys.setfilesystemencoding(), ... I will open a new issue

done, issue #9632

--

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



[issue9633] pdb go stack up/down

2010-08-18 Thread Markus Pröller

New submission from Markus Pröller mproel...@googlemail.com:

Hello,

with python 2.7 I encounter the following problem:
I have created the following sample script:

import pdb

def function_1(number):
stack_1 = number
function_2(stack_1)

def function_2(number):
stack_2 = number + 1
function_3(stack_2)

def function_3(number):
stack_3 = number + 1
pdb.set_trace()
print stack_3

function_1(1)

This is what I have done in the pdb session:
 c:\tst_pdb.py(14)function_3()
- print stack_3
(Pdb) l
  9 function_3(stack_2)
 10
 11 def function_3(number):
 12 stack_3 = number + 1
 13 pdb.set_trace()
 14  - print stack_3
 15
 16 function_1(1) [EOF]
(Pdb) stack_3
3
(Pdb) !stack_3 = 177
(Pdb) !print stack_3
177
(Pdb) u
 c:\tst_pdb.py(9)function_2()
- function_3(stack_2)
(Pdb) l
  4 stack_1 = number
  5 function_2(stack_1)
  6
  7 def function_2(number):
  8 stack_2 = number + 1
  9  - function_3(stack_2)
 10
 11 def function_3(number):
 12 stack_3 = number + 1
 13 pdb.set_trace()
 14 print stack_3
(Pdb) !print stack_2
2
(Pdb) !stack_2 = 144
(Pdb) !print stack_2
144
(Pdb) d
 c:\tst_pdb.py(14)function_3()
- print stack_3
(Pdb) l
  9 function_3(stack_2)
 10
 11 def function_3(number):
 12 stack_3 = number + 1
 13 pdb.set_trace()
 14  - print stack_3
 15
 16 function_1(1) [EOF]
(Pdb) stack_3
3
(Pdb) u
 c:\tst_pdb.py(9)function_2()
- function_3(stack_2)
(Pdb) !print stack_2
2
(Pdb)

I walked through the stack and changed the values of the variables stack_x but 
the values weren't saved when I moved one frame up/down

--
components: Library (Lib)
messages: 114213
nosy: Markus.Pröller
priority: normal
severity: normal
status: open
title: pdb go stack up/down
type: behavior
versions: Python 2.7

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



[issue675976] mhlib does not obey MHCONTEXT env var

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

This won't happen directly as mhlib has been removed from py3k, but presumably 
the patch could be reworked to apply to the mailbox module where the MH class 
now lives.

--
nosy: +BreamoreBoy
versions: +Python 3.2 -Python 2.7

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



[issue678250] test_mmap failling on AIX

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Closed as no response to msg81716.

--
nosy: +BreamoreBoy
resolution:  - out of date
status: open - closed

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



[issue678264] test_resource fails when file size is limited

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Closed as no response to msg81850.

--
nosy: +BreamoreBoy

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



[issue683938] HTMLParser attribute parsing bug

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Closed as fixed in r23322.

--
nosy: +BreamoreBoy
resolution:  - fixed
status: open - closed

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



[issue9633] pdb go stack up/down

2010-08-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Thank you for the report. I don’t know pdb much, but I assume you have checked 
the doc to make sure this is indeed a bug. Can you test it with 3.1 and 3.2 too?

Bug tracker tip: You can find if a core developer is interested in a module in 
Misc/maintainers.rst and make them nosy (or assign to them, if there is a star 
near their name, like in Georg’s case).

--
assignee:  - georg.brandl
nosy: +eric.araujo, georg.brandl

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



[issue755660] allow HTMLParser to continue after a parse error

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Attached a patch for py3k where the file name has changed.  Doc changes could 
be based on the comment added to the error method in the patch.  I don't think 
a unit test is needed but could easily be persuaded otherwise.

--
keywords: +patch
nosy: +BreamoreBoy
stage: unit test needed - patch review
versions: +Python 3.2 -Python 2.7
Added file: http://bugs.python.org/file18566/parser.diff

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



[issue9631] Python 2.7 installation issue for Linux gcc-4.1.0-3 (Fedora Core 5?)

2010-08-18 Thread Dave Malcolm

Dave Malcolm dmalc...@redhat.com added the comment:

(BTW, the versioning seems slightly misleading: (Red Hat 4.1.0-3) refers to 
the version of GCC, not of the operating system.

You appear to be running gcc-4.1.0-3, which I believe was shipped in Fedora 
Core 5.

Updating title metadata of the bug accordingly)

--
nosy: +dmalcolm
title: Python 2.7 installation issue for Linux Red Hat 4.1 - Python 2.7 
installation issue for Linux gcc-4.1.0-3 (Fedora Core 5?)

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



[issue694374] Recursive regular expressions

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Closing because of quote from msg83993 Another feature request that I've 
decided not to consider any further is recursive regular expressions. There are 
other tools available for that kind of thing, and I don't want the re module to 
go the way of Perl 6's rules; such things belong elsewhere, IMHO.

--
nosy: +BreamoreBoy

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



[issue706263] print raises exception when no console available

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Works fine with pythonw on 2.6 and 2.7.

--
nosy: +BreamoreBoy
resolution:  - out of date
status: open - closed

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



[issue502236] Asynchronous exceptions between threads

2010-08-18 Thread A.M. Kuchling

A.M. Kuchling li...@amk.ca added the comment:

I'll close this issue, then.  Maybe something fancier needs to be built atop 
the AsyncExc() function to allow a single thread to terminate all other 
threads, but unless someone actually presents a current use case (or a PEP), 
there seems little to do.  Please re-open if there *is* something concrete to 
do.

--
resolution:  - out of date
status: open - closed

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



[issue706263] print raises exception when no console available

2010-08-18 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

No, nothing changed in this aspect since python 2.2.
With 2.7, I get the same error.txt file containing the Bad file descriptor 
message.

--
resolution: out of date - 
status: closed - open

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



[issue1524938] PEP MemoryError with a lot of available memory gc not called

2010-08-18 Thread Itai i

Itai i itai...@gmail.com added the comment:

Hi all,

I'm joining Mark's assertion - this is a real issue for me too. I've stumbled 
into this problem too. 
I have a numpy/scipy kind of application (about 6000+ lines so far) which needs 
to allocate alot of memory for statistics derived from real life data which 
is then transformed a few times by different algorithms (which means allocating 
more memory, but dumping the previous objects).

Currently I'm getting MemoryError when I try to use the entire dataset, both on 
linux and on windows, python 2.5 on 64bit 4gb mem machine. (The windows python 
is a 32bit version though cause it needs to be compatible with some dlls. This 
is the same reason I use python 2.5)

--
nosy: +Itai.i
versions:  -Python 2.7, Python 3.1

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



[issue2521] ABC caches should use weak refs

2010-08-18 Thread Daniel Stutzbach

Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:

Benjamin,

Thanks for the feedback.  Since you only commented on the test case, may I 
assume that the fix itself looked good to you?

I will work on revising the test case based on your comments.  Since I ran into 
the bug while working with the ABCs in the collections module, that biased my 
thinking when writing the test.  :-)  

I needed to define__len__ because it's an abstract method in the ABC I used in 
the test (collections.Sized).  I found that overriding it again in a 
sub-sub-class and calling it were necessary to trigger all of the ABC machinery 
leading to the leak.

--

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



[issue706406] fix bug #685846: raw_input defers signals

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Can this still be reproduced on an appropriate box or can it be closed or what?

--
nosy: +BreamoreBoy

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



[issue2521] ABC caches should use weak refs

2010-08-18 Thread Daniel Stutzbach

Changes by Daniel Stutzbach dan...@stutzbachenterprises.com:


--
components: +Library (Lib) -Interpreter Core
versions:  -Python 2.6

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



[issue708007] TelnetPopen3, TelnetBase, Expect split

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Is there any interest in seeing the patch updated for py3k?  Any comments from 
Windows users since Pexpect uses pty which is Linux only?

--
nosy: +BreamoreBoy
stage:  - patch review
type:  - feature request
versions: +Python 3.2 -Python 2.6

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



[issue706406] fix bug #685846: raw_input defers signals

2010-08-18 Thread Ray.Allen

Ray.Allen ysj@gmail.com added the comment:

I seems this has been fixed already, at least on my python 2.7 on linux.

--
nosy: +ysj.ray

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



[issue1524938] PEP MemoryError with a lot of available memory gc not called

2010-08-18 Thread Ray.Allen

Ray.Allen ysj@gmail.com added the comment:

How about calling gc.collect() explicitly in the loop?

--
nosy: +ysj.ray

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



[issue9633] pdb go stack up/down

2010-08-18 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

The problem here is that changes in the locals are only saved back to the frame 
when leaving the trace function, and up/down don't do that.

This could be fixed by making Pdb.curframe_locals a dictionary for all visited 
frames while interaction is running.  I'll look into it for 3.2.

--
versions: +Python 3.2 -Python 2.7

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



[issue706263] print raises exception when no console available

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

@Amaury I tested with Windows Vista and the latest 2.6 and 2.7 maintainance 
releases, what did you use?

--

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



[issue2521] ABC caches should use weak refs

2010-08-18 Thread Daniel Stutzbach

Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:

Attached is a new test case, based on Benjamin's comments.

--
Added file: http://bugs.python.org/file18567/leak_test2.patch

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



[issue713169] test_pty fails on HP-UX and AIX when run after test_openpty

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Closed as suggested in msg81496.

--
nosy: +BreamoreBoy
resolution:  - out of date
status: open - closed

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



[issue730467] Not detecting AIX_GENUINE_CPLUSPLUS

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Can an AIX user state whether or not this is still an issue.  The current patch 
is a one liner.  A patch that looks in all the known
directories was promised but never delivered.

--
nosy: +BreamoreBoy
stage:  - patch review
type:  - behavior
versions: +Python 2.7, Python 3.1, Python 3.2

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



[issue731991] find correct socklen_t type

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Closing as no reply to msg110333.

--
resolution:  - out of date
status: open - closed

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



[issue1524938] PEP MemoryError with a lot of available memory gc not called

2010-08-18 Thread Itai

Itai itai...@gmail.com added the comment:

Sure, that's what i'll do for now. Its an ok workaround for me, I was just
posting to support the
notion that its a bug (lets call it usability bug) and something that people
out there do run into.

There's also a scenerio where you couldn't use this workaround - for example
use a library
precompiled in a pyd..

On Wed, Aug 18, 2010 at 6:13 PM, Ray.Allen rep...@bugs.python.org wrote:


 Ray.Allen ysj@gmail.com added the comment:

 How about calling gc.collect() explicitly in the loop?

 --
 nosy: +ysj.ray

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue1524938
 ___


--
Added file: http://bugs.python.org/file18568/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1524938
___div dir=ltrSure, that#39;s what i#39;ll do for now. Its an ok workaround 
for me, I was just posting to support the brnotion that its a bug (lets call 
it usability bug) and something that people out there do run into.br
brThere#39;s also a scenerio where you couldn#39;t use this workaround - 
for example use a library brprecompiled in a pyd.. brbrdiv 
class=gmail_quoteOn Wed, Aug 18, 2010 at 6:13 PM, Ray.Allen span 
dir=ltrlt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;/span 
wrote:br
blockquote class=gmail_quote style=margin: 0pt 0pt 0pt 0.8ex; border-left: 
1px solid rgb(204, 204, 204); padding-left: 1ex;br
Ray.Allen lt;a href=mailto:ysj@gmail.com;ysj@gmail.com/agt; 
added the comment:br
br
How about calling gc.collect() explicitly in the loop?br
br
--br
nosy: +ysj.raybr
divdiv/divdiv class=h5br
___br
Python tracker lt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;br
lt;a href=http://bugs.python.org/issue1524938; 
target=_blankhttp://bugs.python.org/issue1524938/agt;br
___br
/div/div/blockquote/divbr/div
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8781] 32-bit wchar_t doesn't need to be unsigned to be usable (I think)

2010-08-18 Thread Daniel Stutzbach

Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:

Attached is a patch implementing the change agreed upon in the earlier 
discussion.  This will allow wchar_t - Py_UNICODE conversions to use memcpy 
on systems where wchar_t and Py_UNICODE have the same size but different signs 
(e.g., Linux).

--
keywords: +needs review, patch
stage: needs patch - patch review
Added file: http://bugs.python.org/file18569/issue8781.patch

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



[issue734176] Make Tkinter.py's nametowidget work with cloned menu widgets

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

A small simple patch that I see no problems with.

--
nosy: +BreamoreBoy
stage:  - patch review
type:  - feature request
versions: +Python 3.2 -Python 2.6, Python 2.7, Python 3.0, Python 3.1

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



[issue747320] rfc2822 formatdate functionality duplication

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Does this need to be addressed or can it be closed as out of date or what?

--
nosy: +BreamoreBoy

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



[issue748843] Let Email.Utils.parsedate use last 3 timetuple items

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Closed as no reply to msg81501.

--
nosy: +BreamoreBoy
resolution:  - wont fix
status: open - closed

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



[issue8781] 32-bit wchar_t doesn't need to be unsigned to be usable (I think)

2010-08-18 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

Daniel Stutzbach wrote:
 
 Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:
 
 Attached is a patch implementing the change agreed upon in the earlier 
 discussion.  This will allow wchar_t - Py_UNICODE conversions to use memcpy 
 on systems where wchar_t and Py_UNICODE have the same size but different 
 signs (e.g., Linux).

Please make sure that those places where you replaced HAVE_USABLE_WCHAR_T
are enclosed in

#ifdef HAVE_WCHAR_H
...
#endif

sections. For unicodeobject.c that's true, not sure about the other
places.

--

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



[issue749722] isinstance and weakref proxies.

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Closed as no reply to msg109729.

--
resolution:  - out of date
status: open - closed

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



[issue734176] Make Tkinter.py's nametowidget work with cloned menu widgets

2010-08-18 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

Can someone post a script demonstrating the proposed feature?  Is clones of 
clones issue mentioned by OP resolved in the latest patch?

Given that nobody commented on this issue for 7 years, I am skeptical about the 
utility of this feature.

--
nosy: +belopolsky

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



[issue755670] improve HTMLParser attribute processing regexps

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

There are messages both for and against the patch which contains a unit test.  
Can we have a statement from a knowledgeable HTML person as to whether the 
patch should be accepted or rejected.

--
nosy: +BreamoreBoy
stage: unit test needed - patch review
versions: +Python 3.2 -Python 2.7

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



[issue8781] 32-bit wchar_t doesn't need to be unsigned to be usable (I think)

2010-08-18 Thread Daniel Stutzbach

Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:

Thanks.  I dug into that a little just now, and it turns out to happen 
automatically.

If ./configure doesn't define HAVE_WCHAR_H then it also will not define 
SIZEOF_WCHAR_T.  If SIZEOF_WCHAR_T is not defined, the preprocessor will treat 
it as 0 causing it to be unequal to Py_UNICODE_SIZE.  In other words, if 
HAVE_WCHAR_H is not defined then SIZEOF_WCHAR_T == Py_UNICODE_SIZE will be 
false.

--

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



[issue761888] popen2.Popen3 and popen2.Popen4 leaks filedescriptors

2010-08-18 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
resolution:  - out of date
status: open - closed

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



[issue816059] popen2 work, fixes bugs 768649 and 761888

2010-08-18 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
resolution:  - out of date
status: open - closed

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



[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2010-08-18 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

Is anyone still interested in moving this forward?

--

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



[issue708007] TelnetPopen3, TelnetBase, Expect split

2010-08-18 Thread Guido van Rossum

Changes by Guido van Rossum gu...@python.org:


--
nosy:  -gvanrossum

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



[issue762920] API Functions for PyArray

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Closed as no reply to msg106638.

--
nosy: +BreamoreBoy
resolution:  - out of date
status: open - closed

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



[issue766910] fix one or two bugs in trace.py

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Is there any interest in this issue?

--
nosy: +BreamoreBoy
type:  - behavior
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.3

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



[issue749722] isinstance and weakref proxies.

2010-08-18 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

It would be possible now, though perhaps inadvisable, to proxy isinstance and 
issubclass.

--
nosy: +benjamin.peterson
resolution: out of date - 
status: closed - open
versions: +Python 3.2

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



[issue762920] API Functions for PyArray

2010-08-18 Thread Benjamin Peterson

Changes by Benjamin Peterson benja...@python.org:


--
resolution: out of date - rejected

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



[issue8781] 32-bit wchar_t doesn't need to be unsigned to be usable (I think)

2010-08-18 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

Daniel Stutzbach wrote:
 
 Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:
 
 Thanks.  I dug into that a little just now, and it turns out to happen 
 automatically.
 
 If ./configure doesn't define HAVE_WCHAR_H then it also will not define 
 SIZEOF_WCHAR_T.  If SIZEOF_WCHAR_T is not defined, the preprocessor will 
 treat it as 0 causing it to be unequal to Py_UNICODE_SIZE.  In other words, 
 if HAVE_WCHAR_H is not defined then SIZEOF_WCHAR_T == Py_UNICODE_SIZE will be 
 false.

Ok, thanks for checking.

Other than that detail, I think the patch looks good.

--
title: 32-bit wchar_t doesn't need to be unsigned to be usable  (I think) - 
32-bit wchar_t doesn't need to be unsigned to be usable (I think)

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



[issue767645] incorrect os.path.supports_unicode_filenames

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

There are at least three messages stating that 
os.path.supports_unicode_filenames should go so can someone please provide a 
definitive statement regarding its future.

--
nosy: +BreamoreBoy

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



[issue775321] plistlib error handling

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Closing as no reply to msg110335.

--
resolution:  - wont fix
status: open - closed

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



[issue783528] Inconsistent results with super and __getattribute__

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Closed as no response to msg81870.

--
nosy: +BreamoreBoy

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



[issue786827] IDLE starts with no menus (Cygwin)

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Is this still an issue with later versions of Python and Cygwin?

--
nosy: +BreamoreBoy
stage: unit test needed - needs patch
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

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



[issue788931] resolving relative paths for external entities with xml.sax

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

I'll close in a couple of weeks unless someone has a good reason to keep it 
open.

--
nosy: +BreamoreBoy
status: open - pending

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



[issue9634] Add timeout parameter to Queue.join()

2010-08-18 Thread Kelly Lucas

New submission from Kelly Lucas kdlu...@gmail.com:

I've seen quite a few people requesting to add a timeout value to the 
Queue.join() method, as it seems like a nice feature to have when waiting for 
queue's to finish.

Please add a feature so that Queue.join() will issue a 
self.all_tasks_done.release() when the timeout value is reached.

--
components: Library (Lib)
messages: 114257
nosy: kdlucas
priority: normal
severity: normal
status: open
title: Add timeout parameter to Queue.join()
versions: Python 2.7

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



[issue793069] Add --remove-source option

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

I don't see this as particularly useful but other opinions are welcome.

--
nosy: +BreamoreBoy
versions:  -Python 2.7, Python 3.1

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



[issue793069] Add --remove-source option

2010-08-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

New features go into distutils2, not distutils.

I’m -0 on this one.

--
components: +Distutils2 -Distutils
versions: +Python 2.5, Python 2.6, Python 2.7, Python 3.1

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



[issue9634] Add timeout parameter to Queue.join()

2010-08-18 Thread Kelly Lucas

Changes by Kelly Lucas kdlu...@gmail.com:


--
versions: +Python 3.1 -Python 2.7

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



[issue9634] Add timeout parameter to Queue.join()

2010-08-18 Thread Brian Curtin

Changes by Brian Curtin cur...@acm.org:


--
stage:  - needs patch
type:  - feature request
versions: +Python 3.2 -Python 3.1

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



[issue592703] HTTPS does not handle pipelined requests

2010-08-18 Thread Senthil Kumaran

Senthil Kumaran orsent...@gmail.com added the comment:

This needs investigation. Don't close.

--
nosy: +orsenthil

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



[issue798520] os.popen with invalid mode differs on Windows and POSIX

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Closed as os.popen deprecated in favour of subprocess.popen.

--
nosy: +BreamoreBoy
resolution:  - wont fix
status: open - closed

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



[issue1524938] PEP MemoryError with a lot of available memory gc not called

2010-08-18 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

Anybody *really* interested in this issue: somebody will need to write a PEP, 
get it accepted, and provide an implementations. Open source is about 
scratching your own itches: the ones affected by a problems are the ones which 
are also expected to provide solutions.

--

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



[issue9634] Add timeout parameter to Queue.join()

2010-08-18 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

Can you provide links to the other requests?

This seems to be at odds with the whole premise
of what Queue.join() is trying to do (wait until
all worker threads have marked their tasks as done).

--
assignee:  - rhettinger
nosy: +rhettinger

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



[issue9634] Add timeout parameter to Queue.join()

2010-08-18 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

FWIW, if you want to do other tasks in a main thread and need to check on the 
status task completion in worker threads, you can already loop on: 

 while q.unfinished_tasks:
  do_other_fun_stuff()
 q.join()  # this shouldn't block anymore

--
priority: normal - low

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



[issue1524938] PEP MemoryError with a lot of available memory gc not called

2010-08-18 Thread Alexander Belopolsky

Changes by Alexander Belopolsky belopol...@users.sourceforge.net:


Removed file: http://bugs.python.org/file18568/unnamed

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



[issue8622] Add PYTHONFSENCODING environment variable

2010-08-18 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

STINNER Victor wrote:
 
 STINNER Victor victor.stin...@haypocalc.com added the comment:
 
 The command line -h explanation is missing from the patch.
 
 done
 
 The documentation should mention that the env var is only
 read once; subsequent changes to the env var are not seen
 by Python
 
 I copied the PYTHONIOENCODING doc which doesn't mention that. Does Python 
 re-read other environment variables at runtime? Anyway, I changed the doc to:
 
 +   If this is set before running the intepreter, it overrides the encoding 
 used
 +   for the filesystem encoding (see :func:`sys.getfilesystemencoding`).
 
 I also changed PYTHONIOENCODING doc. Is it better?

Yes, thanks.

 If the codec lookup fails, Python should either issue a warning
 
 Ok, done. I patched also get_codeset() and get_codec_name() to always set a 
 Python error.
 
 ... and then ignore the env var (using the get_codeset() API).
 
 Good idea, done.
 
 Unrelated to the env var, but still important: if get_codeset()
 does not return a known codec, Python should issue a warning
 before falling back to the default setting. Otherwise, a
 Python user will never know that there's an issue and this
 make debugging a lot harder.
 
 It does already write a message to stderr, but it doesn't explain why it 
 failed.
 
 I changed initfsencoding() to display two messages on get_codeset() error. 
 First explain why get_codeset() failed (with the Python error) and then say 
 that we fallback to utf-8.
 
 Full example (PYTHONFSENCODING error and simulated get_codeset() error):
 ---
 PYTHONFSENCODING is not a valid encoding:
 LookupError: unknown encoding: xxx
 Unable to get the locale encoding:
 ValueError: CODESET is not set or empty
 Unable to get the filesystem encoding: fallback to utf-8
 ---

Looks good !

 We should also add a new sys.setfilesystemencoding() ...
 
 No, I plan to REMOVE this function. sys.setfilesystemencoding() is dangerous 
 because it introduces a lot of inconsistencies: this function is unable to 
 reencode all filenames in all objects (eg. Python is unable to find filenames 
 in user objects or 3rd party libraries). Eg. if you change the filesystem 
 from utf8 to ascii, it will not be possible to use existing non-ascii 
 (unicode) filenames: they will raise UnicodeEncodeError. As 
 sys.setdefaultencoding() in Python2, I think that sys.setfilesystemencoding() 
 is the root of evil :-)

Sorry, I wasn't aware we had such a function (and was looking at the
wrong file so didn't find it).

 At startup, initfsencoding() sets the filesystem encoding using the locale 
 encoding. Even for the startup process (with very few objects), it's very 
 hard to find all filenames:
  - sys.path
  - sys.meta_path
  - sys.modules
  - sys.executable
  - all code objects
  - and I'm not sure that the list is complete
 
 See #9630 for the details.
 
 To remove sys.setfilesystemencoding(), I already patched PEP 383 tests 
 (r84170) and I will open a new issue. But it's maybe better to commit both 
 changes (remove the function and PYTHONFSENCODING) at the same time.

--

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



[issue798876] windows sys.path contains nonexistant directory

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Still an issue in 2.6, 2.7, 3.1 and 3.2.

--
nosy: +BreamoreBoy
versions: +Python 2.7 -Python 2.6

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



[issue853507] socket.recv() raises MemoryError exception (WindowsXP ONLY)

2010-08-18 Thread geremy condra

geremy condra debat...@gmail.com added the comment:

I can sporadically reproduce this on Linux as well, repeatedly passing values 
larger than 2**20 to recv. Doesn't seem to happen with regularity, but I have 
better than 11Gb of unused RAM on hand. Is there a good reason for this?

--
nosy: +debatem1

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



[issue802310] tkFont may reuse font names

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Patch is really simple and looks ok to me, can we get this committed please.

--
nosy: +BreamoreBoy
stage:  - patch review
type:  - behavior
versions: +Python 2.7, Python 3.1, Python 3.2

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



[issue672656] securing pydoc server

2010-08-18 Thread Senthil Kumaran

Senthil Kumaran orsent...@gmail.com added the comment:

As the pydoc server advertises that it is running from localhost in both CLI 
and GUI, it is best to bind the socket to 'localhost' instead of '' (which 
would bind it to all the interfaces).

So, a simple fix for this issue, which will remove the security concern:
 host = 'localhost'
-self.address = ('', port)
+self.address = (host, port)

If is to be run from user-defined interface with a new --host interface 
option, that it can be dealt with as new feature request.

This issue can be considered fixed with commits r84173 and r84174.

--
nosy: +orsenthil
resolution:  - fixed
stage: unit test needed - committed/rejected
status: open - closed

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



[issue805194] Inappropriate error received using socket timeout

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

I've tried reproducing this on Windows Vista but sorry I can't make any sense 
out of it.  I've assumed that a unit test can be based around code given in 
msg18142.

--
components: +Library (Lib) -Windows
nosy: +BreamoreBoy
stage:  - needs patch
title: Inappropriate error received using socket timeout on Windows. - 
Inappropriate error received using socket timeout
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

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



[issue9634] Add timeout parameter to Queue.join()

2010-08-18 Thread Kelly Lucas

Kelly Lucas kdlu...@gmail.com added the comment:

Here are a few that I saw:

http://stackoverflow.com/questions/1564501/add-timeout-argument-to-pythons-queue-join

http://www.eggheadcafe.com/software/aspnet/36145181/max-time-threads.aspx

http://efreedom.com/Question/1-1564501/Add-timeout-argument-to-python-s-Queue-join

--

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



[issue808164] socket.close() doesn't play well with __del__

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Can someone reply to Daniel Stutzbach's query in msg104541, thanks.

--
nosy: +BreamoreBoy

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



[issue809846] distutils/bdistwin32 doesn't clean up RO files properly

2010-08-18 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
versions: +Python 2.7, Python 3.1, Python 3.2

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



[issue1545463] New-style classes fail to cleanup attributes

2010-08-18 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Reopened because the history shows comments and patches months after it was set 
to closed and won't fix, see msg61886.

--
nosy: +BreamoreBoy
resolution: wont fix - 
status: closed - open

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



[issue1545463] New-style classes fail to cleanup attributes

2010-08-18 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

This is superseded by issue812369, but as a stop-gap measure, I don't see any 
downside of applying gc-import.patch.

--
assignee:  - belopolsky

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



[issue9433] regrtest.py -j 2 doesn't work on Windows: remove close_fds=True on Windows

2010-08-18 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Ok, I've committed the change in r84176 (py3k) and r84178 (2.7). Thank you!

--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue9634] Add timeout parameter to Queue.join()

2010-08-18 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

We already have an optional timeout on threading.Thread.join(), which I suppose 
means that people need/want that feature.

--
nosy: +pitrou

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



[issue5737] add Solaris errnos

2010-08-18 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

I don't have a Solaris machine to test, but the patch is straightforward 
enough. I've committed it in r84179. Thank you!

--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue809846] bdist_wininst doesn't clean up read-only files in build dir

2010-08-18 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
title: distutils/bdistwin32 doesn't clean up RO files properly - bdist_wininst 
doesn't clean up read-only files in build dir

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



[issue8622] Add PYTHONFSENCODING environment variable

2010-08-18 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

Commited to 3.2 as r84182.

--
resolution:  - fixed
status: open - closed

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



[issue9433] regrtest.py -j 2 doesn't work on Windows: remove close_fds=True on Windows

2010-08-18 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

No, thank *you*, Antoine :-)

--

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



[issue8423] tiger buildbot: test_pep277 failures

2010-08-18 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

#8207 was the same issue and r79426 (for trunk and r79426 in py3k) was supposed 
to fix it.

--

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



[issue808164] socket.close() doesn't play well with __del__

2010-08-18 Thread Daniel Stutzbach

Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:

I suspect that it's not possible.

I'm uploading patches that fix the .close method to avoid referencing globals 
that might be None during interpreter shutdown.  Since the .close method has 
changed significantly in py3k, I'm uploading separate patches for py3k and 2.7.

--

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



[issue808164] socket.close() doesn't play well with __del__

2010-08-18 Thread Daniel Stutzbach

Changes by Daniel Stutzbach dan...@stutzbachenterprises.com:


--
keywords: +needs review, patch
stage: unit test needed - patch review
Added file: http://bugs.python.org/file18570/issue808164-27.patch

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



[issue808164] socket.close() doesn't play well with __del__

2010-08-18 Thread Daniel Stutzbach

Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:

Here is the py3k version of the patch

--

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



[issue808164] socket.close() doesn't play well with __del__

2010-08-18 Thread Daniel Stutzbach

Changes by Daniel Stutzbach dan...@stutzbachenterprises.com:


Added file: http://bugs.python.org/file18571/issue808164-py3k.patch

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



[issue9634] Add timeout parameter to Queue.join()

2010-08-18 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

One of the provided links is duplicate (repost from StackOverflow).  None of 
the links offer use cases which can be used to inform the design (i.e. is this 
the correct approach, should a timeout raise a RuntimeError like 
Condition.wait() does, should a timeout set a variable to indicate the timeout 
thread.join() does, should it just return with no indication of the reason for 
returning, should we just document the unfinished_tasks variable as read-only 
so that users can check it periodically, what are the common calling patterns, 
how does this fit in with the original design intent of letting worker threads 
finish all pending tasks before moving on to code that assumes that the work is 
done).

Without motivating use cases, it is hard to create a correct design or to know 
whether this should be done at all.  Unlike, thread.join() which has a long 
history in many contexts, the Queue.join/task_done API is newer; accordingly, 
the API should be grown somewhat cautiously.  I don't think we've established 
using queue.join() with a time-out is a best practice or preferred pattern to 
solving a given problem.  Instead, all we have is it seems like a nice 
feature which falls short of our usual standards.

--

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



  1   2   >