[issue5661] asyncore should catch EPIPE while sending() and receiving()

2011-10-28 Thread Charles-François Natali

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

 Did you try with the current branches?

 Yes, the test is pass against the current default and 2.7 branches.
 One must remove EPIPE from the asyncore._DISCONNECTED frozenset to
 make the test to fail.

OK. Then I'll add this test to test_asyncore.

--

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



[issue13281] robotparser.RobotFileParser ignores rules preceeded by a blank line

2011-10-28 Thread Ezio Melotti

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


--
nosy: +ezio.melotti
stage: patch review - test needed

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



[issue6745] (curses) addstr() takes str in Python 3

2011-10-28 Thread Petri Lehtinen

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


--
nosy: +petri.lehtinen

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



[issue12567] curses implementation of Unicode is wrong in Python 3

2011-10-28 Thread Petri Lehtinen

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


--
nosy: +petri.lehtinen

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



[issue13218] test_ssl failures on Debian/Ubuntu

2011-10-28 Thread STINNER Victor

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

./python -m test -v -u all test_ssl pass with issue13218.diff or 
issue13218-true.diff on Ubuntu 10.10.

--

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



[issue13059] Sporadic test_multiprocessing failure: IOError(bad message length) in recv_bytes()

2011-10-28 Thread STINNER Victor

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

@antoine: can you try to add more debug messages?

--

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



[issue13279] Add memcmp into unicode_compare for optimizing comparisons

2011-10-28 Thread STINNER Victor

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

I would be nice to have a third path for inegality with kind1==kind2, something 
like:

else if (kind1 == PyUnicode_2BYTE_KIND  kind2 == PyUnicode_2BYTE_KIND)
{
  /* use Py_UCS2* pointers */
}
else if (kind1 == PyUnicode_4BYTE_KIND  kind2 == PyUnicode_4BYTE_KIND)
{
  /* use Py_UCS4* pointers */
}

Inegality comparaisons are used to sort Unicode lists for example.

--

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



[issue13279] Add memcmp into unicode_compare for optimizing comparisons

2011-10-28 Thread STINNER Victor

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

 These 3 minor optimizations can make unicode_compare faster.

Can you please try to write a short benchmark script? (or just run a benchmark 
using ./python -m timeit)

--

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



[issue10570] curses.tigetstr() returns bytes, but curses.tparm() expects a string

2011-10-28 Thread Petri Lehtinen

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


--
nosy: +petri.lehtinen
stage:  - test needed
versions: +Python 3.2, Python 3.3 -Python 3.1

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



[issue13270] all classes are new style

2011-10-28 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

the typeclass change reflects the current output on 3.x

--

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



[issue10363] Embedded python, handle (memory) leak

2011-10-28 Thread Martin Dunschen

Martin Dunschen mdunsc...@gmail.com added the comment:

Hello Antoine

Unloading would not be necessary if the DLL is just the python interpreter,
but if you build a DLL with python embedded that does quite a bit more than
some python interpreting (in my case complex C/C++ numerical calculations)
unloading the DLL is a convenient way to free up unused resources. There are
C++ classes that extend python in my code (via swig), and that's where the
size of the DLL get's increased.

If the handle leaks are restricted to the windows implementation of cpython,
could it not be justified to allow C++ in a patch, I can't think of a C only
compiler for windows?

Thanks

Martin

On Thu, Oct 27, 2011 at 11:39 PM, Antoine Pitrou rep...@bugs.python.orgwrote:


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

 Here is a patch that fixes some of these handle leaks in Python 3.2.
 However, as a general guideline, you shouldn't unload the Python DLL if you
 fish to use it later again. Just keep it in memory (the DLL isn't very big,
 is it?). Yes, C++ would allow to solve this, but the interpreter is
 currently written in C and there's no plan, even in the middle term, to
 change this.

 --
 keywords: +patch
 nosy: +loewis
 Added file: http://bugs.python.org/file23539/freelocks.patch

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


--

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



[issue13270] all classes are new style

2011-10-28 Thread Roundup Robot

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

New changeset 54abca0ab03b by Florent Xicluna in branch '3.2':
Fixes #13270: obsolete reference to old-style/new-style classes.
http://hg.python.org/cpython/rev/54abca0ab03b

--
nosy: +python-dev

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



[issue13270] all classes are new style

2011-10-28 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
resolution:  - fixed
stage: patch review - committed/rejected

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



[issue13278] Typo in documentation for sched module

2011-10-28 Thread Roundup Robot

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

