<?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://permalink.gmane.org/gmane.comp.python.general/582787"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/582786"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/582785"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/582784"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/582783"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/582782"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/582781"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/582780"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/582779"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/582778"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/582777"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/582776"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/582775"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/582774"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/582773"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/582772"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/582771"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/582770"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/582769"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.general/582768"/>
      </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://permalink.gmane.org/gmane.comp.python.general/582787">
    <title>Re: 2d graphics - what module to use?</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/582787</link>
    <description>Use python's default GUI tkinter's drawing functions or you can use
wxPython GUI kit or you can use pyopengl.
If you are only interested to draw sin waves or math functions that
you should give try to matlab at www.mathworks.com

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

</description>
    <dc:creator>King</dc:creator>
    <dc:date>2008-07-25T08:10:52</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/582786">
    <title>Re: ctypes and reading value under pointer passed as param of a callback</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/582786</link>
    <description>
Cool, works fine now.

... and how to convert a list of bytes to py string or int ??

i.e
data[:4] -&gt; py int
data[4:8] -&gt; py int
data[8:] -&gt; py strng

I tried unpack and unpack_from but the buff should be an string or
buffer not a list of bytes as data is.

any suggestions?
--
http://mail.python.org/mailman/listinfo/python-list

</description>
    <dc:creator>waldek</dc:creator>
    <dc:date>2008-07-25T08:06:32</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/582785">
    <title>Re: file operations.</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/582785</link>
    <description>

(I'm sure you mean "a question"; in english, "a doubt" is something 
slightly different, and quite often more negative.)


      print repr(line) # added for debugging!


one or more lines in your file doesn't match the description; try adding 
a print statement (see above) to see what they might look like, and make 
sure that you filter them out (e.g. by checking the size of the list you 
get from the split, as Terry explains).

&lt;/F&gt;

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

</description>
    <dc:creator>Fredrik Lundh</dc:creator>
    <dc:date>2008-07-25T07:57:58</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/582784">
    <title>Re: Attack a sacred Python Cow</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/582784</link>
    <description>
Why do you think that 'self' should be inserted anywhere except in the
arg list? AFAIU, the idea is to remove the need to write 'self' in the
arg list, not to get rid of it entirely.


Best,

   -Nikolaus

</description>
    <dc:creator>Nikolaus Rath</dc:creator>
    <dc:date>2008-07-25T07:54:30</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/582783">
    <title>Re: os.walk question</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/582783</link>
    <description>

sure, as was discussed in this very thread two days ago.

&lt;/F&gt;

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

</description>
    <dc:creator>Fredrik Lundh</dc:creator>
    <dc:date>2008-07-25T07:48:51</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/582782">
    <title>Re: import dll instead of pyd</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/582782</link>
    <description>

looks like that was removed in 2.5; from Misc/NEWS:

- On Windows, .DLL is not an accepted file name extension for
   extension modules anymore; extensions are only found if they
   end in .PYD.

which is easily confirmed:

Python 2.4.3
 &gt;&gt;&gt; import imp
 &gt;&gt;&gt; imp.get_suffixes()
[('.pyd', 'rb', 3), ('.dll', 'rb', 3), ('.py', 'U', 1),
('.pyw', 'U', 1), ('.pyc', 'rb', 2)]

Python 2.5
 &gt;&gt;&gt; import imp
 &gt;&gt;&gt; imp.get_suffixes()
[('.pyd', 'rb', 3), ('.py', 'U', 1), ('.pyw', 'U', 1),
('.pyc', 'rb', 2)]

(the DLL support was a compatibility thing anyway, so I guess removing 
it after 10+ years is a reasonable thing to do...)

&lt;/F&gt;

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

</description>
    <dc:creator>Fredrik Lundh</dc:creator>
    <dc:date>2008-07-25T07:20:16</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/582781">
    <title>Re: need help with introducing more traffic</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/582781</link>
    <description>--
http://mail.python.org/mailman/listinfo/python-list</description>
    <dc:creator>leo davis</dc:creator>
    <dc:date>2008-07-25T06:58:24</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/582780">
    <title>Re: import dll instead of pyd</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/582780</link>
    <description>Yes it is in the same directory. The problem is it does not seem to
look for dll's at all. So is this by design, or am I missing
something?

On 25 Juli, 10:03, Nick Dumas &lt;drako...&lt; at &gt;gmail.com&gt; wrote:

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

</description>
    <dc:creator>jrh</dc:creator>
    <dc:date>2008-07-25T06:51:03</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/582779">
    <title>Re: Function editing with Vim throws IndentError</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/582779</link>
    <description>--
