Thorsten Kampe wrote:
* Gabriel Genellina (Wed, 25 Feb 2009 14:00:16 -0200)
En Wed, 25 Feb 2009 13:40:31 -0200, Thorsten Kampe
thors...@thorstenkampe.de escribió:
* Roy H. Han (Wed, 25 Feb 2009 10:17:22 -0500)
Thanks, RDM, for stating the right approach.
Thanks, Steve, for teaching by
En Wed, 25 Feb 2009 15:01:08 -0200, Thorsten Kampe
thors...@thorstenkampe.de escribió:
* Gabriel Genellina (Wed, 25 Feb 2009 14:00:16 -0200)
En Wed, 25 Feb 2009 13:40:31 -0200, Thorsten Kampe
thors...@thorstenkampe.de escribió:
* Roy H. Han (Wed, 25 Feb 2009 10:17:22 -0500)
Thanks, RDM, for
characters), a CRLF may be inserted before any WSP. For
example, the header field:
Subject: This is a test
can be represented as:
Subject: This
is a test
[irrelevant note elided]
The process of moving from this folded multiple-line representation
rdmur...@bitdance.com wrote:
[...]
The process of moving from this folded multiple-line representation
of a header field to its single line representation is called
unfolding. Unfolding is accomplished by simply removing any CRLF
that is immediately followed by WSP. Each header
range can reasonably
be called Unicode encodings.
The OP just saw some weird characters in the email subject and thought
I know. It looks weird. Must be Unicode. But it wasn't. It was good
ole ASCII - only Quoted Printable encoded.
Thorsten
--
http://mail.python.org/mailman/listinfo/python
En Wed, 25 Feb 2009 15:44:18 -0200, rdmur...@bitdance.com escribió:
Tab is not mentioned in RFC 2822 except to say that it is a valid
whitespace character. Header folding (insertion of crlf) can
occur most places whitespace appears, and is defined in section
2.2.3 thusly: [...]
So, the
.
Not at all. ASCII is as valid as character encoding (coded character set
as the Unicode guys like to say) as ISO 10646 (which covers the whole
range).
The OP just saw some weird characters in the email subject and thought
I know. It looks weird. Must be Unicode. But it wasn't. It was good
ole ASCII
Dear python-list,
I'm having some trouble decoding an email header using the standard
imaplib.IMAP4 class and email.message_from_string method.
In particular, email.message_from_string() does not seem to properly
decode unicode characters in the subject.
How do I decode unicode characters
unicode characters in the subject.
How do I decode unicode characters in the subject?
You don't. You can't. You decode str objects into unicode objects. You
encode unicode objects into str objects. If your input is not a str
object, you have a problem.
I'm no expert on the email package
I'm stuck on a tutorial Hands on Python3
Exercise 1.13.7.3. ** Complete the following function. This starting code is in
joinAllStub.py. Save it to the new name joinAll.py. Note the way an example is
given in the documentation string. It simulates the use of the function in the
Shell. This is
--
http://mail.python.org/mailman/listinfo/python-list
--
==
This mobile text message is brought to you by ATT
--
http://mail.python.org/mailman/listinfo/python-list
--
http://mail.python.org/mailman/listinfo/python-list
--
http://mail.python.org/mailman/listinfo/python-list
Barry A. Warsaw [EMAIL PROTECTED] added the comment:
I'm rejecting the patch because the old way of making this work still
works in Python 3.0. Any larger changes to the API need to be made in
the context of redesigning the email package to be byte/str aware.
--
resolution: - rejected
STINNER Victor [EMAIL PROTECTED] added the comment:
I'm rejecting the patch because the old way of making
this work still works in Python 3.0.
I checked the documentation and there is a section about email:
Internationalized headers. I didn't read this section. I just
expected that Python
Barry A. Warsaw [EMAIL PROTECTED] added the comment:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Nov 20, 2008, at 5:07 PM, STINNER Victor wrote:
STINNER Victor [EMAIL PROTECTED] added the comment:
I'm rejecting the patch because the old way of making
this work still works in Python
pls help me
html page conecting to database sql or .mdb files
pls sent qury
Check out the all-new face of Yahoo! India. Go to http://in.yahoo.com/--
http://mail.python.org/mailman/listinfo/python-list
STINNER Victor [EMAIL PROTECTED] added the comment:
Please make this a release blocker and I will look at it this
weekend. -Barry
--
priority: - release blocker
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4306
STINNER Victor [EMAIL PROTECTED] added the comment:
The first email example (the one using a file in the library
documentation) opens a text in binary mode and use the ASCII charset.
It's quite strange because I expect an text to use only characters,
something like:
charset = 'ASCII'
#
Changes by Benjamin Peterson [EMAIL PROTECTED]:
--
assignee: - barry
nosy: +barry
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4306
___
___
New submission from STINNER Victor [EMAIL PROTECTED]:
I never used the email package, so my issue is maybe not a bug. I'm
trying to send an email with diacritics in the subject and the body.
I'm french so it's natural to use characters not in the ASCII range. I
wrote this small program:
def
Hey!
My name is Richard
Carlsen. I am trying to create a program/game with the following
plot/requirement in Python (a basic river-crossing game). I have just begun
programming and have read a basics book on Python, but av having problems
getting started with this. I would very much
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, 29 Aug 2008, bruce wrote:
Hi john.
Thanks for your reply. I tried your suggestion of using RobustFactory, and
still get a badly maligned html back!!! The html is listed below. I would
That's expected -- this affects the parsing of the HTML. It does not
modify the HTML.
have
Hi.
I'm using mechanize to parse a page/site that uses the meta http-equiv tag
in order to perform a refresh/redirect of the page. I've tried a number of
settings, and read different posts on various threads, but seem to be
missing something.
the test.html page is the page that the url returns,
On Fri, 29 Aug 2008, bruce wrote:
[...]
does the page (test.html) need to be completely valid html?
No, but there are certainly (poorly-defined) limitations.
I haven't tried to understand your script or the HTML, but did you try
this:
br = mechanize.Browser(mechanize.RobustFactory())
...
@python.org
Subject: Re: [wwwsearch-general] (no subject)
On Fri, 29 Aug 2008, bruce wrote:
[...]
does the page (test.html) need to be completely valid html?
No, but there are certainly (poorly-defined) limitations.
I haven't tried to understand your script or the HTML, but did you try
this:
br
Is there a way to make a fake mouse or something like that? I'm
planning to create a frame with web open and then macro on it with
that fake mouse. And i want fake mouse so i can use my computer while
that fake mouse is doing its job.
--
http://mail.python.org/mailman/listinfo/python-list
Chris Withers [EMAIL PROTECTED] added the comment:
Ori,
I do agree with both you and Barry but is there any chance someone could
make the one-character change to make the /t a space so we can stop
seeing weirdness in common mail clients?
Perhaps a separate issue could be raised to refactor
Ori Avtalion [EMAIL PROTECTED] added the comment:
I think there's been a little misinterpretation of the standard in the
comments above.
It's important to note that RFC 2822 basically defines folding as
adding a CRLF before an existing whitespace in the original message.
See
Barry A. Warsaw [EMAIL PROTECTED] added the comment:
I'm pretty convinced that this stuff is broken and needs serious
attention. Unfortunately, I won't have time to address the email
package before 2.6 and 3.0 get released. My current work lives at
bzr+ssh://[EMAIL
Chris Withers [EMAIL PROTECTED] added the comment:
Again, in total agreement with Andi *EXCEPT*:
Please use ' ' instead of '\t' for the continuation character.
It's the \t that gets mis-rendered by Outlook and Thunderbird (at the
very least!) and since ' ' is also valid according to the RFC,
Andi Albrecht [EMAIL PROTECTED] added the comment:
FWIW, I've uploaded a patch to codereview:
http://codereview.appspot.com/2407
It uses a space character as Chris suggested.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1974
Chris Withers [EMAIL PROTECTED] added the comment:
Andi, I'm in total agreement with you :-)
(so if this bug could get fixed, both issues could get closed)
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1974
Hi there. So I have a challenge in the Python book I am using (python
programming for the absolute beginner) that tells me to improve an ask_number()
function, so that it can be called with a step value, and I havn't
been able to find out yet what's meant by a step value, but i'll keep
looking of
Steve Baker [EMAIL PROTECTED] added the comment:
I'm also hitting this problem. I'm including a demo script. The minimal
condition for me to reproduce this bug is that the subject contain at
least 76 characters of any kind, followed by a space, followed by at
least 3 characters of any kind
Changes by Steve Baker [EMAIL PROTECTED]:
Added file: http://bugs.python.org/file10419/test.py
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1974
__
___
Python-bugs-list
Changes by Steve Baker [EMAIL PROTECTED]:
Removed file: http://bugs.python.org/file10418/test
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1974
__
___
Python-bugs-list
unsubscribe me form python list plz
--
http://mail.python.org/mailman/listinfo/python-list
Hi there,
I'm trying to install PyGreSQL for python 2.4.
the installation seems to be done correctly, but when I try to import the pgdb
module I got the message:
import pgdb
Traceback (most recent call last):
File pyshell#2, line 1, in -toplevel-
import pgdb
File
Kayne Naughton [EMAIL PROTECTED] added the comment:
Just struck this myself, found Andi's solution to work.
Constructing the header using email.header stops it from breaking the
line awkwardly (vs. just storing a string).
Suggest the documentation example page be updated to use header() in
Kayne Naughton [EMAIL PROTECTED] added the comment:
Argg, yes, as Andi explained it's the tab (not sure how I missed that on
first reading).
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1645148
_
://www.dofactory.com/Patterns/PatternObserver.aspx#_self1
The difference I am focusing on is that in the latter,
the observer (investor) maintains a reference to the
subject (stock).
(Many questions can be raised of course: see the discussion at
http://aspn.activestate.com/ASPN/Cookbook
Alan Isaac [EMAIL PROTECTED] writes:
Is anything lost by not maintaining this reference (other
than error checking ...)? If I feel the observer needs
access to the subject, what is wrong with just having the
subject pass itself as part of the notification?
It reduces the number
Alan Isaac [EMAIL PROTECTED] writes:
Is anything lost by not maintaining this reference (other
than error checking ...)? If I feel the observer needs
access to the subject, what is wrong with just having the
subject pass itself as part of the notification?
Ville M. Vainio wrote
Alan Isaac [EMAIL PROTECTED] writes:
the following: OK, here's the pattern, now your listener
wants to know the event source, do not ask something new the
subject to respond to that need. That is unnecessary
coupling. Instead, just rewrite your listener to maintain
a reference
Ville M. Vainio wrote:
in case of stocks, you are probably monitoring several
stock objects, so the stock should probably pass itself to
the observer
OK. This is related to my question #2 (in a separate
thread), where I'd also appreciate your comments.
analogous to a typical
On May 8, 4:57 pm, Alan Isaac [EMAIL PROTECTED] wrote:
Ville M. Vainio wrote:
in case of stocks, you are probably monitoring several
stock objects, so the stock should probably pass itself to
the observer
OK. This is related to my question #2 (in a separate
thread), where I'd also
I am writing a script which need's to convert an excel file to csv (text)
format. For that I am using the following code:
excel = win32com.client.Dispatch(Excel.Application,Quit)
workbook = excel.Workbooks.Open(xlsfile)
workbook.SaveAs(csvfile, FileFormat=24) # 24 represents
hi i use this programme in my application django:
import structMASK_CCITT = 0x1021 # CRC-CCITT mask (ISO 3309, used in X25,
HDLC)MASK_CRC16 = 0xA001 # CRC16 mask (used in ARC files)def updcrc(crc,
data, mask=MASK_CRC16): data_length = len(data) unpackFormat = '%db' %
hi,
I wrote a python program and import the function and executing , that
fuction get executing as the current uid what i have to do if i want to
exectue that function as root or another user .
--
http://mail.python.org/mailman/listinfo/python-list
Duncan Booth [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I've also just spent a while getting simplejson 1.7.4 to install on a
(non-
windows) system without a C compiler.
The trick is to unzip the tar file and then before you try to install it
delete everything in
Somehow I don't get what you are after. The ' doesn't have to be escaped
at all if are used to delimit the string. If ' are used as delimiters
then \' is a correct escaping. What is the problem with that!?
If I delimit the string with double quote, then I have to escape every
double quote
Changes by Guido van Rossum:
--
assignee: - barry
nosy: +barry
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1974
__
___
Python-bugs-list mailing list
Unsubscribe:
17146031598
--
http://mail.python.org/mailman/listinfo/python-list
New submission from Chris Withers:
Somewhere in email.MIMEText.MIMEText.as_string (I'm not sure where) long
subject headers are folded using a newline followed by a tab:
from email.MIMEText import MIMEText
m = MIMEText('foo')
m['Subject']='AA '*40
m.as_string()
'Content-Type: text/plain
17146031598
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I have what I suspect to be a fairly simple problem while using python Numeric.
I am attempting to count the number of times that an element 'b' occurs in
numeric array 'a'. I tried unsuccessfully to find a more efficient function to
do this for me such as that offered when using a list, but
I'm having a problem similar to the query below, the problem being that the suggested
method doesn't work because the win32gui.CreateFileDialog method seems produce a dialog
with a read only attribute set, with no evident way to change it, in Python 2.4. Setting
the 4th argument to zero, for
Sorry for the top posting - I found out that the problem I encountered
was not something new in Python 3.0.
See Fredrik's message. The problem is not with htmlentitydefs, but with
your usage of ElementTree - in ElementTree, the .entity dictionary
values are not again parsed, apparently causing
Op Tue, 11 Dec 2007 14:19:20 -0800, schreef Paul McGuire:
My ISP's news server only works for me when I am connected locally, not
when I am travelling.
Gmane ?
--
JanC
--
http://mail.python.org/mailman/listinfo/python-list
Sorry for the top posting - I found out that the problem I encountered
was not something new in Python 3.0.
Here's a test program:
import xml.etree.ElementTree
ElementTree = xml.etree.ElementTree
import htmlentitydefs
class XmlParser(ElementTree.ElementTree):
def __init__(self,
Jan Claeys wrote:
Op Tue, 11 Dec 2007 14:19:20 -0800, schreef Paul McGuire:
My ISP's news server only works for me when I am connected locally, not
when I am travelling.
Same here, so I use:
sudo ssh -L119:newsgroups.comcast.net:119 [EMAIL PROTECTED]
[EMAIL PROTECTED]:~$ cat /etc/hosts
(FREE Porn, without membership!!! No pop-ups!!! Everythings FREE!!) *future
Star*
--
http://mail.python.org/mailman/listinfo/python-list
I will be out of the office starting 12/17/2007 and will not return until
12/19/2007.
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 12, 5:17 am, Terry Reedy [EMAIL PROTECTED] wrote:
As far as I know, that is unusual behavior. In Outlook Express and, I
believe, other readers I have used, the original subject is the one
displayed. And if I have already downloaded the original title and marked
the post as read, any
tool for cleaning up some of
the spam posting clutter, just by changing the subject (double
entendre not intentional, it just happened). Instead of these
breathless, shouting subjects full of '#' signs and capital letters,
we just acronymify them to H T T Y D W into M M W by posting a reply
and defused by a reply titled J in
the Q. It seems this might be a simple tool for cleaning up some of
the spam posting clutter, just by changing the subject (double
entendre not intentional, it just happened). Instead of these
breathless, shouting subjects full of '#' signs and capital letters,
we just
by a reply titled J in the
Q. It seems this might be a simple tool for cleaning up some of the
spam posting clutter, just by changing the subject (double entendre
not intentional, it just happened). Instead of these breathless,
shouting subjects full of '#' signs and capital letters, we just
effectively the spam posting the other day,
Jesus in the Quran was masked and defused by a reply titled J in the
Q. It seems this might be a simple tool for cleaning up some of the
spam posting clutter, just by changing the subject (double entendre
not intentional, it just happened). Instead
How on earth do I convert strings to lists. I have a string with a list it in
it and I'm trying to convert it into a list. Please help me.
Ex.[16, 16, 2, 16, 2, 16, 8, 16]-string
to [16, 16, 2, 16, 2, 16, 8, 16] -list
I tried your suggestions and all that came up was the error
Traceback (most recent call last):
File C:\Python25\empire\Empire Strategy.pyw, line 1788, in module
NewMap1= eval (NewMap1, {}, {})
File string, line 1
Tropical Islands
^
SyntaxError: invalid syntax
And
Islands
^
SyntaxError: invalid syntax
And what is this about trusting your source? The string is taken
exactly from another part in the program so I know for sure it is
correct if that is what that means.
Katie,
First, please provide a useful subject heading when posting
Nevermind I always seem to find the answer on my own after i post the topic. i
used len(string) and it counted the letters in string... why do I always do this
Be a better friend, newshound, and
I tried googling and yahooing to find the answer and there was to many
conflicting results so i just decided to ask to simple question here.
How do i could the number of letters in a string no a single letter all of them.
ex. 'Count this String'
should turn into an integer saying 17
the subject, how about if you just don't reply at all?
| When viewing in Google Groups, the original post is masked by
| subsequent posts with a different subject. My ISP's news server only
| works for me when I am connected locally, not when I am travelling.
| So I've moved over to just using Google
h
how i can built code make encryption between serever and client by use des
best wishes
pleas helping me
_
Explore the seven wonders of the world
--
http://mail.python.org/mailman/listinfo/python-list
I will be out of the office starting 11/09/2007 and will not return until
11/12/2007.
--
http://mail.python.org/mailman/listinfo/python-list
01smil;Name=01smil
Description: application/smil
--
http://mail.python.org/mailman/listinfo/python-list
On 2007-08-19, Sébastien [EMAIL PROTECTED] wrote:
I am currently using Eclipse+PyDev when developping Python projects but
I lack a fast, simple editor for tiny bit of scripts. So here is my
question: what is, for you, the current best ( but still kind of light!
) Python editor/IDE ? A tiny
On 2007-08-20, Dave Cook [EMAIL PROTECTED] wrote:
On 2007-08-19, Sébastien [EMAIL PROTECTED] wrote:
I am currently using Eclipse+PyDev when developping Python projects but
I lack a fast, simple editor for tiny bit of scripts. So here is my
question: what is, for you, the current best ( but
Hi folks,
I am currently using Eclipse+PyDev when developping Python projects but
I lack a fast, simple editor for tiny bit of scripts. So here is my
question: what is, for you, the current best ( but still kind of light!
) Python editor/IDE ? A tiny precision, I am on Ubuntu so I am looking
Sébastien wrote:
I am currently using Eclipse+PyDev when developping Python
projects but I lack a fast, simple editor for tiny bit of scripts.
So here is my question: what is, for you, the current best ( but
still kind of light! ) Python editor/IDE ?
vim
BTW, this is an FAQ. Please look
Sébastien wrote:
Hi folks,
I am currently using Eclipse+PyDev when developping Python projects but
I lack a fast, simple editor for tiny bit of scripts. So here is my
question: what is, for you, the current best ( but still kind of light!
) Python editor/IDE ? A tiny precision, I am on
On Sun, 19 Aug 2007 11:47:03 +0200, Sébastien wrote:
Hi folks,
I am currently using Eclipse+PyDev when developping Python projects but
I lack a fast, simple editor for tiny bit of scripts. So here is my
question: what is, for you, the current best ( but still kind of light!
) Python
On Sun, 19 Aug 2007 13:08:35 +, Samuel wrote:
$ sudo apt-get install vim
I just realized, this should be
$ sudo apt-get install vim-python
or
$ sudo apt-get install vim-full
-Samuel
--
http://mail.python.org/mailman/listinfo/python-list
Bjoern Schliessmann wrote:
Sébastien wrote:
I am currently using Eclipse+PyDev when developping Python
projects but I lack a fast, simple editor for tiny bit of scripts.
So here is my question: what is, for you, the current best ( but
still kind of light! ) Python editor/IDE ?
vim
Try the WingIDE
Great Code Completition, Source Assistant, Debugger, PythonShell,
projects, The codeCompletition is really great.
Give it a try
On Aug 19, 3:37 pm, Buchoux Sébastien [EMAIL PROTECTED] wrote:
Bjoern Schliessmann wrote:
Sébastien wrote:
I am currently using Eclipse+PyDev
On Aug 19, 10:47 am, Sébastien [EMAIL PROTECTED] wrote:
Hi folks,
I am currently using Eclipse+PyDev when developping Python projects but
I lack a fast, simple editor for tiny bit of scripts. So here is my
question: what is, for you, the current best ( but still kind of light!
) Python
Buchoux Sébastien wrote:
Yeah, I know this is a FAQ, but, as you mention, there is a whole bunch
of editors, every one of them being updated constantly (+ the new ones
getting out). So I am quite sure that looking through the archives is
THE solution since it will only reflect what people
Buchoux Sébastien schrieb:
Bjoern Schliessmann wrote:
Sébastien wrote:
I am currently using Eclipse+PyDev when developping Python
projects but I lack a fast, simple editor for tiny bit of scripts.
So here is my question: what is, for you, the current best ( but
still kind of light! )
On Aug 19, 2:47 am, Sébastien [EMAIL PROTECTED] wrote:
Hi folks,
I am currently using Eclipse+PyDev when developping Python projects but
I lack a fast, simple editor for tiny bit of scripts. So here is my
question: what is, for you, the current best ( but still kind of light!
) Python
At 02:47 AM 8/19/2007, Sébastien wrote:
Hi folks,
I am currently using Eclipse+PyDev when developping Python projects but
I lack a fast, simple editor for tiny bit of scripts. So here is my
question: what is, for you, the current best ( but still kind of light!
) Python editor/IDE ? A tiny
Buchoux Sébastien wrote:
Yeah, I know this is a FAQ, but, as you mention, there is a whole
bunch of editors, every one of them being updated constantly (+
the new ones getting out).
Are you really sure that you know the meaning of the
word frequently?
So I am quite sure that looking through
Hi,
I'm simply trying to get mod_python working on my apache
server but when I create a .py file the output returned
from the browser is the code in the file and not just the
output from the script. I have read the manual and tried
mptest.py with an .htaccess file both in /var/www/html/
and
break with long subject?
Initial Comment:
from email.MIMEText import MIMEText
o=MIMEText('hello')
o['Subject']='1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 1 2 3 4
5 6 7 8 9 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 '
o.as_string()
'Content-Type: text/plain; charset=us
Virus Warning Message (from InterScanVirusWall mbox.infotel.bg)
Found virus WORM_MYDOOM.GEN in file MESSAGE.BAT (in message.zip)
The uncleanable file is deleted.
If you have questions, contact administrator.
-
The original message was
I'm trying to write a script to open a file on our (windows) network.
The file is located on a machine that is not part of the domain and
requires a separate user id and password to access. I tried using
urllib2 and the password_manager to authenticate but as some point
urllib2 sees I'm trying to
301 - 400 of 531 matches
Mail list logo