Marcos M added the comment:
Let me provide a link to ease finding this piece of documentation
https://docs.python.org/3/howto/descriptor.html#static-methods
--
___
Python tracker
<https://bugs.python.org/issue43
New submission from Marcos M :
> To recap, functions have a __get__() method so that they can be converted to
> a method when accessed as attributes. The non-data descriptor transforms an
> obj.f(*args) call into f(obj, *args). Calling cls.f(*args) becomes f(*args).
I THINK it s
João Marcos added the comment:
Thanks for the replies!.
Here's the link for discussion in the Python Ideas:
https://discuss.python.org/t/adding-the-method-find-to-list/4113
--
___
Python tracker
<https://bugs.python.org/issue40
João Marcos added the comment:
This is my first issue, is this the right place to discuss enhancements?
--
components: +Library (Lib)
___
Python tracker
<https://bugs.python.org/issue40
New submission from João Marcos :
"""
PROBLEM:
When trying to search the position of an element inside a list, we should use
the `in` operator to first check if the element exists, and then use the
`index` method to obtain the index.
`in` (__contains__) runs a linear s
New submission from Marcos Dione :
I'm trying to add external entities support to xmltodict[1]. For that I
extended the handler to have a ExternalEntityRefHandler handler. After reading
a couple of files, the script lock in a tight loop.
I ran the script with gdb (!!) and found that expat
Marcos Dione added the comment:
Thanks for all the examples, I'm convinced.
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
versions: +Python 3.4, Python 3.5, Python 3.6
___
Python tracker
<https://bug
New submission from Marcos Dione :
Following https://blog.lerner.co.il/pythons-str-isdigit-vs-str-isnumeric/, we
have this:
Python 3.8.0a1+ (heads/master:001fee14e0, Feb 20 2019, 08:28:02)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "licens
Marcos Dione added the comment:
Thanks Gianpaolo for pushing for this. Great job.
--
___
Python tracker
<https://bugs.python.org/issue33671>
___
___
Python-bug
Marcos Dione <mdi...@grulic.org.ar> added the comment:
I'm really sorry, but I don't have time to continue with this (new daughter!).
Can someone else pick it up?
--
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
New submission from Marcos Soutullo:
Hello,
I have been taking a look into your ChainMap collections documentation
(https://docs.python.org/3.6/library/collections.html?highlight=collections#collections.ChainMap),
specifically the third code example on "8.3.1.1. ChainMap Examples and Re
Marcos Thomaz added the comment:
Note that mathematic expression is wrong. -7 divided by 2 is -3, not -4
--
resolution: -> rejected
type: behavior -> crash
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
Marcos Thomaz added the comment:
Try this operations, in interactive environment:
>> 7 // 2
3
>> -7 // 2
-4
--
resolution: not a bug ->
status: closed -> open
versions: +Python 3.3
___
Python tracker <rep...@bugs.python.org>
Marcos Thomaz added the comment:
I'm sorry, but was a typing error. Try this operations:
a, b, c = 7, -7, 2
print "1:", a // c, a % c
print "2:", b // c, b % c
the result is:
1: 3 1
2: -4 1
The division is the same, except by the signal (variable b is negative, but
both,
New submission from Marcos Thomaz:
At divide a negative integer number for a positive integer number, the result
is wrong. For example, in operation:
a, b, c = -7, 2, 7
d = divmod(a, b)
print a//b, a%b, c[0], c // b, c%b
The values printed are -4 1 3 1
--
components: Interpreter
Changes by Marcos Dione <mdi...@grulic.org.ar>:
--
components: +Library (Lib)
type: -> enhancement
versions: +Python 3.7
___
Python tracker <rep...@bugs.python.org>
<http://bugs.pyt
New submission from Marcos Dione:
According to the documentation, the second parameter for os.waitpid(), called
options, must be most of the time 0. So why not make it the default value?
The attached patch implements the proposed change, which is API compatible with
current usages
Changes by Marcos Dione <mdi...@grulic.org.ar>:
--
versions: +Python 3.3, Python 3.4
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
Marcos Dione added the comment:
New patch following comments from SilentGhost.
--
Added file: http://bugs.python.org/file44467/fix_28019.diff
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Changes by Marcos Dione <mdi...@grulic.org.ar>:
--
versions: +Python 3.3, Python 3.4
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
Marcos Dione added the comment:
Here's a first approach on fixing this bug. I'm not sure how to handle the case
where step=1.0.
--
keywords: +patch
Added file: http://bugs.python.org/file44466/fix_28019.diff
___
Python tracker <
New submission from Marcos Dione:
If the `step` parameter for `itertools.count()` rounds to 1 (f.i., 1.1,
1.437643, 1.9), then it fallsback to fast (integer) mode and increases the
counter by 1. Here's an example:
Python 3.6.0a4+ (default:ddc95a9bc2e0+, Sep 8 2016, 14:46:19)
>>&g
Marcos Dione added the comment:
Fixed extra space and semicolon (?!?!). Also, I'm getting 500 errors from
riedvelt when I try to reply to comments.
--
Added file: http://bugs.python.org/file43688/copy_file_range.diff
___
Python tracker <
Marcos Dione added the comment:
Another version:
* Changed availability to kernel type, version and date.
--
Added file: http://bugs.python.org/file43640/copy_file_range.diff
___
Python tracker <rep...@bugs.python.org>
<http://bugs.p
Marcos Dione added the comment:
New version:
* Adds a new test for offset parameters.
--
Added file: http://bugs.python.org/file43639/copy_file_range.diff
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Marcos Dione added the comment:
* Updated the patch to latest version.
* PEP-8'ed the tests.
* Dropped flags from the API but not the internal function.
--
Added file: http://bugs.python.org/file43624/copy_file_range.diff
___
Python tracker <
Marcos Dione added the comment:
ENOSYS catching fixed.
--
Added file: http://bugs.python.org/file43319/copy_file_range.diff
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Marcos Dione added the comment:
Fixed the last comments, including comparing what was written to the original
data, but only to the length of what was actually written. I'm just not sure if
the way to handle the syscall not existing is ok.
--
Added file: http://bugs.python.org
Marcos Dione added the comment:
I added a couple of unit tests, which lead me to fix a couple of bugs (yay!).
I discarded the idea of removing any reference to flags.
--
Added file: http://bugs.python.org/file43310/copy_file_range.diff
___
Python
Marcos Dione added the comment:
I settled for s/in/src/ and s/out/dst/, fixed typos, made sure the docs are in
sync (parameters in the docstring were out of order), rephrased paragraph about
flags parameter and included the configure.ac code for detecting availability
of the syscall. I'm also
Marcos Dione added the comment:
Sorry for the delay.
Based on suggestions in the mailing list, I changed the *count* handling as if
it were a ssize_t, and I added a note about ignored output parameters.
--
title: Expose new copy_file_range() syscal in os module. -> Expose
Marcos Dione added the comment:
I fixed most of the type problems, except that I'm not sure how to convert to
size_t. Someone suggested to convert with 'n', then check if it's negative and
correct. I'll ask the mailing list for better suggestions.
I also noted that running 'hg diff' shows
Marcos Dione added the comment:
> Yes, having a high-level version of copy_file_range() that falls back to
> copyfileobj() should be okay.
I'm not sure about this. For the moment c_f_o() is available only if the
syscall is there.
> I am wondering if it would be nice to
Marcos Dione added the comment:
I managed to modify the congigure.ac file so it includes the proper test. after
I run autoconf it generated the proper configure script, but I also needed to
run autoheaders (both run by make autoconf). This last command modified a
generated file that's
Marcos Dione added the comment:
I'll do the copyfile() part once I'm convinced it doesn't break anything else.
--
title: Expose new copy_file_range() syscal in os module and use it to improve
shutils.copy() -> Expose new copy_file_range() syscal in os mod
Marcos Dione added the comment:
> About changing copyfileobj(), here are some test cases which may help explain
> the compatibility problems:
I see, I was expecting something like that after reading
https://bugs.python.org/issue25063 's conclusions. I removed that part.
> Perhaps
Marcos Dione added the comment:
Updated the patch withe most of Martin Panter's and all vadium's comments.
--
Added file: http://bugs.python.org/file42628/copy_file_range.diff
___
Python tracker <rep...@bugs.python.org>
<http://bugs.p
Marcos Dione added the comment:
> I didn’t see any changes to the configure script in your patches. Did you
> make that change to define HAVE_COPY_FILE_RANGE yet?
I'm not really sure how to make the test for configure.ac. Other functions are
checked differently (availability of header
Changes by Marcos Dione <mdi...@grulic.org.ar>:
Removed file: http://bugs.python.org/file42617/copy_file_range.diff
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
Marcos Dione added the comment:
New version. Factoring the old method in a nested function also paves the way
to implement https://bugs.python.org/issue25156 .
--
Added file: http://bugs.python.org/file42619/copy_file_range.diff
___
Python tracker
Marcos Dione added the comment:
Hmm, I just noticed that it doesn't fallback to normal copy if the arguments
are not valid (EBADF, EXDEV). Back to the drawing board...
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Marcos Dione added the comment:
Ok, I have a preliminary version of the patch. It has several parts:
* Adding the functionality to the os module, with docstring.
* Make shutil.copyfileobj() to use it if available.
* Modify the docs (this has to be done by hand, right?).
* Modify NEWS and ACKS
Marcos Dione added the comment:
Version without the NEWS and ACKS change.
--
Added file: http://bugs.python.org/file42617/copy_file_range.diff
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Changes by Marcos Dione <mdi...@grulic.org.ar>:
Removed file: http://bugs.python.org/file42616/copy_file_range.diff
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
Marcos Dione added the comment:
Then I don't know. My only worry is whether having the method local to os would
allow shutils.copy() to use it or not.
I will start by looking at other similar functions there to see to do it.
urandom() looks like a good starting point
Marcos Dione added the comment:
Already there:
http://man7.org/linux/man-pages/man2/copy_file_range.2.html
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Marcos Dione added the comment:
Debian Sid, arch Linux and Fedora FC24 (alpha) already have linux-4.5, others
would certainly follow soon. Meanwhile, I could start developing the patch and
we could review it when you think it's appropriate
New submission from Marcos Dione:
copy_file_range() has been introduced in the Linux kernel since version 4.5
(mid march 2016). This new syscall allows to copy data from one fd to another
without passing by user space, improving speed in most cases. You can read more
about it here:
https
New submission from Marcos Dione:
Linux kernel's new madvise() MADV_FREE[1] could be used in the memory allocator
to signal unused parts of the private heap as such, allowing the kernel use
those pages for resolving lowmem pressure situations. From a LWN article[2]:
[...] Rather than
I repost this here, as somebody in python-help told it was probably
out of their league.
- Forwarded message from Marcos Dione <mdi...@grulic.org.ar> -
Date: Sun, 11 Oct 2015 15:30:05 +0200
From: Marcos Dione <mdi...@grulic.org.ar>
Subject: modifying locals
To: h..
Changes by marcos paulo marcos...@yahoo.com.br:
--
title: fix - test_ssl broker was fixed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24930
marcos paulo added the comment:
the version that i ran the test, is python 2.7.10
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24930
marcos paulo added the comment:
anyway, this changes that i did, make this test more resilent!
this test now is more complete than before!
:-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24930
New submission from marcos paulo:
Hello to everyone!!!
This test https://hg.python.org/cpython/file/2.7/Lib/test/test_ssl.py on method
ContextTests.test_options, is broker becouse has a error between lines 717 ~
719;
On 717 line, has a comment about # OP_ALL | OP_NO_SSLv2 is the default value
://code.activestate.com/lists/python-dev/101115/
Thanks
Marcos
--
https://mail.python.org/mailman/listinfo/python-list
with something witty incorporating a simple
python line like If...then... but..etc.
You will make me a very happy man!!!
Thank you very much!!!
--
https://mail.python.org/mailman/listinfo/python-list
--
Marcos | I love PHP, Linux, and Java
http://javadevnotes.com/java-long-to-string-examples
or something
else, such as a typo? :)
Tartfiles would be what you get from xxx sites, no?
tartfiles is the compressed air that comes from behind and flies around
unwanted by the public
--
Greg
--
https://mail.python.org/mailman/listinfo/python-list
--
Marcos | I love PHP, Linux
On Wed, Feb 25, 2015 at 1:46 PM, Marko Rauhamaa ma...@pacujo.net wrote:
Marcos Almeida Azevedo marcos.al.azev...@gmail.com:
Synchronized methods in Java really makes programming life simpler.
But I think it is standard practice to avoid this if there is a
lighter alternative
or visa versa. Yes, even in 1984 we were transferring files and
running into encoding issues.
--
Steven
--
https://mail.python.org/mailman/listinfo/python-list
--
Marcos | I love PHP, Linux, and Java
http://javadevnotes.com/java-integer-to-string-examples
--
https://mail.python.org/mailman
I have a minor trouble here with my Internet connection. Can anyone send
me the last version of psycopg2 to this email?
Thanks a lot for the help.
Regards and best wishes
--
Marcos Luis Ortíz Valmaseda
Sr. Software Engineer (UCI)
http://marcosluis2186.posterous.com
http://www.linkedin.com
Hi, I need to create a list with a dynamic name, something like this:
'%s_list' %my_dynamic list = []
It's this possible?
--
http://mail.python.org/mailman/listinfo/python-list
Ok, thanks Steven and Andre for yours reply.
This is my situation:
I've a list of objects of differents classes, with a common attribute
name
Something like this:
class Object1:
obj1_name
other fields
date
class Object2:
obj2_name
other fields
date
...
class
be doing wrong?
Thanks,
Marcos.
--
http://mail.python.org/mailman/listinfo/python-list
On 25 jun, 04:00, MRAB pyt...@mrabarnett.plus.com wrote:
Terry Reedy wrote:
On 6/24/2010 9:13 PM, Marcos wrote:
I have a store, so I want to maximize the profit. I have all the
suppliers with diferent prices, some providers can send products to a
client an others not, this has a plus
What do you suggest Terry? I think this problem its similar to
traveler salesman. Some people solve it with Heuristic and some with
Linear programming or Stochastic programming.
On 25 jun, 03:28, Terry Reedy tjre...@udel.edu wrote:
On 6/24/2010 9:13 PM, Marcos wrote:
I have a store, so I
I have a store, so I want to maximize the profit. I have all the
suppliers with diferent prices, some providers can send products to a
client an others not, this has a plus price. Some providers has a
discount over the tansport if a quantity is reached.
Sometimes its better to me receive the
On 25 jun, 03:28, Terry Reedy tjre...@udel.edu wrote:
On 6/24/2010 9:13 PM, Marcos wrote:
I have a store, so I want to maximize the profit. I have all the
suppliers with diferent prices, some providers can send products to a
client an others not, this has a plus price. Some providers has
On 25 jun, 03:36, geremy condra debat...@gmail.com wrote:
On Thu, Jun 24, 2010 at 9:13 PM, Marcos marcosruap...@gmail.com wrote:
I have a store, so I want to maximize the profit. I have all the
suppliers with diferent prices, some providers can send products to a
client an others
Marcos Donolo mdon...@vt.edu added the comment:
Ok, I have patch ready. how do we go about putting it in?
thanks.
marcos
On Thu, Dec 17, 2009 at 11:52 AM, Ezio Melotti rep...@bugs.python.orgwrote:
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
versions
Changes by Marcos Donolo mdon...@vt.edu:
Added file: http://bugs.python.org/file15597/floatobject.c
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7534
Marcos Donolo mdon...@vt.edu added the comment:
I had to handle nans and infs in different places.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7534
New submission from Marcos Donolo mdon...@vt.edu:
I am not getting the expected result for the ** operator on windows,
python 2.6
I do...
a=float('nan')
b=a*a
then b is nan which is right but if I do
b = a**2 I get.
Traceback (most recent call last):
File stdin, line 1, in module
ValueError
New submission from Marcos Donolo mdon...@vt.edu:
The ** operator produces an error when it gets inf as an argument.
if I try.
a=float('inf')
a*a
inf
-but if I try
a**2
Traceback (most recent call last):
File stdin, line 1, in module
OverflowError: (34, 'Result too large')
I should get inf
Marcos Donolo mdon...@vt.edu added the comment:
I will give it a shot.
On Thu, Dec 17, 2009 at 11:22 AM, Mark Dickinson rep...@bugs.python.orgwrote:
Mark Dickinson dicki...@gmail.com added the comment:
Yep. There's not much consistency in inf/nan handling across platforms,
though
imagen desde Postgres. That
was my first problem, and then it become to the one that I'm trying to
solve now.
Thanks a lot, Marcos Alcazar
--
http://mail.python.org/mailman/listinfo/python-list
for my english :)
Marcos Alcazar
--
http://mail.python.org/mailman/listinfo/python-list
Marcos Dione added the comment:
with facundo we were tracking this bug down. mhammond is right about
that read() should allow 0 size responses, but the bug is that the
response is not closed. HTTPResponse.read() says:
if amt is None:
# unbounded read
Hi guys,
I realise this question has been answered in one form or another many
times before but I can't quite find the solution I need. I am trying to
run multiple subprocesses from a python script and then wait until all
subprocesses have completed before continuing. The subprocesses run on
other
Hi guys,
I realise this question has been answered in one form or another many
times before but I can't quite find the solution I need. I am trying to
run multiple subprocesses from a python script and then wait until all
subprocesses have completed before continuing. The subprocesses run on
other
On Fri, Dec 03, 2004 at 08:57:46PM +0530, km wrote:
Hi all,
is there a debian binary of python2.4 ?
well, 2.4 cvs is in since a couple of weeks in unstable. release will come
up soon I guess.
--
(Not so) Random fortune:
sos fanático del fútbol? añorás el prode? http://ega.zidev.com/
--
80 matches
Mail list logo