[issue21862] cProfile command-line should accept -m module_name as an alternative to script path

2014-07-25 Thread Gennadiy Zlobin

Gennadiy Zlobin added the comment:

I added runpy import mechanism

--
nosy: +gennad
Added file: http://bugs.python.org/file36094/21862.patch

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



[issue19255] Don't wipe builtins at shutdown

2014-01-03 Thread Gennadiy Zlobin

Gennadiy Zlobin added the comment:

I'm not 100% sure that this is what intended, but probably this patch can fix 
it? Please review it.

--
keywords: +patch
nosy: +gennad
Added file: http://bugs.python.org/file33305/19255.patch

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



[issue20075] help(open) eats first line

2014-01-01 Thread Gennadiy Zlobin

Gennadiy Zlobin added the comment:

Zachary, thank you for review. Here's the updated patch.

--
Added file: http://bugs.python.org/file33292/20075-3.patch

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



[issue20098] email policy needs a mangle_from setting

2014-01-01 Thread Gennadiy Zlobin

Gennadiy Zlobin added the comment:

I created the patch, please review it.

--
keywords: +patch
nosy: +gennad
Added file: http://bugs.python.org/file33293/20098.patch

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



[issue20104] expose posix_spawn(p)

2014-01-01 Thread Gennadiy Zlobin

Changes by Gennadiy Zlobin gennad.zlo...@gmail.com:


--
nosy: +gennad

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



[issue20075] help(open) eats first line

2013-12-27 Thread Gennadiy Zlobin

Gennadiy Zlobin added the comment:

Yes, so basically signature line in help(open) is not shown because ast.parse 
fails to parse the return value

- file object

According to grammar, it should be 
- file 
or 
- 'file object' 
or something like this.

as for sqlite, it fails to parse square brackets:

connect(database[, timeout, detect_types, isolation_level,\n\
check_same_thread, factory, cached_statements, uri])

As an idea, maybe we can come up with a failover i.e. if ast can't parse the 
signature, just use __text_signature__ instead of signature object:

Lib/pydoc.py:1325
if not argspec:
-   argspec = '(...)'
+   argspec = object.__text_signature__


Or probably just don't show the signature if it is not formatted correctly as 
it is now (after the patch applied).

--

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



[issue20075] help(open) eats first line

2013-12-27 Thread Gennadiy Zlobin

Gennadiy Zlobin added the comment:

Thank you for the comments! I'll update the patch.


BTW is it safe to update Lib/inspect.py:2004 ?

- return cls(parameters, return_annotation=cls.empty)
+ return cls(parameters, return_annotation=f.returns.s or cls.empty)

Looks like the return value is not shown in signature (if it parsed correctly) 
because currently we explicitly pass cls.empty instance, but if we'd pass 
f.returns.s, the return value is shown.

Or it is correct behavior?

--

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



[issue20075] help(open) eats first line

2013-12-27 Thread Gennadiy Zlobin

Gennadiy Zlobin added the comment:

So, looks like it works for me and all tests pass.
Here's a new patch.
Feel free to revert Lib/inspect.py:2004-2009 if this is incorrect behavior.

--
Added file: http://bugs.python.org/file33280/20075-2.patch

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



[issue20077] Format of TypeError differs between comparison and arithmetic operators

2013-12-27 Thread Gennadiy Zlobin

Gennadiy Zlobin added the comment:

I created a patch for it, please review

--
keywords: +patch
nosy: +gennad
Added file: http://bugs.python.org/file33281/20077.patch

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



[issue20075] help(open) eats first line

2013-12-27 Thread Gennadiy Zlobin

Gennadiy Zlobin added the comment:

I'm sorry, I'm not sure I caught the idea. So, I need to create an issue with 
description

propagate the annotation from the __text_signature__ into inspect.Signature if 
we get a valid one. ?

--

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



[issue20075] help(open) eats first line

2013-12-26 Thread Gennadiy Zlobin

Gennadiy Zlobin added the comment:

Hi guys,

probably this patch can fix it?

--
keywords: +patch
nosy: +gennad
Added file: http://bugs.python.org/file33276/20075.patch

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



[issue19648] Empty tests in pickletester need to be implemented or removed

2013-12-24 Thread Gennadiy Zlobin

Gennadiy Zlobin added the comment:

Antoine, sure! I have just signed it. Thank you!

--

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



[issue20063] Docs imply that set does not support .pop() method

2013-12-24 Thread Gennadiy Zlobin

Gennadiy Zlobin added the comment:

Here's the patch

--
keywords: +patch
nosy: +gennad
Added file: http://bugs.python.org/file33262/20063.patch

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



[issue20063] Docs imply that set does not support .pop() method

