On Wed, Feb 16, 2011 at 10:44 PM, Malcolm Greene wrote:
> Andrea,
>
> What type of result do you get trying port 993 ?
i.e. The port Google explicitly says to use for IMAP in Gmail's help docs.
Cheers,
Chris
--
http://mail.python.org/mailman/listinfo/python-list
Xah Lee wrote:
> here's a interesting toy list processing problem.
>
> I have a list of lists, where each sublist is labelled by
> a number. I need to collect together the contents of all sublists
> sharing
> the same label. So if I have the list
>
> ((0 a b) (1 c d) (2 e f) (3 g h) (1 i j) (2 k
On Wed, Feb 16, 2011 at 6:59 PM, Adam Skutt wrote:
> On Feb 16, 9:00 pm, Dan Stromberg wrote:
>> So yeah, whether you use perl or anything else invoked with #!, you're
>> pretty much better off with sudo, or a tiny C wrapper that's so simple
>> it's hard to get wrong.
>
> UNIX makes this almost i
Andrea,
What type of result do you get trying port 993 ?
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
On 17 February 2011 10:28, BJ Swope wrote:
> Imap is not on port 443. IIRC, it's late and I'm to lazy to even google it
> right now, but it's port 143 isn't it.
I have tried that, and I get the following with imaplib:
Traceback (most recent call last):
File "D:\MyProjects\gmail.py", line
Imap is not on port 443. IIRC, it's late and I'm to lazy to even google it
right now, but it's port 143 isn't it.
On Wed, Feb 16, 2011 at 11:58 PM, Andrea Gavana wrote:
> Hi All,
>
>I apologize in advance if I'm going to write very stupid things,
> my expertise in http/socket/imap stuff is
On Wed, Feb 16, 2011 at 6:10 PM, GSO wrote:
>> pretty much better off with sudo, or a tiny C wrapper that's so simple
>> it's hard to get wrong. However, perl's taint feature would be useful
>
> This snippet is about as tiny as it gets in C I think:
Well, it could be tinier really, and actually,
Hi All,
I apologize in advance if I'm going to write very stupid things,
my expertise in http/socket/imap stuff is very close to zero. I'm
using Python 2.6.5 on Windows XP SP3.
I am trying to access my GMail account from my office, and it appears
our company's firewall is blocking all SMTP/PO
On 16Feb2011 12:01, Terry Reedy wrote:
| On 2/16/2011 1:32 AM, fireinice wrote:
| >I'm sorry, I found it should be the terminal width caused visual
| >problem, please kindly ignore this post.
|
| For future reference, the way to get more info about what is really
| in a string is to print its rep
Makoto Kuwata wrote:
> I'm sad about this restriction because:
>
> @recipe.product('*.html').ingreds('$(1).rst')
> def file_html(c):
> # do something
>
> is enough simple and more readable than:
>
> @recipe.product('*.html')
> @recipe.ingreds('$(1).rst')
> def file_html
I essentially don't want to take a risk with a home CCTV prog., so
unless I can persuade a highly skilled Unix programmer to write a
wrapper (which I can't), then I think I'm best sticking with sudo.
--
http://mail.python.org/mailman/listinfo/python-list
>
> Passing things through sudo(1) is really the only sensible route these
> days but even that can be fraught with peril. For something as simple
> as, 'Write to a normally restricted area' it's probably no more secure
> than an ACL (and potentially way less if you screw up the sudo
> configurati
On Thu, 17 Feb 2011 01:47:10 +0100, Alexander Kapps wrote:
>> Having said that I'm possibly arriving at the conclusion that a quick
>> perl script might be the simplest/easiest and most secure option - I
>> read perl includes code to safely run suid perl scripts - will dig out
>> my perl tomes.
>
On Feb 16, 9:00 pm, Dan Stromberg wrote:
> So yeah, whether you use perl or anything else invoked with #!, you're
> pretty much better off with sudo, or a tiny C wrapper that's so simple
> it's hard to get wrong.
UNIX makes this almost impossible unless your wrapper is cooperative
with whatever p
On Thu, Feb 17, 2011 at 11:40 AM, MRAB wrote:
> On 17/02/2011 01:55, Makoto Kuwata wrote:
>>
>> Thank you MRAB,
>>
>> On Thu, Feb 17, 2011 at 8:49 AM, MRAB wrote:
>>>
>>> You may want to read the discussion at:
>>>
>>>
>>> https://groups.google.com/group/python-ideas/browse_thread/thread/1eebf486
On Feb 16, 8:40 pm, GSO wrote:
> Apols for being a nuisance. I'm normally if anything a web programmer.
>
> It looks like there are set-id functions in the os module. Further I
> don't actually need root privileges, just write access to a directory
> that a user ordinarily does not have write ac
On 17/02/2011 01:55, Makoto Kuwata wrote:
Thank you MRAB,
On Thu, Feb 17, 2011 at 8:49 AM, MRAB wrote:
You may want to read the discussion at:
https://groups.google.com/group/python-ideas/browse_thread/thread/1eebf486969c39a1/?hl=en
--
I can't figure out what is the point or conclusion of t
Bubba wrote:
> William Ahern's log on stardate 16 vlj 2011
> /snip
> > I think that there's an asynchronous all-Python MySQL library, but
> > I'm not sure. Maybe one day I can open source my asynchronous MySQL C
> > library. (I always recommend people to use PostgreSQL, though; which
> > is supe
> pretty much better off with sudo, or a tiny C wrapper that's so simple
> it's hard to get wrong. However, perl's taint feature would be useful
This snippet is about as tiny as it gets in C I think:
#include
int main (int argc, char ** argv) {
int err;
char *newenv[] = { NULL };
if ((err =
On Wed, Feb 16, 2011 at 4:47 PM, Alexander Kapps wrote:
> On 17.02.2011 01:00, GSO wrote:
>> Having said that I'm possibly arriving at the conclusion that a quick
>> perl script might be the simplest/easiest and most secure option - I
>> read perl includes code to safely run suid perl scripts - wi
Thank you MRAB,
On Thu, Feb 17, 2011 at 8:49 AM, MRAB wrote:
> You may want to read the discussion at:
>
> https://groups.google.com/group/python-ideas/browse_thread/thread/1eebf486969c39a1/?hl=en
> --
I can't figure out what is the point or conclusion of that discussion.
Is there any technical
Apols for being a nuisance. I'm normally if anything a web programmer.
It looks like there are set-id functions in the os module. Further I
don't actually need root privileges, just write access to a directory
that a user ordinarily does not have write access to (and preferably
not read). So a
On Feb 16, 1:59 pm, William Ahern
wrote:
> Bubba wrote:
>
>
>
>
>
>
>
>
>
>
>
> > import asyncore
> > import socket
> > import string
> > import MySQLdb
> > import sys
>
> > def __init__(self, host, port):
> > asyncore.dispatcher.__init__(self)
> > self.create_socket(socket.
On 2/16/2011 11:45 AM, Grant Edwards wrote:
Thanks for the advice!
Is it the intent to generate code with wxGlade and then rather
"import" that code into an Eclipse project context? Or, should
one expect to be able to create hooks (e.g. for Tools) in Eclipse
that will do that? If so, how?
Tha
On 17.02.2011 01:00, GSO wrote:
OK, thanks for the tips.
gksu* does not seem to be included with RHEL6 Desktop (though there is
a package called beesu)
On RHEL try consolehelper/userhelper instead which need additional
configuration.
The philosophy at the end of the day I think
is do your
On Thu, 17 Feb 2011 10:12:52 +1100, Ben Finney wrote:
> Terry Reedy writes:
>
>> The most import thing is automated tests.
>
> Steven D'Aprano writes:
>
>> The most important thing is structured programming and modularization.
>
>
> Steel-cage death match. FIGHT!
To the death? No, to the p
OK, thanks for the tips.
gksu* does not seem to be included with RHEL6 Desktop (though there is
a package called beesu), and besides which it appears gksu is
deprecated[1]. Either way c wrapper or sudo approach it is a tactical
decision, and the former is probably a better option with the problem
On 16/02/2011 23:25, Makoto Kuwata wrote:
Hi,
I have a question about decorator.
I tried the following example and got Syntax Error.
class deco(object):
def __init__(self, name):
self._name = name
def foo(self, value):
self._foo = value
On Tue, 15 Feb 2011 07:06:35 -, Steven D'Aprano
wrote:
On Sun, 13 Feb 2011 23:42:06 +, Rhodri James wrote:
On Fri, 11 Feb 2011 02:08:01 -, Steven D'Aprano
wrote:
On Thu, 10 Feb 2011 15:48:47 +, Cousin Stanley wrote:
Steven D'Aprano wrote:
I have a tkinter application
Hi,
I have a question about decorator.
I tried the following example and got Syntax Error.
class deco(object):
def __init__(self, name):
self._name = name
def foo(self, value):
self._foo = value
return self
def __call__(self, func):
In article
,
snorble wrote:
> I use Python a lot, but not well. I usually start by writing a small
> script, no classes or modules.
One anti-pattern that I see in my own code is starting out thinking,
"this is just a little script, I doesn't need any real structure". That
almost always turn
Terry Reedy writes:
> The most import thing is automated tests.
Steven D'Aprano writes:
> The most important thing is structured programming and modularization.
Steel-cage death match. FIGHT!
--
\ “[W]e are still the first generation of users, and for all that |
`\ we may have
On Wed, 16 Feb 2011 10:35:28 -0800, snorble wrote:
> I use Python a lot, but not well. I usually start by writing a small
> script, no classes or modules. Then I add more content to the loops, and
> repeat. It's a bit of a trial and error learning phase, making sure I'm
> using the third party mod
Anything from Chuck Missler . I've lost my collection.
Thanks.
--
- --- -- -
Posted with NewsLeecher v4.0 Final
Web @ http://www.newsleecher.com/?usenet
--- - -- -
--
http://mail.python.org/mailman/listinfo/python-list
On 2/16/2011 1:26 PM GSO said...
I'm sure this question is as old as time, but what is the best way to
gain root privileges? (Am using Python 2.6.5, pygtk2 v2.16, Gtk
v2.18.9, on RHEL6.)
have root's password?
Emile
--
http://mail.python.org/mailman/listinfo/python-list
On 16.02.2011 23:02, Ian Kelly wrote:
On Wed, Feb 16, 2011 at 2:29 PM, Daniel Mahoney wrote:
On Wed, 16 Feb 2011 21:26:26 +, GSO wrote:
I'm sure this question is as old as time, but what is the best way to
gain root privileges? (Am using Python 2.6.5, pygtk2 v2.16, Gtk
v2.18.9, on RHEL6.
On 2/16/2011 1:35 PM, snorble wrote:
I use Python a lot, but not well. I usually start by writing a small
script, no classes or modules. Then I add more content to the loops,
and repeat. It's a bit of a trial and error learning phase, making
sure I'm using the third party modules correctly, and s
On Wed, Feb 16, 2011 at 4:27 AM, Chris Rebert wrote:
> On Wed, Feb 16, 2011 at 1:17 AM, Gilles Ganault wrote:
> > Hello,
> >
> > For a game, I need to go through a wordlist, and for each word,
> > compute its value, ie. a=1, b=2, etc.
> >
> > So for instance, NewYork = 14 + 5 + 23 + 25 + 15 + 18
On Wed, 16 Feb 2011 21:26:26 +, GSO wrote:
> I'm sure this question is as old as time, but what is the best way to
> gain root privileges? (Am using Python 2.6.5, pygtk2 v2.16, Gtk
> v2.18.9, on RHEL6.)
>
> Ta,
>
>
> G.
>
> gmotion
> PyGTK desktop GUI for Motion (software motion detector)
might be interesting.
〈Problems of Symbol Congestion in Computer Languages (ASCII Jam;
Unicode; Fortress)〉
http://xahlee.org/comp/comp_lang_unicode.html
--
Problems of Symbol Congestion in Computer Languages (ASCII Jam;
Unicode; Fortress)
Xah Lee,
On Wed, Feb 16, 2011 at 10:35 AM, snorble wrote:
> I use Python a lot, but not well. I usually start by writing a small
> script, no classes or modules. Then I add more content to the loops,
> and repeat. It's a bit of a trial and error learning phase, making
> sure I'm using the third party modul
On Wed, Feb 16, 2011 at 2:29 PM, Daniel Mahoney wrote:
> On Wed, 16 Feb 2011 21:26:26 +, GSO wrote:
>
>> I'm sure this question is as old as time, but what is the best way to
>> gain root privileges? (Am using Python 2.6.5, pygtk2 v2.16, Gtk
>> v2.18.9, on RHEL6.)
>
> Gain root privileges for
On Wed, 16 Feb 2011 15:29:53 -0600, Daniel Mahoney wrote:
> On Wed, 16 Feb 2011 21:26:26 +, GSO wrote:
>
>> I'm sure this question is as old as time, but what is the best way to
>> gain root privileges? (Am using Python 2.6.5, pygtk2 v2.16, Gtk
>> v2.18.9, on RHEL6.)
>
> Gain root privilege
thanks to your hint about drive format, i contacted MacDrive and they
confirmed it was an incorrect setting, i have since fixed the setting
and all is working!
not a python bug!
thanks for the replies.
-dave
--
http://mail.python.org/mailman/listinfo/python-list
I use vim, but I've considered switching to pycharm. I don't know if
pycharm does this or not.
Anyway, coverage.py will produce an HTML report describing how well
your automated tests cover your code - I like to add it into my
Makefile's default rule, and then view the HTML once in a while using
On Wed, 16 Feb 2011 21:26:26 +, GSO wrote:
> I'm sure this question is as old as time, but what is the best way to
> gain root privileges? (Am using Python 2.6.5, pygtk2 v2.16, Gtk
> v2.18.9, on RHEL6.)
Gain root privileges for a script? Write a c wrapper to call the script,
chown it (the w
I'm sure this question is as old as time, but what is the best way to
gain root privileges? (Am using Python 2.6.5, pygtk2 v2.16, Gtk
v2.18.9, on RHEL6.)
Ta,
G.
gmotion
PyGTK desktop GUI for Motion (software motion detector)
http://code.google.com/p/gmotion/
--
http://mail.python.org/mailman/
ah! an interesting point! hmm yes when i'm running parallels, both the
source and destination are sortof "Network Drive"'s, they're actually
my native mac drives (file system reported as "PrlSF"). In this
situation all works well. the reported getfilesystemencoding() is
'mbcs' which is a convenie
I decided that I finally want to get auto-completion and other really cool
things for my python/emacs environment.
Rope also looks really great and being able to refactor easily would really be
a dream :) (no more excuses from java developers then)
http://rope.sourceforge.net/
Pymacs is already
ah! an interesting point! hmm yes when i'm running parallels, both the
source and destination are sortof "Network Drive"'s, they're actually
my native mac drives (file system reported as "PrlSF"). In this
situation all works well. the reported getfilesystemencoding() is
'mbcs' which is a convenie
Hi;
I have this code:
db = MySQLdb.connect(host, user, passwd, db)
cursor= db.cursor()
cursor.execute(sql, id)
db.commit()
It throws no errors and gives every indication that it executes the command.
I've printed out the command and the id and executed it successfully in
mysql...but not in
On 2011-02-16, Fred Marshall wrote:
> I can already program in a few languages
That should make things easy.
> (but not C++)
That should help even more
> and, since Python comes to highly recommended, I figured to venture
> into it.
>
> I'm used to using an IDE.
>
> So, after some web browsi
On Wed, Feb 16, 2011 at 12:23, benhoyt wrote:
>
> > AFAIK, the Windows performance counter has long-term accuracy issues,
> > so neither is perfect. Preferably we should have a timer with the long-
> > term accuracy of time.time and the short-term accuracy of time.clock.
>
> Thanks for the tip --
Are there any editors/IDEs with good support for line-coloring from Python test
coverage results? (I normally use Eclipse + PyDev but PyDev's current coverage
support isn't much better than nothing.)
Thanks,
Matt
--
http://mail.python.org/mailman/listinfo/python-list
William Ahern's log on stardate 16 vlj 2011
/snip
> I think that there's an asynchronous all-Python MySQL library, but
> I'm not sure. Maybe one day I can open source my asynchronous MySQL C
> library. (I always recommend people to use PostgreSQL, though; which
> is superior in almost every way,
I can already program in a few languages (but not C++) and, since Python
comes to highly recommended, I figured to venture into it.
I'm used to using an IDE.
So, after some web browsing and reading, I did the following:
Installed Python
Installed EasyEclipse
Installed wxPython
Installed wxGlad
On Wed, Feb 16, 2011 at 1:28 PM, dave wrote:
> figure it out. it's very easy to test it yourself, just make a file
> with the section symbol in it, then try to copy it with python 2.7.1
This works fine for me on Windows XP and python 2.6.4 on an NTFS
formatted drive. Are either your source or d
On Wed, Feb 16, 2011 at 12:35 PM, snorble wrote:
> I use Python a lot, but not well. I usually start by writing a small
> script, no classes or modules. Then I add more content to the loops,
> and repeat. It's a bit of a trial and error learning phase, making
> sure I'm using the third party modul
Bubba wrote:
> import asyncore
> import socket
> import string
> import MySQLdb
> import sys
> def __init__(self, host, port):
> asyncore.dispatcher.__init__(self)
> self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
> self.set_reuse_addr()
> self.bind((ho
I use Python a lot, but not well. I usually start by writing a small
script, no classes or modules. Then I add more content to the loops,
and repeat. It's a bit of a trial and error learning phase, making
sure I'm using the third party modules correctly, and so on. I end up
with a working script, b
> For example, are you assuming that your clock() call in logging is
> the very first call made?
Yes, we were making that assumption (the time.clock() call in the import of our
log module), which was true in our code, but I can see where it's not a good
thing to assume generally.
> Also, IIUC
i don't see an "active python 3.2" i see "3.1" and "Many 3rd-party
modules and extensions that you may depend upon may not yet be
available for Python 3. As a result you may want to continue to use
Python 2 for the time being". and i depend on some 3rd party modules.
no i really think it's someth
> AFAIK, the Windows performance counter has long-term accuracy issues,
> so neither is perfect. Preferably we should have a timer with the long-
> term accuracy of time.time and the short-term accuracy of time.clock.
Thanks for the tip -- yes, I hadn't thought about that, but you're right,
Quer
Richard Kettlewell's log on stardate 10 vlj 2011
> Rewrites can help but they can also go badly wrong. Rewriting into a
> language you don't yet know seems especially likely to fall into the
> latter category!
Indeed.
However, it seems to be quite "doable", as it took me from 0 knowledge
of Pyt
On 2/15/2011 11:50 PM, dave wrote:
i'm on windows, using active python 2.7.1
i've written a script to copy a folder of files to dest folder..
one if the files in this folder has the section symbol (§, '\x15') as
part of the file name
shutil.copy(src_file, dst_file) "can't find the file specifie
Hi;
I would like to build a component where the user can go to a page, say he'd
like to upload so many ("x") number of photos, click a button and without
leaving the page have three sets of upload widgets pop up. I think this is
done with Json; however, I can't find much info or tutorials on the sa
On Wed, Feb 16, 2011 at 09:34, sturlamolden wrote:
> On 16 Feb, 15:30, benhoyt wrote:
>
> > It seems to me that the logging module should use a millisecond-accurate
> timestamp (time.clock) on Windows, just like the "timeit" module does.
>
> AFAIK, the Windows performance counter has long-term a
On 2/16/2011 1:32 AM, fireinice wrote:
On Feb 16, 1:24 am, fireinice wrote:
Hi, all
I'm just working around to generate some fake file for parsing. and I
notice some weired thing happen.
time = str(random.randint(1000, ))
s_id = str(random.randint(1
On 16 Feb, 15:30, benhoyt wrote:
> It seems to me that the logging module should use a millisecond-accurate
> timestamp (time.clock) on Windows, just like the "timeit" module does.
AFAIK, the Windows performance counter has long-term accuracy issues,
so neither is perfect. Preferably we should
On Feb 16, 2:30 pm, benhoyt wrote:
> It seems to me that the logging module should use a millisecond-accurate
> timestamp (time.clock) on Windows,
> just like the "timeit" module does.
It's not an unreasonable request, though I don't think logging should
be used to time things accurately. I'm a
> A simpler solution would be to caclulate the time it takes to the handle
> the request using time.clock() and include it in the log message.
> Something like:
Thanks, Ross. Actually, we are doing exactly that already -- it's how we
noticed the timestamp issue in the first place. However, that
In article
<6849fd3f-5116-4b35-b274-dc76ae39f...@a11g2000pro.googlegroups.com>,
RJB wrote:
> On Feb 16, 12:48 am, Eric Brunel
> wrote:
> > In article ,
> > Doug Epling wrote:
> >
> > > hey, does anyone find the UML useful during Python development of larger
> > > projects?
> >
> > Well, UML
El Wednesday February 16 2011, DPalao escribió:
> Dear all,
> I'm trying to use shelve to store some data, but sheve itself tries to
> import
>
> bsddb, which results in:
> > File "/usr/lib64/python2.6/shelve.py", line 239, in open
> >
> > return DbfilenameShelf(filename, flag, protocol,
On Tue, 15 Feb 2011 18:55:50 -0500, Gerald Britton wrote:
> So, what's the feeling out there? Go with map and the operators or
> stick with the list comps?
Stick to whatever feels and reads better at the time.
Unless you have profiled your code, and determined that the map or list
comp was the
I am writing a small Tkinter utility to control archive files in
multiple formats (mainly for my own amusement and education).
Basically it presents the user with two adjacent listboxes, one with
the contents of the target directory and one with the contents of the
archive. By clicking buttons labe
On Feb 16, 12:48 am, Eric Brunel
wrote:
> In article ,
> Doug Epling wrote:
>
> > hey, does anyone find the UML useful during Python development of larger
> > projects?
>
> Well, UML being very Java/C++ oriented, I found out that Python idioms
> were really difficult to represent in the diagrams
On Tue, 15 Feb 2011 19:39:30 -0800, alex23 wrote:
> Andrea Crotti wrote:
>> At the moment I have this ugly inliner
>> interleaved = ':'.join(orig[x:x+2] for x in range(0,
>> len(orig), 2))
>
> I actually prefer this over every other solution to date.
Agreed. To me, it's the simp
Dear all,
I'm trying to use shelve to store some data, but sheve itself tries to import
bsddb, which results in:
> File "/usr/lib64/python2.6/shelve.py", line 239, in open
> return DbfilenameShelf(filename, flag, protocol, writeback)
> File "/usr/lib64/python2.6/shelve.py", line 223, in _
On Tue, 15 Feb 2011 22:17:13 -0700, spam wrote:
> I didn't explain my problem, chose a terrible example. This is more what
> I'm trying to do:
[snip "thingy" class]
No, your first example was better. This one is terrible -- it's so
generic it's meaningless.
In any case, you don't explain why
On Tue, 15 Feb 2011 19:23:39 -0700, spam wrote:
> How can I do something like this in python:
>
> #!/usr/bin/python3.1
>
> class MyNumbers:
>def __init__(self, n):
> self.original_value = n
> if n <= 100:
>self = SmallNumers(self)
> else:
>self = BigNumbers(sel
Hello friends how r u all? what about indian hot girls? just visit
www.hotpictures-glaxi.blogspot.com
www.onlinetv-glaxi.blogspot.com
www.onlineradio-glaxi.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list
Martin P. Hellwig schrieb:
On 02/16/11 09:04, Arndt Roger Schneider wrote:
[snip]
tkpath does not seem to come standard with Python's tk version when I
looked into it a couple of years ago, but maybe it has now?
tk canvas and tkpath share the same interface, the first tkpath was
a plugin i
On 02/16/11 09:04, Arndt Roger Schneider wrote:
raster images from SVG:
There are multiple methods to convert a scalable vector graphic
into a bitmap.
In addition to cairo, librsvg and rsvg imageMagick contains a
vector graphic format similar to svg--gradients and transparency
are problematic fo
Hi all,
I'm glad to inform you about new, 4th OpenOpt Suite module:
SpaceFuncs - a tool for 2D, 3D, N-dimensional geometric modeling with
possibilities of parametrized calculations, numerical optimization and
solving systems of geometrical equations.
For details see its home page
http://openopt.o
On Wed, Feb 16, 2011 at 1:17 AM, Gilles Ganault wrote:
> Hello,
>
> For a game, I need to go through a wordlist, and for each word,
> compute its value, ie. a=1, b=2, etc.
>
> So for instance, NewYork = 14 + 5 + 23 + 25 + 15 + 18 + 11 = 111.
>
> Before I write the obvious While loop to go through
Hello,
For a game, I need to go through a wordlist, and for each word,
compute its value, ie. a=1, b=2, etc.
So for instance, NewYork = 14 + 5 + 23 + 25 + 15 + 18 + 11 = 111.
Before I write the obvious While loop to go through each line in the
input text file, I was wondering if Python didn't al
On 02/16/2011 06:05 AM, Richard Thomas wrote:
On Feb 16, 2:23 am, s...@uce.gov wrote:
How can I do something like this in python:
#!/usr/bin/python3.1
class MyNumbers:
def __init__(self, n):
self.original_value = n
if n<= 100:
self = SmallNumers(self)
else:
Martin P. Hellwig schrieb:
Hi all,
Information on using tkinter for displaying an svg image seems a bit low
spread on the Internet. I recently played around with pygame and svg and
realized, hold on this can be done with tk too. So I thought I post a
little example for future generations :-)
In article ,
"Richard D. Moores" wrote:
> I recently wrote some code that prints information about the 'jukugo'
> used in Japanese newspaper articles. A jukugo is a Japanese word
> written with at least 2 kanji. An example of a 2-kanji jukugo is 屿©
> (kiki -- crisis). I found that I could no
In article ,
Doug Epling wrote:
> hey, does anyone find the UML useful during Python development of larger
> projects?
Well, UML being very Java/C++ oriented, I found out that Python idioms
were really difficult to represent in the diagrams. So I'm using it to a
very small extent and for doc
90 matches
Mail list logo