Re: Object-oriented philosophy

2018-09-09 Thread Amirouche Boubekki
Le jeu. 6 sept. 2018 à 16:05, Michael F. Stemper a écrit : > > How does one judge when it's worthwhile to do this and when it's > not? What criteria would somebody seasoned in OO and python use > to say "good idea" vs "don't waste your time"? > I may qualify as experienced with Python, that being

Re: hello from a very excited and totally blind python programmer and game player

2018-07-30 Thread Amirouche Boubekki
Python webdev try: git clone https://github.com/amirouche/beyondjs Le lun. 30 juil. 2018 à 20:33, Amirouche Boubekki < amirouche.boube...@gmail.com> a écrit : > > > Le mar. 24 juil. 2018 à 22:10, Daniel Perry a > écrit : > >> Hi there everyone, my name is Daniel Perry

Re: hello from a very excited and totally blind python programmer and game player

2018-07-30 Thread Amirouche Boubekki
Le mar. 24 juil. 2018 à 22:10, Daniel Perry a écrit : > Hi there everyone, my name is Daniel Perry Hello! > and I'm a totally blind new Python user. Ok! > I've only just recently started picking up python and playing with it and > I intend on building some unique audio computer games for

Re: Which database system?

2017-09-17 Thread Amirouche Boubekki
Le 15 sept. 2017 20:05, "Stefan Ram" a écrit : When one is building an in-memory database that has a single table that is built at the start of the program and then one writes some complex queries to the table, what can be expected to be faster: - implementing the table as a builtins

How do you do deep input data validation?

2017-07-22 Thread Amirouche Boubekki
It seems that aiohttp recommends using one of trafaret, colander or jsonschema . I am not very familiar with those libraries. I am wondering what's the rational behind this choice. Why is trafaret the first in this list? Is

How do you use Python 3.5 and Python 3.6 in production

2017-06-14 Thread Amirouche Boubekki
Héllo, I'd like to use Python 3.5 or Python 3.6 in production but avoid the use of pip and virtualenv. Is there a solution based on a popular GNU/Linux distribution that allows to keep up with the release of Python 3.x and various other highly prolific project but still young like aiohttp? What

Re: ANN: JavaScrypthon 0.5, now with embedded evaluation of transpiled code

2016-11-28 Thread Amirouche Boubekki
On Sat, Nov 26, 2016 at 7:21 PM Alberto Berti < azazel+python-annou...@arstecnica.it> wrote: > Hi all, > Héllo! > i'm pleased to announce that JavaScripthon 0.5 has been released to > PyPI. JavaScrypthon can translate a subset of Python 3.5 code to ES6 > JavaScript producing beautiful and lean

Re: Anyone needs a graphdb written in Python?

2016-11-25 Thread Amirouche Boubekki
Héllo again, On Tue, Nov 22, 2016 at 9:56 PM Amirouche Boubekki < amirouche.boube...@gmail.com> wrote: > I am working on a graphdb written Python on top of wiredtiger. > > Anyone want to share about the subject about where this could be made > useful? > A bit of context mi

Anyone needs a graphdb written in Python?

2016-11-22 Thread Amirouche Boubekki
Héllo, I am working on a graphdb written Python on top of wiredtiger. Anyone want to share about the subject about where this could be made useful? TIA! -- https://mail.python.org/mailman/listinfo/python-list

Re: A question about a list and subprocess.check_call()

2015-02-16 Thread Amirouche Boubekki
On Mon Feb 16 2015 at 7:40:42 PM Peter Otten <__pete...@web.de> wrote: > David Aldrich wrote: > > > Hi Peter > > > > Thanks very much for your reply. I have added one more question below. > > > >> The straightforward approach is to pass a list or tuple: > >> > >> def build(build_options=()): > >>

Re: How to write a non blocking SimpleHTTPRequestHandler ?

2015-02-03 Thread Amirouche Boubekki
> The standard library and nonblocking can't be used in the same sentence. python 2.x stdlib has no high level support of *async* code. There is trollius library that ports asyncio to py2 though. I was a bit quick in my first anwser. What you want is to prevent the socket to wait indefinetly for

