Re: Python Learning

2017-12-18 Thread Rhodri James
didn't get the job, sadly). -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Learning

2017-12-18 Thread Rhodri James
On 18/12/17 16:33, Marko Rauhamaa wrote: Rhodri James : I haven't often been involved in hiring, but the few times I have we had more applicants than it was feasible to interview. You don't have to interview them all. Once you encounter an excellent candidate, you can close the de

Re: Tkinter,show pictures from the list of files in catalog-problem

2017-12-19 Thread Rhodri James
/txvB4IBtlUrn3TuB0rtu/ Nope. Not following a link from someone I don't know (with all due respect) with a URL I don't immediately recognise. If you want help, post your code here, preferably trimmed down to the minimum you need to demonstrate the problem. -- Rhodri James *-* Kynesim Lt

Re: How to create a python extension module from a shared library?

2018-01-02 Thread James Chapman
k here, there's a link to each 3rd party plugin (mostly GitHub) where you can see the source code for each plugin. This is a very good starting point as there are many examples here: https://uwsgi-docs.readthedocs.io/en/latest/ThirdPartyPlugins.html Perhaps you can clarify. James On

Re: How to create a python extension module from a shared library?

2018-01-02 Thread James Chapman
I have an example of loading and communicating with a dynamic library using ctypes in Windows here: https://github.com/James-Chapman/python-code-snippets/tree/master/DLL_C_funcs_w_callbacks It shouldn't be too dissimilar on Linux. What starts uWSGI? Is it started from a Python application

Re: How to create a python extension module from a shared library?

2018-01-02 Thread James Chapman
ing python bindings for C calls with CFFI and clang and posted to a CFFI forum. (Why clang? GCC/G++ will work just as well and may be the default).​ Hope that helps. James -- https://mail.python.org/mailman/listinfo/python-list

Re: How to create a python extension module from a shared library?

2018-01-03 Thread James Chapman
ely have to, because you'll have to modify those components with each update and ultimately you just end up generating work for yourself. James On 2 January 2018 at 21:21, Etienne Robillard wrote: > Hi James, > > Part of the problem is because the CFFI and uWSGI developers aren

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread Rhodri James
rithm. So I probably should have said "If NN's can ...". No, you should have said "If NNs can..." without the grocer's apostrophe :-) (Well, it seems to be that sort of thread.) -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Where has the practice of sending screen shots as source code come from?

2018-01-30 Thread Rhodri James
On 30/01/18 16:47, alister via Python-list wrote: The British TV show QI seemed to think this is actually part of the Dutch driving test although they have been known to make mistakes It has to be noted that the QI Elves did not do particularly well in Only Connect... -- Rhodri James

Re: "None" and "pass"

2018-02-06 Thread Rhodri James
l for that. A docstring with nothing underneath doesn't look like a stub - it looks like a failed edit or something. Having a placeholder shows that it's intentional. ChrisA indeed and pass was implemented for precisely this usage why even think about possible alternatives None sh

Re: Regex on a Dictionary

2018-02-13 Thread Rhodri James
so passing it in whole like that won't work. If you know that the name will always show up in the title field, you can pass just the title: x = MyRegex.findall(MyDict['/Title']) Otherwise you will have to loop through all the entries in the dictionary: for entry in MyDi

Re: Python 2 to 3 Conversion

2018-02-19 Thread Rhodri James
e in theory you are supposed to use libnl (in some suitable wrapping), but my experience with that is that it is badly documented and horrendously unreliable. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-20 Thread Rhodri James
ds not available in Mathematica, such as expr2bdd, is there really any domain of computation where Mathematica is inferior to Python? Not knowing much about Mathematica, all I can say is "almost certainly." -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: How to make Python run as fast (or faster) than Julia

2018-02-22 Thread Rhodri James
ng of the benchmarks Pythonic, but still food for thought. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: How to make Python run as fast (or faster) than Julia

2018-02-26 Thread Rhodri James
behaviour of signed arithmetic overflow undefined, so you have no portability guarantees there. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Is there are good DRY fix for this painful design pattern?

2018-02-26 Thread Rhodri James
vars = self.defaults.copy() vars.update(kwds) # Do the work with vars['bashful'] etc -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Local variable definition in Python list comprehension

