[issue41906] logging.config.dictConfig does not work with callable filters

2022-01-21 Thread Mario Corchero
Change by Mario Corchero : -- keywords: +patch pull_requests: +28943 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30756 ___ Python tracker <https://bugs.python.org/issu

[issue41906] logging.config.dictConfig does not work with callable filters

2022-01-20 Thread Mario Corchero
Mario Corchero added the comment: Great! I'll put something together then. If you have any preference about the implementation or any pointer on the way you think should be done, please let me know. -- ___ Python tracker <https://bugs.python.

[issue41906] logging.config.dictConfig does not work with callable filters

2021-03-26 Thread Mario Corchero
Mario Corchero added the comment: Vinay would you consider a patch for logging where dictConfig allows taking objects directly in addition to the reference id? That would allow the following: ``` def noErrorLogs(param): return 1 if param.levelno < 40 else 0 logconfig_d

[issue42556] unittest.mock.patch() cannot properly mock methods

2020-12-16 Thread Mario Corchero
Mario Corchero added the comment: Right, I believe this is indeed broken. This code: ``` class A: def m(self, a=None): pass from unittest import mock with mock.patch.object(A, "m", autospec=True): A.m.side_effect = print A().m(1) ``` prints: <__main__.A object at 0

[issue42654] Add folder for python customizations: __sitecustomize__

2020-12-16 Thread Mario Corchero
Mario Corchero added the comment: Thread open in Python ideas: https://discuss.python.org/t/add-folder-for-python-customizations-sitecustomize/6190/5 -- ___ Python tracker <https://bugs.python.org/issue42

[issue42654] Add folder for python customizations: __sitecustomize__

2020-12-16 Thread Mario Corchero
Mario Corchero added the comment: > Shouldn't this be discussed on Python-Ideas? I'm pretty sure this is a big > enough change that it will need a PEP. Indeed, I wanted to see if there was interest in the feature. That is probably a better place to start. > If you need code run o

[issue42654] Add folder for python customizations: __sitecustomize__

2020-12-16 Thread Mario Corchero
Change by Mario Corchero : -- type: -> enhancement ___ Python tracker <https://bugs.python.org/issue42654> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue42654] Add folder for python customizations: __sitecustomize__

2020-12-16 Thread Mario Corchero
New submission from Mario Corchero : Following the conversations in https://bugs.python.org/issue33944, wanted to discuss the support for a __sitecustomize__ folder that will hold python scripts to be executed at startup. Similar to `sitecustomize.py` but allowing different stakeholders

[issue42308] Add threading.__excepthook__ similar to sys.__excepthook__

2020-11-10 Thread Mario Corchero
Mario Corchero added the comment: > I found one interesting usage of sys.__excepthook__ in > code.InteractiveInterpreter: That is exactly what I wished this was there for hehe. We are installing a custom version of excepthook and wanted to check if the user had c

[issue42308] Add threading.__excepthook__ similar to sys.__excepthook__

2020-11-10 Thread Mario Corchero
Change by Mario Corchero : -- keywords: +patch pull_requests: +22116 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23218 ___ Python tracker <https://bugs.python.org/issu

[issue42308] Add threading.__excepthook__ similar to sys.__excepthook__

2020-11-10 Thread Mario Corchero
New submission from Mario Corchero : The sys module contains __excepthook__ to recover sys.excepthook if necessary. The same is not present in the threading module, even if threading.excepthook is exposed. -- components: Library (Lib) messages: 380651 nosy: mariocj89, vstinner

[issue42251] Add threading.gettrace and threading.getprofile

2020-11-03 Thread Mario Corchero
Change by Mario Corchero : -- keywords: +patch pull_requests: +22041 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23125 ___ Python tracker <https://bugs.python.org/issu

[issue42251] Add threading.gettrace and threading.getprofile

2020-11-03 Thread Mario Corchero
New submission from Mario Corchero : When working in a C extension from a non-python created thread which calls PyGILState_Ensure as it later calls a Python callback on user code, I wished there was a way to set the trace function similar to what a native Python thread would do. We could

[issue41958] importlib has not util module

2020-10-06 Thread Mario Idival
New submission from Mario Idival : After new version 3.9, the util module from importlib does not exists anymore >>> import importlib >>> importlib.util.find_spec('enum') Traceback (most recent call last): File "", line 1, in AttributeError: module 'impor

[issue41958] importlib has not util module

2020-10-06 Thread Mario Idival
Change by Mario Idival : -- type: -> crash ___ Python tracker <https://bugs.python.org/issue41958> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue41954] [mock] Recursion on mocking inspect.isfunction

2020-10-06 Thread Mario Corchero
Mario Corchero added the comment: Oh, well spotted. We could add some guards around the code in mock to still work when key stdlib functionality is mocked out, but this might make the mock code quite messy. Specially as we will have to make sure that not only the function we call are safe

[issue896330] pyconfig.h is not placed in --includedir

2020-06-30 Thread Mario Gonzalez
Mario Gonzalez added the comment: hey u, send mi a mail, u need my help and i need u mario the last one mario.cro...@gmail.com -- nosy: +Mario Gonzalez ___ Python tracker <https://bugs.python.org/issue896

[issue17013] Allow waiting on a mock

2020-04-27 Thread Mario Corchero
Mario Corchero added the comment: For the record, I have no strong preference over either implementation. @voidspace preferred offline the new mock class, but sadly the rationale is lost in the physical word. -- ___ Python tracker <ht

[issue39963] Subclassing slice objects

2020-03-13 Thread Mario de OOurtzborun
New submission from Mario de OOurtzborun : Is there any reason why slice objects aren't subclassable? I want a mutable slice object, but there is no way to create one that will work with lists or tuples. And __index__ method requires to return int. I want to prepare a git merge request about

[issue39578] MagicMock specialisation instance can no longer be passed to new MagicMock instance

2020-02-09 Thread Mario Corchero
Mario Corchero added the comment: Having not looked deeply at it but with the reproducer, running a quick bisect, it points to this commit: https://github.com/python/cpython/commit/77b3b7701a34ecf6316469e05b79bb91de2addfa I'll try having a look later at the day if I can manage to free some

Re: A small quiz

2020-01-24 Thread Mario R. Osorio
On Thursday, January 23, 2020 at 3:54:56 AM UTC-5, Z wrote: > what is PLR? PLR: Private Label Rights (https://en.wikipedia.org/wiki/Private_label_rights) -- https://mail.python.org/mailman/listinfo/python-list

[issue39222] unittest.mock.Mock.parent is broken or undocumented

2020-01-15 Thread Mario Corchero
Mario Corchero added the comment: > My suggestion would be to add `parent` to the docs @xtreak links to as a way > to resolve this issue. +1, we should probably add it on the docs of the constructor here https://docs.python.org/3/library/unittest.mock.html#unittest.mock.Mock as it i

[issue39222] unittest.mock.Mock.parent is broken or undocumented

2020-01-10 Thread Mario Corchero
Mario Corchero added the comment: If you refer to https://bugs.python.org/issue35357, this issue refers to `parent` at the time of creation of the mock. In the init it is still referenced as "parent". The question is whether we want to also mangle "parent" in the __

[issue39222] unittest.mock.Mock.parent is broken or undocumented

2020-01-10 Thread Mario Corchero
Mario Corchero added the comment: @cjw296 or @michael.foord might know why the attribute was exposed as plain "parent". It was added more than 8 years ago and I am unnable to follow the git commit history. They should then decide whether this is intenteded to be used by the users

[issue21600] mock.patch.stopall doesn't work with patch.dict

2019-12-14 Thread Mario Corchero
Change by Mario Corchero : -- pull_requests: +17075 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/17606 ___ Python tracker <https://bugs.python.org/issu

[issue21600] mock.patch.stopall doesn't work with patch.dict

2019-12-13 Thread Mario Corchero
Mario Corchero added the comment: Makes total sense, I think we should get this for 3.9. Not sure I'll backport this, even if a bugfix it might cause unexpected changes (Though I'd be OK with it, given that calling stop twice causes no issue). I'm happy to push a PR with the proposed change

[issue38757] mocking an exception, arguments do not seem to be passed to the mock

2019-11-10 Thread Mario Corchero
Mario Corchero added the comment: The reason why it seems that "no arguments are beeing passed" is because the exception is not being raised by you, but by mock itself when the exception is trying to be created. When an exception type is passed as side_effect, the mock modu

Re: Congratulations to @Chris

2019-11-04 Thread Mario R. Osorio
On Thursday, October 24, 2019 at 4:29:59 PM UTC-4, Chris Angelico wrote: > On Fri, Oct 25, 2019 at 7:20 AM DL Neil via Python-list > wrote: > > > > Chris Angelico: [PSF's] 2019 Q2 Community Service Award Winner > > http://pyfound.blogspot.com/2019/10/chris-angelico-2019-q2-community.html > > > >

[issue38346] Wrong behavior when using `assert_called_with` with mutable object

2019-10-05 Thread Mario Corchero
Mario Corchero added the comment: Thanks! We can look at adding a copying mock if we see people needing it, but yeah, adding copy by default would be quite complex if we don't want to break existing users. -- stage: -> resolved status: open ->

[issue38346] Wrong behavior when using `assert_called_with` with mutable object

2019-10-03 Thread Mario Corchero
Mario Corchero added the comment: This might be painful in certain scenarios, like when using wraps on functions that modify the arguments: ``` def func(d): return d.pop("key") >>> def func(d): ... return d.pop("key") ... >>> m

