Re: Need some help with Python Job Board

2017-11-12 Thread Skip Montanaro
Thanks, Justin. I imagine editors probably exist which can switch between WYSIWYG and markup. Whether that markup can be Markdown or not, I don't know. Marc-André Lemburg listed a few possible editors in the ticket he opened, but I've not dug into their properties. Skip On Sun, Nov 12, 2017 at 11

Re: Need some help with Python Job Board

2017-11-12 Thread justin walters
On Sat, Nov 11, 2017 at 3:27 PM, Skip Montanaro wrote: > The Python Job Board could use a little help in a couple areas. One, we can > always use help reviewing and approving (or rejecting) submissions. The > backlog keeps growing, and the existing volunteers who help can't always > keep up. (Thi

Re: Need some help with argparse

2017-10-03 Thread Ben Finney
Kryptxy via Python-list writes: > I have a group of arguments, say: (-a, -b, -c, -d, -e) [lets call it group1] > I have another group, say: (-z, -y, -x, -w) [lets call it group2] Argument groups are a feature to control the help output from the parser: When an argument is added to the grou

Re: Need some help managing project and making it a little simple (pretty messed up code)

2017-08-16 Thread dieter
Kryptxy via Python-list writes: > ... > I am new to python. While learning python, I began a side project. Its a > command-line search program. > ... > But, I am unable to understand how I should begin structuring the project > (updating code according to OOP). If someone could have a look? Coul

Re: Need some help with NetGroupAddUser

2014-11-11 Thread MRAB
On 2014-11-11 04:30, Jaimin Ajmeri wrote: cfl.rr.com> writes: New B question -- Need help with win32net.NetGroupAddUser. I used Mark Hammond sample code to create a new user from his book Python Programming on Win32. I then added one line to add the newuser to a group. def CreateUserAndS

Re: Need some help with NetGroupAddUser

2014-11-11 Thread Jaimin Ajmeri
cfl.rr.com> writes: > > New B question -- Need help with win32net.NetGroupAddUser. I used Mark Hammond > sample code to create a new user from his book Python Programming on Win32. I > then added one line to add the newuser to a group. > def CreateUserAndShare(userName, fullName): > home

Re: Need some help confirming transactions using sha256

2013-02-01 Thread Christian Heimes
Am 31.01.2013 18:55, schrieb Peter Pearson: txid = 'r7A7clvs9waizF+6QEiI0tgAq1ar48JItK3kg9kaeAFXz2vsMsHmOd9r9fhkmtxTz3CQnGAPMaDeKLvgb1A2VA' secret = '10812806653842663997bf5971637f86f26c71a4716276d7fa8f323a83588d91:1' hashlib.sha256(txid+":"+secret).hexdigest() > 'dfa8769

Re: Need some help confirming transactions using sha256

2013-01-31 Thread kryptox . exchange
On Thursday, January 31, 2013 6:55:05 PM UTC+1, Peter Pearson wrote: > On Thu, 31 Jan 2013 08:43:03 -0800 (PST), kryptox.excha...@gmail.com wrote: > > > > > I'm wondering if anyone can help me as I can't seem to get > > > this to work. There is an online dice game that is > > > provably fair b

Re: Need some help confirming transactions using sha256

2013-01-31 Thread Peter Pearson
On Thu, 31 Jan 2013 08:43:03 -0800 (PST), kryptox.excha...@gmail.com wrote: > I'm wondering if anyone can help me as I can't seem to get > this to work. There is an online dice game that is > provably fair by calculating the 'dice roll' using using a > sha256 hash calculated against my transaction

Re: Need some help confirming transactions using sha256

2013-01-31 Thread kryptox . exchange
Ok, I'm still stuck! :( I do however now think that I'm not supposed to use hmac here. -- http://mail.python.org/mailman/listinfo/python-list

Re: need some help with unexpected signal exception when using input from a thread (Pypy 1.9.0 on osx/linux)

2012-12-15 Thread Dieter Maurer
Irmen de Jong writes: > Using Pypy 1.9.0. Importing readline. Using a background thread to get > input() from > stdin. It then crashes with: > > File "/usr/local/Cellar/pypy/1.9/lib_pypy/pyrepl/unix_console.py", line > 400, in restore > signal.signal(signal.SIGWINCH, self.old_sigwinch) >

Re: Need some help speeding up this loop

2008-10-30 Thread Arnaud Delobelle
On Oct 30, 2:24 am, erikcw <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm trying to write a loop that will build a list of "template > strings". > > My current implementation is *really slow*.  It took 15 minutes to > finish. (final len(list) was about 16k entries.) > > #combinations = 12 small templ

