[issue42891] segfault with gunicorn and a library made with cython bindings

2021-01-11 Thread Amirouche Boubekki
Amirouche Boubekki added the comment: The problem is prolly in lsm-db. ref: https://github.com/coleifer/python-lsm-db/issues/20 Sorry for the noise. -- resolution: -> third party status: open -> closed ___ Python tracker

[issue42891] segfault with gunicorn and a library made with cython bindings

2021-01-11 Thread Amirouche Boubekki
Amirouche Boubekki added the comment: I tried to reduce the program by replacing gunicorn / uvicorn dependency with threading.Thread and multiprocess.Pool without success. -- ___ Python tracker <https://bugs.python.org/issue42

[issue42891] segfault with gunicorn and a library made with cython bindings

2021-01-11 Thread Amirouche Boubekki
Amirouche Boubekki added the comment: > ModuleNotFoundError: No module named 'foobar' That is not a segfault. The problem I am reporting is a segfault. It can be reproduced with uvicorn as follow: from lsm import LSM db = LSM('db.sqlite') async def app(scope, receive, send): ass

[issue42891] segfault with gunicorn and a library made with cython bindings

2021-01-11 Thread Amirouche Boubekki
Amirouche Boubekki added the comment: You need to run the program with the following: python -X dev -c "from gunicorn.app.wsgiapp import run; run()" --workers=1 foobar:app where foobar.py is the code from the previous message. The crash happen when, the function `app` is execu

[issue42891] segfault with gunicorn and a library made with cython bindings

