On Wed, 13 Feb 2013 11:00:15 -0800, stephenwlin wrote:
> Would it be feasible to modify the Python grammar to allow ':' to generate
> slice objects everywhere rather than just indexers and top-level tuples of
> indexers?
If you need to be able to easily construct indexing objects, create a
helper
On Tue, Feb 26, 2013 at 10:26 AM, Dennis Lee Bieber
wrote:
> On Mon, 25 Feb 2013 17:35:44 +1100, Chris Angelico
> declaimed the following in gmane.comp.python.general:
>> It may take a lot of work to get the permissions down to their
>> absolute minimum, but one easy "half-way house" would be to
On 02/25/2013 10:48 PM, eli m wrote:
On Friday, February 15, 2013 7:22:41 PM UTC-8, eli m wrote:
Any small program ideas? I would prefer to stick to command line ones. Thanks.
Thank you guys for the suggestions. Any more?
There are all kinds of things you could do. First, consider somethin
On 02/25/2013 10:58 PM, Steve Pruitt wrote:
I installed Python 3.3 for the Mac (10.6.8), but I did not get the interpreter
installed. I get IDLE and the Launcher, but no interpreter. At least I can't
find it.
I thought maybe it updated /System/Library/Frameworks/Python.framework. No
luck.
Can someone explain to me why I can't set the charset after the fact and still
have it work.
For example:
>>> text = MIMEText('❤¥'.encode('utf-8'), 'html')
>>> text.set_charset('utf-8')
>>> text.as_string()
Traceback (most recent call last):
File "", line 1, in
text.as_string()
File "C:\
I installed Python 3.3 for the Mac (10.6.8), but I did not get the interpreter
installed. I get IDLE and the Launcher, but no interpreter. At least I can't
find it.
I thought maybe it updated /System/Library/Frameworks/Python.framework. No
luck. I guess my question is how do I get the lates
On Friday, February 15, 2013 7:22:41 PM UTC-8, eli m wrote:
> Any small program ideas? I would prefer to stick to command line ones. Thanks.
Thank you guys for the suggestions. Any more?
--
http://mail.python.org/mailman/listinfo/python-list
Hi Piterr,
It's interesting how strong our habits are, isn't it? It's most likely you've
just got a bit of culture shock.
I've used C# quite a bit as well as Python. I like them both.
What I like about Python is how it manages to be clear and terse at the same
time.
if (flag==1) {
code
}
On 2013-02-26 02:08, Michael Torrie wrote:
On 02/25/2013 05:52 PM, Steven D'Aprano wrote:
Nobody is asking anyone to support "every Windows wart out there".
Windows-style line separators are not a wart, it is a convention used by
many, many tools, operating systems, data formats (e.g. email), et
On 02/25/2013 09:08 PM, Michael Torrie wrote:
This is a reminder to me how much we Linux users look at Windows as a
quaint anomaly with it's apparently backwards ways of doing things (like
backslash directory separators, like CP/M did),
Actually the reason MSDOS used backslash was because it
On 02/25/2013 05:52 PM, Steven D'Aprano wrote:
> Nobody is asking anyone to support "every Windows wart out there".
> Windows-style line separators are not a wart, it is a convention used by
> many, many tools, operating systems, data formats (e.g. email), etc. It
> is an old, old convention, go
Dear All,
I am pleased to announce that all 3 periodicals under The Python Papers
Anthology (http://ojs.pythonpapers.org) are listed in Directory of Research
Journal Indexing (http://www.drji.org/FullStatistics.aspx).
Thank you for your continued support and we wish to see more
contributions/s
In article <71787193-b4aa-438f-a8f1-058873346...@googlegroups.com>,
chris.an...@gmail.com wrote:
> On Monday, February 25, 2013 9:02:54 AM UTC-8, chris...@gmail.com wrote:
> > Hello, ive been struggling with this for a couple weeks now and was hoping
> > someone might be able to help. I have a
On Monday, February 25, 2013 9:02:54 AM UTC-8, chris...@gmail.com wrote:
> Hello, ive been struggling with this for a couple weeks now and was hoping
> someone might be able to help. I have an older Cognex camera that I need to
> communicate with via telnet. I can get a response from the camer
On Mon, 25 Feb 2013 12:29:58 -0500, D'Arcy J.M. Cain wrote:
> On Mon, 25 Feb 2013 10:18:44 -0700
> Michael Torrie wrote:
>> On 02/25/2013 06:14 AM, Dave Angel wrote:
>> > It's not Python that needs dos2unix, it's bash or equivalent. For
>> > some reason, bash shebang processing still isn't toler
Hi,
after an upgrade from Debian squeeze to Debian wheezy, I could
not connect to a Microsoft Exchange Server 2003 anymore, because
the OpenSSL library, Python is linked with, changed from version
0.9.8o to 1.0.1e, which has different defaults. The code is:
>>> import imaplib
>>> IMAP4_SSL("192.1
On Monday, February 25, 2013 1:15:54 PM UTC-8, MRAB wrote:
> On 2013-02-25 20:27, Chris Annin wrote:
>
> > Ive tried: read_until("Login: "), read_until("User: ") and read_all()
>
> > all 3 ways return the same thing: "Welcome to In-Sight(R) 4001 Session
>
> > 1\r\nUser:"
>
> >
>
> [snip]
>
>
On 2013-02-25 20:27, Chris Annin wrote:
Ive tried: read_until("Login: "), read_until("User: ") and read_all()
all 3 ways return the same thing: "Welcome to In-Sight(R) 4001 Session
1\r\nUser:"
[snip]
Does the returned string end exactly with "User:" (no space at the
end)? I ask because you're a
Ive tried: read_until("Login: "), read_until("User: ") and read_all() all
3 ways return the same thing: "Welcome to In-Sight(R) 4001 Session
1\r\nUser:"
then I put in:
tn.write("admin\r\n")
or
tn.write(USER + "\r\n")
or
tn.write(USER + "\r")
or
tn.write(USER + "\n")
Ive tried every combination
Ok. So it looks like MRAB is on the right track and you should be looking for
'User:' in line 6 instead of 'Login:'. Let's see what that gives you...
Sent from a Galaxy far, far away
Original message
From: chris.an...@gmail.com
Date:
To: comp.lang.pyt...@googlegroups.c
On Monday, February 25, 2013 9:29:54 AM UTC-8, MRAB wrote:
> On 2013-02-25 17:02, chris.an...@gmail.com wrote:
>
> > Hello, ive been struggling with this for a couple weeks now and was hoping
> > someone might be able to help. I have an older Cognex camera that I need
> > to communicate with v
yes, ive connected successfully using hyperterminal after I login it asks for
user and I type admin press enter then it ask for password and type password
press enter and it all works fine. using python ive tried ending both with "\n"
and "\r\n" im thoroughly confused
On Monday, February
At the risk of stating the blindingly obvious, have you run a 'real' telnet
session to see what a successful conversation looks like? Might give you some
useful pointers for your debug session.
Steve
Sent from a Galaxy far, far away
Original message
From: chris.an...@gm
On 02/25/2013 10:29 AM, D'Arcy J.M. Cain wrote:
> I don't run Windows myself so I can't test it but doesn't Python on
> Windows work fine with Unix style EOL? So why not strip out the CR and
> run the same file everywhere?
As has been said on this thread, python is perfectly happy on windows
with
On 02/25/2013 10:29 AM, D'Arcy J.M. Cain wrote:
> So much the wrong solution. First of all, I don't think that Linus is
> on the bash development team so he can't help there. Also, bash is not
> the only shell in the world.
Ooops you didn't read what I said. The shebang parsing is not done by
On Mon, Feb 25, 2013 at 12:29 PM, D'Arcy J.M. Cain wrote:
> ...
> I don't run Windows myself so I can't test it but doesn't Python on
> Windows work fine with Unix style EOL? So why not strip out the CR and
> run the same file everywhere?
That's the ideal solution, but so many Windows tools defa
On 02/25/2013 04:54 PM, Ian Kelly wrote:
On Mon, Feb 25, 2013 at 12:41 AM, Andrew Robinson
wrote:
Intuitively, it should result in an infinite loop starting at 0. But
ranges require a stop value for a very good reason -- it should not be
this easy to accidentally create an infinite for loop.
On Mon, 25 Feb 2013 10:18:44 -0700
Michael Torrie wrote:
> On 02/25/2013 06:14 AM, Dave Angel wrote:
> > It's not Python that needs dos2unix, it's bash or equivalent. For
> > some reason, bash shebang processing still isn't tolerant of a
> > trailing cr on the line. Python doesn't care.
>
> Actu
On 2013-02-25 17:02, chris.an...@gmail.com wrote:
Hello, ive been struggling with this for a couple weeks now and was hoping
someone might be able to help. I have an older Cognex camera that I need to
communicate with via telnet. I can get a response from the camera when I
initiate a telnet
On 02/25/2013 06:14 AM, Dave Angel wrote:
> It's not Python that needs dos2unix, it's bash or equivalent. For some
> reason, bash shebang processing still isn't tolerant of a trailing cr on
> the line. Python doesn't care.
Actually, the shell isn't involved in parsing the shebang line at all.
T
Hello, ive been struggling with this for a couple weeks now and was hoping
someone might be able to help. I have an older Cognex camera that I need to
communicate with via telnet. I can get a response from the camera when I
initiate a telnet session but I dont seem to get any response when I
On Mon, Feb 25, 2013 at 12:41 AM, Andrew Robinson
wrote:
>> Intuitively, it should result in an infinite loop starting at 0. But
>> ranges require a stop value for a very good reason -- it should not be
>> this easy to accidentally create an infinite for loop.
>
> ...
> and, besides, the same is
On 02/25/2013 10:28 AM, Ian Kelly wrote:
On Sun, Feb 24, 2013 at 6:10 PM, Andrew Robinson
wrote:
I've read through the whole of the subject, and the answer is no,
although I
think allowing it in (::) is a *very* good idea, including as a
replacement
for range or xrange.
s=1:2:3
for i in s:
f
On Tue, Feb 26, 2013 at 12:28 AM, Chris Gonnerman wrote:
> On 02/25/2013 06:35 AM, Sells, Fred wrote:
>
>> When moving from windows to unix you need to run "dos2unix" on any
>> programs that use shebang (at least with python 2.6) that is installed on
>> some platforms but must be installed on
On 02/25/2013 06:35 AM, Sells, Fred wrote:
When moving from windows to unix you need to run "dos2unix" on any programs
that use shebang (at least with python 2.6) that is installed on some platforms but
must be installed on others like CentOs but it is in their repository.
Or edit it in Vi
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20130225T133000Z
DTEND:20130225T143000Z
DTSTAMP:20130225T132128Z
ORGANIZER;CN=drbolton.nel...@gmail.com:mailto:drbolton.nel...@gmail.com
UID:u8fs9ssgnt0gkee93jkklk5..
-Original Message-
From: Python-list
[mailto:python-list-bounces+frsells=adventistcare@python.org] On Behalf Of
James Harris
Sent: Friday, February 22, 2013 5:53 PM
To: python-list@python.org
Subject: Re: Shebang line on Windows?
On Feb 22, 6:40 pm, Zachary Ware
A word of warni
On 24.02.13 17:52, Chris Angelico wrote:
By the way, when you're asking a completely new question, it usually
helps to do so as a brand new thread (not a reply) and with a new
subject line. Otherwise, you risk people losing the new question among
the discussion of the old.
You risk people losin
When moving from windows to unix you need to run "dos2unix" on any programs
that use shebang (at least with python 2.6) that is installed on some
platforms but must be installed on others like CentOs but it is in their
repository.
-Original Message-
From: Python-list
[mailto:python
On 22/02/2013 19:21, Ian Kelly wrote:
.
Indeed, it seems to me that this is basically Richard Dawkins' weasel
program, with the addition of a transformation step in the fitness
function that amounts to running the string through a Brainfuck
interpreter. There is a rather large gap betwe
On 2/24/2013 8:10 PM, Andrew Robinson wrote:
This is not a new idea: eg: 2002. (which is still status OPEN).
http://osdir.com/ml/python.patches/2002-06/msg00319.html
http://bugs.python.org/issue575515
closed as rejected 2 weeks after being opened.
--
Terry Jan Reedy
--
http://mail.python.org
On 2/25/2013 1:26 AM, llanitedave wrote:
On the other hand, it *is* a bit frustrating that Linux recognizes an
html-style relative path, while Windows insists on the entire
absolute path. Maybe we can call it a Windows bug, but a workaround
would be nice to have.
You can file an enhancement i
On Sun, Feb 24, 2013 at 6:10 PM, Andrew Robinson
wrote:
> I've read through the whole of the subject, and the answer is no, although I
> think allowing it in (::) is a *very* good idea, including as a replacement
> for range or xrange.
>
> s=1:2:3
> for i in s:
> for i in (1:2:3) :
Eww, no. I ca
Errata, I made a tyepopeo in the middle of the night:
eg:"""Python evaluates right to left; this is semantically an iterator
giving a[1],a[2],a[5],a[11]"""
Sigh: Python Iterates from left to right;
--Andrew.
--
http://mail.python.org/mailman/listinfo/python-list
On 02/14/2013 05:23 AM, Terry Reedy wrote:
On 2/13/2013 2:00 PM, stephenw...@gmail.com wrote:
Hello,
Would it be feasible to modify the Python grammar to allow ':' to
generate slice objects everywhere rather than just indexers and
top-level tuples of indexers?
Right now in Py2.7, Py3.3:
On 25/02/2013 08:35, Chris Angelico wrote:
On Mon, Feb 25, 2013 at 5:14 PM, Frank Millman wrote:
On 24/02/2013 16:58, Chris Angelico wrote:
MySQL has a philosophical structure of "user logs in to app,
but app logs in to database as superuser regardless of user login".
Out of curiosity, is th
46 matches
Mail list logo