[issue16378] venv.EnvBuilder docstring inconsistencies

2012-11-01 Thread Éric Araujo

Éric Araujo added the comment:

Tagging for the bug day.

--
keywords: +easy
nosy: +eric.araujo, vinay.sajip

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



[issue15873] datetime cannot parse ISO 8601 dates and times

2012-11-01 Thread Éric Araujo

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


--
nosy: +eric.araujo

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



[issue13701] Remove Decimal Python 2.3 Compatibility

2012-11-01 Thread Ramchandra Apte

Ramchandra Apte added the comment:

On 31 October 2012 23:29, Mark Dickinson rep...@bugs.python.org wrote:


 Mark Dickinson added the comment:

 Fixed the unuse of decorator syntax.  I think the dummy_threading changes
 should be considered a separate issue.

 With regards to the patch:  I assume you mean import dummy_threading as
 threading rather than just import dummy_threading.  Also, it looks to me
 as though test_decimal would need updating too to do the correct thing when
 the threading module isn't present.

 Closing this issue as fixed;  please open a new issue for the
 dummy_threading if you think it's worth pursuing.

 --
 assignee: rhettinger - mark.dickinson
 resolution:  - fixed
 status: open - closed

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


In the docs for dummy_threading, Be careful to not use this module where
deadlock might occur from a thread being created that blocks waiting for
another thread to be created. This often occurs with blocking I/O.

--

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



[issue13701] Remove Decimal Python 2.3 Compatibility

2012-11-01 Thread Mark Dickinson

Mark Dickinson added the comment:

I'm not quite sure why you're quoting the docs at me.  What's the point you 
want to make?

--

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



[issue16379] SQLite error code not exposed to python

2012-11-01 Thread Torsten Landschoff

New submission from Torsten Landschoff:

The sqlite3 module does not expose the sqlite3 error codes to python. This 
makes it impossible to detect specific error conditions directly.

Case in point: If a user selects some random file as the database in our 
application, we can not detect that it is not a valid database file:

$ /opt/python3/bin/python3
Python 3.4.0a0 (default:2d6eec5d01f7, Nov  1 2012, 10:47:27) 
[GCC 4.6.3] on linux
Type help, copyright, credits or license for more information.
 import sqlite3
 conn = sqlite3.connect(/etc/passwd)
 from pprint import pprint
 try:
... conn.execute(select * from random_table)
... except Exception as e:
... pprint({name: getattr(e, name) for name in dir(e)})
... raise
... 
{'__cause__': None,
 '__class__': class 'sqlite3.DatabaseError',
 '__context__': None,
 '__delattr__': method-wrapper '__delattr__' of DatabaseError object at 
0x7ffc9a13b050,
 '__dict__': {},
 '__dir__': built-in method __dir__ of DatabaseError object at 0x7ffc9a13b050,
 '__doc__': None,
 '__eq__': method-wrapper '__eq__' of DatabaseError object at 0x7ffc9a13b050,
 '__format__': built-in method __format__ of DatabaseError object at 
0x7ffc9a13b050,
 '__ge__': method-wrapper '__ge__' of DatabaseError object at 0x7ffc9a13b050,
 '__getattribute__': method-wrapper '__getattribute__' of DatabaseError object 
at 0x7ffc9a13b050,
 '__gt__': method-wrapper '__gt__' of DatabaseError object at 0x7ffc9a13b050,
 '__hash__': method-wrapper '__hash__' of DatabaseError object at 
0x7ffc9a13b050,
 '__init__': method-wrapper '__init__' of DatabaseError object at 
0x7ffc9a13b050,
 '__le__': method-wrapper '__le__' of DatabaseError object at 0x7ffc9a13b050,
 '__lt__': method-wrapper '__lt__' of DatabaseError object at 0x7ffc9a13b050,
 '__module__': 'sqlite3',
 '__ne__': method-wrapper '__ne__' of DatabaseError object at 0x7ffc9a13b050,
 '__new__': built-in method __new__ of type object at 0x8267e0,
 '__reduce__': built-in method __reduce__ of DatabaseError object at 
0x7ffc9a13b050,
 '__reduce_ex__': built-in method __reduce_ex__ of DatabaseError object at 
0x7ffc9a13b050,
 '__repr__': method-wrapper '__repr__' of DatabaseError object at 
0x7ffc9a13b050,
 '__setattr__': method-wrapper '__setattr__' of DatabaseError object at 
0x7ffc9a13b050,
 '__setstate__': built-in method __setstate__ of DatabaseError object at 
0x7ffc9a13b050,
 '__sizeof__': built-in method __sizeof__ of DatabaseError object at 
0x7ffc9a13b050,
 '__str__': method-wrapper '__str__' of DatabaseError object at 
0x7ffc9a13b050,
 '__subclasshook__': built-in method __subclasshook__ of type object at 
0x1238770,
 '__suppress_context__': False,
 '__traceback__': traceback object at 0x7ffc9a138cf8,
 '__weakref__': None,
 'args': ('file is encrypted or is not a database',),
 'with_traceback': built-in method with_traceback of DatabaseError object at 
0x7ffc9a13b050}
Traceback (most recent call last):
  File stdin, line 2, in module
sqlite3.DatabaseError: file is encrypted or is not a database


Currently, one can only match the error message, with is bad programming style.

The error code for this error is SQLITE_NOTADB, as found in the function 
sqlite3ErrStr when searching for the message in SQLite's main.c at 
http://www.sqlite.org/src/artifact/02255cf1da50956c5427c469abddb15bccc4ba09

