[issue12547] whatsnew/3.3: error in example about nntplib

2011-07-26 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 95c34bce986c by Ezio Melotti in branch 'default':
#12547: Fix example in nntplib doc. Patch by July Tikhonov.
http://hg.python.org/cpython/rev/95c34bce986c

--

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



[issue12547] whatsnew/3.3: error in example about nntplib

2011-07-26 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

Fixed, thanks again for the patch!

--
resolution:  - fixed
status: open - closed

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



[issue12464] tempfile.TemporaryDirectory.cleanup follows symbolic links

2011-07-26 Thread Charles-François Natali

Charles-François Natali neolo...@free.fr added the comment:

 I agree with Antoine - it's a simple bug

Alright, in that case I agree (I thought this was considered as a
security issue).

Two comments on the patch:

Lib/tempfile.py:
 # Don't recurse to symlinked directories (issue #12464)

Is it really necessary to indicate the issue reference here (there's
already version control, no need to tag the code itself)? It does make
sense in the test, though.

Lib/test/test_tempfile.py:
def test_cleanup_with_symlink_to_a_directory(self):
# cleanup() should not follow symlinks to directories (issue #12464)
[...]
# Symlink d1/foo - d2
os.symlink(d2.name, os.path.join(d1.name, foo))

Does Windows have symlinks?
Looking at Modules/posixmodule.c, I'm not sure, and there seems to be
a version of os.symlink() that takes an argument indicating whether
the target is a directory or not.

--

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



[issue12615] add array.zeroes

2011-07-26 Thread Raymond Hettinger

Raymond Hettinger raymond.hettin...@gmail.com added the comment:

Array has been around for a very long time and this functionality has never 
been requested.  That and the fact that we already have a way to do it (the 
same way as for lists) is a strong indication that this isn't needed at all.

--
resolution:  - rejected
status: open - closed
versions: +Python 3.3 -Python 3.4

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



[issue12632] Windows GPF with Code Page 65001

2011-07-26 Thread Amaury Forgeot d'Arc

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

First, a call to abort() is not a GPF: it's not an interrupt from the kernel or 
the OS, it's just an explicit (albeit brutal) way to exit from an application.  
There is no potential back door here.

Then, the Fatal Python error: line is written to stderr. It's possible to 
redirect it (try with python 2t.txt).
The message This application... is written by the Microsoft C Runtime 
Library, I don't know if it is also printed to stderr.

Furthermore, in this case the application will have a particular exit code, 
IIRC it's 3; from the cmd.exe you can get it with echo %ERRORLEVEL%.  
Normally python processes exit with a status of 0 (everything is OK) or 1 (if 
an exception is raised and not caught)

Finally, the fix you suggest would be applicable if python used WriteConsole 
or WriteFile... but it does not!  It uses the write() function, which probably 
calls WriteConsole or WriteFile at some point, but does not take unicode 
characters...

--
nosy: +amaury.forgeotdarc

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



[issue12632] Windows GPF with Code Page 65001

2011-07-26 Thread STINNER Victor

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

 Finally, the fix you suggest would be applicable if python
 used WriteConsole or WriteFile... but it does not!  It uses
 the write() function, which probably calls WriteConsole 
 or WriteFile at some point, but does not take unicode characters...

The issue #1602 discuss how to change Python to use WriteConsole.

--

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



[issue12464] tempfile.TemporaryDirectory.cleanup follows symbolic links

2011-07-26 Thread Petri Lehtinen

Petri Lehtinen pe...@digip.org added the comment:

Charles-François Natali wrote:
  I agree with Antoine - it's a simple bug
 
 Alright, in that case I agree (I thought this was considered as a
 security issue).

Yes. The problem is that cleanup() does not delete the temporary
directory but deletes files in the linked directory, even if it's
outside the temporary directory.

 Two comments on the patch:
 
 Lib/tempfile.py:
  # Don't recurse to symlinked directories (issue #12464)
 
 Is it really necessary to indicate the issue reference here (there's
 already version control, no need to tag the code itself)? It does make
 sense in the test, though.

True.

 Lib/test/test_tempfile.py:
 def test_cleanup_with_symlink_to_a_directory(self):
 # cleanup() should not follow symlinks to directories (issue #12464)
 [...]
 # Symlink d1/foo - d2
 os.symlink(d2.name, os.path.join(d1.name, foo))
 
 Does Windows have symlinks?
 Looking at Modules/posixmodule.c, I'm not sure, and there seems to be
 a version of os.symlink() that takes an argument indicating whether
 the target is a directory or not.

According to the documentation of os.symlink(), symlinks are available
on Windows 6.0 (Vista) and later, so the test should check for this.
I'm not sure how this can be done, though, as there's no
requires_windows_version() decorator in test.support.

The documentation also says that the extra parameter of os.symlink()
only has an effect it the symlink target does not exist when the link
is created. In the test it does, so I think os.link() and os.symlink()
should both work correctly, also on Windows.

If someone suggests how to test for the Windows version, I'll update
the patch, also to remove the issue reference from the code.

--

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



[issue3581] failures in test_uuid

2011-07-26 Thread Karl Johan Kleist

Karl Johan Kleist karl.jo...@kleist-it-consulting.de added the comment:

If it could be of interest to anybody:

When running make test after building Python 2.7.2, I get the error message 
1 test failed: test_uuid.

 uname -a
Linux h1488277 2.6.18-028stab091.2 #1 SMP Fri Jun 3 00:02:40 MSD 2011 i686 
athlon i386 GNU/Linux

