Also try to keep the presentation interactive by asking questions to
your audience (unless some of them are already participating), otherwise
people will be snoring or texting after 20 minutes.
That is a v good suggestion.
the best presentation I ever attended was one on using an emergency
On Wed, 12 Sep 2012 06:15:21 -0700, Ramchandra Apte wrote:
On Wednesday, 12 September 2012 18:26:36 UTC+5:30, Jabba Laci wrote:
Hi,
I have an installer script that contains lots of little functions. It
has an interactive menu and the corresponding function is called. Over
time it
On Wed, 12 Sep 2012 07:41:10 -0700, dkatorza wrote:
בתאריך יום רביעי, 12 בספטמבר 2012 17:24:50 UTC+3, מאת dkat...@gmail.com:
hello ,
i'm new to Python and i searched the web and could not find an answer
for my issue.
i need to get an ip address from list of hostnames which are in
On Wed, 12 Sep 2012 18:56:46 +0200, Jabba Laci wrote:
For example:
def install_java():
pass
def install_tomcat():
pass
Thanks for the answers. I decided to use numbers in the name of the
functions to facilitate function calls. Now if you have this menu option
for instance:
On Fri, 31 Aug 2012 11:21:14 -0400, Kevin Walzer wrote:
On 8/31/12 11:18 AM, Arnaud Delobelle wrote:
I'm not trying to do anything. When a user presses the UP or DOWN
arrow, then a strange character is inserted in the Entry box. I'd
rather nothing happened.
Why is the user doing that?
On Thu, 16 Aug 2012 15:09:47 -0700, Charles Jensen wrote:
Everyone knows that the python command
ord(u'…')
will output the number 8230 which is the unicode character for the
horizontal ellipsis.
How would I use ord() to find the unicode value of a string stored in a
variable?
On Fri, 17 Aug 2012 02:27:42 +, Steven D'Aprano wrote:
On Fri, 17 Aug 2012 08:43:50 +1000, Chris Angelico wrote:
On Fri, Aug 17, 2012 at 6:54 AM, Eric Frederich
eric.freder...@gmail.com wrote:
Hello,
I have a bunch of Python bindings for a 3rd party software running on
the server
On Tue, 14 Aug 2012 12:33:20 +0100, Mark Lawrence wrote:
On 14/08/2012 03:54, Steven D'Aprano wrote:
On Mon, 13 Aug 2012 18:07:26 +0100, Mark Lawrence wrote:
On 13/08/2012 17:14, alex23 wrote:
On Aug 13, 10:37 pm, Mark Lawrence breamore...@yahoo.co.uk wrote:
Why on your say so?
My
On Sun, 12 Aug 2012 19:20:26 +0100, Mark Lawrence wrote:
On 12/08/2012 17:59, Paul Rubin wrote:
which can be simplified to:
for x in range(len(L)//2 + len(L)%2):
for x in range(sum(divmod(len(L), 2))): ...
So who's going to be first in with and thou shalt not count to 4...?
Five is right
On Thu, 09 Aug 2012 19:13:31 +1000, Chris Angelico wrote:
On Thu, Aug 9, 2012 at 7:05 PM, Jean-Michel Pichavant
jeanmic...@sequans.com wrote:
bruceg113...@gmail.com wrote:
I cannot change the function definition.
or better (imo)
testData(z) and make testData handle a list (8 parameters,
On Tue, 31 Jul 2012 08:15:32 +0100, Mark Lawrence wrote:
On 31/07/2012 02:20, Dennis Lee Bieber wrote:
On Mon, 30 Jul 2012 22:56:48 +, Dan Stromberg drsali...@gmail.com
declaimed the following in gmane.comp.python.general:
Sigh, and I'm also not keen on multi-line list comprehensions,
On Sun, 29 Jul 2012 01:51:48 +1000, Chris Angelico wrote:
On Sat, Jul 28, 2012 at 6:29 PM, Mark Lawrence breamore...@yahoo.co.uk
wrote:
I highly recommend the use of notepad++. If anyone knows of a better
text editor for Windows please let me know :)
My current preference is SciTE,
On Sun, 22 Jul 2012 10:29:44 -0500, Tony the Tiger wrote:
Hi,
Is there such a thing in the language, or do I have to invent it myself?
I came up with the following:
# options.modus_list contains, e.g., [2,3,4]
# (a string from the command line)
# MODUS_LIST contains, e.g.,
On Wed, 11 Jul 2012 08:43:11 +0200, Daniel Fetchinson wrote:
funcs = [ lambda x: x**i for i in range( 5 ) ]
print funcs[0]( 2 )
print funcs[1]( 2 )
print funcs[2]( 2 )
This gives me
16 16 16
When I was excepting
1
2
4
Does anyone know why?
And more importantly, what's the
On Sun, 01 Jul 2012 02:13:23 -0700, Panceisto wrote:
I assume the old code keeps running in some process somewhere. How to
fix this?
stop restart the servers after making the changes
--
Smoking is the leading cause of statistics.
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 30 Jun 2012 23:45:25 -0500, Evan Driscoll wrote:
On 6/30/2012 19:37, Chris Angelico wrote:
On Sun, Jul 1, 2012 at 10:08 AM, Ben Finney
ben+pyt...@benfinney.id.au wrote:
I know of no programming language that would give a newcomer to Python
that expectation. So where is the norm
On Sat, 30 Jun 2012 02:28:52 +, Steven D'Aprano wrote:
On Fri, 29 Jun 2012 19:41:11 +, Alister wrote:
also this section in main strikes me as a bit odd and convoluted
w = world()
serv = server(client)
w.server = serv serv.world = w
I think you are cross referencing
On Fri, 29 Jun 2012 14:49:11 -0600, Littlefield, Tyler wrote:
I am no expert but from what have picked up so far from x import is
frowned upon in most cases also this section in main strikes me as a bit
odd and convoluted w = world() serv = server(client) w.server = serv
serv.world = w I
On Sat, 30 Jun 2012 09:31:53 +, Alister wrote:
On Fri, 29 Jun 2012 14:49:11 -0600, Littlefield, Tyler wrote:
I am no expert but from what have picked up so far from x import is
frowned upon in most cases also this section in main strikes me as a
bit odd and convoluted w = world() serv
On Fri, 29 Jun 2012 09:03:22 -0600, Littlefield, Tyler wrote:
On 6/29/2012 1:31 AM, Steven D'Aprano wrote:
On Thu, 28 Jun 2012 20:58:15 -0700, alex23 wrote:
On Jun 29, 12:57 pm, Littlefield, Tyler ty...@tysdomain.com wrote:
I was curious if someone wouldn't mind poking at some code. The
On Sat, 30 Jun 2012 12:29:31 +0200, Peter Otten wrote:
Alister wrote:
I think I may be on firmer grounds with the next few:
isValidPassword can be simplified to
def isValidPassword(password:
count=len(password)
return count= mud.minpass and count= mud.maxpass
( I
On Sat, 30 Jun 2012 21:38:58 +0200, Thomas Jollans wrote:
On 06/30/2012 08:39 PM, Thomas 'PointedEars' Lahn wrote:
Peter Otten wrote:
If you spell it
def is_valid_password(password):
return mud.minpass = len(password) = mud.maxpass
it is even easier to see that you are performing an
On Fri, 29 Jun 2012 09:03:22 -0600, Littlefield, Tyler wrote:
On 6/29/2012 1:31 AM, Steven D'Aprano wrote:
On Thu, 28 Jun 2012 20:58:15 -0700, alex23 wrote:
On Jun 29, 12:57 pm, Littlefield, Tyler ty...@tysdomain.com wrote:
I was curious if someone wouldn't mind poking at some code. The
On Fri, 29 Jun 2012 13:27:54 -0700, Martin P. Hellwig wrote:
On Friday, 29 June 2012 20:41:11 UTC+1, Alister wrote:
On Fri, 29 Jun 2012 09:03:22 -0600, Littlefield, Tyler wrote:
On 6/29/2012 1:31 AM, Steven D'Aprano wrote:
On Thu, 28 Jun 2012 20:58:15 -0700, alex23 wrote:
On Jun 29
On Thu, 28 Jun 2012 20:28:40 +0800, Alex chen wrote:
I just want to write a python program,it can be called in the linux
terminal like the command cd to change the directory of the shell
terminal
That would not only be needlesly re-inventing the wheel but making it
square in the
On Thu, 07 Jun 2012 20:20:47 +, jkells wrote:
We are new to developing applications with Python. A question came up
concerning Python libraries being portable between Architectures.
More specifically, can we take a python library that runs on a X86
architecture and run it on a SPARC
On Thu, 07 Jun 2012 20:58:09 -0700, CM wrote:
On Jun 5, 10:10 am, Mark R Rivet markrri...@aol.com wrote:
I want a gui designer that writes the gui code for me. I don't want to
write gui code. what is the gui designer that is most popular?
I tried boa-constructor, and it works, but I am
On Thu, 24 May 2012 05:32:16 -0700, niks wrote:
Hello everyone..
I am new to asp.net...
I want to use Regular Expression validator in Email id verification..
Can anyone tell me how to use this and what is the meaning of this
\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*
this is not really a
On Wed, 23 May 2012 16:45:05 -0700, hsaziz wrote:
I am trying to join an online class that uses python. I need to brush up
on the language quickly. Is there a good book or resource that covers it
well but does not have to explain what an if..then..else statement is?
Thanks.
Dive into
What is the correct way to set the version of my package with distutils
when i build it using
python setup.py bdist_rpm
I have __version__=x.x.x in my main programm but if i add
from prog import __version__
into setup.py if fails when my prog tries to import gi.repository.
I suspect my
On Tue, 20 Mar 2012 04:30:51 +, MRAB wrote:
On 20/03/2012 03:19, Артём Назаров wrote:
Hi.
Sorry of my english :-)
code:
print
On Thu, 15 Mar 2012 00:34:47 +0100, Kiuhnm wrote:
I've just started to read
The Quick Python Book (2nd ed.)
The author claims that Python code is more readable than Perl code and
provides this example:
--- Perl ---
sub pairwise_sum {
my($arg1, $arg2) = @_;
my(@result) = ();
On Tue, 28 Feb 2012 19:59:40 -0800, scripts examples wrote:
Got a web site setup for solving euler problems in python, perl,
ruby and javascript.
Feel free to give me any feedback, thanks.
Failing to give a link to the site is a pretty fundamental failure
--
Please take note:
--
On Sun, 12 Feb 2012 12:11:01 +, Mark Lawrence wrote:
On 12/02/2012 08:26, Matej Cepl wrote:
On 12.2.2012 09:14, Matej Cepl wrote:
Obvious answers:
- Try decoding with UTF8 or Latin1. Even if you don't get the right
characters, you'll get *something*.
- Use open(filename,
On Thu, 08 Dec 2011 18:10:17 +, Grant Edwards wrote:
On 2011-12-08, Roy Smith r...@panix.com wrote:
On Thursday, December 8, 2011 10:03:38 AM UTC-5, Jean-Michel Pichavant
wrote:
string are iterable, considering this, the error is correct.
Yes, I understand that the exception is correct.
Alister Cordiner acordi...@gmail.com added the comment:
I think that workaround should be:
if not hasattr(threading.current_thread(), _children):
threading.current_thread()._children = weakref.WeakKeyDictionary()
--
nosy: +acordiner
___
Python
On Sat, 10 Sep 2011 04:20:17 -0700, Tigerstyle wrote:
Hi guys.
I'm strugglin with some homework stuff and am hoping you can help me out
here.
This is the code:
small_words = ('into', 'the', 'a', 'of', 'at', 'in', 'for', 'on')
def book_title(title):
Takes a string and returns a
On Sun, 14 Aug 2011 02:54:44 -0500, Andrew Berg wrote:
On 2011.08.14 12:57 AM, rantingrick wrote:
Follow these simply rules to become an accepted member of the Python
community.
Sounds good. You should consider submitting this as a PEP.
That would mark the first constructive action from
On Mon, 01 Aug 2011 15:42:19 -0700, Ethan Furman wrote:
Howdy,
I'm going to setup a few linux systems for testing (probably three) as
well as the three FreeBSD, OpenBSD, and (possibly) NetBsd. Oh, and
Windows. ;)
Any recommendations on which linuces to pick?
~Ethan~
I would suggest
On Fri, 29 Jul 2011 10:22:04 -0700, rantingrick wrote:
--
Overview of Problems:
--
* Too many methods exported.
* Poor choice of method names.
* Non public classes/methods exported!
*
On Tue, 12 Jul 2011 06:32:32 -0700, Gnarlodious wrote:
Question. Is there a special method or easy way to set default values
with each call to an instance? Any ideas to make it easier? What I want
to do is have a constantly updating set of values which can be
overridden. Just thought there
On Fri, 01 Jul 2011 14:28:13 -1000, Werner Thie wrote:
On 7/1/11 11:15 AM, Alister Ware wrote:
The subject probably say is all but to elaborate.
I am looking for a way to communicate with a tapi driver for a PBX so I
can experiment with creating some CTI (Computer Telephony Integration
The subject probably say is all but to elaborate.
I am looking for a way to communicate with a tapi driver for a PBX so I
can experiment with creating some CTI (Computer Telephony Integration)
software.
--
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 28 Jun 2011 12:33:27 -0700, Xah Lee wrote:
this will be of interest to those bleeding-edge pythoners.
“what… is the airspeed velocity of an unladen swallow?”
xahlee.org/funny/unladen_swallow.html
Xah
is that an African or European swallow?
--
--
On Mon, 13 Jun 2011 20:55:54 -0700, zainul franciscus wrote:
I started an open source file organizer called Miranda. Miranda is
inspired by Belvedere written by Adam Pash of Lifehacker (http://
lifehacker.com/341950/belvedere-automates-your-self+cleaning-pc). I know
you guys must be thinking
On Sun, 29 May 2011 12:47:52 +1200, Gregory Ewing wrote:
Irmen de Jong wrote:
I don't see how that is opposed to what Grant was saying. It's that
these 'contracts' tend to change and that people forget or are too lazy
to update the comments to reflect those changes.
However, I can't see
On Wed, 25 May 2011 10:18:48 +0200, Tracubik wrote:
Hi all,
i'm trying to write a simple windows with two button in GTK, i need a
way to identify wich button is pressed. Consider that:
the two button are connected (when clicked) to infoButton(self, widget,
data=None)
infoButton() is
On Mon, 16 May 2011 14:56:38 -0500, harrismh777 wrote:
alister ware wrote:
def callback(self,widget,data=None):
print widget #gives reference to radio
button ok print
widget.name #widget name on windoze, None on
linux
Well
On Sun, 15 May 2011 20:42:46 -0500, harrismh777 wrote:
Alister Ware wrote:
I have a simple call back defined for a radio button widget when I use
widget.name in linux I get a value of None, windows returns the
widget name as I would expect.
First, not familiar with your issue
On Fri, 13 May 2011 13:13:00 +, alister ware wrote:
I am using gtk.builder with a glade generated GUI
I have a simple call back defined for a radio button widget when I use
widget.name in linux I get a value of None, windows returns the widget
name as I would expect.
is this a bug
I am using gtk.builder with a glade generated GUI
I have a simple call back defined for a radio button widget when I use
widget.name in linux I get a value of None, windows returns the widget
name as I would expect.
is this a bug?
if not how should i find the name of the widget that has
On Sat, 07 May 2011 15:14:07 +1100, Даниил Рыжков wrote:
Thanks, Cristian! It works.
List of Pygtk: http://www.daa.com.au/mailman/listinfo/pygtk
Thanks again. Subscribed :)
2011/5/7 craf pyclut...@gmail.com:
Hi.
Try this:
#!/usr/bin/env python
import gtk.glade
class TestPyGtk:
On Thu, 05 May 2011 21:55:22 -0700, Ashraf Ali wrote:
Do you need legal help.If so Please visit
www.chicagopersonalinjurylawyerz.blogspot.com
sorry I would only use a reputable firm
(spaming a news group makes you disreputable by default)
--
My NOSE is NUMB!
--
On Wed, 20 Apr 2011 03:24:00 -0700, Paul Rubin wrote:
Markus mm.mpa...@googlemail.com writes:
Infoworld awarded it as best Python IDE, testing: Boa Constructor,
Eric, ActiveState's Komodo, Oracle's NetBeans, Aptana's Pydev,
PyScripter, SPE, Spyder, and WingWare's Wing IDE.
I saw somebody
On Thu, 17 Feb 2011 16:42:05 +0800, Werner wrote:
On 17/02/11 16:39, Chris Rebert wrote:
On Thu, Feb 17, 2011 at 12:27 AM, Werner wd...@netfront.net wrote:
I have a trivially simple piece of code called timewaster.py:
while True:
i =
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)
On Fri, 13 Aug 2010 07:40:42 -0700, blur959 wrote:
Hi all, I got a problem with my script. Everything looks good so far but
for some reason my os.rename isn't working. Can anyone tell me why? Hope
you guys could help. Thanks.
snip
You have a number of logic flaws in your code.
1st you do
On Sun, 11 Jul 2010 18:17:49 +, Duncan Booth wrote:
wheres pythonmonks wherespythonmo...@gmail.com wrote:
I'm an old Perl-hacker, and am trying to Dive in Python. I have some
easy issues (Python 2.6)
which probably can be answered in two seconds:
without going into details on how to
On Mon, 12 Jul 2010 14:54:00 -0700, nais-saudi wrote:
Why did I Embrace Islam?
snip
Very interesting good fro you but I cannot find any thing related to
python here.
--
This place just isn't big enough for all of us. We've got to find a way
off this planet.
--
On Sat, 12 Jun 2010 10:04:02 +, Phil H wrote:
On Sat, 12 Jun 2010 09:03:43 +, Phil H wrote:
Hi,
Trying my hand with Python but have had a small hiccup. Reading 'A
byte of Python' and created helloworld.py as directed.
snip
Any help appreciated
Phil
Thanks Peter Chris for your
On Thu, 10 Jun 2010 13:14:01 -0700, bolega wrote:
Which is the best implementation of LISP family of languages for real
world programming ?
http://wiki.alu.org/Implementation
Kindly pick one from commercial and one from open-source .
The criteria is :
libraries, gui interface and
On Wed, 09 Jun 2010 02:45:36 +, Deadly Dirk wrote:
On Tue, 08 Jun 2010 18:52:44 -0700, alex23 wrote:
Unless you have a clear need for 3rd party libraries that currently
don't have 3.x versions, starting with Python 3 isn't a bad idea.
From what I see, most of the people are still
On Wed, 26 May 2010 11:09:58 -0700, Chris Rebert wrote:
On Wed, May 26, 2010 at 10:48 AM, William Miner william.mi...@enig.com
wrote:
I’m relative new to python and I puzzled by the following strange (to
me) behavior. I was taking pieces from two old scripts to build a new
one. When I began
On Wed, 26 May 2010 12:43:29 -0700, John Nagle wrote:
Kushal Kumaran wrote:
On Tue, 2010-05-25 at 14:45 -0400, Victor Subervi wrote:
Hi;
I have this code:
clientCursor.execute('select ID from %s' % (personalDataTable))
upds = [itm[0] for itm in clientCursor] print input
On Wed, 26 May 2010 15:30:16 -0700, John Nagle wrote:
Alister wrote:
I think you should probably also write your execute differently:
clientCursor.execute('select ID from %s' , (personalDataTable,))
this ensures the parameters are correctly escaped to prevent mysql
injection attacks
On Mon, 24 May 2010 13:15:01 -0700, joy99 wrote:
Dear Group,
I have a small question on function.
If I write two functions like the following:
IDLE 2.6.5
def function1(n):
element1=5
element2=6
add=element1+element2
print PRINT THE ADDITION,add
def
On Mon, 24 May 2010 22:56:34 +0200, Vlastimil Brom wrote:
2010/5/24 joy99 subhakolkata1...@gmail.com:
Dear Group,
I have a small question on function.
If I write two functions like the following:
IDLE 2.6.5
def function1(n):
element1=5
element2=6
On Sun, 16 May 2010 12:07:08 +0300, Tuomas Vesterinen wrote:
I am testing an application GUI with Python 2.4, 2.5 and 2.6. The native
Python (in Fedora 12) is 2.6. Versions 2.4 and 2.5 are alt-installed.
Aplication GUI uses:
import pygtk
pygtk.require('2.0')
import gtk
import gobject
701 - 768 of 768 matches
Mail list logo