[issue17013] Allow waiting on a mock

2019-09-13 Thread Mario Corchero
Change by Mario Corchero : -- pull_requests: +15715 pull_request: https://github.com/python/cpython/pull/16094 ___ Python tracker <https://bugs.python.org/issue17

[issue17013] Allow waiting on a mock

2019-09-12 Thread Mario Corchero
Mario Corchero added the comment: Spoke offline with @xtreak, I'll be sending a PR for this to take over the existing one. @lisroach proposed a new name, EventMock to differentiate it from any awaitable async notation. @michael.foord suggested using `mock_timeout` as the argument

Re: Do I need a parser?

2019-07-02 Thread Mario R. Osorio
On Saturday, June 29, 2019 at 8:40:06 AM UTC-4, josé mariano wrote: > Dear all, > > I'm sure that this subject has been addressed many times before on this > forum, but my poor knowledge of English and of computer jargon and concepts > results on not being able to find the answer i'm looking

[issue37251] Mocking a MagicMock with a function spec results in an AsyncMock

2019-06-12 Thread Mario Corchero
Change by Mario Corchero : -- nosy: +mariocj89 ___ Python tracker <https://bugs.python.org/issue37251> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37117] Simplify customization of the logging time through datefmt

2019-06-01 Thread Mario Corchero
Mario Corchero added the comment: > What do you mean by "it is not documented"? It is documented here: As it says: "This function uses a user-configurable function to convert the creation time to a tuple. By default, time.localtime() is used; to change this for a pa

