Python with Oracle Database Course.

2016-05-03 Thread Tarek Abulnaga
I have created Python with Oracle Database Course, and offer 50% discount till 10-5-2016. Any one interested in course just click on below link. https://www.udemy.com/using-python-with-oracle-db/? Then write coupon Code=PYTHON_ORACLE_50%25 -- https://mail.python.org/mailman/listinfo/python-lis

Re: "Daemonizing" an application.

2013-02-27 Thread Tarek Ziadé
s/TPC/TCP ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: "Daemonizing" an application.

2013-02-27 Thread Tarek Ziadé
e nice thing about zmq as opposed to signals is that you can code your thing independantly from the transport then choose which transport fits a situation: TPC (then the ctl can be on another box), IPC or even ITC That also means your ctl part can be portable to any platform Cheers

Re: section with in a section config file and reading that config file

2012-10-19 Thread Tarek Ziadé
On 10/19/12 11:29 PM, Steven D'Aprano wrote: On Fri, 19 Oct 2012 12:09:53 +0200, Tarek Ziadé wrote: On 10/19/12 11:51 AM, kampy wrote: hi all, my requirement is to have section with in a section in config parameters ex: [AAA] [BBB] a=1 b=1 [CCC] a=1

Re: section with in a section config file and reading that config file

2012-10-19 Thread Tarek Ziadé
On 10/19/12 12:22 PM, narasimha1...@gmail.com wrote: yes but it is not only for one structure like above there will be many sections like that I'd use yaml or json then... -- http://mail.python.org/mailman/listinfo/python-list

Re: section with in a section config file and reading that config file

2012-10-19 Thread Tarek Ziadé
logic on the top of ConfigParser to read back those values HTH Tarek -- http://mail.python.org/mailman/listinfo/python-list

Re: Fastest web framework

2012-09-26 Thread Tarek Ziadé
On 9/26/12 11:26 AM, Andriy Kornatskyy wrote: Tarek, Thank you for the response back. Yes, your idea is pretty clear to me. The point is that higher workload you put in your application business logic, repository, backend, whatever... less you will see in final results comparison. This is

Re: Fastest web framework

2012-09-26 Thread Tarek Ziadé
On 9/25/12 3:21 PM, Andriy Kornatskyy wrote: Tarek, With all respect, running benchmark on something that has sleeps, etc is pretty far from real world use case. So I went a little bit different way. That's not a good summary of what the function does. It does not just sleep. It does som

Re: Fastest web framework

2012-09-24 Thread Tarek Ziadé
r down of the server) I would be curious to see how things goes then Cheers Tarek -- http://mail.python.org/mailman/listinfo/python-list

Re: Print Function

2012-09-21 Thread Tarek Ziadé
On 9/21/12 10:20 PM, gengyang...@gmail.com wrote: Hello , I am currently using Python 3.2.3 . WHen I use the print function by typing print "Game Over" , it mentions " SyntaxError : invalid syntax ". Any ideas on what the problem is and how to resolve it ? Thanks a lot . print was a stat

Re: Does python have built command for package skeleton creation?

2012-09-21 Thread Tarek Ziadé
his. I pointed to this page to show a typical use case of building Paster Templates, so you can bootstrap your projects boiler-plate code So IOW everyone's free to create any kind of template :) Cheers Tarek -- http://mail.python.org/mailman/listinfo/python-list

Re: Does python have built command for package skeleton creation?

2012-09-21 Thread Tarek Ziadé
On 9/21/12 12:07 PM, xliiv wrote: Like the topic.. . I found this: http://learnpythonthehardway.org/book/ex46.html it seems fine, but shouldn't be an interactive (with CLI API) script creating that? It's a lot of effort for common work. I can contribute but i have to know that i'm not reinven

Re: "Development mode"

2012-09-21 Thread Tarek Ziadé
On 9/20/12 9:02 PM, py_lrnr wrote: I am new to python and I have come across the following command and its description: Now to be able to run the project you will need to install it and its >dependencies. python setup.py develop I looked up what the 'develop' argument does and found: Extra

Re: portable way of locating an executable (like which)

2012-09-21 Thread Tarek Ziadé
On 9/21/12 1:59 AM, Nobody wrote: On Thu, 20 Sep 2012 23:06:46 +0200, Gelonida N wrote: I'd like to implement the equivalent functionality of the unix command /usr/bin/which The function should work under Linux and under windows. Note that "which" attempts to emulate the behaviour of execvp()

Re: network protocols

2012-06-13 Thread Tarek Ziadé
On 6/13/12 8:33 PM, Christian Heimes wrote: Am 13.06.2012 16:56, schrieb Christian Heimes: Am 13.06.2012 13:41, schrieb Tarek Ziadé: Hey I was surprised not to find any way to list all protocol names listed in /etc/protocols in Python We have socket.getprotobyname(NAME) But there's n

network protocols

