[issue5077] 2to3 fixer for the removal of operator functions

2010-08-05 Thread Alexandre Vassalotti

Alexandre Vassalotti  added the comment:

Patch committed in r83740. I will make the documentation update in a separate 
commit.

Thanks!

--
resolution:  -> accepted
stage: patch review -> committed/rejected
status: open -> closed
versions:  -Python 2.6, Python 2.7, Python 3.0, Python 3.1

___
Python tracker 

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



[issue9452] configparser support for reading from strings and dictionaries

2010-08-05 Thread Fred L. Drake, Jr.

Fred L. Drake, Jr.  added the comment:

(Apparently I don't have the right permissions on Rietveld.)

- Docstrings should be written in the standard PEP-8 way (single line
  summary + additional explanation as needed following a blank line).

- read_sting and read_dict should still take a `filename` argument for
  use in messages, with  and something like  (with
  the caller's __file__ being filled in if not provided).

- Indentation in the last read_dict of
  test.test_cfgparser.BasicTestCase.test_basic_from_dict is
  incconsistent with the previous read_dict in the same test.

- Lines over 79 characters should be shortened.  Most of these are in
  docstrings, so just re-wrapping should be sufficient for most.

- Changing the test structure to avoid self.cf may have been convenient,
  but is unrelated to the actual functionality changes.  In the future
  such refactorings should be performed in separate patches.  (Ordering
  dependencies are fine, so long as they're noted in the relevant
  issues.)

- DuplicateOptionError is missing from __all__.

- Changing the constructor to use keyword-only arguments carries some
  backward-compatibility risk.  That can be avvoided by removing that
  change and adding strict=False at the end of the parameter list.

  It's unlikely that this is a significant risk, since these parameters
  generally lend themselves to keyword usage.


I think this should have been several separate patches:

- refactoring (the self.cf changes in the tests)

- addition of the DuplicateOptionError

- the read_* methods (including the readfp deprecation)

- the new "strict" option

Don't change that at this point, but please consider smaller chunks in
the future.

--

___
Python tracker 

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



[issue5077] 2to3 fixer for the removal of operator functions

2010-08-05 Thread Alexandre Vassalotti

Alexandre Vassalotti  added the comment:

Documentation added in r83741.

--

___
Python tracker 

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



[issue1474680] pickling files works with protocol=2.

2010-08-05 Thread Alexandre Vassalotti

Alexandre Vassalotti  added the comment:

Although it is tempting to fix this, it feels to much like a feature. I am 
closing as won't fix because we don't add new features to 2.x.

--
resolution:  -> wont fix
stage: needs patch -> committed/rejected
status: open -> closed
versions:  -Python 3.1, Python 3.2

___
Python tracker 

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



[issue6290] cPickle can misread data type

2010-08-05 Thread Alexandre Vassalotti

Alexandre Vassalotti  added the comment:

It is too late for 2.6.6 now that it is released.

--
resolution:  -> wont fix
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue5671] Speed up pickling of lists in cPickle

2010-08-05 Thread Alexandre Vassalotti

Alexandre Vassalotti  added the comment:

It is too late now for the 2.x version. And, the huge patch in issue 9410 
includes an updated version of this patch for 3.x.

--
resolution:  -> duplicate
stage:  -> committed/rejected
status: open -> closed
superseder:  -> Add Unladen Swallow's optimizations to Python 3's pickle.

___
Python tracker 

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



[issue6361] I/O object wrappers shouldn't close their underlying file when deleted.

2010-08-05 Thread Alexandre Vassalotti

Alexandre Vassalotti  added the comment:

OK I am convinced, the current behavior is fine. Let's close this one.

--
resolution:  -> wont fix
stage: needs patch -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue9427] logging.error('...', exc_info=True) should display upper frames, too

2010-08-05 Thread Thomas Guettler

Thomas Guettler  added the comment:

Until exc_info=True prints the current stack, I use this pattern:

import traceback

logging.error(u's...\nStack: %s' % (
''.join(traceback.format_stack())), exc_info=True)

--

___
Python tracker 

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



[issue9410] Add Unladen Swallow's optimizations to Python 3's pickle.

2010-08-05 Thread Alexandre Vassalotti

Alexandre Vassalotti  added the comment:

Ah, that's right Skip. You did fixed it in Unladen Swallow's trunk. I will take 
a look at your solution.

http://code.google.com/p/unladen-swallow/source/diff?spec=svn1167&r=1038&format=side&path=/trunk/Modules/cPickle.c&old_path=/trunk/Modules/cPickle.c&old=988

--

___
Python tracker 

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



[issue5683] Speed up cPickle's pickling generally

2010-08-05 Thread Alexandre Vassalotti

Alexandre Vassalotti  added the comment:

Too late to make this change in 2.x. And the patch in issue 9410 includes the 
optimization for 3.x.

--
resolution:  -> duplicate
stage: patch review -> committed/rejected
status: open -> closed
superseder:  -> Add Unladen Swallow's optimizations to Python 3's pickle.

___
Python tracker 

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



[issue9514] platform.linux_distribution() under Ubuntu returns ('debian', 'squeeze/sid', '')

2010-08-05 Thread Marc-Andre Lemburg

Marc-Andre Lemburg  added the comment:

I think we'll start to use the lsb_release command if available and as 
suggested in issue1322.

Note that if you test the API, make sure that you use a Python build from 
sources available on python.org - the Debian and Ubuntu packagers tend to patch 
Python in their distributions (just like RedHat and others do) and we don't 
really want to hunt down bugs/problems that are not relevant to our code base.

--

___
Python tracker 

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



[issue5871] email.header.Header allows to embed raw newlines into a message

2010-08-05 Thread Jakub Wilk