Re: How to write a non blocking SimpleHTTPRequestHandler ?

2015-02-02 Thread Amirouche Boubekki
On Mon Feb 02 2015 at 10:55:26 AM wrote: > I wrote a little script that acts like a proxy, you just give it a URL and > it will fetch the content and display it back to you. > > For some reason, this proxy blocks sometimes and refuses to serve any new > queries. The script still runs, but it seem

Re: Python vs C++

2014-08-27 Thread Amirouche Boubekki
2014-08-27 8:23 GMT+02:00 Ian Kelly : > On Tue, Aug 26, 2014 at 11:43 PM, alex23 wrote: > > On 26/08/2014 6:12 PM, Amirouche Boubekki wrote: > >> > >> 2014-08-26 6:02 GMT+02:00 Ian Kelly >> <mailto:ian.g.ke...@gmail.com>>: > >> > >>

Re: Python vs C++

2014-08-27 Thread Amirouche Boubekki
2014-08-27 8:06 GMT+02:00 Ian Kelly : > On Tue, Aug 26, 2014 at 2:12 AM, Amirouche Boubekki > wrote: > > 2014-08-26 6:02 GMT+02:00 Ian Kelly : > > > >> On Mon, Aug 25, 2014 at 4:52 AM, Amirouche Boubekki < > amirouche.boube...@gmail.com> wrote: > >> &

Re: Python vs C++

2014-08-26 Thread Amirouche Boubekki
2014-08-26 6:02 GMT+02:00 Ian Kelly : > On Mon, Aug 25, 2014 at 4:52 AM, Amirouche Boubekki < > amirouche.boube...@gmail.com> wrote: > > - I am a big fan of Final Fantasy games, it seems to be an easy game > experience to code > > Maybe not so easy, if the horrifying

Re: Python vs C++

2014-08-25 Thread Amirouche Boubekki
2014-08-25 12:52 GMT+02:00 Amirouche Boubekki : > Héllo, > > > 2014-08-21 14:54 GMT+02:00 David Palao : > > Why to use C++ instead of python? >> >> It is not ranting against C++. I was/am looking for small-medium >> projects to exercise my C++ skills. Bu

Re: Python vs C++

2014-08-25 Thread Amirouche Boubekki
Héllo, 2014-08-21 14:54 GMT+02:00 David Palao : > Why to use C++ instead of python? > > It is not ranting against C++. I was/am looking for small-medium > projects to exercise my C++ skills. But I'm interested in a "genuine" > C++ project: some task where C++ is really THE language (and where >

Re: SQLAlchemy - web framework ?

2014-05-23 Thread Amirouche Boubekki
Héllo, 2014-05-13 1:34 GMT+02:00 flebber : > If I want to use SQLAlchemy as my ORM what would be the best option for a web framework? I think the best option would be Pyramid but I don't know SQLAchemy or Pyramid that much, but: - Django doesn't support SQLAlchemy as is - I don't recommend Flas

Re: retrieve source code from code object as returned by compile()

2014-04-25 Thread Amirouche Boubekki
in python3, I do inspect.getsource(object) [doc], I don't know the limitations. On Python 2, there is meta . My interest is different, I use to retrieve the definition of function to submit it to

Re: Moving to an OOP model from an classically imperitive one

2014-04-25 Thread Amirouche Boubekki
Héllo, I have no definitive answer regarding the OOP/functional mismatch. 2014-04-24 18:53 GMT+02:00 : > > A reasonable compromise might be to keep the *data* assocated > > > > with a SubuserProgram in a class, maybe together with a few > > > > methods that are tightly coupled to it, but have th

Re: object().__dict__

2014-04-23 Thread Amirouche Boubekki
2014-04-23 15:59 GMT+02:00 Phil Connell : > On Wed, Apr 23, 2014 at 03:48:32PM +0200, Amirouche Boubekki wrote: > > 2014-04-23 8:11 GMT+02:00 Cameron Simpson : > > > Look up the "__slots__" dunder var in the Python doco index: > > > > > > http

