[issue16546] ast.YieldFrom needlessly has its expr value as optional

2012-11-24 Thread Daniel Urban

Changes by Daniel Urban urban.dani...@gmail.com:


--
nosy: +daniel.urban

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



[issue16545] ast.FunctionDef sets a bad value for kw_defaults when keyword-only arguments present

2012-11-24 Thread Daniel Urban

Changes by Daniel Urban urban.dani...@gmail.com:


--
nosy: +daniel.urban

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



[issue16491] IDLE and except: raise from

2012-11-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The bug is somewhere in print_exception() function in Lib/idlelib/run.py.

--

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



[issue16504] IDLE - fatal error when opening a file with certain tokenizing errors

2012-11-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

 Serhiy, was msg176255 meant for issue16491?

Yes, sorry.

--

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



[issue16504] IDLE - fatal error when opening a file with certain tokenizing errors

2012-11-24 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
Removed message: http://bugs.python.org/msg176255

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



[issue16546] ast.YieldFrom needlessly has its expr value as optional

2012-11-24 Thread Mark Dickinson

Mark Dickinson added the comment:

Brett: can you clarify---in what sense is the argument optional?  I see that 
there's a doc issue at http://docs.python.org/dev/library/ast.html, where it's 
marked as optional but shouldn't but.  Is there something more that's wrong?

If you mean that ast.YieldFrom can be instantiated without an argument, isn't 
that the same for all the ast classes?

 ast.YieldFrom()
_ast.YieldFrom object at 0x100760f50
 ast.BoolOp()
_ast.BoolOp object at 0x100760f90

--
nosy: +mark.dickinson

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



[issue9633] pdb go stack up/down

2012-11-24 Thread Xavier de Gaye

Xavier de Gaye added the comment:

It is not only the up and down commands; the where, longlist and
source commands may also overwrite changes made to f_locals.

In Markus sample script above, and with the patch applied, when the
change made to stack_2 is followed by a step command, stack_2 value
goes back to '2' again. This is because the self.curframe_locals list
is built from scratch again when processing the new trace function
triggered after the step command and a new call to frame_getlocals
(and thus to PyFrame_FastToLocals) is made on the frame of function_2
to populate self.curframe_locals, overwritting the previous value
'144' of stack_2.

With a dictionary mapping frames to f_locals (and only updating this
dictionary when adding entries for frames that do not exist in the
dictionary), the above problem is fixed. However, running step
repeatedly until returning to function_2, causes the value of stack_2
to become '2' again when in function_2. This is because, just after
returning from the frame of function_3, the following calls are made
in call_trampoline to invoke the first (after tracing function_3)
trace function in function_2 frame; the 'frame' argument of
PyFrame_FastToLocals is the frame of function_2 and so, the call to
PyFrame_FastToLocals overwrites the value '144' of stack_2, and the
value of stack_2 is back to '2' again:

  PyFrame_FastToLocals(frame);
  result = PyEval_CallObject(callback, args);
  PyFrame_LocalsToFast(frame, 1);

Only the f_locals of the top level frame is saved by
PyFrame_LocalsToFast after exiting the trace function, so it is not
possible to keep consistent the changes made in the f_locals of the
lower level frames.

Another solution would be to ensure that changes made to locals at the
top level frame are not overwritten, and to explicitly make readonly
the locals of the other frames.  See how this is done at
http://code.google.com/p/pdb-clone/source/detail?r=5643890608fce2eac318de61f1d6d065d5a7d538

--
nosy: +xdegaye

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



[issue16482] pdb.set_trace() clobbering traceback on error

2012-11-24 Thread Xavier de Gaye

Xavier de Gaye added the comment:

See also how it is fixed at
http://code.google.com/p/pdb-clone/source/detail?r=123d1b6db6649f4b54712db321865fda55395488name=default

--

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



[issue14912] Pdb does not stop at a breakpoint after a restart command and source changes

2012-11-24 Thread Xavier de Gaye

Xavier de Gaye added the comment:

See also how this is fixed at
http://code.google.com/p/pdb-clone/source/detail?r=6ad576592286a005694690906644cb3004090eeb

--

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



[issue13044] pdb throws AttributeError at end of debugging session

2012-11-24 Thread Xavier de Gaye