http://mail.python.org/mailman/listinfo/python-list</description>
    <dc:creator>Timothy Grant</dc:creator>
    <dc:date>2008-07-25T06:32:40</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/582778">
    <title>2d graphics - what module to use?</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/582778</link>
    <description>What is the easiest way to draw to a window? I'd like to draw something 
  like sine waves from a mathematical equation.
Newbie to python.
--
http://mail.python.org/mailman/listinfo/python-list

</description>
    <dc:creator>Pierre Dagenais</dc:creator>
    <dc:date>2008-07-25T06:13:30</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/582777">
    <title>Questions on 64 bit versions of Python</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/582777</link>
    <description>Background: I'm going to be processing some raw transaction logs that
are 30G in size. As part of this processing I may need to create some
very large dictionary structures. I will be running my scripts on a
version of Windows 2003 Server Enterprise Edition that supports 16G of
RAM. Yes, I could use a database in place of dictionaries, but I'm
looking for maximum performance.

The following page lists two 64 bit versions of Python for Windows:
http://www.python.org/download/releases/2.5.2/

For Win64-Itanium users: python-2.5.2.ia64.msi
For Win64-AMD64 users: python-2.5.2.amd64.msi

1. It looks like the 64 bit versions of Python for Windows are CPU
vendor specific, eg. it doesn't look like there's a single, universal
executable for Windows 64 bit platforms. Is this true?

2. Are there limitations to the using the 64 bit versions of Python? I
seem to remember reading that many 3rd party modules (especially Windows
OS specific modules) may not be compatible with the 64 bit versions of
Python for Windows.

3. If I wanted to run a 64 bit version of Python under Linux, would I
need to recompile from source on 64 bit version of Linux or do 64 bit
versions of Linux automatically ship with 64 bit versions of Python?
(Any recommendations on a flavor of 64 bit of Linux for the Intel
architecture would be appreciated)

4. Is there a stable version of IronPython compiled under a 64 bit
version of .NET? Anyone have experience with such a beast?

Thank you,
Malcolm


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

</description>
    <dc:creator>python&lt; at &gt;bdurham.com</dc:creator>
    <dc:date>2008-07-25T06:13:44</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/582776">
    <title>Re: Attack a sacred Python Cow</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/582776</link>
    <description>On Jul 24, 5:01 am, Lawrence D'Oliveiro &lt;l...&lt; at &gt;geek-
central.gen.new_zealand&gt; wrote:

By that logic, C++ is not OO. By that logic, Ruby is not OO. By that
logic, I know of only one OO language: Java :)

The fact that a language doesn't force you to do object-oriented
programming doesn't mean that it's not object-oriented. In other
words, your words are nonsense.

Sebastian

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

</description>
    <dc:creator>s0suk3&lt; at &gt;gmail.com</dc:creator>
    <dc:date>2008-07-25T06:09:09</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/582775">
    <title>Re: pci card adjusting</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/582775</link>
    <description>
Not easily, at least not without a helper DLL in C.  And since the app
won't be that large, you might as well just do it in C.
</description>
    <dc:creator>Tim Roberts</dc:creator>
    <dc:date>2008-07-25T05:59:54</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/582774">
    <title>Re: Doubt</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/582774</link>
    <description>
As other pointed out, iterating through a list or range is often a far
more elegant way to do a loop than a C-style loop.  But the C-style for
loop is just syntactic sugar for a while loop.  In some cases, C-style
for loops can have an initializer, a set of conditions, and incrementer
parts that are all based on different variables.  For example:

for (a=begin_func() ; x &lt; 3 and sometest(b) ; i=somefunc() )

This highly illogical and contrived function could not be represented in
python with a simple "for x in blah" statement.  Rather you have to
represent it in its true form, which is a while loop:

a=begin_func()
while x &lt; 3 and sometest(b):
#do stuff
#loop body
i=somefunc()


In fact, the perl/c for loop of the form:

for (&lt;initializer&gt;;&lt;condition&gt;;&lt;incrementer&gt;)

always translates directly to:

&lt;initializer&gt;
while &lt;condition&gt;:
#loop body

&lt;incrementer&gt;
--
http://mail.python.org/mailman/listinfo/python-list

</description>
    <dc:creator>Michael Torrie</dc:creator>
    <dc:date>2008-07-25T05:37:50</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/582773">
    <title>Re: Broken examples</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/582773</link>
    <description>