This is a virtual root server 
(http://www.strato.de/server/virtual-linux-server/) which I believe is using 
Parallels Virtuozzo Containers (http://www.parallels.com/products/pvcl/).

--
nosy: +kleist

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



[issue3581] failures in test_uuid

2011-07-26 Thread Amaury Forgeot d'Arc

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

What is the output of this command?
   ./python -m test.regrtest -v test_uuid

--
nosy: +amaury.forgeotdarc

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



[issue12380] bytearray methods center, ljust, rjust don't accept a bytearray as the fill character

2011-07-26 Thread Petri Lehtinen

Changes by Petri Lehtinen pe...@digip.org:


Removed file: http://bugs.python.org/file22756/c_format_bytearray.patch

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



[issue12380] bytearray methods center, ljust, rjust don't accept a bytearray as the fill character

2011-07-26 Thread Petri Lehtinen

Changes by Petri Lehtinen pe...@digip.org:


Removed file: http://bugs.python.org/file22757/c_format_buffer.patch

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



[issue12380] bytearray methods center, ljust, rjust don't accept a bytearray as the fill character

2011-07-26 Thread Petri Lehtinen

Petri Lehtinen pe...@digip.org added the comment:

Updated the bytearray patch to change documentation and add tests.

--
Added file: http://bugs.python.org/file22764/c_format_bytearray.patch

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



[issue3581] failures in test_uuid

2011-07-26 Thread Karl Johan Kleist

Karl Johan Kleist karl.jo...@kleist-it-consulting.de added the comment:

== CPython 2.7.2 (default, Jul 26 2011, 12:29:47) [GCC 4.2.1 (SUSE Linux)]
==   Linux-2.6.18-028stab091.2-i686-athlon-with-SuSE-10.3-i586 little-endian
==   /home/kjk/local/src/Python-2.7.2/build/test_python_18037
Testing with flags: sys.flags(debug=0, py3k_warning=0, division_warning=0, 
division_new=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, 
no_user_site=0, no_site=0, ignore_environment=0, tabcheck=0, verbose=0, 
unicode=0, bytes_warning=0)
test_uuid
testIssue8621 (test.test_uuid.TestUUID) ... ok
test_UUID (test.test_uuid.TestUUID) ... ok
test_exceptions (test.test_uuid.TestUUID) ... ok
test_getnode (test.test_uuid.TestUUID) ... ok
test_ifconfig_getnode (test.test_uuid.TestUUID) ... ERROR
test_ipconfig_getnode (test.test_uuid.TestUUID) ... ok
test_netbios_getnode (test.test_uuid.TestUUID) ... ok
test_random_getnode (test.test_uuid.TestUUID) ... ok
test_unixdll_getnode (test.test_uuid.TestUUID) ... ok
test_uuid1 (test.test_uuid.TestUUID) ... ok
test_uuid3 (test.test_uuid.TestUUID) ... ok
test_uuid4 (test.test_uuid.TestUUID) ... ok
test_uuid5 (test.test_uuid.TestUUID) ... ok
test_windll_getnode (test.test_uuid.TestUUID) ... ok

==
ERROR: test_ifconfig_getnode (test.test_uuid.TestUUID)
--
Traceback (most recent call last):
  File /home/kjk/local/src/Python-2.7.2/Lib/test/test_uuid.py, line 306, in 
test_ifconfig_getnode
node = uuid._ifconfig_getnode()
  File /home/kjk/local/src/Python-2.7.2/Lib/uuid.py, line 321, in 
_ifconfig_getnode
mac = _find_mac('ifconfig', args, ['hwaddr', 'ether'], lambda i: i+1)
  File /home/kjk/local/src/Python-2.7.2/Lib/uuid.py, line 311, in _find_mac
words[get_index(i)].replace(':', ''), 16)
ValueError: invalid literal for int() with base 16: 
'00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00'

--
Ran 14 tests in 0.315s

FAILED (errors=1)
test test_uuid failed -- Traceback (most recent call last):
  File /home/kjk/local/src/Python-2.7.2/Lib/test/test_uuid.py, line 306, in 
test_ifconfig_getnode
node = uuid._ifconfig_getnode()
  File /home/kjk/local/src/Python-2.7.2/Lib/uuid.py, line 321, in 
_ifconfig_getnode
mac = _find_mac('ifconfig', args, ['hwaddr', 'ether'], lambda i: i+1)
  File /home/kjk/local/src/Python-2.7.2/Lib/uuid.py, line 311, in _find_mac
words[get_index(i)].replace(':', ''), 16)
ValueError: invalid literal for int() with base 16: 
'00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00'

1 test failed:
test_uuid

--

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



[issue3581] failures in test_uuid

2011-07-26 Thread Amaury Forgeot d'Arc

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

hum, maybe an issue with the MAC address of your virtual server? What do you 
get if you run:
   ifconfig -a | grep -i -e hwaddr -e ether

--

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



[issue3581] failures in test_uuid

2011-07-26 Thread Karl Johan Kleist

Karl Johan Kleist karl.jo...@kleist-it-consulting.de added the comment:

 /sbin/ifconfig -a | grep -i -e hwaddr -e ether
venet0Link encap:UNSPEC  HWaddr 
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
venet0:0  Link encap:UNSPEC  HWaddr 
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00

--

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



[issue10469] test_socket fails using Visual Studio 2010

2011-07-26 Thread Simon Buchan

Simon Buchan simon.buchan...@gmail.com added the comment:

Confirming this patch fixes the test_aynsc* tests in my VS10 build. Shouldn't 
it swap all WSA* defines to protect against this in the future, though? 
Alternatively, should the check for WSA* codes existing be in Lib\asyncore.py?

--
nosy: +Simon

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



[issue3581] failures in test_uuid

2011-07-26 Thread Amaury Forgeot d'Arc

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

Well, without a valid MAC address the function cannot work...

On the other hand, I would not worry too much: uuid._ifconfig_getnode() is an 
internal function; and since all the other tests pass, uuid.getnode() probably 
has other ways to get a unique identifier for the machine.

And by the way, in python 3.2, the test function is skipped with this message: 
WARNING: uuid._ifconfig_getnode is unreliable on many platforms.
   It is disabled until the code and/or test can be fixed properly.

--

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



[issue10639] reindent.py converts newlines to platform default

2011-07-26 Thread Éric Araujo

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


Added file: http://bugs.python.org/file22765/900df5732f93.diff

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



[issue10639] reindent.py should not convert newlines

2011-07-26 Thread Éric Araujo

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

Thanks for your work.  The generated patch is for some reason unreadable, so I 
looked at the changeset on Bitbucket.  It looks good, except that a new option 
would have to be 3.3-only, whereas the bug could be fixed in 2.7 and 3.2 too.  
If it’s too bothersome for you to split your current patch, then we can fix in 
3.3 only.

--
title: reindent.py converts newlines to platform default - reindent.py should 
not convert newlines
versions: +Python 3.3 -Python 3.1

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



