<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel about="http://blog.gmane.org/gmane.comp.python.general">
    <title>gmane.comp.python.general</title>
    <link>http://blog.gmane.org/gmane.comp.python.general</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.general/592787"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.general/592780"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.general/592754"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.general/592752"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.general/592745"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.general/592730"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.general/592729"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.general/592701"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.general/592696"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.general/592695"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.general/592694"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.general/592693"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.general/592684"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.general/592679"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.general/592676"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.general/592675"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.general/592673"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.general/592670"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.general/592667"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.general/592666"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.general/592787">
    <title>EARN 5000$TO 10000$IN EVERY MONTH</title>
    <link>http://comments.gmane.org/gmane.comp.python.general/592787</link>
    <description>hai,
i am srinu from india. i am sending a blog url for yours use.

click on the blog and get more information to choose yours job.

the blog url is:


         http://earnmonthlyincome.blogspot.com/



                          goodluck
--
http://mail.python.org/mailman/listinfo/python-list

</description>
    <dc:creator>chinu</dc:creator>
    <dc:date>2008-10-08T01:52:10</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.general/592780">
    <title>Using subprocess module to launch a shell shell script that itself forks a process</title>
    <link>http://comments.gmane.org/gmane.comp.python.general/592780</link>
    <description>I have a shell script script.sh that launches a Java process in the
background using the &amp;-operator, like so:

 #!/bin/bash
 java ... arguments here ... &amp;

In my Python code, I want to invoke this shell script using the
Subprocess module.  Here is my code:

def resultFromRunning_(command):
    """Invokes a shell command, and returns the stdout response.

    Args:
        command: A string containing the complete shell command to
run.

    Results:
        A string containing the output of the command executed.

    Raises:
        ValueError if a non-zero return code is returned from the
shell.
        OSError if command isn't found, inappropriate permissions,
etc.
    """

    L = log4py.Logger().get_instance()
    L.info("Executing: " + command)

    p = subprocess.Popen(
        command,
        shell=True,
        stdin=subprocess.PIPE,
        stdout=subprocess.PIPE,
        stderr=subprocess.STDOUT,
        close_fds=True
    )

    outputChannel = p.stdout
    output = outputChannel.read()

    resul</description>
    <dc:creator>Samuel A. Falvo II</dc:creator>
    <dc:date>2008-10-08T00:43:41</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.general/592754">
    <title>Demand that Obama release his college records! Where is the media?</title>
    <link>http://comments.gmane.org/gmane.comp.python.general/592754</link>
    <description>Why is it important to see Obama's college records? Because the media
has created fantasies around Obama on every issue. You should start
dispelling them with the easiest one, i.e. the fantasy of Obama's
"academic degrees and honors".

Obama has been fighting desperately to block all access to his college
records. Even his "academic paper" at Columbia mysteriously
disappeared. The media just swallowed the official Obama's "academic
degrees and honors" without checking his actual grades, his scores on
standardized tests, his academic writings if any, etc. All the
decisions to admit Obama to colleges, to give him "academic degrees
and honors" were made by a few unknown individuals. Read about the
racial turmoil at one college where he got his "academic honors". The
race tensions seem to follow Obama wherever he goes.

If Obama's college records fail to meet the requirements for
legitimate academic degrees and honors then Obama will be declared an
academic fraud. Maybe then the media will start vetting Obama on</description>
    <dc:creator>Micky</dc:creator>
    <dc:date>2008-10-07T20:10:02</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.general/592752">
    <title>Reading from stdin</title>
    <link>http://comments.gmane.org/gmane.comp.python.general/592752</link>
    <description>
I have a problem with this piece of code:

====
import sys
for line in sys.stdin:
    print "You said!", line
====

Namely, it seems that the stdin buffers the input, so there is no reply until 
a huge amount of text has bin written. The iterator returned by xreadlines 
has the same behavior.

The stdin.readline() function doesn't share that behaviour (it returns as soon 
as I hit 'enter').