Xavier de Gaye added the comment:

The run, runeval and runcall methods run the debugging session in a
try/finally clause and set the global trace function to None in the
finally clause. But set_trace does not run in a try/finally, hence the
problem. A possible fix is to ensure that the bottom frame has a local
trace function and to set the global trace function to None when
returning from that frame. See how this is fixed at
http://code.google.com/p/pdb-clone/source/detail?r=ee22a278c743ea9449a3e7618acc7c33cb11bb26name=2.7

--
nosy: +xdegaye

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



[issue16180] cannot quit pdb when there is a syntax error in the debuggee (must kill it)

2012-11-24 Thread Xavier de Gaye

Xavier de Gaye added the comment:

See how this is fixed at
http://code.google.com/p/pdb-clone/source/detail?r=0d4d905c6e0aa9c47611dbae514d3f7f53776dcb

--

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



[issue16446] pdb raises BdbQuit on 'quit' when started with set_trace

2012-11-24 Thread Xavier de Gaye

Xavier de Gaye added the comment:

See how this is fixed at
http://code.google.com/p/pdb-clone/source/detail?r=8bbac1ffee749fcfd96ea3a2aaca1f240cafc2cc

--

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



[issue14743] on terminating, Pdb debugs itself

2012-11-24 Thread Xavier de Gaye

Xavier de Gaye added the comment:

See also how this is fixed at
http://code.google.com/p/pdb-clone/source/detail?r=625d61e3494d3b7e2a3e8578ddd2f204e21f1800

--

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



[issue14728] trace function not set, causing some Pdb commands to fail

2012-11-24 Thread Xavier de Gaye

Xavier de Gaye added the comment:

See also how this is fixed at
http://code.google.com/p/pdb-clone/source/detail?r=4a6d8f2515eed16347d2e2c304e1942585427d50

--

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



[issue6322] Pdb breakpoints don't work on lines without bytecode

2012-11-24 Thread Xavier de Gaye

Xavier de Gaye added the comment:

See also how this is fixed at
http://code.google.com/p/pdb-clone/source/detail?r=6b342324ebdc4558b83b9391e34478c1fa0752db

--

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



[issue16491] IDLE and except: raise from

2012-11-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch.

--
keywords: +patch
Added file: http://bugs.python.org/file28092/idle_print_exception.patch

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



[issue16491] IDLE and except: raise from

2012-11-24 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
stage: needs patch - patch review

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



[issue14913] tokenize the source to manage Pdb breakpoints

2012-11-24 Thread Xavier de Gaye

Xavier de Gaye added the comment:

See also how this is fixed at
http://code.google.com/p/pdb-clone/source/detail?r=6b342324ebdc4558b83b9391e34478c1fa0752db

--

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



[issue16491] IDLE and except: raise from

2012-11-24 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
versions: +Python 3.2
Added file: http://bugs.python.org/file28093/idle_print_exception-3.2.patch

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



[issue16533] HPUX: Unable to fork() in thread

2012-11-24 Thread Trent Nelson

Trent Nelson added the comment:

On Thu, Nov 22, 2012 at 02:18:32PM -0800, Stefan Krah wrote:
 
 New submission from Stefan Krah:
 
 There's an error on the HPUX-IA64 buildbot that might be due to
 some kernel limits. Trent, could you check if the following helps
 (requires root)?
 
 http://zensonic.dk/?p=326

Hmmm, there doesn't appear to be anything interesting in syslog.log.
I'll look into it.

--

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



[issue16534] test_float failure on IA64 (HPUX)

2012-11-24 Thread Trent Nelson

Trent Nelson added the comment:

On Fri, Nov 23, 2012 at 05:43:15AM -0800, Mark Dickinson wrote:
 
 Mark Dickinson added the comment:
 
 I wonder whether adding -fpeval=float to the CFLAGS would fix this.  
 There's a lot of information at 
 
 http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801?ciid=0008a22194f02110a22194f02110275d6e10RCRD
 
 but I don't know whether it's relevant to this machine.  Trent?

No idea.  I'll look into it.

--

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



[issue9584] Allow curly brace expansion

2012-11-24 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
stage: patch review - 

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



[issue16545] ast.FunctionDef sets a bad value for kw_defaults when keyword-only arguments present