[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-26 Thread Éric Araujo

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

Your tests contain this:

+sys.path.append(source)

When using regrtest (see http://docs.python.org/devguide/runtests#running), 
you’ll get a warning that test_packaging altered sys.path.  Your code should 
make sure sys.path is restored to its previous test:

+self.addCleanup(sys.path.remove, source)
 sys.path.append(source)

See the unittest.TestCase doc for more about addCleanup and tearDown.

--

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



[issue10639] reindent.py should not convert newlines

2011-07-26 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


Removed file: http://bugs.python.org/file22765/900df5732f93.diff

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



[issue10639] reindent.py should not convert newlines

2011-07-26 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


Added file: http://bugs.python.org/file22766/900df5732f93.diff

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



[issue10639] reindent.py should not convert newlines

2011-07-26 Thread Jason R. Coombs

Jason R. Coombs jar...@jaraco.com added the comment:

No problem. I'll rebase and push the current patch as-is, and then backport to 
3.2 and 2.7 without the option (just raising the error when mixed newlines are 
encountered).

--

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



[issue10639] reindent.py should not convert newlines

2011-07-26 Thread Éric Araujo

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

 If this changeset is acceptable, I will push the revisions to the
 master repo.

 I'll rebase and push the current patch as-is,

What repo are you talking about, BTW?  The developers list in the devguide does 
not contain your name, so I assume you’re not talking about 
hg.python.org/cpython?

 and then backport to 3.2 and 2.7 without the option
IMO it would be easier to make one bugfix changeset in 3.2, merge it in 3.3, 
and then add the new option.

--

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



[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-26 Thread Éric Araujo

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


--
hgrepos: +47

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



[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-26 Thread Éric Araujo

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

Roundup can’t connect with SSH, it needs a public HTTP URI.  The one I added 
requires authentication, can you fix that?

--

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



[issue11797] 2to3 does not correct reload

2011-07-26 Thread Éric Araujo

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

File looks good, although I’m not sure about the “Copyright 2006 Georg Brandl” 
line.  I also don’t know if stable branches can get this fix.

--

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



[issue12480] urllib2 doesn't use proxy (fieddler2), configed the proxy with ProxyHandler

2011-07-26 Thread Peter Bumbulis

Peter Bumbulis pbumbu...@gmail.com added the comment:

proxy_bypass_registry in urllib.py does not handle the ProxyOverride registry 
value properly:  it treats an empty override as *, i.e. bypass the proxy for 
all hosts.  This behavior does not match other programs (e.g. Chrome) and can 
be easily obtained by specify * for the override.  One fix would be to ignore 
empty tests, for example:


for test in proxyOverride:
if test:
if test == 'local':
...
return 0


Perhaps whitespace should be stripped as well.

The problem arises because fiddler2 leaves a trailing ; on the ProxyOverride 
string.

One possible workaround is to set
urllib.proxy_bypass = lambda h: 0
to disable bypass checking.  Another alternative would be to specify the proxy 
settings in the http_proxy environment variable (proxy_bypass_registry is not 
called in this case).

--
nosy: +pbumbulis

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



[issue12632] Windows GPF with Code Page 65001

2011-07-26 Thread Bruce Ferris

Bruce Ferris bferri...@bferris.co.uk added the comment:

Victor, thanks for replying and I've had a quick read of everything that went 
on for issue #1602.  I think there's some misunderstanding in what I'm saying 
here.  Maybe this will help clear up what I'm saying...

  D:\chcp
  Active code page: 850

  D:\chcp 65001
  Active code page: 65001

  D:\python27\python
  Python 2.7 (r27:82525, Jul  4 2010, 09:01:59) [MSC v.1500 32 bit 
  (Intel)] on win32
  Type help, copyright, credits or license for more information.
   ^Z

  D:\python31\python
  Fatal Python error: Py_Initialize: can't initialize sys standard
  streams
  LookupError: unknown encoding: cp65001

  This application has requested the Runtime to terminate it in an
  unusual way.
  Please contact the application's support team for more information.

  D:\chcp 850
  Active code page: 850

  D:\python31\python
  Python 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC v.1500 32 bit
  (Intel)] on win32
  Type help, copyright, credits or license for more information.
   ^Z

  D:\

You see, I'm NOT trying to output any Unicode or UTF-8 characters.  All I'm 
trying to do is run different versions of Python on the same machine from the 
command line.

Some code inside Python now break if Python 3.1 is started with Code Page 
65001.

I fully understand the change between Python 2.7 and 3.1 were probably due to 
trying to fix issue #1602 (or some other related issue).

But, as a side-effect to that fix, if you now start Python 3.1 (and maybe 
beyond) with code page set to 65001, it refuses to work but it didn't used to 
refuse to work.

Evidently, Python now tries using the Code Page as an encoding lookup.  But, it 
didn't used to in 2.7.  So, there's another compatability issue introduced.

Setting my cmd.exe code page to 65001 shouldn't mean a thing to Python if it 
can't associate it with an encoding.  It could, at least, just switch to 7-Bit 
ASCII and proceed on.  That would be better than failing!

That's my whole point.  If Python want to do some tweeking with code pages to 
get it's job done, that's fine by me, as long as it doesn't break and 
restores whatever code page I had set when I started it.

It's not down to a UTF-8 issue, it's about a compatability issue introduced 
sometime in the last year or so as a side-effect of trying to resolve a UTF-8 
issue, probably #1602.

That's all!

--

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



[issue10639] reindent.py should not convert newlines

2011-07-26 Thread Jason R. Coombs

Jason R. Coombs jar...@jaraco.com added the comment:

 I assume you’re not talking about hg.python.org/cpython?

My name appears as jason.coombs. But your note does remind me that I need to 
review the devguide, since it's been a while since I've pushed something. I may 
also look into linking/merging my two accounts.

I plan to do as you suggest, splitting the patch into the bugfix and the new 
capability.

--

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



[issue10639] reindent.py should not convert newlines

2011-07-26 Thread Éric Araujo

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

Okay, I hadn’t seen you in http://docs.python.org/devguide/developers and I 
don’t recall the URI of the generated file with all names.  I’ve asked that 
your Roundup profile be updated so that you get the Python icon and the 
possibility to be assigned bugs.

If you already have clones, the workflow should not be hard: go to a 3.2 
checkout, fix things, run patchcheck and tests, commit.  Go to 3.3, pull, 
merge, test, commit, push.  The only tricky things that can make push hooks 
reject changesets are trailing whitespace, maybe EOLs, and new named branches.  
We also prefer to push one changeset with all changes, not a series of 
changesets with gradual fixes.

--

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



[issue12345] Add math.tau

2011-07-26 Thread Éric Araujo

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


--
nosy: +eric.araujo

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



[issue12345] Add math.tau

2011-07-26 Thread Éric Araujo

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


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

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



[issue12632] Windows GPF with Code Page 65001

2011-07-26 Thread STINNER Victor

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

  All I'm trying to do is run different versions of Python on the same machine 
 from the command line.
 Some code inside Python now break if Python 3.1 is started with Code Page 
 65001.

Yes, this issue can be seen as a regression introduced in Python 3.

 I fully understand the change between Python 2.7 and 3.1 were probably due to 
 trying to fix issue #1602 (or some other related issue).

Python 2 and 3 are very different. In Python 2, print abc writes a 
byte string to stdout, whereas print(abc) writes a Unicode string to 
stdout. Byte strings and character strings are two different things ;-)

Python 3 now uses Unicode by default and it requires a codec to encode 
strings to stdout. If your program don't output anything to stdout, use 
pythonw.exe instead of python.exe.

The issue #1602 is not specific to Python 3: Python 2 is unable to 
display correctly Unicode strings in the Windows console. It's less 
important in Python 2, because most developers use the default string 
type which is a byte string.

 Setting my cmd.exe code page to 65001 shouldn't mean a thing to Python if it 
 can't associate it with an encoding.  It could, at least, just switch to 
 7-Bit ASCII and proceed on.  That would be better than failing!

I don't like this idea. In Python, we try to not ignore errors, but try 
instead to fix them or at least fail with an error message (the user is 
responsible to fix it or use a workaround). To fix this issue, we have 
to implement a cp65001 codec for Python or to work directly in Unicode 
using WriteConsole.

If you cannot help to implement one of this option, you can use a 
workaround:

  - don't change the codepage
  - use PYTHONIOENCODING=utf-8

--

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



[issue10639] reindent.py should not convert newlines

2011-07-26 Thread Éric Araujo

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


--
assignee: eric.araujo - jason.coombs
stage: patch review - commit review

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



[issue1626300] 'Installing Python Modules' does not work for Windows

2011-07-26 Thread Éric Araujo

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

 Windows file associations are so disfunctional that you should not
 depend on them being anything in particular.

Ah.  Do you think I should revert the change I did for distutils docs to 
recommend running “setup.py spam”?  I followed the opinion of the original 
poster (first message).

 'python -m module' (which looks for module under /Lib).
Not only under Lib, but along sys.path.

 In XP, and I presume later, the term 'DOS box' is obsolete and I
 would delete it. The 'Command Prompt' app (with caps) is found in
 the Start/Accessories directory. So I would say open a Command
 Prompt window (in Start/Accessories)
Thanks, I will change this term.  I won’t put the menu path however, it could 
change in any version.

 I am not sure of the difference between 'local script' and
 'global command'.
Chris replied to that: local script is setup.py in a directory you probably 
just got from unzipping a file downloaded from PyPI, global command is 
pysetup3, installed alongside idle3, pydoc3 and others.

 In order to run pysetup commands, you need to add the Python
 Scripts directory to your PATH *include link to relevant section
 of docs.python.org/using*.
 I do not understand your proposed note, especially *include link to
 relevant section of docs.python.org/using*..
The docs instruct to run pysetup commands, like “pysetup list” or “pysetup 
install Sphinx”.  On UNIX, the script will be available after install just like 
pydoc or idle.  On Windows, I don’t know.  The goal of my note was to tell 
people to add the Scripts directory to their PATH, so that they can run 
“pysetup list” and co.

The *insert* part meant:  At this place I will put a link to the “Using Python 
on...” docs, i.e. http://docs.python.org/using/windows#configuring-python 
(which explain how to edit PATH).

(Saying pysetup vs. pysetup3 is another unrelated doc bug.)

 Script run without extensions when run with an explicit python
 command.
Like “python.exe setup” when the file really is setup.py?  I’d never have 
guessed that.

 I am not sure what 'or does the installer add .py?' could mean.
Do the Windows installers for CPython found on python.org install idle, pydoc 
and other scripts as “pydoc” or “pydoc.py”?

 I realize that my answers may appear naive. I hope usefully so.
They’re very useful.

 I have used Windows since Win95 and have learned to focus, as
 described above, on what dependably works with minimal surprise.
This is a very useful standpoint.

 I have never used setup.py so no expert advice on its successor from
 me.
It’s okay, I added you because you can comment on how scripts and programs 
work, and review my English.

--

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



[issue1626300] 'Installing Python Modules' does not work for Windows

2011-07-26 Thread Éric Araujo

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


--
nosy: +jason.coombs

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



[issue10639] reindent.py should not convert newlines

2011-07-26 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 070dc6e359fb by Jason R. Coombs in branch '3.2':
Fixes #10639: reindent.py should not convert newlines
http://hg.python.org/cpython/rev/070dc6e359fb

New changeset 826a0208d143 by Jason R. Coombs in branch 'default':
Merge with 3.2 Issue #10639: reindent.py should not convert newlines.
http://hg.python.org/cpython/rev/826a0208d143

New changeset 4feb889d3bed by Jason R. Coombs in branch 'default':
Issue #10639: reindent.py tool now accepts a --newline option to specify the 
newline to be used in the output of converted files.
http://hg.python.org/cpython/rev/4feb889d3bed

--
nosy: +python-dev

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



[issue10639] reindent.py should not convert newlines

2011-07-26 Thread Jason R. Coombs

Jason R. Coombs jar...@jaraco.com added the comment:

I've stripped the undesirable revisions and updated the bitbucket repo so it 
now contains three changesets for Python 3.2 and 3.3 and suggested.

I don't believe running the test suite is relevant, as I grepped the test suite 
for reindent, and there's no reference to the tool script.

It took several rounds of rebasing and stripping and importing patches to get 
everything right, but I believe these changes meet the desired goals.

--

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



[issue10639] reindent.py should not convert newlines

2011-07-26 Thread Éric Araujo

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

 I've stripped the undesirable revisions and updated the bitbucket repo
 so it now contains three changesets for Python 3.2 and 3.3 and
 suggested.

hg diff combined with hg import can help you flatten a series of changeset into 
one.

 I don't believe running the test suite is relevant
You’re right, I mentioned that step because I was talking about the workflow in 
general, but here it does not apply, we only have manual testing for most tools.

 I believe these changes meet the desired goals.
Me too!  Are you comfortable with how to backport this to 2.7?

--

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



[issue1626300] 'Installing Python Modules' does not work for Windows

2011-07-26 Thread Jason R. Coombs

Jason R. Coombs jar...@jaraco.com added the comment:

  Script run without extensions when run with an explicit python
  command.
 Like “python.exe setup” when the file really is setup.py?  I’d
 never have guessed that.

No. Python.exe expects the full path. The only way to execute scripts without 
the extension is if PATHEXT specifies extension and you invoke the script 
itself, in which case the default handler (for that extension) will be invoked 
on that file.

--

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



[issue12463] Calling SocketServer.shutdown() when server_forever() was not called will hang

2011-07-26 Thread Марк Коренберг

Марк Коренберг socketp...@gmail.com added the comment:

In my case, exception occured in separate thread between the begginig of the 
thread and starting loop.

Main thread has a code that correctly stops that separate thread. It just calls 
loop_thread.server.server_close() and after that, calls loop_thread.join()

So, if program termination required, but loop was not started, deadlock occur. 
Moreover, I can not detect if loop was started. And more more over, if I detect 
that loop was not started, there is chance, that it may be started a bit later, 
next after my checking. In that case, either loop will not be terminated 
correctly (if process exits) or join() may block.

So, please DO NOT ADD detection if loop was started. That will generate 
race-conditions in user code. I think it's never needed. If one wants to detect 
that, one may use separate variable:
{code}
started = True
xxx.serve_forever() 
{code}

--

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



[issue12463] Calling SocketServer.shutdown() when server_forever() was not called will hang

2011-07-26 Thread Antoine Pitrou

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

 In my case, exception occured in separate thread between the begginig
 of the thread and starting loop.
 
 Main thread has a code that correctly stops that separate thread. It
 just calls loop_thread.server.server_close() and after that, calls
 loop_thread.join()
 
 So, if program termination required, but loop was not started,
 deadlock occur.

Sorry, can you post a snippet reproducing the issue? It will make it
clearer for me to understand it.

--

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



[issue12463] Calling SocketServer.shutdown() when server_forever() was not called will hang

2011-07-26 Thread Марк Коренберг

Марк Коренберг socketp...@gmail.com added the comment:

Why you create variable mirror?
--
self.__running = False
self.__is_shut_down.set()
--

You other code is racy. exception may occur at any time.

Why not to test state of __is_shut_down directly ? In any case, server either 
running either not (i.e. is_shitdown or not is_shutdown). Server should not be 
tri-state in any case, as I think.

As the latest thing, that serve_forever does - is the calling  
self.__is_shut_down.set(). So it is reliable to detect state of the server via 
state of this lock.

--

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



[issue12463] Calling SocketServer.shutdown() when server_forever() was not called will hang

2011-07-26 Thread Марк Коренберг

Марк Коренберг socketp...@gmail.com added the comment:

class ThreadedRPC(Thread, SimpleXMLRPCServer):
def __init__(self):
Thread.__init__(self)
SimpleXMLRPCServer.__init__(self)
# python bug workaround, which eliminate hang on test_exception
self._BaseServer__is_shut_down.set()
self.daemon = True

def run(self):
raise Exception('race-condition!')
self.serve_forever()


def main():
rpc = ThreadedRPC(RPC_LISTEN_ADDR, allow_none=True)
rpc.start() # from Thread

# term set by signal handler
while rpc.isAlive() and not term:
time.sleep(0.5)

# note, thread may die in any time! regardles of isAlive()
# if thread dead before calling serve_forever(), will hang here without a 
workaround
rpc.shutdown() # from xmlrpcservr. 

rpc.join() # from thread (no problem, as thread is not Alive)

--

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



[issue10639] reindent.py should not convert newlines

2011-07-26 Thread Jason R. Coombs

Jason R. Coombs jar...@jaraco.com added the comment:

What do you think about this: 
https://bitbucket.org/jaraco/cpython-issue10639/changeset/ea63310dddce

The patch is a little more intrusive than the Python 3 patch because Python 2.7 
doesn't allow specifying the newline to use when writing a file (afaict), but 
it abstracts that intrusiveness in the NewlineAdapter class.

I've tested the script on a file with mixed newlines, a file with non-native 
newlines, and a file with content but no newlines, and it performs as expected.

--

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



[issue12641] Remove -mno-cygwin from distutils

2011-07-26 Thread Ruben Van Boxem

Ruben Van Boxem vanboxem.ru...@gmail.com added the comment:

I can confirm the option has been removed. For those that don't want to believe 
a random person's comment on a bugtracker, here's the commit:

http://repo.or.cz/w/official-gcc.git/commit/2637551aa9314c46cf4205d435ab5e8944e9ac8a

The changelog is a bit cryptic, but note the last two items removing 
documentation from removed option.

--
nosy: +rubenvb

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



[issue12629] HTMLParser silently stops parsing with malformed attributes

2011-07-26 Thread Kevin Stock

Kevin Stock teo...@gmail.com added the comment:

A workaround is to call close() after feed(), which I supposed I should have 
done anyways. However, this does not resolve the issue that the two cases 
behave so differently. 

The code that causes the difference is lines 351-355 of parser.py, which also 
has a misleading comment stating it detects the / in a / ending (which is 
actually done at 334).

--

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



[issue1626300] 'Installing Python Modules' does not work for Windows

2011-07-26 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

I believe I meant that 'python setup' works when the script is named 'setup'. 
Which is to say, python does not require scripts to have an extension, as 
someone had thought in writing a patch.

--

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



[issue1626300] 'Installing Python Modules' does not work for Windows

2011-07-26 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

I do not know why the msi installer *silently* fails to properly register 
extensions even when I leave that checked, or how common that it. I have never 
looked into the issue more because for development, I prefer to run from an 
IDLE window and be dumped into the shell after and have a chance to examine 
data and re-call functions. I will soon do an install on a new machine, so I 
will see what a true 'default' install looks like.

--

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



[issue3526] Customized malloc implementation on SunOS and AIX

2011-07-26 Thread Charles-François Natali

Charles-François Natali neolo...@free.fr added the comment:

 Fortunately, it is easy to solve by defining the following in
 dlmalloc:
 #define HAVE_MORECORE 0

I was expecting this answer ;-)
Here's a quick demo, on a Linux box:

cf@neobox:~/cpython$ ./python Tools/pybench/pybench.py -n 1
---
Totals:  19787ms  19787ms

cf@neobox:~/cpython$ MALLOC_MMAP_THRESHOLD_=0 ./python Tools/pybench/pybench.py 
-n 1
[...]
---
Totals:  33375ms  33375ms

That's a mere 70% slowdown, and without pymalloc, it would be much worse. 
malloc with mmap() is way slower than with sbrk() (see 
http://sources.redhat.com/ml/libc-alpha/2006-03/msg00033.html for more 
details). Since your benchmarks don't show this type of regression it probably 
means that AIX's malloc implementation is really broken (there's also the fact 
that part of the allocations are still routed to the libc's malloc, or maybe 
your workload is too specific to demonstrate this behavior).

 sbrk is generally considered quite archaic.

