Python Forum
mutable values to string items?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mutable values to string items?
#11
(Aug-29-2022, 07:33 PM)deanhystad Wrote: Why do you suddenly need a file? Before you had a list that contained this information. Why can't you still use a list (or a dictionary)?
Because i want to use a configuration file that doesn't have to be edited in the file itself since so the software can read the setted channels from its own configuration
Quote:What string are you talking about here?
Quote:The string is like this in the new situation:
limiter_chans.ircnet "#python,#forum"
Like i said in the posts above you can set it in the software like:
/set plugins.var.python.limiter.limiter_chans.ircnet #python,#forum
Quote:What command in your program is returning this string? Or are you trying to generate a string like this?
channels = config_get_plugin('limiter_chans.{}'.format(network))
Also noticed that in the posts and it doesn't matter if it is weechat or not, I'm only asking how to store the data to a file and how to retrieve that back. Does it matter, the software is weechat?As far as i know it is a pyhon question, nothing more.
Reply


Messages In This Thread
mutable values to string items? - by fozz - Aug-21-2022, 08:06 PM
RE: mutable values to string items? - by snippsat - Aug-21-2022, 08:58 PM
RE: mutable values to string items? - by rob101 - Aug-21-2022, 09:02 PM
RE: mutable values to string items? - by deanhystad - Aug-22-2022, 02:43 AM
RE: mutable values to string items? - by DeaD_EyE - Aug-22-2022, 07:58 AM
RE: mutable values to string items? - by fozz - Aug-22-2022, 04:18 PM
RE: mutable values to string items? - by fozz - Aug-29-2022, 02:24 PM
RE: mutable values to string items? - by deanhystad - Aug-29-2022, 07:33 PM
RE: mutable values to string items? - by fozz - Aug-29-2022, 09:01 PM
RE: mutable values to string items? - by fozz - Aug-29-2022, 08:43 PM
RE: mutable values to string items? - by deanhystad - Aug-30-2022, 05:25 AM
RE: mutable values to string items? - by deanhystad - Aug-30-2022, 03:20 PM
RE: mutable values to string items? - by fozz - Aug-30-2022, 06:37 PM
RE: mutable values to string items? - by deanhystad - Aug-30-2022, 07:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  using mutable in function defintion as optional paramter akbarza 8 576 Apr-27-2024, 09:59 PM
Last Post: snippsat
  mutable argument in function definition akbarza 1 536 Dec-15-2023, 02:00 PM
Last Post: deanhystad
  Trying to compare string values in an if statement israelsattleen 1 597 Jul-08-2023, 03:49 PM
Last Post: deanhystad
  Getting rid of old string values Pedroski55 3 1,091 Oct-11-2022, 10:56 PM
Last Post: Pedroski55
  Parse String between 2 Delimiters and add as single list items lastyle 5 3,475 Apr-11-2021, 11:03 PM
Last Post: lastyle
  "'DataFrame' objects are mutable, thus they cannot be hashed" Mark17 1 6,925 Dec-25-2020, 02:31 AM
Last Post: tinh
  Mutable Strings millpond 3 2,647 Aug-24-2020, 08:42 AM
Last Post: millpond
  Function parameters and values as string infobound 1 1,806 Jul-24-2020, 04:28 AM
Last Post: scidam
  xml.etree.ElementTree extract string values matthias100 2 5,098 Jul-12-2020, 06:02 PM
Last Post: snippsat
  What is the meaning of mutable data type? qliu 3 3,041 Apr-17-2020, 07:20 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020