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
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
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
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
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
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
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
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
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
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
10 matches
Mail list logo