Unfortunately, the sqlite3 module does not expose the error code itself 
(neither the actual error code nor the defined error codes) in any way. Errors 
are handled in Modules/_sqlite/util.c:

http://hg.python.org/cpython/file/2d6eec5d01f7/Modules/_sqlite/util.c#l99

I would like to have the defined error codes available in some mapping inside 
the sqlite3 module as well as the actual error code inside every sqlite 
exception e as e.sqlite_errcode

--
components: Library (Lib)
messages: 174395
nosy: torsten
priority: normal
severity: normal
status: open
title: SQLite error code not exposed to python
type: enhancement
versions: Python 3.4

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



[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2012-11-01 Thread Mark Dickinson

Mark Dickinson added the comment:

Ramchandra:  can you give an example of a realistic situation where the 
existence of this code in tkinter allows users to execute code *that they 
wouldn't be able to execute otherwise*?

--
nosy: +mark.dickinson

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



[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2012-11-01 Thread Martin v . Löwis

Martin v. Löwis added the comment:

In general, including standard library headers before including Python.h is not 
recommended, since it may break binary compatibility across object files. So 
the proposed work-around may also cause harm.

--

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



[issue13701] Remove Decimal Python 2.3 Compatibility

2012-11-01 Thread Ramchandra Apte

Ramchandra Apte added the comment:

On 1 November 2012 14:09, Mark Dickinson rep...@bugs.python.org wrote:


 Mark Dickinson added the comment:

 I'm not quite sure why you're quoting the docs at me.  What's the point
 you want to make?

 --

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


Does decimal use the dummy_threading module where
deadlock might occur from a thread being created that blocks waiting for
another thread to be created?

--

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



[issue16373] Recursion error comparing set() and collections.Set instances

2012-11-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8e95a078d490 by Andrew Svetlov in branch '3.2':
Issue #16373: Prevent infinite recursion for ABC Set class operations.
http://hg.python.org/cpython/rev/8e95a078d490

New changeset 11a9297733b8 by Andrew Svetlov in branch '3.3':
Merge issue #16373: Prevent infinite recursion for ABC Set class operations.
http://hg.python.org/cpython/rev/11a9297733b8

New changeset e67c8803cd82 by Andrew Svetlov in branch 'default':
Merge issue #16373: Prevent infinite recursion for ABC Set class operations.
http://hg.python.org/cpython/rev/e67c8803cd82

--
nosy: +python-dev

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



[issue16373] Recursion error comparing set() and collections.Set instances

2012-11-01 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Fixed. Thanks, Serhiy.

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

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



[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2012-11-01 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue13701] Remove Decimal Python 2.3 Compatibility

2012-11-01 Thread Mark Dickinson

Mark Dickinson added the comment:

No.

--

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



[issue13701] Remove Decimal Python 2.3 Compatibility

2012-11-01 Thread Stefan Krah

Stefan Krah added the comment:

Ramchandra Apte rep...@bugs.python.org wrote:
  I'm not quite sure why you're quoting the docs at me.  What's the point
  you want to make?
 
 Does decimal use the dummy_threading module where
 deadlock might occur from a thread being created that blocks waiting for
 another thread to be created?

The modus operandi on the issue tracker is generally like this:

For finished modules like decimal you need to provide a concrete example
that triggers an alleged misbehavior. The reason is simple: In general
no one has time for open-ended questions like the one you asked.

Also, such questions are perfectly on-topic on python-list.

--

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



[issue16261] Fix bare excepts in various places in std lib

2012-11-01 Thread Andrew Svetlov

Andrew Svetlov added the comment:

I'm pretty sure Doc and Lib are already fixed, only Tools left.

--
nosy: +asvetlov

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



[issue7317] Display full tracebacks when an error occurs asynchronously

2012-11-01 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue14965] super() and property inheritance behavior

2012-11-01 Thread Andrew Svetlov

Andrew Svetlov added the comment:

I'm -0 for proposed changes, these changes reduce code readability from my 
perspective.
I think better to use existing approach: explicitly specify what do you want to 
do with overloaded properties.

--
nosy: +asvetlov

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



[issue14266] pyunit script as shorthand for python -m unittest

2012-11-01 Thread Andrew Svetlov

Andrew Svetlov added the comment:

+1 for both pyunit script and autodiscovering by default.

--
nosy: +asvetlov

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



[issue16261] Fix bare excepts in various places in std lib

2012-11-01 Thread Ramchandra Apte

Ramchandra Apte added the comment:

On 1 November 2012 17:21, Andrew Svetlov rep...@bugs.python.org wrote:


 Andrew Svetlov added the comment:

 I'm pretty sure Doc and Lib are already fixed, only Tools left.

 --
 nosy: +asvetlov

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


No. 405 are there in Lib. Try running `grep except: -R Lib --include
*.py` to see yourself.

--

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



[issue13701] Remove Decimal Python 2.3 Compatibility

2012-11-01 Thread Ramchandra Apte

Ramchandra Apte added the comment:

On 1 November 2012 17:12, Stefan Krah rep...@bugs.python.org wrote:


 Stefan Krah added the comment:

 Ramchandra Apte rep...@bugs.python.org wrote:
   I'm not quite sure why you're quoting the docs at me.  What's the point
   you want to make?
 
  Does decimal use the dummy_threading module where
  deadlock might occur from a thread being created that blocks waiting for
  another thread to be created?

 The modus operandi on the issue tracker is generally like this:

 For finished modules like decimal you need to provide a concrete example
 that triggers an alleged misbehavior. The reason is simple: In general
 no one has time for open-ended questions like the one you asked.

 Also, such questions are perfectly on-topic on python-list.

 --

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


I just wanted to ensure that there wouldn't be any bugs by my patch.

--

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



[issue16218] Python launcher does not support non ascii characters

2012-11-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 02d25098ad57 by Andrew Svetlov in branch '3.3':
Issue #16218: Support non ascii characters in python launcher.
http://hg.python.org/cpython/rev/02d25098ad57

New changeset 1267d64c14b3 by Andrew Svetlov in branch 'default':
Merge issue #16218: Support non ascii characters in python launcher.
http://hg.python.org/cpython/rev/1267d64c14b3

--
nosy: +python-dev

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



[issue16218] Python launcher does not support non ascii characters

2012-11-01 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Fixed. Thanks, Serhiy.

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

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



[issue16380] true/proper subset

2012-11-01 Thread abcdef

New submission from abcdef:

The documentation

http://docs.python.org/2.7/library/stdtypes.html#set-types-set-frozenset

http://docs.python.org/3/library/stdtypes.html#set-types-set-frozenset

of  for sets uses true subset and true superset. The correct 
termininology is proper subset and proper superset, as evidenced by Google 
searches

http://google.com/search?q=true subset

http://google.com/search?q=proper subset

and most set theory books.

--
assignee: docs@python
components: Documentation
messages: 174410
nosy: abcdef, docs@python
priority: normal
severity: normal
status: open
title: true/proper subset
type: enhancement
versions: Python 2.7, Python 3.3

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



[issue16380] true/proper subset

2012-11-01 Thread Mark Dickinson

Mark Dickinson added the comment:

+1

--
nosy: +mark.dickinson

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



[issue16284] concurrent.futures ThreadPoolExecutor keeps unnecessary references to worker functions.

2012-11-01 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Updated patch to execute tests only for CPython.

--
nosy: +asvetlov
Added file: http://bugs.python.org/file27820/kill_reference_3.diff

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



[issue16381] Introduce option to force the interpreter to exit upon MemoryErrors

2012-11-01 Thread Christian Theune

New submission from Christian Theune:

I run long-running server processes (web apps, etc) a lot and I keep 
encountering the situation that many applications will not properly deal with 
MemoryError exceptions but end up in an unusable state.

From an operational perspective I wish the process in this case would just 
fail and exit.

I talked to Guido about this general idea at EuroPython2012 and he encouraged 
me to look into this. 

Here's a patch:
https://bitbucket.org/ctheune/cpython/changeset/323bb572344d46df669d3dbec4431cf6720fc5b4

I think it does what I want it to do, but a) my C knowledge is really bad and 
b) I'm not sure whether this is the right approach anyway.

