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
Change by parsa mpsh :
--
components: +IO
___
Python tracker
<https://bugs.python.org/issue43491>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
parsa mpsh added the comment:
I sent a PR: https://github.com/python/cpython/pull/24600
--
___
Python tracker
<https://bugs.python.org/issue43276>
___
___
Pytho
Change by parsa mpsh :
--
pull_requests: +23378
pull_request: https://github.com/python/cpython/pull/24600
___
Python tracker
<https://bugs.python.org/issue43
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.
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
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
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
14 matches
Mail list logo