Re: Need some help speeding up this loop

2008-10-30 Thread Marc 'BlackJack' Rintsch
On Wed, 29 Oct 2008 19:24:32 -0700, erikcw wrote: > I'm trying to write a loop that will build a list of "template strings". > > My current implementation is *really slow*. It took 15 minutes to > finish. (final len(list) was about 16k entries.) What is `list` here? Do you mean ``len(templates

Re: need some help in serving static files inside a wsgi apps

2008-05-25 Thread Martin v. Löwis
>>> I guess, Apache does some kind of memory caching for files, which are often >>> requested and small enough to fit into the system memory. May be, that's >>> what the OP is referring to ... > >> I'm not aware of that, and I even more seriously doubt it. Because >> caching is a complicated, do

Re: need some help in serving static files inside a wsgi apps

2008-05-25 Thread Diez B. Roggisch
Matthew Woodcraft schrieb: Diez B. Roggisch <[EMAIL PROTECTED]> wrote: Sebastian 'lunar' Wiesner schrieb: I guess, Apache does some kind of memory caching for files, which are often requested and small enough to fit into the system memory. May be, that's what the OP is referring to ... I'm n

Re: need some help in serving static files inside a wsgi apps

2008-05-25 Thread Matthew Woodcraft
Diez B. Roggisch <[EMAIL PROTECTED]> wrote: >Sebastian 'lunar' Wiesner schrieb: >> I guess, Apache does some kind of memory caching for files, which are often >> requested and small enough to fit into the system memory. May be, that's >> what the OP is referring to ... > I'm not aware of that, an

Re: need some help in serving static files inside a wsgi apps

2008-05-25 Thread Diez B. Roggisch
Sebastian 'lunar' Wiesner schrieb: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [ Diez B. Roggisch <[EMAIL PROTECTED]> ] I finally managed to work with static files with a little hack, but it's ugly because I'm reading each static file per request. How else should that work? Apache does that

Re: need some help in serving static files inside a wsgi apps

2008-05-25 Thread Sebastian 'lunar' Wiesner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [ "Martin v. Löwis" <[EMAIL PROTECTED]> ] >> I guess, Apache does some kind of memory caching for files, which are >> often requested and small enough to fit into the system memory. > > Are you sure about this? No, I'm not. That's why I said "I gu

Re: need some help in serving static files inside a wsgi apps

2008-05-25 Thread Martin v. Löwis
> I guess, Apache does some kind of memory caching for files, which are often > requested and small enough to fit into the system memory. Are you sure about this? I could not find anything in the documentation (other than mod_cache and friends, which is an unrelated functionality). Also, I don't

Re: need some help in serving static files inside a wsgi apps

2008-05-24 Thread Sebastian 'lunar' Wiesner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [ Diez B. Roggisch <[EMAIL PROTECTED]> ] >> I finally managed to work with static files with a little hack, but it's >> ugly because I'm reading each static file per request. > > How else should that work? Apache does that the same way. I guess, Apac

Re: need some help in serving static files inside a wsgi apps