2012-11-24 Thread Daniel Urban

Daniel Urban added the comment:

If I understand correctly, the invariant is that len(kw_defaults) == 
len(kwonlyargs). I think the reason is that the following is valid syntax (an 
argument without a default after one with a default):

 def f(*, a=0, b): pass
... 


And None is used as a placeholder in the kw_defaults list:
 ast.dump(ast.parse('def f(*, a=0, b): pass'))
Module(body=[FunctionDef(name='f', args=arguments(args=[], vararg=None, 
varargannotation=None, kwonlyargs=[arg(arg='a', annotation=None), arg(arg='b', 
annotation=None)], kwarg=None, kwargannotation=None, defaults=[], 
kw_defaults=[Num(n=0), None]), body=[Pass()], decorator_list=[], 
returns=None)])


So it seems to me, that this behavior is intentional. (Also, it works no 
differently in 3.2.)

--

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



[issue16525] wave file module does not support 32bit float format

2012-11-24 Thread Sebastian Kraft

Sebastian Kraft added the comment:

Write support is no problem, I will add this.

From reading the spec in the link you provided I think the implementation in 
general is OK.

Everything apart WAVE_FORMAT_PCM should have an extension size cbSize, that's 
right. But only WAVE_FORMAT_EXTENSIBLE sets cbSize=22.
So for read access it is not mandatory to check the value when 
WAVE_FORMAT_IEEE_FLOAT, but for writing files I would set this to zero.

There are several other wave formats which also use float data, but most 
important is WAVE_FORMAT_IEEE_FLOAT, and that can be suppoted quite easily 
without many changes.

--

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



[issue16544] Add external link to ast docs

2012-11-24 Thread Thomas Kluyver

Thomas Kluyver added the comment:

Thanks, I'm really glad to see that it's useful to others. I don't mind 
contributing it to Python, but I wonder if it's better to let it develop 
separately for a few months first - it's still very new, and I can improve it 
faster in a repository where I can commit to it myself. I'm open to other 
opinions on that, though.

In the meantime, let me know if there are any specific formats/styles/etc. that 
I should work towards, to make a later move into the official docs simpler. I 
have a couple of particular questions:
- The repository includes some utility code for exploring ASTs, as well as 
longer, runnable versions of the examples in the docs. What would be the best 
way to preserve these?
- There are some nodes (like AugLoad) that I've yet to find what they actually 
do, while I've only seen Param in Python 2. Is this an issue?

Of course, you're more than welcome to give a 'see also' link to GTS if we 
decide not to move it for now.

--
nosy: +takluyver

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



[issue12457] type() returns incorrect type for nested classes

2012-11-24 Thread Daniel Urban

Daniel Urban added the comment:

Also, it seems, that pickling inner classes will by supported by pickle 
protocol version 4 (see PEP 3154). There is already an issue for the 
implementation: issue15642.

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

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



[issue12457] type() returns incorrect type for nested classes

2012-11-24 Thread Daniel Urban

Changes by Daniel Urban urban.dani...@gmail.com:


--
resolution:  - duplicate
superseder:  - Integrate pickle protocol version 4 GSoC work by Stefan Mihaila

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



[issue14373] C implementation of functools.lru_cache

2012-11-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I have added a lot of comments in Rietveld. In general the patch looks good, 
but I have some style nitpicks and some more strong comments. Matt, please 
update the patch.

Tests should test both Python and C implementations.

I doubt if get rid of locking is right. Hash calculation and comparison of 
arguments can call Python code and this code can recursive use the wrapped 
function.

Some benchmarks will be interesting.

I think this acceleration must necessarily be in 3.4.

--
components: +Extension Modules -Interpreter Core
stage: patch review - needs patch

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



[issue16546] ast.YieldFrom needlessly has its expr value as optional

2012-11-24 Thread Brett Cannon

Brett Cannon added the comment:

Where is the doc issue? And it's a bit more than just a doc issue anyway as 
Python.asdl has the same issue and that is what is used to generate the code 
that represents the nodes.

--

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



[issue16545] ast.FunctionDef sets a bad value for kw_defaults when keyword-only arguments present

2012-11-24 Thread Brett Cannon

Brett Cannon added the comment:

Ah, I see it now. I didn't realize that we allowed people to define 
keyword-only arguments in any order they wanted in terms of default values, 
allowing interleaving of default and non-default values. So this is correct, 
just different from everything else.

--
resolution:  - invalid
status: open - closed

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



[issue16413] Non cross-platform behavior of os.path.split

2012-11-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I don't think that Python should include documentation on all supported OSes, 
formats, protocols and algorithms. There are documentation outside Python. I 
think this is not Python issue.

--
status: open - pending

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



[issue16525] wave file module does not support 32bit float format

2012-11-24 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

Sebastian, Could you possibly write a patch with a test?.

Could you possibly fill a contributor agreement? Details in 
http://www.python.org/psf/contrib/

--

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



[issue16525] wave file module does not support 32bit float format

2012-11-24 Thread Sebastian Kraft

Sebastian Kraft added the comment:

I will create a patch together with a testset of example files and also fill 
out the agreement.

BTW: readframes() returns bad data for 24bit PCM if big_endian==True. 
Furthermore IMO it doesn't make sense to return a byte stream in little endian 
order on a big endian system... What do you think? At least the waves doc 
doesn't mention or specify the endianess which will cause trouble.

--

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



[issue16525] wave file module does not support 32bit float format

2012-11-24 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

About the 24 bit PCM bug, please fill another bug.

--

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



[issue16423] urllib data URL

2012-11-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a182367eac5a by Antoine Pitrou in branch 'default':
Issue #16423: urllib.request now has support for ``data:`` URLs.
http://hg.python.org/cpython/rev/a182367eac5a

--
nosy: +python-dev

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



[issue16423] urllib data URL

2012-11-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I've committed your patch after having made the few very minor changes 
mentioned in the review. Thank you very much!

--
assignee: orsenthil - 
resolution:  - invalid
stage: patch review - committed/rejected
status: open - closed

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



[issue4473] POP3 missing support for starttls

2012-11-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 75a146a657d9 by Antoine Pitrou in branch 'default':
Fix missing import (followup to #4473).
http://hg.python.org/cpython/rev/75a146a657d9

--

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



[issue16546] ast.YieldFrom needlessly has its expr value as optional

2012-11-24 Thread Mark Dickinson

Mark Dickinson added the comment:

Ah, okay.  I only looked at Grammar/Grammar, which looks fine.

The doc issue is that at http://docs.python.org/dev/library/ast.html, under the 
heading 31.2.2. Abstract Grammar, it says:

  | Yield(expr? value)
 | YieldFrom(expr? value)

But the docs insert the contents of Python.asdl directly, so you're right: it's 
not really a doc issue.

--

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



[issue16546] ast.YieldFrom needlessly has its expr value as optional

2012-11-24 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
nosy: +benjamin.peterson

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



[issue16423] urllib data URL

2012-11-24 Thread Mathias Panzenböck

Mathias Panzenböck added the comment:

Great!

Feels awesome to have my first bit of code contributed to the Python project. :)

--

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



[issue16423] urllib data URL

2012-11-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

You're welcome! We're always happy to have new contributors.

I've forgotten something: could you sign a contributor agreement?
You'll find instructions at http://www.python.org/psf/contrib/

--

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



[issue16423] urllib data URL

2012-11-24 Thread Mathias Panzenböck

Mathias Panzenböck added the comment:

Will do (later today).

--

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



[issue16546] ast.YieldFrom needlessly has its expr value as optional

2012-11-24 Thread Mark Dickinson

Mark Dickinson added the comment:

Here's a patch.

--
keywords: +patch
Added file: http://bugs.python.org/file28094/issue16546.patch

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



[issue16546] ast.YieldFrom needlessly has its expr value as optional

2012-11-24 Thread Mark Dickinson

Mark Dickinson added the comment:

New patch that removes some unnecessary braces in the case statements.

--
Added file: http://bugs.python.org/file28095/issue16546.patch

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



[issue16546] ast.YieldFrom needlessly has its expr value as optional

2012-11-24 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


Removed file: http://bugs.python.org/file28094/issue16546.patch

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



[issue4591] 32-bits unsigned user/group identifier

2012-11-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a simplified version of patch from issue2005. Support of uid_t/gid_t 
larger than unsigned long dropped. Signed uid_t/gid_t support dropped. The 
converters moved to Objects/longobject.c. Some tests added.