New changeset 3e72de3c8ad5 by Ezio Melotti in branch '2.7':
#13278: fix typo.
http://hg.python.org/cpython/rev/3e72de3c8ad5

New changeset 9c4b62f67a28 by Ezio Melotti in branch '3.2':
#13278: fix typo.
http://hg.python.org/cpython/rev/9c4b62f67a28

New changeset 64b2efa5009f by Ezio Melotti in branch 'default':
#13278: merge with 3.2.
http://hg.python.org/cpython/rev/64b2efa5009f

--
nosy: +python-dev

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



[issue13278] Typo in documentation for sched module

2011-10-28 Thread Ezio Melotti

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

Fixed, thanks for the report!

--
assignee: docs@python - ezio.melotti
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

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



[issue1294232] Error in metaclass search order

2011-10-28 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

After changeset c72063032a7a I get this complain:

Python/bltinmodule.c: In function ‘builtin___build_class__’:
Python/bltinmodule.c:43: warning: unused variable ‘nbases’

--
nosy: +flox

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



[issue13282] the table of contents in epub file is too long

2011-10-28 Thread wrobell

New submission from wrobell wrob...@pld-linux.org:

the table of contents in python documentation epub file is very very long. it 
takes several long minutes to jump from first page to a part containing 
language reference toc.

imho it would be great if first page of epub file contained pointers
to tutorial, lang ref, mod ref without detailed table of contents as it is at 
docs.python.org.

--
assignee: docs@python
components: Documentation
messages: 146548
nosy: docs@python, wrobell
priority: normal
severity: normal
status: open
title: the table of contents in epub file is too long
versions: Python 2.7, Python 3.2

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



[issue13283] removal of two unused variable in locale.py

2011-10-28 Thread Nicolas Évrard

New submission from Nicolas Évrard ni...@no-log.org:

While using pyflake on some of my file I noticed in a copied version of _group 
two unused variables.

The attached patch fixed that very little annoyance.

--
components: Library (Lib)
files: locale.diff
keywords: patch
messages: 146549
nosy: nicoe
priority: normal
severity: normal
status: open
title: removal of two unused variable in locale.py
type: resource usage
versions: Python 2.7
Added file: http://bugs.python.org/file23540/locale.diff

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



[issue13273] HTMLParser improperly handling open tags when strict is False

2011-10-28 Thread Roundup Robot

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

New changeset 41d41776aa6d by Ezio Melotti in branch '3.2':
#13273: fix a bug that prevented HTMLParser to properly detect some tags when 
strict=False.
http://hg.python.org/cpython/rev/41d41776aa6d

New changeset b194117f176c by Ezio Melotti in branch 'default':
#13273: merge with 3.2.
http://hg.python.org/cpython/rev/b194117f176c

--
nosy: +python-dev

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



[issue13284] email.utils.formatdate function does not handle timezones correctly.

2011-10-28 Thread Burak Arslan

New submission from Burak Arslan burak.ars...@arskom.com.tr:

There's an issue with email.utils.formatdate function, illustrated here: 
https://gist.github.com/1321994

for reference i'm on Europe/Istanbul timezone, which is +03:00 because of DST 
at the time of this writing.

I'm on stable Python 2.7.2 on gentoo linux. 

When I run the attached script, I get:

Fri, 28 Oct 2011 07:56:14 -
datetime.datetime(2011, 10, 28, 9, 56, 14, 945831, tzinfo=UTC)

when the local time is 12:56. so the second line is correct and first one is 
not.

let me know if you need any more information.
thanks for your attention.

--
components: Library (Lib)
files: test_formatdate.py
messages: 146551
nosy: burak.arslan
priority: normal
severity: normal
status: open
title: email.utils.formatdate function does not handle timezones correctly.
versions: Python 2.7
Added file: http://bugs.python.org/file23541/test_formatdate.py

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



[issue13273] HTMLParser improperly handling open tags when strict is False

2011-10-28 Thread Ezio Melotti

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

Fixed, thanks a lot for the report!

--
resolution:  - fixed
stage: commit review - committed/rejected
status: open - closed
versions:  -Python 2.7

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