??Is there any way to tell stdin's iterator not to buffer the input? Is it 
part of the standard file protocol?

</description>
    <dc:creator>Luis Zarrabeitia</dc:creator>
    <dc:date>2008-10-07T19:56:34</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.general/592745">
    <title>print command don't work (subscripted) word[2:4]</title>
    <link>http://comments.gmane.org/gmane.comp.python.general/592745</link>
    <description>Why is this not working ?

bla = 'hondenriem'
print bla[0:4]  # correct ! (= hond)
print bla[3:2]  # nothing ! (= en)
print bla[6:3]  # nothing ! (= riem)

Why don't bla[3:2] and bla[6:3] won't work ?

I use this version:
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
(Intel)] on win32

http://docs.python.org/tutorial/introduction.html#strings
word = 'HelpA'
'A'
'He'
'lp'
--
http://mail.python.org/mailman/listinfo/python-list

</description>
    <dc:creator>gcmartijn&lt; at &gt;gmail.com</dc:creator>
    <dc:date>2008-10-07T18:50:51</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.general/592730">
    <title>Making Non Callable Objects Callable</title>
    <link>http://comments.gmane.org/gmane.comp.python.general/592730</link>
    <description>I am trying to figure out if there is a way to make an object in
python callable, modules in particular. I wrongly assume that defining
'__call__' in the the objects __dict__ would work. Any help would be
appreciated.
--
http://mail.python.org/mailman/listinfo/python-list

</description>
    <dc:creator>exiquio</dc:creator>
    <dc:date>2008-10-07T17:35:46</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.general/592729">
    <title>re : do something in time interval</title>
    <link>http://comments.gmane.org/gmane.comp.python.general/592729</link>
    <description>


    import time
    while True:
        end_time = time.time() + 5
        while time.time() &lt; end_time:
            do_the_in_between_stuff()
        do_the_every_five_second_stuff()

HTH - Hendrik

--
Real programmers disdain structured programming.  Structured
programming is for compulsive neurotics who were prematurely
toilet-trained.  They wear neckties and carefully line up
pencils on otherwise clear desks.



--
http://mail.python.org/mailman/listinfo/python-list

</description>
    <dc:creator>Hendrik van Rooyen</dc:creator>
    <dc:date>2008-10-08T04:48:25</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.general/592701">
    <title>Race condition when generating .pyc files</title>
    <link>http://comments.gmane.org/gmane.comp.python.general/592701</link>
    <description>I have a large body of Python code which runs on many different (Unix)
machines concurrently.  Part of the code lives in one place, but most
of it lives in directories which I find at runtime.  I only have one
copy of each Python source file and I think I'm hitting a race
condition where two hosts attempt to import the same module at the
same time.  My import fails on one of the machines and the following
exception is thrown:
EOFError: EOF read where object expected
My hypothesis is that there's contention between the two (or more)
hosts when the module's .pyc file is generated.

Possible solutions I see:
1) Running a cron job before my code executes which compiles all the
python source first.
2) Making separate copies of all the .py files for each host running
the code - I'd rather not do this, it seems like a big pain.
3) Inhibiting the generation of .pyc files altogether if that's even
possible - I saw a PEP for a possible -R flag (http://www.python.org/
dev/peps/pep-0304/) but I don't think it has been a</description>
    <dc:creator>yogamatt1970&lt; at &gt;gmail.com</dc:creator>
    <dc:date>2008-10-07T15:21:40</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.general/592696">
    <title>how can we send keys to keyboard</title>
    <link>http://comments.gmane.org/gmane.comp.python.general/592696</link>
    <description>how can we send keys to keyboard? i want to write a script that will
push keyboard buttons and do what i want. its for a macro prog. there
are some kinds at c++ and at java. for example actools prog. but i
want to this in python...

note:im not talking about print a key im talking about use it from its
device
please help
--
http://mail.python.org/mailman/listinfo/python-list