Jakub Wilk  added the comment:

Sorry if that wasn't clear in the first place: this is not a feature request. I 
agree that current behavior for email.header.Header (as shown in the first 
message) is bizarre, confusing, unnecessary, and potentially leading to 
vulnerabilities - that's why I filed this bug.

--
status: pending -> open
title: email.header.Header allow to embed raw newlines into a message -> 
email.header.Header allows to embed raw newlines into a message
type: feature request -> behavior

___
Python tracker 

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



[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator

2010-08-05 Thread Hagen Fürstenau

Hagen Fürstenau  added the comment:

IIUC, the only change you suggest for my patch is using "finite iterable" 
instead of "sequence" or "iterable", right?

I've looked at the docs and there seems to be no precedent for "finite 
iterable". I think it's just as obvious that the iterable has to yield a 
correct (and finite) number of parameters as the fact that 
"list(itertools.count())" is a bad idea. So for consistency I would like to 
keep "iterable".

--

___
Python tracker 

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



[issue9521] xml.etree.ElementTree strips XML declaration and procesing instructions

2010-08-05 Thread Mark Summerfield

New submission from Mark Summerfield :

If you read in an XML file using xml.etree.ElementTree.parse() and then write 
it out again using xml.etree.ElementTree.write() what is written may not be the 
same as what was read. In particular any XML declaration and processing 
instructions are stripped.

It seems to me that the parser should at least preserve any declaration and 
processing instructions so that reading and writing match up.

Here's an example:

Python 3.1.2 (r312:79147, Jul 15 2010, 10:56:05) 
[GCC 4.4.4] on linux2
Type "copyright", "credits" or "license()" for more information.
>>> file = "control-center.xml"
>>> open(file).read()[:500]
'\nhttp://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"; [\n\n]>\n\n  \n  \n
\n  The GNOME Control Centre provides a 
central place for the user to setup their GNOME experience. It can let you 
configure anything from the behaviour of your window borders to the default 
font type.\n   '
>>> import xml.etree.ElementTree as etree
>>> xml = etree.parse(file)
>>> temp = "temp.xml"
>>> xml.write("temp.xml", encoding="utf-8")
>>> open(temp).read()[:500]
'\n  \n  \n\n  The GNOME Control Centre provides a central 
place for the user to setup their GNOME experience. It can let you configure 
anything from the behaviour of your window borders to the default font 
type.\n\nControl Centre\n
\n  
\n\tKevinBreit\n  
\n\n\n  >>

--
components: Library (Lib)
messages: 112961
nosy: mark
priority: normal
severity: normal
status: open
title: xml.etree.ElementTree strips XML declaration and procesing instructions
type: behavior
versions: Python 3.1

___
Python tracker 

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



[issue9522] xml.etree.ElementTree forgets the encoding

2010-08-05 Thread Mark Summerfield

New submission from Mark Summerfield :

If you read in an XML file that specifies its encoding and then later on use 
xml.etree.ElementTree.write(), it is always written using US-ASCII. 

I think the behaviour should be different:
(1) If the XML that was read included an encoding, that encoding should be 
remembered and used when writing.
(2) If there is no encoding the default for writing should be UTF-8 (which is 
the standard for XML files).
(3) For non-XML files use US-ASCII.

Naturally, any of these could be overridden using an encoding argument to the 
write() method.

--
components: Library (Lib)
messages: 112962
nosy: mark
priority: normal
severity: normal
status: open
title: xml.etree.ElementTree forgets the encoding
type: behavior
versions: Python 3.1

___
Python tracker 

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



[issue9510] sqlite3.Warning isnt a subclass of exceptions.Warning

2010-08-05 Thread Nick Craig-Wood

Nick Craig-Wood  added the comment:

I think the fact that sqlite may not be using the warnings properly is 
independent of this problem.  Warnings should be filterable, but if sqlite 
isn't notifying them properly - that would be a different bug.

BTW I came across this problem when trying to swap out MySQLdb with sqlite3.  
The existing code was filtering warnings, that didn't work with sqlite3, hence 
this bug report!

--

___
Python tracker 

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



[issue9510] sqlite3.Warning isnt a subclass of exceptions.Warning

2010-08-05 Thread Éric Araujo

Éric Araujo  added the comment:

I agree with Antoine. You say you want to filter warnings, but you can’t since 
they are not warnings.

--

___
Python tracker 

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



[issue9520] Add Patricia Trie high performance container

2010-08-05 Thread Éric Araujo

Éric Araujo  added the comment:

Thanks for the request Dmitry. You may want to read 
http://www.python.org/dev/peps/pep-0002/ to know which steps are required to 
add a module to the stdlib. In particular, the module has to be proven on the 
field and the author needs to sign a contributor agreement. It’s not clear 
which implementation you want to add (the one from BioPython I guess); I don’t 
know if this proposal will fly if you’re not the author of the module. (I don’t 
want to scare you away, just to explain the process.)

If you contact the author of the code you want to include and they agree with 
your idea, then it’ll be time to convince python-ideas that this would be a 
generally useful addition and that the chosen class is the best of breed.

A note about versions: I removed 3.1 since new features don’t go in stable 
releases, and 3.3 since it does not exist yet. Everything in 3.2 will go in 3.3 
too: this value is useful only to mean “won’t go in 3.2, remind later”.

I also edited the title to make it shorter, to make emails and reports more 
readable. Thanks again for your report.

--
nosy: +merwok
title: Add Patricia Trie high performance container (python's defaultdict(int) 
is unusable on datasets with 10,000,000+ keys.) -> Add Patricia Trie high 
performance container
type: feature request -> performance

___
Python tracker 

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



[issue9520] Add Patricia Trie high performance container

2010-08-05 Thread Éric Araujo

Changes by Éric Araujo :


--
type: performance -> feature request

___
Python tracker 

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



[issue9510] sqlite3.Warning isnt a subclass of exceptions.Warning

2010-08-05 Thread Gerhard Häring

Gerhard Häring  added the comment:

PEP 0249 says that the module's Warning class must be a subclass of 
StandardError. So I reject your proposed change.

There are only two cases where pysqlite raises Warning, and these could be 
changed to ProgrammerError anyway.

--
assignee:  -> ghaering
resolution:  -> rejected
status: open -> closed

___
Python tracker 

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



[issue9520] Add Patricia Trie high performance container

2010-08-05 Thread Dmitry Chichkov

Dmitry Chichkov  added the comment:

Thank you for your comment. Perhaps we should try separate this into two issues:
1) Bug. Python's dict() is unusable on datasets with 10,000,000+ keys. Here I 
should provide a solid test case showing a deviation from O(1);