2022-09-01 Thread James Tsai
Hello, I find it very useful if I am allowed to define new local variables in a list comprehension. For example, I wish to have something like [(x, y) for x in range(10) for y := x ** 2 if x + y < 80], or [(x, y) for x in range(10) with y := x ** 2 if x + y < 80]. For now this functionality can

Re: Local variable definition in Python list comprehension

2022-09-01 Thread James Tsai
在 2022年9月1日星期四 UTC+2 16:15:17, 写道: > James Tsai writes: > > > I find it very useful if I am allowed to define new local variables in > > a list comprehension. For example, I wish to have something like > > [(x, y) for x in range(10) for y := x ** 2 if x + y < 80

Re: Local variable definition in Python list comprehension

2022-09-01 Thread James Tsai
在 2022年9月1日星期四 UTC+2 18:34:36, 写道: > On 9/1/22, James Tsai wrote: > > > > I find it very useful if I am allowed to define new local variables in a > > list comprehension. For example, I wish to have something like > > [(x, y) for x in range(10) for y := x ** 2 if

Re: Local variable definition in Python list comprehension

2022-09-01 Thread James Tsai
在 2022年9月1日星期四 UTC+2 18:16:03, 写道: > On Fri, 2 Sept 2022 at 02:10, James Tsai wrote: > > > > Hello, > > > > I find it very useful if I am allowed to define new local variables in a > > list comprehension. For example, I wish to have something like > >

Re: Local variable definition in Python list comprehension

2022-09-02 Thread James Tsai
在 2022年9月2日星期五 UTC+2 00:17:23, 写道: > On 02Sep2022 07:01, Chris Angelico wrote: > >On Fri, 2 Sept 2022 at 06:55, James Tsai wrote: > >> No but very often when I have written a neat list/dict/set > >> comprehension, I find it very necessary > >> to defi

JOB | Lead Linux Sysadmin (Edinburgh/London)

2023-03-08 Thread James Tobin
om". Kind regards, James -- https://mail.python.org/mailman/listinfo/python-list

JOB | Linux Platform Engineer (India and Singapore)

2023-04-24 Thread James Tobin
like to discuss further; off-list. I can be reached using "JamesBTobin (at) Gmail (dot) Com". Kind regards, James -- https://mail.python.org/mailman/listinfo/python-list

Python subinterpreters with separate GILs

2021-02-10 Thread James Lu
Directly removing the Global Interpreter Lock (GIL) would break a lot of libraries that implicitly assume it is there. What if Python had "realms" that each had separate GILs? The "realms" (not sure if "subinterpreter" is the correct term here) could share objects. -- https://mail.python.org/mail

Universal compiler that runs Java, Ruby, C++, and Python in a single VM

2021-03-16 Thread James Lu
It's called Oracle's Truffle. Truffle runs all those languages with an autogenerated JIT. This is my response to the neos drama. -- https://mail.python.org/mailman/listinfo/python-list

empty stdout (subprocess.run)

2022-01-19 Thread James Smith
I'm trying to run a shell command but the stdout is empty: import subprocess torrentno=8 cmd="/usr/bin/transmission-remote --torrent %s --info", str(torrentno) res=subprocess.run(cmd, shell=True, check=True, universal_newlines=True, capture_output=True) print(res) CompletedProcess(args=('/usr/b

Re: empty stdout (subprocess.run)

2022-01-20 Thread James Smith
On Wednesday, January 19, 2022 at 11:08:58 PM UTC-5, Dennis Lee Bieber wrote: > Don't you need to provide for that %s? Perhaps > > cmd="/usr/bin/transmission-remote --torrent %s --info" % torrentno That works, thanks. -- https://mail.python.org/mailman/listinfo/python-list

Re: empty stdout (subprocess.run)

2022-01-20 Thread James Smith
On Wednesday, January 19, 2022 at 11:14:28 PM UTC-5, cameron...@gmail.com wrote: > But I recommend you use shell=False and make: > > cmd = ["/usr/bin/transmission-remote", "--torrent", str(torrentno), "--info"] I like that. :-) -- https://mail.python.org/mailman/listinfo/python-list

Re: Python3, column names from array - numpy or pandas

2016-12-15 Thread Rhodri James
no defensive coding for blank lines or unexpected data in there, and if want to use the results later on you probably want to stash them in a dictionary, but that will do the job. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Screwing Up looping in Generator

2017-01-04 Thread Rhodri James
ctually is a generator (not, say, a list or tuple), then no it won't work. Once a generator is exhausted, it's exhausted. Besides, the nested for-loops over the same iterable is a dead giveaway that something is wrong. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Clickable hyperlinks

2017-01-05 Thread Rhodri James
l question since it's based on incorrect assumptions." Translating that to "No" is just as much a mistake as translating it to "Yes." -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Screwing Up looping in Generator

2017-01-06 Thread Rhodri James
file specifications as it yields them. It would be > helpful to see the code for rootobs, if you have it. Ahem. If Sayth is using the correct terminology and rootobs actually is a generator (not, say, a list or tuple), then no it won't work. Once a generator is exhausted, it's

Re: Clickable hyperlinks

2017-01-09 Thread Rhodri James
On 05/01/17 02:53, Deborah Swanson (Deborah Swanson) wrote: Rhodri James wrote, on January 05, 2017 3:53 AM On 05/01/17 04:52, Deborah Swanson wrote: My original question was in fact whether there was a way to make clickable hyperlinks in a console. I was persuaded after about 10 replies that

Re: Clickable hyperlinks

2017-01-09 Thread Rhodri James
rah's inability to communicate again. I think she meant to say that the console is dumb, not dead. In a very strict sense that's almost true, but since we've been using "console" interchangeably with "terminal emulator" throughout this discussion, it's hil

Re: Using namedtuples field names for column indices in a list of lists

2017-01-09 Thread Rhodri James
ithin the same date, it's just: records = sorted( sorted( set(records), key=operator.attrgetter("Description") ), key=operator.attrgetter("Date") ) -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Find and append file path

2017-01-12 Thread Rhodri James
ts. Which attribute you want depends on exactly what you mean by "the latest folder according to the latest date". Then just use your favourite means to join the directory name you selected to the original path. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: update a list element using an element in another list

2017-01-31 Thread Rhodri James
n the same order and the same length, which is probably an unwise assumption, but it's what your code does: for entity, update_dict in zip(entities, update_dicts): entity.update(update_dict) range(len(something)) is usually a warning sign (code smell, if you prefer) that you aren't thi

Re: Python 3.6

2018-03-07 Thread Rhodri James
window on your OS or the IDLE program? What exactly do you mean by "the binary its [sic] running with"? -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Console

2018-03-07 Thread Rhodri James
Once you have a console running, all you should need to do then is type "idle" at the prompt. That should open a window, which amongst other things will tell you the version of Python it is using. If that fails, try "idle -n" instead; it may not make any difference, but it&#x

Re: Reg python regexp

2018-03-21 Thread Rhodri James
ape the square brackets as you normally would for your shell, with backslashes I presume. Then you need to escape the backslashes so they aren't interpreted specially by Python, with more backslashes. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Pep8 for long pattern

2018-03-28 Thread Rhodri James
tting their code if I have to work on it. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: How to save xarray data to csv

2018-04-16 Thread Rhodri James
want the "enumerate", but beyond that I have no idea what you're after. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: How to save xarray data to csv

2018-04-17 Thread Rhodri James
ay of iterating through entries, surely? -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Open (txt) editor and get its content

2018-04-19 Thread Rhodri James
don't, you will wish you had) and read the file back. Is there any other option for getting interactive multi line input from user. input() and patience :-) -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: seeking deeper (language theory) reason behind Python design choice

2018-05-09 Thread Rhodri James
istakes like that. They are, without fail, embarrassed when I turn on the compiler warning flags. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: seeking deeper (language theory) reason behind Python design choice

2018-05-14 Thread Rhodri James
all the time. Moreover, it's very hard to notice *in your own code* because you read what you meant, not what you wrote. Ask any author about proof-reading, and they'll tell you to get someone else to do it. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Extract data from multiple text files

2018-05-15 Thread Rhodri James
paste the traceback (don't retype it, and definitely don't send us screenshots; attachments aren't allowed on the mailing list). -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: object types, mutable or not?

2018-05-15 Thread Rhodri James
on't have types, or indeed anything much. They are just names, that's all. Every time you use the name, you get the object the name references (or "is bound to" as some people prefer to phrase it). -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: what does := means simply?

2018-05-18 Thread Rhodri James
uages is that to do it well, you need to understand both languages *and both cultures.* The same principle probably applies to computer languages as well; how often have we collectively complained about people trying to write (say) FORTRAN in Python? -- Rhodri James *-* Kynesim Ltd --

Re: syntax oddities

2018-05-18 Thread Rhodri James
proper quoting, trimming and interspersed posting. Clearly you've never worked in the right companies ;-) -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: syntax oddities

2018-05-18 Thread Rhodri James
nderstand what we're saying... (Disclaimer: I'm a Brit, so I'm poking fun at myself here :-)) It's not actually the worst thing you could do. People speaking NICE AND LOUDLY also tend to speak more slowly and with better diction, both of which make life simpler for your poor old

Re: Issue

2018-05-22 Thread Rhodri James
s, >> >> did you send a log file attached? > > yes I'm afraid it didn't make it to us. The mailing list strips off attachments. Please copy and paste the error into your message, and we'll do our best to decode it for you. -- Rhodri James *-* Kynesim Ltd -- ht

Re: Simple question: how do I print output from .get() method

2018-05-30 Thread Rhodri James
from that, but at its simplest, you could convert that to a list: print(list(sw_report)) Be aware that if you do this, you will exhaust the generator and won't be able to use it anywhere else. >>> def foo(): ... yield 1 ... yield 2 ... yield 3 ... >>>

Re: FULLSCREEN and DOUBLEBUF

2018-06-08 Thread Rhodri James
polite not to top post on this mailing list. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: FULLSCREEN and DOUBLEBUF

2018-06-08 Thread Rhodri James
On 08/06/18 12:41, Darren Pardoe wrote: On Friday, 8 June 2018 12:24:26 UTC+1, Rhodri James wrote: On 08/06/18 09:00, Paul St George wrote: PS: it's generally considered polite not to top post on this mailing list. -- Rhodri James *-* Kynesim Ltd Rhodri, Guys, I have always top posted

Re: Regex to extract multiple fields in the same line

2018-06-13 Thread Rhodri James
") parser.add_argument("--size") line = '06/12/2018 11:13:23 AM python toolname.py --struct=data_block --log_file=/var/1000111/test18.log --addr=None --loc=0 --mirror=10 --path=/tmp/data_block.txt --size=8' args = parser.parse_args(line.split()) print(args) -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: How to apply filters to posts

2018-06-14 Thread Rhodri James
tion, in effect) and only read the threads that seem interesting. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Metasyntactic thingies

2018-06-18 Thread Rhodri James
oes anyone else have any? Sometimes I "mangle()" things, but I'm usually boring. "do_something()", "do_something_else()" or (if I'm feeling particularly nostalgic and helpless) "do_something_muttley()". -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: syntax difference