I'd appreciate feedback and possibly inclusion in the core.

--
components: Interpreter Core
hgrepos: 158
messages: 174413
nosy: ctheune, gvanrossum
priority: normal
severity: normal
status: open
title: Introduce option to force the interpreter to exit upon MemoryErrors
type: enhancement
versions: Python 3.4

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



[issue16381] Introduce option to force the interpreter to exit upon MemoryErrors

2012-11-01 Thread Christian Theune

Changes by Christian Theune c...@gocept.com:


--
keywords: +patch
Added file: http://bugs.python.org/file27821/9430a5c65114.diff

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



[issue16228] JSON crashes during encoding resized lists

2012-11-01 Thread Andrew Svetlov

Andrew Svetlov added the comment:

The patch LGTM except I cannot reproduce crash on unmodified sources with 
running applied test.

--
nosy: +asvetlov

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



[issue16230] select.select crashes on resized lists

2012-11-01 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue1207589] IDLE: Right Click Context Menu

2012-11-01 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue16381] Introduce option to force the interpreter to exit upon MemoryErrors

2012-11-01 Thread Christian Heimes

Christian Heimes added the comment:

Your proposal sounds like a very good idea. IMHO it should be discussed on the 
python-ideas or python-dev mailing list before it gets integrated into 3.4. 
Embrace yourself for some serious bike shedding! :)

By the way your patch contains several changes that aren't related to your 
proposal. Can you clean up your patch, please? It makes code review much easier.

--
nosy: +christian.heimes
stage:  - patch review

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



[issue13701] Remove Decimal Python 2.3 Compatibility

2012-11-01 Thread Mark Dickinson

Mark Dickinson added the comment:

 I just wanted to ensure that there wouldn't be any bugs by my patch.

Okay, understood.  Thanks.

Please note that this issue is now closed, though: the 2.3 compatibility 
workarounds have been dealt with.  The use or non-use of dummy_threading has 
nothing to do with 2.3 compatibility and so is out of scope for the issue.  You 
should feel free to open a new issue if there's a demonstrable problem or 
demonstrable room for improvement w.r.t. the way dummy threading is handled.  
(I'm personally not convinced that either of those is true, but others may have 
different views.)

--

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



[issue9742] Python 2.7: math module fails to build on Solaris 9

2012-11-01 Thread Matt Selsky

Matt Selsky added the comment:

I tested this patch again python 2.7.3 on Solaris 9 and the math module now 
builds correctly.  Thanks!

Let me know if you need any output.

--

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



[issue13701] Remove Decimal Python 2.3 Compatibility