--
components: +Extension Modules, Interpreter Core -Library (Lib)
nosy: +serhiy.storchaka
stage:  - patch review
versions: +Python 3.4
Added file: http://bugs.python.org/file28096/posix_uid_gid_conv_3.patch

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



[issue16423] urllib data URL

2012-11-24 Thread Mathias Panzenböck

Mathias Panzenböck added the comment:

Hmm, which of the two initial licenses should I choose? Which one do you rather 
want me to choose?

--

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



[issue16423] urllib data URL

2012-11-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 Hmm, which of the two initial licenses should I choose? Which one do
 you rather want me to choose?

Whichever you prefer. They should be equivalent in their terms
(non-copyleft free licenses).

--

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



[issue4591] 32-bits unsigned user/group identifier

2012-11-24 Thread Antoine Pitrou

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


--
nosy: +mark.dickinson

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



[issue12848] pickle.py treats 32bit lengths as signed, but _pickle.c as unsigned

2012-11-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Patch updated (comment for load_binstring added).

--
Added file: http://bugs.python.org/file28097/pickle_nonportable_size_2.patch

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



[issue16547] IDLE segfaults in tkinter after fresh file's text has been rendered

2012-11-24 Thread Lukas Lueg

New submission from Lukas Lueg:

IDLE crashes due to what seems to be a use-after-free bug. Opening a file from 
the 'Open...'-menu leads to a segfault after the text has been rendered. It 
seems this can be reproduced 100% of the time if the file is big (e.g. 150kb) 
and the window receives events (clicks...) while the colorization is going on.

I've been able to reproduce this behaviour on MacOS 10.6 (3.2, 3.3 and 3.4a) 
and Windows 7 (3.3) but not on Fedora 17.

Python 3.4.0a0 (default:a728056347ec, Nov 23 2012, 19:52:20) 
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin




I'll attach a backtrace and a malloc_history (from a different trace). Any 
guidance on further debugging on this?

--
components: IDLE
files: backtrace.txt
messages: 176307
nosy: ebfe
priority: normal
severity: normal
status: open
title: IDLE segfaults in tkinter after fresh file's text has been rendered
type: crash
versions: Python 3.2, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file28098/backtrace.txt

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



[issue16547] IDLE segfaults in tkinter after fresh file's text has been rendered

2012-11-24 Thread Lukas Lueg

Lukas Lueg added the comment:

using NSZombieEnabled and MallocStackLoggingNoCompact we can see the 
use-after-free behaviour

--
Added file: http://bugs.python.org/file28099/malloc_history.txt

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



[issue4591] 32-bits unsigned user/group identifier

2012-11-24 Thread Mark Dickinson

Mark Dickinson added the comment:

I don't think _Py_Uid_Converter and _Py_Gid_Converter belong in 
Objects/longobject.c.  Is there a better place to put these?  (Though 
_PyLong_FromUid and _PyLong_FromGid seem fine.)

--

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



[issue12848] pickle.py treats 32bit lengths as signed, but _pickle.c as unsigned

2012-11-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 55fe4b57dd9c by Antoine Pitrou in branch '3.2':
Issue #12848: The pure Python pickle implementation now treats object lengths 
as unsigned 32-bit integers, like the C implementation does.
http://hg.python.org/cpython/rev/55fe4b57dd9c

New changeset c9d205e2dd02 by Antoine Pitrou in branch '3.3':
Issue #12848: The pure Python pickle implementation now treats object lengths 
as unsigned 32-bit integers, like the C implementation does.
http://hg.python.org/cpython/rev/c9d205e2dd02

New changeset aac6b313ef5f by Antoine Pitrou in branch 'default':
Issue #12848: The pure Python pickle implementation now treats object lengths 
as unsigned 32-bit integers, like the C implementation does.
http://hg.python.org/cpython/rev/aac6b313ef5f

--
nosy: +python-dev

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



[issue12848] pickle.py treats 32bit lengths as signed, but _pickle.c as unsigned

2012-11-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I've committed the latest patch (pickle_nonportable_size_2.patch). Thank you 
for working on this!

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

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



[issue10182] match_start truncates large values