2018-06-18 Thread Rhodri James
x27;t take advantage of the tools. They're just tools, and they may be a help for programmers who can't be bothered to figure things out for themselves, but they aren't required by any means. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: syntax difference

2018-06-18 Thread Rhodri James
. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: syntax difference

2018-06-19 Thread Rhodri James
t("What about me?");'''\ print("And me? Where endeth");"""\ print('the assertion?');\'''' Chris, that's not code... That's a syntactical representation of some random flea circus. Fortunately, my Python interpreter i

Re: help install on Win 7

2018-06-28 Thread Rhodri James
lude the better. Cheers, Rhodri -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: about main()

2018-07-05 Thread Rhodri James
ntains things that might be useful as a module, use the "if __name__ == '__main__'" trick. Otherwise it can be more of a distraction than a help. I'm not a big fan of "main()" functions myself; creating a function which will be called exactly once seems

Re: Kindness

2018-07-13 Thread Rhodri James
counted on the fingers of one hand. Honestly, I don't know why anybody bothers responding to him. Boredom, I suppose. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread James Lee
On 7/15/2018 3:43 AM, Steven D'Aprano wrote: No. The real ten billion dollar question is how people in 2018 can stick their head in the sand and take seriously the position that Latin-1 (let alone ASCII) is enough for text strings. Easy - for many people, 90% of the Python code they write

