Tarek Ziadé added the comment:
@Aur, go for it, I started to implement it and got lost into the details for
each backend..
--
___
Python tracker
<https://bugs.python.org/issue45
Tarek Ziadé added the comment:
Hey Christian, I hope things are well for you!
Thanks for all the precious feedback, I'll rework the patch accordingly
--
___
Python tracker
<https://bugs.python.org/issue45
New submission from Tarek Ziadé :
I am proposing the addition of a very simple helper to return the hash of a
file.
--
assignee: tarek
components: Library (Lib)
messages: 401457
nosy: tarek
priority: normal
severity: normal
status: open
title: Add a file_digest() function in hashlib
New submission from Tarek Ziadé:
This is a very useful trick to understand why the loop cleanup generates a lot
of "Exception ignored in: "
https://github.com/python/asyncio/issues/423#issuecomment-268882753
Could we consider including it in Task.__del__ ?
--
component
New submission from Tarek Ziadé:
collections.deque could be serialized in JSON as a simple array.
The only thing we can lose in the process is the maxlen value, but I think it's
a decent behaviour to ignore it when encoding and to set it to None when
decoding.
--
components: Library
Tarek Ziadé added the comment:
If os.urandom() doesn't fail, something else will fail soon after.
the random pool can be exhausted, but this is not soon after I think. In
Linux and Mac OS X, ulimit -n defaults to 512 and 256.
It's very easy to reach that limit if you write a web app
Tarek Ziadé added the comment:
Can tarek tell us more about its usecases: is he directly calling
os.urandom() or does he use the random module? How many threads?
I was using ws4py inside greenlets. ws4py uses os.urandom() to generate some
keys. So one single thread, many greenlets
Tarek Ziadé added the comment:
What does high load mean?
a web app with a few hundreds concurrent requests.
If you mean many concurrent threads, then you should probably go for
the random module, no?
I use greenlets. But, I don't know - are you suggesting os.urandom() should be
marked
Tarek Ziadé added the comment:
Well, even with greenlets, I assume you're using at least one FD
(socket) per client, no?
So you can get EMFILE on socket() just as on os.urandom().
I do many calls on urandom() so that's the FD bottleneck.
So os.urandom() isn't your biggest problem here
Tarek Ziadé added the comment:
Unless you're doing many calls *in parallel* it's unlikely to be a
bottleneck.
That's what we're saying since message 1. Antoine, allo quoi! :)
os.urandom() is a convenience function, it doesn't have to be extremely
optimized
I suggest that you tell
Tarek Ziadé added the comment:
So please explain me :-).
it sounded like you did not really want any explanation
os.urandom() can only be called by one thread/greenlet at a time.
do you mean that we cannot have two parallel calls of that function ?
e.g. two opened FD at the same time
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
Tarek
--
Tarek Ziadé · http://ziade.org · @tarek_ziade
--
http://mail.python.org/mailman
s/TPC/TCP ;)
--
http://mail.python.org/mailman/listinfo/python-list
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
b=2
Any one help me in understanding how to make sure that config file to have a
structure like this and
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
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
b=2
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 some I/O
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
On 9/23/12 11:19 AM, Andriy Kornatskyy wrote:
I have run recently a benchmark of a trivial 'hello world' application for
various python web frameworks (bottle, django, flask, pyramid, web.py,
wheezy.web) hosted in uWSGI/cpython2.7 and gunicorn/pypy1.9... you might find
it interesting:
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()
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
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
On 9/21/12 2:14 PM, xliiv wrote:
Python Paste is probably what you are looking for - see
http://lucasmanual.com/mywiki/PythonPaste for example
It's a nice beast but:
- it's not built in. Should it be? I think it should.
You can suggest this to python-ideas but I really doubt you will get any
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
Tarek Ziadé ziade.ta...@gmail.com added the comment:
We should keep sysconfig imo
--
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15147
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
--
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 no way
Tarek Ziadé ziade.ta...@gmail.com added the comment:
the current code works as expected. Why not leaving it like this since your
change seem to be comsetics only ?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14967
Tarek Ziadé ziade.ta...@gmail.com added the comment:
can you give an example of a bad error ?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14967
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
resolution: - duplicate
superseder: - Improve error reporting for packaging.util.resolve_name
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14967
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
New submission from Tarek Ziadé ziade.ta...@gmail.com:
Pyramid contains this file:
pyramid/tests/fixtures/static/h\xc3\xa9h\xc3\xa9.html
and pysetup install pyramid chokes on it when creating the RECORD file,
because the csv writer is given a wrong encoded value in
util._write_record_file
New submission from Tarek Ziadé ziade.ta...@gmail.com:
distutils2 pysetup install is not working on py2 because the wrapper tries to
pull func.f_name, which does not exist.
--
assignee: tarek
messages: 155463
nosy: eric.araujo, j1m, tarek
priority: critical
severity: normal
status
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14263
___
___
Python-bugs-list
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
components: +Distutils2
nosy: +alexis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14263
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
assignee: tarek
components: Distutils2
nosy: alexis, eric.araujo, j1m, tarek
priority: high
severity: normal
status: open
title: can't install zope.event 3.4.0
type: behavior
versions: Python 2.6, Python 2.7
New submission from Tarek Ziadé ziade.ta...@gmail.com:
it gets 3.4.1 for some reason
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14264
New submission from Tarek Ziadé ziade.ta...@gmail.com:
the mocked list_installed_files() returns a list of files instead of a list of
(path, md5, path)
--
assignee: tarek
components: Distutils2
messages: 155483
nosy: alexis, eric.araujo, tarek
priority: normal
severity: normal
status
Tarek Ziadé ziade.ta...@gmail.com added the comment:
see Bug 14263 also
--
dependencies: +switch_index_if_fails fails on py2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14002
New submission from Tarek Ziadé ziade.ta...@gmail.com:
http://docs.python.org/dev/packaging/index.html
we still have setup.py pages here from the old doc
--
assignee: eric.araujo
components: Distutils2
messages: 155503
nosy: alexis, eric.araujo, j1m, tarek
priority: normal
severity
New submission from Tarek Ziadé ziade.ta...@gmail.com:
$ ./pysetup dwqqwddwq
No handlers could be found for logger distutils2
--
assignee: eric.araujo
components: Distutils2
messages: 155509
nosy: alexis, eric.araujo, tarek
priority: high
severity: normal
status: open
title: handler
New submission from Tarek Ziadé ziade.ta...@gmail.com:
the installer needs to read requires.txt to build the deps list as well
--
assignee: eric.araujo
components: Distutils2
messages: 155513
nosy: alexis, eric.araujo, tarek
priority: normal
severity: normal
status: open
title: pysetup
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
assignee: eric.araujo - alexis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14274
___
___
Python
Tarek Ziadé ziade.ta...@gmail.com added the comment:
@grahamd : sometimes you don't own the code that contains the thread, so I
think it's better to be able to shutdown properly all flavors of threads.
--
___
Python tracker rep...@bugs.python.org
Tarek Ziadé ziade.ta...@gmail.com added the comment:
Is there any good reason not to add this feature ? what would be the problem ?
It does seem to be for the best, I don't see any drawbacks
--
___
Python tracker rep...@bugs.python.org
http
Tarek Ziadé ziade.ta...@gmail.com added the comment:
Mmm.. you did not say yet why you are against this feature, other than the lib
*should not* use non-daemonized threads
This sounds like the lib should not use feature X in Python because it will
block everything
And now we're proposing
Tarek Ziadé ziade.ta...@gmail.com added the comment:
Add an actual example here at least of how with the proposed feature your
code would then look.
That's the part I am not sure at all about in fact. I don't know at all the
internals in the shutdown process in Python and I was hoping
New submission from Tarek Ziadé ziade.ta...@gmail.com:
If you try to run the code below and stop it with ctrl+C, it will lock because
atexit is never reached.
Antoine proposed to add a way to have one atexit() per thread, so we can call
some cleanup code when the app shuts down
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14073
___
___
Python-bugs-list
, and return
structured 400 responses.
Check it out :
- Documentation - http://packages.python.org/cornice
- PyPI - http://pypi.python.org/pypi/cornice
- Repository - https://github.com/mozilla-services/cornice
We'd love feedback new contributors !
Cheers
Tarek
--
Tarek Ziadé | http
!
Cheers
Tarek
--
Tarek Ziadé | http://ziade.org
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations/
Tarek Ziadé ziade.ta...@gmail.com added the comment:
I am curious: wouldn't be a way of keeping the compiled expressions in a static
cache somewhere, so we would compile them just once and have both import time
and runtime fast ?
--
___
Python
Tarek Ziadé ziade.ta...@gmail.com added the comment:
Sounds good. Also, we should make the assumption that this hook might be
deactivated or might fail. So it should not break the uninstallation in this
case (a warning seem fine)
--
___
Python
Tarek Ziadé ziade.ta...@gmail.com added the comment:
We need to make it crystal clear in the doc: developers need to understand this
behavior.
Also, for a fatal error, I am -1 for activating this for an uninstall hook
because we want to uninstall wathever happens in the hooks, +1 for others
New submission from Tarek Ziadé ziade.ta...@gmail.com:
It occurs to me that our Crawler don't allow us to specify extra locations,
like easy_install or pypi
We should add that and let the crawler look up to these places because the index
--
messages: 138439
nosy: alexis, tarek
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
type: - feature request
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12347
___
___
Python-bugs
New submission from Tarek Ziadé ziade.ta...@gmail.com:
the PyPI server deals with the package names case issue: if you get webob,
it'll find WebOb.
That's not true for mirrors, so we need to fallback to the global index when
webob is not found under simple/webob/, and look for the name
Tarek Ziadé ziade.ta...@gmail.com added the comment:
see also http://mail.python.org/pipermail/catalog-sig/2011-June/003793.html
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12348
Tarek Ziadé ziade.ta...@gmail.com added the comment:
I find this behavior a bit awkward. Maybe we should ask first if it's ok to
create a new setup.cfg and rename the old one, *before* doing it.
--
___
Python tracker rep...@bugs.python.org
http
Tarek Ziadé ziade.ta...@gmail.com added the comment:
This is probably because Tshepang works in a dev environment.
I think we should have a nice message like The installation path xxx seems not
to exist, aborting installation
--
___
Python tracker
Tarek Ziadé ziade.ta...@gmail.com added the comment:
Strange, you should get a /usr/[local]/lib/python3.3/site-packages when you
just run ./configure; make
It looks like you have a dev environment that has installed some stuff
--
___
Python tracker
Tarek Ziadé ziade.ta...@gmail.com added the comment:
s/should get/should not get/
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12246
Tarek Ziadé ziade.ta...@gmail.com added the comment:
On Wed, Jun 1, 2011 at 5:17 PM, Fred Drake fdr...@acm.org wrote:
On Wed, Jun 1, 2011 at 11:14 AM, anatoly techtonik techto...@gmail.com
wrote:
Adding catalog-sig to CC. I can guarantee this for Windows. I'll be
near Linux box tomorrow
New submission from Tarek Ziadé ziade.ta...@gmail.com:
All actions in packaging.run need to respect a basic exit convention 0/1.
This is important because pysetup will be used in automated scripts so the
caller needs to know wether the call failed or succedeed.
Example: pysetup install
Tarek Ziadé ziade.ta...@gmail.com added the comment:
fixed install in http://hg.python.org/cpython/rev/ebff46b232ed
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1
Tarek Ziadé ziade.ta...@gmail.com added the comment:
Have you tried registering/uploading stuff through https ? if it's working as
is I am +1 for this change in the next 2.7.x.
For 2.6 don't know if it's worth a security patch. Martin, Barry, any opinion ?
--
nosy: +barry, loewis
Tarek Ziadé ziade.ta...@gmail.com added the comment:
to be backported in packaging -- in a way that will make it work with previous
python versions for the incoming 2.x backport
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org
Tarek Ziadé ziade.ta...@gmail.com added the comment:
I am going to remove wsgiref.egg-info
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10645
Tarek Ziadé ziade.ta...@gmail.com added the comment:
I fixed it
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12125
New submission from Tarek Ziadé ziade.ta...@gmail.com:
I am removing that metadata info, since we're moving to PEP 376
--
assignee: tarek
components: Library (Lib)
messages: 137306
nosy: tarek
priority: normal
severity: normal
status: open
title: Removing wsgiref.egg-info
versions
Tarek Ziadé ziade.ta...@gmail.com added the comment:
see issue12218
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10645
___
___
Python-bugs
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12218
Tarek Ziadé ziade.ta...@gmail.com added the comment:
looking
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12180
___
___
Python-bugs-list
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
assignee: - tarek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12180
___
___
Python-bugs-list
Tarek Ziadé ziade.ta...@gmail.com added the comment:
all good now
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12180
Tarek Ziadé ziade.ta...@gmail.com added the comment:
I fixed it. The pypi server missed a Content-Length in its responses, and that
made urlretrieve crazy :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12113
Tarek Ziadé ziade.ta...@gmail.com added the comment:
good idea! want to tackle this ?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12169
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
assignee: - tarek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12125
___
___
Python-bugs-list
Tarek Ziadé ziade.ta...@gmail.com added the comment:
Thanks for the test David
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12143
Tarek Ziadé ziade.ta...@gmail.com added the comment:
I am trying to fix this by backporting the distutils fix, but --enabled-share
does not work for me ?!
$ make distclean ./configure --enable-shared --with-pydebug make
$ ./python
libpython3.3dm.so.1.0: cannot open shared object file
Tarek Ziadé ziade.ta...@gmail.com added the comment:
Fixed in packaging. It seems that all fronts are OK, so closing this
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10126
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
resolution: duplicate -
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12132
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12132
___
___
Python-bugs
Tarek Ziadé ziade.ta...@gmail.com added the comment:
@ned: right. done, and fixes issue12132
--
assignee: pitrou - tarek
components: +Library (Lib)
title: --multiprocessing fails with packaging.tests.test_command_build_ext -
sysconfig.get_config_vars('srcdir') fails in specific cases
New submission from Tarek Ziadé ziade.ta...@gmail.com:
==
ERROR: test_get_path (test.test_sysconfig.TestSysConfig)
--
Traceback (most recent call last):
File
Tarek Ziadé ziade.ta...@gmail.com added the comment:
As I said on python-dev, I am aware of the failures. I have fixed most of them
today and yesterday. I have four left including this one.
So no need to add more issues, I am on it :)
--
___
Python
Tarek Ziadé ziade.ta...@gmail.com added the comment:
That's a feature request then, so we will see this once the bbot are green
--
priority: critical - normal
title: test_packaging failure under Windows - The spawn function should return
stderr.
type: behavior - feature request
Tarek Ziadé ziade.ta...@gmail.com added the comment:
This seems to be the proper fix, I forgot to change the Makefile. Would you
mind applying it ? thanks
about editing this file: as mentioned on python dev, there will be several
levels of customization (global, per project, per user
New submission from Tarek Ziadé ziade.ta...@gmail.com:
this test module looks for sysconfig.get_config_var('srcdir') which in turns
uses the sys,executable path.
multiprocess seems to change it in every process, leading to the errors.
To reproduce:
./python Lib/test/regrtest.py -j2 -v
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
superseder: - test_packaging failures when run with -j
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12132
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
superseder: test_packaging failures when run with -j - --multiprocessing fails
with packaging.tests.test_command_build_ext
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12132
Tarek Ziadé ziade.ta...@gmail.com added the comment:
Oops. It's a duplicate. Keeping this one since the problem was narrowed to
multiprocessing/sys,executable and sysconfig
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
resolution: - duplicate
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12132
Tarek Ziadé ziade.ta...@gmail.com added the comment:
sysconfig is looking for the source dir when
sysconfig.get_config_var('srcdir')
is called.
And this is done like this:
if sys.executable:
_PROJECT_BASE = os.path.dirname(_safe_realpath(sys.executable))
else:
# sys.executable
New submission from Tarek Ziadé ziade.ta...@gmail.com:
I can't reproduce this yet, or compare it to distutils. I
==
ERROR: test_build_ext (packaging.tests.test_command_build_ext.BuildExtTestCase
Tarek Ziadé ziade.ta...@gmail.com added the comment:
Looks good, please commit this
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12112
New submission from Tarek Ziadé ziade.ta...@gmail.com:
==
ERROR: packaging.tests.test_command_upload_docs
(unittest.loader.ModuleImportFailure)
--
Traceback
Tarek Ziadé ziade.ta...@gmail.com added the comment:
my commit fixed only the first issue. the second one is a separate issue that
needs more investigation
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12113
Tarek Ziadé ziade.ta...@gmail.com added the comment:
on it
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12120
___
___
Python-bugs-list mailing
Tarek Ziadé ziade.ta...@gmail.com added the comment:
I cannot reproduce this. there's exactly the same test in distutils, so I am
wondering why it passes there and not in packaging for you.
Any special way to run the tests ?
--
___
Python tracker
1 - 100 of 962 matches
Mail list logo