[issue37117] Simplify customization of the logging time through datefmt

2019-05-31 Thread Mario Corchero
Mario Corchero added the comment: AFAIK, the converter attribute is only to "be set" with a function of such signature. It is not documented that it can be used and it is only used on the format time function. The only situation where this might break someone is if they in

[issue37117] Simplify customization of the logging time through datefmt

2019-05-31 Thread Mario Corchero
New submission from Mario Corchero : Users that want to provide a custom template for the timestamp part of logging cannot customize the milliseconds part of asctime. They can use the msecs attribute of the Logger but that effectively requires to break the formatting in two parts. Note

[issue37104] logging.Logger.disabled is not documented

2019-05-31 Thread Mario Corchero
Mario Corchero added the comment: Note that even if not in the standard library I've seen this attributed used and documented quite often. Example: https://docs.python-guide.org/writing/logging/#or-print I would really suggest making it private as mentioned before to make sure this does

[issue37104] logging.Logger.disabled is not documented

2019-05-31 Thread Mario Corchero
Mario Corchero added the comment: Thanks! I was wondering about it but saw no comment about it, issue or anything in the history. At least we have now this issue :). Would you like that I move this to `_disabled` and have a setter for `disabled` that emits a deprecation warning so we can

[issue37104] logging.Logger.disabled is not documented

