[issue4347] Circular dependency causes SystemError when adding new syntax

2009-02-09 Thread Thomas Lee

Thomas Lee  added the comment:

This would appear to be another build quirk: Lib/symbol.py needs to be
regenerated if Grammar/Grammar changes.

Brett, do you think it would be okay for this file to be generated
automatically as part of the build process? I can't think of any good
reason why this should continue to be a manual task.

Lib/token.py is in a similar boat, except its dependency is on
Include/token.h

Whatever the decision, I'll provide another review/functional patch pair.

___
Python tracker 

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



[issue1818] Add named tuple reader to CSV module

2009-02-09 Thread Jervis Whitley

Jervis Whitley  added the comment:

An implementation of a namedtuple reader and writer.

Created a writer for the case where user would like to specify
desired field names and default values on missing field names.

e.g.
mywriter = NamedTupleWriter(f, fieldnames=['f1', 'f2', 'f3'], 
restval='missing')

Nt = namedtuple('LessFields', 'f1 f3')
nt = Nt(f1='one', f2=2)

mywriter.writerow(nt) # writes one,missing,2

any thoughts on case where defined fieldname has a leading 
underscore? Should there be a flag to silently ignore? 

e.g. 
if self._ignore_underscores:
   fieldname = fieldname.lstrip('_')

Leading underscores may be present in an unsighted csv file,
additionally, spaces and other non alpha numeric characters pose 
a problem that does not affect the DictReader class. 

Cheers,

--
keywords: +patch
nosy: +jdwhitley
Added file: http://bugs.python.org/file12990/ntreader3.diff

___
Python tracker 

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



[issue5134] Compiler warnings in sqlite module

2009-02-09 Thread Ulrich Eckhardt

Ulrich Eckhardt  added the comment:

"What specific file would you put these pragmas into? Are you perhaps
proposing to change upstream code?"

I would put it into the only sourcefile there is, and yes, I would
change upstream code. Obviously, it would be better to get upstream to
incorporate those changes...

Other than that, I'm +1 for your solution using the vsprops file, which
looks clean to me.

___
Python tracker 

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



[issue924806] email.Header.Header() produces wrong headers with utf8 enc.

2009-02-09 Thread Barry A. Warsaw

Barry A. Warsaw  added the comment:

This isn't a bug in Python, since it does the right thing by aliasing
'utf8' with 'utf-8'.  If this is incompatible with external mail tools,
then you should use 'utf-8' instead, but I don't think Python should
change that underneath you.

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

___
Python tracker 

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



[issue5190] optparse doex not export make_option

2009-02-09 Thread Bluebird

New submission from Bluebird :

The documentation of optparse mentions make_option() as the standard way 
to create an option list:

For example, in the doc of python 2.5:


14.3.3.2 Populating the parser 

[...]
pass it an Option instance (as returned by make_option()) 

[...]

option_list = [
make_option("-f", "--filename",
action="store", type="string", dest="filename"),
make_option("-q", "--quiet",
action="store_false", dest="verbose"),
]


(make_option() is a factory function for creating Option instances; 
currently it is an alias for the Option constructor. A future version of 
optparse may split Option into several classes, and make_option() will 
pick the right class to instantiate. Do not instantiate Option 
directly.) 
===

However, make_option is not part of the function exported in the __all__ 
list of optparse. Strangely enough, this does not prevent to use 
make_option() in regular python scripts, but it does not work when 
packaging a python application, for example with pyinstaller.

The problem is also present in python 2.6

The fix is either to update the documentation to use Option() directly 
or to add make_option to __all__

--
assignee: georg.brandl
components: Documentation, Library (Lib)
messages: 81456
nosy: bluebird, georg.brandl
severity: normal
status: open
title: optparse doex not export make_option
type: behavior
versions: Python 2.5, Python 2.6

___
Python tracker 

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



[issue5191] Partial function application 'from the right'

2009-02-09 Thread Ben North

New submission from Ben North :

The functools module includes a 'partial' class, which allows partial
function application either by positional arguments or keyword
arguments.  However, it cannot be used to create, for example, a
function splitting a string on commas, or a function to extracts logs to
base 10.  I posted

   http://mail.python.org/pipermail/python-dev/2009-January/085638.html

which suggested a 'partial_right' feature, such that the following would
work:

   >>> import functools, math

   >>> split_comma = functools.partial_right(str.split, ',')
   >>> split_comma('a,b,c')
   ['a', 'b', 'c']

   >>> log_10 = functools.partial_right(math.log, 10.0)
   >>> log_10(100.0)
   2.0

There was some useful discussion, but generally the feeling was that the
extra complexity outweighed the potential benefits.  Also, chained
partial applications were troublesome.

