ely in your asynchronous I/O handler.
However, simply ignoring the nfqueue socket while doing other
processing might be acceptable too. I would read the documentation
and ask questions carefully before taking that approach, as it may
lead to lost data or other problems. The viability of this app
On Apr 8, 5:52 pm, superhac...@gmail.com wrote:
> On Sunday, April 8, 2012 3:55:41 PM UTC-5, Adam Skutt wrote:
> > On Apr 8, 2:45 pm, "superhac...@gmail.com"
> > wrote:
> > > I am using the python module nfqueue-bindings which is a nfqueue
> > > packet
; > and -15 Block device required.
>
> How do you get -9 and -15? Exit status is supposed to be between 0 and
> 127.
0-255 are perfectly legal in UNIX. Chances are that something is
interpreting the unsigned integer as a signed integer accidentally.
Of course, without any output, th
exception while running and masking the original error. I would
seriously advise taking it out, at least temporarily. This is why
catch-all handlers tend to be a poor idea, as they're rarely robust in
the cases you didn't consider.
Adam
--
http://mail.python.org/mailman/listinfo/python-list
heating, as I believe
the general solution is pretty ugly and doesn't exist in ready form.
I certainly could not find it.
Adam
--
http://mail.python.org/mailman/listinfo/python-list
t terminates, but there are many correct
ways to do that depending on your application and the subprocess. A
thread, as suggested by Jacob, is one way to accomplish it.
Adam
--
http://mail.python.org/mailman/listinfo/python-list
mplementation-dependent.
>
> And what's wrong with that? If you want a language which precisely
> specifies all observable behaviour, you're going to end up with a rather
> useless language. For a start, it can't have a time() function. For
> similar reason
On Apr 25, 8:01 pm, Steven D'Aprano wrote:
> On Wed, 25 Apr 2012 13:49:24 -0700, Adam Skutt wrote:
> > Though, maybe it's better to use a different keyword than 'is' though,
> > due to the plain English
> > connotations of the term; I like 'sameobj
On Apr 26, 5:10 am, Steven D'Aprano wrote:
> On Wed, 25 Apr 2012 20:50:21 -0700, Adam Skutt wrote:
> > On Apr 25, 8:01 pm, Steven D'Aprano > +comp.lang.pyt...@pearwood.info> wrote:
> >> On Wed, 25 Apr 2012 13:49:24 -0700, Adam Skutt wrote:
> >> >
On Apr 26, 1:48 am, John Nagle wrote:
> On 4/25/2012 5:01 PM, Steven D'Aprano wrote:
>
> > On Wed, 25 Apr 2012 13:49:24 -0700, Adam Skutt wrote:
>
> >> Though, maybe it's better to use a different keyword than 'is' though,
> >> due to th
On Apr 26, 9:37 am, Kiuhnm wrote:
> On 4/26/2012 13:45, Adam Skutt wrote:
>
>
>
>
>
>
>
>
>
> > On Apr 26, 1:48 am, John Nagle wrote:
> >> On 4/25/2012 5:01 PM, Steven D'Aprano wrote:
>
> >>> On Wed, 25 Apr 2012 13:49:24 -07
On Apr 26, 10:18 am, rusi wrote:
> On Apr 26, 4:42 pm, Adam Skutt wrote:
>
>
>
> > In a mathematical sense, you're saying that given f(x) = x+2, using
> > f(x) is somehow more "direct" (whatever the hell that even means) than
> > using '
On Apr 26, 12:02 pm, Kiuhnm wrote:
> On 4/26/2012 16:00, Adam Skutt wrote:
> > On Apr 26, 9:37 am, Kiuhnm wrote:
> >> On 4/26/2012 13:45, Adam Skutt wrote:
>
> >>> On Apr 26, 1:48 am, John Naglewrote:
> >>>> This assumes that everythin
On Apr 26, 1:34 pm, rusi wrote:
> On Apr 26, 7:44 pm, Adam Skutt wrote:
> > On Apr 26, 10:18 am, rusi wrote:
>
> > > On Apr 26, 4:42 pm, Adam Skutt wrote:
>
> > > > In a mathematical sense, you're saying that given f(x) = x+2, using
> > > >
On Apr 26, 2:31 pm, John Nagle wrote:
> On 4/26/2012 4:45 AM, Adam Skutt wrote:
> > On Apr 26, 1:48 am, John Nagle wrote:
> >> On 4/25/2012 5:01 PM, Steven D'Aprano wrote:
>
> >>> On Wed, 25 Apr 2012 13:49:24 -0700, Adam Skutt wrote:
>
> >>>&
On Apr 26, 6:34 pm, Kiuhnm wrote:
> On 4/26/2012 20:54, Adam Skutt wrote:
> > On Apr 26, 12:02 pm, Kiuhnm wrote:
> >> On 4/26/2012 16:00, Adam Skutt wrote:
> >>> On Apr 26, 9:37 am, Kiuhnm wrote:
> >> The fact that you think that that's "differ
On Thu, Apr 26, 2012 at 12:05 PM, Evan Driscoll wrote:
> This thread has already beaten a dead horse enough that the horse came back
> as a zombie and was re-killed, but I couldn't help but respond to this part:
>
>
> On 01/-10/-28163 01:59 PM, Adam Skutt wrote:
>>
On Thu, Apr 26, 2012 at 5:39 PM, Ian Kelly wrote:
> On Thu, Apr 26, 2012 at 1:34 PM, Adam Skutt wrote:
>> What I think you want is what I said above: ValueError raised when
>> either operand is a /temporary/ object. Really, it should probably be
>> a parse-time error,
On Apr 26, 7:33 pm, Steven D'Aprano wrote:
> On Thu, 26 Apr 2012 12:22:55 -0700, Adam Skutt wrote:
> > I often wonder what the world would be like if Python, C#, and Java
> > embraced value types more, and had better support for pure functions.
>
> They would be s
On Apr 26, 10:56 pm, "OKB (not okblacke)"
wrote:
> Adam Skutt wrote:
> > If I write a function that does a value comparison, then it should
> > do value comparison on _every type that can be passed to it_,
> > regardless of whether the type is a primitive or an obje
with defining equality even if NaN didn't exist. We must treat
floating-point numbers as a special case in order to write useful
working programs. This includes defining equality in a way that's
different from what works for nearly every other data type.
Adam
[1] Due to register spillin
On Apr 27, 11:01 am, Kiuhnm wrote:
> On 4/27/2012 1:57, Adam Skutt wrote:
> > On Apr 26, 6:34 pm, Kiuhnm wrote:
> >>> If you
> >> understand that your 'a' is not really an object but a reference to it,
> >> everything becomes clear and you
On Apr 27, 12:56 pm, Steven D'Aprano wrote:
> On Thu, 26 Apr 2012 04:42:36 -0700, Adam Skutt wrote:
> > You're going to have to explain the value of an "ID" that's not 1:1 with
> > an object's identity, for at least the object's lifecycle, for a
&
On Apr 27, 1:12 pm, Steven D'Aprano wrote:
> On Thu, 26 Apr 2012 04:42:36 -0700, Adam Skutt wrote:
> > On Apr 26, 5:10 am, Steven D'Aprano > +comp.lang.pyt...@pearwood.info> wrote:
> >> Solution to *what problem*?
>
> > This confusion that many
On Apr 27, 1:06 pm, Steven D'Aprano wrote:
> On Thu, 26 Apr 2012 04:42:36 -0700, Adam Skutt wrote:
> > On Apr 26, 5:10 am, Steven D'Aprano > +comp.lang.pyt...@pearwood.info> wrote:
> >> But I was actually referring to something more fundamental than that.
> &
On Apr 27, 2:40 pm, Steven D'Aprano wrote:
> On Fri, 27 Apr 2012 10:33:34 -0700, Adam Skutt wrote:
> >> Why should the caller care whether they are dealing with a singleton
> >> object or an unspecified number of Borg objects all sharing state? A
> >> clev
concern is being CPU oversubscribed by using lots of
processes, I suspect it's probably misplaced. A whole mess of CPU-
bound tasks is pretty much the easiest case for a scheduler to
handle.
Adam
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 28, 7:26 am, Kiuhnm wrote:
> On 4/27/2012 19:15, Adam Skutt wrote:
> > On Apr 27, 11:01 am, Kiuhnm wrote:
> >> The abstraction is this:
> >> - There are primitives and objects.
> >> - Primitives are not objects. The converse is also true.
> >
y
clear and worth reading. I encourage you to look through it
carefully. It does, unfortunately, gloss over which resources need to
be cleaned up and when.
Adam
--
http://mail.python.org/mailman/listinfo/python-list
pass
>
> This will make it easier in the future for organizing lots of sub-errors.
It's no more or less organized than using a module, so use a module.
This is why they exist, after all.
That being said, this seems like a bad idea to me: this is a lot of
code and type
would not worry about
it for now, but it may be something you need to consider in the
future.
Adam
--
http://mail.python.org/mailman/listinfo/python-list
On May 11, 8:04 am, Jaroslav Dobrek wrote:
> Hello,
>
> I wrote the following code for using egrep on many large files:
>
> MY_DIR = '/my/path/to/dir'
> FILES = os.listdir(MY_DIR)
>
> def grep(regex):
> i = 0
> l = len(FILES)
> output = []
> while i < l:
> command = "egrep
The Nexus programming language version 0.5.0 has been released. It is
an "object-oriented, dynamically-typed, reflective programming
language", drawing from Lua and Ruby. www.nexuslang.org
--
http://mail.python.org/mailman/listinfo/python-list
ace/code and get 9.
>
> Thanks for your feedback.
... try this: http://pypi.python.org/pypi/pymatlab
Regards
Adam Przybyla
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I'm trying to put together a lot of pieces of source code in matlab,
java, perl and python.
Im an expert when it comes to matlab, but novice in all the others
listed above. However, I have integrated the java and perl code so
they can be called from matlab.
I know that there is a toolbox out
On Jun 21, 8:00 pm, Ethan Furman wrote:
> Adam Chapman wrote:
> > Thanks Ethan
>
> > No way could I have worked that out in my state of stress!
>
> > For your second idea, would I need to type that into the python command
> > line interface (the one that looks
On Jun 21, 9:12 pm, Adam Chapman
wrote:
> On Jun 21, 8:00 pm, Ethan Furman wrote:
>
>
>
>
>
>
>
>
>
> > Adam Chapman wrote:
> > > Thanks Ethan
>
> > > No way could I have worked that out in my state of stress!
>
> > > Fo
On Jun 22, 4:54 pm, Adam Chapman
wrote:
> On Jun 21, 9:12 pm, Adam Chapman
> wrote:
>
>
>
>
>
>
>
>
>
> > On Jun 21, 8:00 pm, Ethan Furman wrote:
>
> > > Adam Chapman wrote:
> > > > Thanks Ethan
>
> > > > No way coul
On Jun 22, 5:51 pm, Ethan Furman wrote:
> Adam Chapman wrote:
> > On Jun 22, 4:54 pm, Adam Chapman
> > wrote:
> >> On Jun 21, 9:12 pm, Adam Chapman
> >> wrote:
>
> >>> On Jun 21, 8:00 pm, Ethan Furman wrote:
> >>>> Adam Chapman
On Jun 22, 5:51 pm, Adam Chapman
wrote:
> On Jun 22, 5:51 pm, Ethan Furman wrote:
>
>
>
>
>
>
>
>
>
> > Adam Chapman wrote:
> > > On Jun 22, 4:54 pm, Adam Chapman
> > > wrote:
> > >> On Jun 21, 9:12 pm, Adam Chapman
> > &g
On Jun 22, 6:13 pm, Adam Chapman
wrote:
> On Jun 22, 5:51 pm, Adam Chapman
> wrote:
>
>
>
>
>
>
>
>
>
> > On Jun 22, 5:51 pm, Ethan Furman wrote:
>
> > > Adam Chapman wrote:
> > > > On Jun 22, 4:54 pm, Adam Chapman
> >
On 2011-04-20, Bill Marcum wrote:
> On 2011-04-20, Adam Funk wrote:
>> I'd appreciate any suggestions for testing (preferably from a bash
>> script, although perl or python would be OK too) whether anyone is
>> currently logged in, and whether anyone has been logge
le, but
> it's a construct that I use practically on a daily basis. To someone
> who's not familiar with Python, list comps could suffer from the same
> issues - what does THIS do? oh.
list_ptr=list_a
list_ptr=list_ptr[1:]
Regards
Adam Przybyla
--
http://mail.python.org/mailman/listinfo/python-list
27;s no direct relationship
between calling file.write() and how much data is written to the
stream. In addition, file objects also simply raise the underlying OS
error when it occurs. The UNIX write(2) syscall assumes that you have
been keeping track of how many bytes you've successfully writ
Yeah, we run our Python App as a service under Windows.
You can look at the open-souce part of our product using
http://trac.sjsoft.com/browser
If you look into the code you should be able to find some stuff to do with
services.
Specficially, look in trunk/j5/src/j5/OS/WinService.py
On 19 August
You mean pywin32?
They sure don't install on linux so that should give you a clue...
On 19 August 2011 22:02, johnny.venter wrote:
>
> Hello, I am looking for the Python Windows Extensions to see if they can be
> installed on a Mac.THanks.
>
> --
> http://mail.python.org/mailman/listinfo/pyth
f the difference
you show. A 70ns average difference between iterations is trivially
attributable to noise on a modern machine.
Run enough trials or just wait for the moon to move a bit, and I
wouldn't be terribly surprised if you got difference results.
Rebooting your machine might be e
ing referenced before they are defined...
What's more interesting is that PyCharm seems to know this is going to
happen as well because the code insight marks
the problem versions as having unused parameters (Specifically, the
*decode_args and sa_session_class_lambda parameter
Thanks :-) Sorry about the size, I wasn't sure what was relevant...
On 24 August 2011 15:29, Peter Otten <__pete...@web.de> wrote:
> Adam Jorgensen wrote:
>
>> Hi all, I'm experiencing a weird issue with closuring of parameters
>> and some nested function
I recommend PyCharm. Best Python IDE ever :-)
If you can't afford to pay for it in the long run, then PyDev is the next
best bet. I would recommend downloading the most
minimal Eclipse you can get (Usually the Eclipse RCP Runtime) and install
the necessary plugins as you go. This prevents
you from
ead to run at a
time doesn't mean they'll always run on the same core.
Adam
--
http://mail.python.org/mailman/listinfo/python-list
the operating
system is responsible for scheduling the threads and managing their
lifecycle.
Adam
--
http://mail.python.org/mailman/listinfo/python-list
de or by the system. Even worse, some of
those integer values are reserved by some operating systems. If your
thread died via an exception, it still has an error code set by the
operating system. How would you going to distinguish those codes from
your own?
Adam
--
http://mail.python.org/mailman/listinfo/python-list
you are talking about here. Maybe you confuse threads
> with processes?
Windows threads have exit codes, just like processes. At least one
code is reserved and cannot be used by the programmer.
Adam
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 2, 4:14 pm, Chris Torek wrote:
> In article
> Adam Skutt wrote:
>
> >No, it can only pass a void*, which isn't much better than passing an
> >int.
>
> It is far better than passing an int, although it leaves you with
> an annoying storage-management
Progranming with functions vs Progranming with objects sounds like C vs. C++
more than functional programming vs. OO programming
On 4 September 2011 04:18, William Gill wrote:
> On 9/3/2011 9:51 PM, Terry Reedy wrote:
>
>>
>> It is possible that our doc was less than crystal clear. We are
>> con
Hi
I'm trying to determine the version of OpenSSL that a given python is
compiled against, with python2.7 I can do this with:
import ssl
ssl.OPENSSL_VERSION
is there a way that this can be done in python2.4? It's annoying but I
need to support python2.4 for a while yet :-(
Ch
8 => /usr/lib/libssl.so.0.9.8 (0x7f6a5a9b7000)
> [...]
Thanks but I was hoping to do this using python as this code needs to
run on both Linux and Mac OS X, I know I can run the appropriate tools
depending on the platform. This is an option at least...
Cheers
Adam
--
http://mail.python.org/mailman/listinfo/python-list
I started seeing this sometimes from pip:
After October 2020 you may experience errors when installing or updating
packages. This is because pip will change the way that it resolves dependency
conflicts.
Yeah, sure, that's something to consider. We seem fine with the new resolver.
Is there a w
With the acceptance of PEP 676, the canonical home of the Python Enhancement
Proposal series will shortly move to peps.python.org.
All existing links will redirect when the change is made, this announcement is
to promote awareness of the new domain as canonical.
Thanks,
Adam Turner
PEP Editor
And I get the same exception trying to do anything with a single
photo. Is this code not really Python 3 compatible? Or am I doing
something stupid?
Thanks,
Adam
--
A firm rule must be imposed upon our nation before it destroys
itself. The United St
-- and
> more complete -- help. In this case, I can't state authoritatively if
> curses is available on Windows. You also don't know that I didn't hit
> "send" on my original response then immediately head off to the North
> Woods for a week of hiking.
>
&
characters in
position 102-102: Non-BMP character not supported in Tk
Is there any way to set IDLE to ignore these characters (either drop
them or replace them with something else) instead of throwing the
exception?
If not, what's the best way to strip them out of the string before
prin
On 2016-10-17, Adam Funk wrote:
> I'm using IDLE 3 (with python 3.5.2) to work interactively with
> Twitter data, which of course contains emojis. Whenever the running
> program tries to print the text of a tweet with an emoji, it barfs
> this & stops running:
>
>
If my dusty memory is not wrong they were two projects aiming for GUI designer
for wx: wxGlade (with option to generate code for Python) and Boa Contructor. I
have no idea however if they are still available or working with newer wx.
I prefer for simple stuff Tk for something more sophisticated
On 2016-10-17, eryk sun wrote:
> On Mon, Oct 17, 2016 at 2:20 PM, Adam Funk wrote:
>> I'm using IDLE 3 (with python 3.5.2) to work interactively with
>> Twitter data, which of course contains emojis. Whenever the running
>> program tries to print the text of a twe
The mailbox library documentation seems to be a little weak. In this
example:
https://docs.python.org/2.7/library/mailbox.html#examples
import mailbox
for message in mailbox.mbox('~/mbox'):
subject = message['subject'] # Could possibly be None.
if subject and 'python' in subject.low
On 10/21/2016 11:45 PM, Ben Finney wrote:
> So each instance you're getting has (a superset of) the API of
> ``email.message.Message``, which is a lot of behaviour
> https://docs.python.org/2.7/library/email.message.html#email.message.Message>
> including being able to interrogate the message heade
On 10/22/2016 05:47 AM, andy wrote:
> I would type: help(mailbox) after importing it.
I guess the output of that might be more meaningful once I understand
the underlying structures and conventions.
--
https://mail.python.org/mailman/listinfo/python-list
On 10/22/2016 03:24 AM, dieter wrote:
> In addition to the previous (excellent) responses:
>
> A "message" models a MIME (RFC1521 Multipurpose Internet Mail Extensions)
> message (the international standard for the structure of emails).
> The standard tells you that a message consists essentially
On 10/21/2016 11:22 PM, MRAB wrote:
> The docs say that it's subclass of the email.message module's Message.
>
> You can get the email's header fields like it's a dict, except that the
> field names are case-insensitive. The author(s) of the module couldn't
> use a true dict because of the need fo
On 10/22/2016 11:56 PM, Jason Friedman wrote:
>>
>> for message in mailbox.mbox(sys.argv[1]):
>> if message.has_key("From") and message.has_key("To"):
>> addrs = message.get_all("From")
>> addrs.extend(message.get_all("To"))
>> for addr in add
If one were to develop a Python application on multiple machines, what
are some good methods for keeping them synchronized? For example, I
develop on a FreeBSD machine and a CentOS machine, each with python2.7
and differing sets of site packages. On each machine, I can use
virtualenv. But if I 'pip
On 10/28/2016 11:59 PM, Cameron Simpson wrote:
> Sync the virtualenv prerequisites file with your DVCS. Have a tiny
> script to update the local virtualenv prereq file and run its update
> command to honour any new prereqs.
Cool. I didn't mention that I am a python n00b, did I? What/where is the
"
On 10/28/2016 11:59 PM, Cameron Simpson wrote:
> Sync the virtualenv prerequisites file with your DVCS. Have a tiny
> script to update the local virtualenv prereq file and run its update
> command to honour any new prereqs.
Cool. I didn't mention that I am a python n00b, did I? What/where is the
"
On 10/29/2016 12:31 AM, Adam Jensen wrote:
> On 10/28/2016 11:59 PM, Cameron Simpson wrote:
>> Sync the virtualenv prerequisites file with your DVCS. Have a tiny
>> script to update the local virtualenv prereq file and run its update
>> command to honour any new prereqs
On Saturday, November 5, 2016 at 8:58:36 PM UTC-4, Steve D'Aprano wrote:
> On Sun, 6 Nov 2016 08:17 am, Ben Bacarisse wrote:
>
> > Steve D'Aprano writes:
>
> >> Here's the same program in Objective C:
> >>
> >> --- cut ---
> >>
> >> #import
> >>
> >> int main (int argc, const char * argv[])
> >
On Monday, January 23, 2017 at 3:41:17 PM UTC-5, Jon Ribbens wrote:
> On 2017-01-23, alister wrote:
> > On Tue, 24 Jan 2017 07:19:42 +1100, Chris Angelico wrote:
> >> I believe that's "bad for you" in the sense that chocolate is bad for
> >> you.
> >>
> >> It isn't.
> >
> > chocolate is a poison
I have a situation where internally I need to distribute some Python code using
Linux packages rather than simply relying on wheel files. This seems to be a
solved problem because a lot of Python modules clearly get distributed as .rpm
and .deb. It's not completely unreasonable because soon I wi
On Sunday, June 10, 2018 at 3:05:45 PM UTC-5, Barry wrote:
> The way I learn about the details of RPM packaging is to look at examples
> like what I wish to achieve.
>
> I would go get the source RPM for a python2 package from each distro you want
> to supoort and read its .spec file.
>
> I se
I have a module with a dependency specifically on pillow>=4.2.1. We are using
an internal PyPI that has removed the pillow 4.x series, but it does have
5.2.0. If we try to install pillow>=4.2.1 it doesn't find anything. If we just
instruct pip to install pillow, then it will end up installing pi
side=bottom)
for x in range(0,10):
line.add_major_tick(x*10, label=str(x), side=bottom)
and get a line 100 mm long with a log scale on the top and a linear
scale on the bottom.
Thanks,
Adam
--
It takes a thousand men to invent a telegraph, or a steam engine, or a
phonograph, or a telep
I recently discovered pathlib in the Python 3 standard library, & find
it very useful, but I'm a bit surprised that it doesn't offer things
like is_readable() and is_writable. Is there a good reason for that?
I've been improvising with things like this:
import pathlib, os
path = pathlib.Path('s
On Tuesday, 26 April 2016 17:14:36 UTC+1, Ian wrote:
> On Tue, Apr 26, 2016 at 10:01 AM, wrote:
> > I am wondering how to make my code function so it does not allow any of the
> > same values to be entered into a column in my CSV file created through
> > python. So I need to read into the CSV
x27;) as csvfile:
fieldnames = ["Name", "Score 1", "Score 2", "Score 3", "Average"]
writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
#writer.writeheader()
writer.writerow({"Name": name, "Score 1&qu
On Tuesday, 26 April 2016 17:01:41 UTC+1, Adam Davis wrote:
> I am wondering how to make my code function so it does not allow any of the
> same values to be entered into a column in my CSV file created through
> python. So I need to read into the CSV file and check if any names have
On Tuesday, 26 April 2016 20:52:54 UTC+1, Ian wrote:
> On Tue, Apr 26, 2016 at 1:05 PM, Joaquin Alzola
> wrote:
> > Just an example. Didn't use the csv but just hope that it helps.
> >
> > name=[]
> > name_exist="Dop"
> >
> > with open("dop.csv") as f:
> > for line in f:
> >
On Tuesday, 26 April 2016 21:23:58 UTC+1, MRAB wrote:
> On 2016-04-26 21:07, Adam Davis wrote:
> > On Tuesday, 26 April 2016 20:52:54 UTC+1, Ian wrote:
> >> On Tue, Apr 26, 2016 at 1:05 PM, Joaquin Alzola
> >> wrote:
> >> > Just an example. Didn
On Wednesday, 27 April 2016 07:37:42 UTC+1, Chris Angelico wrote:
> On Wed, Apr 27, 2016 at 4:26 PM, Adam Davis wrote:
> > I understand what you're saying! But where you say: " the_set = set()",
> > what would go within the set brackets?
>
> Nothing. The em
On 2016-04-26, Steven D'Aprano wrote:
> On Tue, 26 Apr 2016 11:30 pm, Adam Funk wrote:
>> I've been improvising with things like this:
>>
>> import pathlib, os
>>
>> path = pathlib.Path('some/directory')
>> writable = os.access(str(pat
On 2016-04-26, Random832 wrote:
> On Tue, Apr 26, 2016, at 09:30, Adam Funk wrote:
>> I recently discovered pathlib in the Python 3 standard library, & find
>> it very useful, but I'm a bit surprised that it doesn't offer things
>> like is_readable() and is_wr
On 2016-04-28, Grant Edwards wrote:
> On 2016-04-28, Adam Funk wrote:
>> On 2016-04-26, Random832 wrote:
>>
>>> On Tue, Apr 26, 2016, at 09:30, Adam Funk wrote:
>>>> I recently discovered pathlib in the Python 3 standard library, & find
>>>
27;sys'] or sys.__dict__ to
something that runs my code on PySys_SetArgv, but that doesn't work since
PySys_SetArgv doesn't invoke any hooks like __setitem__ on sys.__dict__. So
is there any way how to automatically run my code after sys.argv was set
but before executing the main script
Thank you very much, the hook gets invoked at the right place.
Adam Bartoš
--
https://mail.python.org/mailman/listinfo/python-list
I eventually notice something
wrong with the output data, ssh into the Pi, and rm the two files then
call 'start' on the daemon again.
Is there a recommended or good way to handle this situation
automatically?
Thanks,
Adam
--
https://mail.python.org/mailman/listinfo/python-list
dpoint that
accepts a few hundred bytes of JSON, validates it, & then appends a
line to a TSV file.
Thanks,
Adam
--
https://mail.python.org/mailman/listinfo/python-list
linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pynomo.nomographer import *
Traceback (most recent call last):
File "", line 1, in
File "/home/adam/.local/lib/python3.6/site-packages/pynomo/nomographer.
On 2018-11-08, Stefan Ram wrote:
> Adam Funk writes:
>>and get a line 100 mm long with a log scale on the top and a linear
>>scale on the bottom.
>
> From what I have heard,
>
> pyqt.sourceforge.net/Docs/PyQt4/qx11info.html#appDpiX
>
> will give you the
On 2018-11-18, Dan Sommers wrote:
> On 11/18/18 1:21 PM, MRAB wrote:> On 2018-11-18 17:50, Adam Funk wrote:
> >> Hi,
> >>
> >> I'm using bottledaemon to run a little REST service on a Pi that takes
> >> input from other machines on the LAN and stores
On 2018-11-22, dieter wrote:
> The "pynomo" version you have installed may have been developped for
> Python 2 and not run in "python3".
>
> In Python 2, you have implicit relative imports.
> As an example, it allows modules in the package "pynomo"
> to use "import nomo_wrapper" to import the subm
101 - 200 of 1390 matches
Mail list logo