kxroberto added the comment:
However, setting a default "0" when no content, that is still too much in
general.
In case of a '304 Not Modified' for example (which is probably the most
frequent HTTP status used on the web overall!) a Content-Length header
obviously
kxroberto added the comment:
now I tried to render this address field header
u'Name , abc@ewf, "Nameß" '
with
h = email.Header.Header(continuation_ws='')
h.append ... / email.Header.make_header via these chunks:
[('Name <', us-ascii), ('abc
kxroberto added the comment:
I think really ill/strange is that kind of item _assignments_ do _add_
multiple.
If msg[field] = xywould just add-first/replace-frist , and only
msg.add_/.append(field, xy) would add multiples that would be clear and
understandable/readable.
(The
New submission from kxroberto :
the email.* package seems to over-encode international charset address fields -
resulting even in display errors in the receivers reader - ,
when message header composition is done as recommended in
http://docs.python.org/library/email.header.html
Python
kxroberto added the comment:
>> (I often wonder why software today isn't much faster than years ago -
>> though the nominal speed of hardware increases tremendously. package
>> sizes grow, without appropriate growth of functionality. This is one
>> example how
kxroberto added the comment:
>> "It doesn't happen in Python 3"
>>
>> Yet the cheap/unnecessary pre-imports of ssl in those other mentioned
>> socket using libs (urllib (cgi!),httplib,smtplib,pop,imap...) exist
>> there. socket is rarely used directl
kxroberto added the comment:
"It doesn't happen in Python 3"
Yet the cheap/unnecessary pre-imports of ssl in those other mentioned socket
using libs (urllib (cgi!),httplib,smtplib,pop,imap...) exist there. socket is
rarely used directly, so not much difference to Py2 in effe
kxroberto added the comment:
"Can you try to compile python using the shared lib"
yes I can try lot of things, but I'd need to do this on many machines. Yet I
didn't create this issue for some local purpose ;-)
99% of Pythons are installed by apt-get, .msi etc.
And n
kxroberto added the comment:
"Of course, as soon as we use sockets, we will bring SSL in"
Indeed, as it is now.
Suggestions:
* urllib.URLOpener.open_https shall always exist, but fail on runtime.
non-existance with strange "AttributeError" is inelegant..bogus.
N
kxroberto added the comment:
Well, "==" whould allow the wanted feature by exception through meta classes
for concerned classes:
>>> class X:
... a=1
...
>>> Y=X
>>> class X:
... a=1
...
>>> Y==X
False
>>> class XCompare(type):
New submission from kxroberto :
With transition from Python2.5 to Python2.6 on current Debian stable I noticed
that the python2.6 executable has now 2x size of python2.5's.
Half of lib-dynload/* obviously have been embedded into the executable by
default. While most of the selections m
Changes by kxroberto :
--
title: pickle to picky on re-defined classes -> pickle too picky on re-defined
classes
___
Python tracker
<http://bugs.python.org/issu
New submission from kxroberto :
When a class definition was re-executed (reload, exec ..) , pickling of
existing instances fails for to picky reason (class object id mismatch). Solved
by the one liner patch below.
Rational: Python is dynamic. Like with any normal attribute lookup: When its
kxroberto added the comment:
I wonder where is the origin, who is the inventor of the frequent
charset=unicode? But:
"Sorry, but it's not obviously that Unicode means UTF-8."
When I faced
the first time on the web, I guessed it is UTF-8 without looking. It even
soun
kxroberto added the comment:
I'd still say this is a plain bug, which simply should be fixed.
"People who have working code" must have already a smart work around: either -
or! : By doing the 5 low level code lines of .as_string() on their own. (there
is no other way to
Changes by kxroberto :
--
components: +Unicode
nosy: +ezio.melotti
type: -> feature request
versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python
3.4
___
Python tracker
<http://bugs.python.org/issu
New submission from kxroberto :
"unicode" seems not to be an official unicode encoding name alias.
Yet it is quite frequent on the web - and obviously means UTF-8.
(search '"text/html; charset=unicode"' in Google)
Chrome and IE display it as UTF-8. (Mozilla
kxroberto added the comment:
16ed15ff0d7c was not in current stable py3.2 so I missed it..
When the comma is now raised as attribute name, then the problem is anyway
moved to the higher level anyway - and is/can be handled easily there by usual
methods.
(still I guess
kxroberto added the comment:
The old patch warned already the majority of real cases - except the missing
white space between attributes.
"The tolerant regex will match both":
locatestarttagend_tolerant: The main and frequent issue on the web here is the
missing white spa
kxroberto added the comment:
Well in many browsers for example there is a internal warning and error log
(window). Which yet does not (need to) claim to be a official W3C checker. It
has positive effect on web stabilization.
For example just looking now I see the many HTML and CSS warnings
kxroberto added the comment:
I looked at the new patch http://hg.python.org/lookup/r86952 for Py3 (regarding
the extended tolerance and local backporting to Python2.7):
What I miss are the calls of a kind of self.warning(msg,i,k) function in
non-strict/tolerant mode (where self.error is
kxroberto added the comment:
ping!
perhaps I forgot to write that I uploaded the cleaned patch also on 2010-08-23.
I really think this simple patch is necessary. Just seen the same problem again
- as I forgot the patch in one of my recent Python update installations.
When SMTPDataError
kxroberto added the comment:
I'm not working with Py3. don't how much that module is different in 3.
unless its going into a py2 version, I'll leave the FR so far to the py3
community
--
___
Python tracker
<http://bugs.pytho
Changes by kxroberto :
--
versions: +Python 2.6, Python 2.7
Added file: http://bugs.python.org/file18624/test_htmlparser_tolerant.patch
___
Python tracker
<http://bugs.python.org/issue1486
kxroberto added the comment:
for me a parser which cannot be feed with HTML from outside (which I cannot
edit myself) has not much use at all.
attached my current patch (vs. py26) - many changes meanwhile.
and a test case.
I've put the default to strict mode, but ...
--
Added
Changes by kxroberto :
Removed file: http://bugs.python.org/file7227/smtplib-authplain-tryrset.patch
___
Python tracker
<http://bugs.python.org/issue1481032>
___
___
Pytho
Changes by kxroberto :
Added file: http://bugs.python.org/file18613/smtplib_nosideeffecterror.patch
___
Python tracker
<http://bugs.python.org/issue1481032>
___
___
Pytho
kxroberto added the comment:
still I think all 3 self.rset()'s in SMTP.sendmail, which are followed by a
raise statement have to be bracketed with an except clause or so -
nowadays better like """
try: self.res()
except (EnvironmentError, SMTPException):
pass
"
kxroberto added the comment:
A first thing would be to select a suitable prefix name for the Array
API. Because the Numpy people have 'stolen' PyArray_ instead of staying
home with PyNDArray_ or so ;-)
In case sb goes into this:
Other than PyList_ like stuff and existing members,
kxroberto added the comment:
I had a similar problem creating a C-fast array.array interface for Cython.
The array.pxd package here (latest zip file)
http://trac.cython.org/cython_trac/ticket/314
includes a arrayarray.h file, which provides ways for efficient creation
and growth from C (extend
kxroberto added the comment:
its with any .pyx (Cython) module , when after pyximport.install() and
injection of --inplace option a .pyx module is imported.
the relevant lines in pyxbuild.py are
dist.run_commands()
return dist.get_command_obj("build_ext").get_o
kxroberto added the comment:
>>> test_build_ext: The test must be run in a python build dir
don't have a build setup currently. maybe in future.
One can yet see in build_ext.py:
after "if self.inplace:" (line485)
there are 2 different computations for ext_filena
New submission from kxroberto :
with --inplace etc. build_ext.get_outputs returns wrong extension paths;
tries to computes them out of the air *again* and ..
Tools which need to further know the produced module file, e.g.
pyximport (Cython) do crash then ...
patch see attachment: stores and
kxroberto added the comment:
"g = Generator(fp,mangle_from_=unixfrom)"
in that code location below?
It produced exceptions often when message lines (or headerlines e.g.
Subject also when I remember right) begin with the char ">" or so.
--- Message.py.orig 2004-1
Changes by kxroberto :
--
title: compute/doc %z os-indep., time.asctime_tz / _TZ -> time.asctime_tz,
time.strftime %z %C
___
Python tracker
<http://bugs.python.org/issue1
kxroberto added the comment:
(I'm somewhat away from all that currently - and not aware if newest
Python versions already solved but:)
* a "time.asctime_tz([tim])" or so should deliver a full OS-indep.
_world_ time string incl. numeric timezone info like
"Sat Mar 21 10:
36 matches
Mail list logo