[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6

2011-10-28 Thread STINNER Victor

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


--
nosy: +benjamin.peterson, georg.brandl
Removed file: http://bugs.python.org/file16209/unnamed

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



[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6

2011-10-28 Thread STINNER Victor

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


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

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



[issue13285] signal module in ignores external signal changes

2011-10-28 Thread Vilya Harvey

New submission from Vilya Harvey vilya.har...@gmail.com:

The signal module is oblivious to any changes to the set of installed signal 
handlers which occur outside of the module. This can happen when a native 
module changes a signal handler, or when the python interpreter is embedded in 
another program which installs its own signal handlers.

In this case, saving and restoring a signal handler through python doesn't work 
correctly. For example, if the SIGINT handler is set externally after the 
signal module is initialised, the following code will replace the external 
signal handler with python's default_int_handler:

  handler = signal.getsignal(signal.SIGINT)
  signal.signal(signal.SIGINT, handler)

So it's impossible to reliably save and restore signal handlers through python 
when they can also be changed outside the python interpreter.

Also, if there's a signal handler installed before the module is initialised, 
signal.getsignal() will return None for it - making it impossible to restore 
the correct handler after disabling it.

The reason is that the signal module only checks for existing handlers when 
it's initialised. The results get stored in the Handlers array, which is then 
used by all subsequent calls to signal.getsignal(). There are no further checks 
to see whether the native signal handlers have changed.

--
messages: 146553
nosy: vilya
priority: normal
severity: normal
status: open
title: signal module in ignores external signal changes
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2

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



[issue13285] signal module ignores external signal changes

2011-10-28 Thread Vilya Harvey

Changes by Vilya Harvey vilya.har...@gmail.com:


--
title: signal module in ignores external signal changes - signal module 
ignores external signal changes

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



[issue13284] email.utils.formatdate function does not handle timezones correctly.

2011-10-28 Thread Burak Arslan

Burak Arslan burak.ars...@arskom.com.tr added the comment:

turns out timetuple was not passing timezone information. the correct way of 
converting a datetime.datetime object to a correct rfc-2822 compliant date 
string seems to be:

email.utils.formatdate(time.mktime(a.utctimetuple()) + 1e-6 * a.microsecond - 
time.timezone)

what a mess. if the above is indeed the right way to do this, is it possible to 
add the following function to the email.utils module?

def formatdatetime(dt_object):
return email.utils.formatdate(time.mktime(dt_object.utctimetuple()) + 1e-6 
* a.microsecond - time.timezone)

this works for datetime instances both with and without time zone information.

ps: i updated the code in the github link but not here.

--

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



[issue13270] all classes are new style

2011-10-28 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
status: open - closed

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



[issue13238] Add shell command helpers to shutil module

2011-10-28 Thread Nick Coghlan

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

I realised I could use the convert_field() option in the custom formatter to 
choose between several interpolation quoting options:

  default - str + shutil.quote_ascii_whitespace
  !q - str + shlex.quote
  !u - unquoted (i.e. no conversion, str.format default behaviour)
  !s - str (as usual)
  !r - repr (as usual)

The most recent commit also exposes public APIs for the formatting aspects 
(shutil.quote_ascii_whitespace, shutil.shell_format, shutil.shell_format_map)

--
keywords: +patch
Added file: http://bugs.python.org/file23542/issue13238_shell_helpers.diff

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



[issue13238] Add shell command helpers to shutil module

2011-10-28 Thread Nick Coghlan

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

Some examples:

 import shutil
 shutil.shell_call(du -hs {}, ../py*)
594M../py3k
579M../py3k_pristine
480M../python27
301M../python31
382M../python32
288K../python_swallowed_whole
0
 shutil.shell_call(du -hs {!q}, ../py*)
du: cannot access `../py*': No such file or directory
1
 shutil.shell_call(ls {}, no file)
ls: cannot access no file: No such file or directory
2
 shutil.shell_call(ls {!u}, no file)
ls: cannot access no: No such file or directory
ls: cannot access file: No such file or directory
2

--

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



[issue13258] replace hasattr(obj, '__call__') with callable(obj)

2011-10-28 Thread Roundup Robot

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

New changeset 8e57b5d8f58f by Florent Xicluna in branch '3.2':
Closes #13258: Use callable() built-in in the standard library.
http://hg.python.org/cpython/rev/8e57b5d8f58f

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

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



[issue1294232] Error in metaclass search order

2011-10-28 Thread Roundup Robot

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

New changeset b9bb9340eb0c by Florent Xicluna in branch 'default':
Merge 3.2 (linked to issue #1294232)
http://hg.python.org/cpython/rev/b9bb9340eb0c

--

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



[issue13244] WebSocket schemes in urllib.parse

2011-10-28 Thread Tobias Oberstein

Tobias Oberstein tobias.oberst...@tavendo.de added the comment:

Is that patch supposed to be in Python 2.7.2?

If so, it doesn't work for ws:

ws://example.com/somewhere?foo=bar#dgdg

F:\scm\Autobahn\testsuite\websockets\serverspython
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on 
win32
Type help, copyright, credits or license for more information.
 from urlparse import urlparse
 urlparse(ws://example.com/somewhere?foo=bar#dgdg)
ParseResult(scheme='ws', netloc='example.com', path='/somewhere?foo=bar#dgdg', 
params='', query='', fragment='')
 urlparse(ws://example.com/somewhere?foo=bar#dgdg, allow_fragments = True)
ParseResult(scheme='ws', netloc='example.com', path='/somewhere?foo=bar#dgdg', 
params='', query='', fragment='')
 urlparse(ws://example.com/somewhere?foo=bar#dgdg, allow_fragments = False)
ParseResult(scheme='ws', netloc='example.com', path='/somewhere?foo=bar#dgdg', 
params='', query='', fragment='')


urlparse will neither parse the query nor the (invalid) fragment component for 
the ws scheme

I would have expected

ParseResult(scheme='ws', netloc='example.com', path='/somewhere', params='', 
query='foo=bar', fragment='dgdg')

--

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



[issue13285] signal module ignores external signal changes

2011-10-28 Thread Charles-François Natali

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

 So it's impossible to reliably save and restore signal handlers through 
 python when they can also be changed outside the python interpreter.

signal.getsignal() or signal.signal() return the current/previous handler as a 
Python function. How could it return a reference to a native (i.e. C) signal 
handler?
While we could in theory return it as a magic cookie (i.e. the handler's 
address as returned by sigaction/signal) that can just be passed back to 
signal.signal(), it would be a bad idea: if the user passes an invalid address, 
the process will crash when the signal is received.

--
nosy: +neologix

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



[issue13285] signal module ignores external signal changes

2011-10-28 Thread STINNER Victor

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


--
nosy: +haypo

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



[issue13278] Typo in documentation for sched module

2011-10-28 Thread Jeffrey Finkelstein

Jeffrey Finkelstein jeffrey.finkelst...@gmail.com added the comment:

Thank you for the great work, Python project!

On Fri, Oct 28, 2011 at 5:36 AM, Ezio Melotti rep...@bugs.python.org wrote:

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

 Fixed, thanks for the report!

 --
 assignee: docs@python - ezio.melotti
 resolution:  - fixed
 stage:  - committed/rejected
 status: open - closed

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


--

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



[issue13286] PEP 3151 breaks backward compatibility: it should be documented

2011-10-28 Thread STINNER Victor

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

The following example works on Python 2.7 and 3.2, but fails on Python 3.3:
---
import errno
import os

try:
os.rmdir(testdir)
except:
pass
os.mkdir(testdir)

try:
try:
os.mkdir(testdir)
except IOError as exc:
# If can't get proper access, then just forget about writing
# the data.
if exc.errno == errno.EACCES:
pass
else:
raise
except OSError as exc:
# Probably another Python process already created the dir.
if exc.errno == errno.EEXIST:
pass
else:
raise
except Exception:
print(PEP 3151 broke backward compatibility on such pattern!)
---

I noticed the problem while reading the changeset e4d44c2e8e81.

--
assignee: docs@python
components: Documentation
messages: 146562
nosy: docs@python, flox, haypo, pitrou
priority: normal
severity: normal
status: open
title: PEP 3151 breaks backward compatibility: it should be documented
versions: Python 3.3

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



[issue13286] PEP 3151 breaks backward compatibility: it should be documented

2011-10-28 Thread Antoine Pitrou

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

Why would you catch IOError after os.mkdir()?

--

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



[issue13285] signal module ignores external signal changes

2011-10-28 Thread Vilya Harvey

Vilya Harvey vilya.har...@gmail.com added the comment:

Could it return an opaque wrapper object, rather than just the raw address? 
Something like:

typedef struct _PyNativeSignalHandler {
  PyObject_HEAD
  sighandler_t handler_func;
} PyNativeSignalHandler;

where the type object doesn't expose any way to read or manipulate the 
handler_func. Would that work, do you think?

--

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



[issue13286] PEP 3151 breaks backward compatibility: it should be documented

2011-10-28 Thread STINNER Victor

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

The first example was extracted from Lib/importlib/_bootstrap.py. The code was 
maybe wrong, I don't know.

Another example:
--
import errno
import os

try:
os.rmdir(testdir)
except:
pass
os.mkdir(testdir)

try:
try:
#os.mkdir(testdir)
open(NOT EXISTING FILENAME)
except OSError as exc:
if exc.errno == errno.EEXIST:
pass
else:
raise
except IOError as exc:
if exc.errno == errno.ENOENT:
pass
else:
raise
except Exception:
raise
print(PEP 3151 broke backward compatibility on such pattern!)
--

Uncomment mkdir() to test both paths.

--

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



[issue13224] Change str(class) to return only the class name

2011-10-28 Thread Éric Araujo

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

[Guido]
 What's holding this up?

- I haven’t updated the patch for function and module objects yet
- I need to catch up with the python-ideas discussion
- There is at least one strong argument against the idea (I’ll point it out on 
the ML)

--

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



[issue13238] Add shell command helpers to shutil module

2011-10-28 Thread Éric Araujo

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

The custom formatter idea sounds brilliant.  Can you test that auto-escaping of 
spaces works well with glob patterns?

--

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



[issue13287] urllib.request exposes too many names

2011-10-28 Thread Florent Xicluna

New submission from Florent Xicluna florent.xicl...@gmail.com:

 len(dir())
4
 import urllib.request import *
 len(dir())
88


In this list we find 14 modules:
['base64', 'collections', 'ssl', 'bisect', 'http', 're', 'email', 'socket', 
'os', 'posixpath', 'hashlib', 'io', 'time', 'sys']

And many non-documented functions:
 - ftperrors
 - getproxies_environment
 - getproxies_macosx_sysconf
 - localhost
 - noheaders
 - parse_http_list
 - parse_keqv_list
 - proxy_bypass
 - proxy_bypass_environment
 - proxy_bypass_macosx_sysconf
 - quote
 - randombytes
 - request_host
 - urlunparse
 - splitattr
 - splithost
 - splitpasswd
 - splitport
 - splitquery
 - splittag
 - splittype
 - splituser
 - splitvalue
 - thishost
 - to_bytes
 - unquote
 - unwrap
 - urljoin
 - urlparse
 - urlsplit

It may be good to define __all__ for this module, and to preprend _ on some 
of these names.

--
components: Library (Lib)
messages: 146568
nosy: flox
priority: normal
severity: normal
stage: needs patch
status: open
title: urllib.request exposes too many names
type: behavior
versions: Python 3.3

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



[issue13287] urllib.request exposes too many names

2011-10-28 Thread Antoine Pitrou

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


--
nosy: +orsenthil

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



[issue13170] distutils2 test failures

2011-10-28 Thread Éric Araujo

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

 The remaining test 
 (test_command_install_data.InstallDataTestCase.test_simple_run) was
 broken in r1152.
This looks like a local revision number, which has no meaning outside of one 
specific repository.  What is the changeset identifier?  (see 
http://hgbook.red-bean.com/read/a-tour-of-mercurial-the-basics.html#id345536)

Thanks for the diagnosis!  Code calling functions from the backported shutil 
should obviously catch exceptions from the backported shutil.  I’ll review all 
modules using the backport.

FYI, some distutils2 modules use shutil from the stdlib, for functions that are 
already here in 2.4; not sure if that is good or bad.

 Ideally, I think distutils2/_backport/shutil.py should do from shutil import 
 Error
 instead of defining its own Error class
Oh, no, our backported module is strictly independent from the stdlib one.

 importing shutil from the stdlib is broken in that file besides.
I don’t understand this.

--

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



[issue13238] Add shell command helpers to shutil module

2011-10-28 Thread Antoine Pitrou

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

  default - str + shutil.quote_ascii_whitespace
  !q - str + shlex.quote
  !u - unquoted (i.e. no conversion, str.format default behaviour)

The default doesn't look very understandable to me. Why would you quote only 
some characters and not all of them?

--

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



[issue13287] urllib.request exposes too many names

2011-10-28 Thread Ezio Melotti

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

This is technically backward incompatible, so if we define an __all__ with most 
of these names, we are officially making them public, if we leave them out, 
from urllib.request import * will break for someone.
You could argue that import * is discouraged though.

--
nosy: +ezio.melotti

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



[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2011-10-28 Thread Barry A. Warsaw

Changes by Barry A. Warsaw ba...@python.org:


--
nosy: +barry

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



[issue13287] urllib.request exposes too many names

2011-10-28 Thread Senthil Kumaran

Senthil Kumaran sent...@uthcode.com added the comment:

Let's deprecate some of these (or add deprecation warnings) for
upcoming release.  But, doing from xxx import * is not a recommended
way for any module, as we know that it stands to pollute the namespace
with unneccesary functions/methods. I would be careful in adding
anything to __all__ and if done, may go for only 3.3. Ezio has a valid
point.

--

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



[issue13257] Move importlib over to PEP 3151 exceptions

2011-10-28 Thread Brett Cannon

Brett Cannon br...@python.org added the comment:

Florent inadvertently did this for me in rev 73169.

--
resolution:  - fixed
stage: needs patch - 
status: open - closed

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



[issue13170] distutils2 test failures

2011-10-28 Thread David Barnett

David Barnett davidbarne...@gmail.com added the comment:

 The remaining test 
 (test_command_install_data.InstallDataTestCase.test_simple_run) was
 broken in r1152.
This looks like a local revision number, which has no meaning outside of one 
specific repository.  What is the changeset identifier?  (see 
http://hgbook.red-bean.com/read/a-tour-of-mercurial-the-basics.html#id345536)
Oh, sorry, it's d1d251292ee7. (I got the short rev from the hg.python.org 
interface, so I thought it would be authoritative enough, but I guess it is 
ambiguous)

 importing shutil from the stdlib is broken in that file besides.
 I don’t understand this.
When I do import shutil inside _backport/shutil.py, it seems to be importing 
itself (??) if I don't explicitly enable absolute imports (in python 2.7). If I 
delete the class Error definition and instead add from shutil import Error, 
I get an ImportError.

--

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



[issue13283] removal of two unused variable in locale.py

2011-10-28 Thread Petri Lehtinen

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


--
nosy: +petri.lehtinen
stage:  - patch review

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



[issue13218] test_ssl failures on Debian/Ubuntu

2011-10-28 Thread Barry A. Warsaw

Barry A. Warsaw ba...@python.org added the comment:

I can't test this on OS X 10.7 because of issue 13241 but it works fine on OS X 
10.6.

I'm going to go with the first diff (i.e. the non-sense changing version).  I 
can't say why I favor that version but since you've both verified it works on 
!Ubuntu, we'll go with that and let people scream if it starts failing for 
them.  I'll apply to 3.2 and 3.3, back port to 2.7, and then watch the 
buildbots.

--

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



[issue13287] urllib.request exposes too many names

2011-10-28 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

We should only expose the names which are documented.
The modules and the objects from urllib.parse don't need to be exposed in 
urllib.request.

I suggest to apply this patch on 3.3 only.

--
keywords: +patch
stage: needs patch - patch review
Added file: http://bugs.python.org/file23543/issue13287_urllib_request.diff

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



[issue13283] removal of two unused variable in locale.py

2011-10-28 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

This patch looks good.
Is it relevant for minor releases 2.7.3 and 3.2.3? I cannot confirm.

--
nosy: +flox
priority: normal - low
versions: +Python 3.2, Python 3.3

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



[issue13286] PEP 3151 breaks backward compatibility: it should be documented

2011-10-28 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
stage:  - needs patch
type:  - behavior

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



[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6

2011-10-28 Thread Ned Deily

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


--
resolution: accepted - fixed

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



[issue13218] test_ssl failures on Debian/Ubuntu

2011-10-28 Thread Roundup Robot

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

New changeset 3c225f938dae by Barry Warsaw in branch '2.7':
- Issue #13218: Fix test_ssl failures on Debian/Ubuntu.
http://hg.python.org/cpython/rev/3c225f938dae

New changeset 415e2c998e18 by Barry Warsaw in branch '3.2':
- Issue #13218: Fix test_ssl failures on Debian/Ubuntu.
http://hg.python.org/cpython/rev/415e2c998e18

New changeset 7a241bc34dd7 by Barry Warsaw in branch '3.2':
- Issue #13218: Fix test_ssl failures on Debian/Ubuntu.
http://hg.python.org/cpython/rev/7a241bc34dd7

New changeset 472219ffa1d7 by Barry Warsaw in branch 'default':
- Issue #13218: Fix test_ssl failures on Debian/Ubuntu.
http://hg.python.org/cpython/rev/472219ffa1d7

--
nosy: +python-dev

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



[issue13288] SSL module doesn't allow access to cert issuer information

2011-10-28 Thread John Nagle

New submission from John Nagle na...@users.sourceforge.net:

The SSL module still doesn't return much information from the
certificate.  SSLSocket.getpeercert only returns a few basic items
about the certificate subject.  You can't retrieve issuer information,
and you can't get the extensions needed to check if a cert is an EV cert.

With the latest flaps about phony cert issuers, (another CA compromise hit the 
news today) it's worth having issuer info available.
It was available in the old M2Crypto module, but not in the current Python SSL 
module.

John Nagle

--
components: Library (Lib)
messages: 146579
nosy: nagle
priority: normal
severity: normal
status: open
title: SSL module doesn't allow access to cert issuer information
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4

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



[issue13285] signal module ignores external signal changes

2011-10-28 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
components: +Library (Lib)
nosy: +flox
versions: +Python 3.3 -Python 2.6, Python 3.1

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



[issue13218] test_ssl failures on Debian/Ubuntu

2011-10-28 Thread Barry A. Warsaw

Changes by Barry A. Warsaw ba...@python.org:


--
resolution:  - fixed
status: open - closed

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



[issue2892] improve cElementTree iterparse error handling

2011-10-28 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

unfortunately, I did not find the fix and the test in the upstream repository.

AFAIK, upstream should be there:
https://bitbucket.org/effbot/et-2009-provolone/src

--
components: +XML -Extension Modules
type: feature request - behavior
versions: +Python 3.3

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



[issue13248] deprecated in 3.2, should be removed in 3.3

2011-10-28 Thread Terry J. Reedy

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

The difflib deprecations are mine and I think they should happen in 3.3.
This will serve as a reminder.

--
nosy: +terry.reedy

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



[issue13262] IDLE opens partially hidden

2011-10-28 Thread Terry J. Reedy

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

I agree and commented about this on some previous issue (which I cannot find 
now). I actually would like it to save the window position and size.

--
nosy: +terry.reedy

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



[issue13275] Recommend xml.etree for XML processing

2011-10-28 Thread Terry J. Reedy

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

In the tutorial, The xml.dom and xml.sax packages should be expanded to The 
xml.dom, xml.sax, and xml.etree packages. I suspect that the current line 
predates the addition of .etree.

We try to mostly not give opinion-based recommendations; the docs are for 
facts. Some people recommend using lxml instead of any of the above ;-).

The documentation for the xml.dom and xml.sax packages are the definition of 
the Python bindings for the DOM and SAX interfaces.

could be followed by a factual sentence like xml.etree provides an  third 
alternative.

Looking more: the intro to 19.6. xml.dom — The Document Object Model API nicely 
explains the difference between SAX and DOM processing as sequential versus 
random access. The intro to 19.13. xml.etree.ElementTree — The ElementTree XML 
API says nothing about how it compares to the others. Perhaps the sentence 
should be xml.etree provides a tree-based interface different from xml.dom. 
(assuming this is a fact). Make your suggestion.

--
nosy: +terry.reedy

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



[issue2892] improve cElementTree iterparse error handling

2011-10-28 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

Proposed patch for 3.3.

--
keywords: +patch
stage: needs patch - patch review
Added file: http://bugs.python.org/file23544/issue2892_etree_iterparse.diff

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



[issue1681674] subprocess.Popen fails with socket._fileobject on Windows

2011-10-28 Thread James Burgess

James Burgess jamestreborburg...@gmail.com added the comment:

Can't Fix that is not true. 

I've just fixed this in 2.7 with a trivial change to subprocesss.py, I think 
it'd work in over versions too.

Note that type shenanigans are already in play in _get_handles, it's looking at 
the types of the parameters being passed in to decide how to get a hold of the 
handle. The socket module makes a duck type of the file object. The fileno() 
method of the socket object returns a handle not a CRT file descriptor. This is 
exactly the kind of handle that _get_handles() is looking for.

So all that is needed is one more if to the sequence of how to get the 
handle which for a socket object would be just stdin.fileno() etc.

I've just tested this in a fairly complicated remote job queuing software (a 
commercial product) that has the ability to connect the spooler (on one 
machine) with an arbitrary server machine (linux, osx and now windows) via a 
socket. The job is launched with subprocess.Popen and sockets are wired into 
the stdin,stdout and stderr. Works beautifully now.

I've attached a patch file made with:
$ diff -c subprocess.py.ORIG subprocess.py   subprocess.py.patch

Apply with:
$ cd  Python-2.7.1/Lib ; patch -p0  c:/temp/subprocess.py.patch

Cheers,
- James

--
keywords: +patch
nosy: +James.Burgess
Added file: http://bugs.python.org/file23545/subprocess.py.patch

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



[issue13281] robotparser.RobotFileParser ignores rules preceeded by a blank line

2011-10-28 Thread Terry J. Reedy

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

Because of the line break, clicking that link gives Server error 404.
http://www.robotstxt.org/norobots-rfc.txt
works (so please pay attention to formatting). The main page is
http://www.robotstxt.org/robotstxt.html 

The way I read the grammar, 'records' (which start with an agent line) cannot 
have blank lines and must be separated by blank lines. Other than than, the 
suggestion seems reasonable, but it also seems like a feature request. Does 
test/test_robotparser pass with the patch?

I also do not see Crawl-delay and Sitemap (from whitehouse.gov) in the 
grammar referenced above. So I wonder if de facto practice has evolved.

Philip S.: do you have any opinions?
(I am asking you because of your comments on #1437699.)

--
nosy: +osvenskan, terry.reedy

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



[issue7334] ElementTree: file locking in Jython 2.5 (OSError on Windows)

2011-10-28 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

Changeset cff78ffb932a fixed the issue for 3.2.
I will consider backporting.

--
resolution:  - fixed
stage: needs patch - patch review
versions:  -Python 3.2

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



[issue7334] ElementTree: file locking in Jython 2.5 (OSError on Windows)

2011-10-28 Thread Roundup Robot

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

New changeset eceaa31252b3 by Florent Xicluna in branch '2.7':
Closes #7334: close source files on ElementTree.parse and iterparse (partial 
backport of issue #10093 from 3.2).
http://hg.python.org/cpython/rev/eceaa31252b3

--
nosy: +python-dev
stage: patch review - committed/rejected
status: open - closed

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



[issue13238] Add shell command helpers to shutil module

2011-10-28 Thread Nick Coghlan

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

The first version I wrote *did* automatically invoke shlex.quote on all 
interpolated values, but that breaks wildcard handling. You can see that in the 
examples I posted above. With the default whitespace escaping (which allows 
spaces in filenames), wildcard matching still works (thus the list of 
directories matching the ../py* pattern), but with full quoting it breaks 
(thus the nothing named '../py*' result).

So I figured the simplest default was you can have spaces in your filenames, 
but otherwise you can do what you want. Now that I have the 'unquoted' 
conversion specifier, I'm open to tweaking that scheme to allow the same chars 
that shlex.quote does *plus* specifically the wildcard matching chars (i.e. 
'*', '?').

--

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



[issue8256] input() doesn't catch _PyUnicode_AsString() exception; io.StringIO().encoding is None

2011-10-28 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

Confirmed in 3.3.
The patch does not apply cleanly on trunk.

--
stage: test needed - needs patch
versions: +Python 3.3 -Python 3.1

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



[issue6057] sqlite3 error classes should be documented

2011-10-28 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
stage:  - needs patch
versions: +Python 3.3 -Python 3.1

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



[issue6655] etree iterative find[text]

2011-10-28 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

ElementTree 1.3 added the iterfind method to Python 2.7 and 3.2.
http://docs.python.org/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element.iterfind

--
resolution:  - out of date
stage: test needed - committed/rejected
status: open - closed

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



[issue9375] ElementPath parser in ElementTree 1.3 does not reject element// as invalid

2011-10-28 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

This behavior is verified with unit tests.
I don't plan to change it.

--
resolution:  - wont fix
stage:  - committed/rejected
status: open - pending

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



[issue8277] ElementTree won't parse comments

2011-10-28 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
status: open - closed

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



[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

2011-10-28 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

3.1 is no longer in scope for this issue.

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

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



[issue7710] Inconsistent Exception for int() conversion

2011-10-28 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

On 3.2 it is fixed (I didn't find the related changeset).

Not backported to 2.7.

--
versions:  -Python 3.1, Python 3.2

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



[issue4221] inconsistent exception from int is confusing

2011-10-28 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

No more bug with Python 3.2.

On 2.7, we still experience the behavior described in msg75290.

--
versions:  -Python 2.6, Python 3.1, Python 3.2

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



[issue9708] cElementTree iterparse does not support parser argument

2011-10-28 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

Documentation should be fixed for 3.2 and 2.7.
Patch welcomed.

--
assignee:  - docs@python
components: +Documentation
nosy: +docs@python
stage: test needed - needs patch

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



[issue1681674] subprocess.Popen fails with socket._fileobject on Windows

2011-10-28 Thread Ned Deily

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


--
nosy: +brian.curtin

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



[issue13289] a spell error in standard lib SocketServer‘s comment

2011-10-28 Thread args wu

New submission from args wu lonepend...@gmail.com:

In line 85, the reqd should be read.
I also checked in python3.2's lib, the error still be there。

--
components: Library (Lib)
messages: 146597
nosy: args.wu
priority: normal
severity: normal
status: open
title: a spell error in standard lib SocketServer‘s comment
versions: Python 2.7

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