Hi all,
I am pleased to announce that `guiqwt` v2.1.0 has been released.
Note that the project has recently been moved to GoogleCode:
http://guiqwt.googlecode.com
This version of `guiqwt` includes a demo software, Sift (for Signal and Image
Filtering Tool), based on `guidata` and `guiqwt`:
Hi all,
I am pleased to announce that `guidata` v1.3.0 has been released.
Note that the project has recently been moved to GoogleCode:
http://guidata.googlecode.com
The `guidata` documentation with examples, API reference, etc. is available
here:
http://packages.python.org/guidata/
Based on
On Tue, Apr 5, 2011 at 10:04 PM, Terry Reedy tjre...@udel.edu wrote:
On 4/5/2011 4:42 PM, John Nagle wrote:
Well, actually Unicode support went in back around Python 2.4.
Even earlier, I think, but there were and still are problems with unicode
in 2.x. Some were and will only be fixed in
neil harper wrote:
I'm a new bie. I have just started learning Python (3.0), finished
with official tutorial. I would like to have your opinion on some
Opinions around here are pretty much like elbows and knee caps...
everybody has them, and yours are really the only ones that matter to
Hi Roy
Two things you can look at:
func
https://fedorahosted.org/func/
mcollective
http://docs.puppetlabs.com/mcollective/
On Wed, Apr 6, 2011 at 2:24 AM, Roy Smith r...@panix.com wrote:
In article mailman.52.1302022780.9059.python-l...@python.org,
geremy condra debat...@gmail.com
On the right hand side of my gmail window, Google posited that I might
be interested in One-liner jokes. And I have to confess, the first
thing I thought of was So I was writing a one-liner in assembly
and...
ChrisA
--
http://mail.python.org/mailman/listinfo/python-list
On 4/1/2011 at 07:33 AM, Kushal Kumaran
kushal.kumaran+pyt...@gmail.com
wrote:
On Fri, Apr 1, 2011 at 4:31 AM, Adriaan Renting rent...@astron.nl
wrote:
L.S.
I have a problem that a background process that I'm trying to start
with
subprocess.Popen gets interrupted and starts waiting for
Brendan Simon wrote:
Any other arguments where Python has benefits over Cobra ??
Python is built from C, Cobra is built from Cobra... Python does not
require Microsoft .NET, nor MONO framework, Python has better community
support, has a larger install base and developer community,
On Wed, Apr 6, 2011 at 6:03 PM, harrismh777 harrismh...@charter.net wrote:
Having said all of that, I must admit my bias against Microsoft .NET and the
Mono frameworks. I personally cannot support a language that requires either
one. Microsoft has made such a mess out of almost everything it
def invert(p):
inverse = [None] * len(p)
for (i, j) in enumerate(p):
inverse[j] = i
return inverse
Elegant. This seems like the best solution, although it isn't as much
fun to write as a one-liner. Thanks
invert([1, 2, 3, 1])
[None, 3, 1, 2] #blah
--
All,
I need to run a third-party binary from a python script and retrieve
its output (and its error messages). I use something like
process = subprocess.Popen(options, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
(info_out, info_err) = process.communicate()
That works fine, except that the
On Apr 6, 4:48 am, Glazner yoavglaz...@gmail.com wrote:
def invert(p):
inverse = [None] * len(p)
for (i, j) in enumerate(p):
inverse[j] = i
return inverse
Elegant. This seems like the best solution, although it isn't as much
fun to write as a one-liner.
Glazner wrote:
def invert(p):
inverse = [None] * len(p)
for (i, j) in enumerate(p):
inverse[j] = i
return inverse
Elegant. This seems like the best solution, although it isn't as much
fun to write as a one-liner. Thanks
invert([1, 2, 3, 1])
[None, 3, 1, 2] #blah
1 occurs twice
On 5 Απρ, 05:49, eryksun () eryk...@gmail.com wrote:
On Monday, April 4, 2011 9:40:33 AM UTC-4, Νικόλαος Κούρας wrote:
In one of your messages you wrote the following:
cursor.execute( '''INSERT INTO users(mail, comment) VALUES(%s,
%s)''', (mail, comment) )
except MySQLdb.Error:
print (
http://www.workfrominter.com/
http://www.workfrominter.com/
http://girlsdailysex.blogspot.com/
http://girlsdailysex.blogspot.com/
Just See What Is this Website Are Msg For You
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 06 Apr 2011 18:26:25 +1000, Chris Angelico wrote:
Right now, I have around me two laptops running Windows XP, two running
Ubuntu 10.10 64-bit, and two running Ubuntu 32-bit. (Surprisingly
balanced.) With a very few exceptions, code that I write in IDLE on one
box will run perfectly on
On 2011-04-06, Chris Rebert c...@rebertia.com wrote:
On Tue, Apr 5, 2011 at 7:16 PM, Vincent Davis
vinc...@vincentdavis.net wrote:
I am working on a program to monitor directory file changes
and am would like a configuration file. This file would
specify email addresses, file and directory
On Wed, Apr 6, 2011 at 10:29 PM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
Mono is free, open source software that is compatible with .NET and is
available on Linux, Mac OS, Solaris, Unix and even that little-known
operating system Windows. *wink*
Ah! My apologies, I stand
On Wednesday, April 6, 2011 6:06:06 AM UTC-4, Νικόλαος Κούρας wrote:
The trouble was in `if @ in mail` .
You can only test somthing `in` something else if the second thing is
iterable and None isnt.
So i made the code look like this:
[code]
if ( mail is not None and '@' in mail ) and
only for ladies$$$
Special site for ladies and women
Ladies Secrets
A to z of ladies
---http://www.wix.com/kumarrajlove/ammu
just click
--
http://mail.python.org/mailman/listinfo/python-list
On 6 Απρ, 16:54, eryksun () eryk...@gmail.com wrote:
You can also use an empty string as the default value when getting the field
value
Please provide me an example.
Also, a simple OR statement can eliminate the None. For example: mail = mail
or ''. Since None is False, the statement
mail = None
mail = mail or 7
mail
7
mail = None
mail = 7 or mail
mail
7
Here no matter the order iam writing the comparison it always return
the number.
why not the same here?
mail = None
mail = mail or ''
mail
''
mail = None
mail = '' or mail
mail
Why the or operator behaves
On 06/04/2011 16:57, Νικόλαος Κούρας wrote:
mail = None
mail = mail or 7
mail
7
mail = None
mail = 7 or mail
mail
7
Here no matter the order iam writing the comparison it always return
the number.
why not the same here?
mail = None
mail = mail or ''
mail
''
mail = None
mail = '' or
Hi,
The or expression will return the first element that evaluates to True, or
the last element if they all evaluate to False. Positive integers evaluate
to True. None evaluates to False.
See: http://docs.python.org/library/stdtypes.html#truth-value-testing
On 06/04/2011 07:06, Dan Stromberg wrote:
On Tue, Apr 5, 2011 at 10:04 PM, Terry Reedy tjre...@udel.edu
mailto:tjre...@udel.edu wrote:
On 4/5/2011 4:42 PM, John Nagle wrote:
Well, actually Unicode support went in back around Python 2.4.
Even earlier, I think, but there were
On Wednesday, April 6, 2011 11:41:24 AM UTC-4, Νικόλαος Κούρας wrote:
On 6 Απρ, 16:54, eryksun () ery...@gmail.com wrote:
You can also use an empty string as the default value when getting the
field value
Please provide me an example.
import cgi
form = cgi.FieldStorage()
user =
On Wednesday, April 6, 2011 11:57:32 AM UTC-4, Νικόλαος Κούρας wrote:
mail = None
mail = mail or 7
mail
7
Quote:
The expression ``x or y`` first evaluates *x*; if *x* is
true, its value is returned; otherwise, *y* is evaluated
and the resulting value is returned.
Since 'mail is None'
On 4/6/2011 12:31 PM, MRAB wrote:
On 06/04/2011 07:06, Dan Stromberg wrote:
I suspect not all string methods were kept for the bytes type:
Doc says Bytes and bytearray objects, being “strings of bytes”, have
all methods found on strings, with the exception of encode(), format()
and
On 4/6/2011 6:06 AM, Νικόλαος Κούρας wrote:
Now it works like i wanted but i want to ask you if i wrote it
correctly, especially when i check against `` and None
One important note: there is one and one one None object; there can be
multiple strings with value ''. So, testing against each is
On Wed, Apr 6, 2011 at 12:47 AM, Adriaan Renting rent...@astron.nl wrote:
This solves the problem using stdin=open(os.devnull, 'rb') instead of
stdin=None makes it run even if there is input from stdin in the
foreground process.
The operating system is Ubuntu 8.04
I understood what
On 6 Απρ, 19:58, eryksun () eryk...@gmail.com wrote:
The expression ``x or y`` first evaluates *x*; if *x* is
true, its value is returned; otherwise, *y* is evaluated
and the resulting value is returned.
I doesnt matter if *y* is True or False before its value is returned?
*y*'s value
Dear Pythoners,
I am attempting to get the DDE module to import into Python and am
having some trouble. I have downloaded and installed the pywin32
extensions for Python 2.6, which is the version of python I am running
on Windows. When I attempt to import the DDE module, as follows,
import
On 06/04/2011 20:21, Νικόλαος Κούρας wrote:
On 6 Απρ, 19:58, eryksun ()eryk...@gmail.com wrote:
The expression ``x or y`` first evaluates *x*; if *x* is
true, its value is returned; otherwise, *y* is evaluated
and the resulting value is returned.
I doesnt matter if *y* is True or False
scattered tooscatte...@gmail.com writes:
def invert(p):
return [ j for (i,j) in sorted(zip(p,range(len(p]
return [j for i,j in sorted(enumerate(p), key=itemgetter(1))]
looks a little cleaner to me.
In Haskell or ML, you can use patterns that contain wild
cards that play
On Wed, Apr 6, 2011 at 1:51 PM, Paul Rubin no.email@nospam.invalid wrote:
In Haskell or ML, you can use patterns that contain wild
cards that play a role in the pattern-matching but don't establish any
binding. Can that be done in Python?
Not as much. You could say something like
On Wed, Apr 6, 2011 at 9:31 AM, MRAB pyt...@mrabarnett.plus.com wrote:
On 06/04/2011 07:06, Dan Stromberg wrote:
On Tue, Apr 5, 2011 at 10:04 PM, Terry Reedy tjre...@udel.edu
mailto:tjre...@udel.edu wrote:
On 4/5/2011 4:42 PM, John Nagle wrote:
Well, actually Unicode support went
I have a vague memory of reading somewhere that it's possible to
replace the Python memory allocator. This would be an option, if
there's no simple way to say your maximum is now 16MB, but I now
can't find it back. Was I hallucinating?
You can adjust the implementations of PyMem_Malloc and
On Wednesday, April 6, 2011 3:21:42 PM UTC-4, Νικόλαος Κούρας wrote:
On 6 Απρ, 19:58, eryksun () ery...@gmail.com wrote:
The expression ``x or y`` first evaluates *x*; if *x* is
true, its value is returned; otherwise, *y* is evaluated
and the resulting value is returned.
I doesnt
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes:
Mono is free, open source software that is compatible with .NET
[…]
It's difficult to take a claim of “free” seriously for a technology
(Mono) that knowingly implements techniques (the “C#” language, the
“.NET” platform, etc.) covered
Hello.
I'm testing the sockets in Python and I've seen the way in which
works to send string. My question is if anyone knows where
can find some information on how to send pictures through
Sockets. I use Python 2.7 and have read the information regarding
Sockets of the Python website, but I can
On 4/6/2011 4:58 PM, craf wrote:
Hello.
I'm testing the sockets in Python and I've seen the way in which
works to send string. My question is if anyone knows where
can find some information on how to send pictures through
Sockets. I use Python 2.7 and have read the information regarding
Sockets
Hi,
I tried Pylint today and it gave me a warning for the function
filter. Is it deprecated? Is the usage of list comprehensions
encouraged? The transformation is not complicated, by the way:
replace filter( func, seq ) with [ x for x in seq if func(x) ] .
Thanks,
Laszlo
--
On 4/6/2011 4:20 PM Jabba Laci said...
Hi,
I tried Pylint today and it gave me a warning for the function
filter. Is it deprecated?
This post from Guido written in 2005 with an undated update would seem
to indicate No.
http://www.artima.com/weblogs/viewpost.jsp?thread=98196
Is the
On Wed, 06 Apr 2011 09:47:21 +0200, Adriaan Renting wrote:
This solves the problem using stdin=open(os.devnull, 'rb') instead of
stdin=None makes it run even if there is input from stdin in the
foreground process.
The operating system is Ubuntu 8.04
I understood what Suspended (tty input)
On Wed, Apr 6, 2011 at 4:17 PM, Littlefield, Tyler ty...@tysdomain.comwrote:
On 4/6/2011 4:58 PM, craf wrote:
Hello.
I'm testing the sockets in Python and I've seen the way in which
works to send string. My question is if anyone knows where
can find some information on how to send
On Wed, 06 Apr 2011 02:20:22 -0700, Pierre GM wrote:
I need to run a third-party binary from a python script and retrieve
its output (and its error messages). I use something like
process = subprocess.Popen(options, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
(info_out, info_err) =
On Thu, Apr 7, 2011 at 6:38 AM, Martin v. Loewis mar...@v.loewis.de wrote:
You can adjust the implementations of PyMem_Malloc and PyObject_Malloc.
This would catch many allocations, but not all of them. If you adjust
PyMem_MALLOC instead of PyMem_Malloc, you catch even more allocations -
but
On Thu, Apr 7, 2011 at 10:06 AM, Chris Angelico ros...@gmail.com wrote:
I'm not too concerned about extensions, here; in any case, I lock most
of them off. I just want to prevent stupid stuff like this:
a='a'
while True:
a+=a
from bringing the entire node to its knees. Obviously that
Hi all,
Little new to the python world, please excuse the Noobness.
We are writing a server which will subscribe to the Amazon Simple Queue
Service. I am looking for a good service container. I saw Twisted and Zope
out there. It's going to be a server which polls on a queue via the Boto
api.
On Wed, Apr 6, 2011 at 2:20 AM, Pierre GM pierregmc...@gmail.com wrote:
All,
I need to run a third-party binary from a python script and retrieve
its output (and its error messages). I use something like
process = subprocess.Popen(options, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
On Apr 5, 1:26 pm, Detlev Offenbach det...@die-offenbachs.de wrote:
python wrote:
I have looked a while for this answer. Sorry if it right before me.
I have move from Windows toosx. The thing I miss most is pywin.
I know you can purchase or download fullIDE'sfor python or even use
On Wed, 06 Apr 2011 19:20:31 -0400, Jabba Laci wrote:
Hi,
I tried Pylint today and it gave me a warning for the function filter.
Is it deprecated?
No.
Is the usage of list comprehensions encouraged?
Certainly, but list comprehensions are not necessarily equivalent to
filter. In
On 4/6/2011 7:20 PM, Jabba Laci wrote:
Hi,
I tried Pylint today and it gave me a warning for the function
filter.
That is a bug in PyLint. Do not take any code checker as gospel truth.
Is it deprecated?
No. One can look in the source code for a deprecation warning statement
or run 3.2
On 4/6/2011 7:58 PM, Nobody wrote:
On Wed, 06 Apr 2011 02:20:22 -0700, Pierre GM wrote:
I need to run a third-party binary from a python script and retrieve
its output (and its error messages). I use something like
process = subprocess.Popen(options, stdout=subprocess.PIPE,
Not sure what is going on here. the set wset is large I am sure but ... Is
this something I am going wrong?
def walked_dir(adir):
wdirset = set()
for dirpath, dirnames, filenames in os.walk(adir):
for name in filenames:
if isfile(dirpath+'/'+name):
Hi guys,
I want to try out some pooling of processors, but I'm not sure if it
is possible to do what I want to do. Basically, I want to have a
global object, that is updated during the execution of a function, and
I want to be able to run this function several times on parallel
processors. The
I dont understand why this is such a big deal. Nor do i understand why google
can't find a reasonable answer. If one can't figure out from the title what I'm
trying to do, then a look at code should firmly plant the intent. The general
idea of the code is, in my opinion, very basic.
I notice,
On Wed, Apr 6, 2011 at 9:04 PM, Brad Bailey computer_b...@yahoo.com wrote:
I dont understand why this is such a big deal. Nor do i understand why google
can't find a reasonable answer. If one can't figure out from the title what
I'm trying to do, then a look at code should firmly plant the
On Wed, Apr 6, 2011 at 9:41 PM, Chris Rebert c...@rebertia.com wrote:
On Wed, Apr 6, 2011 at 9:04 PM, Brad Bailey computer_b...@yahoo.com wrote:
I dont understand why this is such a big deal. Nor do i understand why
google can't find a reasonable answer. If one can't figure out from the
Ben Finney wrote:
It's difficult to take a claim of “free” seriously for a technology
(Mono) that knowingly implements techniques (the “C#” language, the
“.NET” platform, etc.) covered by specific idea patents held by an
entity that demonstrates every intention of wielding them to restrict
the
On Wed, Apr 6, 2011 at 9:06 PM, elsa kerensael...@hotmail.com wrote:
Hi guys,
I want to try out some pooling of processors, but I'm not sure if it
is possible to do what I want to do. Basically, I want to have a
global object, that is updated during the execution of a function, and
I want
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes:
filter(func, *seqs) - [x for x in itertools.chain(*seqs) if func(x)]
although I suppose functional programming purists might object :)
Maybe you really want
filter(func, chain.from_iterable(seqs))
--
Chris Angelico wrote:
there's a lot of
risk in tying yourself to a non-free framework, especially such a
heavy one as .NET. You're completely at the mercy of the provider, in
this case Microsoft, and if they make an incompatible change in the
framework, you're forever stuck.
Yes, lock-in is
You guys want one more...?
... we can't import tkconstants any longer nope.
import tkinter.tkconstants
(oh, and watch that first t on Tkinter, its doozy)
nice.
(ask me how long it took to find that... nah, wait till I'm not so
grumpy... couple days from now)
regards,
m harris
Brian Quinlan br...@sweetapp.com added the comment:
I think that it surprising behavior, especially considering that asking for the
*first* element in the iterator causes *all* of the futures to be created.
--
___
Python tracker
Roundup Robot devnull@devnull added the comment:
New changeset 2ca1bc677a60 by Senthil Kumaran in branch '3.1':
Issue #10762: Guard against invalid/non-supported format string '%f' on
Windows. Patch Santoso Wijaya.
http://hg.python.org/cpython/rev/2ca1bc677a60
--
nosy: +python-dev
New submission from xBrawny and...@newthot.com:
I wonder if this is the desired behavior. According to docs, __instancecheck__
should be called, but it never gets to it. If return True is replaced with
raise Exception the result is the same.
=
class
the_isz the_...@gmx.de added the comment:
Well, the only thing I can add to this is that the json module (which I ended up
using) supports unicode with no problem. So I think the argument that most of
the standard library in 2.x assumes bytestrings is a bit... shaky.
Other than that, I can
Roundup Robot devnull@devnull added the comment:
New changeset 1320f29bcf98 by Senthil Kumaran in branch '2.7':
Issue #10762: Guard against invalid/non-supported format string '%f' on
Windows. Patch Santoso Wijaya.
http://hg.python.org/cpython/rev/1320f29bcf98
--
Senthil Kumaran orsent...@gmail.com added the comment:
Fixed it in relevant branches. I had to add condition around the test to verify
that platform was win because this is unique to windows only. Thanks.
--
nosy: +orsenthil
___
Python tracker
Changes by Senthil Kumaran orsent...@gmail.com:
--
assignee: - orsenthil
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10762
anatoly techtonik techto...@gmail.com added the comment:
2011/4/6 Jesús Cea Avión rep...@bugs.python.org:
Jesús Cea Avión j...@jcea.es added the comment:
Some more references:
Read the notes under the slides:
https://dgl.cx/2011/01/dtrace-and-perl
https://dgl.cx/dtrace
New submission from STINNER Victor victor.stin...@haypocalc.com:
The creation of a file of 5.25 GB took more than 30 min on AMD64 Snow Leopard
3.x buildbot, and so regrtest exited:
-
[ 27/354] test_mmap
Thread 0x7fff70439ca0:
File
STINNER Victor victor.stin...@haypocalc.com added the comment:
The test step was interrupted after 38 mins, 45 secs (including 30 min of
timeout) at the test 27, whereas the previous (success) test step took 46
mins, 55 secs to execute all (354) tests.
--
nosy: +ixokai
Łukasz Langa luk...@langa.pl added the comment:
As another core dev aptly said, most standard library Unicode support is
probably accidental. As for `json`, this is one of the newest additions to
stdlib, introduced in Python 2.6 (released at the same time as Python 3.0). Not
the best example
STINNER Victor victor.stin...@haypocalc.com added the comment:
I think it is more a question of is this an easy fix?
or would it require extensive changes to support unicode properly.
First of all, the question is: who would like to develop it. You can vote for
an issue, but it doesn't
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
On Tue, Apr 05, 2011 at 08:35:22PM +, R. David Murray wrote:
Simple fix, but it took me a while to track down the critical piece of code.
I've really tried to break it, but i can't.
--
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com:
This is what one gets if using a BytesParser() generated message:
encoders.encode_7or8bit(msg)
AttributeError: 'list' object has no attribute 'decode'
encoders.encode_base64(msg)
TypeError: expected bytes, not list
Changes by R. David Murray rdmur...@bitdance.com:
--
assignee: - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11780
___
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com:
--
components: Installation
nosy: r.david.murray, sdaoden
priority: normal
severity: normal
status: open
title: test/test_email directory does not get installed by 'make install'
versions: Python 3.3
Roundup Robot devnull@devnull added the comment:
New changeset b807cf929e26 by R David Murray in branch '3.2':
#11605: don't use set/get_payload in feedparser; they do conversions.
http://hg.python.org/cpython/rev/b807cf929e26
New changeset 642c0d6799c5 by R David Murray in branch 'default':
R. David Murray rdmur...@bitdance.com added the comment:
Thanks for the testing.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11605
STINNER Victor victor.stin...@haypocalc.com added the comment:
Anyway, try to use Python everywhere in Python 2 is a waste of time.
Oh... I mean use Unicode in Python 2
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11597
Senthil Kumaran sent...@uthcode.com added the comment:
Just for the explaination (as the report already closed), getheaders of
HTTPMessage object is available by subclassing all the way from rfc822.py
module. If you trace it through the debugger, you will come to know.
--
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:
There seems to be also a problem with src/sparc/v9.S.
https://bugs.gentoo.org/show_bug.cgi?id=362065
FAIL: test_ulonglong (ctypes.test.test_callbacks.Callbacks)
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
versions: +Python 2.7 -3rd party
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8314
___
Nick Coghlan ncogh...@gmail.com added the comment:
should is a wonderful word when it comes to external APIs.
We currently have a couple of problems:
1. The concrete APIs will fail noisily if given an instance of something that
isn't a list, but may fail *silently* if given a subclass that
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
This is a complete thing including tests.
Note that the tests fail due to another error
in generator.py (or wherever the real source is):
TypeError: 'str' does not support the buffer interface
Please do forget this mortifying
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com:
Removed file: http://bugs.python.org/file21409/bytes-header-parser.1.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11684
___
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com:
This snippet (for #11684, but it's simply BytesParser with
headersonly=True in the end)
with openfile('msg_46.txt', 'rb') as fp:
msgdata = fp.read()
parser = email.parser.BytesHeaderParser()
Roundup Robot devnull@devnull added the comment:
New changeset 184ddd9acd5a by R David Murray in branch 'default':
#1690608: make formataddr RFC2047 aware.
http://hg.python.org/cpython/rev/184ddd9acd5a
--
nosy: +python-dev
___
Python tracker
Changes by R. David Murray rdmur...@bitdance.com:
--
assignee: - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11684
___
Changes by R. David Murray rdmur...@bitdance.com:
--
assignee: - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11782
___
Benjamin Peterson benja...@python.org added the comment:
2011/4/6 Nick Coghlan rep...@bugs.python.org:
Nick Coghlan ncogh...@gmail.com added the comment:
should is a wonderful word when it comes to external APIs.
We currently have a couple of problems:
1. The concrete APIs will fail
R. David Murray rdmur...@bitdance.com added the comment:
Finally got around to committing this; thanks, Torsten. As a reward, I'm going
to make you nosy on a new, related issue I'm about to create. It is, of
course, your option whether you want to work on it :)
By the way, have you
Antoine Pitrou pit...@free.fr added the comment:
Why not add fast paths to the generic functions if that's what you're
concerned about?
It's unexpected for the user of the functions and breaks years of
tradition. What if someone calls PyList_Append on a custom type that
doesn't do as they
New submission from R. David Murray rdmur...@bitdance.com:
The patch for issue 1690608 adds support for unicode in the realname field to
formataddr. To complete the currently-workable internationalization of address
specs, both parseaddr and formataddr should be made IDNA aware. It is
R. David Murray rdmur...@bitdance.com added the comment:
Issue 1690608 addresses part of this issue, and issue 11783 will address the
IDNA part.
From my point of view those two issues solve this problem from the perspective
the email package infrastructure and *current* API. In the email6
New submission from R. David Murray rdmur...@bitdance.com:
Attached is a patch. I'm not sure that I've done everything that needs to be
done on the Windows side, though. Martin?
--
keywords: +patch
nosy: +loewis
Added file:
Éric Araujo mer...@netwok.org added the comment:
I think the stdlib should comply with HTML 4.01, and in the future HTML 5.
(FTR, I don’t think XHTML is useful, and deny that XHTML-compatible HTML
exists. See http://bugs.python.org/issue11567#msg131509 :)
--
1 - 100 of 162 matches
Mail list logo