I wouldn't say that; see the above link on malloc's dynamic mmap() threshold.

 I also don't expect this patch to be integrated spontaneously without
 someone interested in AIX pushing for it.

Indeed.
As far as I'm concerned, there are two showstoppers:
- shipping an implementation of dlmalloc with Python
- mixing dlmalloc with the host's malloc implementation

But I think the main problem with this patch is that AIX represents such a tiny 
fraction of the user base. This might change in the future, especially if IBM 
is successfull in its effort of pushing AIX (I hope they'll finally fix AIX's 
malloc by then...).

 I have been quite busy recently with the birth of my second daughter,
 a new job, a new home town and soon a new home.

Congratulations, and good luck!

--

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



[issue12463] Calling SocketServer.shutdown() when server_forever() was not called will hang

2011-07-26 Thread Antoine Pitrou

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

[...]
 # note, thread may die in any time! regardles of isAlive()
 # if thread dead before calling serve_forever(), will hang here without a 
 workaround
 rpc.shutdown() # from xmlrpcservr. 

Why do you say it hangs? It doesn't hang, it just waits for you to
call serve_forever(): it's not a bug, it's actually a feature.

--

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



[issue10639] reindent.py should not convert newlines

2011-07-26 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy:  -pitrou

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



[issue9968] Let cgi.FieldStorage have named uploaded file