2) Feature request/idea. Add Patricia Trie high performance container.

--

___
Python tracker 

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



[issue3210] subprocess.Popen does not release process handles if process cannot be started

2010-08-05 Thread Tim Golden

Tim Golden  added the comment:

Patch attached with code & test which fixes this within _subprocess.c at least 
for Windows

--
assignee:  -> tim.golden
Added file: http://bugs.python.org/file18398/3210.r83741.patch

___
Python tracker 

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



[issue9517] Make test.script_helper more comprehensive, and use it in the test suite

2010-08-05 Thread Nick Coghlan

Nick Coghlan  added the comment:

(The email daemon was not in a happy place, so posting directly)

On Thu, Aug 5, 2010 at 8:50 AM, Antoine Pitrou  wrote:
> - perhaps improve the existing functions (kill_python() does a strange dance 
> instead of calling communicate() on the subprocess.Popen object, is there a 
> reason for that?)

script_helper just factored out the old test_cmd_line approach which
was in turn based on a minimalistic change from a popen2 based
implementation (see
http://svn.python.org/view/python/trunk/Lib/test/test_cmd_line.py?r1=54386&r2=55245).
Doing something smarter probably isn't a bad idea.

--

___
Python tracker 

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



[issue9520] Add Patricia Trie high performance container

2010-08-05 Thread Mark Dickinson

Mark Dickinson  added the comment:

> 1) Bug. Python's dict() is unusable on datasets with 10,000,000+ keys.
> Here I should provide a solid test case showing a deviation from O(1);

That would be helpful.  Are you sure that the slow-down you're seeing isn't 
simply due to running out of system memory?

--
nosy: +mark.dickinson

___
Python tracker 

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



[issue8184] multiprocessing.managers will not fail if listening ocket already in use

2010-08-05 Thread Jesse Noller

Jesse Noller  added the comment:

Mark - did you observe the behavior in the Op? He's not stating the the code 
snippet runs fine, but that the second run at the same time on windows to cause 
a conflict. We need to show that either running it twice, at the same time 
against the same socket fails on windows as it should or we still have a bug

--
status: pending -> open

___
Python tracker 

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



[issue9509] argparse FileType raises ugly exception for missing file

2010-08-05 Thread Doug Hellmann

Changes by Doug Hellmann :


--
keywords: +easy

___
Python tracker 

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



[issue8041] No documentation for Py_TPFLAGS_HAVE_STACKLESS_EXTENSION or Py_TPFLAGS_HAVE_VERSION_TAG.

2010-08-05 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I don't think these flags need documenting or even deserve mentioning. 
Py_TPFLAGS_HAVE_STACKLESS_EXTENSION seems to be two bits reserved for use by 
Stackless, while Py_TPFLAGS_HAVE_VERSION_TAG should be considered by extension 
authors an internal implementation detail (in normal circumstances, it won't 
impact how they have to write their code or the semantics of their extension 
types).

--
nosy: +pitrou

___
Python tracker 

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



[issue9520] Add Patricia Trie high performance container

2010-08-05 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> 1) Bug. Python's dict() is unusable on datasets with 10,000,000+ keys. 
> Here I should provide a solid test case showing a deviation from O(1);

Try to disable the cyclic garbage collector before the test (gc.disable()).

--
nosy: +pitrou

___
Python tracker 

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



[issue9512] logging.handlers.RotatingFileHandler - mode argument not respected

2010-08-05 Thread Friðrik Már Jónsson

Friðrik Már Jónsson  added the comment:

Thank you.  I should have been more clear about what I meant.

This this condition was introduced in r38631 by Vinay Sajip having the log
message "Added optional encoding argument to file handlers." I can't easily
see why this piece of code is necessary, which absolutely doesn't mean it
isn't.

I'm going to suggest some cases where other modes may be appropriate for
loggers. This is a little open-ended and devoid of solution-orientation, but I
don't know the rationale well enough to suggest alternatives.

We do know that 'r' (read-only logger) and 'w' (logger rarely rolls over for
traditional maxBytes values, but might -- this mode also makes relatively
little sense with ``logger.FileHandler``) make little sense here. I'm not
aware of a binary log format, so 'b' might make little sense as well. What
about 'U' and '+'?

For instance, the W3C Extended Log File Format draft uses headers at the
beginning of a log file. Ideally, knowing whether to write headers to the file
is done by using the ``handler.stream`` to determine whether the file is
empty. It may be debatable whether supporting such formats is the purpose of
handlers. If not, it's at the cost of writing new libraries that handle
logging for those formats.

I will never be able to exhaustively list use cases. If these modes are safe,
shouldn't the developer decide makes sense, as long as it doesn't break the
functionality of the logger?

I don't know whether it's generally approrpiate to add people to the nosy
list. I apologise, Vinay, if that's not common practice.