2019-05-30 Thread Mario Corchero
Change by Mario Corchero : -- keywords: +patch pull_requests: +13575 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13687 ___ Python tracker <https://bugs.python.org/issu

[issue37104] logging.Logger.disabled is not documented

2019-05-30 Thread Mario Corchero
New submission from Mario Corchero : Just realised the "disabled" attribute of the Logger class is not documented in https://docs.python.org/3/library/logging.html#logging.Logger. Any reason to not have it documented? I'll send a PR otherwise. This comes as I was trying to point t

[issue29143] Logger should ignore propagate property for disabled handlers.

2019-05-30 Thread Mario Corchero
Mario Corchero added the comment: Closing as unable to reproduce. Please comment if you can reproduce the issue and we can have a further look. -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue34725] Py_GetProgramFullPath() odd behaviour in Windows

2019-05-27 Thread Mario
Mario added the comment: Unfortunately the underlying cause of this issue has not been addressed, nor discussed. There is now a way to workaround the different behaviour in Windows and Linux and it is possible to use the new call to make virtual environment work in Windows as they already

[issue29143] Logger should ignore propagate property for disabled handlers.

2019-05-27 Thread Mario Corchero
Mario Corchero added the comment: Note that "handlers" cannot be disabled. This applies only to loggers. Also, the following code shows that disabling the logger does indeed prevents all logs in emitted by that logger from appearing: ``` import logging pare

Re: help plz

2019-05-14 Thread Mario R. Osorio
On Monday, May 13, 2019 at 8:32:38 AM UTC-4, Tristan Cribaro wrote: > [image: image.png]so I have a project I have to work on that is due > tomorrow for a lot of points towards my grade. The issue here is I've been > trying to download Pillow and simple audio for my project and I keep > getting

[issue36848] autospec fails with AttributeError when mocked class has __signature__ non-writeable

2019-05-08 Thread Mario Corchero
Mario Corchero added the comment: Agree, for the general case I think it makes sense that this is fixed in pyside. Hijacking __signature__ python-wide sounds like it can cause other issues, if they need such a hack I would suggest finding a way (in pyside) to allow for mock to work. I

[issue36820] Captured exceptions are keeping user objects alive unnecessarily in the stdlib

2019-05-06 Thread Mario Corchero
Change by Mario Corchero : -- keywords: +patch pull_requests: +13048 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36820> ___ ___ Py

[issue36820] Captured exceptions are keeping user objects alive unnecessarily in the stdlib

2019-05-06 Thread Mario Corchero
New submission from Mario Corchero : There are multiple places in the standard library where the code captures an exception and reraises it later (outside of the original except). This is known to cause a cycle as saving the exception has a traceback that eventually points back

[issue17013] Allow waiting on a mock

2019-04-13 Thread Mario Corchero
Mario Corchero added the comment: Kooning great! I would Add a test for the following (I think both fails with the proposed impl): - The mock is called BEFORE calling wait_until_called_with - I call the mock with arguments and then I call wait for call without arguments. - using keyword

[issue17013] Allow waiting on a mock

2019-04-13 Thread Mario Corchero
Mario Corchero added the comment: I think this is REALLY interesting!, there are many situations where this has been useful, it would greatly improve multithreading testing in Python. Q? I see you inherit from Mock, should it inherit from MagicMock? I'd say send the PR and the discussion can

[issue36518] Avoid conflicts when pass arbitrary keyword arguments to Python function

2019-04-03 Thread Mario Corchero
Change by Mario Corchero : -- nosy: +mariocj89 ___ Python tracker <https://bugs.python.org/issue36518> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26752] Mock(2.0.0).assert_has_calls() raise AssertionError in two same calls

2019-03-02 Thread Mario Corchero
Mario Corchero added the comment: Quite a tricky bug! Indeed @xtreak the `_call_matcher` is using the `__init__` signature. I think this is a bug introduced in https://bugs.python.org/issue17015. There is a mix of the fact that spec in Mock also can accept classes (not instances) whilst

[issue35512] patch.dict resolves in_dict eagerly (should be late resolved)

2019-02-23 Thread Mario Corchero
Mario Corchero added the comment: Great, all yours :) I'll be happy to review. -- ___ Python tracker <https://bugs.python.org/issue35512> ___ ___ Python-bug

[issue35512] patch.dict resolves in_dict eagerly (should be late resolved)

2019-02-23 Thread Mario Corchero
Mario Corchero added the comment: Interesting, `patch` does resolve it when the patched function is called (see https://github.com/python/cpython/blob/175421b58cc97a2555e474f479f30a6c5d2250b0/Lib/unittest/mock.py#L1269) vs patch.dict that resolves it at the time the patcher is created - when

Re: Python program to phone?

2019-02-08 Thread Mario R. Osorio
I am not an expert in BeeWare (I've never used it) but I've read a good portion of their documentation and find it very interesting to say the least. I am looking forward using it in the very near future. On Fri, Feb 8, 2019 at 11:06 AM Mario R. Osorio wrote: > You will need to have j

Re: Python program to phone?

2019-02-08 Thread Mario R. Osorio
You will need to have java. BeeWare's VOC tool, a transpiler from python to java, will do all the work for you so you don't even have know anything about java, except installing and setting it up for your environment Dtb/Gby === Mario R. Osorio B.A.S. of Information Technology A.S

Re: Python program to phone?

2019-02-05 Thread Mario R. Osorio
Hi there Steve. Did you check BeeWare? (https://pybee.org/) -- https://mail.python.org/mailman/listinfo/python-list

Re: How do I get a python program to work on my phone?

2019-01-30 Thread Mario R. Osorio
You might want to check this project: https://pybee.org/ I've never used it but it shows promising. BTW, I'm a diabetic myself and I would be very thankful if you could share your application. I'm currently using 2 Android apps: StickBuddy offers a system to keep track of both where you pinch

Re: Recommendations for a novice user.

2019-01-08 Thread Mario R. Osorio
On Wednesday, January 2, 2019 at 1:05:44 PM UTC-5, Hüseyin Ertuğrul wrote: > I don't know the software language at all. What do you recommend to beginners > to learn Python. > What should be the working systematic? How much time should I spend every day > or how much time should I spend on a

Re: Kivy native GUI examples

2019-01-08 Thread Mario R. Osorio
On Monday, January 7, 2019 at 9:52:03 AM UTC-5, Dave wrote: > I need to select a Python GUI. It needs to cover all of the desktops > (Linux, Windows, Apple) and hopefully mobile (Android and Ios). I'm > looking at Kivy, but have yet to find an example app. that has a native > looking GUI

[issue24928] mock.patch.dict spoils order of items in collections.OrderedDict

2018-12-21 Thread Mario Corchero
Mario Corchero added the comment: I would suggest applying the fix with the latest version in mind to keep the codebase clean. If you want to backport it to previous versions of Python you can do it manually through a PR targetting the right branch. I think the process is to set up a label

[issue35500] Align expected and actual calls on mock.assert_called_with error message

2018-12-15 Thread Mario Corchero
Mario Corchero added the comment: Makes sense! I'd not align them though but that might be my view as I generally don't like aligning text like that. Also if you feel that the exceptions read "weird" with the first sentence is empty, an option might be to say the calls don't matc

[issue32299] unittest.mock.patch.dict.__enter__ should return the dict

2018-12-10 Thread Mario Corchero
Change by Mario Corchero : -- pull_requests: +10296 ___ Python tracker <https://bugs.python.org/issue32299> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17185] unittest mock create_autospec doesn't correctly replace mocksignature

2018-12-07 Thread Mario Corchero
Mario Corchero added the comment: Agree that it sounds reasonable to just set `__signature__` to tell `inspect` where to look at (thanks PEP 362 :P). Not an expert here though. For the partials bug, I'll add Pablo as we were speaking today about something similar :) but that might

[issue35330] When using mock to wrap an existing object, side_effect requires return_value

2018-12-06 Thread Mario Corchero
Change by Mario Corchero : -- keywords: +patch pull_requests: +10234 stage: test needed -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue3533] mac 10.4 buld of 3.0 --with-pydebug fails no __eprintf

2018-12-05 Thread Mario Corchero
Change by Mario Corchero : -- pull_requests: +10215 ___ Python tracker <https://bugs.python.org/issue3533> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35330] When using mock to wrap an existing object, side_effect requires return_value

2018-12-05 Thread Mario Corchero
Mario Corchero added the comment: I'll get ready a PR with a good set of tests and the fix for the original issue. This is quite an interesting bug :) -- ___ Python tracker <https://bugs.python.org/issue35

[issue35330] When using mock to wrap an existing object, side_effect requires return_value

2018-11-28 Thread Mario Corchero
Mario Corchero added the comment: I can indeed reproduce the issue. The problem seems to be here: https://github.com/python/cpython/blob/54ba556c6c7d8fd5504dc142c2e773890c55a774/Lib/unittest/mock.py#L1041 The simplified current logic in that code is: - call side_effect, save the return value

Re: help me in a program in python to implement Railway Reservation System using file handling technique.

2018-11-26 Thread Mario R. Osorio
On Saturday, November 24, 2018 at 1:44:21 AM UTC-5, Chris Angelico wrote: > On Sat, Nov 24, 2018 at 5:36 PM wrote: > > > > hello all, > > please hepl me in the above program. python to implement Railway > > Reservation System using file handling technique. > > > > System should perform below

[issue35226] mock.call equality surprisingly broken

2018-11-13 Thread Mario Corchero
Mario Corchero added the comment: If this is to be done we should not change those tests, I am sure there is code validating calls relying on its "tupleness". Example: ``` >>> import unittest.mock >>> m = unittest.mock.Mock() >>> m(1) >>>