2011-07-26 Thread phep

phep patrice.pil...@teletopie.net added the comment:

Hi,

This was test code :-/. It was not under revision control and 
unfortunately, as I feared then, it turned out I had to stop
working shortly after my last message on the low-priority
project that made me report this issue .

Yet, I have a tarball of a presumably-not-so-different version
of the code and I experimented with it this afternoon. Actually,
I could not reproduce the problem I reported in msg117933. So, 
basically, the idea of replacing tempfile.TemporaryFile() by
tempfile.NamedTemporaryFile() seems to really be valid, whatever
the position of the form field.

Yet I found another problem, quite reproducible that one, that
seems to have some fame on Google. Due to the way cgi.__write()
is written, contents of uploaded files with small sizes will be
stored as StringIO. Consequently, sort-of calling
fieldstorage['filenamefield'].file.name will fail. De facto,
this may actually be the error I alluded to in msg117933 - I 
honestly cannot remember what I observed then: « c'est
l'âge...».

So the patch should then be one line longer: we would need
to change __write() to add a check on the value of 'filename' :
-   if self.__file.tell() + len(line)  1000:
+   if self.filename or self.__file.tell() + len(line)  1000:

This way, long textareas (for example), keep being stored on
disk if this has any importance.

There is yet one question I cannot answer: where does the 1ko 
barrier come from? Was it only chosen out of performance
considerations, or was there another reason? As I am quite new 
to Python I fear I may miss something obvious.

