On Apr 2, 5:29 pm, Steven D'Aprano
wrote:
> On Wed, 01 Apr 2009 21:58:47 -0700, Lie wrote:
> > On Apr 1, 7:06 pm, Steven D'Aprano
> > wrote:
>
> >> There is a major clash between the names of ordinals in human languages
> >> and zero-based counting. In human languages, the Nth-ordinal item comes
Consolidate existing functions?
I've thought about it.
For example, I have two functions:
#=
def startXXX(id):
pass
def startYYY(id):
pass
#=
I could turn it into one:
#=
def start(type, id):
if(type == "XXX"
[email protected] wrote:
> On Apr 1, 11:16 am, Joe Riopel wrote:
>> On Wed, Apr 1, 2009 at 10:43 AM, wrote:
>>> If anyone can give me some guidance what should be the best way to
>>> generate html/xhtml page using python would be great. I am open to
>>> other options like xsl or anything else tha
On Apr 3, 7:18 am, Emile van Sebille wrote:
> So, I think the question becomes, when does code need
> refactoring?
I would say that 99.9% of the times a single class with 15,000
lines of code is a signal that something is wrong,
and refactoring is needed.
M. Simionato
--
http://mail.
On 2 Apr, 06:41, guptha wrote:
> hi group,
> my application needs to sendSMSoccasionally to all the clients .Is
> there any library in python that supports in sendingSMS.
> I like to conform few information i gathered in this regard.
>
> I can sendSMSby two ways
>
> 1. SendingSMSusing Email clien
Steven D'Aprano wrote:
On Thu, 02 Apr 2009 16:51:24 -0700, Emile van Sebille wrote:
I refactor constantly during development to avoid code reuse through
cut-n-paste, but once I've got it going, whether it's 1000 or 6000
lines, it doesn't matter as long as it works.
If you've been refactoring
On Thu, 02 Apr 2009 16:51:24 -0700, Emile van Sebille wrote:
> 一首诗 wrote:
>> Hi all,
>>
>> I am a programmer who works with some different kinds of programming
>> languages, like python, C++(in COM), action script, C#, etc.
>>
>> Today, I realized that, what ever language I use, I always meet a
On Apr 2, 5:17 pm, grocery_stocker wrote:
> On Apr 2, 3:14 pm, grocery_stocker wrote:
>
> Discussion subject changed to "iterator question" by grocery_stocker
Well, I thought it was funny. 'iteratoration'. Next,
conversateration?
--
http://mail.python.org/mailman/listinfo/python-list
En Thu, 02 Apr 2009 08:06:22 -0300, Wolfgang Forstmeier
escribió:
On 02.04.2009 11:34, Gabriel Genellina wrote:
En Wed, 01 Apr 2009 17:51:52 -0300, Wolfgang Forstmeier
escribió:
what kind of error do I have with getting this error at starting my
app.
Im am not using IdleConf.GetOption rig
En Thu, 02 Apr 2009 08:06:22 -0300, Wolfgang Forstmeier
escribió:
On 02.04.2009 11:34, Gabriel Genellina wrote:
En Wed, 01 Apr 2009 17:51:52 -0300, Wolfgang Forstmeier
escribió:
what kind of error do I have with getting this error at starting my
app.
Im am not using IdleConf.GetOption rig
On Apr 2, 6:34 pm, Tim Wintle wrote:
> On Thu, 2009-04-02 at 15:16 -0700, Emile van Sebille wrote:
> > Lou Pecora wrote:
> > > Confusion only comes when you try to force the
> > > defintion of one of them on the other and then say it's illogical or not
> > > natural. Both are natural.
>
> > Consi
At 03:21 AM 4/3/2009 +0200, Matthias Klose wrote:
+1 speaking as a downstream packaging python for Debian/Ubuntu I
welcome this approach. The current practice of shipping the very
same file (__init__.py) in different packages leads to conflicts for
the installation of these packages (this is n
In article ,
andrew cooke wrote:
>
>sorry for the shouting, but someone asks this EVERY DAY AND I CAN'T TAKE
>ANY MORE.
Nobody's forcing you to respond. Nobody's forcing you to top-post,
either.
--
Aahz ([email protected]) <*> http://www.pythoncraft.com/
"Debugging is twic
On Fri, 03 Apr 2009 13:41:50 +1100, Ben Finney wrote:
> Steven D'Aprano writes:
>
>> I do not wish to type four literal spaces to indent the 'return' line,
>> or backspace four times to remove it, but with tab-completion I am
>> forced to. I'm used to pressing the TAB key once to get an indent.
Steven D'Aprano writes:
> The usual answer to that is that there's already two ways of clearing a
> list:
>
> del alist[:]
> alist[:] = []
>
> and we don't need a third way. Dicts and sets need a clear() method,
> because there's no equivalent to slicing.
>
> I still think that alist.clear()
Steven D'Aprano writes:
> I do not wish to type four literal spaces to indent the 'return'
> line, or backspace four times to remove it, but with tab-completion
> I am forced to. I'm used to pressing the TAB key once to get an
> indent. Within the interpreter, I do not care whether it inserts a
>
> Meh. Use the command line like God intended.
I'm sorry to say this Rhodri but there is probably no god ;)
The reason I like overlays is that they are data displays that
highlight changes without letting me do any action. The VCS works for
me before I'm doing any work with it and that's a good
On Thu, 02 Apr 2009 18:40:08 -0700, Zac Burns wrote:
> Is it really worth it to not implement list.clear and answer this
> question over and over again?
>
> I see no reason that a list shouldn't have a .clear method.
The usual answer to that is that there's already two ways of clearing a
list:
I'm working with another recruiter on this and his client needs a
Python Developer...someone who is a real expert. The position is in
Manhattan and they need someone ASAP. We are dealing with the manager
directly. Base salary is 120,000 - 130,000 not including bonus.
Please submit your resume
On Fri, 03 Apr 2009 02:40:08 +0100, Zac Burns wrote:
Is it really worth it to not implement list.clear and answer this
question over and over again?
For some value of "over and over again" that allows this to be the
first time I've seen it several months of reading the newsgroup.
I see no r
On Fri, 03 Apr 2009 08:51:47 +1100, Ben Finney wrote:
> Steven D'Aprano writes:
>
>> I like tab-completion, but I'd rather not be reduced to typing spaces
>> for indents in the interpreter. What do other people do?
>
> Acknowledge that using U+0009 for indentation is wrong, and use
> beautiful
On Apr 2, 6:33 pm, "Rhodri James" wrote:
> On Fri, 03 Apr 2009 02:07:38 +0100, grocery_stocker
> wrote:
>
> > Okay, I was thinking more about this. I think this is also what is
> > irking me. Say I have the following..
>
> a = [1,2,3,4]
> for x in a:
> > ... print x
> > ...
> > 1
>
Does anybody have any recommendations on how to interact with the data
file that updatedb generates? I'm running through a file list in
sqlite that I want to check against the file system. updatedb is
pretty optimized for building an index and storing it, but I see no
way to query the db file othe
On Thursday 02 April 2009 22:40:08 Zac Burns wrote:
> Is it really worth it to not implement list.clear and answer this
> question over and over again?
>
> I see no reason that a list shouldn't have a .clear method.
>
> --
> Zachary Burns
> (407)590-4814
> Aim - Zac256FL
> Production Engineer (Digi
Zac Burns wrote:
Is it really worth it to not implement list.clear and answer this
question over and over again?
I see no reason that a list shouldn't have a .clear method.
Does dict have a .clear method? Yes.
Does set have a .clear method? Yes.
Does list have a .clear method? No.
Of course
Diez B. Roggisch wrote:
[email protected] schrieb:
python's list needs a thing list.clear() like c# arraylist
and
some_list[:] = []
Or
del some_list[:]
--
http://mail.python.org/mailman/listinfo/python-list
Is it really worth it to not implement list.clear and answer this
question over and over again?
I see no reason that a list shouldn't have a .clear method.
--
Zachary Burns
(407)590-4814
Aim - Zac256FL
Production Engineer (Digital Overlord)
Zindagi Games
On Thu, Apr 2, 2009 at 5:32 PM, Esmail
grocery_stocker wrote:
On Apr 2, 4:41 pm, "andrew cooke" wrote:
Robert Kern wrote:
replace return with yield and it might work.
i have to go eat, but if it doesn't read the python docs on iterators -
for examplehttp://docs.python.org/reference/expressions.html#index-1825
No, .next() needs to
Rhodri James wrote:
> On Fri, 03 Apr 2009 02:07:38 +0100, grocery_stocker
> wrote:
>> Would 'a' somehow call __iter__ and next()? If so, does python just
>> perform this magically?
>
> No. It's "for" that invokes the iteration protocol; that's pretty
> much the definition of it. You have read th
On Fri, 03 Apr 2009 02:07:38 +0100, grocery_stocker
wrote:
Okay, I was thinking more about this. I think this is also what is
irking me. Say I have the following..
a = [1,2,3,4]
for x in a:
... print x
...
1
2
3
4
Would 'a' somehow call __iter__ and next()? If so, does python just
grocery_stocker wrote:
> Okay, I was thinking more about this. I think this is also what is
> irking me. Say I have the following..
>
a = [1,2,3,4]
for x in a:
> ... print x
> ...
> 1
> 2
> 3
> 4
>
> Would 'a' somehow call __iter__ and next()? If so, does python just
> perform th
grocery_stocker wrote:
> Okay, I was thinking more about this. I think this is also what is
> irking me. Say I have the following..
>
a = [1,2,3,4]
for x in a:
> ... print x
> ...
> 1
> 2
> 3
> 4
>
> Would 'a' somehow call __iter__ and next()? If so, does python just
> perform th
Martin v. Löwis schrieb:
> I propose the following PEP for inclusion to Python 3.1.
> Please comment.
>
> Regards,
> Martin
>
> Abstract
>
>
> Namespace packages are a mechanism for splitting a single Python
> package across multiple directories on disk. In current Python
> versions, an
While solving this problem, is it possible also to address an issue that
shows up in certain distributions? I'm specifically talking about the fact
that on Redhat/Fedora, we have on x86_64 both /usr/lib/pythonxx/ and
/usr/lib64/pythonxx. The former is supposed to be for non-arch specific
pack
On Apr 2, 4:41 pm, "andrew cooke" wrote:
> Robert Kern wrote:
> >> replace return with yield and it might work.
>
> >> i have to go eat, but if it doesn't read the python docs on iterators -
> >> for examplehttp://docs.python.org/reference/expressions.html#index-1825
>
> > No, .next() needs to be
At 10:33 PM 4/2/2009 +0200, M.-A. Lemburg wrote:
That's going to slow down Python package detection a lot - you'd
replace an O(1) test with an O(n) scan.
I thought about this too, but it's pretty trivial considering that
the only time it takes effect is when you have a directory name that
mat
Irmen de Jong wrote:
W. eWatson wrote:
I'm very new to PIL, and don't see any handbooks for 1.1.6 or the
forthcoming 1.1.7. In fact, this looks like the extent of them:
* Python Imaging Library Handbook for 1.1.5 (online)
* Python Imaging Library Handbook for 1.1.3 (PDF)
Somewhere in
Emile van Sebille wrote:
Esmail wrote:
Diez B. Roggisch wrote:
[email protected] schrieb:
python's list needs a thing list.clear() like c# arraylist
and
some_list[:] = []
I agree that this is nice and clear, but as a relative newbie
wouldn't
some_list = []
This is different --
一首诗 wrote:
Hi all,
I am a programmer who works with some different kinds of programming
languages, like python, C++(in COM), action script, C#, etc.
Today, I realized that, what ever language I use, I always meet a same
problem and I think I never solve it very well.
The problem is : how to br
Robert Kern wrote:
>> replace return with yield and it might work.
>>
>> i have to go eat, but if it doesn't read the python docs on iterators -
>> for example http://docs.python.org/reference/expressions.html#index-1825
>
> No, .next() needs to be a regular function that returns a value. What he
>
"[email protected]" writes:
> On Apr 2, 5:59 pm, Ben Finney wrote:
> > Thanks for your constructive criticism, and your considerate quote
> > trimming.
> Ben, you should use google groups.
No, I really shouldn't.
> No trimming necessary.
It's not me that should do the trimming.
http://en.wi
On Thu, 2009-04-02 at 15:16 -0700, Emile van Sebille wrote:
> Lou Pecora wrote:
> > Confusion only comes when you try to force the
> > defintion of one of them on the other and then say it's illogical or not
> > natural. Both are natural.
>
> Consider the French 'Premiere etage' vs the American
[email protected] wrote:
python's list needs a thing list.clear() like c# arraylist
and
python needs a writeline() method
--
http://mail.python.org/mailman/listinfo/python-list
(While you are correct that Python needs these things, a better
attitude, as a newbie, would be to *ask*
On Apr 2, 5:59 pm, Ben Finney wrote:
> Kay Schluehr writes:
> > Wow. You python-dev guys are really jumping the shark. Isn't your
> > Rube Goldberg "import machinery" already complex enough for you?
>
> Thanks for your constructive criticism, and your considerate quote
> trimming.
Ben, you shoul
On Thu, 02 Apr 2009 19:24:49 +0100, Kay Schluehr
wrote:
Good to know. Uninstalling a major feature that enhances usability
just to make it usable isn't much less ironic though.
Meh. Use the command line like God intended.
--
Rhodri James *-* Wildebeeste Herder to the Masses
--
http://mail
On 2009-04-02 18:08, andrew cooke wrote:
grocery_stocker wrote:
in summary: iterator is bound to one instance of "it", while some_func()
returns a new instance each time it is called.
BUT
while what you are doing is interesting, it is not the same as Python's
iterators, which use "yield" from
grocery_stocker wrote:
>
>>
>> in summary: iterator is bound to one instance of "it", while some_func()
>> returns a new instance each time it is called.
>>
>> BUT
>>
>> while what you are doing is interesting, it is not the same as Python's
>> iterators, which use "yield" from a function and don't
On Thu, 02 Apr 2009 23:55:48 +0100, Aaron Brady
wrote:
I switched to UDP. My average round-trip time is at 50 trips/sec, but
my worst round-trip time is still in the 10-20 range.
I also tried buffer sizes of 2**8 and 2**12, with about the same
results.
So, UDP might free up some processor
Esmail wrote:
Diez B. Roggisch wrote:
[email protected] schrieb:
python's list needs a thing list.clear() like c# arraylist
and
some_list[:] = []
I agree that this is nice and clear, but as a relative newbie
wouldn't
some_list = []
This is different -- it creates a new list. Co
On Apr 2, 8:53 pm, Kushal Kumaran wrote:
> On Thu, 2 Apr 2009 10:01:02 -0700 (PDT)
>
>
>
> gert wrote:
> > from subprocess import *
>
> > check_call(['mode', 'COM1:9600,N,8,1,P'],shell=True)
> > while True:
> > with open('com1', 'r') as f:
> > for line in f:
> > print('li
Quoting Esmail :
> Diez B. Roggisch wrote:
> >
> > some_list[:] = []
>
> I agree that this is nice and clear,
Not very intuitive, though, until you learn the syntax.
(but, slice accessing and slice assignment are among the first few things one
learns about python anyway, and once you learn it,
On Apr 2, 10:12 am, Miguel Prada wrote:
> I don't know if this might be causing your problem, but most socket
> implementations use quite a big buffer for incoming data by default. I
> had a lot of trouble with another real-time networked application
> until I realised this. Reducing this buffer t
Quoting [email protected]:
> python's list needs a thing list.clear() like c# arraylist
It has:
>>> l[:] = []
> python needs a writeline() method
Now, that could be useful, a writeline method that knew the EOL convention for
the OS and were not as deceiving as the current .writeline
Diez B. Roggisch wrote:
[email protected] schrieb:
python's list needs a thing list.clear() like c# arraylist
and
some_list[:] = []
I agree that this is nice and clear, but as a relative newbie
wouldn't
some_list = []
be also acceptable (and pythonic?)?
--
http://mail.python.org/
On Thu, 02 Apr 2009 23:37:16 +0100, grocery_stocker
wrote:
in summary: iterator is bound to one instance of "it", while some_func()
returns a new instance each time it is called.
BUT
while what you are doing is interesting, it is not the same as Python's
iterators, which use "yield" from
I'm trying to use python to create a sort of control bridge between
IRC and the Neverwinter Nights game client. One direction (output) is
easy; the game, conveniently, writes its logs to a text file - polling
and parsing do the rest in that regard.
However, input, as yet, eludes me. I've fooled
On Thu, 2009-04-02 at 06:50 -0700, Aaron Brady wrote:
> It's just that if you register a collision in between the time that
> one object has changed its position and momentum, and the time you
> learn about it, you have to retroactively edit the collision, restore
> hit points, and recalculate the
[email protected] schrieb:
python's list needs a thing list.clear() like c# arraylist
and
some_list[:] = []
python needs a writeline() method
print()
Diez
--
http://mail.python.org/mailman/listinfo/python-list
>
> in summary: iterator is bound to one instance of "it", while some_func()
> returns a new instance each time it is called.
>
> BUT
>
> while what you are doing is interesting, it is not the same as Python's
> iterators, which use "yield" from a function and don't require storing a
> value in a
On Thu, 02 Apr 2009 23:14:49 +0100, grocery_stocker
wrote:
Give the following code..
class it:
...def __init__(self):
...self.count = -1
...def next(self):
...self.count +=1
...if self.count < 4:
...return self.count
...else:
...
On Thu, 02 Apr 2009 17:02:30 +0100, David C. Ullrich
wrote:
Sometime I gotta get around to actually learning this 2.x
stuff. Thought I had an idea how 1.x worked...
3.x may come as a bit of a surprise :-)
--
Rhodri James *-* Wildebeeste Herder to the Masses
--
http://mail.python.org/mailma
python's list needs a thing list.clear() like c# arraylist
and
python needs a writeline() method
--
http://mail.python.org/mailman/listinfo/python-list
grocery_stocker wrote:
> Give the following code..
>
class it:
> ...def __init__(self):
> ...self.count = -1
> ...def next(self):
> ...self.count +=1
> ...if self.count < 4:
> ...return self.count
> ...else:
> ...raise StopIterati
grocery_stocker wrote:
How come when I call some_func().next(), the counter doesn't get
incremented?
Because you're creating a new instance each time you call it. Each new
instance starts with 0.
But when I call iterator.next(), it does.
That's because you're iterating over a single obje
On Apr 2, 3:14 pm, grocery_stocker wrote:
> Give the following code..
>
> >>> class it:
>
> ...def __init__(self):
> ...self.count = -1
> ...def next(self):
> ...self.count +=1
> ...if self.count < 4:
> ...return self.count
> ...else:
> ...
Lou Pecora wrote:
Confusion only comes when you try to force the
defintion of one of them on the other and then say it's illogical or not
natural. Both are natural.
Consider the French 'Premiere etage' vs the American 'First Floor'
Emile
--
http://mail.python.org/mailman/listinfo/python-l
Give the following code..
>>> class it:
...def __init__(self):
...self.count = -1
...def next(self):
...self.count +=1
...if self.count < 4:
...return self.count
...else:
...raise StopIteration
...
>>> def some_func():
... return
On 2009-04-02 09:59, Steven D'Aprano wrote:
I like tab-completion, but I'd rather not be reduced to typing spaces for
indents in the interpreter. What do other people do?
Any other suggestions or hints?
I use IPython. The completion is set up (I don't know how) such that tabbing for
indenta
Kay Schluehr writes:
> Wow. You python-dev guys are really jumping the shark. Isn't your
> Rube Goldberg "import machinery" already complex enough for you?
Thanks for your constructive criticism, and your considerate quote
trimming.
--
\ “I was married by a judge. I should have asked
Steven D'Aprano writes:
> I like tab-completion, but I'd rather not be reduced to typing
> spaces for indents in the interpreter. What do other people do?
Acknowledge that using U+0009 for indentation is wrong, and use
beautiful U+0020 always.
> The GNU readline library claims that M-tab (which
W. eWatson wrote:
I'm very new to PIL, and don't see any handbooks for 1.1.6 or the
forthcoming 1.1.7. In fact, this looks like the extent of them:
* Python Imaging Library Handbook for 1.1.5 (online)
* Python Imaging Library Handbook for 1.1.3 (PDF)
Somewhere in my recent search I see
In article
,
Carl Banks wrote:
>
> I think people were being facetious. To me the first item in the list
> is x[0]--ordinal does not match cardinal. However, I don't use
> ordinals much when talking about list items; I'll say item 2, not
> third item.
Well, it's been said in many forms in
On 2 Apr, 08:28, "Diez B. Roggisch" wrote:
> Simon Hibbs schrieb:
>
>
>
> > On 1 Apr, 21:43, Gary Herron wrote:
> >> Simon Hibbs wrote:
> >>> I'm trying to dump a snapshot of my application window to the
> >>> clipboard. I can use ImageGrab in PIL to get the screen data into a
> >>> PIL image obj
On 2009-04-02 17:32, Martin v. Löwis wrote:
> I propose the following PEP for inclusion to Python 3.1.
Thanks for picking this up.
I'd like to extend the proposal to Python 2.7 and later.
> Please comment.
>
> Regards,
> Martin
>
> Specification
> =
>
> Rather than using an impera
andrew cooke wrote:
> Chris Withers wrote:
>> Martin v. Löwis wrote:
>>> I propose the following PEP for inclusion to Python 3.1.
>>> Please comment.
>>
>> Would this support the following case:
>>
>> I have a package called mortar, which defines useful stuff:
>>
>> from mortar import content, ...
andrew cooke wrote:
I now want to distribute large optional chunks separately, but ideally
so that the following will will work:
from mortar.rbd import ...
from mortar.zodb import ...
from mortar.wsgi import ...
i may be misunderstanding, but i think you can already do this.
in lepl i have c
Chris Withers wrote:
> Martin v. Löwis wrote:
>> I propose the following PEP for inclusion to Python 3.1.
>> Please comment.
>
> Would this support the following case:
>
> I have a package called mortar, which defines useful stuff:
>
> from mortar import content, ...
>
> I now want to distribute la
Il Thu, 02 Apr 2009 13:44:38 +, Sion Arrowsmith ha scritto:
> mattia wrote:
>> So, I'm looking for a way to "reset" the next() value every
>>time i complete the scan of a list.
>
> itertools.cycle ?
Perfect, thanks.
--
http://mail.python.org/mailman/listinfo/python-list
In article <3103e4c6-831f-4408-947b-4bb0dddf0...@s22g2000prg.googlegroups.com>,
*nixtechno wrote:
>
>I have a fedora box and just installed python 2.6.1 along with 2.5.2,
>so here's my issue, if I removed the "systems" garbage RPM it would
>uninstall all the other crap along with it, so I went ahe
P.J. Eby wrote:
Apart from that, this mechanism sounds great! I only wish there was a
way to backport it all the way to 2.3 so I could drop the messy bits
from setuptools.
Maybe we could? :-)
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplist
Martin v. Löwis wrote:
I propose the following PEP for inclusion to Python 3.1.
Please comment.
Would this support the following case:
I have a package called mortar, which defines useful stuff:
from mortar import content, ...
I now want to distribute large optional chunks separately, but id
Echo wrote:
> 2009/4/2 Jeremiah Dodds
>
>> The one thing that makes me want to use git more than any other dvcs is
>> that you don't have to create a new directory for branches. This may be
>> possible in other dvcs's , but git is the only one I've seen advertise
>> the
>> capability.
[...]
> That
I'm very new to PIL, and don't see any handbooks for 1.1.6 or the
forthcoming 1.1.7. In fact, this looks like the extent of them:
* Python Imaging Library Handbook for 1.1.5 (online)
* Python Imaging Library Handbook for 1.1.3 (PDF)
Somewhere in my recent search I see that 1.1.6 has som
2009/4/2 Jeremiah Dodds
> The one thing that makes me want to use git more than any other dvcs is
> that you don't have to create a new directory for branches. This may be
> possible in other dvcs's , but git is the only one I've seen advertise the
> capability.
>
> --
> http://mail.python.org/ma
On 2009-04-02 11:30, Saurabh Kabra wrote:
> Can you guys recommend packages or
> combination of packages for such an application.
Apache + mod_wsgi + Django + matplotlib.
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 2, 12:39 am, [email protected] wrote:
> To add again: tuple unpacking in function arguments: it's handy, hi-
> level, de-clutters the code and shortens it too.
+1 But you will have to talk to Brett about it. He's the one
who led the effort to kill it.
> To change: I'd like {:
On Thu, Apr 2, 2009 at 11:38 AM, Carl Banks wrote:
> On Apr 2, 8:32 am, "Martin v. Löwis" wrote:
>> I propose the following PEP for inclusion to Python 3.1.
>> Please comment.
>>
>> Regards,
>> Martin
>>
>> Abstract
>>
>>
>> Namespace packages are a mechanism for splitting a single Pytho
On 2 Apr., 17:32, "Martin v. Löwis" wrote:
> I propose the following PEP for inclusion to Python 3.1.
> Please comment.
>
> Regards,
> Martin
>
> Abstract
>
>
> Namespace packages are a mechanism for splitting a single Python
> package across multiple directories on disk. In current Pytho
On Thu, 2 Apr 2009 10:01:02 -0700 (PDT)
gert wrote:
> from subprocess import *
>
> check_call(['mode', 'COM1:9600,N,8,1,P'],shell=True)
> while True:
> with open('com1', 'r') as f:
> for line in f:
> print('line')
>
> This works very well except for one thing. After a r
In article <50d06eb9-2b87-43a0-a7e2-6b68e35fc...@y34g2000prb.googlegroups.com>,
grocery_stocker wrote:
>
>Given the following code...
>
>import thread
Here's your problem; subclass threading.Thread instead, much easier.
--
Aahz ([email protected]) <*> http://www.pythoncraft
On Apr 2, 8:32 am, "Martin v. Löwis" wrote:
> I propose the following PEP for inclusion to Python 3.1.
> Please comment.
>
> Regards,
> Martin
>
> Abstract
>
>
> Namespace packages are a mechanism for splitting a single Python
> package across multiple directories on disk. In current Pyth
"Ross" wrote in message
news:d5cc0ec7-5223-4f6d-bab4-3801dee50...@r37g2000yqn.googlegroups.com...
... snip ...
> I would like to create a simple program where the pro could enter in
> how many people were in the league, the number of courts available,
> and the number of weeks the schedule would
guptha wrote:
hi group,
my application needs to send SMS occasionally to all the clients .Is
there any library in python that supports in sending SMS.
I like to conform few information i gathered in this regard.
I can send SMS by two ways
1. Sending SMS using Email clients
2. Using sms gateway
On 2 Apr., 15:05, David Smith wrote:
> Kay Schluehr wrote:
> > On 1 Apr., 07:56, Lawrence D'Oliveiro > central.gen.new_zealand> wrote:
> >> In message <35d429fa-5d13-4703-
>
> >> [email protected]>, John Yeung wrote:
> >>> Here's one that clearly expresses strong antip
On Apr 2, 8:02 am, 一首诗 wrote:
> You get it. Sometimes I feel that my head is trained to work in a
> procedural way. I use a big class just as a container of functions.
>
> About the "data-based" approach, what if these functions all shares a
> little data, e.g. a socket, but nothing else?
Then
On Thu, 2009-04-02 at 06:28 +, Steven D'Aprano wrote:
> In set theory, you start by defining the integers like this:
>
> 0 = len( {} )
> 1 = len( {{}} )
> 2 = len( {{}, {{}}} )
> 3 = len( {{}, {{}}, {{}, {{}}} )
> etc.
not quite len() - surely you mean something like "any object along with
an
On Thu, Apr 02, 2009 at 10:59:29AM EDT, Steven D'Aprano wrote:
> Does anyone use the tab-completion recipe in the docs?
>
> http://docs.python.org/library/rlcompleter.html#module-rlcompleter
>
> suggests using this to enable tab-completion:
>
> try:
> import readline
> except ImportError:
>
Dear Group,
I am new to python and I mostly use basic python scripts for small
mathematical/scientific/intrumentation applications.
Now, I want to make these application available to others by converting them
to web based applications (so that it can be used by several people on our
internal netwo
A new open source project has been started with the aim of building an
open Linux framework for TCP/IP enabled video camera systems.
http://www.openNetcam.net
The framework will be layered on the ultra lightweight SIMPL toolkit
(http://www.icanprogram.com/simpl) and when the framework is complete
When doing the same thing, I like
Using a dictionary to return a function or a class definition based on a
msg id and let that returned value "handle" the message that contained
the id. Something like
Class XYZ:
...
MyHandlers = {42:XYZ, ...
Message = read_from_somewhere_else()
Handl
1 - 100 of 180 matches
Mail list logo