--
nosy: +vinay.sajip

___
Python tracker 

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



[issue9512] logging.handlers.RotatingFileHandler - mode argument not respected

2010-08-05 Thread Friðrik Már Jónsson

Friðrik Már Jónsson  added the comment:

It may not have been entirely obvious that what I meant with the Extended Log
File Format example is that read access would be optimal.

--

___
Python tracker 

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



[issue9518] PyModuleDef_HEAD_INIT does not explicitly initialize all fields of m_base

2010-08-05 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +loewis
versions:  -Python 3.3

___
Python tracker 

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



[issue917120] imaplib: incorrect quoting in commands

2010-08-05 Thread Dave Baggett

Dave Baggett  added the comment:

Piers Lauder, author of imaplib, emailed me the following comment about this 
bug:

The regex for "mustquote_cre" looks bizarre, and I regret to say I can
no longer remember its genesis.

Note however, that the term CTL in the RFC definition for "atom-specials" means 
"any ASCII control character and DEL, 0x00 - 0x1f, 0x7f", and so maybe defining 
what is NOT an atom-special was considered easier.

The suggested replacement regex may not match these...?
-

It seems like we need to enumerate the control characters in the regex to be 
absolutely correct here.

--

___
Python tracker 

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



[issue9510] sqlite3.Warning isnt a subclass of exceptions.Warning

2010-08-05 Thread Nick Craig-Wood

Nick Craig-Wood  added the comment:

Reading PEP 0249 I can see Gerhard is correct, this patch would violate the PEP.

I think that the PEP is slightly flawed in that users are encouraged to raise 
exceptions called "Warning".  IMHO a Warning is never an exceptional condition 
and should be notified by the warnings framework.

This obviously confused the authors of MySQLdb, who do indeed warn() their 
Warning classes rather than raise() them, and it is very useful to be able to 
filter them.

To obey the letter of the PEP the authors of the MySQLdb interface multiply 
inherit their Warning class from exceptions.StandardError and 
exceptions.Warning.

I could make a patch for sqlite3 to do this if anyone thinks it would be useful.

--

___
Python tracker 

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



[issue2400] from .foo import * should work

2010-08-05 Thread Jason R. Coombs

Changes by Jason R. Coombs :


--
nosy: +jaraco

___
Python tracker 

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



[issue2400] from .foo import * should work

2010-08-05 Thread Jason R. Coombs

Jason R. Coombs  added the comment:

Is there any chance this can be back-ported to Python 2.7?

--

___
Python tracker 

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



[issue1343] XMLGenerator: nice elements

2010-08-05 Thread Mark Lawrence

Mark Lawrence  added the comment:

Can a committer look at this please.

--
stage: commit review -> patch review

___
Python tracker 

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



[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2010-08-05 Thread Mark Lawrence

Mark Lawrence  added the comment:

can committers take a look please.

--

___
Python tracker 

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



[issue6683] smtplib authentication - try all mechanisms

2010-08-05 Thread Gerhard Häring

Gerhard Häring  added the comment:

Fixed in r83742. I implemented this without a test case, because if we wait for 
a test case for this, we can wait forever (would need a SMTP server 
implementation in Python for the various auth methods).

--

___
Python tracker 

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



[issue8196] sqlit3.paramstyle reported as 'qmark'

2010-08-05 Thread Gerhard Häring

Gerhard Häring  added the comment:

There is too little value changing the paramstyle attribute. I think the 
documentation clearly states that both parameter binding methods are supported.

--
resolution:  -> rejected
status: open -> closed

___
Python tracker 

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



[issue2521] ABC caches should use weak refs

2010-08-05 Thread Mark Lawrence

Mark Lawrence  added the comment:

Can a committer take a look at this please.

--

___
Python tracker 

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



[issue3210] subprocess.Popen does not release process handles if process cannot be started

2010-08-05 Thread Tim Golden

Tim Golden  added the comment:

Patch added for 31 branch

--
Added file: http://bugs.python.org/file18399/3210.release31-maint.patch

___
Python tracker 

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



[issue3210] subprocess.Popen does not release process handles if process cannot be started

2010-08-05 Thread Tim Golden

Tim Golden  added the comment:

Patch added for 27 branch

--
Added file: http://bugs.python.org/file18400/3210.release27-maint.patch

___
Python tracker 

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



[issue3210] subprocess.Popen does not release process handles if process cannot be started

2010-08-05 Thread Brian Curtin

Brian Curtin  added the comment:

Tim,
I updated your test to use some of the newer and preferred unittest features 
and made a change to do the common stuff in loops. The _subprocess.c changes 
look fine to me. See attached issue3210_py3k.diff.

--
nosy: +brian.curtin
Added file: http://bugs.python.org/file18401/issue3210_py3k.diff

___
Python tracker 

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



[issue3210] subprocess.Popen does not release process handles if process cannot be started

2010-08-05 Thread Brian Curtin

Changes by Brian Curtin :


--
stage: unit test needed -> patch review

___
Python tracker 

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



[issue3210] subprocess.Popen does not release process handles if process cannot be started

2010-08-05 Thread Tim Golden

Tim Golden  added the comment:

Brian, I'm not sure that the test as rewritten will exercise the error.

The key is that the traceback object will prevent the handles
from being finalised until it is itself finalised. After your
change I expect the handles to release anyway since the traceback
is already finalised.

In other words, I'm not testing that an exception is raised (which
is what the with assertRaises would suggest); I'm testing that
*within the lifetime of the exception* it's still possible to
remove the files which were passed as stdin/out/err where it wasn't
previously.

--

___
Python tracker 

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



[issue3210] subprocess.Popen does not release process handles if process cannot be started

2010-08-05 Thread Brian Curtin

Brian Curtin  added the comment:

Ah ok. I got hooked onto new unittest stuff and overdid it. Whoops.

In that case, I guess just the last lines converting your "assert_" to 
"assertFalse" would be my only suggestion.

--

___
Python tracker 

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



[issue9523] Improve dbm module

2010-08-05 Thread Ray.Allen

New submission from Ray.Allen :

During the patching work of issue8634, I found several problems about the 
module dbm.gnu and dbm.ndbm, I feel it's better to address them on a separate 
issue.

1. As issue8634 said, the dbm.gnu, dbm.ndbm and dbm.dumb should have the 
similar interface, since they are intended to use the general dbm module as a 
common interface. If some methods only appears in one or two of them, like the 
"get()" method, it will be not convenient for users. Making all the three ones 
follow the collections.MutableMapping interface could be a better choice. Since 
the dbm.dumb is already collections.MutableMapping, I implemented missing 
methods of collections.MutableMapping in dbm.gnu and dbm.ndbm, and register the 
dbm object type in dbm.gnu and dbm.ndbm to the ABC. The missing methods mainly 
include get(), values(), items(), pop(), popitem(), clear()

2. I fix the dbm_contains() function which implement the "in" operator to 
accept all buffer object, just like the dbm_subscript() fuction which implment 
the "[]" slice operator. I feel it's wearied that if "dbm['a']" yields the 
expected result but at the same time "'a' in dbm" raises TypeError. 

3. The type of dbm object in dbm.gnu is not iterable, and there is no way to 
iterate on it sufficiently because the only way we can iterate over it is to 
get all the keys first using keys() and then iter on the keys list. So I 
implemented a iterator type for dbm.gnu. Besides the dbm object in dbm.ndbm is 
also not iterable, and I implemented its tp_iter by get an iterator from its 
keys list instead of implementing a "real" iterator since the ndbm c api for 
get all the keys one by one is thread specific and I could not found a way to 
implement a real iterator to avoid the problem which occurred in the case we 
get tow iterators from one db object in the same thread and iterate over both 
at the same time.

The patch contains also unittest and doc.

--
files: issue8634.diff
keywords: patch
messages: 112989
nosy: ysj.ray
priority: normal
severity: normal
status: open
title: Improve dbm module
Added file: http://bugs.python.org/file18402/issue8634.diff

___
Python tracker 

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



[issue8634] get method for dbm interface

2010-08-05 Thread Ray.Allen

Ray.Allen  added the comment:

See issue9523.

--

___
Python tracker 

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



[issue2521] ABC caches should use weak refs

2010-08-05 Thread Jack Diederich

Jack Diederich  added the comment:

This is a change in the codepath for instances that don't have __class__ 
defined.
 subclass = getattr(instance, '__class__', None)
-if subclass in cls._abc_cache:
+if subclass is not None and subclass in cls._abc_cache:

I think the same thing happens in either case (from visual inspection of the 
code) but I'd rather not change it if we don't need to.

--
nosy: +jackdied

___
Python tracker 

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



[issue5476] datetime: timedelta(minutes = i) silently fails with numpy.int32 input

2010-08-05 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

Terry,

Realistically, though, if you close this issue it is virtually guaranteed that 
not further action will be taken.  I have not been involved with numpy for a 
couple of years now, so it would take me some time to find their tracker and 
restore my credentials or open a new account.  If someone more familiar with 
the current numpy development comes across this issue, I would appreciate if he 
or she would make a report.

If you think keeping this issue open in this state is too much burden on 
triagers, feel free to close it.  IMO, however, triagers should ignore assigned 
issue unless they are more than say 6 months old with no activity.

--
nosy: +teoliphant

___
Python tracker 

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



[issue7574] PyUnicode_FromFormat broken and not documented for 2.x

2010-08-05 Thread Ray.Allen

Ray.Allen  added the comment:

It seems there is pretty much problems in PyUnicode_FromFormatV().
see issue7330.

--
nosy: +ysj.ray

___
Python tracker 

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



[issue2651] Strings passed to KeyError do not round trip

2010-08-05 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

Unassigning because others seem to be ahead of me reviewing this patch.   I 
will keep an eye on this, though.

Please note that I marked issue #614557 to depend on this one.  Adding 'key' 
attribute to exceptions is the subject of that issue.

While I support these features, I would really like to see a more comprehensive 
redesign as a part of PEP 3151.  I think it would be a mistake to rush 
something in before PEP 3151 is implemented and then discover that it was not 
the best choice as a part of bigger picture.

--
assignee: belopolsky -> 

___
Python tracker 

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



[issue614557] LookupError etc. need API to get the key

2010-08-05 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
assignee: belopolsky -> 

___
Python tracker 

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



[issue7567] Messed up terminal after calling curses.initscr() twice.

2010-08-05 Thread Barry A. Warsaw

Barry A. Warsaw  added the comment:

Doko asks in IRC to apply this for 2.6.6.  Approved.

--
nosy: +barry
status: pending -> open

___
Python tracker 

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



[issue5871] email.header.Header too lax with embeded newlines

2010-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

My apologies for misunderstanding. Feature removal requests are sufficiently 
rare that I thought you were posting a mockup of what you wanted to be able to 
do, as many others have done. So we definitely agree on that example. I changed 
the title to be a little clearer that stricter checking is desired.

Unless that example violates a prohibition in the docs, removing this bad 
feature is still a feature request. The point is moot, however, since RDM is 
working on a mail module overhaul (for 3.2, I hope) and I doubt previous 
versions will be separately patched. I will let him decide if examples like 
this can be sensibly prohibited without disabling something that should be 
allowed.

--
title: email.header.Header allows to embed raw newlines into a message -> 
email.header.Header too lax with embeded newlines

___
Python tracker 

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