HTH

--

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



[issue12464] tempfile.TemporaryDirectory.cleanup follows symbolic links

2011-07-26 Thread Charles-François Natali

Charles-François Natali neolo...@free.fr added the comment:

 If someone suggests how to test for the Windows version, I'll update
 the patch, also to remove the issue reference from the code.

Well, I don't know Windows, but there's platform.win32_ver()
(http://docs.python.org/library/platform.html#platform.win32_ver) that
could probably be useful.

--

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



[issue8746] os.chflags() and os.lchflags() are not built when they should be be

2011-07-26 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
nosy: +eric.araujo

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



[issue8746] os.chflags() and os.lchflags() are not built when they should be be

2011-07-26 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset ca236138f0ce by Ned Deily in branch '2.7':
Issue #8746: Use tempfile module to get tempdir and randomize the
http://hg.python.org/cpython/rev/ca236138f0ce

New changeset 4e4554aa1453 by Ned Deily in branch '3.2':
Issue #8746: Use tempfile module to get tempdir and randomize the
http://hg.python.org/cpython/rev/4e4554aa1453

New changeset 080035e58bab by Ned Deily in branch 'default':
Issue #8746: Use tempfile module to get tempdir and randomize the
http://hg.python.org/cpython/rev/080035e58bab

--

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



[issue12464] tempfile.TemporaryDirectory.cleanup follows symbolic links

2011-07-26 Thread Antoine Pitrou

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

You can simply use support.skip_unless_symlink().

 Charles-François Natali neolo...@free.fr added the comment:
 
  If someone suggests how to test for the Windows version, I'll update
  the patch, also to remove the issue reference from the code.
 
 Well, I don't know Windows, but there's platform.win32_ver()
 (http://docs.python.org/library/platform.html#platform.win32_ver) that
 could probably be useful.

--

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



[issue12642] 2.6.6 documentation of the open() built-in function

2011-07-26 Thread Jann Eike Kruse

New submission from Jann Eike Kruse pyt...@jannkruse.de:

The documentation page 

http://docs.python.org/release/2.6.6/library/functions.html?highlight=open#open

describes the  open()  built-in function as

  open(filename[, mode[, bufsize]])

but the Python interpreter complains:

  Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40) 
  [GCC 4.4.5] on linux2 
  Type help, copyright, credits or license for more information.
   
   
   file_descriptor = open(filename='/spam')
  Traceback (most recent call last):
File stdin, line 1, in module
  TypeError: Required argument 'name' (pos 1) not found
   
   
   file_descriptor = open(name='/spam', bufsize=-1)
  Traceback (most recent call last):
File stdin, line 1, in module
  TypeError: 'bufsize' is an invalid keyword argument for this function
   
   
   file_descriptor = open(name='/spam', buffering=-1)
  Traceback (most recent call last):
File stdin, line 1, in module
  IOError: [Errno 2] No such file or directory: '/spam'
   _
  

So the documentation page should read

  open(name[, mode[, buffering]])
     -

instead, note 'name' not 'filename' and 'buffering' not 'bufsize'.

Maybe it's relevant, because Debian/stable still ships with
Python 2.6.6 and I guess the Python 2.7.x documentation has 
the same bug.

The docstring does already reflect that correctly.


PS:
This is my first bug report. I hope I did this right. 
Mercy, please! ;)

--
assignee: docs@python
components: Documentation
messages: 141183
nosy: docs@python, jannkruse
priority: normal
severity: normal
status: open
title: 2.6.6 documentation of the  open()  built-in function
versions: Python 2.6

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



[issue12463] Calling SocketServer.shutdown() when server_forever() was not called will hang

2011-07-26 Thread Charles-François Natali

Charles-François Natali neolo...@free.fr added the comment:

When you join a thread which hasn't been started, you get an
exception, not a deadlock.
When you join a newly-created queue, it doesn't wait until an item is
submitted to the queue.
But honestly I don't really care, since it's such a minor nuisance and
open to interpretation.

