[no subject]

2012-12-15 Thread Dustin Guerri
Hi there, I'm new to Python and to programming. is this the right place for me to post a beginner question on Python use ? Many thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: odt2sphinx 0.2.3 released

2012-09-12 Thread Dustin J. Mitchell
On Wed, Sep 12, 2012 at 10:06 AM, wrote: > ߒߤߒߡߜߦߡ ß ß§ And that's why you shouldn't let your kids play with your iPad :) Dustin -- http://mail.python.org/mailman/listinfo/python-list

Re: Standard Asynchronous Python

2012-09-11 Thread Dustin J. Mitchell
Thanks for the second round of responses. I think this gives me some focus - concentrate on the API, talk to the framework developers, and start redrafting the PEP sooner rather than later. Thanks! Dustin -- http://mail.python.org/mailman/listinfo/python-list

Re: Standard Asynchronous Python

2012-09-10 Thread Dustin J. Mitchell
d PEP text, rather than re-drafting first. Thanks for the responses so far! Dustin -- http://mail.python.org/mailman/listinfo/python-list

Standard Asynchronous Python

2012-09-09 Thread Dustin J. Mitchell
sted asynchronous methods * Account for PEP 380 (by making the StopIteration workarounds match PEP 380, and explicitly deprecating them after Python 3.3) * Look forward to a world with software transactional memory [5] by matching that API where appropriate As I get to work on the PEP, I&#x

Re: web browsing short cut

2011-07-06 Thread Dustin Cheung
Okay thanks for the help guys, ill keep you guys posted. On Wed, Jul 6, 2011 at 1:19 PM, Ian wrote: > On 03/07/2011 02:21, Dustin Cheung wrote: > >> Hey guys, >> >> I am new to python. I want to make a shortcut that opens my websites and >> re-sizes them to dis

Re: web browsing short cut

2011-07-05 Thread Dustin Cheung
Chris Rebert wrote: > On Sat, Jul 2, 2011 at 6:21 PM, Dustin Cheung wrote: > > Hey guys, > > I am new to python. I want to make a shortcut that opens my websites > > and re-sizes them to display on different areas on the screen. I looked > > around but i had no luck. Is that

web browsing short cut

2011-07-02 Thread Dustin Cheung
om/' # the path to ie ie = webbrowser.get('c:\\program files\\internet explorer\\iexplore.exe') ie.open(url1) ie.open(url2) ie.open(url3) -- Dustin -- http://mail.python.org/mailman/listinfo/python-list

Re: SysLogHandler message formatting

2010-10-08 Thread Dustin C. Hatch
On Oct 7, 6:18 am, Vinay Sajip wrote: > Thanks for the detailed report. I tried posting a response a couple of times, > but Google appears to have swallowed it ... trying again. Sorry if it results > in > multiple responses. Hmm, I too seem to be experiencing this problem... > The SysLogHandler

Re: SysLogHandler message formatting

2010-10-08 Thread Dustin C. Hatch
On Oct 7, 6:18 am, Vinay Sajip wrote: > Thanks for the detailed report. I tried posting a response a couple of times, > but Google appears to have swallowed it ... trying again. Sorry if it results > in > multiple responses. Hmm, I too seem to be experiencing this problem... > The SysLogHandler

Re: SysLogHandler message formatting

2010-10-08 Thread Dustin C. Hatch
On Oct 7, 6:18 am, Vinay Sajip wrote: > Thanks for the detailed report. I tried posting a response a couple of times, > but Google appears to have swallowed it ... trying again. Sorry if it results > in > multiple responses. I tried to respond yesterday, but I also noticed this probelm. > The S

SysLogHandler message formatting

2010-10-06 Thread Dustin C. Hatch
compatibility with all syslog daemons. I found a couple of examples[2][3] of people describing the usage of SysLogHandler, but none of them mention a problem with formatting. Any thoughts or suggestions would be appreciated. I will patch my program to use the latter format string for now, but I would still

Re: refreshing the cache time of a key

2008-02-27 Thread Dustin Sallings
done on implementing such a thing. -- Dustin Sallings -- http://mail.python.org/mailman/listinfo/python-list

Re: Probably simple syntax error

2007-07-02 Thread Dustin MacDonald
= ["A", "B", "C"], so I figured the same would apply to accessing it (which is why for my list, which I created with parenthesis I assumed I accessed with parenthesis). Thank you =] ~Dustin -- http://mail.python.org/mailman/listinfo/python-list

Probably simple syntax error

2007-07-01 Thread Dustin MacDonald
d create. But since when is weights_array or small_randomizing_int a function? Both are being declared in the code on their first usage. This one has got me stumped, maybe you guys can help me out with it? Thanks, ~Dustin -- http://mail.python.org/mailman/listinfo/python-list

Redux: Allowing 'return obj' in generators