[issue5905] strptime fails in non-UTF locale

2010-08-05 Thread Mark Lawrence

Mark Lawrence  added the comment:

I can't reproduce this on Windows Vista with 3.1 or 3.2 despite trying several 
Western & Eastern European, Chinese & Japanese locales.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator

2010-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Ok, leave iterable as is. More important, you have two disjoint patches that I 
believe should be combined.

--

___
Python tracker 

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



[issue2651] Strings passed to KeyError do not round trip

2010-08-05 Thread Brett Cannon

Changes by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue9512] logging.handlers.RotatingFileHandler - mode argument not respected

2010-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Given that you decided to argue for a code change (which my comment implicitly 
invited), adding someone (VS in this case) to nosy to respond is the right 
thing to do and fairly common. Assigning to someone is not, as least not any 
more. If someone agrees to change the code, the headers can be changed again.

--

___
Python tracker 

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



[issue9079] Make gettimeofday available in time module

2010-08-05 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

Updated the patch to reflect recent datetimemodule.c renaming to 
_datetimemodule.c.  No other changes between issue9079b.diff and 
issue9079c.diff.   I am going to commit issue9079c.diff soon unless someone 
wants more time to review.

--
Added file: http://bugs.python.org/file18403/issue9079c.diff

___
Python tracker 

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



[issue9079] Make gettimeofday available in time module

2010-08-05 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

Committed issue9079c.diff as r83744.  This commit does not provide 
time.gettimeofday() and therefore does not close the issue.

--
keywords:  -needs review, patch
stage: commit review -> needs patch

___
Python tracker 

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



[issue9315] The trace module lacks unit tests

2010-08-05 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

Eli,

Are you still working on this?  Please note that Georg committed "beginnings of 
a trace.py unittest" in r83527, so your tests will need to be merged with his.

--
nosy: +georg.brandl

___
Python tracker 

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



[issue9315] The trace module lacks unit tests

2010-08-05 Thread Eli Bendersky

Eli Bendersky  added the comment:

Alexander,

Yes, I plan to work on this during the weekend (which starts tomorrow where I'm 
at). 

Georg,

Are you having plans for writing comprehensive tests for the module, or is this 
just a placeholder? I have no problem merging with this change, but if you have 
any ideas, please let me know. You can see the latest versions of my tests in 
the patch files attached to this issue.

--

___
Python tracker 

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



[issue9315] The trace module lacks unit tests

2010-08-05 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

On Thu, Aug 5, 2010 at 2:04 PM, Eli Bendersky  wrote:
..
> Georg,
>
> Are you having plans for writing comprehensive tests for the module, or is 
> this just a placeholder?

I think I can answer for Georg (subject to being corrected, of
course.)  Georg's commit was to close issue #3821 and the test is by
Amaury.   I don't think either of them planned to write a
comprehensive test suite for the trace module.

--
nosy: +amaury.forgeotdarc

___
Python tracker 

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



[issue9524] CTRL_C_EVENT and CTRL_BREAK_EVENT cannot be registered by signal.signal() method on windows

2010-08-05 Thread Valentine Gogichashvili

New submission from Valentine Gogichashvili :

When executing the following code on Windows 7 64-bit ::

  import sys
  import signal
  import time
  print 'Version:'
  print sys.executable or sys.platform, sys.version
  print
  print

  def h(s, f): print s

  signal.signal(signal.CTRL_BREAK_EVENT, h)

we get the following output::

  Version:
  C:\Python27\python.exe 2.7 (r27:82525, Jul  4 2010, 07:43:08) [MSC   
v.1500 64 bit (AMD64)]

  Traceback (most recent call last):
  File "signal_ctrl_break_event.py", line 14, in 
signal.signal(signal.CTRL_BREAK_EVENT, h)
  RuntimeError: (0, 'Error')

When trying to register a handler for a signal.CTRL_C_EVENT the exception is as 
follows::

  File "signal_ctrl_c_event.py", line 6, in 
signal.signal(signal.CTRL_C_EVENT, h)
  ValueError: signal number out of range

--
components: Library (Lib), Windows
messages: 113005
nosy: valgog
priority: normal
severity: normal
status: open
title: CTRL_C_EVENT and CTRL_BREAK_EVENT cannot be registered by 
signal.signal() method on windows
type: behavior
versions: Python 2.7

___
Python tracker 

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



[issue9524] Document CTRL_C_EVENT and CTRL_BREAK_EVENT usage on Windows

2010-08-05 Thread Brian Curtin

Brian Curtin  added the comment:

Those two signals are only intended to work with os.kill -- they are specific 
to the GenerateConsoleCtrlEvent function in Modules/posixmodule.c. I'll have to 
change the documentation to note that.

If you want to send those events to other processes, have a look at os.kill and 
some example usage in Lib/test/test_os.py and Lib/test/win_console_handler.py. 
This also needs better documentation.

--
assignee:  -> brian.curtin
components: +Documentation
nosy: +brian.curtin
stage:  -> needs patch
title: CTRL_C_EVENT and CTRL_BREAK_EVENT cannot be registered by 
signal.signal() method on windows -> Document CTRL_C_EVENT and CTRL_BREAK_EVENT 
usage on Windows
versions: +Python 3.2

___
Python tracker 

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



[issue8285] IDLE not smart indenting correctly in nested statements

2010-08-05 Thread Mark Dickinson

Mark Dickinson  added the comment:

I don't think this is specific to IDLE;  it also happens when launching the 
python interpreter directly from a terminal on OS X or Linux.  (BTW, what 
platform are you on?)

As far as I can tell, the TAB character is simply advancing to the next tab 
stop;  those tab stops are determined by the terminal, and can be controlled 
with the 'tabs' command on Linux.  Though if you're using the readline library, 
that seems to override or reset the tab settings somehow.

