<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-5419182.post6825820697040619507..comments</id><updated>2011-10-21T00:47:00.866-07:00</updated><category term='ruby'/><category term='Python'/><category term='bob ross'/><category term='DLR'/><category term='Visual Studio'/><category term='Chiron'/><category term='Twitter'/><category term='HAML'/><category term='MacOSX'/><category term='Microsoft'/><category term='Performance'/><category term='MacDrive'/><category term='Hack'/><category term='graduation'/><category term='Release'/><category term='NYC'/><category term='WebCam'/><category term='Lang.NET'/><category term='Gestalt'/><category term='christmas'/><category term='Dynamic Languages'/><category term='rational edge'/><category term='SQLServer'/><category term='Windows'/><category term='Apple'/><category term='Head First OOAD'/><category term='ASP.NET'/><category term='Finance'/><category term='Testing'/><category term='Dbus'/><category term='Scripting'/><category term='MSDN'/><category term='Seattle'/><category term='css'/><category term='OSCON'/><category term='git'/><category term='Cucumber'/><category term='PyCon'/><category term='rails'/><category term='DevConnections'/><category term='Walk Through'/><category term='Mono'/><category term='Internship'/><category term='JSON'/><category term='IronPython'/><category term='review'/><category term='new york'/><category term='JScript'/><category term='HTML5'/><category term='Windows 7'/><category term='NYC CodeCamp'/><category term='Embedding'/><category term='rubyconf'/><category term='wpi'/><category term='Website'/><category term='rafferty'/><category term='RailsConf'/><category term='Sparkline'/><category term='tutorial'/><category term='Pidgin'/><category term='webdesign'/><category term='ASP'/><category term='wii'/><category term='Silverline'/><category term='Lab49'/><category term='game'/><category term='Sinatra'/><category term='Java'/><category term='IIS'/><category term='VisualBasic'/><category term='MIX10'/><category term='Open Source'/><category term='C#'/><category term='nichum'/><category term='Life'/><category term='Firefox'/><category term='.NET 4.0'/><category term='Moonlight'/><category term='Linux'/><category term='html'/><category term='assistment'/><category term='Flickr'/><category term='MIX08'/><category term='worcester'/><category term='IronRuby'/><category term='smpl'/><category term='Internet Explorer'/><category term='WPF'/><category term='REPL'/><category term='talks'/><category term='Silverlight'/><category term='.NET'/><category term='CodePlex'/><title type='text'>Comments on jimmy.thinking: Embedding IronPython in Silverlight - Importing</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.jimmy.schementi.com/feeds/6825820697040619507/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5419182/6825820697040619507/comments/default'/><link rel='alternate' type='text/html' href='http://blog.jimmy.schementi.com/2009/11/embedding-ironpython-in-silverlight.html'/><author><name>Jimmy Schementi</name><uri>https://profiles.google.com/116380716127564408544</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-Fl3zUgl9dMw/AAAAAAAAAAI/AAAAAAAAAiE/FPzfEKIJZN4/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5419182.post-1751510051180869950</id><published>2011-10-21T00:47:00.866-07:00</published><updated>2011-10-21T00:47:00.866-07:00</updated><title type='text'>from System.Net import WebClient
url=&amp;quot;http://...</title><content type='html'>from System.Net import WebClient&lt;br /&gt;url=&amp;quot;http://example.com/xxx.mp3&amp;quot;&lt;br /&gt;filename=&amp;quot;billy111.mp3&amp;quot;&lt;br /&gt;WebClient().DownloadFile(url, filename)&lt;br /&gt;=========================================&lt;br /&gt;AttributeError: &amp;#39;WebClient&amp;#39; object has no attribute &amp;#39;DownloadFile&amp;#39;&lt;br /&gt;&lt;br /&gt;i have a question. what is attributeError?&lt;br /&gt;&lt;br /&gt;what should i do?  please tell me.&lt;br /&gt;&lt;br /&gt;from south.korea &lt;br /&gt;&lt;br /&gt;email : logostri123@naver.com</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5419182/6825820697040619507/comments/default/1751510051180869950'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5419182/6825820697040619507/comments/default/1751510051180869950'/><link rel='alternate' type='text/html' href='http://blog.jimmy.schementi.com/2009/11/embedding-ironpython-in-silverlight.html?showComment=1319183220866#c1751510051180869950' title=''/><author><name>버거킹스</name><uri>http://www.blogger.com/profile/18322891116482163965</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jimmy.schementi.com/2009/11/embedding-ironpython-in-silverlight.html' ref='tag:blogger.com,1999:blog-5419182.post-6825820697040619507' source='http://www.blogger.com/feeds/5419182/posts/default/6825820697040619507' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-4526215'/></entry><entry><id>tag:blogger.com,1999:blog-5419182.post-6772935162597527235</id><published>2010-01-12T14:37:45.779-08:00</published><updated>2010-01-12T14:37:45.779-08:00</updated><title type='text'>&amp;gt;&amp;gt;&amp;gt; Isn&amp;#39;t this an interpreter problem...</title><content type='html'>&amp;gt;&amp;gt;&amp;gt; Isn&amp;#39;t this an interpreter problem?&lt;br /&gt;&lt;br /&gt;Well, it&amp;#39;s not something IronPython can address; it&amp;#39;s a VM problem. The CLR does not support &amp;quot;continuations&amp;quot;, which are what you&amp;#39;re explaining ... pause the execution of a thread (lifting the current state), change that thread&amp;#39;s instruction pointer (bring in it&amp;#39;s state), and then at some point resuming execution at the original fork.&lt;br /&gt;&lt;br /&gt;Without this there is no way to write a procedular (synchronous) import hook in Silverlight which runs on the UI thread (just like JavaScript), without hanging the UI thread. Not hanging the UI thread is importnant, since Silverlight runs in the same process as Firefox and IE, so the entire browser, including all tabs running in the browser, will hang. In Chrome all plugins run in a different process, but Chrome is extremely sensitive to processes not responding, and it will tear down a blocked plugin process very agressively.&lt;br /&gt;&lt;br /&gt;However, you could write this asynchronously, but it doesn&amp;#39;t look very Pythonic.&lt;br /&gt;&lt;br /&gt;downloading_import &amp;#39;foo&amp;#39;, on_complete&lt;br /&gt;def on_complete(module)&lt;br /&gt;  module.bar() # equivalent to foo.bar()&lt;br /&gt;  # rest of your program&lt;br /&gt;&lt;br /&gt;You can also imagine running the Python code on a background thread to start, and when the import begins immediately dispatching the download to the UI thread, stopping the user-code background thread, and when the download is completed restarting the background thread. However, changing the thread user-code runs on would make writing Python code more painful, since it would require an explicit dispatch to the UI thread for all UI manipulations.&lt;br /&gt;&lt;br /&gt;&amp;gt;&amp;gt;&amp;gt; Not sure what to make &lt;br /&gt;&amp;gt;&amp;gt;&amp;gt; with script tags?&lt;br /&gt;It&amp;#39;s just a simpler application model for Python browser apps.&lt;br /&gt;&lt;br /&gt;&amp;gt;&amp;gt;&amp;gt; I suppose neither interactive nor Prism style applications&lt;br /&gt;&amp;gt;&amp;gt;&amp;gt; are feasible right now using the DLR. So what is precisely&lt;br /&gt;&amp;gt;&amp;gt;&amp;gt; the selling point? Wasn&amp;#39;t interactivity one of yours on your&lt;br /&gt;&amp;gt;&amp;gt;&amp;gt; own blog?&lt;br /&gt;&lt;br /&gt;What made you come to that conclusion? The DLR lets you treat everything as a string, and you can download things as much as you want, but no asynchronous activities can happen while running user-code; user-code blocks until it finishes, as there is no way to interrupt (unless you run on another thread like I suggested above).&lt;br /&gt;&lt;br /&gt;What exactly do you want to do that you don&amp;#39;t think is possible with the DLR?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5419182/6825820697040619507/comments/default/6772935162597527235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5419182/6825820697040619507/comments/default/6772935162597527235'/><link rel='alternate' type='text/html' href='http://blog.jimmy.schementi.com/2009/11/embedding-ironpython-in-silverlight.html?showComment=1263335865779#c6772935162597527235' title=''/><author><name>Jimmy Schementi</name><uri>http://www.blogger.com/profile/05370777584064015818</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_OqCZhp9yI0Q/SWM9lZ8cgWI/AAAAAAAAAGo/AXVcFgrO9W8/S220/Photo+13-crop-close-close.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jimmy.schementi.com/2009/11/embedding-ironpython-in-silverlight.html' ref='tag:blogger.com,1999:blog-5419182.post-6825820697040619507' source='http://www.blogger.com/feeds/5419182/posts/default/6825820697040619507' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1788848580'/></entry><entry><id>tag:blogger.com,1999:blog-5419182.post-3363738484644520633</id><published>2009-12-20T02:09:56.014-08:00</published><updated>2009-12-20T02:09:56.014-08:00</updated><title type='text'>Isn&amp;#39;t this an interpreter problem? I don&amp;#39;t...</title><content type='html'>Isn&amp;#39;t this an interpreter problem? I don&amp;#39;t see why the interpreter can&amp;#39;t pause on import. The UI might be frozen or creates a wait indicator - something I do consider for my own app. This should be easier than doing general interrupts of the interpreter which doesn&amp;#39;t work either right now.&lt;br /&gt;&lt;br /&gt;Not sure what to make with script tags? I suppose neither interactive nor Prism style applications are feasible right now using the DLR. So what is precisely the selling point? Wasn&amp;#39;t interactivity one of yours on your own blog?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5419182/6825820697040619507/comments/default/3363738484644520633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5419182/6825820697040619507/comments/default/3363738484644520633'/><link rel='alternate' type='text/html' href='http://blog.jimmy.schementi.com/2009/11/embedding-ironpython-in-silverlight.html?showComment=1261303796014#c3363738484644520633' title=''/><author><name>kayschluehr</name><uri>http://www.blogger.com/profile/18193908805797245856</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jimmy.schementi.com/2009/11/embedding-ironpython-in-silverlight.html' ref='tag:blogger.com,1999:blog-5419182.post-6825820697040619507' source='http://www.blogger.com/feeds/5419182/posts/default/6825820697040619507' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-44556053'/></entry><entry><id>tag:blogger.com,1999:blog-5419182.post-1155083627832836885</id><published>2009-12-04T18:18:34.249-08:00</published><updated>2009-12-04T18:18:34.249-08:00</updated><title type='text'>@kayschluehr we already support this with the new ...</title><content type='html'>@kayschluehr we already support this with the new script-tags feature. The decision to use script-tags was because you need a list of files to download when the page starts --- you cannot pause the execution of the script to asynchronously download something, and then resume execution (the CLR does not support continuations). Async downloading is required because all downloading in the browser is done on the UI thread.&lt;br /&gt;&lt;br /&gt;For more documentation about this, read: http://ironruby.com/browser/sl-back-to-just-text.pdf</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5419182/6825820697040619507/comments/default/1155083627832836885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5419182/6825820697040619507/comments/default/1155083627832836885'/><link rel='alternate' type='text/html' href='http://blog.jimmy.schementi.com/2009/11/embedding-ironpython-in-silverlight.html?showComment=1259979514249#c1155083627832836885' title=''/><author><name>Jimmy Schementi</name><uri>http://www.blogger.com/profile/05370777584064015818</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_OqCZhp9yI0Q/SWM9lZ8cgWI/AAAAAAAAAGo/AXVcFgrO9W8/S220/Photo+13-crop-close-close.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jimmy.schementi.com/2009/11/embedding-ironpython-in-silverlight.html' ref='tag:blogger.com,1999:blog-5419182.post-6825820697040619507' source='http://www.blogger.com/feeds/5419182/posts/default/6825820697040619507' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1788848580'/></entry><entry><id>tag:blogger.com,1999:blog-5419182.post-1345236534687324570</id><published>2009-11-15T00:13:15.713-08:00</published><updated>2009-11-15T00:13:15.713-08:00</updated><title type='text'>This quite naturally raises the question of module...</title><content type='html'>This quite naturally raises the question of modules/scripts not living in the xap file containing also the DLR? &lt;br /&gt;&lt;br /&gt;It might be possible ( I haven&amp;#39;t checked this ) to write import hooks used to load scripts from remote URLs but this would be out of touch with the DLR and its API which standardizes access beyond individual languages. Moreover each application developer had to create their own import infrastructure supplement - something I&amp;#39;d like to avoid if I can.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5419182/6825820697040619507/comments/default/1345236534687324570'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5419182/6825820697040619507/comments/default/1345236534687324570'/><link rel='alternate' type='text/html' href='http://blog.jimmy.schementi.com/2009/11/embedding-ironpython-in-silverlight.html?showComment=1258272795713#c1345236534687324570' title=''/><author><name>kayschluehr</name><uri>http://www.blogger.com/profile/18193908805797245856</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jimmy.schementi.com/2009/11/embedding-ironpython-in-silverlight.html' ref='tag:blogger.com,1999:blog-5419182.post-6825820697040619507' source='http://www.blogger.com/feeds/5419182/posts/default/6825820697040619507' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-44556053'/></entry></feed>