Re: Kindness

2018-07-16 Thread Rhodri James
On 13/07/18 20:46, Ethan Furman wrote: On 07/13/2018 11:52 AM, Rhodri James wrote: I should point out that the number of people I have killfiled in all my > Internet dealings can be counted on the fingers of one hand. Your left one? * -- ~Ethan~ * Bonus points for getting the refere

Re: Kindness

2018-07-16 Thread Rhodri James
On 16/07/18 15:20, Ethan Furman wrote: On 07/16/2018 06:22 AM, Rhodri James wrote: On 13/07/18 20:46, Ethan Furman wrote: On 07/13/2018 11:52 AM, Rhodri James wrote: I should point out that the number of people I have killfiled in all my  > Internet dealings can be counted on the fing

Re: Unicode [was Re: Cult-like behaviour]

2018-07-16 Thread Rhodri James
On 16/07/18 17:22, Chris Angelico wrote: What characters does it use? Mostly Latin letters? Basic Latin plus U+0174 (LATIN CAPITAL LETTER W WITH CIRCUMFLEX) through to U+0177 (LATIN SMALL LETTER Y WITH CIRCUMFLEX) I think. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman

Re: Unicode [was Re: Cult-like behaviour]

2018-07-16 Thread Rhodri James
also a question of what's required to correctly notate modern Welsh. Back in the late 1980s Acorn asked four Welsh-language scholars that question. They got four different answers :-( -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Unicode [was Re: Cult-like behaviour]