The overlap in functionality between 'partial_right' and an existing
patch (#1706256) to allow skipping of positional arguments was raised.

I think the present issue should probably be closed/rejected, but it was
suggested on the mailing list that having the issue and patch on the
record might be useful.  Patches are against 2.6.1 source.

--
messages: 81457
nosy: bennorth
severity: normal
status: open
title: Partial function application 'from the right'
type: feature request

___
Python tracker 

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



[issue5191] Partial function application 'from the right'

2009-02-09 Thread Ben North

Changes by Ben North :


--
keywords: +patch
Added file: http://bugs.python.org/file12991/_functoolsmodule.patch

___
Python tracker 

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



[issue5191] Partial function application 'from the right'

2009-02-09 Thread Ben North

Changes by Ben North :


Added file: http://bugs.python.org/file12992/test_functools.patch

___
Python tracker 

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



[issue4575] Py_IS_INFINITY defect causes test_cmath failure on x86

2009-02-09 Thread Mark Dickinson

Mark Dickinson  added the comment:

Fixed (I hope!) in the trunk in r69459.  I'll wait for buildbot results 
(just in case) and then merge to 2.6, 3.1 and 3.0.

The same test_cmath failure can also be seen on OS X 10.5.6/Intel when 
compiling with -fmpmath=387.  Annoyingly, the fix above doesn't work here:  
it seems that the OS X isinf is buggy.  It doesn't seem worth working 
around this bug though, since there's little sane reason to be compiling 
with -fmpmath=387 in the first place, so it's unlikely that any regular 
Python users will encounter this problem.

--
resolution:  -> fixed
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



[issue4804] Python on Windows disables all C runtime library assertions

2009-02-09 Thread Kristján Valur Jónsson

Kristján Valur Jónsson  added the comment:

Ok, how about this comment, Martin?

/* Microsoft CRT in VS2005 and higher will verify that a filehandle is
 * valid and throw an assertion if it isn't.
 * Normally, an invalid fd is likely to be a C program error and 
therefore
 * an assertion can be useful, but it does contradict the POSIX standard
 * which for write(2) states:
 *"Otherwise, -1 shall be returned and errno set to indicate the 
error."
 *"[EBADF] The fildes argument is not a valid file descriptor open 
for
 * writing."
 * Furthermore, python allows the user to enter any old integer
 * as a fd and should merely raise a python exception on error.
 * The Microsoft CRT doesn't provide an official way to check for the
 * validity of a file descriptor, but we can emulate its internal 
behaviour
 * by using the exported __pinfo data member and knowledge of the 
 * internal structures involved.
 * The structures below must be updated for each version of visual 
studio
 * according to the file internal.h in the CRT source, until MS comes
 * up with a less hacky way to do this.
 * (all of this is to avoid globally modifying the CRT behaviour using
 * _set_invalid_parameter_handler() and _CrtSetReportMode())
 */

Also, I've added the following to fileobject.h, not coming up with a 
better place:

#if defined _MSC_VER && _MSC_VER >= 1400
/* A routine to check if a file descriptor is valid on Windows.  
Returns 0
 * and sets errno to EBADF if it isn't.  This is to avoid Assertions
 * from various functions in the Windows CRT beginning with
 * Visual Studio 2005
 */
int _PyVerify_fd(int fd);
#else
#define _PyVerify_fd(A) (1) /* dummy */
#endif

___
Python tracker 

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



[issue5191] Partial function application 'from the right'

2009-02-09 Thread Calvin Spealman

Changes by Calvin Spealman :


--
nosy: +ironfroggy

___
Python tracker 

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



[issue1083299] Distutils doesn't pick up all the files it should.

2009-02-09 Thread Akira Kitada

Akira Kitada  added the comment:

I don't think that's not depends keyword is used for.
I assume explanation on issue5158 is the way that "depends" is supposed
to be used.

--
nosy: +akitada, tarek

___
Python tracker 

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



[issue1222585] C++ compilation support for distutils

2009-02-09 Thread Akira Kitada

Changes by Akira Kitada :


--
nosy: +tarek

___
Python tracker 

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



[issue1589266] bdist_sunpkg distutils command

2009-02-09 Thread Akira Kitada

Changes by Akira Kitada :


--
nosy: +tarek
type:  -> feature request
versions: +Python 2.7, Python 3.1 -Python 2.3

___
Python tracker 

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



[issue4890] handling empty text search pattern in tkinter

2009-02-09 Thread Guilherme Polo

Changes by Guilherme Polo :


--
assignee:  -> gpolo

___
Python tracker 

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



[issue5192] Update log message formatting.

2009-02-09 Thread David W. Lambert

New submission from David W. Lambert :

Allow logger object log message creation methods using ''.format method.

have:

logger_object.info('%s','lazy is better')
logger_object.debug('{0!s}'.format('wasted effort'))


want:

logger_object.debug('{0}','Lazy')


Work'rounds from pep282:

if log.isEnabledFor(logging.INFO):
hamletStr = hamletDom.toxml()
log.info(hamletStr)

or install custom Formatter.

I presume this is already on the back burner.


Incidentally, BufferingFormatter.format uses string += string instead of
''.join(list_of_strings).

--
components: Library (Lib)
messages: 81461
nosy: LambertDW
severity: normal
status: open
title: Update log message formatting.
type: feature request
versions: 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



[issue1519638] Unmatched Group issue - workaround

2009-02-09 Thread Gerard

Gerard  added the comment:

Matthew,

Thanx for the heads-up!

Regards,

Gerard.

___
Python tracker 

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



[issue4890] handling empty text search pattern in tkinter

2009-02-09 Thread Guilherme Polo

Guilherme Polo  added the comment:

Fixed on r69461, r69462, r69463 and r69464, thanks.

Will be adding tests for Tkinter.Text.search for trunk and py3k only.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue1818] Add named tuple reader to CSV module

2009-02-09 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

Consider providing a hook to a function that converts non-conforming
field names (ones with a leading underscore, leading digit, non-letter,
keyword, or duplicate name).

class NamedTupleReader:
def __init__(self, f, fieldnames=None, restkey=None, restval=None,
 dialect="excel", fieldnamer=None, *args, **kwds):
 . . .

I'm going to either post a recipe to do the renaming or provide a static
method for the same purpose.   It might work like this:

  >>> renamer(['abc', 'def', '1', '_hidden', 'abc', 'p', 'abc'])
  ['abc', 'x_def', 'x_1', 'x_hidden', 'x_abc', 'p', 'x1_abc']

