[issue39603] [security] http.client: HTTP Header Injection in the HTTP method

2020-09-28 Thread Mauro Matteo Cascella
Mauro Matteo Cascella added the comment: Hello, CVE-2020-26116 has been requested/assigned for this flaw via MITRE form: https://cveform.mitre.org/ I suggest mentioning it in the related vulnerability page: https://python-security.readthedocs.io/vuln/http-header-injection-method.html Also

[issue25024] Allow passing "delete=False" to TemporaryDirectory

2020-03-26 Thread Mauro S. M. Rodrigues
Mauro S. M. Rodrigues added the comment: So per Serhiy comment can I assume the patch is not necessary? If so I believe the issue should be closed as well. -- ___ Python tracker <https://bugs.python.org/issue25

[issue25024] Allow passing "delete=False" to TemporaryDirectory

2020-03-17 Thread Mauro S. M. Rodrigues
Mauro S. M. Rodrigues added the comment: Hi Anthony, Thanks for asking, yeah I'm interested in push a new version. I'll do it later today and I'll post a link to the pr here. -- ___ Python tracker <https://bugs.python.org/issue25

Re: [ZODB] Django-hotsauce/ZODB 5.4.0/PyPy nightly sprint!!

2018-06-08 Thread Mauro Amico
seems to me really similar to https://github.com/zopefoundation/ZEO/pull/96 try to upgrade to ZEO 5.1.2 mauro. Il Ven 8 Giu 2018, 03:29 Etienne Robillard ha scritto: > Yo people I'm doing a nightly hacking sprint for django-hotsauce on pypy > and got some cool bugs I would like to

[issue31838] Python 3.4 supported SSL version

2017-10-22 Thread Mauro Fontana
Change by Mauro Fontana <fontana.ma...@gmail.com>: -- stage: -> resolved status: open -> closed ___ Python tracker <rep...@bugs.python.org> <https://bugs.

[issue31838] Python 3.4 supported SSL version

2017-10-22 Thread Mauro Fontana
Mauro Fontana <fontana.ma...@gmail.com> added the comment: Hi Christian Great! Thanks for the information. I apologize if this was trivial, just wanted to make sure. Cheers, -- ___ Python tracker <rep...@bugs.python.org> <https://

[issue31838] Python 3.4 supported SSL version

2017-10-21 Thread Mauro
New submission from Mauro <fontana.ma...@gmail.com>: Hello and sorry to bother. This is my first message to the list. I'm trying to build python 3.4.7 downloaded from python.org (released in August this year) and while following the exact same steps detailed in https://bugs.pyth

[issue23883] __all__ lists are incomplete

2015-11-15 Thread Mauro S. M. Rodrigues
Mauro S. M. Rodrigues added the comment: New version. -- Added file: http://bugs.python.org/file41052/issue23883_fileinput.v2.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue25328] ValueError in smtpd.py __init__() is not raised

2015-10-08 Thread Mauro S. M. Rodrigues
Mauro S. M. Rodrigues added the comment: Hi Barry, I was testing this and it seems to work, am I doing something wrong in order to reproduce it? I've used the same parameters from the unit tests Python 3.5.0+ (3.5:1e99ba6b7c98, Oct 8 2015, 17:12:06) [GCC 4.8.4] on linux Type "

[issue25024] Allow passing "delete=False" to TemporaryDirectory

2015-10-05 Thread Mauro S. M. Rodrigues
Mauro S. M. Rodrigues added the comment: Hi everybody! This is my second patch on the community, although the first one is not merged, so any feedback is appreciated. I've added tests to cover this new situation and docs to let people know about the possibility of keeping their temporary

[issue23883] __all__ lists are incomplete

2015-06-17 Thread Mauro S. M. Rodrigues
Changes by Mauro S. M. Rodrigues maurosmrodrig...@gmail.com: Removed file: http://bugs.python.org/file39140/issue23883_fileinput.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23883

[issue23883] __all__ lists are incomplete

2015-06-17 Thread Mauro S. M. Rodrigues
Changes by Mauro S. M. Rodrigues maurosmrodrig...@gmail.com: Added file: http://bugs.python.org/file39718/issue23883_fileinput.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23883

[issue23883] __all__ lists are incomplete

2015-04-19 Thread Mauro Rodrigues
Mauro Rodrigues added the comment: Hi guys! Here is a patch for the fileinput module, with some names beyond fileinput.fileno: fileinput.hook_compressed, fileinput.hook_encoded as mentioned in the docs https://docs.python.org/3/library/fileinput.html This is my first patch as well, so