--
components: +Interpreter Core -IDLE
nosy: +mark.dickinson

___
Python tracker 

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



[issue4032] distutils cannot recognize ".dll.a" as library on cygwin

2010-08-05 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.6, Python 3.0

___
Python tracker 

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



[issue4032] distutils cannot recognize ".dll.a" as library on cygwin

2010-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

With development of disutils2, distutils issues are not getting much separate 
attention.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue1274324] 'setup.py install' fail on linux from read-only storage

2010-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

With development of disutils2, distutils issues are not getting much separate 
attention.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue9524] Document CTRL_C_EVENT and CTRL_BREAK_EVENT usage on Windows

2010-08-05 Thread Brian Curtin

Brian Curtin  added the comment:

Fixed the first part, denoting that signal.CTRL_C_EVENT and 
signal.CTRL_BREAK_EVENT are for os.kill only. Done in r83745 (py3k) and r83746 
(release27-maint).

Leaving open for the second part about their usage.

--

___
Python tracker 

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



[issue1011113] distutils install with -b / --build-base

2010-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

With development of disutils2, distutils issues are not getting much separate 
attention. Is this still an issue with 2.7 or later?

--
components: +Distutils -None
nosy: +terry.reedy

___
Python tracker 

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



[issue5936] Add MSI suport for uninstalling individual versions

2010-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I am just responding so this will not show up on the 'unanswered issues' list.

--
components: +Distutils
nosy: +terry.reedy

___
Python tracker 

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



[issue6466] duplicate get_version() code between cygwinccompiler and emxccompiler

2010-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I am just responding so this will not show up on the 'unanswered issues' list.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue5936] Add MSI suport for uninstalling individual versions

2010-08-05 Thread Éric Araujo

Éric Araujo  added the comment:

Terry, why? It is, after all, still unanswered.

--
nosy: +merwok

___
Python tracker 

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



[issue6696] Profile objects should be documented

2010-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I am just responding so this will not show up on the 'unanswered issues' list. 
It appears that GB has accepted this as something that needs to be done.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue6466] duplicate get_version() code between cygwinccompiler and emxccompiler

2010-08-05 Thread Éric Araujo

Éric Araujo  added the comment:

Tarek, does this still apply?

--
components: +Distutils2
nosy: +merwok
versions:  -Python 2.7

___
Python tracker 

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



[issue1703178] link_objects in setup.cfg crashes build

2010-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Is there still a problem with 2.7 or 3.x?

--
nosy: +terry.reedy
status: open -> pending
versions: +Python 2.7 -Python 2.6, Python 3.0

___
Python tracker 

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



[issue7694] DeprecationWarning from distuils.commands.build_ext needs stacklevel

2010-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

With development of disutils2, distutils issues are not getting much separate 
attention. This may or may not get folded in to disutils2.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue7726] Remove required metadata warnings for sdist

2010-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

With development of disutils2, distutils issues are not getting much separate 
attention. This may or may not get folded in to disutils2.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue8306] ctypes.create_string_buffer should only accept bytes

2010-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I am just responding so this will not show up on the 'unanswered issues' list.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator

2010-08-05 Thread Hagen Fürstenau

Hagen Fürstenau  added the comment:

Attaching a combined patch against the current py3k.

--
Added file: http://bugs.python.org/file18404/combined.patch

___
Python tracker 

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



[issue7894] too aggressive dependency tracking in distutils

2010-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

With development of disutils2, distutils issues are not getting much separate 
attention. This may or may not get folded in to disutils2.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue8315] ./python -m unittest test.test_importlib doesn't work

2010-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I am just responding so this will not show up on the 'unanswered issues' list.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue3854] Document sqlite3 vs. threads

2010-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Do you have any specific suggestion that something should be added somewhere, 
or is this a report that should be closed?

--
nosy: +terry.reedy

___
Python tracker 

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



[issue1011113] distutils install with -b / --build-base

2010-08-05 Thread Éric Araujo

Éric Araujo  added the comment:

Tarek maintains distutils and heads the development of distutils2; he’s very 
busy because of new work and baby these months. I have reviewed, updated and 
sometimes closed a bunch of distutils issues in April, before I started my GSoC 
work on distutils2, and I have less time now. With all due respect, I would 
like if you didn’t update distutils bugs with a boilerplate comment; GSoC is 
nearly over and I’ll get back to review distutils bugs, so your messages will 
prevent me from finding unanswered reports. Can you kindly tell me why you do 
that?

--
nosy: +merwok

___
Python tracker 

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



[issue8285] IDLE not smart indenting correctly in nested statements

2010-08-05 Thread Tofystedeth

Tofystedeth  added the comment:

You're right, it also does it when I use the Python shell from the command 
prompt.  I'm running Windows Vista 32bit SP2.

--

___
Python tracker 

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



[issue1274324] 'setup.py install' fail on linux from read-only storage

2010-08-05 Thread Éric Araujo

Éric Araujo  added the comment:

Alexander, thank you for the report. I’m sorry there was no reply earlier. 
Distutils was without dedicated maintainer for a long time, now Tarek has taken 
it over and fixes bugs. He’s very busy these months, so I’ll investigate this 
later this month when I get some time. Thanks again!

--
nosy: +merwok

___
Python tracker 

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



[issue8299] Improve GIL in 2.7

2010-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

For better or worse, this did not make it into 2.7.
Is it the sort of thing that could still go into a bug-fix release, without 
alpha/beta testing?
Or should this be closes as out-of-date?

--
nosy: +terry.reedy

___
Python tracker 

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



[issue8411] Improve condition variable emulation on NT

2010-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