--

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



[issue12063] tokenize module appears to treat unterminated single and double-quoted strings inconsistently

2011-07-26 Thread Dustin Haffner

Changes by Dustin Haffner nit...@gmail.com:


--
nosy: +dhaffner

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



[issue12463] Calling SocketServer.shutdown() when server_forever() was not called will hang

2011-07-26 Thread Antoine Pitrou

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

 When you join a thread which hasn't been started, you get an
 exception, not a deadlock.

But we don't have a deadlock here: another thread could perfectly well
call serve_forever() in the meantime and shutdown() should then return
after having stopped the event loop.

My point is that changing semantics may break existing software, without
there being a clear benefit in doing so.

--

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



[issue9968] Let cgi.FieldStorage have named uploaded file

2011-07-26 Thread phep

phep patrice.pil...@teletopie.net added the comment:

Oh, my...

As we are working with python2.6 on our servers, I overlooked the fact that 
tempfile.NamedTemporaryFile was already used in python 3 (fixed in r57595, with 
not many explanations though).

Yet, the problem with short length files (cf. msg141179) is still valid and the 
documentation has not yet been updated.

--

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



[issue9968] Let cgi.FieldStorage have named uploaded file

2011-07-26 Thread phep

phep patrice.pil...@teletopie.net added the comment:

I got my head in a brown paper bag 

