User Profile

Collapse

Profile Sidebar

Collapse
David Deisadze
David Deisadze
Last Activity: Nov 10 '11, 07:35 PM
Joined: Aug 9 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Float array tells the program to stop searching, if it finds library.geometr ies then it continues, but when it sees float.array it tells the program to stop, push is in perl, in python its list.append

    Here is the one I just finished, but I can't seem to run it.
    Code:
    while Maya():
        import re
        {
            line in []
    
            (p) == re.compile('library_geometries')
            (m) == p.search('library_geometries')
    ...
    See more | Go to post

    Leave a comment:


  • David Deisadze
    started a topic Translating my script from perl to python

    Translating my script from perl to python

    Hello, i am translating a program that I wrote in perl to python, i am currently stuck on this section and it does not work.

    Perl:
    Code:
    [while (<MAYA>)
    {
      
      my ($line) = $_;
      chomp($line);
         
      if ($line =~ /library_geometries/)
      {
        $start = 1;
      }
      
      if ($line =~ /<\/float_array>/)
      {
        $end = 1;
      }
      
      if (($start
    ...
    See more | Go to post
    Last edited by bvdet; Aug 9 '11, 02:42 PM. Reason: Fixed code tags
No activity results to display
Show More
Working...