</description>
    <dc:creator>mhangman</dc:creator>
    <dc:date>2008-10-07T15:13:41</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.general/592695">
    <title>time</title>
    <link>http://comments.gmane.org/gmane.comp.python.general/592695</link>
    <description>Hello everyone!

I trying to work with time and I a bit confused... If I look at my 
clock, it's 16:59 (4:59pm), if I type "date" in a terminal, it says the 
same thing. I'm wanting to write a simple NTP-type server/client (it's 
not NTP at all actually, but does the same thing). The idea is that a 
client sends it it's UTC offset and it returns the current time, so the 
server side checks the time and adds the UTC offset given by the client. 
I'm a UTC/GMT +1, I tried obtaining the UTC time, it says it's 2 hours 
earlier than the current time (14:59). I tried various other methods, I 
still get the wrong time. Does anyone have an idea with what is wrong?

Thanks,
Gabriel
--
http://mail.python.org/mailman/listinfo/python-list

</description>
    <dc:creator>Gabriel Rossetti</dc:creator>
    <dc:date>2008-10-07T15:05:44</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.general/592694">
    <title>url - Free</title>
    <link>http://comments.gmane.org/gmane.comp.python.general/592694</link>
    <description>http://forums.vogue.com.au/member.php?u=92158 zoo tube 365 com
http://forums.vogue.com.au/member.php?u=92159 zootube365 com
http://forums.vogue.com.au/member.php?u=92166 miley cyrus naked
http://forums.vogue.com.au/member.php?u=92164 tila tequila nude
http://forums.vogue.com.au/member.php?u=92163 sextube com
http://forums.vogue.com.au/member.php?u=92162 animalssex
http://forums.vogue.com.au/member.php?u=92161 zooskool
http://forums.vogue.com.au/member.php?u=92160 www zootube365
http://forums.vogue.com.au/member.php?u=92170 dreammovies
http://forums.vogue.com.au/member.php?u=92171 xxxstash
http://forums.vogue.com.au/member.php?u=92169 qporno
http://forums.vogue.com.au/member.php?u=92168 sunporno
http://forums.vogue.com.au/member.php?u=92167 keezmovies
--
http://mail.python.org/mailman/listinfo/python-list

</description>
    <dc:creator>wbdismalgoldstein&lt; at &gt;gmail.com</dc:creator>
    <dc:date>2008-10-07T15:06:17</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.general/592693">
    <title>How do you get rid of useless warnings?</title>
    <link>http://comments.gmane.org/gmane.comp.python.general/592693</link>
    <description>&lt;rant&gt;

I'm getting awfully tired of constant warnings about what's
going to happen at some point in the future.

Warnings like this:

  ./surfplot.py:313: Warning: 'with' will become a reserved keyword in Python 2.6

And this:

  /usr/lib/python2.5/site-packages/scipy/linalg/__init__.py:32: DeprecationWarning: NumpyTest will be removed in the next release; please update your code to use nose or unittest

And so on...
  
_I'm_not_using_Python_2.6_.  When I decided to switch to 2.6,
I'll worry about what works and doesn't work in 2.6.  In the
meantime, how do I get rid of this useless warning?  It's not
practical at this point in time to update on my production
machines the module that uses 'with' as a parameter.  Python
has been whinging at me for over a year about how 'with' is
going to become a keyword in 2.6. Yes thanks, I know.  I've
known about it for ages.  Now how do I get it to shut up about
it?

I'm also not using "the next release" of scipy, I'm using
_this_ release of scipy.  I've no clue what any</description>
    <dc:creator>Grant Edwards</dc:creator>
    <dc:date>2008-10-07T15:00:34</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.general/592684">
    <title>several version of eggs</title>
    <link>http://comments.gmane.org/gmane.comp.python.general/592684</link>
    <description>Hello,

I thought that with eggs, I will be able to choose at run time, which
version of an egg I would like to use.

But after some tests with dummy eggs, I've tried to make it work with
SQLAlchemy for example, with no success at all.