___
Python tracker 

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



[issue5193] Guarantee that Tkinter.Text.search returns a string

2009-02-09 Thread Guilherme Polo

New submission from Guilherme Polo :

Tkinter.Text.search is supposed to return a string, but this is not
always true. The problem is much more likely to be noticed while using
Tk 8.5.

--
components: Tkinter
files: ensure_search_returns_str.diff
keywords: patch
messages: 81465
nosy: gpolo
severity: normal
status: open
title: Guarantee that Tkinter.Text.search returns a string
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1
Added file: http://bugs.python.org/file12993/ensure_search_returns_str.diff

___
Python tracker 

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



[issue4575] Py_IS_INFINITY defect causes test_cmath failure on x86

2009-02-09 Thread Mark Dickinson

Mark Dickinson  added the comment:

Merged to py3k in r69465.

--
status: open -> closed

___
Python tracker 

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



[issue5171] itertools.product docstring missing 'repeat' argument

2009-02-09 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

Fixed in r69466.

Benjamin, do you want to merge it to 2.6, 3.0, and 3.1?

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue5120] Disabling test_ttk_guionly on mac

2009-02-09 Thread Guilherme Polo

Guilherme Polo  added the comment:

The abort still happens occasionally, see:
http://www.python.org/dev/buildbot/all/OS%20X%20x86%20trunk/builds/118/step-test/0
(last lines)

I've talked with Daniel Steffen, who is one of the maintainers of Tcl/Tk
on Mac OSX, and I was told that all this conditional code in _tkinter.c
and tkappinit.c for TK_AQUA is outdated starting with tk 8.4.8, but tk
8.4.7 that ships with macosx (which happens to be the version being used
by the buildslave mentioned above) also includes the patch that
deprecates the usage, and we should be calling only Tk_Init on
tkappinit.c which will deal with all the details (the details are in
tkMacOSXInit:TkpInit).

There is an entry in tk's changelog that is directly related to this:
http://tktoolkit.cvs.sourceforge.net/viewvc/tktoolkit/tk/ChangeLog.2004?revision=1.1&view=markup
(lines 210-220)

Any chance I can change _tkinter and tkappinit to check for
TKINTER_OLD_AQUA (new macro to be added) instead of TK_AQUA and verify
if it helps the buildslaves ?

--
status: closed -> open

___
Python tracker 

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



[issue4347] Circular dependency causes SystemError when adding new syntax

2009-02-09 Thread Brett Cannon

Brett Cannon  added the comment:

On Mon, Feb 9, 2009 at 01:11, Thomas Lee  wrote:
>
> Thomas Lee  added the comment:
>
> This would appear to be another build quirk: Lib/symbol.py needs to be
> regenerated if Grammar/Grammar changes.
>
> Brett, do you think it would be okay for this file to be generated
> automatically as part of the build process? I can't think of any good
> reason why this should continue to be a manual task.
>

It should be a build rule and not be a manual step.

> Lib/token.py is in a similar boat, except its dependency is on
> Include/token.h
>

Same answer.

> Whatever the decision, I'll provide another review/functional patch pair.

Thanks!

___
Python tracker 

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



[issue1005113] test__locale fails on MacOS X

2009-02-09 Thread Brett Cannon

Brett Cannon  added the comment:

It's probably out of date. I will check if it is still failing tonight
or tomorrow probably.

--
assignee: jackjansen -> brett.cannon

___
Python tracker 

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



[issue1660009] continuing problem with httplib multiple set-cookie headers

2009-02-09 Thread Gabriel Genellina

Gabriel Genellina  added the comment:

I think this report is outdated and no more relevant.

--
nosy: +gagenellina

___
Python tracker 

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



[issue918368] urllib doesn't correct server returned urls

2009-02-09 Thread Rob Probin

Rob Probin  added the comment:

I agree - this appears to be the same as issue 1153027 ?

___
Python tracker 

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