2007-06-10 Thread Dustin J. Mitchell
a decent number of implementations in the wild now (I have learned of Christopher Stawarz's 'multitask'[5] since last posting my PEP). With 2.5.1 out, might I suggest this is worth reconsidering for the 2.6 release? Dustin [1] http://www.python.org/dev/summary/2005-10-01_2005-10-15/

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-13 Thread dustin
this problem, leading to much phishing abuse. I don't necessarily think that the objection is strong enough to reject the idea -- programmers using non-ASCII symbols would be responsible for the consequences of their character choice. Dustin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python regular expressions just ain't PCRE

2007-05-05 Thread dustin
So, if you have a patch, there's a decent chance such a thing would be adopted. I'm not sure what your skill level is, but I would suggest studying the code, starting in on a patch for one or more of these features, and then corresponding with the module's maintainers to i

Re: _csv.Error: string with NUL bytes

2007-05-03 Thread dustin
> > file. > > > > > > Ciao, > > > > Marc 'BlackJack' Rintsch > > > > > How would I go about identifying where it is? > > > > A hex editor might be easiest. > > > > You could also use Python: > > > >

Re: _csv.Error: string with NUL bytes

2007-05-03 Thread dustin
t be easiest. You could also use Python: print open("filewithnuls").read().replace("\0", ">>>NUL<<<") Dustin -- http://mail.python.org/mailman/listinfo/python-list

Re: gpp (conditional compilation)

2007-05-02 Thread dustin
ility enables it to work with just about any underlying language. Dustin -- http://mail.python.org/mailman/listinfo/python-list

Re: Writing a nice formatted csv file

2007-05-02 Thread dustin
On Wed, May 02, 2007 at 07:28:32AM -0700, redcic wrote: > Well then how can I format a file ? for row in rows: print "".join([ "%-6s" % ("%d," % cell) for cell in row ]) The "%-6s" formats each column to be no less than six characters long; the "%d," formats the number with a comma after it.

Re: pre-PEP: Standard Microthreading Pattern

2007-05-01 Thread dustin
g it out. Thank you for the suggestion of an alternative! Dustin -- http://mail.python.org/mailman/listinfo/python-list

Re: pre-PEP: Standard Microthreading Pattern

2007-05-01 Thread dustin
(http://www.python.org/peps/pep-0342) > > 255, not 355 or 342 again: > http://www.python.org/dev/peps/pep-0255/ Thanks -- good catch! Dustin -- http://mail.python.org/mailman/listinfo/python-list

pre-PEP: Standard Microthreading Pattern

2007-05-01 Thread dustin
ing packaged up right now). - from a technical perspective (efficiency, compatibility, etc.) - regarding the two unresolved issues in the text And now, without further ado: PEP: XXX Title: Standard Microthreading Pattern Version: $Revision$ Last-Modified: $Date$ Author: Dustin J. Mitchell <[EMAIL PR

Re: How can I get the ascii code of a charter in python?

2007-05-01 Thread dustin
On Tue, May 01, 2007 at 02:06:21PM -0700, [EMAIL PROTECTED] wrote: > How can I get the ascii code of a charter in python? It's a builtin: >>> ord('*') 42 Dustin -- http://mail.python.org/mailman/listinfo/python-list

Re: modifying a list while iterating through

2007-02-26 Thread dustin . getz
On Feb 25, 9:15 pm, [EMAIL PROTECTED] wrote: > On Feb 25, 5:12 pm, [EMAIL PROTECTED] wrote: > > > consider the following working loop where Packet is a subclass of > > list, with Packet.insert(index, iterable) inserting each item in > > iterable into Packet at consecutive indexes starting at index.

modifying a list while iterating through

2007-02-25 Thread dustin . getz
consider the following working loop where Packet is a subclass of list, with Packet.insert(index, iterable) inserting each item in iterable into Packet at consecutive indexes starting at index. i=0 while(ihttp://mail.python.org/mailman/listinfo/python-list

python references

2007-02-05 Thread dustin . getz
>>> from Numeric import zeros >>> p=zeros(3) >>> p array([0,0,0]) >>> p[0] 0 >>> x=p[0] >>> x=10 >>> p array([0,0,0]) #actual behavior #array([10,0,0]) #desired behavior I want x to be a C++-esque reference to p[0] for convenience in a vector3 class. i dont want accessor methods. i know python c

Re: Calling functions

2006-10-19 Thread Dustin J. Mitchell
en 't = f()' results in 'funcA' being called, and its resulting being bound to 't'; 'determine' returns that result, and it's bound to 'n'. Is that not what you wanted? Dustin -- http://mail.python.org/mailman/listinfo/python-list

httplib problems -- bug, or am I missing something?

2006-10-19 Thread Dustin J. Mitchell
makes the whole thing work), but this comment makes me hesitant: # we do not use _safe_read() here because this may be a .will_close # connection, and the user is reading more bytes than will be provided # (for example, reading in 1k chunks) What's going on here? Is this a bug I sh

Re: Dictionaries again - where do I make a mistake?

2006-10-19 Thread Dustin J. Mitchell
unspecified. It's based on the details of their internal storage mechanism (a hash table), and you can't control it at all. If you need your pairs in a certain order, you'll have to use a list of tuples. Dustin -- http://mail.python.org/mailman/listinfo/python-list

python execution path

2005-01-17 Thread Dustin Lee
I'm wondering if there is a way to get python to show each line as it is executed, sort of like sh -x does for shell programs. Seems like this would be a nice debugging aid. dustin -- http://mail.python.org/mailman/listinfo/python-list