[issue32512] Add an option to profile to run library module as a script

2018-11-05 Thread Mario Corchero
Change by Mario Corchero : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue33236] MagicMock().__iter__.return_value is different from MagicMock().__iter__()

2018-10-27 Thread Mario Corchero
Mario Corchero added the comment: iter is initialized by using side_effects, not return_value. The statement "According to the documentation .return_value should be identical to the object returned when calling the mock" works only when it return_value has been used to define the

[issue35082] Mock.__dir__ lists deleted attributes

2018-10-27 Thread Mario Corchero
Change by Mario Corchero : -- keywords: +patch pull_requests: +9476 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35082> ___ ___ Py

[issue35082] Mock.__dir__ lists deleted attributes

2018-10-27 Thread Mario Corchero
New submission from Mario Corchero : Calling dir on unittest.mock.Mock will return deleted attributes. This is a result of the way del is implemented in Mock, which just sets a sentinel in the child mocks, so an AttributeError is raised if the attribute is later accessed. We can just check

[issue34725] Py_GetProgramFullPath() odd behaviour in Windows

2018-10-14 Thread Mario
Mario added the comment: On 13/10/2018 17:37, Steve Dower wrote: > > Steve Dower added the comment: > > I meant why are you using an embedded application with a virtual environment? > What sort of application do you have that requires users to configure a > virtual e

