[issue43491] Windows filepath bug

2021-03-14 Thread parsa mpsh
parsa mpsh added the comment: Yes. i checked it more. looks problem was from other thing, not the path. -- ___ Python tracker <https://bugs.python.org/issue43

[issue43491] Windows filepath bug

2021-03-14 Thread parsa mpsh
Change by parsa mpsh : -- components: +IO ___ Python tracker <https://bugs.python.org/issue43491> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43491] Windows filepath bug

2021-03-14 Thread parsa mpsh
parsa mpsh added the comment: I think this bug should be fixed by converting all of `/`s to `\` in file paths automatic **When os is windows**. -- ___ Python tracker <https://bugs.python.org/issue43

[issue43491] Windows filepath bug

2021-03-14 Thread parsa mpsh
parsa mpsh added the comment: Update: i only tested this bug in `3.6` and `3.7` i'm not sure about newer versions. but i think this bug also is in them. -- ___ Python tracker <https://bugs.python.org/issue43

[issue43491] Windows filepath bug

2021-03-14 Thread parsa mpsh
New submission from parsa mpsh : I was testing my program in github workflow and i detected a bug. i was opening a file in windows: ``` f = open(os.path.dirname(__FILE__) + '/some/file.txt') ``` means the file path will be `C:\some\path/some/file.txt`. but i received OSError. why? because

[issue43432] Add function `clear` to the `os` module

2021-03-08 Thread parsa mpsh
parsa mpsh added the comment: Well, some times we are writing a flexible Text ui program. we may use `clear` lot of times. This should be used when we haven't any valuable data on the screen. Also, who that uses this function, knows this will clear valuable data :). Sometimes also i use

[issue43432] Add function `clear` to the `os` module

2021-03-08 Thread parsa mpsh
Change by parsa mpsh : -- keywords: +patch pull_requests: +23550 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24784 ___ Python tracker <https://bugs.python.org/issu

[issue43432] Add function `clear` to the `os` module

2021-03-08 Thread parsa mpsh
New submission from parsa mpsh : I wanna add a new function named `clear` to the os module. This function runs the `clear` command in the os. but this function checks that is os windows, if yes, runs `cls`. I'm working on my patch. -- components: Library (Lib) messages: 388262 nosy

[issue43276] add `false` and `true` keywords (aliases) for True and False

2021-02-20 Thread parsa mpsh
parsa mpsh added the comment: I sent a PR: https://github.com/python/cpython/pull/24600 -- ___ Python tracker <https://bugs.python.org/issue43276> ___ ___ Pytho

[issue43276] add `false` and `true` keywords (aliases) for True and False

2021-02-20 Thread parsa mpsh
Change by parsa mpsh : -- pull_requests: +23378 pull_request: https://github.com/python/cpython/pull/24600 ___ Python tracker <https://bugs.python.org/issue43

[issue43276] add `false` and `true` keywords (aliases) for True and False

2021-02-20 Thread parsa mpsh
parsa mpsh added the comment: Also adding them as builtin keywords will make it easier than setting them as variables. in this method, we should define them everywhere, but in builtin type its easy. -- ___ Python tracker <https://bugs.python.

[issue43276] add `false` and `true` keywords (aliases) for True and False

2021-02-20 Thread parsa mpsh
parsa mpsh added the comment: Yes i know this. but why not adding this builtin? this will be very nice! -- ___ Python tracker <https://bugs.python.org/issue43

[issue43276] add `false` and `true` keywords (aliases) for True and False

2021-02-20 Thread parsa mpsh
New submission from parsa mpsh : I wanna add `true` and `false` aliases for `True` and `False` keywords. Currently my patch is ready and i will send it as a pull request. -- messages: 387411 nosy: parsampsh priority: normal severity: normal status: open title: add `false` and `true

[issue42503] Cannot declare method or static function parameter or return type as self of the class

2020-11-29 Thread parsa mpsh
New submission from parsa mpsh : python raises error `Undefined class X` when you declaring parameter type or return type of method as the self of class: class MyClass: def mymethod(self, a: MyClass): # parameter type is class self pass # or class MyClass: def mymethod(self