Christopher Spears ha scritto:
As you can see, the only part I haven't figured out is the actual renumbering.
Can't figure out how to do the following:
0017 convert to -> 0001
0018 convert to -> 0002
0019 convert to -> 0003
etc.
Any hints? Thanks.
IMHO, you can renumber everything without
I'm trying to write a script that will renumber items in a list. Here is the
list:
unordered_list = ["frame.0029.dpx",
"frame.0028.dpx",
"frame.0025.dpx",
"frame.0026.dpx",
"frame.0027.dpx",
"frame.0017.dpx",
"frame.0019.dpx",
"frame.0023.dpx",
"frame.0018.dpx",
On Tue, Aug 26, 2008 at 3:31 PM, Jeff Peery <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have a simple wx app that I need some help with. This application uses the
> serial ports to communicate with an industrial product. I first check that
> my python application is compatible with the industrial pro
Hello,
I have a simple wx app that I need some help with. This application uses the
serial ports to communicate with an industrial product. I first check that
my python application is compatible with the industrial product by asking
the industrial product for its revision number. If the revision n
On Tue, Aug 26, 2008 at 1:24 PM, Eric Abrahamsen
<[EMAIL PROTECTED]> wrote:
> On Aug 26, 2008, at 7:20 PM, Kent Johnson wrote:
>> If all you want to do with the nested Month, etc is to iterate the
>> events in them, you could probably use a shared iterator. It would
>> have to be able to push-back
"Eric Abrahamsen" <[EMAIL PROTECTED]> wrote
So that's why I'm creating the iterator outside of the while loop in
the original code, and then using a repeated for loop with a break
to step through all the events only once. Of course, the fact that
5 isn't in there probably points to the sourc
On Aug 26, 2008, at 7:20 PM, Kent Johnson wrote:
On Tue, Aug 26, 2008 at 1:36 AM, Eric Abrahamsen
<[EMAIL PROTECTED]> wrote:
So my test case: a Month has a 'child' attribute pointing at Week,
which has
a 'child' attribute pointing at Day, so they all know what kind of
child
instances itera
"Andre Engels" <[EMAIL PROTECTED]> wrote
Vista). On my private computer this works as it should, but on my
work
computer, it installs in the root directory of C: whatever directory
I
specify it to be installed into. Is this a known problem, and does
anybody know what to do about it?
Python
On Tue, Aug 26, 2008 at 2:44 PM, Lie Ryan <[EMAIL PROTECTED]> wrote:
> I have installed Python 2.5 on Windows Vista (Home Basic) on C:\Program
> Files, so clearly this is not a global problem. My guess is that at the
> work computer, you don't have write access to the directory you're
> installing
"Py Hex" <[EMAIL PROTECTED]> wrote
type(hex(12))
I get a string type back, i.e, '0xC' not 0xC
Thats right because hex is a representation format.
The data (12 in this case) is stored in binary on the PC.
What you see as hex (or decimal or ocatal...) is just
a string representation of the u
On Tue, 2008-08-26 at 12:00 +0200, [EMAIL PROTECTED] wrote:
>
>
> Message: 2
> Date: Tue, 26 Aug 2008 10:40:42 +0200
> From: "Andre Engels" <[EMAIL PROTECTED]>
> Subject: [Tutor] Python installing in root
> To: "Python Tutor List"
> Message-ID:
> <[EMAIL PROTECTED]>
> Content-Type: text/
On Tue, Aug 26, 2008 at 1:36 AM, Eric Abrahamsen
<[EMAIL PROTECTED]> wrote:
> So my test case: a Month has a 'child' attribute pointing at Week, which has
> a 'child' attribute pointing at Day, so they all know what kind of child
> instances iteration should produce. With nested loops, a Month pro
I am installing Python 2.5 using the Windows installer (running
Vista). On my private computer this works as it should, but on my work
computer, it installs in the root directory of C: whatever directory I
specify it to be installed into. Is this a known problem, and does
anybody know what to do ab
13 matches
Mail list logo