2018-07-16 Thread Rhodri James
Could you explain? I've only ever had problems with strings *not* being Unicode, and I really don't understand what has you so hot under the collar. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Unicode [was Re: Cult-like behaviour]

2018-07-16 Thread Rhodri James
On 16/07/18 19:31, Steven D'Aprano wrote: I'm simply not seeing the advantage of: from __future__ import no_unicode print("Hello World!") # stand in for any string handling on ASCII Sure this should be "from __past__ import no_unicode"? gd&

Re: Unicode [was Re: Cult-like behaviour]

2018-07-16 Thread Rhodri James
On 16/07/18 18:38, Rhodri James wrote: Actually having an option of turning off Unicode *does* make it harder to use, because you end up coming across programs that have Unicode and surprise you when they misbehave.  And yes I saw that 90% of your programs aren't intended to get out int

Re: Cult-like behaviour [was Re: Kindness]

2018-07-16 Thread Rhodri James
nd say "That's a gnu," people are likely to stop taking you seriously. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Unicode [was Re: Cult-like behaviour]

2018-07-16 Thread Rhodri James
pulled the "storming off in a huff rather than answer a question anyone actually asked" defence, so we can go back to debating about important things like how to spell assignment expressions. Oh wait... :-) -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Glyphs and graphemes [was Re: Cult-like behaviour]

2018-07-16 Thread Rhodri James
even when that means making sure you don't split characters across buffers. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Cult-like behaviour [was Re: Kindness]

2018-07-17 Thread Rhodri James
On 17/07/18 02:52, Python wrote: On Mon, Jul 16, 2018 at 08:56:11PM +0100, Rhodri James wrote: The problem everyone is having with you, Marko, is that you are using the terminology incorrectly. [...] When you call UTF-32 a variable-width encoding, you are incorrect. But please don't ove

Re: Cult-like behaviour [was Re: Kindness]

2018-07-17 Thread Rhodri James
On 17/07/18 13:41, Rhodri James wrote: On 17/07/18 02:52, Python wrote: On Mon, Jul 16, 2018 at 08:56:11PM +0100, Rhodri James wrote: The problem everyone is having with you, Marko, is that you are using the terminology incorrectly. [...] When you call UTF-32 a variable-width encoding, you are

Re: Cult-like behaviour [was Re: Kindness]

2018-07-17 Thread Rhodri James
acters, but that's just a detail. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Cult-like behaviour [was Re: Kindness]

2018-07-17 Thread Rhodri James
On 17/07/18 14:14, Marko Rauhamaa wrote: Rhodri James : On 17/07/18 02:17, Steven D'Aprano wrote: Ah yes, the unfortunate design error that iterating over byte-strings returns ints rather than single-byte strings. That decision seemed to make sense at the time it was made, but turned o

Re: Glyphs and graphemes [was Re: Cult-like behaviour]

2018-07-17 Thread Rhodri James
postalveolar_affricate> Is there a difference between these expressions: rye train right rain right train Again, yes. Very much so this time. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: hello from a very excited and totally blind python programmer and game player

2018-07-25 Thread Rhodri James
is nothing particularly odd about this list that I can think of that might cause problems like that. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: NLTK

2018-08-06 Thread Rhodri James
d NLTK may be trying to do something more comprehensive. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: RFC -- custom operators

2018-08-07 Thread Rhodri James
;t think of any use cases I actually want off-hand. The sorts of things I might apply new operators to are various bits of byte buffer mangling, and most of those feel more pythonic as iterative processes. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: failed to execute scapy commands from remote server