Re: object().__dict__

2014-04-23 Thread Amirouche Boubekki
2014-04-23 8:11 GMT+02:00 Cameron Simpson : > On 23Apr2014 09:39, Pavel Volkov wrote: > >> There are some basics about Python objects I don't understand. >> Consider this snippet: >> >> class X: pass > ... >> >>> x = X() > dir(x) > ['__class__', '__delattr__', '__dict__',

[OT] Culture and Empire

2014-01-01 Thread Amirouche Boubekki
Héllo everybody, I stumbled on Culture and Empire a few days ago and I've been reading it since then. I'm not finished yet. It's insigthful, smart and provocative. It bridge past, present and future. I will put it in my armory *ahem* library between Fundation and The Cathedral and the Bazaar until

Re: Islam is the fastest growing religion in the world especially since sept. 11.

2013-12-13 Thread Amirouche Boubekki
Why is bv4bv4...@gmail.com still not banned? 2013/12/13 > Islam is the fastest growing religion in the world especially since sept. > 11. > > An important article shows that every child is born on the "fitrah" > (natural inclination) of "Islam", the spread of Islam after September > eleventh an

Re: [ANN] Pythonium Core 0.2.5

2013-11-18 Thread Amirouche Boubekki
2013/11/18 Amirouche Boubekki > > 2013/11/17 Salvatore DI DIO > >> Are lists comprehensions are featured in Veloce ? >> > > Ah! Good question, I did not think about it can probably add it to Core. > Thanks > It's done in last release, dubbed 0.3.0 just use

Re: [ANN] Pythonium Core 0.2.5

2013-11-17 Thread Amirouche Boubekki
2013/11/17 Salvatore DI DIO > Are lists comprehensions are featured in Veloce ? > Ah! Good question, I did not think about it can probably add it to Core. Thanks > > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list

[ANN] Pythonium Core 0.2.5

2013-11-17 Thread Amirouche Boubekki
Héllo Pythonistas from all over the world, I'm very proud to announce the immediate availability of Pythonium Core 0.2.5, a Python 3 to Javascript translator (the best) that generates *fast* *portable* code written in Python. It use Python 3 parser and translates the code to JavaScript code. I

Re: install package from github repository

2013-11-06 Thread Amirouche Boubekki
2013/11/6 C. Ng > Ok, that seems to work... I modified from another package. > cool > I don't understand how setup.py does it exactly, but got it done anyways. > as usual :-) -- https://mail.python.org/mailman/listinfo/python-list

Re: Compiling Python3 for BeagleBone Black (Angstrom distro)

2013-11-05 Thread Amirouche Boubekki
Use this http://hg.python.org/cpython/file/92022b45e60b/setup.py#l36 Add the list of modules you want to disable and redo make 2013/11/5 Travis Griggs > > On Nov 4, 2013, at 9:22 AM, Travis Griggs wrote: > > > I'm playing with a BeagleBone Black running the angstrom distro. Of > course, stock

Re: Python Practice Problems

2013-11-04 Thread Amirouche Boubekki
https://github.com/amirouche/1001-Projects 2013/11/4 Terry Reedy > On 11/4/2013 12:28 AM, memilanuk wrote: > >> On 11/03/2013 06:06 PM, yungwong@gmail.com wrote: >> >>> Hi, who has some problems to practice using Python? >>> Thx a lot! >>> >>> >> http://projecteuler.net/ is always a good be

Re: Python and Google App intergration

2013-11-04 Thread Amirouche Boubekki
Héllo, Look for Google Apps APIs. I'm not sure what you want to do is possible, at least manipulating the spreadsheet is doable from Pythonl: http://stackoverflow.com/questions/2377301/how-to-write-a-python-script-to-manipulate-google-spreadsheet-data 2013/11/4 > I don't know Python well. O

Re: Compiling Python3 for BeagleBone Black (Angstrom distro)