[issue34725] Py_GetProgramFullPath() odd behaviour in Windows

2018-10-10 Thread Mario
Mario added the comment: On 10/10/2018 01:11, Steve Dower wrote: > > Steve Dower added the comment: > > We'll need to bring in venv specialists to check whether using it outside of > Py_Main() is valid. Or perhaps you could explain what you are actually trying > to do? &

[issue34725] Py_GetProgramFullPath() odd behaviour in Windows

2018-10-08 Thread Mario
Mario added the comment: On 08/10/2018 17:54, Steve Dower wrote: > > Steve Dower added the comment: > >> Py_SetProgramName() should be a relative or absolute path that can be used >> to set sys.executable and other values appropriately. > > Key point here is *c

[issue34725] Py_GetProgramFullPath() odd behaviour in Windows

2018-10-03 Thread Mario
Mario added the comment: Is there any agreement on what is wrong with the current code. The key in my opinion is the double purpose of sys.executable and that in Linux and Windows people have taken the two different points of view, so they are both right and wrong at the same time

[issue34725] Py_GetProgramFullPath() odd behaviour in Windows

2018-09-21 Thread Mario
Mario added the comment: On 21/09/2018 21:44, Steve Dower wrote: > > Steve Dower added the comment: > > I meant returning the full name of the process is intentional. But you're > right that overriding it should actually override it. > > I found the prior bug a

