Antoon Pardon writes:
> What I am trying to do is the following.
>
> class MyClass (...) :
> @register
> def MyFunction(...)
> ...
>
> What I would want is for the register decorator to somehow create/mutate
> class variable(s) of MyClass.
>
> Is that possible or do I have to rethi
On Sunday, 1 September 2019 10:48:54 UTC+10, Sayth Renshaw wrote:
> I've created a share doc same structure anon data from my google drive.
>
> https://drive.google.com/file/d/0B28JfFTPNr_lckxQRnFTRF9UTEFYRUVqRWxCNVd1VEZhcVNr/view?usp=sharing
>
> Sayth
I tried creating the df1 dataframe by usin
On 5/09/19 5:12 AM, Dave via Python-list wrote:
...
My question is why, and where do I find a reliable source of information
on formatting numbers? Not interested in replacement values like '{}
{}'.format(1, 2).
Agreed: there's ton(ne)s of information 'out there', much of it old, eg
Python
On 9/4/19 8:08 AM, Spencer Du wrote:
Hi
I want to remove a string from a txt file and then print out what I have
removed. How do I do this.
The txt file is in this format and should be kept in this format.
txt.txt:
laser,cameras,
Thanks
Do you want to remove one of the fields by using an
On 5/09/19 3:08 AM, Spencer Du wrote:
Hi
I want to remove a string from a txt file and then print out what I have
removed. How do I do this.
The txt file is in this format and should be kept in this format.
txt.txt:
laser,cameras,
Is this a homework assignment?
What code do you have so far
On Wed, Sep 4, 2019 at 11:11 AM Spencer Du wrote:
>
> Hi
>
> I want to remove a string from a txt file and then print out what I have
> removed. How do I do this.
>
> The txt file is in this format and should be kept in this format.
>
> txt.txt:
> laser,cameras,
>
> Thanks
> --
> https://mail.pyt
I have been looking into CVE-2019-9636 and I'm not sure that
python code that works in bytes is vulnerable to this.
The "trick" that to make the CVE dangerous assumes that you
have a unicode string with \uff03 (FULLWIDTH NUMBER SIGN')
that under NFKC turns into '#'.
The discussion in https://bugs
On 9/4/19 1:38 PM, Rhodri James wrote:
On 04/09/2019 18:12, Dave via Python-list wrote:
My question is why, and where do I find a reliable source of
information on formatting numbers? Not interested in replacement
values like '{} {}'.format(1, 2).
Here:
https://docs.python.org/3/library/str
On 9/4/19 1:25 PM, Chris Angelico wrote:
On Thu, Sep 5, 2019 at 3:16 AM Dave via Python-list
wrote:
All,
I have been going in circles trying to format a floating point number so
there is only 1 decimal place. In reading all of the gobble-gook that
passes for Python advice, it looked like I s
On 04/09/2019 18:12, Dave via Python-list wrote:
My question is why, and where do I find a reliable source of information
on formatting numbers? Not interested in replacement values like '{}
{}'.format(1, 2).
Here:
https://docs.python.org/3/library/string.html#format-specification-mini-langu
On Thu, Sep 5, 2019 at 3:16 AM Dave via Python-list
wrote:
>
> All,
>
> I have been going in circles trying to format a floating point number so
> there is only 1 decimal place. In reading all of the gobble-gook that
> passes for Python advice, it looked like I should have done this:
>
> numStr =
All,
I have been going in circles trying to format a floating point number so
there is only 1 decimal place. In reading all of the gobble-gook that
passes for Python advice, it looked like I should have done this:
numStr = '3.14159'
num = float(numstr) # OK so far
numFmt = format(num, '{
On Thu, Sep 5, 2019 at 2:07 AM Israel Brewster wrote:
>
> >
> > On Sep 3, 2019, at 11:09 AM, Israel Brewster wrote:
> >
> >>
> >> On Sep 3, 2019, at 10:49 AM, Peter Otten <__pete...@web.de> wrote:
> >>
> >> Israel Brewster wrote:
> >>
> >>> When using pool.imap to apply a function over a list of
>
> On Sep 3, 2019, at 11:09 AM, Israel Brewster wrote:
>
>>
>> On Sep 3, 2019, at 10:49 AM, Peter Otten <__pete...@web.de> wrote:
>>
>> Israel Brewster wrote:
>>
>>> When using pool.imap to apply a function over a list of values, what is
>>> the proper way to pass additional arguments to the
A S wrote:
> I understand that reading lines in .txt files would look something like
> this in Python:
>
>
> with open('filename','r') as fd:
>lines = fd.readlines()
>
>
> However, how do I run my code to only read the words in my .txt files that
> are within each balanced parenthesis?
>
Antoon Pardon wrote:
> What I am trying to do is the following.
>
> class MyClass (...) :
> @register
> def MyFunction(...)
> ...
>
> What I would want is for the register decorator to somehow create/mutate
> class variable(s) of MyClass.
>
> Is that possible or do I have to ret
I understand that reading lines in .txt files would look something like this in
Python:
with open('filename','r') as fd:
lines = fd.readlines()
However, how do I run my code to only read the words in my .txt files that are
within each balanced parenthesis?
I am not sure how to go about it
Hi
I want to remove a string from a txt file and then print out what I have
removed. How do I do this.
The txt file is in this format and should be kept in this format.
txt.txt:
laser,cameras,
Thanks
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, Sep 5, 2019 at 12:23 AM Antoon Pardon wrote:
>
> What I am trying to do is the following.
>
> class MyClass (...) :
> @register
> def MyFunction(...)
> ...
>
> What I would want is for the register decorator to somehow create/mutate
> class variable(s) of MyClass.
>
> Is th
On 04/09/2019 15:21, Antoon Pardon wrote:
What I am trying to do is the following.
class MyClass (...) :
@register
def MyFunction(...)
...
What I would want is for the register decorator to somehow create/mutate
class variable(s) of MyClass.
Is that possible or do I have to
What I am trying to do is the following.
class MyClass (...) :
@register
def MyFunction(...)
...
What I would want is for the register decorator to somehow create/mutate
class variable(s) of MyClass.
Is that possible or do I have to rethink my approach?
--
Antoon Pardon.
--
h
--
https://mail.python.org/mailman/listinfo/python-list
22 matches
Mail list logo