2013-11-04 Thread Amirouche Boubekki
Hi Travis, I see, looking at ./configure --help | less, that I could provide > --disable-FEATURE and --without-PACKAGE directives to my ./configure > invocation. But what I don't see is how to generate a list of what > FEATURES/PACKAGES I could put there for consideration of omission. Is there > s

Re: install package from github repository

2013-11-04 Thread Amirouche Boubekki
create a setup.py and install it 2013/11/4 C. Ng > Hi, > > I have cloned someone's repository on my local drive using git command: > git clone http://github.com/xxx.git > > But I don't find any setup.py file. How do I install the package xxx? So > that I can 'import xxx' in my python script. >

Re: pyC11 initial publication

2013-05-06 Thread Amirouche Boubekki
Héllo, Does it support macros ? Is it possible to retrieve the list of macros and define macro values ? Thanks, Amirouche 2013/5/4 Volker Birk > pyC11 is a grammar to parse programs in the C programming language > following ISO/IEC 9899:2011. It is written using pyPEG, a parsing > framework

Welcome PythonScript: Python to Javascript translator in 350 lines of Python

2013-03-23 Thread Amirouche Boubekki
Héllo, I'm happy to announce the immediate avaibility of PythonScript a Python -> Javascript translator written in Python. So far it works... Break it online @ http://apppyjs.appspot.com How it works ? Similarly to PyPy, it use a restricted version of Python called PythonJS. Along side this tran

Re: Pigeon Computer 0.1 Initial (BETA) release

