On Sun, 01 Jul 2018 03:18:23 +, eryk sun wrote:
> On Sun, Jul 1, 2018 at 1:44 AM, Steven D'Aprano
> wrote:
>> On Sat, 30 Jun 2018 23:36:40 +, eryk sun wrote:
>>
>>> Only use forward slashes for legacy DOS paths passed to Windows API
>>> functions. Do not use forward slashes for paths in c
On Sun, 01 Jul 2018 03:18:23 +, eryk sun wrote:
> Bear in mind that forward slash is just a name character in NT.
So, using Python, how could you open, write to, and then read from, a
file with a slash in its name? Say, something like:
spam/eggs
in your home directory. (Is that still
On 2018-07-01 01:52:12 +, Steven D'Aprano wrote:
> On Sat, 30 Jun 2018 23:49:41 +0200, Peter J. Holzer wrote:
> > The old adage that "security is binary" is utter balderdash.
>
> I think that "old adage" is one of those ones that only people denying it
> actually use.
>
> I've never seen any
On 2018-07-01 08:50:22 +, Steven D'Aprano wrote:
> On Sun, 01 Jul 2018 03:18:23 +, eryk sun wrote:
> > On Sun, Jul 1, 2018 at 1:44 AM, Steven D'Aprano
> > wrote:
> >> I guess that if the user is using a path beginning with \\?\ they may
> >> or may not need to use backslashes, but I have n
The EuroPython Society (EPS), who is organizing the EuroPython
conference, last year extended it’s mission to also provide help for
the Python community in Europe in general.
As part of this, we would like to get to know, and help create closer
ties between organizers of other European Python even
The EuroPython Society (EPS) extended its mission last year to not
only run the EuroPython conference, but also provide help for the
Python community in Europe in general.
Let’s all meet at EuroPython
In addition to the Python Organizers Lunch (see previous post), whi
Folks,
I am trying to use logging module and somehow I cannot make it work.
A simple code that I am trying is below. The commented code line 5,6 are other
options I have tried but don't work
#importing module
import logging
#Create and configure logger
#logging.basicConfig(filename="D:/Projec
Stefan Ram wrote:
from sys import ps1
ps1 = 'alpha'
>>> import sys
>>> sys.ps1 = "alpha"
alpha
--
Greg
--
https://mail.python.org/mailman/listinfo/python-list
[Steven D'Aprano]
> (The same applies to Unix/Linux systems too, of course.) But while you're
> using Python to manipulate files, you should use Python rules, and that
> is "always use forward slashes".
>
> Is that reasonable?
>
> Under what circumstances would a user calling open(pathname) in Pyt
On Sun, Jul 1, 2018 at 8:50 AM, Steven D'Aprano
wrote:
> On Sun, 01 Jul 2018 03:18:23 +, eryk sun wrote:
>
>> The Windows API handles this, but not for a path that begins with \\?\.
>
> But what about the *Python* API? The Python open() function, and all the
> high-level os.* and os.path.* fun
On 7/1/18 6:49 AM, Mikhail V wrote:
> [Steven D'Aprano]
>
>> (The same applies to Unix/Linux systems too, of course.) But while you're
>> using Python to manipulate files, you should use Python rules, and that
>> is "always use forward slashes".
>>
>> Is that reasonable?
>>
>> Under what circumstan
one common scenario is
C:\Users\
where \U is taken as a unicode litteral
Abdur-Rahmaan Janhangeer
https://github.com/Abdur-rahmaanJ
>
>
>
--
https://mail.python.org/mailman/listinfo/python-list
On Sun, Jul 1, 2018 at 8:51 AM, Steven D'Aprano
wrote:
> On Sun, 01 Jul 2018 03:18:23 +, eryk sun wrote:
>
>> Bear in mind that forward slash is just a name character in NT.
>
> So, using Python, how could you open, write to, and then read from, a
> file with a slash in its name? Say, somethi
On Sun, Jul 1, 2018 at 4:00 PM, Abdur-Rahmaan Janhangeer
wrote:
> one common scenario is
>
> C:\Users\
>
> where \U is taken as a unicode litteral
This one is especially annoying in Python 2, since it makes raw
unicode strings useless for common path literals. For example:
>>> ur'C:\User
was viewing pep526, so, finally, python cannot do without hinting the type
as other languages?
will python finally move to
int x = 3 where int is a pre annotation?
i am not arguing it's usefulness but rather, does it fit with python?
Abdur-Rahmaan Janhangeer
https://github.com/Abdur-rahmaanJ
--
On 2018-07-01 18:06, Abdur-Rahmaan Janhangeer wrote:
was viewing pep526, so, finally, python cannot do without hinting the type
as other languages?
will python finally move to
int x = 3 where int is a pre annotation?
i am not arguing it's usefulness but rather, does it fit with python?
PEP 526
On Sun, Jul 1, 2018 at 11:09 AM Abdur-Rahmaan Janhangeer
wrote:
>
> was viewing pep526, so, finally, python cannot do without hinting the type
> as other languages?
Python certainly can do without it. That's why it's an optional
feature with no runtime effect beyond making the annotations
inspect
i meant that x: int = 3 is dangerously close to int x = 3,
in the long run, you'll come across people who come from other languages
wanting to java/c style their code and end up sprinkling a lot of these,
it'll be a sad day for me
return type in function definition also managed to return via ->
On Mon, Jul 2, 2018 at 3:55 AM, Abdur-Rahmaan Janhangeer
wrote:
> i meant that x: int = 3 is dangerously close to int x = 3,
>
> in the long run, you'll come across people who come from other languages
> wanting to java/c style their code and end up sprinkling a lot of these,
> it'll be a sad day
not python, the spirit of python,
i guess i must have been around when it was first discussed, now it's too
late to discuss why it was introduced in the first place ...
Abdur-Rahmaan Janhangeer
https://github.com/Abdur-rahmaanJ
I'm sure people will misuse type hints too. What of it? Does it
> de
> On Jul 1, 2018, at 8:05 AM, Sharan Basappa wrote:
>
> Folks,
>
> I am trying to use logging module and somehow I cannot make it work.
Saying that something does not work does not provide enough information for
anyone to assist you. You need to provide both the exact code that did not
wo
On Sun, 01 Jul 2018 06:05:48 -0700, Sharan Basappa wrote:
> Folks,
>
> I am trying to use logging module and somehow I cannot make it work.
>
> A simple code that I am trying is below. The commented code line 5,6 are
> other options I have tried but don't work
>
> #importing module
> import log
On Sun, 01 Jul 2018 21:55:21 +0400, Abdur-Rahmaan Janhangeer wrote:
> i meant that x: int = 3 is dangerously close to int x = 3,
>
> in the long run, you'll come across people who come from other languages
> wanting to java/c style their code and end up sprinkling a lot of these,
> it'll be a sad
eryk sun wrote:
Python 2 raw strings are half-baked.
Obviously the "r" actually stand for "rare".
--
Greg
--
https://mail.python.org/mailman/listinfo/python-list
On Sun, 01 Jul 2018 22:48:00 +0400, Abdur-Rahmaan Janhangeer wrote:
> not python, the spirit of python,
>
> i guess i must have been around when it was first discussed, now it's
> too late to discuss why it was introduced in the first place ...
Guido has been talking about this for a LONG time:
On Sun, Jul 1, 2018 at 4:30 PM, eryk sun wrote:
> On Sun, Jul 1, 2018 at 8:51 AM, Steven D'Aprano
>
>> spam/eggs
[...]
>> And how would that file be displayed in the Windows GUI file explorer?
>
> I suppose if a file system allowed forward slash in names that
> Explorer would just display it.
On 07/01/18 18:21, Steven D'Aprano wrote:
Guido has been talking about this for a LONG time:
You keep bringing that up. It's not an argument.
People have been talking about taxes for a long, long time. Does it
surprise you that they still do? None of us has a time machine that
will tra
Elliott Roper writes:
> ...
> I should have mentioned that none of this went wrong in 3.6. All I'm after
> are packages I can install with pip3. I really don't need to go down all the
> twisty passages installing Fortran
"pip[*]" is a tool to install Python packages.
But some Python packages ar
Sharan Basappa writes:
> I am trying to use logging module and somehow I cannot make it work.
>
> A simple code that I am trying is below. The commented code line 5,6 are
> other options I have tried but don't work
>
> #importing module
> import logging
>
> #Create and configure logger
> #loggi
On Thursday, June 28, 2018 at 1:09:04 PM UTC-4, Elliott Roper wrote:
> I have done something stupid. Don't know what.
>
> My $PATH looks like this
> XXXMac:~ elliott$ echo $PATH
> /Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Pyth
> on.framework/Versions/3.6/bin:/Librar
me too i come from "other languages" but what i liked in python was python
now the world got mixed up again
Abdur-Rahmaan Janhangeer
https://github.com/Abdur-rahmaanJ
In the long run, why do we always fear people coming from other
> languages? Why don't they fear Python programmers coming to thei
31 matches
Mail list logo