This is obviously not fixed... except in a locally edited checkout :-(

Please be kind to the tired me, forget my last message and don't talk about 
this to my boss, will you ?

It's closing time, really.

--

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



[issue12642] Python2 documentation of the open() built-in function

2011-07-26 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

The docs are correct in Python3.

The docs for Python2 are not *wrong*, since they indicate only positional 
parameters and if you use positional parameters it works as documented. (I'm 
surprised that using keyword arguments works, but I haven't looked at the 
code.)  Fixing the names in the 2.7 docs would still be helpful (2.6 docs don't 
get updated any more).

--
nosy: +r.david.murray
priority: normal - low
stage:  - needs patch
title: 2.6.6 documentation of the  open()  built-in function - Python2 
documentation of the  open()  built-in function
type:  - behavior
versions: +Python 2.7 -Python 2.6

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



[issue12607] subprocess(stdout=..., stderr=sys.stdout) breaks stderr for child

2011-07-26 Thread STINNER Victor

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

i12607_v2.patch: the test fails if Python is compiled with pydebug. Add err = 
support.strip_python_stderr(err) before self.assertEqual(err, berr) in 
test_subprocess.py to fix the failure.

--
versions:  -Python 2.6, Python 3.1, Python 3.4

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



[issue1813] Codec lookup failing under turkish locale

2011-07-26 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

The Fedora bot fails because here ...

  locale.setlocale(locale.LC_CTYPE, loc)

loc = ('tr_TR', 'ISO8859-9'), and apparently setlocale can only
handle tr_TR, but not tr_TR.ISO8859-9:



144 if (locale) {
145 /* set locale */
146 result = setlocale(category, locale);
147 if (!result) {
148 /* operation failed, no setting was changed */
149 PyErr_SetString(Error, unsupported locale setting);
150 return NULL;
(gdb) p result = setlocale(category, tr_TR.ISO8859-9)
$8 = 0x0
(gdb) p result = setlocale(category, tr_TR)
$9 = 0x96d770 tr_TR
(gdb) p locale
$10 = 0x70f6a5b0 tr_TR.ISO8859-9
(gdb)

--
nosy: +skrah

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



[issue1813] Codec lookup failing under turkish locale

2011-07-26 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

Stefan Krah rep...@bugs.python.org wrote:
 (gdb) p result = setlocale(category, tr_TR.ISO8859-9)
 $8 = 0x0
 (gdb) p result = setlocale(category, tr_TR)
 $9 = 0x96d770 tr_TR
 (gdb) p locale
 $10 = 0x70f6a5b0 tr_TR.ISO8859-9
 (gdb)

Perhaps this is a bug in Fedora's setlocale that can't handle the turkish 'I'
in 'ISO' when CTYPE is turkish.

--

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



[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-07-26 Thread STINNER Victor

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

select.kevent(bignum, 1, 2, 3, sys.maxsize, bignum) raises a 
OverflowError('signed integer is greater than maximum') on a 64 bits system. 
select.kevent() constructor parses the 4th argument using i (an int): 
sys.maxsize doesn't fit in a C int on a 64 bits system.

kevent() constructor parses the 4th argument using i, but it pass a pointer 
to a void* value (e-udata). It would be better to use a temporary C int 
variable, and then write the int into udata using the right cast.

--

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



[issue1813] Codec lookup failing under turkish locale

2011-07-26 Thread Antoine Pitrou

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

 Stefan Krah rep...@bugs.python.org wrote:
  (gdb) p result = setlocale(category, tr_TR.ISO8859-9)
  $8 = 0x0
  (gdb) p result = setlocale(category, tr_TR)
  $9 = 0x96d770 tr_TR
  (gdb) p locale
  $10 = 0x70f6a5b0 tr_TR.ISO8859-9
  (gdb)
 
 Perhaps this is a bug in Fedora's setlocale that can't handle the turkish 'I'
 in 'ISO' when CTYPE is turkish.

Perhaps indeed. Maybe you should try to report it.
It does look like an OS bug in any case.
(fortunately that buildbot is in the unstable bunch :-))

--

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



[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-07-26 Thread STINNER Victor

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

OpenBSD has a patch for this issue:
http://www.openbsd.org/cgi-bin/cvsweb/ports/lang/python/2.7/patches/patch-Modules_selectmodule_c

--

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



[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-07-26 Thread STINNER Victor

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

patch-Modules_selectmodule_c is not enough to fix kqueue_event_init(): it 
doesn't catch overflow error on the ident attribute.

--

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



[issue12480] urllib2 doesn't use proxy (fieddler2), configed the proxy with ProxyHandler

2011-07-26 Thread Senthil Kumaran

Changes by Senthil Kumaran sent...@uthcode.com:


--
assignee:  - orsenthil
nosy: +orsenthil

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



[issue1813] Codec lookup failing under turkish locale

2011-07-26 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

Yes, it's a bug. This works:

#include stdio.h
#include locale.h
int
main(void)
{
char *s;
printf(%s\n, setlocale(LC_CTYPE, tr_TR.ISO8859-9));
printf(%s\n, setlocale(LC_CTYPE, NULL));
s = setlocale(LC_CTYPE, tr_TR.ISO8859-9);
printf(%s\n, s ? s : null);
return 0;
}

But when I change the first setlocale call to tr_TR, the result of
the last call is NULL.

--

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



[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-26 Thread Miki Tebeka

Changes by Miki Tebeka miki.teb...@gmail.com:


--
hgrepos: +48

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



[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-26 Thread Miki Tebeka

Changes by Miki Tebeka miki.teb...@gmail.com:


--
hgrepos: +49

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



[issue1602133] non-framework python fails to define os.environ properly

2011-07-26 Thread Dan Colish

Dan Colish dcol...@gmail.com added the comment:

I can also confirm this patch is required to build py2cairo on OSX with 
Python2.7.2 when --enable-framework is not used.

--
nosy: +dcolish

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



[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-26 Thread Miki Tebeka

Miki Tebeka miki.teb...@gmail.com added the comment:

My bad about the hg location, it was a private repo (for some reason this is 
the bitbucket default).

I tried to remove the other repos, but for some reason this doesn't work. The 
right one is https://bitbucket.org/tebeka/cpython#request-method

--

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



[issue12576] urlib.request fails to open some sites

2011-07-26 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 9eac48fbe21d by Senthil Kumaran in branch '3.2':
Fix closes Issue12576 - fix urlopen behavior on sites which do not send (or 
obsfuscates) Connection: Close header.
http://hg.python.org/cpython/rev/9eac48fbe21d

New changeset a45c8ce67c7d by Senthil Kumaran in branch 'default':
merge from 3.2 - Fix closes Issue12576 - fix urlopen behavior on sites which do 
not send (or obsfuscates) Connection: Close header.
http://hg.python.org/cpython/rev/a45c8ce67c7d

--
nosy: +python-dev
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

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



[issue12590] First line and cursor not visible when opening files

2011-07-26 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 73ae3729b8fe by Ned Deily in branch '2.7':
Issue #12590: IDLE editor window now always displays the first line
http://hg.python.org/cpython/rev/73ae3729b8fe

New changeset 1c8aca41845c by Ned Deily in branch '3.2':
Issue #12590: IDLE editor window now always displays the first line
http://hg.python.org/cpython/rev/1c8aca41845c

New changeset b782d7c59f69 by Ned Deily in branch 'default':
Issue #12590: IDLE editor window now always displays the first line
http://hg.python.org/cpython/rev/b782d7c59f69

--
nosy: +python-dev

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



[issue12590] First line and cursor not visible when opening files

2011-07-26 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

Thanks for the report and the cite.

The problem appears to be a difference in behavior between Tk 8.5 and earlier 
versions of Tk and not a platform difference.  The fix is to use that 'yview' 
method of Text instead of 'see'.  That gives the expected behavior with both Tk 
8.5 and 8.4.   Fix is applied to 2.7 (for 2.7.3), 3. 2 (for 3.2.2), and default 
(for 3.3).  Only security issues are accepted for Python 2.6 but the patch 
should apply and work there as well.

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

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



[issue12576] urlib.request fails to open some sites

2011-07-26 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset d58b43fb9208 by Senthil Kumaran in branch '3.2':
Correcting issue 12576 fix, which resulted in buildbot failures.
http://hg.python.org/cpython/rev/d58b43fb9208

New changeset dcfce522723d by Senthil Kumaran in branch 'default':
merge from 3.2 - Correcting issue 12576 fix, which resulted in buildbot 
failures.
http://hg.python.org/cpython/rev/dcfce522723d

--

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



[issue12590] First line and cursor not visible when opening files

2011-07-26 Thread Simon Forman

Simon Forman forman.si...@gmail.com added the comment:

You're very welcome.

--

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



[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-07-26 Thread Matt Basta

Matt Basta bastaw...@gmail.com added the comment:

The number of problems produced by this bug can be greatly reduced by adding a 
relatively small check to the parser. Currently, script and style tags call 
set_cdata_mode(), which sets self.interesting to HTMLParser.interesting_cdata. 
This is bad because it searches for ANY closing tag, rather than a closing tag 
which matches the opening tag.

Alexander's fix solved about half the problem, but it didn't handle ending tags 
as text. I've fixed this and added some tests.

This is my first patch, so if there's a better way that I could be submitting 
this, input would be appreciated.

--
nosy: +Matt.Basta
Added file: http://bugs.python.org/file22767/hp_fix.diff

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



[issue12642] Python2 documentation of the open() built-in function

2011-07-26 Thread Eli Bendersky

Changes by Eli Bendersky eli...@gmail.com:


--
nosy: +eli.bendersky

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



[issue10854] Output .pyd name in error message of ImportError when DLL load fails

2011-07-26 Thread Brian Curtin

Brian Curtin br...@python.org added the comment:

How about something like this?

ImportError moves from being a simple exception to a complex one, then adds 
a name and path attribute. In dynload_win.c where we try (and fail) to load 
C extensions, the name and path are set on the ImportError. The test simply 
creates a file following the C extension name format and checks that the 
attributes end up being correct upon ImportError.

Jazzing up the ImportErrors elsewhere in the code might be useful after this, 
but I'll handle that in another issue if this gains traction.

--
keywords: +patch
Added file: http://bugs.python.org/file22768/issue10854.diff

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



[issue12607] subprocess(stdout=..., stderr=sys.stdout) breaks stderr for child

2011-07-26 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 1140b32747c9 by Ross Lagerwall in branch '3.2':
Issue #12607: In subprocess, fix issue where if stdin, stdout or stderr is
http://hg.python.org/cpython/rev/1140b32747c9

New changeset 943d323cb4b8 by Ross Lagerwall in branch 'default':
Issue #12607: Merge with 3.2.
http://hg.python.org/cpython/rev/943d323cb4b8

--
nosy: +python-dev

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



[issue12642] Python2 documentation of the open() built-in function

2011-07-26 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 5da7924c4775 by Ezio Melotti in branch '2.7':
#12642: fix args names in open() doc.
http://hg.python.org/cpython/rev/5da7924c4775

--
nosy: +python-dev

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



[issue12642] Python2 documentation of the open() built-in function

2011-07-26 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

Fixed, thanks for the report!

--
nosy: +ezio.melotti
resolution:  - fixed
stage: needs patch - committed/rejected
status: open - closed

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



[issue10854] Output .pyd name in error message of ImportError when DLL load fails

2011-07-26 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com added the comment:

See also #1559549, which similarly adds attribute support to ImportError and 
covers some of the issues with using positional arguments to do so.

Extending that approach to a path keyword argument as well should work nicely.

--

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