2012-12-21 Thread Amirouche Boubekki
Héllo, 2012/12/22 Simon Forman > Pigeon Computer 0.1 Initial (BETA) release > > Summary > > > The Pigeon Computer is a simple but sophisticated system for learning > and exploring the fundamentals of computers and programming. > > It is written to support a course or class (as yet

Re: Brython - Python in the browser

2012-12-21 Thread Amirouche Boubekki
Héllo, > > doc <= 'blah blah x I will surely backlog latter or some crytologist from the futur will do and he will surely agree about the fact something strange happened around december 2012. Sorry for that, that's me trying to be funny. Last time I checked DOM manipulation is not the primary w

Re: [Neo4j] ANN: python-blueprints, printemps and printemps client

2012-10-16 Thread Amirouche Boubekki
Héllo Javier, 2012/10/16 Javier de la Rosa > Do you need Java [1] to run any of them? There is another alternative > called pyblueprints [2] through REST interface. > > [1] > http://pyjnius.readthedocs.org/en/latest/installation.html#installation > [2] https://github.com/escalant3/pyblueprints

ANN: python-blueprints, printemps and printemps client

2012-10-16 Thread Amirouche Boubekki
Héllo, I'm happy to announce about projects related to graph databases, Neo4j and OrientDB and Python: - python-blueprints is a Python bindings of Tinkerpop's Blueprintslibrary that allow you to access and query a graph database directly from Python.

Re: Plumbum (Shell Combinators) hits v1.0

2012-10-08 Thread Amirouche Boubekki
2012/10/6 Tomer Filiba > http://plumbum.readthedocs.org/en/latest/index.html > > Ever wished the wrist-handiness of shell scripts be put into a real > programming language? Say hello to Plumbum Shell Combinators. Plumbum > (Latin for lead, which was used to create pipes back in the day) is a smal

Re: Experimental Python-based shell

2012-10-03 Thread Amirouche Boubekki
2012/10/3 Jonathan Hayward > The chief benefit besides the searching, so far, is that you can use Py3k > mixed with shell commands as the scripting language--so script in Python > instead of bash. > > When using Python for scripting, Python lines are indented by an extra tab > (or four spaces) wh

Re: Experimental Python-based shell

2012-10-03 Thread Amirouche Boubekki
Héllo, 2012/10/3 Jonathan Hayward > I've made an experimental Python-based Unix/Linux shell at: > > http://JonathansCorner.com/cjsh/ > > An experimental Unix/Linux command line shell, implemented in Python 3, > that takes advantage of some more recent concepts in terms of usability and > searchi

Re: [semi OT]: Smartphones and Python?

2012-02-27 Thread Amirouche Boubekki
for which I could write Python programs. > Android is good bet, kivy has official support for it http://kivy.org/docs/guide/android.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Please verify!!

2012-02-23 Thread Amirouche Boubekki
2012/2/23 Manish Sharma > Hi I am new to python language. On my first day, somebody told me that > if any python script file is opened with any editor except python > editor, the file is corrupted. Some spacing or indentation is changed > and script stops working. I was opening the script file in

Re: Forking simplejson

2012-02-10 Thread Amirouche Boubekki
Héllo, I did it, it wasn't that difficult actually. the source is available @ https://github.com/amirouche/jsonir there is example : https://github.com/amirouche/jsonir/blob/master/example.py What makes the implementation of __json__ awkward is the iterencode support of simplejson that I kept.

Re: Looking for PyPi 2.0...

2012-02-08 Thread Amirouche Boubekki
Héllo Nathan, See below, 2012/2/8 Nathan Rice > As a user: > * Finding the right module in PyPi is a pain because there is limited, > low quality semantic information, and there is no code indexing. > * I have to install the module to examine it; I don't need to look at > docs all the time, so

Re: SnakeScript? (CoffeeScript for Python)

2012-02-02 Thread Amirouche Boubekki
They are solution to write Python code that translates to javascript see this thread http://mail.python.org/pipermail/python-list/2011-November/1283110.html 2012/2/2 Michal Hantl > Hello, > I've been looking for something similar to CoffeeScript, but for python. > > Does anyone know of such pro

Re: (don't bash me too hard) Python interpreter in JavaScript

2011-11-16 Thread Amirouche Boubekki
Héllo I am looking for a way how to bring Python interpreter to JavaScript, in > order to provide a web-based application with python scripting > capabilities. The app would have basic IDE for writing and debugging the > python code, but the interpretation, of course, would be done in > JavaScript

Is Python in the browser a dead-end ?

2011-10-28 Thread Amirouche Boubekki
Héllo, There was a thread recently about the missed opportunity for Python to be a language that could replace Javascript in the browser. They are several attempts at doing something in this spirit here are the ones I'm aware of: - pyjamas aka. pyjs it is to Python what GWT is to Java : http://p

Re: __dict__ attribute for built-in types

2011-10-27 Thread Amirouche Boubekki
> But beside this, how to recognise classes whose object doesn't have a > __dict__ attribute ? > Why do you need to access __dict__ ? maybe dir is enough see the other message -- http://mail.python.org/mailman/listinfo/python-list

Re: __dict__ attribute for built-in types

2011-10-27 Thread Amirouche Boubekki
2011/10/27 candide > I realize that built-in types objects don't provide a __dict__ attribute > and thereby i can't set an attribute to a such object, for instance > > > >>> a=[42,421] > >>> a.foo="bar" > Traceback (most recent call last): > File "", line 1, in > AttributeError: 'list' object h

Re: Forking simplejson

2011-10-27 Thread Amirouche Boubekki
2011/10/27 Chris Rebert > On Wed, Oct 26, 2011 at 2:14 AM, Amirouche Boubekki > wrote: > > Héllo, > > > > I would like to fork simplejson [1] and implement serialization rules > based > > on protocols instead of types [2], plus special cases for proto

Re: Forking simplejson

2011-10-27 Thread Amirouche Boubekki
> +---+---+ >> | Python protocol | JSON | >> | or special case | | >> +===+=**==+ >> | (ø) __json__ | see (ø) | >> +---+-**--| >> | map | object| >> > > I am curious what you mean by the '

Forking simplejson

2011-10-26 Thread Amirouche Boubekki
Héllo, I would like to fork simplejson [1] and implement serialization rules based on protocols instead of types [2], plus special cases for protocol free objects, that breaks compatibility. The benefit will be a better API for json serialization of custom classes and in the case of iterable it wi