Re: Feeding the trolls

2018-06-21 Thread Anssi Saari
D'Arcy Cain writes: > One of these days I will have to figure out how to block replies to the > trolls as well. Benefit of reading the mailing list via nntp (i.e. gmane): can easily score down follow-ups to annoying people in addition to their posts. Well, assuming a decent newsreader. -- http

translating foreign data

2018-06-21 Thread Ethan Furman
I need to translate numeric data in a string format into a binary format. I know there are at least two different methods of representing parts less that 1, such as "10.5" and "10,5". The data is encoded using code pages, and can vary depending on the file being read (so I can't rely on current

write the values of an ordered dictionary into a file

2018-06-21 Thread Ganesh Pal
Hi Team I need to write the values of an ordered dictionary into a file . All values should be in a single row with a header list *Example:* *student = [("NAME", "John"),* * ("AGE", 28),* * ("SCORE", 13),* * ("YEAR", 2018),* * ("FEE", 250)]* *st

Re: write the values of an ordered dictionary into a file

2018-06-21 Thread Peter Pearson
On Thu, 21 Jun 2018 22:41:48 +0530, Ganesh Pal wrote: [snip] [what I think OP wants:] > > *.* > > *||STUDENT NAME||STUDENT AGE||MARKS SCORED||PASSED YEAR||FEES PAID||* > > *||John|| 28 || 13|| 2018 || 250

Re: translating foreign data

2018-06-21 Thread Peter Pearson
On Thu, 21 Jun 2018 10:12:27 -0700, Ethan Furman wrote: > I need to translate numeric data in a string format into a binary > format. I know there are at least two different methods of > representing parts less that 1, such as "10.5" and "10,5". The data > is encoded using code pages, and can va

Re: write the values of an ordered dictionary into a file

2018-06-21 Thread MRAB
On 2018-06-21 18:11, Ganesh Pal wrote: > Hi Team > > I need to write the values of an ordered dictionary into a file . All > values should be in a single row with a header list > > *Example:* > > *student = [("NAME", "John"),* > * ("AGE", 28),* > * ("SCORE", 13),* > *

Re: write the values of an ordered dictionary into a file

2018-06-21 Thread Peter Otten
Ganesh Pal wrote: > Hi Team There is no team, just some random guys on the net. Sorry to disappoint you... > I need to write the values of an ordered dictionary into a file . All > values should be in a single row with a header list > > > > *Example:* > > > > *student = [("NAME", "John"),

Re: syntax difference

2018-06-21 Thread Alister via Python-list
On Wed, 20 Jun 2018 11:41:23 -0700, bart4858 wrote: > The actual interpreter code is irrelevant. Switch would be a feature of > the language being interpreted, not of the interpreter. > > If the task is to match an expression X against a variety of values, > then expressing that as a switch means

Re: translating foreign data

2018-06-21 Thread codewizard
On Thursday, June 21, 2018 at 1:08:35 PM UTC-4, Ethan Furman wrote: > I need to translate numeric data in a string format into a binary format. I > know there are at least two different > methods of representing parts less that 1, such as "10.5" and "10,5". The > data is encoded using code pag

Re: translating foreign data

2018-06-21 Thread Ethan Furman
On 06/21/2018 10:36 AM, Peter Pearson wrote: On Thu, 21 Jun 2018 10:12:27 -0700, Ethan Furman wrote: I need to translate numeric data in a string format into a binary format. I know there are at least two different methods of representing parts less that 1, such as "10.5" and "10,5". The data

Re: translating foreign data

2018-06-21 Thread Ethan Furman
On 06/21/2018 12:07 PM, codewiz...@gmail.com wrote: On Thursday, June 21, 2018 at 1:08:35 PM UTC-4, Ethan Furman wrote: I need to translate numeric data in a string format into a binary format. I know there are at least two different methods of representing parts less that 1, such as "10.5"

Re: syntax difference

2018-06-21 Thread bart4858
Alister: == which can be implemented in python by putting function calls as members of a list or dictionary switch=[case1,case2,case3] switch[a]() == This is the approach you might use when you don't have a proper switch. It could be done in C that way. Problems: the code for the dif

Re: translating foreign data

2018-06-21 Thread Ben Bacarisse
Ethan Furman writes: > I need to translate numeric data in a string format into a binary > format. I know there are at least two different methods of > representing parts less that 1, such as "10.5" and "10,5". The data > is encoded using code pages, and can vary depending on the file being >

Re: translating foreign data

2018-06-21 Thread Peter Otten
Ethan Furman wrote: > I need to translate numeric data in a string format into a binary format. > I know there are at least two different > methods of representing parts less that 1, such as "10.5" and "10,5". The > data is encoded using code pages, and can vary depending on the file being > rea

Re: Feeding the trolls

2018-06-21 Thread mm0fmf
On 21/06/2018 05:02, Abdur-Rahmaan Janhangeer wrote: by building a custom py-based mail client maybe ^^_ Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ On Wed, 20 Jun 2018, 17:18 D'Arcy Cain, wrote: On 2018-06-20 08:10 AM, Tim Golden wrote: [... snip discussions about Bart's lan

Re: translating foreign data

2018-06-21 Thread George Fischhof
Peter Otten <__pete...@web.de> ezt írta (időpont: 2018. jún. 21., Cs, 22:45): > Ethan Furman wrote: > > > I need to translate numeric data in a string format into a binary > format. > > I know there are at least two different > > methods of representing parts less that 1, such as "10.5" and "10,5"

Re: translating foreign data

2018-06-21 Thread Gregory Ewing
George Fischhof wrote: - if you found only one type, then that is the decimal Only if you're sure that all numbers contain a decimal separator. Otherwise there's no way to be sure in general. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: Feeding the trolls

2018-06-21 Thread Steven D'Aprano
On Thu, 21 Jun 2018 21:49:15 +0100, mm0fmf wrote: [snip unnecessary quoting] > Design requirements for python newsreader client: > > 1. Block all top posters I think it would be far more useful to block bottom-posters who don't snip irrelevant quoted text. -- Steven D'Aprano "Ever since I l

Re: translating foreign data

2018-06-21 Thread Cameron Simpson
On 21Jun2018 10:12, Ethan Furman wrote: I need to translate numeric data in a string format into a binary format. I know there are at least two different methods of representing parts less that 1, such as "10.5" and "10,5". The data is encoded using code pages, and can vary depending on the

Re: Feeding the trolls

2018-06-21 Thread Abdur-Rahmaan Janhangeer
aie maybe we can learn then warn ! mail sender is top poster Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ Design requirements for python newsreader client: > > 1. Block all top posters > -- https://mail.python.org/mailman/listinfo/python-list

Re: Feeding the trolls

2018-06-21 Thread Gregory Ewing
Steven D'Aprano wrote: On Thu, 21 Jun 2018 21:49:15 +0100, mm0fmf wrote: Design requirements for python newsreader client: 1. Block all top posters I think it would be far more useful to block bottom-posters who don't snip irrelevant quoted text. In the early days of Usenet, it was common

ironpython not support py3.6

2018-06-21 Thread fantasywangxg
We have a project implemented with c# and python, iron python is a good choice for us to integrate these two tech together but iron python not support python 3.6 yet, any suggest for this? -- https://mail.python.org/mailman/listinfo/python-list