2012-11-01 Thread Ramchandra Apte

Ramchandra Apte added the comment:

But my patch does use dummy_threading.

--

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



[issue16381] Introduce option to force the interpreter to exit upon MemoryErrors

2012-11-01 Thread Christian Theune

Christian Theune added the comment:

Grr. Sorry. The automatic patch extraction went wrong and I didn't notice. 
Here's a manual try.

--
Added file: http://bugs.python.org/file27822/issue16381.diff

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



[issue16381] Introduce option to force the interpreter to exit upon MemoryErrors

2012-11-01 Thread Christian Theune

Changes by Christian Theune c...@gocept.com:


Removed file: http://bugs.python.org/file27821/9430a5c65114.diff

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



[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2012-11-01 Thread Ramchandra Apte

Ramchandra Apte added the comment:

@Mark Dickinson
Run the attached file, exploit.py, with normal priveleges and then run IDLE 
with sudo (something I did to actually uncover this bug!).
Then the file /root/exploited should contain Exploit succeeded!

--
Added file: http://bugs.python.org/file27823/exploit.py

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



[issue16382] Better warnings exception for bad category

2012-11-01 Thread Phil Elson

New submission from Phil Elson:

When passing an invalid Warning subclasses to the warnings.warn function, a 
bare issubclass exception is raised:


 import warnings
 warnings.warn('hello world', 'not a valid warning type')
Traceback (most recent call last):
  File stdin, line 1, in module
TypeError: issubclass() arg 1 must be a class


This exception is consistent accross both Python/_warnings.c and 
Lib/warnings.py implementations, but I feel it could be more helpful/explicit 
about the nature problem.


To test both cases I have been using the following code (python3.4):

 import test.support
 py_warnings = test.warnings = test.support.import_fresh_module('warnings', 
 blocked=['_warnings'])
 c_warnings = test.support.import_fresh_module('warnings', 
 fresh=['_warnings'])


Now:


 py_warnings.warn('hello world', '')
Traceback (most recent call last):
  File stdin, line 1, in module
  File lib/python3.4/warnings.py, line 168, in warn
assert issubclass(category, Warning)
TypeError: issubclass() arg 1 must be a class

 c_warnings.warn('hello world', '')
Traceback (most recent call last):
  File stdin, line 1, in module
TypeError: issubclass() arg 1 must be a class



Additionally, there is a difference in the denotational semantics of None 
between the c and py warnings implementation:


 py_warnings.warn('Hello world', None)
__main__:1: UserWarning: Hello world

 c_warnings.warn('Hello world', None)
Traceback (most recent call last):
  File stdin, line 1, in module
TypeError: issubclass() arg 1 must be a class


I can understand that python does not allow the concept of an optional 
positional arguments and therefore it is arguable that the signatures of the 
two functions are inevitably going to be different. I defer to someone more 
knowledgeable in Python to decide if this is a problem, and whether it should 
be made consistent.


Attached is a patch to address these two issues, with associated tests. Please 
review (n.b. I am a python developer at heart, and only dabble in C when I have 
to, so extra scrutiny on the C would be valuable to me) and I'd be happy to get 
any necessary changed applied to the patch asap.


In short, as a result of applying this patch, the following results ensue:

 py_warnings.warn('hello world', '')
Traceback (most recent call last):
  File stdin, line 1, in module
  File lib/python3.4/warnings.py, line 175, in warn
'Got {!r}'.format(Warning, category)) from None
ValueError: category must be a subclass of class 'Warning'.Got ''


 c_warnings.warn('hello world', '')
Traceback (most recent call last):
  File stdin, line 1, in module
ValueError: category must be a subclass of class 'Warning'. Got ''.
 
 c_warnings.warn('hello world', None)
__main__:1: UserWarning: hello world



Thanks!

--
components: Library (Lib)
files: pelson_warnings_fix.diff
keywords: patch
messages: 174421
nosy: pelson
priority: normal
severity: normal
status: open
title: Better warnings exception for bad category
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file27824/pelson_warnings_fix.diff

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



[issue16228] JSON crashes during encoding resized lists

2012-11-01 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Of course, this kind of bugs can cause unpredictable behavior, they do not have 
to lead to an immediate crash.  This depends from the platform, the compiler 
and its options.  On my computers the test always crashed, this is the maximum 
that I can say.

--

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



[issue16381] Introduce option to force the interpreter to exit upon MemoryErrors

2012-11-01 Thread Christian Heimes

Christian Heimes added the comment:

Thanks!

Py_FatalError() might be too drastic for the task. It calls abort() which kills 
the process with SIGABRT. The function closes and flushes all stream but no 
additional cleanup code is executed. This might be bad for resources like 
shared memories, named semaphores or database connections. On Windows abort() 
causes a pop up window with a crash report, too.

Would exit(3) or _exit(2) work here?

--

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



[issue16381] Introduce option to force the interpreter to exit upon MemoryErrors

2012-11-01 Thread Benjamin Peterson

Benjamin Peterson added the comment:

I think the fatal erroring should be done in PyErr_NoMemory.

--
nosy: +benjamin.peterson

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



[issue16165] sched.scheduler.run() blocks scheduler

2012-11-01 Thread Serhiy Storchaka

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


Removed file: http://bugs.python.org/file27490/sched_unblock.patch

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



[issue16165] sched.scheduler.run() blocks scheduler

2012-11-01 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Tests added.  Please review.

--
keywords: +needs review
Added file: http://bugs.python.org/file27825/sched_unblock_2.patch

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



