On 28/05/2014 00:01, ps16thypresenceisfullnessof...@gmail.com wrote:
I want users to be able to enter paths in the XML file exactly the
way they would be entered in a Windows shortcut. Since it is possible
to make a Windows shortcut for path-to-script.py without the
python.exe in front of it and
On Tue, 27 May 2014 17:02:50 +, Steven D'Aprano wrote:
> - rather than "zillions" of them, there are few enough of them that
> the chances of an MD5 collision is insignificant;
> (Any MD5 collision is going to play havoc with your strategy of
> using hashes as a proxy for the real string
Sorry for not being explicit enough. I am aware that this would work if I
called python.exe path-to-script.py with shell=False.
In my Python program, I parse an XML file like the one I have included below.
Then I loop through the paths of the apps listed in it and run them by calling
something
On Wed, May 28, 2014 at 7:38 AM, Deb Wyatt wrote:
> thanks,John. I guess I was/am afraid to embarrass myself on this list, but
> then I accidentally posted a question meant for the tutor list and ended up
> getting more for my money than I expected :). I really appreciate that the
> people on
> -Original Message-
> From: john_lada...@sbcglobal.net
> Sent: Tue, 27 May 2014 11:38:39 -0700 (PDT)
> To: python-list@python.org
> Subject: Re: is there a list/group for beginners?
>
> Hi, Deb.
>
> Ten years ago (or eleven?), I was completely new to Python. I could not
> begin to und
On 2014-05-27 08:43, himanshul...@gmail.com wrote:
> Need of python in embedded systems???
Define "embedded".
I've got a couple small low-powered devices here (a Digi ConnectPort,
a Raspberry Pi, a low-end 32-bit system with 32MB of RAM) all of
which run Python.
It might be trickier if you're ta
On 27/05/2014 21:02, maksu...@gmail.com wrote:
I recommend to install PyCharm
Three copies in three minutes of one line with no context, that's a
record, congratulations :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawr
On 2014-05-27 15:33, animalize81 wrote:
> Home-use smart router is more and more popular.
>
> If embeds Python into such router, and
> develops a framework that has the following features:
>
> 1, allow power-down at any time
> 2, dynamic domain name
> 3, local storage support (SD cards or Hard
On Wed, May 28, 2014 at 5:56 AM, Neal Becker wrote:
> I'm trying to track down a memory leak in a fairly large code. It uses a lot
> of
> numpy, and a bit of c++-wrapped code. I don't yet know if the leak is purely
> python or is caused by the c++ modules.
Something to try, which would separat
On Wed, May 28, 2014 at 5:56 AM, giacomo boffi wrote:
> Rustom Mody writes:
>
>> For ubuntu you should need nothing for python.
>> In other words python should run on a basic ubuntu installation.
>> From the shell just type python and the interpreter should start.
>>
>> For more specialized work
I recommend you to install PyCharm
--
https://mail.python.org/mailman/listinfo/python-list
I recommend you to install PyCharm
--
https://mail.python.org/mailman/listinfo/python-list
I recommend to install PyCharm
--
https://mail.python.org/mailman/listinfo/python-list
Rustom Mody writes:
> For ubuntu you should need nothing for python.
> In other words python should run on a basic ubuntu installation.
> From the shell just type python and the interpreter should start.
>
> For more specialized work there are dozens (maybe hundreds?) of
> packages in the apt rep
I'm trying to track down a memory leak in a fairly large code. It uses a lot
of
numpy, and a bit of c++-wrapped code. I don't yet know if the leak is purely
python or is caused by the c++ modules.
At each iteration of the main loop, I call gc.collect()
If I then look at gc.garbage, it is empt
On Wed, May 28, 2014 at 3:02 AM, Steven D'Aprano
wrote:
> But I know that Python is a high-level language with
> lots of high-level data structures like dicts which trade-off time and
> memory for programmer convenience, and that I'd want to see some real
> benchmarks proving that my application w
On Tue, 27 May 2014 16:13:46 +0100, Adam Funk wrote:
> On 2014-05-23, Chris Angelico wrote:
>
>> On Fri, May 23, 2014 at 8:27 PM, Adam Funk
>> wrote:
>>> I've also used hashes of strings for other things involving
>>> deduplication or fast lookups (because integer equality is faster than
>>> str
Need of python in embedded systems???
--
https://mail.python.org/mailman/listinfo/python-list
On 2014-05-23, Terry Reedy wrote:
> On 5/23/2014 6:27 AM, Adam Funk wrote:
>
>> that. The only thing that really bugs me in Python 3 is that execfile
>> has been removed (I find it useful for testing things interactively).
>
> The spelling has been changed to exec(open(...).read(), ... . It you u
On 2014-05-23, Chris Angelico wrote:
> On Fri, May 23, 2014 at 8:27 PM, Adam Funk wrote:
>> I've also used hashes of strings for other things involving
>> deduplication or fast lookups (because integer equality is faster than
>> string equality). I guess if it's just for deduplication, though, a
On 2014-05-26, Dennis Lee Bieber wrote:
> On Mon, 26 May 2014 19:00:11 +0200, Johannes Bauer
> declaimed the following:
>
>>
>>Now let's all code Itanium assembler, yes?
>
> Naw... Let's beg Intel to bring back the iAPX-432, and beg AdaCore to
> port GNAT to it.
When the '432 datasheets came out
Hi, Deb.
Ten years ago (or eleven?), I was completely new to Python. I could not begin
to understand over 90 percent of what I was reading here in comp.lang.python.
Still, I asked my newbie questions here. For the most part, I got excellent
responses. I think you're in the right place.
--
On 27/05/2014 12:39, Aman Kashyap wrote:
On Tuesday, 27 May 2014 16:59:38 UTC+5:30, Daniel wrote:
What about skipping the re and try this:
'start=|ID=ter54rt543d|SID=ter54rt543d|end=|'.split('|')[1][3:]
On 27.05.2014 14:09, Vlastimil Brom wrote:
2014-05-27 12:59 GMT+02:00 Aman Kashyap :
In article ,
Wolfgang Maier wrote:
> On 27.05.2014 13:39, Aman Kashyap wrote:
> >> On 27.05.2014 14:09, Vlastimil Brom wrote:
> >>
> >>> you can just escpape the pipe with backlash like any other metacharacter:
> >>>
> >>> r"start=\|ID=ter54rt543d"
> >>>
> >>> be sure to use the raw string notat
Le lundi 26 mai 2014 01:09:31 UTC+2, Mark Lawrence a écrit :
> On 25/05/2014 23:22, Dennis Lee Bieber wrote:
>
> > On Sun, 25 May 2014 11:34:59 -0700, Ethan Furman
>
> > declaimed the following:
>
> >
>
> >> On 05/25/2014 10:38 AM, Rustom Mody wrote:
>
> >>>
>
> >>> Your unicode is mojibaked
On 27.05.2014 13:39, Aman Kashyap wrote:
On 27.05.2014 14:09, Vlastimil Brom wrote:
you can just escpape the pipe with backlash like any other metacharacter:
r"start=\|ID=ter54rt543d"
be sure to use the raw string notation r"...", or you can double all
backslashes in the string.
Thanks
On Tuesday, 27 May 2014 16:59:38 UTC+5:30, Daniel wrote:
> What about skipping the re and try this:
>
>
>
> 'start=|ID=ter54rt543d|SID=ter54rt543d|end=|'.split('|')[1][3:]
>
>
>
> On 27.05.2014 14:09, Vlastimil Brom wrote:
>
> > 2014-05-27 12:59 GMT+02:00 Aman Kashyap :
>
> >> I would like
What about skipping the re and try this:
'start=|ID=ter54rt543d|SID=ter54rt543d|end=|'.split('|')[1][3:]
On 27.05.2014 14:09, Vlastimil Brom wrote:
2014-05-27 12:59 GMT+02:00 Aman Kashyap :
I would like to create a regular expression in which i can match the "|"
special character too.
e.g.
On Tuesday, 27 May 2014 16:39:19 UTC+5:30, Vlastimil Brom wrote:
> 2014-05-27 12:59 GMT+02:00 Aman Kashyap :
>
> > I would like to create a regular expression in which i can match the "|"
> > special character too.
>
> >
>
> > e.g.
>
> >
>
> > start=|ID=ter54rt543d|SID=ter54rt543d|end=|
>
>
2014-05-27 12:59 GMT+02:00 Aman Kashyap :
> I would like to create a regular expression in which i can match the "|"
> special character too.
>
> e.g.
>
> start=|ID=ter54rt543d|SID=ter54rt543d|end=|
>
> I want to only |ID=ter54rt543d| from the above string but i am unable to
> write the pattern
On Tue, May 27, 2014 at 9:05 PM, Dave Angel wrote:
> Preferred approach is usually to respond to one of the
> conventional argv switches. And let the user decide.
Yes, this is a technique I've used when doing up important (and
dangerous) MUD commands. The command will be something like "unload
Chris Angelico Wrote in message:
> On Tue, May 27, 2014 at 5:45 PM, KC Sparks wrote:
>> I was wondering if there was an extension or way that would allow me to
>> print instructions if it is the first the the user has used the script.
>
> The trickiest part is defining the 'user'. Generally, thi
I would like to create a regular expression in which i can match the "|"
special character too.
e.g.
start=|ID=ter54rt543d|SID=ter54rt543d|end=|
I want to only |ID=ter54rt543d| from the above string but i am unable to write
the pattern match containing "|" pipe too.
By default python treat "
On Tue, May 27, 2014 at 5:45 PM, KC Sparks wrote:
> I was wondering if there was an extension or way that would allow me to
> print instructions if it is the first the the user has used the script.
The trickiest part is defining the 'user'. Generally, this sort of
thing is done by creating a file
Hi,
I was wondering if there was an extension or way that would allow me to
print instructions if it is the first the the user has used the script.
Thanks,
KC
--
https://mail.python.org/mailman/listinfo/python-list
Home-use smart router is more and more popular.
If embeds Python into such router, and
develops a framework that has the following features:
1, allow power-down at any time
2, dynamic domain name
3, local storage support (SD cards or Hard Disk)
4, telnet server
etc.
Then we can create micro
You need to call python.exe path-to-script.py, I think, not just
path-to-script.py. See sys.executable (though that depends on if you're a
frozen app or not).
I can't be sure though because there's no code. Show code when asking
questions, it helps frame the discussion and get a better answer ;)
ps16thypresenceisfullnessof...@gmail.com Wrote in message:
> I have written a Python script with a wxPython GUI that uses subprocess.Popen
> to open a list of files that the user provides. One of my users would like to
> be able to run a Python script with my application. The Python script he is
38 matches
Mail list logo