2013-12-24 Thread Gennadiy Zlobin

Gennadiy Zlobin added the comment:

Got it. Looks like I was confused by absence of this footnote in Python 3 
documentation) Here's updated patch.

--
Added file: http://bugs.python.org/file33263/20063.patch

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



[issue20064] PyObject_Malloc is not documented

2013-12-24 Thread Gennadiy Zlobin

Gennadiy Zlobin added the comment:

Hi, 

I created the patch, please kindly review it, all comments are welcomed.

Thank you!

--
keywords: +patch
nosy: +gennad
Added file: http://bugs.python.org/file33261/20064.patch

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



[issue19648] Empty tests in pickletester need to be implemented or removed

2013-12-15 Thread Gennadiy Zlobin

Gennadiy Zlobin added the comment:

Hi,

I created 2 simple tests for test_getinitargs and test_reduce.

--
keywords: +patch
nosy: +gennad
Added file: http://bugs.python.org/file33154/19648.patch

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



[issue17203] add long option names to unittest discovery docs

2013-02-16 Thread Gennadiy Zlobin

Gennadiy Zlobin added the comment:

Hi, here's the patch. Should I provide patches for other branches?

--
keywords: +patch
nosy: +gennad
Added file: http://bugs.python.org/file29092/17203.patch

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



[issue14787] pkgutil.walk_packages returns extra modules

2012-05-12 Thread Gennadiy Zlobin

Gennadiy Zlobin gennad.zlo...@gmail.com added the comment:

I confirm this behavior in 2.7 and 3.2 versions. In my 3.3.0a3+ it actually 
outputs nothing.
Also note that if you rename logging to logging2, you actually get

foo temp
logging2 temp

--
nosy: +gennad
versions: +Python 3.3

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



[issue1492704] distinct error type from shutil.move()

2011-09-09 Thread Gennadiy Zlobin

Gennadiy Zlobin gennad.zlo...@gmail.com added the comment:

Yes, I got Windows 7, downloaded VS 2008 express, compiled, ran
python python_d.exe -m test test_shutil 
and tests failed. I found out that os.rename does not raise OSError, according 
to my previous comment...

--

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



[issue1492704] distinct error type from shutil.move()

2011-09-07 Thread Gennadiy Zlobin

Gennadiy Zlobin gennad.zlo...@gmail.com added the comment:

Thanks for the comments! Here'a a new patch.

--
Added file: http://bugs.python.org/file23115/new_patch.diff

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



[issue12761] Typo in Doc/license.rst

2011-08-16 Thread Gennadiy Zlobin

Changes by Gennadiy Zlobin gennad.zlo...@gmail.com:


--
assignee:  - docs@python
components: +Documentation
nosy: +docs@python

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



[issue12761] Typo in Doc/license.rst

2011-08-16 Thread Gennadiy Zlobin

Changes by Gennadiy Zlobin gennad.zlo...@gmail.com:


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

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



[issue1492704] distinct error type from shutil.move()

2011-08-10 Thread Gennadiy Zlobin

Gennadiy Zlobin gennad.zlo...@gmail.com added the comment:

This patch should fix the issue

--
nosy: +gennad
Added file: http://bugs.python.org/file22874/1492704.diff

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



[issue11567] http.server error message format

2011-03-17 Thread Gennadiy Zlobin

Gennadiy Zlobin gennad.zlo...@gmail.com added the comment:

Hi guys, this is my first patch for the Python interpreter.
Hope it is ok, but if it is not, be sure to comment and I'll fix it ASAP

--
keywords: +patch
Added file: http://bugs.python.org/file21262/11567.patch

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



[issue11557] Increase coverage in logging module

2011-03-17 Thread Gennadiy Zlobin

Changes by Gennadiy Zlobin gennad.zlo...@gmail.com:


--
nosy: +gennad

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



[issue4492] httplib code thinks it closes connection, but does not

2011-03-17 Thread Gennadiy Zlobin

Changes by Gennadiy Zlobin gennad.zlo...@gmail.com:


--
nosy: +gennad

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



[issue11568] docstring of select.epoll.register() is wrong

2011-03-17 Thread Gennadiy Zlobin

Changes by Gennadiy Zlobin gennad.zlo...@gmail.com:


--
assignee:  - docs@python
components: +Documentation
nosy: +docs@python
type:  - behavior

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



[issue11568] docstring of select.epoll.register() is wrong

2011-03-17 Thread Gennadiy Zlobin

Gennadiy Zlobin gennad.zlo...@gmail.com added the comment:

The patch fixes the docstring

--
keywords: +patch
nosy: +gennad
Added file: http://bugs.python.org/file21265/11568.patch

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