[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-02-09 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Besides the fact that this is probably great work, I really wonder who
will have enough time and skills to review such a huge patch... :-S

In any case, some recommendations:
- please provide patches against trunk; there is no way such big changes
will get committed against 2.6, which is in maintenance mode
- avoid, as far as possible, doing changes in style, whitespace or
indentation; this will make the patch slightly smaller or cleaner
- avoid C++-style comments (use /* ... */ instead)
- don't hesitate to add extensive comments and documentation about what
you've added

Once you think your patch is ready, you may post it to
http://codereview.appspot.com/, in the hope that it makes reviewing easier.

___
Python tracker 

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



[issue1153027] http_error_302() crashes with 'HTTP/1.1 400 Bad Request

2009-02-09 Thread Rob Probin

Rob Probin  added the comment:

Appears to be the same as issue 918368

--
nosy: +robzed

___
Python tracker 

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



[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-02-09 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

One thing I forgot:
- please don't make lines longer than 80 characters :-)

Once the code has settled down, it would also be interesting to know if
performance has changed compared to the previous implementation.

___
Python tracker 

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



[issue4890] handling empty text search pattern in tkinter

2009-02-09 Thread Guilherme Polo

Guilherme Polo  added the comment:

I've added some tests for it on r69467 now.

___
Python tracker 

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



[issue5175] negative PyLong -> C unsigned integral, TypeError or OverflowError?

2009-02-09 Thread Mark Dickinson

Mark Dickinson  added the comment:

> However, I would like to wait until Tim comments on this.

You may be in for a long wait!  I hesitate to make the heretical 
suggestion that there may be more important things in life than fixing 
minor inconsistencies in Python, but I think it's possible that Tim has 
found some.  :-)

___
Python tracker 

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



[issue1566086] RE (regular expression) matching stuck in loop

2009-02-09 Thread Matthew Barnett

Matthew Barnett  added the comment:

This problem has been addressed in issue #2636.

Extra checks have been added to reduce the amount of backtracking.

--
nosy: +mrabarnett

___
Python tracker 

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



[issue1662581] the re module can perform poorly: O(2**n) versus O(n**2)

2009-02-09 Thread Matthew Barnett

Matthew Barnett  added the comment:

This has been addressed in issue #2636.

--
nosy: +mrabarnett

___
Python tracker 

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



[issue5169] Default hash not equal to id on AMD Sempron

2009-02-09 Thread Jesús Cea Avión

Jesús Cea Avión  added the comment:

Marc, please post the bugid for the "hash>>3" issue. It is interesting
enough to pursue it.

--
resolution: invalid -> 
status: closed -> open

___
Python tracker 

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



[issue5169] Default hash not equal to id on AMD Sempron

2009-02-09 Thread Mark Dickinson

Mark Dickinson  added the comment:

See issue 5186 for using id()/8 for the hash.

___
Python tracker 

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



[issue5169] Default hash not equal to id on AMD Sempron

2009-02-09 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

Tim, any thoughts?

--
assignee:  -> tim_one
nosy: +tim_one

___
Python tracker 

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



[issue3783] dbm.sqlite proof of concept

2009-02-09 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

Unassigning.  The code works but no one seems to be pushing for or
caring about inclusion in Py3.1.  

If commits are delayed, then you might as well adopt the dbdict.py
approach instead (reading the file in once at the beginning, operating
directly on a dict subclass, and atomically writing it out at the end).

--
assignee: rhettinger -> 

___
Python tracker 

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



[issue1662581] the re module can perform poorly: O(2**n) versus O(n**2)

2009-02-09 Thread Mark Dickinson

Mark Dickinson  added the comment:

> This has been addressed in issue #2636.

Are you sure about this?  Does the proposed new regex engine use Thompson 
NFAs, or some variant thereof?

--
nosy: +marketdickinson

___
Python tracker 

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



[issue1856] shutdown (exit) can hang or segfault with daemon threads running

2009-02-09 Thread Gabriel Genellina

Gabriel Genellina  added the comment:

I think applying Rhamphoryncus' patch in #1722344 fixes this too (that 
is, move WaitForThreadShutdown from the end of PyMain into Py_Finalize, 
so it is always called)
But it should be tested on several platforms.

--
nosy: +gagenellina

___
Python tracker 

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



[issue5122] test_tcl and test_ttk_guionly don't like each other

2009-02-09 Thread Eric Smith

Eric Smith  added the comment:

The current patch (protect_tk_loading.diff) looks reasonable to me, and
it solves my problem with the tests hanging. So I'd suggest you commit
the patch, insofar it improves on the current situation.

I'm not an expert in tk, however. So if you're looking for advice from
someone knowledgeable on tk's inner workings, you'll need to get someone
else involved.

___
Python tracker 

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



[issue1777134] minidom pretty xml output improvement

2009-02-09 Thread Roy Wood

Roy Wood  added the comment:

This patch would be very useful to me, so I'm sad to see it's been
languishing for so long.  :-(

Is there any way to encourage the maintainer to merge this into the
current branch?

--
nosy: +rrwood

___
Python tracker 

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



[issue5122] test_tcl and test_ttk_guionly don't like each other

2009-02-09 Thread Guilherme Polo

Guilherme Polo  added the comment:

Thanks Eric, committed in r69473.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue1660009] continuing problem with httplib multiple set-cookie headers

2009-02-09 Thread John J Lee

John J Lee  added the comment:

Why?

___
Python tracker 

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



[issue1777134] minidom pretty xml output improvement

2009-02-09 Thread Gabriel Genellina

Changes by Gabriel Genellina :


--
nosy: +gagenellina

___
Python tracker 

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



[issue918368] urllib doesn't correct server returned urls

2009-02-09 Thread John J Lee

John J Lee  added the comment:

This bug refers to urllib.  Issue 1153027 refers to urllib2.  It's the
same problem in each case, though.

--
nosy: +jjlee

___
Python tracker 

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



[issue1153027] http_error_302() crashes with 'HTTP/1.1 400 Bad Request

2009-02-09 Thread John J Lee

John J Lee  added the comment:

This bug refers to urllib2.  Issue 918368 refers to urllib.  It's the
same problem in each case, though.

___
Python tracker 

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



[issue5019] Specifying common controls DLL in manifest

2009-02-09 Thread Robin Dunn

Robin Dunn  added the comment:

If I understand correctly then setting an activation context won't help
because by the time that an extension module is loaded the choice of
which version of the common controls DLL will be loaded has already been
made, and it may in fact already be loaded.  The system must be told at
the time that the .exe is loaded which common controls DLL it wants,
otherwise it will use the old non-themed version.  Everything I've tried
seems to confirm this, if that is not true I'd love to see some examples.

___
Python tracker 

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



[issue5019] Specifying common controls DLL in manifest

2009-02-09 Thread Martin v. Löwis

Martin v. Löwis  added the comment:

Can you provide an example of a manifest file, and a Python script, that
demonstrates the problem? I have only heard of themes, never seen them
myself.

___
Python tracker 

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



[issue1660009] continuing problem with httplib multiple set-cookie headers

2009-02-09 Thread David Margrave

David Margrave  added the comment:

I'm not down in the weeds on this one at the moment (it was a long time
ago and I've mostly forgotten about it), but recall that I agreed with
jjlee's 3/15/07 annotation:

http://bugs.python.org/msg31276

At least, I was able to get my application working by just using
getallmatchingheaders().

___
Python tracker 

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



[issue816059] popen2 work, fixes bugs 768649 and 761888

2009-02-09 Thread Daniel Diniz

Daniel Diniz  added the comment:

Maybe this is a won't fix, since popen2 in long deprecated?

--
nosy: +ajaksu2

___
Python tracker 

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



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

2009-02-09 Thread Daniel Diniz

Daniel Diniz  added the comment:

Unless this still is a confirmed problem in supported platforms, closing
suggested.

--
components: +Tests -Build
nosy: +ajaksu2
type:  -> behavior

___
Python tracker 

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



[issue727898] Support for sending multipart form data

2009-02-09 Thread Daniel Diniz

Daniel Diniz  added the comment:

Superseder: issue 3244.

--
nosy: +ajaksu2

___
Python tracker 

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



[issue3244] multipart/form-data encoding

2009-02-09 Thread Daniel Diniz

Daniel Diniz  added the comment:

So, what is the best way to go about this (beyond docs and tests)? Beat
the linked recipe into a patch, adapt Chris' implementation?

--
nosy: +ajaksu2

___
Python tracker 

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



[issue500698] Taint a la Perl?

2009-02-09 Thread Daniel Diniz

Daniel Diniz  added the comment:

On http://mail.python.org/pipermail/python-dev/2008-November/083732.html
Nicole King wrote:

"""
I found I needed support for taint mode in python and have done some
work to realise this. It's by no means complete at this time, but I'm
floating this idea on this group to see how much interest there is.

The implementation is pretty simple:

- an extra field in PyObject to maintain the taint status
- a couple of extra functions __gettaint__() that returns the taint
status and __settaint__(value) that sets the taint value, returning the
previous status
- an additional command-line flag -a and environment variable
PYTHONIGNORETAINT that suppress taint checking
- a few macros defined in Objects/object.h to support taint management
- a new built-in exception, PyExc_TaintError, for reporting operations
on tainted objects
"""

More information and download: http://www.cats-muvva.net/software/

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

___
Python tracker 

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



[issue624827] Creation of struct_seq types

2009-02-09 Thread Daniel Diniz

Daniel Diniz  added the comment:

Issue 980098 was considered obsolete now there is namedtuple, so this
one should be closed too.

--
nosy: +ajaksu2

___
Python tracker 

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



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

2009-02-09 Thread Daniel Diniz

Daniel Diniz  added the comment:

Should I update/correct the patch or is this a won't fix?

--
nosy: +ajaksu2, georg.brandl

___
Python tracker 

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



[issue775321] plistlib error handling

2009-02-09 Thread Daniel Diniz

Daniel Diniz  added the comment:

Here's a very simple patch, is this the only path for errors from
garbage? I think docs are needed too: if apps catching ExpatError
explicitly, will break.

Not sure if this should actually change, as I don't use plistlib. I
havve nothing against closing this RFE as won't fix :)

--
components: +Library (Lib) -None
keywords: +patch
nosy: +ajaksu2
type:  -> feature request
versions: +Python 2.7
Added file: http://bugs.python.org/file12994/plistlib_garbage.diff

___
Python tracker 

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



[issue775309] button methods tkButtonDown, etc don't work

2009-02-09 Thread Daniel Diniz

Daniel Diniz  added the comment:

gpolo: So this one should be closed, right? Out-of-date and superseded
by issue 4350.

--
nosy: +ajaksu2

___
Python tracker 

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



[issue5019] Specifying common controls DLL in manifest

2009-02-09 Thread Robin Dunn

Robin Dunn  added the comment:

Ok, the following files will be attached:

python.exe.manifest: This is a copy of the manifest resource that I put
into the 2.6.1 python.exe file by hand for testing.  The original
manifest was the same but without the 2nd ...
group.

sample.py: the simple little sample I used to make the screenshots.

Snap001,png: This is sample.py running with the original python.exe
running on Vista.  Notice the plain, flat, outdated and ugly win2k look
and style of the notebook tabs and buttons.

Snap002.png:  The same sample running with a modified python.exe.  Now
it has textures, gradients, mouse-over effects and etc. and will match
the look of other modern applications running on the machine that are
using the standard themes.

Added file: http://bugs.python.org/file12995/python.exe.manifest

___
Python tracker 

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



[issue5019] Specifying common controls DLL in manifest

2009-02-09 Thread Robin Dunn

Changes by Robin Dunn :


Added file: http://bugs.python.org/file12996/sample.py

___
Python tracker 

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



[issue5019] Specifying common controls DLL in manifest

2009-02-09 Thread Robin Dunn

Changes by Robin Dunn :


Added file: http://bugs.python.org/file12997/Snap001.png

___
Python tracker 

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



[issue5019] Specifying common controls DLL in manifest

2009-02-09 Thread Robin Dunn

Changes by Robin Dunn :


Added file: http://bugs.python.org/file12998/Snap002.png

___
Python tracker 

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



[issue848910] Enable crosscompilation

2009-02-09 Thread Daniel Diniz

Daniel Diniz  added the comment:

Seems out-of-date, more recent efforts should go into a new issue IMO. 

This issue focus on generic aspects of cross-compilation, as issue
1006238 (patch). I think issue 660095 (if still valid!) is akin to this
problem.

--
nosy: +ajaksu2

___
Python tracker 

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



[issue775309] button methods tkButtonDown, etc don't work

2009-02-09 Thread Guilherme Polo

