You make hard to follow your messages both by sending lot of messages
and not using an adequate quoting.
Please pick a posting style [1] (possibly interleaved) and stick to it.
On 2014-08-31 23:35:09 +, andydtay...@gmail.com said:
Andrea - yes I am using the virtualenv interpreter as the Pyc
Steven D'Aprano wrote:
or words in Foreign like "cwm"
Seeing that "w" is a vowel in Welsh, there should probably
be a special version of the program for Welsh speakers.
(Welshlatin? Pigwelsh?)
--
Greg
--
https://mail.python.org/mailman/listinfo/python-list
On 01Sep2014 14:33, Earl Lapus wrote:
On Mon, Sep 1, 2014 at 1:39 PM, Chris Angelico wrote:
Glad it's working! But please, don't just take my word for it and make
a black-box change to your code. When you invoke subprocesses, be sure
you understand what's going on, and when shell=True is appro
On Mon, Sep 1, 2014 at 6:46 PM, Cameron Simpson wrote:
> Not really. If the arguments are coming in from the command line, someone (a
> user, even if that user is the programmer) typed them. Even if not
> malicious, they can still be mistaken. Or just unfortunate.
I'm guessing that what he means
Posting style point taken. Google groups doesn't exactly help you with that.
* You guys have probably been tinkering with this stuff for years. I haven't.
* Your man on the street would say I described the error fairly well.
* It's not like I wasn't trying my best to fix it myself
* So far as e
On 2014-09-01 12:32:38 +, andydtay...@gmail.com said:
Google groups doesn't exactly help you with that.
Drop it, get a usenet client or subscribe the mailing list (the
newsgroup and the ml are bridged IIRC).
* Your man on the street would say I described the error fairly well.
That m
On Mon, Sep 1, 2014 at 10:32 PM, wrote:
> Posting style point taken. Google groups doesn't exactly help you with that.
>
> * You guys have probably been tinkering with this stuff for years. I haven't.
> * Your man on the street would say I described the error fairly well.
> * It's not like I wasn
On 01/09/2014 13:32, andydtay...@gmail.com wrote:
Posting style point taken. Google groups doesn't exactly help you with that.
Thunderbird is as good a solution as any although there are plenty of
other choices.
* Statements like "Please equip yourself with a tool that provides us with som
I am happy to announce an upgrade to the tabhistory module, which brings
advanced tab completion and command history to Python 2.4 through 3.3 and
beyond.
Features
Tab completion
--
* At the beginning of lines, pressing the TAB key indents the line.
* Inside string
Python's input() or raw_input() function is good for getting a single line
of text from the user. But what if you want a more substantial chunk of
text from the user? Here's how to call out to an external editor such as
ed, nano, vim, emacs, and even GUI text editors:
import tempfile
def edit(edi
On Tue, Sep 2, 2014 at 2:11 AM, Steven D'Aprano
wrote:
> Anyone able to test it on Windows for me please?
>
Seems to partially work. I added an 'import os' at the top, and a
simple test call to the function, and it did give me my editor (nano)
and retrieved the text. It did give a warning, though
In article <54049ab7$0$29972$c3e8da3$54964...@news.astraweb.com>,
Steven D'Aprano wrote:
> import tempfile
>
> def edit(editor, content=''):
> f = tempfile.NamedTemporaryFile(mode='w+')
> [...]
> command = editor + " " + f.name
> status = os.system(command)
Hmmm. Didn't we jus
Roy Smith wrote:
> Hmmm. Didn't we just have a thread about passing external data to
> shells?
>
> $ mkdir '/tmp/;rm -rf;'
> $ TMPDIR='/tmp/;rm -rf;' python
> Python 2.7.3 (default, Sep 26 2013, 20:03:06)
> [GCC 4.6.3] on linux2
> Type "help", "copyright", "credits" or "license" for more informa
Chris Angelico wrote:
> On Tue, Sep 2, 2014 at 2:11 AM, Steven D'Aprano
> wrote:
>> Anyone able to test it on Windows for me please?
>>
>
> Seems to partially work. I added an 'import os' at the top, and a
> simple test call to the function, and it did give me my editor (nano)
> and retrieved th
Hey
I am Getachew , I am using cantera, python xy 2.7.6. My question is how can i
convert XML file to Ct. py file format.
Thanks
--
https://mail.python.org/mailman/listinfo/python-list
Earl Lapus writes:
> Hi,
>
> I made simple test program using the subprocess module (see attached:
> exec_cmd.py). I ran it passing variations of 'ls' command options.
>
> I encounter exceptions every time I use '-l' options. Example runs
> where exception occurs:
> # ./exec_cmd.py ls -al
> # ./e
On 2014-09-02 04:23, Steven D'Aprano wrote:
> Read $VISUAL, if it exists, otherwise $EDITOR, if it exists,
> otherwise fall back on something hard coded. Or read it from an ini
> file. Or create an entry in the register. Whatever. That's up to
> the application which uses this function, not the fun
On Mon, Sep 1, 2014 at 3:40 PM, wrote:
> Hey
> I am Getachew , I am using cantera, python xy 2.7.6. My question is how can i
> convert XML file to Ct. py file format.
>
>
> Thanks
> --
> https://mail.python.org/mailman/listinfo/python-list
This is a general purpose python list. Googling a bit
On 02Sep2014 04:02, Steven D'Aprano
wrote:
Roy Smith wrote:
Hmmm. Didn't we just have a thread about passing external data to
shells?
$ mkdir '/tmp/;rm -rf;'
$ TMPDIR='/tmp/;rm -rf;' python
Python 2.7.3 (default, Sep 26 2013, 20:03:06)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits
On Tue, Sep 2, 2014 at 4:02 AM, Steven D'Aprano
wrote:
> I'm not really seeing how this is a security vulnerability. If somebody can
> break into my system and set a hostile GIT_EDITOR, or TMPDIR, environment
> variables, I've already lost.
Agreed. If I'm calling on your program and setting EDITO
On Tue, Sep 2, 2014 at 4:23 AM, Steven D'Aprano
wrote:
> Chris Angelico wrote:
>> C:\>Python34\python 123123123.py
>> cygwin warning:
>> MS-DOS style path detected: C:\DOCUME~1\M\LOCALS~1\Temp\tmp94rcwd57
>> Preferred POSIX equivalent is: /DOCUME~1/M/LOCALS~1/Temp/tmp94rcwd57
>
> That's arguab
Mark - it's more that I just didn't understand what you mean.
Here's you: Probably an out and out programmer; uses a number of languages; a
decade of experience, educated in best practice via your experience.
Here's me: Idiot. A decade of experience in VBA and Excel in mindless finance
jobs, h
Hi,
I am writing this program from
https://docs.python.org/2/library/email-examples.html
but getting the error as
singhom@debian:~/pythons$ python send_email.py
Traceback (most recent call last):
File "send_email.py", line 18, in
msg['Subject'] = 'The contents of $s' % message
NameErr
On 02Sep2014 05:05, Om Prakash wrote:
I am writing this program from
https://docs.python.org/2/library/email-examples.html
but getting the error as
singhom@debian:~/pythons$ python send_email.py
Traceback (most recent call last):
File "send_email.py", line 18, in
msg['Subject'] = 'The c
On 2014-09-02 00:35, Om Prakash wrote:
Hi,
I am writing this program from
https://docs.python.org/2/library/email-examples.html
but getting the error as
singhom@debian:~/pythons$ python send_email.py
Traceback (most recent call last):
File "send_email.py", line 18, in
msg['Subject']
Om Prakash Wrote in message:
> Hi,
>
> I am writing this program from
> https://docs.python.org/2/library/email-examples.html
>
> but getting the error as
>
> singhom@debian:~/pythons$ python send_email.py
> Traceback (most recent call last):
>File "send_email.py", line 18, in
> msg[
Rustom Mody wrote:
>On Tuesday, August 26, 2014 6:58:42 AM UTC+5:30, Tim Roberts wrote:
>> To the equivalent code with struct:
>
>> import struct
>
>> dscrp = "H?fs5B"
>
>> f = open('file.dat')
>> stuff = struct.unpack( dscrp, f.read() )
>
>> print stuff
>
>> In both cases, you have to
Hi,
I am wondering how to define proxy setting in env variable on windows 7,
I want this so i can use pip to pull packages for me, the same setting
though working earlier on windows xp.
http_proxy = "proxy name:80"
now this same setting doesn't work, i tried doing in the cmd.exe prompt.
set
On 09/02/2014 05:29 AM, MRAB wrote:
On 2014-09-02 00:35, Om Prakash wrote:
Hi,
I am writing this program from
https://docs.python.org/2/library/email-examples.html
but getting the error as
singhom@debian:~/pythons$ python send_email.py
Traceback (most recent call last):
File "send_email.p
On Monday, September 1, 2014 11:11:34 AM UTC-5, Steven D'Aprano wrote:
> Python's input() or raw_input() function is good for getting a single line
>
> of text from the user. But what if you want a more substantial chunk of
>
> text from the user? Here's how to call out to an external editor such
On 02Sep2014 06:25, Om Prakash wrote:
I am wondering how to define proxy setting in env variable on windows
7, I want this so i can use pip to pull packages for me, the same
setting though working earlier on windows xp.
http_proxy = "proxy name:80"
now this same setting doesn't work, i tri
On Tue, Sep 2, 2014 at 12:06 PM, Cameron Simpson wrote:
> I am not a Windows user, but on UNIX systems the format of http_proxy and
> https_proxy is:
>
> http://proxyname:3128/
>
> being the proxy hostname and port number respectively. You're saying:
>
> proxyname:8080
>
> instead. (Note, http
Cameron Simpson wrote:
> It is not just about being hacked.
>
> It is about being robust in the face of unusual setups.
>
> If I were producing this function for general use (even my own personal
> general use) it would need to be reliable. That includes things like
> $TMPDIR having spaces in it
On Tue, 02 Sep 2014 05:05:41 +0530, Om Prakash wrote:
> fp = open("message", 'rb')
"message" here is a string literal
> fp.close
should be fp.close()
> msg['Subject'] = 'The contents of $s' % message
message here is a variable. The variable named message has not previously
had a value assig
On Tuesday, September 2, 2014 6:05:19 AM UTC+5:30, Tim Roberts wrote:
> Rustom Mody wrote:
> >On Tuesday, August 26, 2014 6:58:42 AM UTC+5:30, Tim Roberts wrote:
> >> To the equivalent code with struct:
> >> import struct
> >> dscrp = "H?fs5B"
> >> f = open('file.dat')
> >> stuff = struct
Hi,
I've tried various versions but continue to get the following error:
--
https://mail.python.org/mailman/listinfo/python-list
Hi,
I've tried versions of the following but continue to get errors:
- snip -
url = 'https://www.usps.com/send/official-abbreviations.htm'
request = urllib2.build_opener(urllib2.HTTPRedirectHandler).open(url)
- snip -
Generates an exception:
urlli
37 matches
Mail list logo