Excel is a COM-driven application.  You have to drive it through the object
model.

  import win32com.client
  excel = win32com.client.Dispatch( 'Excel.Application' )
  xlCSV = 6
  ...
  for nm in list_of_file_names:
    csv = os.path.splitext( nm )[0] + '.csv'
    wb = excel.Workbooks.Open( nm )
    wb.SaveAs( csv, xlCSV )
    wb.Close()

If you want to watch the progress, add "excel.Visible=1" after the
dispatch.
</description>
    <dc:creator>Tim Roberts</dc:creator>
    <dc:date>2008-07-25T05:33:59</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/582772">
    <title>object persistency, store instances relationship externally</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/582772</link>
    <description>This is a new test for object persistency. I am trying to store the
relationship between instances externally.
It's not working as expected. May be I am doing it in wrong way. Any
suggestions?


import shelve

class attrib(object):
    pass

class node(object):
    def __init__(self):
        self.a = attrib()
        self.b = attrib()
        self.c = attrib()
        self.d = attrib()

a = node()
#store pair relationship. This relationship is created at run time.
lst = [[a.a, a.b], [a.c, a.d]]
#Write objects into file
shelf = shelve.open('shelve_test_01.txt', writeback=True)
shelf['node'] = a
shelf['lst'] = lst
shelf.sync()
shelf.close()


#Read objects from file
shelf = shelve.open('shelve_test_01.txt', 'r')
a = shelf['node']
lst = shelf['lst']
print a.a, a.b, a.c, a.d
#lst does not contains the relationship of object 'a''s attributes,
instead it's creating new instances
#of 'attrib' class
print lst

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

</description>
    <dc:creator>King</dc:creator>
    <dc:date>2008-07-25T05:33:01</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/582771">
    <title>Re: Attack a sacred Python Cow</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/582771</link>
    <description>
This isn't the problem Jordan tries to address. It's really just about
`self` in the argument signature of f, not about its omission in the
body. Some problems occur when not `self` shall be used but e.g.
`this`. Here one has to specify more:

class C():
    __self__ = 'this'   # use `this` instead of `self`
    def f(a):
        this.a = a

or

class C():
    def f($this, a):    # use `this` instead of `self`
        this.a = a

When an $-prefixed parameter is found the automatic insertion of
`self` will be blocked and the $-prefixed parameter name will be used
instead but without the prefix.
--
http://mail.python.org/mailman/listinfo/python-list

</description>
    <dc:creator>Kay Schluehr</dc:creator>
    <dc:date>2008-07-25T05:06:35</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/582770">
    <title>Re: Question about inheritence</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/582770</link>
    <description>In message &lt;mailman.490.1216745662.922.python-list&lt; at &gt;python.org&gt;, Fredrik
Lundh wrote:


That's the usual meaning of "constructor". It doesn't actually "construct"
the object, it really "initializes" it.
--
http://mail.python.org/mailman/listinfo/python-list

</description>
    <dc:creator>Lawrence D'Oliveiro</dc:creator>
    <dc:date>2008-07-25T04:44:35</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/582769">
    <title>Re: os.walk question</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/582769</link>
    <description>In message &lt;mailman.514.1216797917.922.python-list&lt; at &gt;python.org&gt;, Fredrik
Lundh wrote:


Won't that return any subdirectories as well as files?
--
http://mail.python.org/mailman/listinfo/python-list

</description>
    <dc:creator>Lawrence D'Oliveiro</dc:creator>
    <dc:date>2008-07-25T04:38:45</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/582768">
    <title>Re: Broken examples</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/582768</link>
    <description>In message &lt;mailman.609.1216919661.922.python-list&lt; at &gt;python.org&gt;, norseman
wrote:


I've never tried that. I've run Python scripts from the "Tools/Macros/Run
Macro..." dialog.
--
http://mail.python.org/mailman/listinfo/python-list

</description>
    <dc:creator>Lawrence D'Oliveiro</dc:creator>
    <dc:date>2008-07-25T04:36:47</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.general/582767">
    <title>Re: Attack a sacred Python Cow</title>
    <link>http://permalink.gmane.org/gmane.comp.python.general/582767</link>
    <description>In message
&lt;8233fbfb-ad9b-43ef-b722-9738ef129d0b&lt; at &gt;q5g2000prf.googlegroups.com&gt;, Jordan
wrote:


That would mean making OO the default. Which Python doesn't do.
--
http://mail.python.org/mailman/listinfo/python-list</description>
    <dc:creator>Lawrence D'Oliveiro</dc:creator>
    <dc:date>2008-07-25T04:33:51</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>