Guilherme Polo  added the comment:

Thanks for remembering, Daniel.

Closing as noted above.

--
resolution:  -> out of date
status: open -> closed
superseder:  -> Remove dead code from Tkinter.py

___
Python tracker 

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



[issue994023] threads duplicated on fork() prevent child from terminating

2009-02-09 Thread Daniel Diniz

Daniel Diniz  added the comment:

Test case works for me with trunk and py3k (rev. 69469) on Linux 2.6.24
ia32.

--
nosy: +ajaksu2

___
Python tracker 

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



[issue1122301] marshal may crash on truncated input

2009-02-09 Thread Daniel Diniz

Daniel Diniz  added the comment:

Reported as fixed by nnorwitz in msg24300, 2.4 is not supported anymore.

--
nosy: +ajaksu2

___
Python tracker 

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



[issue624827] Creation of struct_seq types

2009-02-09 Thread Raymond Hettinger

Changes by Raymond Hettinger :


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

___
Python tracker 

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



[issue1112955] move_file()'s return value when dry_run=1 unclear

2009-02-09 Thread Daniel Diniz

Daniel Diniz  added the comment:

Confirmed for trunk and py3k. Might look unimportant, but IMHO having
the same results with dry_run=1 would make it much easier to e.g.
generate target lists.

Let me know if a patch would help.

--
nosy: +ajaksu2, tarek
type:  -> behavior
versions: +Python 2.7, Python 3.1

___
Python tracker 

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



[issue1112955] move_file()'s return value when dry_run=1 unclear

2009-02-09 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

> Let me know if a patch would help.

Sure !

--
assignee:  -> tarek

___
Python tracker 

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



[issue1103023] raw_input problem with readline and UTF8

2009-02-09 Thread Daniel Diniz

Daniel Diniz  added the comment:

Please close this, reportedly fixed and no further info from OP.

--
nosy: +ajaksu2

___
Python tracker 

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



[issue1096310] sys.__stdout__ doco isn't discouraging enough

2009-02-09 Thread Daniel Diniz

Daniel Diniz  added the comment:

Current docs seem to explain what __stdout__ is for:
"""
__stdin__ / __stdout__ / __stderr__

These objects contain the original values of stdin, stderr and stdout at
the start of the program. They are used during finalization, and could
be useful to restore the actual files to known working file objects in
case they have been overwritten with a broken object.
"""

Should a note of warning be added? Something like:

Explicitly saving the original IO streams and restoring them after
redirection is safer and the recommended idiom.

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



[issue5019] Specifying common controls DLL in manifest

2009-02-09 Thread Martin v. Löwis

Martin v. Löwis  added the comment:

It looks like it should be possible to bind to a different comctl32.dll
than what gets loaded by the host application. See this KB article:

http://support.microsoft.com/default.aspx/kb/830033

which even claims that you should be able to do so with manifests
(notice how you need to define ISOLATION_AWARE_ENABLED to get different
versions of CreateWindowEx etc); also see the .NET code on how they use
explicit activation contexts 

Also see

http://blogs.msdn.com/junfeng/archive/2007/06/26/rt-manifest-resource-and-isolation-aware-enabled.aspx

for an explanation what resources must be defined so that a DLL can bind
to a different version than the rest of the process.

I think you want to put the comctl32 manifest binding into RT_MANIFEST
resource 2 (not 1, as you probably had tried so far).

___
Python tracker 

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



[issue5186] Reduce hash collisions for objects with no __hash__ method

2009-02-09 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
nosy: +jcea

___
Python tracker 

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



[issue1103926] email.base64MIME.header_encode vs RFC 1522

2009-02-09 Thread Daniel Diniz

Daniel Diniz  added the comment:

RFC 2047 says the encoding is case-insensitive. Please, close as invalid.

RFC 2047:
2. Syntax of encoded-words

   An 'encoded-word' is defined by the following ABNF grammar.
[...]
   encoded-word = "=?" charset "?" encoding "?" encoded-text "?="
   charset = token; see section 3
   encoding = token   ; see section 4

[...]
   Both 'encoding' and 'charset' names are case-independent.  Thus the
   charset name "ISO-8859-1" is equivalent to "iso-8859-1", and the
   encoding named "Q" may be spelled either "Q" or "q".

--
nosy: +ajaksu2

___
Python tracker 

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



[issue2263] struct.pack() + numpy int raises SystemError

2009-02-09 Thread engelbert gruber

engelbert gruber  added the comment:

in 2.7 svn _struct.c 