[issue16215] Possible double memory free in str.replace

2012-11-01 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Please review.

--
keywords: +needs review

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



[issue16165] sched.scheduler.run() blocks scheduler

2012-11-01 Thread Serhiy Storchaka

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


Removed file: http://bugs.python.org/file27825/sched_unblock_2.patch

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



[issue16165] sched.scheduler.run() blocks scheduler

2012-11-01 Thread Serhiy Storchaka

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


Added file: http://bugs.python.org/file27826/sched_unblock_2.patch

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



[issue16218] Python launcher does not support non ascii characters

2012-11-01 Thread Vinay Sajip

Vinay Sajip added the comment:

I'm not especially familiar with this code, but just trying to understand - how 
come filename_obj isn't decref'd on normal exit?

--
nosy: +vinay.sajip

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16218
___
___
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-01 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Please review.

--
keywords: +needs review

___
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



[issue16245] Update html.entities.html5 dictionary and parseentities.py

2012-11-01 Thread Serhiy Storchaka

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


--
nosy:  -serhiy.storchaka

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



[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2012-11-01 Thread Mark Dickinson

Mark Dickinson added the comment:

Okay, but if a user can run IDLE with sudo, they presumably *already* have many 
other ways to use sudo to create files in /root, without using IDLE or tkinter. 
 That's why I said:  *that they wouldn't be able to execute otherwise*.  I 
don't see the security issue here.

--

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



[issue16218] Python launcher does not support non ascii characters

2012-11-01 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Vinay, it's processed in 
PyObject_CallFunction(loader_type, sN, __main__, filename_obj)
Please note sN format istead sO.
N means PyObject* is passed but unlike sO that object is not increfed.

--

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



[issue14900] cProfile does not take its result headers as sort arguments

2012-11-01 Thread Arne Babenhauserheide

Arne Babenhauserheide added the comment:

…you were faster than me (I only managed to get the repo onto my current 
computer yesterday and the children kept me occupied). 

Thank you!

--

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



[issue14900] cProfile does not take its result headers as sort arguments

2012-11-01 Thread Andrew Svetlov

Andrew Svetlov added the comment:

No problems!

--

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



[issue16376] wrong type for wintypes.BYTE

2012-11-01 Thread Santoso Wijaya

Changes by Santoso Wijaya santoso.wij...@gmail.com:


--
versions: +Python 3.4, Python 3.5

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



[issue16376] wrong type for wintypes.BYTE

2012-11-01 Thread Santoso Wijaya

Changes by Santoso Wijaya santoso.wij...@gmail.com:


--
type:  - behavior

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



[issue16218] Python launcher does not support non ascii characters

2012-11-01 Thread Vinay Sajip

Vinay Sajip added the comment:

 Please note sN format istead sO.

I see. Thanks.

--

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



[issue16383] Python 3.3 Permission Error with User Library on Windows

2012-11-01 Thread Jim Pattee

New submission from Jim Pattee:

Python 3.3 Permission Error with User Library on Windows

I have certain scripts that run without error on Python 2.7 and 3.2. With 
Python 3.3 they get a Permission Error. This does not occur with every 
script. The difference seems to be that the ones with a problem use a local 
user library. The ones without a local library are OK.

A test case is attached. Do not change the directory names. Double click on the 
file run_test.bat to run. You may need to change the path to the Python 
executable on your computer. It runs the script astyle_protected.py which uses 
the library libastyle.py. It runs OK with Python 2.7 and 3.2. But gets an 
exception with Python 3.3.

--
components: Windows
files: Projects.zip
messages: 174434
nosy: jimp02
priority: normal
severity: normal
status: open
title: Python 3.3 Permission Error with User Library on Windows
type: crash
versions: Python 3.3
Added file: http://bugs.python.org/file27827/Projects.zip

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



[issue13701] Remove Decimal Python 2.3 Compatibility

2012-11-01 Thread Martin v . Löwis

Martin v. Löwis added the comment:

Ramchandra: Your patch wasn't actually used to resolve this issue. Please see 
http://hg.python.org/cpython/rev/7ada0faded9b for the change that Mark 
*actually* made to resolve the issue.

There were actually a number of problems with your patch, but there is little 
point in elaborating them. If you submit more patches, people will surely 
review them and comment.

--

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



[issue16382] Better warnings exception for bad category

2012-11-01 Thread Antoine Pitrou

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


--
nosy: +brett.cannon

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



[issue16383] Python 3.3 Permission Error with User Library on Windows

2012-11-01 Thread R. David Murray

R. David Murray added the comment:

Can you post the error, please?

--
nosy: +r.david.murray
type: crash - behavior

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



[issue15872] shutil.rmtree(..., ignore_errors=True) doesn't ignore all errors

2012-11-01 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a new patch. It contains some other minor changes. rmtree behavior 
unified for system with and without at-functions.

--
stage: needs patch - patch review
Added file: http://bugs.python.org/file27828/shutil_rmtree_2.patch

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



[issue15873] datetime cannot parse ISO 8601 dates and times

2012-11-01 Thread kirpit

Changes by kirpit kir...@gmail.com:


--
nosy: +kirpit

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



[issue16384] import.c doesn't handle EOFError from PyMarshal_Read*

2012-11-01 Thread Sye van der Veen

New submission from Sye van der Veen:

The PyMarshal_Read* functions raise EOFError when the end of the file is 
unexpectedly met.  The current import.c functions propagate this error when 
reading .pyc or .pyo files.  One consequence of this is that Python will abort 
on startup if, say, encodings.utf_8's .pyc file is truncated.

I have encountered a scenario where this truncation is common.  If a second 
Python process is launched while the first is writing the core .pyc files, 
the second process may open the files before they are completely written and 
will thus see truncated files and abort.  This is a race condition that I was 
able to reproduce consistently on several Windows Server 2008 RC2 Standard SP1 
machines running 32-bit Python 3.2.3 from GNU make with -j 16 (Intel Xeon 
E5405 2GHz 2 processors 8GB 64-bit OS).  (Of course, I had to clean the 
__pycache__ directories between tests.)

This can be fixed in load_source_module by making read_compiled_module failures 
non-fatal:
if (cpathname != NULL 
(fpc = check_compiled_module(pathname, st.st_mtime, cpathname))) {
co = read_compiled_module(cpathname, fpc);
if (co == NULL) PyErr_Clear();
fclose(fpc);
}
if (co != NULL) {
// etc...
}
else {
co = parse_source_module(pathname, fp);
// etc...
write_compiled_module(co, cpathname, st);
}
This is similar to how write_compiled_module ignores failures in writing the 
.pyc files.  It ensures that if the .pyc file is corrupt for _any_ reason, it 
will get rewritten; this could be made specific to EOFError, but I don't 
recommed that.  Mostly, it ensures that corrupt .pyc files do not prevent 
Python from loading if the .py files are valid.

--
components: None
messages: 174438
nosy: syeberman
priority: normal
severity: normal
status: open
title: import.c doesn't handle EOFError from PyMarshal_Read*
type: crash
versions: Python 3.2

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



[issue16228] JSON crashes during encoding resized lists

2012-11-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3672db224eb3 by Antoine Pitrou in branch '3.2':
Issue #16228: Fix a crash in the json module where a list changes size while it 
is being encoded.
http://hg.python.org/cpython/rev/3672db224eb3

New changeset 7528c02b8d52 by Antoine Pitrou in branch '3.3':
Issue #16228: Fix a crash in the json module where a list changes size while it 
is being encoded.
http://hg.python.org/cpython/rev/7528c02b8d52

New changeset ab65509b8443 by Antoine Pitrou in branch 'default':
Issue #16228: Fix a crash in the json module where a list changes size while it 
is being encoded.
http://hg.python.org/cpython/rev/ab65509b8443

--
nosy: +python-dev

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



[issue15067] Clean up the sqlite3 docs

2012-11-01 Thread Zachary Ware

Zachary Ware added the comment:

Coming back to this 5 months later and looking into it myself, I find that the 
sqlite3 docs really need a bit of a cleanup all around, especially in all three 
3.x branches.  Several minor changes were made by Raymond Hettinger in 
d229032dc213 and a few subsequent changesets 6 months ago in the 2.7 branch, 
but none of those ever made it to 3.x. (Raymond, those changes in the past are 
why I made you nosy on this one)

To address the offending sentence that brought this issue about in the first 
place, after rereading it and thinking about it some more, what's there does 
make sense: this module uses the recipe of PEP 246, regardless of that PEP's 
status.  However, I don't think it's helpful to mention it in the 
documentation, as it kind of gives the impression that this feature was 
rejected for the whole of Python, but this stdlib module goes ahead and does it 
anyway.  For that reason, I propose to just drop that two-line paragraph 
entirely.  Everything about that feature still makes sense without that 
paragraph, even though the 'protocol' bit seems a bit weird. I wonder though, 
should that feature be deprecated on the basis of using a rejected PEP as well 
as TOOWTDI violation (or should I open another issue to that effect anyway)?

In the same vein as Raymond's earlier 2.7 changes (namely the SQL cleanup and 
capitalization he did), the 2.7 patch I've attached goes through and does the 
same for all of the included scripts in Doc/includes/sqlite3 as well as 
removing the bit about PEP 246.