Re: Asyncio (or something better) for control of a vacuum system/components.

2014-03-24 Thread mauro
Hav you considered the option of a SCADA solution? There are many commercials solutions but also a few open source options such us: http://openscada.org/ http://pvbrowser.de/pvbrowser/index.php You may also ask the vacuum system provider, they should be aware of SCADA solutions supporting their

intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread mauro
Dictionaries and sets share a few properties: - Dictionaries keys are unique as well as sets items - Dictionaries and sets are both unordered - Dictionaries and sets are both accessed by key - Dictionaries and sets are both mutables So I wonder why operations such us intersection, union,

Re: intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread mauro
{'A': 1} | {'A': 2} I would propose at least four: {'A': 1} # choose the LHS {'A': 2} # choose the RHS {'A': (1,2)} # a resulting pair of both set(['A']) # you did set-ops, so you get a set The implementation should define if LHS or RHS and user should change the order

Re: intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread mauro
Il Tue, 25 Feb 2014 22:02:01 +, mauro ha scritto: {'A': 1} | {'A': 2} I would propose at least four: {'A': 1} # choose the LHS {'A': 2} # choose the RHS {'A': (1,2)} # a resulting pair of both set(['A']) # you did set-ops, so you get a set The implementation should

Re: intersection, union, difference, symmetric difference for dictionaries

2014-02-25 Thread mauro
{1, 2} {2, 3} == {2} In my mind the intersection is evaluated on keys, so the resulting dict should be the empty one but {1:a, 2:b, 3:c} {2:b, 3:e, 4:f} == ??? my output will be {2:b, 3:e} or {2:b, 3:c} depending on the implementation choice. The most obvious result is

[issue917120] imaplib: incorrect quoting in commands

2013-02-12 Thread Mauro Cicognini
Mauro Cicognini added the comment: The removal of the dead code causes imaplib under py3k to lose the quoting functionality that is described in documentation (except for passwords, that do get always quoted as stated). I submit that we give at least a temporary warning in the docs

[issue917120] imaplib: incorrect quoting in commands