2012-11-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 Actually, standard tests should be enough on a big-endian platform with 
 sizeof(int)  sizeof(size_t) or sizeof(long)  sizeof(size_t).  No
 additional tests needed.

Ok, thanks. Unfortunately, all our 64-bit big endian buildbots are configured 
to produce 32-bit Pythons...

--

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



[issue4591] 32-bits unsigned user/group identifier

2012-11-24 Thread Mark Dickinson

Mark Dickinson added the comment:

 Though _PyLong_FromUid and _PyLong_FromGid seem fine.

Hmm.  I take that back.  I don't think any of this really belongs in 
Objects/longobject.c.  Right now that module contains entirely portable C code 
that knows almost nothing about operating systems.  In particular, the 
knowledge that -1 has special meaning doesn't really have a place in the 
longobject implementation.

Is it possible to just use PyLong_FromLong / PyLong_FromLongLong etc. depending 
 on the precision of uid_t / gid_t?

--

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



[issue16543] Use positional arguments in PyArg_UnpackTuple

2012-11-24 Thread Chris Jerdonek

Chris Jerdonek added the comment:

 TypeError: f() missing 1 required positional argument: 'a'

The error message for round(), for example, has a different form:

 round()
TypeError: Required argument 'number' (pos 1) not found

It would be good if these had the same form.

--

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



[issue16543] improve TypeError messages for missing arguments (meta issue)

2012-11-24 Thread Chris Jerdonek

Changes by Chris Jerdonek chris.jerdo...@gmail.com:


--
assignee: ezio.melotti - 
stage: test needed - 
title: Use positional arguments in PyArg_UnpackTuple - improve TypeError 
messages for missing arguments (meta issue)

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



[issue16520] subprocess.Popen() TypeError message incorrect without args argument

2012-11-24 Thread Chris Jerdonek

Changes by Chris Jerdonek chris.jerdo...@gmail.com:


--
dependencies: +improve TypeError messages for missing arguments (meta issue)

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



[issue4591] 32-bits unsigned user/group identifier

2012-11-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

 Hmm.  I take that back.  I don't think any of this really belongs in 
 Objects/longobject.c.

I am also not happy with that. Originally they were in Modules/posixmodule.c. 
However where should we place the declarations? We have not posixmodule.h. 
PyLong_FromPid()/PyLong_AsPid() placed right in Include/longobject.h. Are you 
have any suggestions?

 Is it possible to just use PyLong_FromLong / PyLong_FromLongLong etc. 
 depending  on the precision of uid_t / gid_t?

No. uid_t/gid_t can be large than maximal signed long, and long long can be not 
defined. See issue2005 where more complex patch proposed.

--

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



[issue4591] 32-bits unsigned user/group identifier

2012-11-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Perhaps we should add a new header file for declarations of converters to/from 
all platform specific integers (pid_t, time_t, uid_t, gid_t).

--

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



[issue4591] 32-bits unsigned user/group identifier

2012-11-24 Thread Mark Dickinson

Mark Dickinson added the comment:

Do we know of any systems where none of int, long, long long (if defined) or 
their unsigned variants match gid_t / uid_t?

--

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



[issue4591] 32-bits unsigned user/group identifier

2012-11-24 Thread Mark Dickinson

Mark Dickinson added the comment:

A new header file sounds reasonable.  We could then move the PID stuff out of 
longobject.h

--

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



[issue5066] IDLE documentation for Unix obsolete/incorrect

2012-11-24 Thread Todd Rovito

Changes by Todd Rovito rovit...@gmail.com:


--
nosy: +Todd.Rovito

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



[issue16544] Add external link to ast docs

2012-11-24 Thread Ezio Melotti

Ezio Melotti added the comment:

 I don't mind contributing it to Python, but I wonder if it's better to 
 let it develop separately for a few months first - it's still very new, 
 and I can improve it faster in a repository where I can commit to it 
 myself.

That's fine, there's no hurry to merge this.

We should also decide on the approach, e.g.:
  1) we could extract bits from your work and use them to improve the current 
docs (you can also report problems that you might notice in the current docs);
  2) we could add your work to the current ast docs;
  3) we could add your work as a separate howto in Doc/howto/;

 In the meantime, let me know if there are any specific formats/styles/etc.