2008-05-24 Thread Diez B. Roggisch
kib schrieb: Diez B. Roggisch a écrit : Tool69 schrieb: Hi, Until now, I was running my own static site with Python, but I'm in need of dynamism. After reading some cgi tutorials, I saw Joe Gregorio's old article "Why so many Python web frameworks?" about wsgi apps [http:// bitworking.org/new

Re: need some help in serving static files inside a wsgi apps

2008-05-24 Thread kib
Diez B. Roggisch a écrit : Tool69 schrieb: Hi, Until now, I was running my own static site with Python, but I'm in need of dynamism. After reading some cgi tutorials, I saw Joe Gregorio's old article "Why so many Python web frameworks?" about wsgi apps [http:// bitworking.org/news/Why_so_many_

Re: need some help in serving static files inside a wsgi apps

2008-05-24 Thread Diez B. Roggisch
Tool69 schrieb: Hi, Until now, I was running my own static site with Python, but I'm in need of dynamism. After reading some cgi tutorials, I saw Joe Gregorio's old article "Why so many Python web frameworks?" about wsgi apps [http:// bitworking.org/news/Why_so_many_Python_web_frameworks] and h

Re: Need some help with 'with'

2007-11-29 Thread Aahz
In article <[EMAIL PROTECTED]>, Mike Kent <[EMAIL PROTECTED]> wrote: > >I figure that if instead of returning the buffer from the context >directly, I instead returned the buffer in a list, I could then change >the buffer, put it in the returned list, then I'd have access to it >back inside the co

Re: Need some help...

2007-11-02 Thread Boris Borcic
Ricardo Aráoz wrote: > Boris Borcic wrote: >> Ricardo Aráoz wrote: >>> Boris Borcic wrote: [EMAIL PROTECTED] wrote: > I want to create a program that I type in a word. > > for example... > > chaos > > each letter equals a number > > A=1 >>>

Re: Need some help...

2007-11-02 Thread Ricardo Aráoz
Gabriel Genellina wrote: > En Thu, 01 Nov 2007 20:12:52 -0300, Ricardo Aráoz <[EMAIL PROTECTED]> > escribió: > >>> def sumToOneDigit(num) : if num < 10 : return num else : return sumToOneDigit(sum(int(i) for i in str(num))) > > def sumToO

Re: Need some help...

2007-11-01 Thread Gabriel Genellina
En Thu, 01 Nov 2007 20:12:52 -0300, Ricardo Aráoz <[EMAIL PROTECTED]> escribió: >> def sumToOneDigit(num) : >>> if num < 10 : >>> return num >>> else : >>> return sumToOneDigit(sum(int(i) for i in str(num))) >>> def sumToOneDigit(num): return num % 9 or

Re: Need some help...

2007-11-01 Thread Ricardo Aráoz
Boris Borcic wrote: > Ricardo Aráoz wrote: >> Boris Borcic wrote: >>> [EMAIL PROTECTED] wrote: I want to create a program that I type in a word. for example... chaos each letter equals a number A=1 B=20 and so on. So Chaos w

Re: Need some help...

2007-11-01 Thread Boris Borcic
Ricardo Aráoz wrote: > Boris Borcic wrote: >> [EMAIL PROTECTED] wrote: >>> I want to create a program that I type in a word. >>> >>> for example... >>> >>> chaos >>> >>> each letter equals a number >>> >>> A=1 >>> B=20 >>> >>> and so on. >>> >>> So Chaos would be >>> >>> C=13 H=4 A=1 O=7 S=5 >

Re: Need some help...

2007-10-31 Thread Ricardo Aráoz
Boris Borcic wrote: > [EMAIL PROTECTED] wrote: >> I want to create a program that I type in a word. >> >> for example... >> >> chaos >> >> each letter equals a number >> >> A=1 >> B=20 >> >> and so on. >> >> So Chaos would be >> >> C=13 H=4 A=1 O=7 S=5 >> >> I want to then have those numbers >

Re: Need some help...

2007-10-30 Thread Boris Borcic
[EMAIL PROTECTED] wrote: > I want to create a program that I type in a word. > > for example... > > chaos > > each letter equals a number > > A=1 > B=20 > > and so on. > > So Chaos would be > > C=13 H=4 A=1 O=7 S=5 > > I want to then have those numbers > 13+4+1+7+5 added together to be

Re: Need some help...

2007-10-29 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > I want to create a program that I type in a word. > > for example... > > chaos > > each letter equals a number > > A=1 > B=20 > > and so on. > > So Chaos would be > > C=13 H=4 A=1 O=7 S=5 > > I want to then have those numbers > 13+4+1+7+5 added together to

Re: Need some help...

2007-10-28 Thread Peter Decker
On 10/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I want to then have those numbers > 13+4+1+7+5 added together to be 30. > > How can I do that? > > Also, just curious, but, how could I then have the 3 and 0 added > together to be 3? > > Please help me out. Will you put our names on you

Re: Need some help...

2007-10-28 Thread martyw
[EMAIL PROTECTED] wrote: >> I want to create a program that I type in a word. > > You can see that Python has a command to input strings from the > command line. > >> chaos >> each letter equals a number >> A=1 >> B=20 >> and so on. >> So Chaos would be >> C=13 H=4 A=1 O=7 S=5 >> I want to t

Re: Need some help...

2007-10-28 Thread bearophileHUGS
> I want to create a program that I type in a word. You can see that Python has a command to input strings from the command line. > chaos > each letter equals a number > A=1 > B=20 > and so on. > So Chaos would be > C=13 H=4 A=1 O=7 S=5 > I want to then have those numbers > 13+4+1+7+5 added

Re: Need some help with my first Twisted program

2007-10-20 Thread Bjoern Schliessmann
McCann, Brian wrote: > I posted this to the Twisted list...figured I'd try here too. Didn't you get an answer? The cracks for special topics are usually there. > to work right. Looking through the API docs I found > "connectionLost()", which I put in my protocol class (EchoProtocol > in the ex

Re: Need some help here

2006-09-22 Thread ian
"Frank Drackman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] : : "Kareem840" <[EMAIL PROTECTED]> wrote in message : news:[EMAIL PROTECTED] : > Hello. Unfortunately, I am in need of money to pay my credit card : > bills. If you could spare just $1, I would be grateful. I have a Pay

Re: Need some help here

2006-09-20 Thread John B
Kareem840 wrote: > Hello. Unfortunately, I am in need of money to pay my credit card > bills. If you could spare just $1, I would be grateful. I have a Paypal > account. [EMAIL PROTECTED] I swear this will go to my card > balances. Thank you. > I accidentally sent $2, could you please refund the e

Re: Need some help here

2006-09-20 Thread gre
di wrote: > "Kareem840" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Hello. Unfortunately, I am in need of money to pay my credit card >> bills. If you could spare just $1, I would be grateful. I have a Paypal >> account. [EMAIL PROTECTED] I swear this will go to my card >> bal

Re: Need some help here

2006-09-20 Thread Wildemar Wildenburger
Kareem840 wrote: > Hello. Unfortunately, I am in need of money to pay my credit card > bills. If you could spare just $1, I would be grateful. I have a Paypal > account. [EMAIL PROTECTED] I swear this will go to my card > balances. Thank you. > And I need to get a bus. I mean literally. It's the b

Re: Need some help here

2006-09-20 Thread di
"Kareem840" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello. Unfortunately, I am in need of money to pay my credit card > bills. If you could spare just $1, I would be grateful. I have a Paypal > account. [EMAIL PROTECTED] I swear this will go to my card > balances. Thank you.

Re: Need some help here

2006-09-20 Thread John McWilliams
Frank Drackman wrote: > "Kareem840" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Hello. Unfortunately, I am in need of money to pay my credit card >> bills. If you could spare just $1, I would be grateful. I have a Paypal >> account. [EMAIL PROTECTED] I swear this will go to my

Re: Need some help here

2006-09-20 Thread Frank Drackman
"Kareem840" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello. Unfortunately, I am in need of money to pay my credit card > bills. If you could spare just $1, I would be grateful. I have a Paypal > account. [EMAIL PROTECTED] I swear this will go to my card > balances. Thank you.

Re: Need some help here

2006-09-20 Thread Dave
The money's on the way! "Kareem840" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello. Unfortunately, I am in need of money to pay my credit card > bills. If you could spare just $1, I would be grateful. I have a Paypal > account. [EMAIL PROTECTED] I swear this will go to my ca

Re: Need some help here

2006-09-20 Thread Todd H.
"Kareem840" <[EMAIL PROTECTED]> writes: > Hello. Unfortunately, I am in need of money to pay my credit card > bills. If you could spare just $1, I would be grateful. I have a Paypal > account. [EMAIL PROTECTED] I swear this will go to my card > balances. Thank you. If you have a story of unusual

Re: Need some help here

2006-09-20 Thread Colin B.
In comp.unix.solaris Kareem840 <[EMAIL PROTECTED]> wrote: > Hello. Unfortunately, I am in need of money to pay my credit card > bills. If you could spare just $1, I would be grateful. I have a Paypal > account. [EMAIL PROTECTED] I swear this will go to my card > balances. Thank you. Better idea. S

Re: need some help in reading error message

2006-03-16 Thread Alex Martelli
<[EMAIL PROTECTED]> wrote: > I need some help in reading error message: which line has problem? line > 233? or line 37? > > Thank you. > > $ ./read2.py log.xml > Traceback (most recent call last): > File "./read2.py", line 233, in ? > parser.parse(open(inputFileName)) > File "/usr/lib/py

Re: need some help with threading module...

2004-12-30 Thread M.E.Farmer
Yacine, I didn't run it from Idle . I don't use Idle ! I wrote my own IDE when I first started programming in Python, that is what I used(it does execute scripts from the shell ;) What you are seeing is exactly what I was talking about threads and.. dare I say it... bugs . Be sure to look at t

Re: need some help with threading module...

2004-12-30 Thread chahnaz.ourzikene
"Steve Holden" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Could be the OP is using Cygwin, which won't support threading by > default and will give very confusing results > > just-a-guess-ly y'rs - steve Nice try :), but nope :). Yacine Chaouche -- France. -- h

Re: need some help with threading module...

2004-12-30 Thread chahnaz.ourzikene
"M.E.Farmer" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > What did you expect? This is what it did on win 2000/python 2.2.3 > ##> controller waiting... 0 loops > ##> controller waiting... 1 loops > Subject : the counter is now 0 > ##> controller waiting..

Re: need some help with threading module...

2004-12-30 Thread Steve Holden
M.E.Farmer wrote: Steve Holden wrote: [snip] Could be the OP is using Cygwin, which won't support threading by default and will give very confusing results Thanks Steve, Well your guess was better then mine :) I didn't know Cygwin did not support threads by default , I will have to remember that.

Re: need some help with threading module...

2004-12-30 Thread M.E.Farmer
Steve Holden wrote: [snip] >Could be the OP is using Cygwin, which won't support threading by >default and will give very confusing results Thanks Steve, Well your guess was better then mine :) I didn't know Cygwin did not support threads by default , I will have to remember that. Why do you suppo

Re: need some help with threading module...

2004-12-30 Thread Steve Holden
M.E.Farmer wrote: chahnaz.ourzikene wrote: Hi, I fixed the code, it runs under Linux but not under windows 0_o ??! i guess windows and Linux do not handle threads the same way. However, i don't have the result i excpect. What did you expect? This is what it did on win 2000/python 2.2.3 ##> cont

Re: need some help with threading module...

2004-12-30 Thread M.E.Farmer
chahnaz.ourzikene wrote: > Hi, > > I fixed the code, it runs under Linux but not under windows 0_o ??! i guess > windows and Linux do not handle threads the same way. > > However, i don't have the result i excpect. What did you expect? This is what it did on win 2000/python 2.2.3 ##> controller

Re: need some help with threading module...

2004-12-30 Thread chahnaz.ourzikene
Hi, I fixed the code, it runs under Linux but not under windows 0_o ??! i guess windows and Linux do not handle threads the same way. However, i don't have the result i excpect. Please have a look here : ## In this little program, i'm trying to find a way to yield data from a thread within anot

Re: need some help with threading module...

2004-12-27 Thread M.E.Farmer
chahnaz.ourzikene wrote: > "M.E.Farmer" <[EMAIL PROTECTED]> a écrit dans le message de news: > [EMAIL PROTECTED] > > > Just a warning! > > Threads and newbies don't mix well, > > many pitfalls and hard to find bugs await you. > > I would avoid using threads if at all possible. > > Indeed :). But ho

Re: need some help with threading module...

2004-12-27 Thread chahnaz.ourzikene
"M.E.Farmer" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Just a warning! > Threads and newbies don't mix well, > many pitfalls and hard to find bugs await you. > I would avoid using threads if at all possible. Indeed :). But how will i learn using threads if i avoid

Re: need some help with threading module...

2004-12-27 Thread chahnaz.ourzikene
Hi everybody, "Daniel Bickett" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Instead of having the Controller query the Subject (not exactly > plausible), I had it wait for a signal (threading.Event) as set by the > Subject. You could also have it query a queue, as that

Re: need some help with threading module...

2004-12-26 Thread Daniel Bickett
I found your object-oriented approach, while admirable, a little muddled. So rather than modify your code, I simply took the paragraph you wrote describing the scenario and wrote my own.[1] Instead of having the Controller query the Subject (not exactly plausible), I had it wait for a signal (thre

Re: need some help with threading module...

2004-12-26 Thread M.E.Farmer
Just a warning! Threads and newbies don't mix well, many pitfalls and hard to find bugs await you. I would avoid using threads if at all possible. Now we have all that over lets see some code. py> import threading py> class Test(threading.Thread): ...def run(self): ... x = 0

Re: need some help with threading module...

2004-12-26 Thread chahnaz.ourzikene
I think it is more suitable in this form... from threading import * class Subject(object): def __init__(self) : self.counter = 0 t = Timer(0.1,self.doIteratingStuff) t.start() def incrementCounter(self,n=1) :

Re: need some help with threading module...

2004-12-26 Thread M.E.Farmer
> Thanks for all and merry x-mas and blablablah There is no X in Christmas, and blablablah should read Happy New Year! >Of course, the indentations are lost since i copied this code from my emacs >on linux, and then paste it on my outlook express (i don't have the net on >linux :(...). I have had

RE: need some help quickly

2004-12-14 Thread Delaney, Timothy C (Timothy)
Allan Irvine wrote: > Hope you can help - any thoughts welcome Here is the best place you can get help for your problem: http://www.catb.org/~esr/faqs/smart-questions.html Tim Delaney -- http://mail.python.org/mailman/listinfo/python-list

Re: need some help quickly

2004-12-13 Thread Thomas Guettler
Am Tue, 14 Dec 2004 04:46:24 -0800 schrieb Allan Irvine: > HI > > Hope this is the right place for this, I am new. I have a spec to > create > a (dual screen) framework application that > > 1 displays mp3, flash, jpegs etc. on top screen > 2: displays buttons on bottom screen which alter image w