2013-02-12 Thread Mauro Cicognini
Mauro Cicognini added the comment: David, that is exactly what I meant: functionality for Python 3 is less than the functionality available for Python 2, and behavior is completely out of sync with the documentation. Bug or not, and independent of the root cause (I don't know if anyone

Re: httplib2 download forbidden

2011-10-06 Thread Mauro Zaccariotto
On 6 Ott, 09:05, Tim Roberts t...@probo.com wrote: Mauro Zaccariotto mzaccario...@h-umus.it wrote: Hi! does anyone know what's happening herehttp://code.google.com/p/httplib2/ ? I get this: 403. That s an error. Your client does not have permission to get URL /p/httplib2/ from this server

httplib2 download forbidden

2011-10-05 Thread Mauro Zaccariotto
Hi! does anyone know what's happening here http://code.google.com/p/httplib2/ ? I get this: 403. That’s an error. Your client does not have permission to get URL /p/httplib2/ from this server. That’s all we know. It seems like the httplib2 googlecode project is preventing from accessing the

[issue12407] test_subinterps fails on Windows

2011-06-28 Thread Cesare Di Mauro
Cesare Di Mauro cesare.di.ma...@gmail.com added the comment: Unfortunately this test isn't skip on normal setup (using VisualStudio 2008 Express). I've updated the clone just a few minutes ago, rebuilt Python (in Debug mode), and that's what happened: D:\CPythonPCbuild\python_d.exe Lib\test

[issue12407] test_subinterps fails on Windows

2011-06-25 Thread Cesare Di Mauro
New submission from Cesare Di Mauro cesare.di.ma...@gmail.com: This test fails on Windows because it tries to change the working folder to an empty string. Anyway, even changing: os.chdir(basepath) with: os.chdir(basepath or '.') it fails because the subprocess tries to execute an ELF

[issue12408] Relative import used on test_future5

2011-06-25 Thread Cesare Di Mauro
New submission from Cesare Di Mauro cesare.di.ma...@gmail.com: Executing test_future5 fails: D:\CPythonPCbuild\python_d.exe Lib\test\test_future5.py Traceback (most recent call last): File Lib\test\test_future5.py, line 6, in module from . import support ValueError: Attempted relative

Re: question about endswith()

2011-03-04 Thread Mauro Caceres
: if filename.endswith(extensions) : print filename -- Mauro Cáceres -- http://mail.python.org/mailman/listinfo/python-list

Re: Extending classes __init__behavior for newbies

2011-02-14 Thread Mauro Caceres
documentation also recommends to use super() http://docs.python.org/library/functions.html#super -- Mauro Cáceres -- http://mail.python.org/mailman/listinfo/python-list

Re: returning all matching groups with re.search()

2011-02-07 Thread Mauro Caceres
has more than one group. Empty matches are included in the result. re.findall('e','fredbarneybettywilma') ['e', 'e', 'e'] -- Mauro Cáceres -- http://mail.python.org/mailman/listinfo/python-list

Re: Short circuting

2011-01-24 Thread Mauro Caceres
the dictionary will have only one pair. result = pattern.search(line) if result: for key,val in result.groupdict().iteritems(): actions[key](val) -- Mauro Cáceres -- http://mail.python.org/mailman/listinfo/python-list

Re: Books recommendation

2010-12-07 Thread Mauro Caceres
I am also interested to find where I can get Python modules from and how... similar tools and sites with cpan and ppm for Perl. You should look at http://pypi.python.org/pypi, for modules. pip (http://pip.openplans.org/) is a tool used to install python modules. enjoy -- Mauro Cáceres

[issue8890] Use tempfile instead of /tmp in examples

2010-11-21 Thread Mauro Navarro Baraldi
Mauro Navarro Baraldi mauro.bara...@gmail.com added the comment: Reviewing this thread and talking with another friends, I thought that the pythonic way to solve it should be use the tempfile module. And here is a suggestion using the logging module with tempfile. import logging import

[issue8890] Use tempfile instead of /tmp in examples

2010-11-20 Thread Mauro Navarro Baraldi
Mauro Navarro Baraldi mauro.bara...@gmail.com added the comment: Replace to most use of /tmp/tempfile for just tempfile, as sugested before. -- keywords: +patch nosy: +maurobaraldi Added file: http://bugs.python.org/file19698/py3k-docs.patch

Ping and ARP on both Win and Linux in Python

2008-03-13 Thread Mauro Baba Mascia
Hi, this is my question: I want to know if several switch (about 50) in a big lan are up and then know their MAC addresses to do a list that contains host name, ip and mac. I know only the range of their IP addresses (the host name it's simply to know using socket.gethostn. The first idea it's

setup.py build SWIG: missing py files (they are outside the build directory)

2007-10-10 Thread mauro
.win32.zip and all this is quite annoying... Did I miss some option in the setup? Is it possible to run a system command (copy) after each extension is compiled and linked and the corresponding .py file is generated? Thanks in advance! Mauro -- http://mail.python.org/mailman/listinfo/python-list

Re: cannot create python packages

2007-10-10 Thread mauro
On 10 Ott, 15:01, Konstantinos Pachopoulos [EMAIL PROTECTED] wrote: Hi, i have the following files: current_dir/level1/Called.py current_dir/Caller.py Called.py: --- class Called: def exec1(self): print Hello Caller.py: -- from level1.Called import *

Re: Python class method as an argument of a function in a C extension

2007-09-27 Thread mauro
the PyObject_CallObject, as you suggest. Mauro -- http://mail.python.org/mailman/listinfo/python-list

PyObject_CallObject: difference between functions and class methods

2007-09-27 Thread mauro
): mymodule.main(myfunc) # This will work mymodule.main(self.mymethod) # This will not work (Segmentation fault) x = MyClass() x.runme() ## Thanks in advance. Mauro -- http://mail.python.org/mailman/listinfo/python-list

Re: Launching command on windows

2007-09-27 Thread mauro
be cool :) If you don't mind using spawnl instead of system, this should work even with spaces: os.spawnl(os.P_NOWAITO, command) I hope it helps. Mauro -- http://mail.python.org/mailman/listinfo/python-list

Python class method as an argument of a function in a C extension

2007-09-26 Thread mauro
Hi all, I am trying to wrap some C code using SWIG (win32, mingw). I am new to SWIG and to the Python/C API so what I am doing is looking at the examples and trying to fit them to my needs, but I cannot find any complete demo example of a C function taking as an argument a Python function defined

Re: Python versus Perl ?

2005-02-11 Thread Mauro Cicognini
to see scarce resources wasted. Mauro -- http://mail.python.org/mailman/listinfo/python-list