2021-01-11 Thread Amirouche Boubekki
New submission from Amirouche Boubekki : Here is a simple way to reproduce: from lsm import LSM db = LSM('db.sqlite') def app(environ, start_response): """Simplest possible application object""" for (index, (key, value)) in enumerate(db[b

[issue42436] Google use wrong "hightlight" argument

2020-11-22 Thread Amirouche Boubekki
New submission from Amirouche Boubekki : At the moment when I search for the following: https://www.google.com/search?q=ast+transformer+python+3.10 I have as second result this url: https://docs.python.org/dev/library/ast.html?highlight=s I do not understand the purpose in the query

[ANN] copernic v0.1.1: Versioned structured data, with change-request mechanic, at scale.

2020-02-23 Thread Amirouche Boubekki
I'm pleased to announce the release of copernic v0.1.1 This project wants to be a scalable application that support a change-request mechanic similar to github pull-request or gitlab merge-request, on any structured data. That includes relational data, graph-like data and tabular data.

[issue34885] asyncio documention has lost its paragraph about cancellation

2018-10-03 Thread Amirouche Boubekki
Change by Amirouche Boubekki : -- title: asycnio documention has lost its paragraph about cancellation -> asyncio documention has lost its paragraph about cancellation ___ Python tracker <https://bugs.python.org/issu

[issue34885] asycnio documention has lost its paragraph about cancellation

2018-10-03 Thread Amirouche Boubekki
New submission from Amirouche Boubekki : The paragraph was still there in 3.6 https://docs.python.org/3.6/library/asyncio-dev.html#cancellation -- assignee: docs@python components: Documentation, asyncio messages: 326966 nosy: abki, asvetlov, docs@python, yselivanov priority: normal

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

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: -

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?

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

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 yacinechaou...@yahoo.com.dmarc.invalid 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.

Re: Python vs C++

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

Re: Python vs C++

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

Re: Python vs C++

2014-08-26 Thread Amirouche Boubekki
2014-08-26 6:02 GMT+02:00 Ian Kelly ian.g.ke...@gmail.com: 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 number of bugs

Re: Python vs C++

2014-08-25 Thread Amirouche Boubekki
Héllo, 2014-08-21 14:54 GMT+02:00 David Palao dpalao.pyt...@gmail.com: 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

Re: Python vs C++

2014-08-25 Thread Amirouche Boubekki
2014-08-25 12:52 GMT+02:00 Amirouche Boubekki amirouche.boube...@gmail.com : Héllo, 2014-08-21 14:54 GMT+02:00 David Palao dpalao.pyt...@gmail.com: 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

Re: SQLAlchemy - web framework ?

2014-05-23 Thread Amirouche Boubekki
Héllo, 2014-05-13 1:34 GMT+02:00 flebber flebber.c...@gmail.com: 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 -

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 tim.thel...@gmail.com: 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,

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

2014-04-25 Thread Amirouche Boubekki
in python3, I do inspect.getsource(object) [dochttps://docs.python.org/3/library/inspect.html#inspect.getsource], I don't know the limitations. On Python 2, there is meta https://pypi.python.org/pypi/meta. My interest is different, I use to retrieve the definition of function to submit it to a

Re: object().__dict__

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

Re: object().__dict__

2014-04-23 Thread Amirouche Boubekki
2014-04-23 15:59 GMT+02:00 Phil Connell pconn...@gmail.com: On Wed, Apr 23, 2014 at 03:48:32PM +0200, Amirouche Boubekki wrote: 2014-04-23 8:11 GMT+02:00 Cameron Simpson c...@zip.com.au: Look up the __slots__ dunder var in the Python doco index: https://docs.python.org/3

[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

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 bv4bv4...@gmail.com 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

Re: [ANN] Pythonium Core 0.2.5

2013-11-18 Thread Amirouche Boubekki
2013/11/18 Amirouche Boubekki amirouche.boube...@gmail.com 2013/11/17 Salvatore DI DIO salvatore.di...@gmail.com 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

[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: [ANN] Pythonium Core 0.2.5

2013-11-17 Thread Amirouche Boubekki
2013/11/17 Salvatore DI DIO salvatore.di...@gmail.com 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 --

Re: install package from github repository

2013-11-06 Thread Amirouche Boubekki
2013/11/6 C. Ng ngc...@gmail.com 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 travisgri...@gmail.com On Nov 4, 2013, at 9:22 AM, Travis Griggs travisgri...@gmail.com wrote: I'm playing with a BeagleBone Black running

Re: install package from github repository

2013-11-04 Thread Amirouche Boubekki
create a setup.py and install it 2013/11/4 C. Ng ngc...@gmail.com 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

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 some

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 caseyc...@google.com I don't

Re: Python Practice Problems

2013-11-04 Thread Amirouche Boubekki
https://github.com/amirouche/1001-Projects 2013/11/4 Terry Reedy tjre...@udel.edu 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 bet

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 bum...@dingens.org pyC11 is a grammar to parse programs in the C programming language following ISO/IEC 9899:2011. It is written using pyPEG, a

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

Re: Brython - Python in the browser

2012-12-21 Thread Amirouche Boubekki
Héllo, doc = 'blah blah xy: '+B('True!') 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

Re: Pigeon Computer 0.1 Initial (BETA) release

2012-12-21 Thread Amirouche Boubekki
Héllo, 2012/12/22 Simon Forman forman.si...@gmail.com 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

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 Blueprintshttps://github.com/tinkerpop/blueprints/wikilibrary that allow you to access and query a graph database directly from Python.

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 ver...@gmail.com 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]

Re: Plumbum (Shell Combinators) hits v1.0

2012-10-08 Thread Amirouche Boubekki
2012/10/6 Tomer Filiba tomerfil...@gmail.com 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

Re: Experimental Python-based shell

2012-10-03 Thread Amirouche Boubekki
Héllo, 2012/10/3 Jonathan Hayward christos.jonathan.hayw...@gmail.com 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

Re: Experimental Python-based shell

2012-10-03 Thread Amirouche Boubekki
2012/10/3 Jonathan Hayward jonathan.hayw...@pobox.com 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

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 manish2...@gmail.com 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

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 nathan.alexander.r...@gmail.com 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

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 michal.ha...@gmail.com Hello, I've been looking for something similar to CoffeeScript, but for python. Does

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 :

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 'map' protocol.

Re: Forking simplejson

2011-10-27 Thread Amirouche Boubekki
2011/10/27 Chris Rebert c...@rebertia.com On Wed, Oct 26, 2011 at 2:14 AM, Amirouche Boubekki amirouche.boube...@gmail.com 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 protocol free

Re: __dict__ attribute for built-in types

2011-10-27 Thread Amirouche Boubekki
2011/10/27 candide candide@free.invalid 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 stdin, line 1, in module AttributeError:

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

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

[issue12657] Cannot override JSON encoding of basic type subclasses

2011-10-26 Thread Amirouche Boubekki
Changes by Amirouche Boubekki amirouche.boube...@gmail.com: -- nosy: +abki ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12657 ___ ___ Python-bugs

[issue4945] json checks True/False by identity, not boolean value

2011-10-26 Thread Amirouche Boubekki
Changes by Amirouche Boubekki amirouche.boube...@gmail.com: -- nosy: +abki ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4945 ___ ___ Python-bugs