#3989: Django seems to parse only the addr-spec production of RFC 2822
-------------------------------------------------------------+--------------
Reporter: Pierre Thierry <[EMAIL PROTECTED]> | Owner:
adrian
Status: new |
Component: Validators
Version: SVN |
Resolution:
Keywords: |
Stage: Accepted
Has_patch: 1 |
Needs_docs: 1
Needs_tests: 0 |
Needs_better_patch: 1
-------------------------------------------------------------+--------------
Comment (by Vinay Sajip <[EMAIL PROTECTED]>):
Malcolm, re. your point 2 above, I hear you. I feel that regexes are hard
to scan even when one knows what's going on - all those punctuation
characters squashed up against each other. So I structured the change in
the way that I did because I found it more readable, particularly when one
is cross-referencing against the RFC. How about if I just add a
{{{
del DOT_ATOM, QUOTED_STRING, DOMAIN, ADDR_SPEC, DISPLAY_NAME
}}}
statement after the
{{{
email_re = ...
}}}
line, to clean up the namespace? I'll add a comment above the section,
too, to explain what follows and so that it doesn't seem too complicated.
--
Ticket URL: <http://code.djangoproject.com/ticket/3989#comment:9>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---