2018-08-09 Thread Rhodri James
your machine have a network interface called "enp6s0f0"? -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Object-oriented philosophy

2018-09-06 Thread Rhodri James
#x27;s a bit marginal in your case. I'm not that seasoned in object-oriented design either, but my yardstick would be how much common code does it eliminate? It's a very subjective measure, but basically it's the same subjective measure as for pulling any common code into a se

Re: I need help to put the output from terminal in a csv file

2018-09-07 Thread Rhodri James
ns a colon it may be what you want. "split()" the line at the colon and look at the first half. Once you have "strip()"ed off the spaces at the beginning and the end, is it "status"? If so, you've got your pass and the VALUE you want is in the second half. I hope that helps. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: getfqdn passes a hostname to gethostbyaddr instead of an ip address

2018-09-12 Thread Rhodri James
ist of aliases, and a list of IP addresses, for a host. The host argument is a string giving a host name or IP number. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Serializing complex objects

2018-09-21 Thread Rhodri James
debugger into. Would that be sufficient? -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: This thread is closed [an actual new thread]

2018-10-02 Thread Rhodri James
I have been unimpressed with the moderation team for some weeks now, but this is just not acceptable. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Python indentation (3 spaces)

2018-10-08 Thread Rhodri James
catch up, and usually bring some new friends with them. Changing indent sizes is falling into the same trap as changing terminology, I'm afraid. It's an obvious, well-intentioned thought, but it won't actually change anything for the better. Thank you for bringing it up, th

Re: Observations on the List - "Be More Kind"

2018-10-08 Thread Rhodri James
their defense is hardly blameless behaviour, by the way.) Flatly, I do not see what you see. I'm open to persuasion, but I'll say up front I don't expect you to succeed. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Test before PR

2018-10-09 Thread Rhodri James
sonable to test, and hope that later QA and pre-release testing (which should involve running those hard-to-set-up tests) will catch anything that slips through. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Observations on the List - "Be More Kind"

2018-10-09 Thread Rhodri James
On 08/10/18 20:46, Ethan Furman wrote: On 10/08/2018 07:43 AM, Rhodri James wrote: I appreciate that the moderators are volunteers, but they have official power on this list.  Being volunteers doesn't mean that they can't get it wrong, or that we shouldn't call them on it wh

Re: From Mathematica to Jypyter

2018-10-10 Thread Rhodri James
at am I missing? -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Observations on the List - "Be More Kind"

2018-10-10 Thread Rhodri James
On 09/10/18 12:12, Rhodri James wrote: On 08/10/18 20:46, Ethan Furman wrote: Banning Rick Johnson: Hopefully no explanation needed [2]. Explanation/justification needed, but given :-)  Again, I killfiled Rick ages ago, and I agree his language does justify banning

Re: Observations on the List - "Be More Kind"

2018-10-11 Thread Rhodri James
On 10/10/18 19:14, Ethan Furman wrote: On 10/10/2018 11:07 AM, Rhodri James wrote: Now I've had a chance to go back through the archive (it's been that kind of day at work), I'm going to have to recant.  I can't find anything that Rick wrote in the week or two before the

Re: From Mathematica to Jypyter

2018-10-11 Thread Rhodri James
On 10/10/18 17:24, jfine2...@gmail.com wrote: Rhodri James wrote: Robin Becker wrote: I'm a great fan of erroneous spelling and this blog needs a spelling check as this quote shows [Paul Romer's blog] "Mathematica exemplifies the horde of new Vandals whose pursuit

Re: Overwhelmed by the Simplicity of Python. Any Recommendation?

2018-10-12 Thread Rhodri James
writing idiomatic Python, never mind efficient Python (arguably I still don't, but as Rob says, who cares?). Don't worry about it; at some point you will discover that the "obvious" Python you are writing looks a lot like the code you are looking at now and thinking "that

Re: Python indentation (3 spaces)

2018-10-15 Thread Rhodri James
tabs are. If you used two-space tab stops and I used (the normal :-) eight, comfortable indentations for you would rapidly become uncomfortably large indentations for me. I'd care about that. I'd also care if you used spaces to make sub-tab stop adjustments to line up appropr

Re: Python indentation (3 spaces)

2018-10-15 Thread Rhodri James
oying behaviour. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   6   7   8   9   10   >