formatdef native_table[] = {
  {'B',   sizeof(char),   0,  nu_ubyte,   np_ubyte},
formatdef bigendian_table[]
  {'B',   1,  0,  nu_ubyte,   bp_uint},
formatdef lilendian_table[]
{'B',   1,  0,  nu_ubyte,   lp_uint},

np_ubyte calls get_long b/lp_uint call get_wrapped_ulong which calls
#define PyInt_Check(op) \
  PyType_FastSubclass((op)->ob_type, Py_TPFLAGS_INT_SUBCLASS)

but ob_type is set to BASE flags INT_SUBCLASS i snot set.

___
Python tracker 

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



[issue1662581] the re module can perform poorly: O(2**n) versus O(n**2)

2009-02-09 Thread Matthew Barnett

Matthew Barnett  added the comment:

The new code includes some extra checks which, although not foolproof,
certainly reduce the amount of backtracking in a lot of cases.

___
Python tracker 

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



[issue5128] compileall: consider ctime

2009-02-09 Thread Ingmar Vanhassel

Changes by Ingmar Vanhassel :


--
nosy: +ingmar

___
Python tracker 

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



[issue1112955] move_file()'s return value when dry_run=1 unclear

2009-02-09 Thread Daniel Diniz

Daniel Diniz  added the comment:

Here's a very simple-minded patch (with microtest) that changes behavior
in a questionable way.

If it goes in as-is, dry_run=1 will not always succeed anymore. So it'd
be incompatible... but a 1:1 representation of a real move kinda
requires some failure mode.

It's possible to avoid raising when dry_run=1, logging a warning that a
real move would fail, and return the imaginary new full name. Or return
None, '', etc. Suggestions?

Perhaps studying a use-case makes things clearer. 

Looks like copy_file already has the same return value independent of
dry_run.

--
keywords: +patch
Added file: http://bugs.python.org/file12999/move_file_dry_run.diff

___
Python tracker 

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



[issue1818] Add named tuple reader to CSV module

2009-02-09 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

In r69480, named tuples gained the ability to automatically rename
invalid fieldnames.

___
Python tracker 

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



[issue1004533] PEP 263: help locating the offending character

2009-02-09 Thread Daniel Diniz

Daniel Diniz  added the comment:

IIUC, we don't have the PEP 263 DeprecationWarning mentioned anymore and
this should be closed.

--
nosy: +ajaksu2

___
Python tracker 

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



[issue1008086] patch for 767150

2009-02-09 Thread Daniel Diniz

Daniel Diniz  added the comment:

This is a patch for issue 767150, which was closed in 2005.

--
nosy: +ajaksu2

___
Python tracker 

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



[issue5120] Disabling test_ttk_guionly on mac

2009-02-09 Thread Guilherme Polo

Changes by Guilherme Polo :


--
keywords: +patch
Added file: http://bugs.python.org/file13000/oldtkaqua.diff

___
Python tracker 

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



[issue1103023] raw_input problem with readline and UTF8

2009-02-09 Thread Benjamin Peterson

Changes by Benjamin Peterson :


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

___
Python tracker 

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



[issue994023] threads duplicated on fork() prevent child from terminating

2009-02-09 Thread Benjamin Peterson

Changes by Benjamin Peterson :


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

___
Python tracker 

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



[issue5128] compileall: consider ctime

2009-02-09 Thread Brett Cannon

Brett Cannon  added the comment:

Committed in 69481 and 69482 for trunk and py3k, respectively. Had to
rewrite the test code but the compileall patch went in fine. Thanks, Martin!

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

___
Python tracker 

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



[issue1008086] patch for 767150

2009-02-09 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I'm not sure in_addr_t is available everywhere. "unsigned int" should be
a good bet, since it is 32-bits in most platforms. Guarding the code
with a "#if (SIZEOF_INT == 4)" and erroring out otherwise will make the
patch ok (and, please add a test).

--
nosy: +pitrou
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue1008086] patch for 767150

2009-02-09 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Sorry, reopening.

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

___
Python tracker 

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



[issue1004533] PEP 263: help locating the offending character

2009-02-09 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Daniel, do you have developer rights on the tracker? Otherwise, you may
ask for them on python-dev if you intend to do some housekeeping :)

--
nosy: +pitrou

___
Python tracker 

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



[issue1096310] sys.__stdout__ doco isn't discouraging enough

2009-02-09 Thread Antoine Pitrou

Changes by Antoine Pitrou :


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

___
Python tracker 

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



[issue5194] OS X IDLE.app and bin/idle: missing/extra menu options

2009-02-09 Thread Ned Deily

New submission from Ned Deily :

IDLE is supposed to have various menu customizations when running on OS 
X. But currently they do not all work and the menus vary if IDLE is 
launched via IDLE.app versus via command line bin/idle.  The most 
noticeable issue is the lack of a Preferences menu item in IDLE.app to 
access the IDLE configuration settings.

ANALYSISThere are inconsistent OS X execution checks scattered
throughout idlelib.  Also, the bootstrap mechanism
for IDLE.app causes sys.executable to be set incorrectly.
Most importantly, idlemain imports idlelib before it
has fixed up the execution environment.  This can cause
the menu fixup in idlelib.Bindings to be skipped.

SOLUTIONChange idlemain to set up the execution environment
consistently and defer idlelib imports until it has done so.
Modify several OS X checks in idlelib for consistency.

APPLIES py3k, 3.0   -> patch-nad0014-py3k-30.txt
trunk, 2.6  -> patch-nad0014-trunk-26.txt

DELETE  Mac/IDLE/idlemain.py(py3k and 3.0 only!)

NOTEIn 3.x idlemain.py was copied down into the app bundle:
2.x -> Mac/IDLE/idlemain.py
3.x -> Mac/IDLE/IDLE.app/Contents/Resources/idlemain.py
3.x -> Mac/IDLE/idlemain.py  -> unused / delete
so there are two versions of this patch.
However, the 2.x location was not deleted in 3.x svn
so there are two identical files in 3.x prior to this
patch.

--
components: IDLE, Macintosh
files: patch-nad0014-trunk-26.txt
messages: 81525
nosy: nad
severity: normal
status: open
title: OS X IDLE.app and bin/idle: missing/extra menu options
type: behavior
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1
Added file: http://bugs.python.org/file13001/patch-nad0014-trunk-26.txt

___
Python tracker 

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



[issue5194] OS X IDLE.app and bin/idle: missing/extra menu options

2009-02-09 Thread Ned Deily

Changes by Ned Deily :


Added file: http://bugs.python.org/file13002/patch-nad0014-py3k-30.txt

___
Python tracker 

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