2012-06-13 Thread Tarek Ziadé
Hey I was surprised not to find any way to list all protocol names listed in /etc/protocols in Python We have socket.getprotobyname(NAME) But there's no way to get the list of names Any ideas if this is available in the stdlib somehwere ? Thx Tarek -- http://mail.python.org/ma

Re: Proposal about naming conventions around packaging

2012-05-30 Thread Tarek Ziadé
On 5/30/12 6:59 PM, Benoît Bryon wrote: Hi, Hi Benoit you should post this to the distutils SIG Thank you Here is a proposal about naming conventions around packaging. Main question is: would you accept it as a PEP? Preliminary notes (not p

Re: Pyrhon2.5 to 2.4 conversion

2010-03-09 Thread tarek...@gmail.com
Thanks a lot everybody for your help, it worked now :) On Feb 28, 4:12 am, MRAB wrote: > tarek...@gmail.com wrote: > > Hi, > > > I am currently using oauth2.py library, and it works fine on one of my > > PC's (python2.5), but later on when I tried to use it with pyt

Pyrhon2.5 to 2.4 conversion

2010-02-27 Thread tarek...@gmail.com
type(v) != ListType else sorted(v)) for k,v in sorted(self.items()) if k != 'oauth_signature'] So it there a way to convert this line to a python2.4 compliant syntax. Thanks a lot, Tarek -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 376

2009-07-03 Thread Tarek Ziadé
omans wrote: > > On Jul 2, 2009, at 1:37 PM, Lie Ryan wrote: > >> Joachim Strömbergson wrote: >>> >>> Aloha! >>> >>> Tarek Ziadé wrote: >>>> >>>> The prefix is a good idea but since it's just a checksum to control

Re: PEP 376

2009-07-02 Thread Tarek Ziadé
secured way to prevent that would be to use gpg keys but isn't that overkill for what we need ? e.g. making sure a file wasn't modified when distutils uninstalls a distribution. Tarek -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 376

2009-06-30 Thread Tarek Ziadé
On Wed, Jul 1, 2009 at 12:52 AM, Carl Banks wrote: > On Jun 30, 12:41 pm, Tarek Ziadé wrote: >> Hello, >> >> I would like to propose this PEP for inclusion into Python 2.7 / 3.2 >> >> http://www.python.org/dev/peps/pep-0376/ >> >> It has been discusse

PEP 376

2009-06-30 Thread Tarek Ziadé
Hello, I would like to propose this PEP for inclusion into Python 2.7 / 3.2 http://www.python.org/dev/peps/pep-0376/ It has been discussed a lot already in the distutils-SIG, but new feedbacks are welcome there's an implementation prototype here : http://bitbucket.org/tarek/pep376/sr

can you help me

2008-06-05 Thread merzouki tarek
  hello please, I have this error, error C1083 Cannot open include file BaseTsd.h, invalide argument, I installed the platformSDK , but the same error , can you help me __ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure

Re: [Python-Dev] Global Python Sprint Weekends: May 10th-11th and June 21st-22nd.

2008-04-17 Thread Tarek Ziadé
ally I'd like to work on the documentation changes / clean-up for > the unittest module discussed recently. We are trying to set up a team here in Paris, Personnally I would like to continue the work started in distutils (various patches) and some friends here are interested in contributi

Similarities between two modules

2007-09-06 Thread Tarek
Tarek Ziadé -- http://mail.python.org/mailman/listinfo/python-list

A new french book on Python

2007-08-11 Thread Tarek
Hello, A new french book is coming out on the 16th of august. It's focused on Python good practices, agility, and all the things that makes a Python developer loves the language. If you are interested, the web page is here : http://programmation-python.org/guide Regards Tarek --

Re: International Python user groups events calendar

2007-04-20 Thread Tarek Ziadé
endars/Python/ Enjoy! TechVenue.com Eventmasters -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html -- Tarek Ziadé | Association AfPy | www.afpy.org Blog FR | http://programmation-pyth

Re: python, zlib, and fedora 64bits

2007-01-06 Thread Tarek Ziadé
I am answering to myself, if it can help someone else. zlib has to be recompiled with CFLAGS set to -fPIC. So before launching ./configure do a: export CFLAGS="-fPIC" Python then will build properly zlib.so Tarek -- http://mail.python.org/mailman/listinfo/python-list

Re: python, zlib, and fedora 64bits

2007-01-06 Thread Tarek Ziadé
On 1/6/07, Tarek Ziadé <[EMAIL PROTECTED]> wrote: I am answering to myself, if it can help someone else. zlib has to be recompiled with CFLAGS set to -fPIC. So before launching ./configure do a: export CFLAGS="-fPIC" Python then will build properly zlib.so Tarek

python, zlib, and fedora 64bits

2007-01-06 Thread Tarek Ziadé
s Ende-Status zurück running build_scripts running install_lib ... I've tried to recompile zlib, but didn't find any way to avoid this error any ideas ? Otherwise, does anyone has a zlib.so for fedora 64bits to send me ? Thx Tarek -- Tarek Ziadé | Association AfPy | www.afpy.org

