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 is disallo
New submission from kxroberto kxrobe...@users.sourceforge.net:
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
kxroberto kxrobe...@users.sourceforge.net 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
kxroberto kxrobe...@users.sourceforge.net added the comment:
now I tried to render this address field header
u'Name abc\u03a3@xy, abc@ewf, Nameß weofij@fjeio'
with
h = email.Header.Header(continuation_ws='')
h.append ... / email.Header.make_header via these chunks:
[('Name ', us-ascii
kxroberto kxrobe...@users.sourceforge.net 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
New submission from kxroberto kxrobe...@users.sourceforge.net:
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
kxroberto kxrobe...@users.sourceforge.net 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):
... def __eq__(self, other
kxroberto kxrobe...@users.sourceforge.net 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
kxroberto kxrobe...@users.sourceforge.net 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
kxroberto kxrobe...@users.sourceforge.net 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
kxroberto kxrobe...@users.sourceforge.net 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
kxroberto kxrobe...@users.sourceforge.net 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
meta content=text/html; charset=unicode http-equiv=Content-Type/
the first
New submission from kxroberto kxrobe...@users.sourceforge.net:
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
Changes by kxroberto kxrobe...@users.sourceforge.net:
--
title: pickle to picky on re-defined classes - pickle too picky on re-defined
classes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13479
kxroberto kxrobe...@users.sourceforge.net 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
New submission from kxroberto kxrobe...@users.sourceforge.net:
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 as ASCII
Changes by kxroberto kxrobe...@users.sourceforge.net:
--
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 rep...@bugs.python.org
kxroberto kxrobe...@users.sourceforge.net 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
kxroberto kxrobe...@users.sourceforge.net 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
kxroberto kxrobe...@users.sourceforge.net 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
kxroberto kxrobe...@users.sourceforge.net 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
kxroberto kxrobe...@users.sourceforge.net 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
kxroberto kxrobe...@users.sourceforge.net 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 rep
kxroberto kxrobe...@users.sourceforge.net 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
Changes by kxroberto kxrobe...@users.sourceforge.net:
--
versions: +Python 2.6, Python 2.7
Added file: http://bugs.python.org/file18624/test_htmlparser_tolerant.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1486713
kxroberto kxrobe...@users.sourceforge.net added the comment:
still I think all 3 self.rset()'s in SMTP.sendmail, which are followed by a
raise someerror statement have to be bracketed with an except clause or so -
nowadays better like
try: self.res()
except (EnvironmentError, SMTPException
Changes by kxroberto kxrobe...@users.sourceforge.net:
Added file: http://bugs.python.org/file18613/smtplib_nosideeffecterror.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1481032
Changes by kxroberto kxrobe...@users.sourceforge.net:
Removed file: http://bugs.python.org/file7227/smtplib-authplain-tryrset.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1481032
kxroberto kxrobe...@users.sourceforge.net 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
kxroberto kxrobe...@users.sourceforge.net 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
kxroberto kxrobe...@users.sourceforge.net 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
New submission from kxroberto kxrobe...@users.sourceforge.net:
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
kxroberto kxrobe...@users.sourceforge.net 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_filename
kxroberto kxrobe...@users.sourceforge.net 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
Changes by kxroberto kxrobe...@users.sourceforge.net:
--
title: compute/doc %z os-indep., time.asctime_tz / _TZ - time.asctime_tz,
time.strftime %z %C
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1475397
kxroberto kxrobe...@users.sourceforge.net 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-12
36 matches
Mail list logo