So does some one know if such feature is available with eggs ??

------------------ the example ---------------

easy_install 'SQLAlchemy==0.4.4'
...
easy_install 'SQLAlchemy==0.4.6'
...

python
import pkg_resources
[SQLAlchemy 0.4.6 (/home/system/briner/py-lib/SQLAlchemy-0.4.6-
py2.5.egg)]
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 626,
in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 528,
in resolve
    raise VersionConflict(dist,req) # XXX put more info here
pkg_resources.VersionConflict: (SQLAlchemy 0.4.6 (/home/system/briner/
py-lib/SQLAlchemy-0.4.6-py2.5.egg),
Requirement.parse('SQLAlchemy==</description>
    <dc:creator>Sed</dc:creator>
    <dc:date>2008-10-07T14:28:08</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.general/592679">
    <title>automatically insert text in ms-word properties</title>
    <link>http://comments.gmane.org/gmane.comp.python.general/592679</link>
    <description>--
http://mail.python.org/mailman/listinfo/python-list
</description>
    <dc:creator>gita ziabari</dc:creator>
    <dc:date>2008-10-07T13:28:27</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.general/592676">
    <title>SMTPlib inside function, extra tab</title>
    <link>http://comments.gmane.org/gmane.comp.python.general/592676</link>
    <description>I am writing a script that needs to send some emails.  And I've used
smtplib in the past and it is pretty easy.  But I thought, gee it
would be easier if I could just call it as a function, passing the
from, to, subject, and message text.  So I wrote it up as a function
and it sort of works, but I get a weird error.  When it runs it
inserts a "\t" tab character before each item during the send portion
(which I can see when I turn on debug).  The end result is that I
don't get any body or subject in my emails.  It works fine when I copy
the inside of the function and run it directly.  It isn't a
dealbreaker, I can certainly just call it direct, but from a learning
Python perspective I'm wondering if anyone knows what exactly is
happening.    I'm more interested in the why this is happening than a
solution (though that would be great too).  Oh and if you could
explain it to me, with no CS background, that would be even better.

I am working on Windows Vista with Python 2.5.2 (activestate).

Thanks --Joshua

Sn</description>
    <dc:creator>Hunter</dc:creator>
    <dc:date>2008-10-07T13:03:12</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.general/592675">
    <title>ssh problem using paramiko?</title>
    <link>http://comments.gmane.org/gmane.comp.python.general/592675</link>
    <description>
I use this code :


import paramiko
import socket

hostname = "192.168.1.4"
username = "test"
port = 22
password = ''123456"

# now connect
try:
    sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    sock.connect((hostname, port))
except Exception, e:
    print 'Connect failed: ' + str(e)
    traceback.print_exc()
    sys.exit(1)

------------------
and I got this error :
sock.connect((hostname, port))
File "&lt;string&gt;", line 1 , in  connect
error:(10061 ,'Connection refused')
-------------------
what is the problem?
I have a computer with this Ip and username , password in my network.
Do I have to install ssh or somthing else in that computer(server) or run
any script?


</description>
    <dc:creator>sa6113</dc:creator>
    <dc:date>2008-10-07T12:40:46</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.general/592673">
    <title>Getting namespaces right when parsing/executing Python ASTs</title>
    <link>http://comments.gmane.org/gmane.comp.python.general/592673</link>
    <description>Hi,

I'm trying to parse Python code to an AST, apply some changes to the AST
and then compile and run the AST, but I'm running into problems when
trying to evaluate/execute the resulting code object. It seems that the
global namespace differs depending on where I call parse and eval/exec.

The following code parses a file, compiles and then evaluates the AST.
If I call Python directly on this code, then it works:

        import sys, parser
        ast = parser.suite(open(sys.argv[1]).read())
        code = ast.compile()
        exec(code)

...and it also works this way with Python2.6:

    ast = compile(open(sys.argv[1]).read(), "&lt;AST&gt;",
'exec',_ast.PyCF_ONLY_AST)
    code = compile(ast, "&lt;AST", "exec")
    exec(code)
        
However, if I include that snippet in a different scope (some function
or class), then the namespace that the code object will have differs -
it seems the symbols defined in the AST are not included when executing
the code. For example:

        import sys,parser
        
        def</description>
    <dc:creator>Gordon Fraser</dc:creator>
    <dc:date>2008-10-07T12:26:50</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.general/592670">
    <title>ms-word automation- Properties</title>
    <link>http://comments.gmane.org/gmane.comp.python.general/592670</link>
    <description>--
http://mail.python.org/mailman/listinfo/python-list
</description>
    <dc:creator>gita ziabari</dc:creator>
    <dc:date>2008-10-07T11:57:39</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.general/592667">
    <title>Lenovo Laptops N3000 0769CVQ - Buy Lenovo Laptops N3000 0769CVQ</title>
    <link>http://comments.gmane.org/gmane.comp.python.general/592667</link>
    <description>Lenovo Laptops N3000 0769CVQ - Buy Lenovo N3000 0769CVQ Laptop online
at this laptop shop | homeshop18 offers best Lenovo laptops at lowest
price online. To know more visit:
http://www.homeshop18.com/shop/u/y/p-Computers-Q-and-Q-Peripherals-S-Laptops-S-Lenovo-Q-N3000-Q-0769CVQ-Q-Notebook/Home_Online-pI_20249-clI_2-cI_920-pCI_909-
--
http://mail.python.org/mailman/listinfo/python-list

</description>
    <dc:creator>Online Shopping</dc:creator>
    <dc:date>2008-10-07T11:37:44</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.general/592666">
    <title>Acer Laptops 4520NWXMi Athlon LX.AHS0C.032</title>
    <link>http://comments.gmane.org/gmane.comp.python.general/592666</link>
    <description>Buy low price Acer Acer Laptops 4520NWXMi Athlon LX.AHS0C.032 - buy
best Acer Aspire Laptops 4520NWXMi Athlon LX.AHS0C.032 online at
lowest price at homeshop18 laptops shop. For more information visit:
http://www.homeshop18.com/shop/u/y/p-Computers-Q-and-Q-Peripherals-S-Laptops-S-Acer-Q-Aspire-Q-4520NWXMi-Q-Athlon-Q-LX.AHS0C.032-Q-Notebook/Home_Online-pI_20266-clI_2-cI_920-pCI_909-

--
http://mail.python.org/mailman/listinfo/python-list

</description>
    <dc:creator>Online Shopping</dc:creator>
    <dc:date>2008-10-07T11:37:27</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.general/592658">
    <title>Professional training in Python &amp; Biopython</title>
    <link>http://comments.gmane.org/gmane.comp.python.general/592658</link>
    <description>Dear Students,

The Bioinformatica Solutions is providing training in all the fields
of Bioinformatics like vaccine design, siRNA design, Gene
identification, Structure based rational  Drug designing, genomics,
proteomics, QSAR, metabolomics, new metabolic pathway design ,bioperl,
biopython, pharma informatics, etc.
We are also giving training in Bio-Perl. bio-Phython,ASP.Net etc.whic
are the industry oriented course in IT. Accommodation is available
here nearby our institute &amp; we assist in accommodation finding also.
Many papers are published from this institute in reputated journal
from the students which was doing dissertation work from TBS. You can
download the application form from the site: www.thebioinformatica.com
and registration can be done by sending your CV and form.


Shuchi Smita
Director
The Bioinformatica Solutions




--
http://mail.python.org/mailman/listinfo/python-list

</description>
    <dc:creator>bioinformatica</dc:creator>
    <dc:date>2008-10-07T10:39:05</dc:date>
  </item>
  <textinput about="http://search.gmane.org/?group=$group=gmane.comp.python.general">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.python.general</link>
  </textinput>
</rdf:RDF>
