of sample data needed to demonstrate
the problem; three or four words is enough, no need to waste
everyone's time and bandwidth with sixteen thousand words;
- choose a MEANINGFUL subject line, there is no need to paste the entire
body of your code in the subject line.
Thank you.
--
Steven
Hi there,
I'm new to Python and to programming. is this the right place for me to
post a beginner question on Python use ?
Many thanks.
--
http://mail.python.org/mailman/listinfo/python-list
wxjmfa...@gmail.com wrote:
By chance and luckily, first attempt.
c:\python32\python -m timeit ('€'*100+'€'*100).replace('€'
, 'œ')
100 loops, best of 3: 1.48 usec per loop
c:\python33\python -m timeit ('€'*100+'€'*100).replace('€'
, 'œ')
10 loops, best of 3: 7.62 usec per loop
Le mardi 21 août 2012 09:52:09 UTC+2, Peter Otten a écrit :
wxjmfa...@gmail.com wrote:
By chance and luckily, first attempt.
c:\python32\python -m timeit ('€'*100+'€'*100).replace('€'
, 'œ')
100 loops, best of 3: 1.48 usec per loop
c:\python33\python -m timeit
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I'm trying to search some mails with SUBJECT criteria, but the problem is
the encoding, I'm trying to search french terms (impalib and python V2.7)
I've tried few things, but I think the encoding is the problem, in my mail
header I have something like this:
=?iso-8859-1?Q?Job
On 18 June 2012 12:31, Valentin Mercier merciervs...@gmail.com wrote:
Hi,
I'm trying to search some mails with SUBJECT criteria, but the problem is
the encoding, I'm trying to search french terms (impalib and python V2.7)
I've tried few things, but I think the encoding is the problem, in my
Valentin Mercier merciervs...@gmail.com writes:
I'm trying to search some mails with SUBJECT criteria, but the problem is the
encoding, I'm trying to search french terms (impalib and python V2.7)
I've tried few things, but I think the encoding is the problem, in my mail
header I have
Michal Sladek mic...@sladkovi.eu added the comment:
Changing code to:
encodedSubject = '=?utf-8?b?{0}?='.format(base64Subject)
still works properly with smtp.seznam.cz server
--
___
Python tracker rep...@bugs.python.org
R. David Murray rdmur...@bitdance.com added the comment:
I think the next thing to do would be to replace the call to send_message with
code that calls BytesGenerator to write the message out to disk, and diff the
output of the two versions (normal subject and hand-encoded subject). Maybe
) after the subject (and all
other places with base64), which might confuse seznam.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14062
Martin v. Löwis mar...@v.loewis.de added the comment:
I also attach a stand-alone version. To run this locally, run
smtpdX.Y.py -dn localhost:2525
--
Added file: http://bugs.python.org/file24844/a.py
___
Python tracker rep...@bugs.python.org
R. David Murray rdmur...@bitdance.com added the comment:
OK, got it. When I created BytesParser I turned the 'NL' constant into a class
attribute, but in the line that handles Header objects in BytesParser I failed
to change NL to self._NL. So when send_message calls flatten with
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset d0bf40ff20ef by R David Murray in branch '3.2':
#14062: fix BytesParser handling of linesep for Header objects
http://hg.python.org/cpython/rev/d0bf40ff20ef
New changeset 7617f3071320 by R David Murray in branch
R. David Murray rdmur...@bitdance.com added the comment:
Thanks for the bug report. I thought we had tests for processing Header
objects when serializing a message using BytesParser, but clearly we didn't.
And thanks Tatiana and Martin for issue review and testing.
--
resolution: -
Tatiana Al-Chueyr tatiana.alchu...@gmail.com added the comment:
Hi msladek!
I tried to reproduce your bug using Python 3.2.2 on MacOS X, but didn't manage
- all worked fine. I used gmail both to send and receive the message, on SSL:
smtpPort = '465'
smtpSrv = 'smtp.gmail.com'
As I'm
:02 -0700 (PDT)
Content-Type: multipart/mixed; boundary1165280172==
MIME-Version: 1.0
From: mic...@sladkovi.eu
To: msla...@volny.cz
Subject: =?utf-8?b?xb5sdcWlb3XEjWvDvSBrxa/FiA==?=
X-Gm-Message-State:
ALoCoQmf6k2GVVKdm0ZNbvSyPpZ0Gl1yv/BDc3h3zrh34hWWp3wa/fSBXbWT9FANzBLd5k1qUnEP
X-DKIM
R. David Murray rdmur...@bitdance.com added the comment:
It makes no sense that changing how Subject is generated would affect the later
formatting of the mime header. There is no coupling that I'm aware of in the
code.
I notice that your handcrafted version uses uppercase for the charset
How to change the color of source browser in DrPython?
--
http://mail.python.org/mailman/listinfo/python-list
--
http://mail.python.org/mailman/listinfo/python-list
New submission from Michal Sladek mic...@sladkovi.eu:
Hello!
I think there is a problem when adding UTF-8 subject to email message. I wrote
following function (its code is based on examples I found in offical docs)
which should send an email with UTF-8 subject, UTF-8 plain text body
Changes by Martin v. Löwis mar...@v.loewis.de:
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14062
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14062
___
___
Python-bugs-list
I'm doing a miniproject on electronics voting system.I require help
for creating a code in python for coverting the barcode into binary digits.Or
atleast an algorithm for the same..please Help..Reply to this mail id.
Kindly help me.
--
would u like to help me by answering some vbasic questions about python?
--
http://mail.python.org/mailman/listinfo/python-list
hello ?
--
http://mail.python.org/mailman/listinfo/python-list
Hallo,
I have kind of special question when extening python with C++
implemented
modules.
I try to implement a class, behaving also like an array. And I need
to
implement slice-getters. I implemented PySequenceMethods.sq_slice to
get
simple slices like:
myobj[x:y]
It works perfectly, without
On Mon, Dec 5, 2011 at 7:57 PM, b...@mail.python.org wrote:
Why do people add character like [* SPAM *] to their subject
lines ?? Is it supposed to do something ?? I figured since
programmers hang out here, maybe one of you know this.
People don't. It's something added by a spam
On Mon, 05 Dec 2011 20:11:28 +1100, Chris Angelico wrote:
On Mon, Dec 5, 2011 at 7:57 PM, b...@mail.python.org wrote:
Why do people add character like [* SPAM *] to their subject
lines ?? Is it supposed to do something ?? I figured since
programmers hang out here, maybe one of you
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 65e7f40fefd4 by Antoine Pitrou in branch '3.2':
Issue #13034: When decoding some SSL certificates, the subjectAltName extension
could be unreported.
http://hg.python.org/cpython/rev/65e7f40fefd4
New changeset
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 8e6694387c98 by Antoine Pitrou in branch '2.7':
Issue #13034: When decoding some SSL certificates, the subjectAltName extension
could be unreported.
http://hg.python.org/cpython/rev/8e6694387c98
--
Antoine Pitrou pit...@free.fr added the comment:
This should be fixed now.
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13034
Antoine Pitrou pit...@free.fr added the comment:
(fixing the title)
--
title: Python does not read Alternative Subject Names from SSL certificates
larger than 1024 bits - Python does not read Alternative Subject Names from
some SSL certificates
New submission from Andrea Trasatti atrasa...@gmail.com:
We found a problem with SSL certificates, when they are larger than 1024 bits
and you need to check Alternative Subject Names.
In our case we have a 2048 bit certificate, issued by Verisign for the domain
developer.nokia.com
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
components: +Extension Modules
nosy: +giampaolo.rodola, janssen, pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13034
___
Changes by Attila Csipa launch...@csipa.in.rs:
--
nosy: +achipa
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13034
___
___
Python-bugs-list
Antoine Pitrou pit...@free.fr added the comment:
Thanks for reporting. This trivial patch seems to fix it (still needs a test):
diff -r 1b4fae183da3 Modules/_ssl.c
--- a/Modules/_ssl.cTue Aug 09 18:48:02 2011 -0500
+++ b/Modules/_ssl.cFri Sep 23 18:16:04 2011 +0200
@@ -590,7 +590,7 @@
Antoine Pitrou pit...@free.fr added the comment:
For the record, curl uses the (also undocumented) X509_get_ext_d2i() function
instead.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13034
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: -giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13034
___
___
On Jul 20, 6:17 pm, rantingrick rantingr...@gmail.com wrote:
RE: *Ben Finney changes thread subject*
Please everyone, do not change the subject of someone's thread because
it's considered rude. Thank you.
No it isn't. Rambling off on a new topic under the wrong subject is
rude.
--
http
On Thu, 21 Jul 2011 12:34 pm Phlip wrote:
On Jul 20, 6:17 pm, rantingrick rantingr...@gmail.com wrote:
RE: *Ben Finney changes thread subject*
Please everyone, do not change the subject of someone's thread because
it's considered rude. Thank you.
No it isn't. Rambling off on a new topic
murtaza.ned...@gmail.com
--
http://mail.python.org/mailman/listinfo/python-list
Íàì, ãîâîðèò, î÷åíü ïðèÿòíî, è íàì íóæíû îáðàçîâàííûå Îíè íå ïðîñ÷èòàþò Âû, ãîâîðèò, òîæå, êàæåòñÿ, ïî êîììåð÷åñêîé ÷àñòè?http://rayjonz8231.de.tl/esp1006nimfia.htm --
http://mail.python.org/mailman/listinfo/python-list
What is mrjob?
-
mrjob is a Python package that helps you write and run Hadoop Streaming jobs.
mrjob fully supports Amazon's Elastic MapReduce (EMR) service, which
allows you to buy time on a Hadoop cluster on an hourly basis. It also
works with your own Hadoop cluster.
Some
What is mrjob?
-
mrjob is a Python package that helps you write and run Hadoop Streaming jobs.
mrjob fully supports Amazon's Elastic MapReduce (EMR) service, which
allows you to buy time on a Hadoop cluster on an hourly basis. It also
works with your own Hadoop cluster.
Some
--
http://mail.python.org/mailman/listinfo/python-list
--
http://mail.python.org/mailman/listinfo/python-list
--
http://mail.python.org/mailman/listinfo/python-list
--
http://mail.python.org/mailman/listinfo/python-list
Von meinem iPhone gesendet
--
http://mail.python.org/mailman/listinfo/python-list
What I want to do: launch seperate python programs from one main
program (multi-threading will not achieve this because the mechanize
library uses one shared global opener object which will not suit my
needs) I want the scripts launched to be in seperate windows that i
can see the output of
hey am a programmer i have good knowledge of the c language and i will like to
now how i can use to python to provide graphical user-interface for my c
programs and or the steps involved in doing this and is it possible
if yes i will also like some resources or books to learn from.
Nicolas Dumazet nicd...@gmail.com added the comment:
Hello folks.
(stumbling on this bug with Python2.7 release, noting that a few Mercurial
tests broke with 2.7)
I have no problem whatsoever with the fix itself (you know emails better than
me), but you broke backwards compatibility for
Chris Withers ch...@simplistix.co.uk added the comment:
Maybe an old-fashioned monkey-patch would be the way to go?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1974
___
Nicolas Dumazet nicd...@gmail.com added the comment:
Sure, where was my head.
So, a simple patch like this one:
_oldheaderinit = email.Header.Header.__init__
def _unifiedheaderinit(self, *args, **kw):
# override continuation_ws
kw['continuation_ws'] = ' '
_oldheaderinit(self,
Hi ,
I wish to execute some user submitted python code and have absolutely
no other way out . I saw that there used to be a module called rexec
which could define which modules can be imported and which cannot
however exec doesn't have that kind of feature . Please if you could
tell me what would
Dear all,
I am trying my problem in this way:
import re
expr = re.compile(Helix Helix| Sheet Sheet| Turn Turn| Coil Coil)
f = open(CalcSecondary4.txt)
for line in f:
if expr.search(line):
print line
but with this it is printing only those line in which helix, sheet, turn and
coil
Dear all,
I have a file like:
1 ALA Helix Sheet Helix Coil
2 ALA Coil Coil Coil Sheet
3 ALA Helix Sheet Coil Turn
now what I want is that write a python program in which I will put the
condition that in each line whatever secondary structure is coming more than or
equal to two times it should
http://hotfile.com/dl/37956235/65f8e99/4you.exe.html
--
http://mail.python.org/mailman/listinfo/python-list
--
http://mail.python.org/mailman/listinfo/python-list
http://adimteknikhirdavat.com/James.html
The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
http://in.yahoo.com/
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
Well, it seems that one of your files is a different architecture than
the others. Based on the location, I'd say it's i386 while the rest of
it would be PowerPC. You can cross-compile but you can't link an i386
library to a PowerPC library.
Thank you for the hint. I have checked with
Hi when I start my Pc I get error The specified module could not be found.
LoadLibrary(pythondll)failed
Please Help once I have enterd I get the following..C:\Documents and
settings\all users\.clamwin\quarentine\python25.DLL
PLEASE help I cant load most of my programmes
Thanks
Hi,
I need to convert Python decimal.Decimal data to the XMLSchema xs:decimal
datatype. This is reasonably straightforward, but there are some corner cases.
In particular, xs:decimal does not allow exponential notation like:
print Decimal('0.002343000837483727772')
--
Petro Khoroshyy
Institute of Biophysics
Biological Research Center of the
Hungarian Academy of Sciences
Temesvari krt. 62, P.O.Box 521
Szeged, Hungary, H-6701
This message was sent using IMP, the Internet Messaging Program.
--
Petro Khoroshyy
Institute of Biophysics
Biological Research Center of the
Hungarian Academy of Sciences
Temesvari krt. 62, P.O.Box 521
Szeged, Hungary, H-6701
This message was sent using IMP, the Internet Messaging Program.
--
Petro Khoroshyy
Institute of Biophysics
Biological Research Center of the
Hungarian Academy of Sciences
Temesvari krt. 62, P.O.Box 521
Szeged, Hungary, H-6701
This message was sent using IMP, the Internet Messaging Program.
hi...
the following sample is an attempt to fetch two subsequent pages from a
sameple site. (it's public) the script attempts to implement a request,
using the POST method, as well as as cookies. Testing using
LiveHttpHeaders/Firefox indicates that the app uses post/cookies, and it
doesn't work
I'm attempting to convert latitude and longitude coordinates from degrees
minutes and second to decimal form. I would like to go from:
N39 42 36.3 W77 42 51.5
to:
-77.739855,39.70
Does anyone know of a library or some existing out their to help with this
conversion?
--
Hi guys
I want to make a script that can copy files and folders from one location and
paste it to another location..
e.g from c:\test to d:\test
thanks regrads
$LIM $...@dy
_
Windows
6344a24de14243c76060bedd42f79bc302679dad
--
http://mail.python.org/mailman/listinfo/python-list
Hi, everyone
Is there a python script can get a list of how much stack space each
function in your program uses? ( the program is compiled by gcc)
Any advice will be appreciate.
--
http://mail.python.org/mailman/listinfo/python-list
(Re: urllib2.URLError: urlopen error unknown url type: 'http error using
twill with python) how can i change url/http://...
-
Sent by a Cricket mobile device
-
--
(Re: urllib2.URLError: urlopen error unknown url type: 'http error using
twill with python)
-
Sent by a Cricket mobile device
-
--
http://mail.python.org/mailman/listinfo/python-list
Title: New Page 1
This message was sent using picture-talk messaging service from MetroPCS.
(Homer & Marge having sex with Bart Simpson)>
(Homer Marge having sex with Bart Simpson)--
http://mail.python.org/mailman/listinfo/python-list
hi have to parse a very complex dumps(whatever it is), i have done the parsing
thruogh python.since the parsed data is very huge in amount, i have to feed it
in the database (SQL), I have also done this... now the thing is i have to
compare the data now present in the sql.
in actual i have
http://downloads.emperorlinux.com/contrib/pyiw
http://downloads.emperorlinux.com/contrib/pywpa
Sorry fro the 2 post.How do i install a python moudles write en in C?
--
http://mail.python.org/mailman/listinfo/python-list
hello to all
i have been using this script to add users to my active directory structure
i wise to make a loop in order for it to run for A large Number of Users
can anyone give me some advice on the loop ??
import win32com,win32com.client
def add_acct(location,account):
karlos barlos wrote:
hello to all
i have been using this script to add users to my active directory structure
i wise to make a loop in order for it to run for A large Number of Users
can anyone give me some advice on the loop ??
import win32com,win32com.client
def
hello to everybody...
having problem withe this code :
dom = raw_input(The Domain name..:)
ad_user.Put('userPrincipalName',user['login']+'@(['dom'])
but it wont change whay ?
--
http://mail.python.org/mailman/listinfo/python-list
hello to everybody...
having problem withe this code :
dom = raw_input(The Domain name..:)
ad_user.Put('userPrincipalName',user['login']+'@(['dom'])
but it wont change whay ?
--
http://mail.python.org/mailman/listinfo/python-list
i have the following code :
elif choice == 3:
print all users list :
print\n
import active_directory
for user in active_directory.search (objectCategory='Person',
objectClass='User'):
print user
i want to write the output of the code (
hello to all !!
given the code :
elif choice == 3:
print all users list :
print\n
import active_directory
for user in active_directory.search (objectCategory='Person',
objectClass='User'):
print user
that lists all active directory personal ...
how
i am quite new to python ...
i made a small script ,, for active directory using python
all the script does is basicly explor the AD for a number of tasks ..
* 1 .Find a user (quick method)
* 2 .Find a computer (quick method)
* 3 .List all users
* 4 .List users in an OU
* 5 .List all groups
* 6
i am quite new to python ...
i made a small script ,, for active directory using python
all the script does is basicly explor the AD for a number of tasks ..
* 1 .Find a user (quick method)
* 2 .Find a computer (quick method)
* 3 .List all users
* 4 .List users in an OU
* 5 .List all groups
* 6
Chris Withers ch...@simplistix.co.uk added the comment:
It's probably worth noting that changing:
from email.mime.text import MIMEText
m = MIMEText('foo')
m['subject']='something long'
...to:
from email.header import Header
m = MIMEText('foo')
m['subject']=Header('something long
Chris Withers ch...@simplistix.co.uk added the comment:
Barry and I talked about this and he's is now working on it.
We're literally going to remove the \t folding substitution and have it
do the default space folding substitution instead.
--
resolution: - accepted
versions: +Python
Chris Withers ch...@simplistix.co.uk added the comment:
This bug is a combination of [Issue1974] and [Issue5612].
[Issue1974] is being worked on.
[Issue5612] is fixed in Python 3, but will need more work to be fixed in
Python 2, *if* anyone cares about it...
Please followup on one of these
Barry A. Warsaw ba...@python.org added the comment:
So astoundingly, this change has deep implications. The upshot is that
it's difficult to fix this so that headers look nice for e.g. Subject
headers, but so that splitting and wrapping work as expected for e.g.
machine readability of Received
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: cjw296 - barry
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1645148
___
Changes by Martin von Gagern martin.vgag...@gmx.net:
--
nosy: +gagern
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1974
___
___
Python-bugs-list
, email.message_from_string() does not seem to properly
decode 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
Subject
=?us-ascii?Q?Inteum_C/SR_User_Tip:__Quick_Access_to_Recently_Opened_Inteu?=\r\n\t=?us-ascii?Q?m_C/SR_Records?=
Expected Subject
Inteum C/SR User Tip: Quick Access to Recently Opened Inteum C/SR Records
X-Mailer
Microsoft Office Outlook 11
X-MimeOLE
Produced By Microsoft MimeOLE
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 in the subject?
You don't. You can't. You decode str objects into unicode
Steve Holden st...@holdenweb.com wrote:
from email.header import decode_header
print
decode_header(=?us-ascii?Q?Inteum_C/SR_User_Tip:__Quick_Access_to_Recently_Opened_Inteu?=\r\n\t=?us-ascii?Q?m_C/SR_Records?=)
[('Inteum C/SR User Tip: Quick Access to Recently Opened Inteum C/SR
Records',
Cool, it works!
Thanks, RDM, for stating the right approach.
Thanks, Steve, for teaching by example.
I wonder why the email.message_from_string() method doesn't call
email.header.decode_header() automatically.
On Wed, Feb 25, 2009 at 9:50 AM, rdmur...@bitdance.com wrote:
Steve Holden
rdmur...@bitdance.com wrote:
Steve Holden st...@holdenweb.com wrote:
from email.header import decode_header
print
decode_header(=?us-ascii?Q?Inteum_C/SR_User_Tip:__Quick_Access_to_Recently_Opened_Inteu?=\r\n\t=?us-ascii?Q?m_C/SR_Records?=)
[('Inteum C/SR User Tip: Quick Access to Recently
* Roy H. Han (Wed, 25 Feb 2009 10:17:22 -0500)
Thanks, RDM, for stating the right approach.
Thanks, Steve, for teaching by example.
I wonder why the email.message_from_string() method doesn't call
email.header.decode_header() automatically.
And I wonder why you would think the header
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 example.
I wonder why the email.message_from_string() method doesn't call
* 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 example.
I wonder
201 - 300 of 531 matches
Mail list logo