This patches ceval_gil.h. Can these changes be unit tested?
Or is this intended to be an internal performance, invisible-to-the-user, code 
improvement?
Antoine, are you going to look at this?

--
nosy: +terry.reedy
stage:  -> patch review
type:  -> performance

___
Python tracker 

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



[issue8416] python 2.6.5 documentation can't search

2010-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

With FireFox, searching from http://docs.python.org/release/2.6.5/
does not get 404 Not Found for me, but neither does it return any hits. The 
2.7, 3.1.2, 3.2a pages work fine.

Georg, I do not see a 2.6.6 page. Can you verify that it will work when 
released?

--
nosy: +terry.reedy

___
Python tracker 

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



[issue8426] multiprocessing.Queue fails to get() very large objects

2010-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

By 'crash', do you actually mean 'hang'? 
Jesse, is it reasonable to stuff pickles of 100s of megabytes through the 
connections?

--
nosy: +terry.reedy
versions:  -Python 2.6

___
Python tracker 

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



[issue8491] Need readline command and keybinding information

2010-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Can you suggest a specific link and a specific location where to add it?

--
assignee: georg.brandl -> d...@python
nosy: +d...@python, terry.reedy
versions:  -Python 2.6

___
Python tracker 

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



[issue8426] multiprocessing.Queue fails to get() very large objects

2010-08-05 Thread Jesse Noller

Jesse Noller  added the comment:

I don't know that it's unreasonable to send that much data, but it would 
certainly be slow, and I would not recommend it. Therefore, this is still on 
the list for when I have time

--

___
Python tracker 

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



[issue9525] webbrowser: open new tab in unobtrusive way

2010-08-05 Thread Filip Gruszczyński

New submission from Filip Gruszczyński :

webbrowser module doesn't allow to open url in an unobtrusive way. Right now if 
browser is minimized it is brought to the top. Furthermore if you browser is 
already in the top, new tab is opened and user is moved to this top. It would 
be useful, if tab could be opened in background (just like when you open a link 
in chrome in new tab, new tab is created, but you stay in current window).

--
components: Library (Lib)
messages: 113034
nosy: gruszczy
priority: normal
severity: normal
status: open
title: webbrowser: open new tab in unobtrusive way
type: feature request
versions: Python 2.6

___
Python tracker 

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



[issue1684] CGIHTTPServer does not chdir prior to executing the CGI script

2010-08-05 Thread Fazal Majid

Fazal Majid  added the comment:

Well, CGI/1.1 was formally documented by RFC 3875 in October 2004 (a full 11 
years after CGI was introduced...).
http://www.rfc-editor.org/rfc/rfc3875.txt

The RFC is classified as "informative", but it's as close to a definitive spec 
for CGI as we will ever get. Section 7 described the system-specific 
implementation notes, and 7.2 specifies UNIX in particular:

The current working directory
  The current working directory for the script SHOULD be set to the
  directory containing the script.

This is also the specified behavior for AmugaDOS and EBCDIC POSIX systems. 
Oddly enough, the RFC editor did not find it worthwhile to specify the behavior 
on Windows...

--

___
Python tracker 

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



[issue8416] python 2.6.5 documentation can't search

2010-08-05 Thread Santiago Gala

Santiago Gala  added the comment:

I got this trying to reply:

This is the mail system at host psf.upfronthosting.co.za.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

  The mail system

 (expanded from
   ): Command died with signal 9:
   "/home/roundup/roundup/bin/roundup-mailgw /home/roundup/trackers/tracker"

Final-Recipient: rfc822; roundup+trac...@psf.upfronthosting.co.za
Original-Recipient: rfc822;rep...@bugs.python.org
Action: failed
Status: 5.3.0
Diagnostic-Code: x-unix; internal software error


-- Forwarded message --
From: Santiago Gala 
To: Python tracker 
Date: Thu, 5 Aug 2010 21:52:14 +0200
Subject: Re: [issue8416] python 2.6.5 documentation can't search
You should find the 404 in http://docs.python.org/release/2.6.5/searchindex.js 
, not in the "root" of the release. I.E., it is the search index that is 
missing.

Regards
Satntiago

On Thu, Aug 5, 2010 at 9:41 PM, Terry J. Reedy  wrote:


Terry J. Reedy  added the comment:

With FireFox, searching from http://docs.python.org/release/2.6.5/
does not get 404 Not Found for me, but neither does it return any hits. The 
2.7, 3.1.2, 3.2a pages work fine.

Georg, I do not see a 2.6.6 page. Can you verify that it will work when 
released?

--
nosy: +terry.reedy

--

___
Python tracker 

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



[issue8548] Building on CygWin 1.7: PATH_MAX redefined

2010-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

None of the developers are much up on Cygwin and I am not sure it is directly 
supported by the core distribution. If it is not, this should be closed unless 
you have a specific patch.

In any case, you might do better with your question on python-list. Also, PEP11 
list Jason Tishler (ja...@tishler.net) as Cygwin maintainer.

Next time, please attach an edited, plain-text .txt log that can be viewed in 
the browser. I would have to be really motivated to download and extract a 
tar.gz file.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue9514] platform.linux_distribution() under Ubuntu returns ('debian', 'squeeze/sid', '')

2010-08-05 Thread Matthias Klose

Matthias Klose  added the comment:

IMO using lsb_release is not an option, because it can take some time to 
complete. So maybe it's better for the Ubuntu change to guard the check with 
the existance of /etc/debian_version.

Please could you attach a Mandriva lsb-release file?

--

___
Python tracker 

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



[issue8299] Improve GIL in 2.7

2010-08-05 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

That question should probably raised on python-dev, not the bug tracker.

--
nosy: +rhettinger

___
Python tracker 

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



  1   2   >