The 3.2 patch does everything in the 2.7 patch, plus bringing the 3.2 docs in 
line with the 2.7 docs.

I do have a question, though; the footnote about enabling loadable extensions 
is different in the 2.7 and 3.2 docs.  Which one is right, or are both right 
for their respective versions?

Thanks,

Zach

--
keywords: +patch
nosy: +rhettinger
title: sqlite3 docs reference PEP 246, which was rejected - Clean up the 
sqlite3 docs
versions: +Python 3.4
Added file: http://bugs.python.org/file27829/sqlite3_cleanup_2.7.patch

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



[issue15067] Clean up the sqlite3 docs

2012-11-01 Thread Zachary Ware

Changes by Zachary Ware zachary.w...@gmail.com:


Added file: http://bugs.python.org/file27830/sqlite3_cleanup_3.2.patch

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



[issue16281] TODO in tailmatch(): it does not support backward in all cases

2012-11-01 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The result does not depend on the direction of comparison. This only affects 
speed. But who can to say in which direction comparison will be faster?

Here I see a one obvious opportunity for optimization:

if (kind_self  kind_sub)
return 0;

After that and after processing the case (kind_self == kind_sub) only 3 special 
cases left: UCS1 in UCS2, UCS1 in UCS4, and UCS2 in UCS4.  Get rid of slow 
PyUnicode_READ() for this cases will speed up the code.  Also note that 
comparing first and last characters before memcmp can be a slowdown (because 
PyUnicode_READ() is slow).  Try to compare first and last bytes.

--

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



