[issue8233] extend py_compile to compile files from stdin

2010-03-25 Thread Piotr Ożarowski

New submission from Piotr Ożarowski :

Following issue 8140 - attached patches add functionality to take file names to 
be compiled from standard input in py_compile module (if '-' is the only 
parameter in args)

--
components: Library (Lib)
files: py_compile.py.diff
keywords: patch
messages: 101730
nosy: barry, piotr
severity: normal
status: open
title: extend py_compile to compile files from stdin
type: feature request
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file16658/py_compile.py.diff

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



[issue8233] extend py_compile to compile files from stdin

2010-03-25 Thread Piotr Ożarowski

Changes by Piotr Ożarowski :


Added file: http://bugs.python.org/file16659/py_compile.py.diff

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



[issue1054967] bdist_deb - Debian packager

2010-04-30 Thread Piotr Ożarowski

Changes by Piotr Ożarowski :


--
nosy: +piotr

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



[issue14894] distutils.LooseVersion fails to compare number and a word

2012-05-23 Thread Piotr Ożarowski

Changes by Piotr Ożarowski :


--
nosy: +piotr

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



[issue17469] Fix sys.getallocatedblocks() when running on valgrind

2013-03-18 Thread Piotr Ożarowski

New submission from Piotr Ożarowski:

[Forwarding patch from Julien Cristau ]

_Py_AllocatedBlocks was never incremented in PyObject_Malloc(), but
would still be decremented on failure or in PyObject_Free().

--
components: Interpreter Core
files: obmalloc.patch
keywords: patch
messages: 184517
nosy: piotr
priority: normal
severity: normal
status: open
title: Fix sys.getallocatedblocks() when running on valgrind
Added file: http://bugs.python.org/file29456/obmalloc.patch

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



[issue22966] py_compile: foo.bar.py → __pycache__/foo.cpython-34.pyc

2014-11-29 Thread Piotr Ożarowski

New submission from Piotr Ożarowski:

when py_compile module is asked to create .pyc file for file with invalid name, 
it doesn't fail or ignore such request - it creates/overwrites .pyc file for 
sane file name (i.e. ignores everything after dot)

$ touch foo.bar.py
$ python3.4 -m py_compile foo.bar.py
$ ls __pycache__
foo.cpython-34.pyc

Even though foo.bar.py is not a valid file name, some programmers are using 
such names for plugins which leads to bugs similar to 
https://lists.debian.org/debian-python/2014/11/msg00061.html.

I will update my scripts to not feed py_compile module with file names 
containing dot (and remove already generated .pyc files if such files are 
detected), but please do not generate them or generate .pyc files with invalid 
file names as well.

--
messages: 231859
nosy: piotr
priority: normal
severity: normal
status: open
title: py_compile: foo.bar.py → __pycache__/foo.cpython-34.pyc
versions: Python 3.4

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



[issue22966] py_compile: foo.bar.py → __pycache__/foo.cpython-34.pyc

2014-11-29 Thread Piotr Ożarowski

Piotr Ożarowski added the comment:

Python 3.2 generates foo.bar.cpython-32.pyc so it's a regression

--

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