[issue5195] OS X IDLE.app and bin/idle: incorrect key defaults in 3.x

2009-02-09 Thread Ned Deily

New submission from Ned Deily :

3.x IDLE uses incorrect default key definitions on OS X

If you have not already customized your IDLE key definitions
(in ~/.idlerc), 3.x IDLE uses Windows defaults in its menus.

ANALYSISIn 2.x, the IDLE Makefile customized the default configs
in Lib/idlelib.  In 3.x there is no longer a separate
IDLE Makefile and the customization step is missing.

SOLUTIONAdd the OS X customization to the Mac/Makefile.

APPLIES py3k, 3.0

--
components: IDLE, Macintosh
files: patch-nad0015-py3k-30.txt
messages: 81526
nosy: nad
severity: normal
status: open
title: OS X IDLE.app and bin/idle: incorrect key defaults in 3.x
versions: Python 3.0, Python 3.1
Added file: http://bugs.python.org/file13003/patch-nad0015-py3k-30.txt

___
Python tracker 

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



[issue5196] OS X IDLE.app: may not launch on 3.x

2009-02-09 Thread Ned Deily

New submission from Ned Deily :

3.x OS X IDLE.app may not launch

ANALYSIS 2.x IDLE.app was built using its own Makefile + bundlebuilder.
 For 3.x, these were eliminated by checking in a skeleton app
 based on the bundlebuilder model.  But the install tailoring
 of the app does not quite work in all cases.

SOLUTION Have the Mac/Makefile do the necessary tailoring.
 Remove from the IDLE launch script the unnecessary bits left
 over from bundlebuilder.

APPLIES  py3k, 3.0

SEE ALSO Issue5194 and Issue5195:
 patch-nad0014, patch-nad0015 (should be applied first)

--
components: IDLE, Macintosh
files: patch-nad0016-py3k-30.txt
messages: 81527
nosy: nad
severity: normal
status: open
title: OS X IDLE.app: may not launch on 3.x
versions: Python 3.0, Python 3.1
Added file: http://bugs.python.org/file13004/patch-nad0016-py3k-30.txt

___
Python tracker 

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



[issue1122301] marshal may crash on truncated input

2009-02-09 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue1004533] PEP 263: help locating the offending character

2009-02-09 Thread Martin v. Löwis

Changes by Martin v. Löwis :


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

___
Python tracker 

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



[issue5143] OS X: Py_SetProgramName argument has type char*; should be wchar_t*

2009-02-09 Thread Ned Deily

Ned Deily  added the comment:

Here's the results of testing the two patches:
- patch-mbstowcs.txt should not do a free on the buffer since
  Py_SetProgramName is expecting to hold on to it (like with
  the result of a getenv(3)).
- patch-remove-PYTHONEXECUTABLE.txt works as is.

However, neither of these patches in and of themselves fix all
the issues with OS X IDLE menus on 3.x (most of the issues are
present in 2.x as well).  See Issue5194, Issue5195, and Issue5196.
In particular, the patches in 5194 and 5196 also eliminate the
dependence on PYTHONEXECUTABLE influencing sys.executable.

So, just looking at IDLE, it would not hurt to remove the
PYTHONEXECUTABLE magic. On the other hand, it is a documented
behavior of PYTHON:

http://docs.python.org/3.0/using/cmdline.html#envvar-PYTHONEXECUTABLE

and removing it *could* add extra problems for people porting
over bundlebuilder-based apps or for whatever other reason they
might be using it.

So my recommendation is to fix PYTHONEXECUTABLE.  Attached patch
patch-nad0013-py3k-30.txt does so.  It also includes a fix for 
another very similar OSX-only 2.x->3.x wchar_t conversion problem
which also causes an "incompatible pointer type" build warning,
something I noticed while investigating this.  The patch has been
tested on both py3k and 3.0.  patch-nad0013t-py3k-30.txt adds
a test case for PYTHONEXECUTABLE behavior.

Added file: http://bugs.python.org/file13005/patch-nad0013-py3k-30.txt

___
Python tracker 

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



[issue5143] OS X: Py_SetProgramName argument has type char*; should be wchar_t*

2009-02-09 Thread Ned Deily

Changes by Ned Deily :


Added file: http://bugs.python.org/file13006/patch-nad0013t-py3k-30.txt

___
Python tracker 

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



[issue5019] Specifying common controls DLL in manifest

2009-02-09 Thread Robin Dunn

Robin Dunn  added the comment:

Sorry, no luck.  I've tried before to ensure that all the DLLs and
extension modules have the manifest file (in resource 2) and it makes no
difference.  I rebuilt wxWidgets and wxPython today with
ISOLATION_AWARE_ENABLED defined to check if that would help, and reset
the manifest resource in all the binaries, but it makes no difference.

___
Python tracker 

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



[issue5197] vars() assignment fails silently when assignments made later

2009-02-09 Thread pest

New submission from pest :

Assignments to vars() behave incorrectly if those variables are use
later on in a function.

For example, try this:

==
#!/usr/bin/python

def zz():
for i in [1,2,3]:
for j in [4,5,6]:
vars()['fw_%s_%s' % (j,i)] = 'test %s %s' % (j, i)
print vars()['fw_%s_%s' % (j,i)]

fw_4_2 = 'zz'
print fw_4_2

zz()
==

The assignments work fine up till 4_2. At 4_2, the assignment apparently
fails silently, and the print raises a keyError exception.

--
components: None
messages: 81530
nosy: pest
severity: normal
status: open
title: vars() assignment fails silently when assignments made later
type: behavior
versions: Python 2.5

___
Python tracker 

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



  1   2   >