The general guidelines are explained here: 
http://docs.python.org/devguide/documenting.html
You can also look at the current docs to get an idea.

 What would be the best way to preserve these?

If they are not too long they could be kept in the rst files, otherwise they 
could be included in the Tools/ dir.

 Is this an issue?

Any improvement is welcomed -- it doesn't necessarily have to be comprehensive, 
but it should be correct.

--

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



[issue4591] 32-bits unsigned user/group identifier

2012-11-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

 Do we know of any systems where none of int, long, long long (if defined) or 
 their unsigned variants match gid_t / uid_t?

No, I don't.

--

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



[issue16548] os.system won't run any command and there is no error message when memory cannot be allocated

2012-11-24 Thread masterid

New submission from masterid:

os.system won't run any command and there is no error message when memory 
cannot be allocated.

It looks like Python is running a command but actually nothing happens.

I used subprocess.Popen instead and found out that
OSError: [Errno 12] Cannot allocate memory

I also tried gc.collect() to release memory, but it does not work.

--
components: Extension Modules
messages: 176321
nosy: masterid
priority: normal
severity: normal
status: open
title: os.system won't run any command and there is no error message when 
memory cannot be allocated
type: behavior
versions: Python 2.6

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



[issue16544] Add external link to ast docs

2012-11-24 Thread Thomas Kluyver

Thomas Kluyver added the comment:

I think that putting the full content of GTS into the ast module docs would 
make it awkwardly long. Perhaps the bulk of it could become a howto, and GTS 
could be maintained separately as a showcase of examples.

--

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



[issue16333] Trailing whitespace in json dump when using indent

2012-11-24 Thread anatoly techtonik

anatoly techtonik added the comment:

Nice conflict case for explaining why perfect API is not here.

Because ', ' is now used as an item separator inline and separator for items 
that span multiple lines, we get trailing whitespace. If ',' is used, items 
will collide. To resolve this conflict democratically, a new option should be 
added, but..

If it is a JSON module then what separator are we talking about in the first 
place? It is not CSV, other separators are not in specification, so why is it 
there?

The only reason is to get the most compact representation. I doubt anybody uses 
any value except (',', ':'), so the `compact=True` should be sufficient.


As for this patch - there should be no doubt that it should be applied to all 
branches. The logic works only when indent is in force and that already breaks 
custom separators by inserting indents and newlines. Other argument that nobody 
will do JSON parsing with whitespace analysis, and even if they do - they'll 
still need to implement workaround for newlines.

--
nosy: +techtonik

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



[issue16549] regression: -m json.tool module

2012-11-24 Thread anatoly techtonik

New submission from anatoly techtonik:

Awesome json tool doesn't work anymore in Python 3 (needs tests?).
http://stackoverflow.com/questions/352098/how-to-pretty-print-json-script

C:\Python27python -m json.tool stdlibx.json
{
distutils: [
Doc/distutils,
Lib/distutils,
Lib/test/test_distutils.py
],
json: [
Doc/library/json.rst,
Lib/json,
Lib/test/json_tests,
Lib/test/test_json.py
]
}

C:\Python33python -m json.tool stdlibx.json
Traceback (most recent call last):
  File C:\Python33\lib\runpy.py, line 160, in _run_module_as_main
__main__, fname, loader, pkg_name)
  File C:\Python33\lib\runpy.py, line 73, in _run_code
exec(code, run_globals)
  File C:\Python33\lib\json\tool.py, line 37, in module
main()
  File C:\Python33\lib\json\tool.py, line 29, in main
obj = json.load(infile)
  File C:\Python33\lib\json\__init__.py, line 264, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File C:\Python33\lib\json\__init__.py, line 309, in loads
return _default_decoder.decode(s)
  File C:\Python33\lib\json\decoder.py, line 352, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
TypeError: can't use a string pattern on a bytes-like object

--
files: stdlibx.json
messages: 176324
nosy: techtonik
priority: normal
severity: normal
status: open
title: regression: -m json.tool module
versions: Python 3.1, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file28100/stdlibx.json

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



[issue16549] regression: -m json.tool module is broken

2012-11-24 Thread anatoly techtonik

Changes by anatoly techtonik techto...@gmail.com:


--
components: +Library (Lib)
title: regression: -m json.tool module - regression: -m json.tool module is 
broken

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



[issue16549] regression: -m json.tool module is broken

2012-11-24 Thread Antoine Pitrou

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


--
keywords: +easy
stage:  - needs patch
type:  - behavior

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



[issue4591] 32-bits unsigned user/group identifier

2012-11-24 Thread STINNER Victor

STINNER Victor added the comment:

The value -1 is used is some functions like chown() (to only change the
user, only the group or none, to check if you are allowed or not). How do
you handle this value?
Le 24 nov. 2012 19:29, Serhiy Storchaka rep...@bugs.python.org a écrit :


 Serhiy Storchaka added the comment:

 Here is a simplified version of patch from issue2005. Support of
 uid_t/gid_t larger than unsigned long dropped. Signed uid_t/gid_t support
 dropped. The converters moved to Objects/longobject.c. Some tests added.

 --
 components: +Extension Modules, Interpreter Core -Library (Lib)
 nosy: +serhiy.storchaka
 stage:  - patch review
 versions: +Python 3.4
 Added file: http://bugs.python.org/file28096/posix_uid_gid_conv_3.patch

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


--

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



[issue5066] IDLE documentation for Unix obsolete/incorrect

2012-11-24 Thread Todd Rovito

Todd Rovito added the comment:

This is a good patch but it is rather out of date and won't apply.  I will 
patch the patch and maybe somebody can apply it this time.  Expect a new patch 
by 11/26/2012.

--

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



[issue16548] os.system won't run any command and there is no error message when memory cannot be allocated

2012-11-24 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

If Unix system call system() fails, it will return -1. Python should convert 
a -1 to the appropiate exception, checking errno.

In Solaris, for instance, system() is documented to fail if the max number of 
processes are reached, if the syscall was interrupted or if the OS doesn't have 
enough memory.

Currently, python os.system() will signal an error returning -1, instead of 
raising an exception.

Python 2.6 is open only for security fixes, retargetting 2.7, 3.2, 3.3 and 3.4.

Opinions?

--
nosy: +jcea
versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4 -Python 2.6

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



[issue15990] solidify argument/parameter terminology

2012-11-24 Thread Chris Jerdonek

Chris Jerdonek added the comment:

I'm attaching a patch that preserves the structure of the previous patch but 
that builds on the wording and formatting.  The patch also addresses many of 
the comments on Rietveld.  I will also publish some comment replies on Rietveld 
(to the previous patch) that will give background on some of the changes made 
by this patch.

--
Added file: http://bugs.python.org/file28101/issue-15990-4-default.patch

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



[issue1286] fileinput, StringIO, and cStringIO do not support the with protocol

2012-11-24 Thread Wade Tattersall

Wade Tattersall added the comment:

Any chance this patch could be applied to version 2.7? It's still an issue in 
2.7.3, even though a suitable patch was supplied 3 years ago.

I understand that it's fixed in python3, but for us poor maintainers of ancient 
code, it would be convenient to be able to do things like

with StringIO() as test:
test.write(hi!)
return test.getvalue()

--
nosy: +Wade.Tattersall

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



[issue16547] IDLE segfaults in tkinter after fresh file's text has been rendered

2012-11-24 Thread Roger Serwy

Roger Serwy added the comment:

On Mac, which version of Tk are you using? IDLE is known to have problems on 
Mac with Tk. See http://www.python.org/download/mac/tcltk/

You can disable colorization with the undocumented Ctrl+/ key combination. Does 
the crash still occur with the colorizer disabled before opening the file?

I am unable to reproduce this bug on Arch Linux.

--
nosy: +ned.deily, serhiy.storchaka, serwy, terry.reedy

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



[issue16209] add a class str entry to the docs

2012-11-24 Thread Chris Jerdonek

Chris Jerdonek added the comment:

Attaching patch.

Adding Nick to the nosy list because he did the work of originally breaking out 
the Text Sequence Type section for issue #4966, as well as Terry who created 
that issue.  I view the current issue and patch as a progression of some of the 
issues discussed in that issue.

--
keywords: +patch
nosy: +ncoghlan, terry.reedy
stage:  - patch review
Added file: http://bugs.python.org/file28102/issue-16209-1-default.patch

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