[issue16228] JSON crashes during encoding resized lists

2012-11-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 33ae62a4ecf5 by Antoine Pitrou in branch '2.7':
Issue #16228: Fix a crash in the json module where a list changes size while it 
is being encoded.
http://hg.python.org/cpython/rev/33ae62a4ecf5

--

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



[issue16228] JSON crashes during encoding resized lists

2012-11-01 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Thank you for noticing this, and for writing a patch.

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

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



[issue15067] Clean up the sqlite3 docs

2012-11-01 Thread Zachary Ware

Zachary Ware added the comment:

I failed to mention, the 3.2 patch also removes the line (and comment) about 
db_row based solutions since it seems from a quick Google search that 
db_row is a library created back in the 2.2 days that I didn't quickly see a 
3.x version for.  Also, the comment made it seem like that line wouldn't be 
missed too much anyway :).  I left it in the 2.7 version though; as I assume it 
would be reasonably easy to get db_row to work with 2.7 if someone wanted to.

--

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



[issue14893] Tutorial: Add function annotation example to function tutorial

2012-11-01 Thread Zachary Ware

Changes by Zachary Ware zachary.w...@gmail.com:


--
versions: +Python 3.4

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



[issue16228] JSON crashes during encoding resized lists

2012-11-01 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Hi, I'm ok with patch but I guess to add some comment in C code to prevent, 
hmm, back optimization from upcoming contributor. 
The same for #16230

--

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



[issue16230] select.select crashes on resized lists

2012-11-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 87ccf2635ad7 by Antoine Pitrou in branch '3.2':
Issue #16230: Fix a crash in select.select() when one the lists changes size 
while iterated on.
http://hg.python.org/cpython/rev/87ccf2635ad7

New changeset 717660ec8f67 by Antoine Pitrou in branch '3.3':
Issue #16230: Fix a crash in select.select() when one the lists changes size 
while iterated on.
http://hg.python.org/cpython/rev/717660ec8f67

New changeset 823898ef37ce by Antoine Pitrou in branch 'default':
Issue #16230: Fix a crash in select.select() when one the lists changes size 
while iterated on.
http://hg.python.org/cpython/rev/823898ef37ce

New changeset 02a5322b0cee by Antoine Pitrou in branch '2.7':
Issue #16230: Fix a crash in select.select() when one the lists changes size 
while iterated on.
http://hg.python.org/cpython/rev/02a5322b0cee

--
nosy: +python-dev

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



[issue16230] select.select crashes on resized lists

2012-11-01 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Committed, thank you!

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

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



[issue14893] Tutorial: Add function annotation example to function tutorial

2012-11-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2bf99322218f by Andrew Svetlov in branch '3.2':
Issue #14893: Add function annotation example to function tutorial.
http://hg.python.org/cpython/rev/2bf99322218f

New changeset 45167091b5f9 by Andrew Svetlov in branch '3.3':
Merge issue #14893: Add function annotation example to function tutorial.
http://hg.python.org/cpython/rev/45167091b5f9

New changeset 63b495ff366b by Andrew Svetlov in branch 'default':
Merge issue #14893: Add function annotation example to function tutorial.
http://hg.python.org/cpython/rev/63b495ff366b

--
nosy: +python-dev

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



[issue14893] Tutorial: Add function annotation example to function tutorial

2012-11-01 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Fixed. Thanks, Zachary.

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

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



