[issue37676] cmath.phase array support

2019-07-25 Thread Hendrik
New submission from Hendrik : It would be nice if cmath.phase supports arrays like this: ``` import cmath import numpy as np z=255*np.ones((3,3)) * np.exp(1j * np.pi*np.ones((3,3))) def get_k_amp_array(z): return abs(z) def get_k_ph_array(z): return np.array([[cmath.phase(z_row

[issue2008] cookielib lacks FileCookieJar class for Safari

2014-02-05 Thread Hendrik
Changes by Hendrik hendrik.hoe...@googlemail.com: -- keywords: +patch Added file: http://bugs.python.org/file33921/cookie.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2008

[issue2008] cookielib lacks FileCookieJar class for Safari

2014-02-05 Thread Hendrik
Changes by Hendrik hendrik.hoe...@googlemail.com: Added file: http://bugs.python.org/file33922/cookiejar.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2008

[issue2008] cookielib lacks FileCookieJar class for Safari

2014-02-02 Thread Hendrik
Hendrik added the comment: Ok, i've got it. --- a/Lib/http/cookiejar.py Wed Dec 18 15:37:03 2013 -0600 +++ b/Lib/http/cookiejar.py Sat Feb 01 15:12:01 2014 +0100 @@ -11,17 +11,17 @@ distributed with the Python standard library, but are available from http://wwwsearch.sf.net

[issue2008] cookielib lacks FileCookieJar class for Safari

2014-02-02 Thread Hendrik
Changes by Hendrik hendrik.hoe...@googlemail.com: -- versions: +Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2008

[issue2008] cookielib lacks FileCookieJar class for Safari

2014-02-01 Thread Hendrik
Hendrik added the comment: I found a solution for reading Safari cookies, but struggling around with hg diff. Because always when i typ hg diff Lib/http/cookiejar.py it returns me the complete file not only my changes.. -- nosy: +Hendrik ___ Python

[issue15869] IDLE: Include .desktop file and icon

2013-09-26 Thread Hendrik Knackstedt
Hendrik Knackstedt added the comment: For the correct icon to appear you have to copy the provided .xpm file to the given location: /usr/share/pixmaps/python.xpm This is still an issue for the current version of python 3.3. This is really easy to fix. Simply include the files already provided

[issue17257] re module shows unexpected non-greedy behavior when using groups

2013-02-21 Thread Hendrik Lemelson
Hendrik Lemelson added the comment: Thank you for clarifying this. While it still not seems really intuitive to me I can handle the behavior. To summarize: It is not possible with re to have an optional ({0,1}) group that contains further subgroups, because re considers (0,0) to already

[issue17257] re module shows unexpected non-greedy behavior when using groups

2013-02-20 Thread Hendrik Lemelson
New submission from Hendrik Lemelson: When using the Python 2.7.3 re module, it shows a strange behavior upon the use of quantifiers together with groups: re.search('(a*)', 'ct').groups() ('',) re.search('(a+)', 'ct').groups() ('',) re.search('(a{0,5})', 'ct').groups

[issue1556] Failure when calling __str__ for MIMEBase(message, rfc822) objects

2007-12-05 Thread Hendrik Spiegel
New submission from Hendrik Spiegel: When creating a MIMEBase object with message/rfc822 mimetype invoking the objects __str__ method results in an exception. Even if this behaviour should be intended the error message TypeError: Expected list, got type 'str' is not helpful. To reproduce