Re: A Call to Arms for Python Advocacy

2006-12-07 Thread Tarek Ziadé
for promo item ideas is at: http://wiki.python.org/moin/Advocacy/WearablesGadgets All materials will be credited to the authors to the extent possible by the delivery media. Make your mark. Jeff Rush <[EMAIL PROTECTED]> Python Advocacy Coordinator -- http://mail.python.org/mailman/listinfo/python-l

rexec and Python 2.5

2006-10-13 Thread Tarek Ziadé
Is this just a forgotten change ? If so, why it is still deployed in Python ?I want to embed a Python read-eval-print loop in one of my python program, so if someone has another way to do it RegardsTarek-- Tarek Ziadé | Association AfPy | www.afpy.orgSite personnel | http://programmation-pytho

stop a doctest execution

2006-02-24 Thread Tarek Ziadé
x27;s time to implement the 'exit' builtin ?  ;) Failed example: exit  Expected nothing  Got: 'Use Ctrl-D (i.e. EOF) to exit.' Tarek-- Tarek Ziadé | Association AfPy | www.afpy.orgSite personnel | http://programmation-python.org -- http://mail.python.org/mailman/listinfo/python-list

A new French Python Book

2006-01-28 Thread Tarek Ziadé
get it English speaking programmers should get it too: it's a very pleasant way to learn french. Enough marketing. -> More infos on its dedicated website: http://programmation-python.org Best regards, Tarek Ziadé -- Tarek Ziadé | Association AfPy | www.afpy.orgSite personnel | http://p

ssl and timeout issue

2005-10-19 Thread Tarek Ziadé
e ssl socket, but...) Tarek Traceback: >>> from imaplib import IMAP4_SSL, IMAP4_SSL_PORT >>> import socket >>> test = IMAP4_SSL('mail..com', 993) >>> test.sock.settimeout(10) >>> test.login('[EMAIL PROTECTED]', 'password&

Re: Don't want to serialize a variable of object

2005-10-18 Thread Tarek Ziadé
considered private to the class. (ie: can't be reached by "instance.__attribute") even though you can find it if you dig into instance.__dict__ Regards, Tarek -- http://mail.python.org/mailman/listinfo/python-list

machine-independant bench

2005-10-14 Thread Tarek Ziadé
over code performance measurement. This is pretty good, but the major caveat is that if the CPU is busy , it can be slower than expected. So i've introduced a tolerance flag, (another approach than the three times run like hotshot does). Any comment ? Any alternatives to pystone in min

portable way to get process infos

2005-09-29 Thread Tarek Ziadé
work on any platform. Regards, Tarek -- http://mail.python.org/mailman/listinfo/python-list

Re: Memory stats

2005-09-27 Thread Tarek Ziadé
gene tani wrote: >linux: >http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/286222 > > Yes thanks I have found this one, I need to try it out, but it does not provide a way to refcount, Another solution could be to use trace maybe I am going to try things out Regards -- http://mail.py

Re: Memory stats

2005-09-27 Thread Tarek Ziadé
Martin v. Löwis wrote: >Tarek Ziadé wrote: > > >>I am trying to find a general memory profiler that can measure the >>memory usage in Python program >>and gather some stats about object usages, and things like that. >> >> > >As Diez says, us

Memory stats

2005-09-24 Thread Tarek Ziadé
exists i guess) Thanks, Tarek -- Tarek Ziadé, Nuxeo R&D (Paris, France) CPS Platform : http://www.cps-project.org Zope3 / ECM : http://www.z3lab.org mail: tziade at nuxeo.com; tel: +33 (0) 6 30 37 02 63 -- http://mail.python.org/mailman/listinfo/python-list

IMAP Proxy

2005-06-10 Thread Tarek Ziadé
Hi, I want to write a small TCP Server in Python to make an IMAP Proxy for post-processing client requests. It is not long either complicated but needs to be very robust so... maybe someone here has already done such a thing I can use or know where i can get it ? Cheers, Tarek -- http

ssl issues with socket timeout

2005-05-19 Thread Tarek Ziadé
Hello, anyone knows a way to deal with this problem ? http://sourceforge.net/tracker/index.php?func=detail&aid=1153016&group_id=5470&atid=105470 This bug has been fixed in 2.3 but there is a regression in 2.4 Tarek -- Tarek ZIADE, Nuxeo SARL: Zope Service Provider. Mail: [EMA

TypeError: ssl() argument 1 must be _socket.socket, not _socketobject -> Solution

2005-05-18 Thread Tarek Ziadé
egrated timeout mechanism in sockets so you should remove all timeoutsocket.py you have in your paths Regards Tarek -- Tarek ZIADE, Nuxeo SARL: Zope Service Provider. Mail: [EMAIL PROTECTED] - Tel: +33 (0)6 30 37 02 63 Nuxeo Collaborative Portal Server: http://www.nuxeo.com/cps Gestion de conten