[issue34725] Py_GetProgramFullPath() odd behaviour in Windows

2018-09-18 Thread Mario
Mario added the comment: On 18/09/2018 19:24, Steve Dower wrote: > > Steve Dower added the comment: > > That executable doesn't appear to be in a virtual environment - you should be > running C:\TEMP\venv\abcd\Scripts\python.exe > > Does that resolve your pro

[issue34725] Py_GetProgramFullPath() odd behaviour in Windows

2018-09-18 Thread Mario
New submission from Mario : According to the doc Py_GetProgramFullPath() should return the full path of the program name as set by Py_SetProgramName(). https://docs.python.org/3/c-api/init.html#c.Py_GetProgramFullPath This works well in Linux, but in Windows it is always the name

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Mario R. Osorio
On Friday, July 13, 2018 at 11:16:44 AM UTC-4, Bart wrote: > On 13/07/2018 13:33, Steven D'Aprano wrote: > > On Fri, 13 Jul 2018 11:37:41 +0100, Bart wrote: > > > >> (** Something so radical I've been using them elsewhere since forever.) > > > > And you just can't resist making it about you and

[issue33541] Remove private and apparently unused __pad function

2018-05-16 Thread Mario Corchero
Change by Mario Corchero <marioc...@gmail.com>: -- keywords: +patch pull_requests: +6579 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue33541] Remove private and apparently unused __pad function

2018-05-16 Thread Mario Corchero
New submission from Mario Corchero <marioc...@gmail.com>: When checking on ways to improve coverage of datetime related functions I found this function that seems not to be used anyware. It is private and mangled, should be safe to remove. Creating the issue as requested in the PR:

[issue32821] Add snippet on how to configure a "split" stream for console

2018-02-11 Thread Mario Corchero
Change by Mario Corchero <marioc...@gmail.com>: -- keywords: +patch pull_requests: +5433 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue32821] Add snippet on how to configure a "split" stream for console

2018-02-11 Thread Mario Corchero
New submission from Mario Corchero <marioc...@gmail.com>: As discussed in python-ideas, it would be good to have a recipe on how to configure the logging stack to be able to log ``ERROR`` and above to stderr and ``INFO`` and below to stdout. It was proposed to add it into the cookbook