[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2012-11-01 Thread Zachary Ware

Zachary Ware added the comment:

If I understand correctly, I think what Ramchandra is getting at is that if an 
attacker could manage to get a .Tk.py file into a user's home directory 
somehow, then the next time that user happens to do 'sudo idle', the attacker's 
code is executed with root privileges.

That said, I don't know that it would be any easier for an attacker to get such 
a file into such a place than to just do their maliciousness some other way.

I think Guilherme's suggestion of just making those who need it call it 
themselves, instead of at every tkinter startup, sounds good.

--
nosy: +zach.ware

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



[issue16228] JSON crashes during encoding resized lists

2012-11-01 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 Hi, I'm ok with patch but I guess to add some comment in C code to
 prevent, hmm, back optimization from upcoming contributor. 
 The same for #16230

But that's what tests are for.

--

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



[issue16261] Fix bare excepts in various places in std lib

2012-11-01 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Sorry, looks like I don't understood you correctly.
Do you want to replace `except:` to `except Exception` or something else?

--

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



[issue16383] Python 3.3 Permission Error with User Library on Windows

2012-11-01 Thread Jim Pattee

Jim Pattee added the comment:

Python 3.3  (64bit)
Traceback (most recent call last):
  File file-py\astyle-protected.py, line 157, in module
process_files()
  File file-py\astyle-protected.py, line 30, in process_files
get_header_variables(header_variables, header_path)
  File file-py\astyle-protected.py, line 121, in get_header_variables
file_in = open(header_path, 'r')
PermissionError: [Errno 13] Permission denied: 
'C:\\Users\\jimp\\ZPythonPermissionError\\Projects/AStyle/src/astyle.h'
Press any key to continue . . .

--

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



[issue16228] JSON crashes during encoding resized lists

2012-11-01 Thread Andrew Svetlov

Andrew Svetlov added the comment:

As I said tests was not crashed on my linux 64 bit Ubuntu with buggy code.

--

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



[issue16228] JSON crashes during encoding resized lists

2012-11-01 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 As I said tests was not crashed on my linux 64 bit Ubuntu with buggy code.

They crashed duly here in debug mode (64-bit Linux).

--

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




[issue14893] Tutorial: Add function annotation example to function tutorial

2012-11-01 Thread Zachary Ware

Zachary Ware added the comment:

Thank you Éric for the approval, and Andrew for the commit!

--

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



[issue15067] Clean up the sqlite3 docs

2012-11-01 Thread Ezio Melotti

Ezio Melotti added the comment:

I think it would be better to keep the capitalization of the queries separate 
from the rest of the patch.

--
nosy: +ezio.melotti
stage:  - patch review
type:  - enhancement

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



[issue16380] true/proper subset

2012-11-01 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Fixed in 56c3ab6f7f07, 56c3ab6f7f07, fa7311caa203, 7dda9dc5e830
Thanks.

--
nosy: +asvetlov
resolution:  - fixed
stage:  - committed/rejected
status: open - closed
versions: +Python 3.2, Python 3.4

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



[issue12759] (?P=) input for Tools/scripts/redemo.py raises unnhandled exception

2012-11-01 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is an updated patch. More appropriate error message used, many new tests 
added.

--
keywords: +patch
stage: needs patch - patch review
versions: +Python 3.4
Added file: http://bugs.python.org/file27831/sre_empty_group_name.patch

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



[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2012-11-01 Thread Antoine Pitrou

Antoine Pitrou added the comment:

As Zachary and Ramchandra explained, the security issue is obvious: a 
non-sudoer user A can make a sudoer user B execute arbitrary code, simply by 
placing a file where IDLE will be run from.

This is the same reason Python has -s and -E options. The least we could do 
would be to disable readprofile() when sys.flags.ignore_environment is true.

--
nosy: +pitrou
versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4

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



[issue16228] JSON crashes during encoding resized lists

2012-11-01 Thread Andrew Svetlov

Andrew Svetlov added the comment:

I have python built with Py_DEBUG (./configure --with-pydebug)
What I' missed?
I'm ok with status quo but just want to understand how to configure my build 
properly.

--

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



[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2012-11-01 Thread Mark Dickinson

Mark Dickinson added the comment:

And then user A is relying on user B executing IDLE via sudo?  Is that a normal 
thing to do?

--

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



[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2012-11-01 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 And then user A is relying on user B executing IDLE via sudo?  Is that
 a normal thing to do?

Well, I suppose that could be any Tk app, not just IDLE.
And I also suppose you could use IDLE to edit some file that is only
root-writable.

--

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



[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2012-11-01 Thread Mark Dickinson

Mark Dickinson added the comment:

So if this is a security issue, should Python 2.6 also be fixed?

--

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



[issue16228] JSON crashes during encoding resized lists

2012-11-01 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 I have python built with Py_DEBUG (./configure --with-pydebug)
 What I' missed?
 I'm ok with status quo but just want to understand how to configure my build 
 properly.

Well, I don't know. Perhaps a different compiler version, a different
libc, or perhaps you got (un)lucky.

--

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



[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2012-11-01 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 So if this is a security issue, should Python 2.6 also be fixed?

Probably, if it's deemed important enough by our security RMs.

--

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



[issue16228] JSON crashes during encoding resized lists

2012-11-01 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Ok. Thanks.

--

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



[issue16383] Python 3.3 Permission Error with User Library on Windows

2012-11-01 Thread R. David Murray

R. David Murray added the comment:

Is it possible you installed 3.3 differently?  For example 3.2 and 2.7 
installed for all users and 3.3 for just you, or vice versa?

From the looks of the traceback there really is a permission problem with the 
file, since it is failing on a normal open.  (I thought at first it might be a 
result of the new import code in 3.3, but it doesn't look like import is 
involved.)

That filename looks awfully odd, though.  Is that a cut and paste error or is 
that really what the message says?  If it is you might want to track down how 
header_path gets constructed and see how it differs when run under the 
different python versions.

--

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



[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2012-11-01 Thread Stefan Krah

Stefan Krah added the comment:

Isn't IDLE supposed to be a Python shell? As I understand this issue,
you'd have the same exploit by adding this to your .bashrc:

echo EXPLOIT  /root/exploit


Then, as a normal user, run:

sudo bash



It would be nice to get rid of the exec, but why is this an exploit?

--
nosy: +skrah

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



[issue13301] the script Tools/i18n/msgfmt.py allows arbitrary code execution via po files

2012-11-01 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a more simpler patch.  Please approve, it's a really trivial patch.

--
stage: needs patch - patch review
Added file: http://bugs.python.org/file27832/msgfmt_literal_eval.patch

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



[issue15581] curses: segfault in addstr()

2012-11-01 Thread Serhiy Storchaka

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


--
nosy: +haypo
stage:  - needs patch
type:  - crash

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



[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2012-11-01 Thread Antoine Pitrou

Antoine Pitrou added the comment:

As I understand it, this is not specifically about IDLE. Any Tk app would be 
vulnerable.

--

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



[issue16151] Deferred KeyboardInterrupt in interactive mode

2012-11-01 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Amaury, run the followed commands:

  import readline, rlcompleter
  readline.parse_and_bind('tab: complete')

Hint: you can add this to your .pythonrc.py.

--

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



[issue8402] Add a function to escape metacharacters in glob/fnmatch

2012-11-01 Thread Serhiy Storchaka

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


--
assignee: docs@python - 
components:  -Documentation
keywords: +needs review
resolution: invalid - 
stage:  - patch review

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



  1   2   >