[issue32206] Run modules with pdb

2018-02-01 Thread Mario Corchero
Change by Mario Corchero <marioc...@gmail.com>: -- pull_requests: +5321, 5322 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue32206] Run modules with pdb

2018-02-01 Thread Mario Corchero
Change by Mario Corchero <marioc...@gmail.com>: -- pull_requests: +5321 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32206> ___

[issue32206] Run modules with pdb

2018-02-01 Thread Mario Corchero
Change by Mario Corchero <marioc...@gmail.com>: -- pull_requests: -5301 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32206> ___

[issue32691] "pdb -m " sets __main__.__package__ incorrectly

2018-02-01 Thread Mario Corchero
Mario Corchero <marioc...@gmail.com> added the comment: Sent a PR for the fix. I'll update PRs for trace. profile does not need it Thanks a lot for bringing it up Jason! -- ___ Python tracker <rep...@bugs.python.org> <https://

[issue32691] "pdb -m " sets __main__.__package__ incorrectly

2018-02-01 Thread Mario Corchero
Change by Mario Corchero <marioc...@gmail.com>: -- keywords: +patch pull_requests: +5302 stage: test needed -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue32206] Run modules with pdb

2018-02-01 Thread Mario Corchero
Change by Mario Corchero <marioc...@gmail.com>: -- pull_requests: +5301 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32206> ___

[issue32691] "pdb -m " sets __main__.__package__ incorrectly

2018-02-01 Thread Mario Corchero
Mario Corchero <marioc...@gmail.com> added the comment: OK, just managed to reproduce it. This appears only when you run a python script as a module. Running a module with __main__ does not show the issue. Will get a patch ready -- ___

Re: for info

2018-02-01 Thread Mario R. Osorio
On Wednesday, January 31, 2018 at 10:55:59 AM UTC-5, M.Haroon Ali wrote: > from where we learn python for free of cost. i am begineer in python.plzz > help me And after you're done with the OFFICIAL tutorials; there thousands of excellent free tutorials online. Just do some research. If you're

[issue32206] Run modules with pdb

2018-01-27 Thread Mario Corchero
Mario Corchero <marioc...@gmail.com> added the comment: Hi Jason, thanks a lot! I’ll have a look to the bug you reported on Monday. Out for holidays atm ^^ -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue9325] Add an option to pdb/trace/profile to run library module as a script

2018-01-10 Thread Mario Corchero
Mario Corchero <marioc...@gmail.com> added the comment: Thanks Nick. I've sent patches for all of them but `dis`. `dis` does not "run" the code. Adding the -m option is basically identical to just running it on the __main__.py if the module is runnable or on the __init__ if it

[issue32515] Add an option to trace to run module as a script

2018-01-07 Thread Mario Corchero
Change by Mario Corchero <marioc...@gmail.com>: -- keywords: +patch pull_requests: +4995 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue9325] Add an option to pdb/trace/profile to run library module as a script

2018-01-07 Thread Mario Corchero
Mario Corchero <marioc...@gmail.com> added the comment: Just finished a draft on the one for trace: issue32515 -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.pytho

[issue32515] Add an option to trace to run module as a script

2018-01-07 Thread Mario Corchero
New submission from Mario Corchero <marioc...@gmail.com>: Add an option to trace to be able to do `python3 -m trace -t --module my.module.name` to be able to trace a runnable module the same way we can do with scripts. As we want trace to not include the lines in runpy I am

[issue32512] Add an option to profile to run library module as a script

2018-01-07 Thread Mario Corchero
Mario Corchero <marioc...@gmail.com> added the comment: Related issue for improved executable module support for standard library modules that run other scripts: https://bugs.python.org/issue9325 -- ___ Python tracker <rep...@bugs.python.or

  1   2   3   4   5   >