inux
Type "help", "copyright", "credits" or "license" for more information.
>>> import multiprocessing as mp
>>> mp.cpu_count()
4
>>> exit()
md_admin@microdiversity:~$
-=-=-
--
Wulfraed Dennis Lee Bieb
sted in the desired operation -- and if that succeeds you've
basically performed the shorter tree.
>
>>
--
Wulfraed Dennis Lee Bieber AF6VN
wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/
--
https://mail.python.org/mailman/listinfo/python-list
cannot be made part of python
>such as a vector/array that holds exactly one kind of data structure and not
>force use of things like a list when that is more than is needed?
>
https://docs.python.org/3/library/array.html
seems to fit the criteria...
--
Wulfraed
second feed, but not discovered until after
the third feed.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/
--
https://mail.python.org/mailman/listinfo/python-list
were %ref() and %descr() -- descriptor being a small
structure with the address reference along with, say, upper/lower bounds;
often used for strings).
--
Wulfraed Dennis Lee Bieber AF6VN
wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.f
>ASL configuration, which is loaded according to syslog -config:
>> /var/log/appName/appName.log mode=0640 compress format=std rotate=seq
>file_max=50M all_max=500M
>? [CA= Sender appName] file /var/log/appName/appName.log
>
>My end goal is really to get just a working python loggi
On Sun, 27 Feb 2022 14:17:39 -0500, Dennis Lee Bieber
declaimed the following:
APOLOGIES -- I thought I KILLED the draft message, not sent it...
--
Wulfraed Dennis Lee Bieber AF6VN
wlfr...@ix.netcom.comhttp
Documents\_Hg-Repositories\REXX>
--
Wulfraed Dennis Lee Bieber AF6VN
wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/
--
https://mail.python.org/mailman/listinfo/python-list
rectory listing.
{Though the BASIC interpreter gave it away -- doing a directory from within
the interpreter resulted in a hex representation of names with non-graphic
characters... In EBCDIC of course}
--
Wulfraed Dennis Lee Bieber AF6VN
**-
**.
**.
**.
**.
**.
***.
+
(Not very visible as each * is 10 units, and using . for 2.5, - for 5, +
for 7.5)
--
Wulfraed Dennis Lee Bieber AF6VN
wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/
--
https://mail.python.org/mailman/listinfo/python-list
(* isn't quite as clumsy (RH
ring finger to top-row followed by RH middle finger to top-row
).
More fun is had when doing APL without a dedicated APL keyboard
(Though Xerox Sigma APL also had plain text alternatives: $RHO for example)
--
Wulfraed
es to the FORTRAN
run-time library to get advanced math functions (I believe later versions
incorporated the FORTRAN math natively).
--
Wulfraed Dennis Lee Bieber AF6VN
wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/
--
https://mail.python.org/mailman/listinfo/python-list
l, and PDP-11 assembly were run on a pair of LSI-11 systems.
Assembly used for the operating system principles course.
I didn't encounter "real" C until getting a TRS-80 (first as integer
LC, then Pro-MC), along with Supersoft LISP (on cassette tape!). (I had
books for C and
;1mc72hll06itd6jnbgdherqb3thf1fk...@4ax.com>
<20220306163951.2ozmrhfbtsktb...@hjp.at>
it will still appear under the parent message; it will only thread
differently if one's client merely sorts on subject and date/time.
--
Wulfraed Dennis Lee B
original.
"""
My hypothesis is that rendering the "story" results in changes to the
contained objects (possibly they are even "consumed" as they are rendered
-- so you first attempt ends up passing an empty "story" for the second
PDF).
self.build(tempStory, **buildKwds)
#self.notify('debug',None)
"""
--
Wulfraed Dennis Lee Bieber AF6VN
wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/
--
https://mail.python.org/mailman/listinfo/python-list
at created the
environment variable -- since deleting the variable might affect how that
application operates.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/
--
https://mail.python.org/mailman/listinfo/python-list
y" defaulted to running.
Most versions of Python also install a Tkinter script called IDLE which
provides a rudimentary IDE capability.
>
>Kind Regards,
>Reuel R. Lewis
--
Wulfraed Dennis Lee Bieber AF6VN
wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/
--
https://mail.python.org/mailman/listinfo/python-list
, math.trunc -3, math.floor -4, math.ceil -3
>>>
int() and .trunc() move toward 0, .floor() moves to less positive,
.ceil() moves to more positive.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/
--
https://mail.python.org/mailman/listinfo/python-list
time
delays, and plotting the timing of the packets intended to pass through and
verifying that "classified" contents were blocked or sanitized).
--
Wulfraed Dennis Lee Bieber AF6VN
wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freed
;>
>>>> ?
Is there a question in there somewhere?
Crystal ball is hazy...
However... Note that once you encode the Unicode literal, you have a
BYTE string. There are 12 bytes in that binary -- it is NOT considered
Unicode at that point (only when you decode it with th
regretted it.
>
Ah yes... Unfortunately, when gmane made the mirror read-only, I had to
revert to comp.lang.python... and all the junk that gets in via that and
Google Groups...
--
Wulfraed Dennis Lee Bieber AF6VN
called "Outlook for the
Web").
That would explain why there is no documentation of an "API"... I get
the impression that any so-called API programs have had to reverse engineer
(maybe using things like WireShark) the HTTP communication.
--
Wulfraed
;
A second possibility is that your environment is not configured to
recognize .PY files as executables.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/
--
https://mail.python.org/mailman/listinfo/python-list
have been dropped (at least, the code shown appears to be
something like SQLAlchemy), but the OP really should spend a few weeks
studying database normalization and use of foreign keys -- concepts which,
properly applied, means there is no need for these confusing hand-tracked
indices.
--
;for l in books:
Inner-loop control variable is "l" -- and does not seem to be used for
anything following...
>
> t=(students[i].user,students[i].user_id,books[i].name,books[i].isbn,issuedBooks[0].issued_date,issuedBooks[0].expiry_date,fine)
>
n junk.py
Let me out of here!
C:\Users\Wulfraed>rem direct invocation of script file, .py linked to
Python by OS
C:\Users\Wulfraed>junk.py
Let me out of here!
C:\Users\Wulfraed>rem direct invocation -- with .py defined as an
"executable" extension on my system
C:\Users\Wulfraed&g
ge(ls.count(maximum)):
ls.remove(maximum)
where _ is a "junk/temp" value that we don't care about -- we only want to
loop once for EACH maximum value
Or...
while maximum in ls:
del ls[ls.index(maximum)]
--
Wulfraed Dennis Lee Bieber AF6VN
wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/
--
https://mail.python.org/mailman/listinfo/python-list
ost noticeable about UTC is the incorporation
of leap-seconds.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/
--
https://mail.python.org/mailman/listinfo/python-list
elif target > number:
>result="low"
>else:
>result="high"
>return result
Count your parentheses... You should have the same number of ) as you
have (
--
Wulfraed De
ou test for that return word?
To simplify things -- don't return words from your function... change
it to return +1 for high, -1 for low, and 0 for "win".
Then figure out how to modify the main loop to use those integers...
--
Wulfraed
a command line interpreter/shell.
Navigate (cd ...) to where you saved the file
Type "python whatever.py"
Copy and paste the results of the CLI/Shell window.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfr...@ix.netcom.comHTTP://wlfraed.home.netcom.com/
--
https://mail.python.org/mailman/listinfo/python-list
Example", and then you
attempt call that list as a function passing it some unrecognized keyword
"http" with a colon that Python normally uses indicate the start of a code
block; said block being "//www.example.com".
Try
print("[Example](http://www.ex
to fetch the contents at the
clickable's target)
--
Wulfraed Dennis Lee Bieber AF6VN
wlfr...@ix.netcom.comHTTP://wlfraed.home.netcom.com/
--
https://mail.python.org/mailman/listinfo/python-list
From: Dennis Lee Bieber
On Sat, 23 Jun 2018 15:44:14 + (UTC), Steven D'Aprano
declaimed the following:
>1.234.567,012345678
>
>which is understandable to anyone who is aware of the possibility that
>comma may mean decimal separator and period the thousands separator.
&
self.OrderBy = "tableAlias.ColumnOne, tableAlias.ColumnTwo, ..."
self.WhereClause = "(tableAlias.ColumnOne = ?) and (tableAlias.ColumnTwo = ?)
and ..."
thanks Dennis
--
https://mail.python.org/mailman/listinfo/python-list
]=ret; return ret)
(If you don't believe that will help, consider that a memo-ized
implementation of a recursive Fibonacci function runs about as quickly
as iterative approach).
--
Jim Dennis,
Starshine: Signed, Sealed, Delivered
--
http://mail.python.org/mailman/listinfo/python-list
es from
n's least significant 32-bits
"""
r = []
n &= 0xL
for i in range(4):
r.append(n & 0xFF)
n >>= 8
r.reverse()
return tuple(r)
--
Jim Dennis,
Starshine: Signed, Sealed, Delivered
--
http://mail.python.org/mailman/listinfo/python-list
t; too ...
I'd be a little leery of overloading the __doc__ strings in this
way. (They are overloaded enough when used for doctest strings ...
but those can serve a legitimate documentary purpose and other doctests
can be stored separately).
Perhaps it would make sense to standardize on a
nter up to the first [Enter] key. (Actually on my platform, Linux,
it's possible to embed newline and/or carriage return characters
--- the ASCII characters which are normally generated by the [Enter]
key on various computing platforms --- into a raw_input() value by
preceding each of them with a Ctrl-V key. Just off hand I don't
know if that works under Windows using a command prompt window.
Just pointing that out for other readers to make the observation that
Python's raw_input() might not be as "raw" as you might expect).
--
Jim Dennis,
Starshine: Signed, Sealed, Delivered
--
http://mail.python.org/mailman/listinfo/python-list
ON
This module is no longer required except for backward compatibility.
Objects of most types can now be created by calling the type object.
... which sounds like a bad idea (from the word "Deprecated").
--
Jim Dennis,
Starshine: Signed, Sealed, Delivered
--
http://mail.python.org/mailman/listinfo/python-list
it a chunk of log messages
> when it finishes a unit of work.
This sounds like a job for the Queue class/module to me.
Could you create a Queue such that all your worker threads
are producers to it and you have one dedicated thread as a
consumer that relays log entries from the Queue into your loggers?
--
Jim Dennis,
Starshine: Signed, Sealed, Delivered
--
http://mail.python.org/mailman/listinfo/python-list
ed[6:]) / 10 ** 6
... take a "slice" of the string, cpuSpeed, from character
seven (zero-based) to the end of the string (cpuSpeed[6:]) and
try to convert it into a floating point number (with the float()
function) and then divide that by the one million
--
Jim Dennis,
Starshine: Signed, Sealed, Delivered
--
http://mail.python.org/mailman/listinfo/python-list
er these circumstances, but
understanding how to do this in non-blocking mode is better than
using the same code pattern in some other case and then being
surprised, probably unpleasantly, when your process is blocked
by the call).
--
Jim Dennis,
Starshine: Signed, Sealed, Delivered
--
http://mail.python.org/mailman/listinfo/python-list
ht not work on some terminals or under
some terminal settings. However, it should work under most circumstances
on most terminals --- including some which wouldn't support the curses
module. You can improve it somewhat by keeping track of how many
characters you've printed to the cu
some.FIFO (Linux) or mkfifo /tmp/some.FIFO
(BSD) to create the named pipe, of course).
If none of that worked ... try running the program under stace,
truss, ktrace or whatever system call tracing facility your OS
provides ... or under gdb.
--
Jim Dennis,
Starshine: Signed, Sealed, Delivered
--
http://mail.python.org/mailman/listinfo/python-list
delete you 2.x installation.
> ---
> -Bill Hamilton
Yes, considering this to be more like a fork then an upgrade is the
wise approach. Many Linux distributions, for example, will probably
ship and concurrently install Python 2.x and Python 3.x for a several
years after Python 3 ships.
--
Jim Dennis,
Starshine: Signed, Sealed, Delivered
--
http://mail.python.org/mailman/listinfo/python-list
is wrong (or at least misleading -- since the only way I can see to
change tempfile.template is to edit the .py file!
So, I don't feel like an idiot. But I am curious ...
... why can't I change that value in that other namespace? Is it
a closure? (Or like a closure?) Where is this particular aspect
of the import/namespace semantics documented?
--
Jim Dennis,
Starshine: Signed, Sealed, Delivered
--
http://mail.python.org/mailman/listinfo/python-list
Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
> On Wed, 09 May 2007 06:50:38 -, "James T. Dennis"
> <[EMAIL PROTECTED]> declaimed the following in comp.lang.python:
>> In fact I realized, after reading through tempfile.py in /usr/lib/...
>> that th
Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> In <[EMAIL PROTECTED]>, James T. Dennis wrote:
>> Tonight I discovered something odd in the __doc__ for tempfile
>> as shipped with Python 2.4.4 and 2.5: it says:
>>
>> This
Marc Christiansen <[EMAIL PROTECTED]> wrote:
> James T. Dennis <[EMAIL PROTECTED]> scribis:
>> In fact I realized, after reading through tempfile.py in /usr/lib/...
>> that the following also doesn't "work" like I'd expect:
>># foo.py
t of the "master" process might be
possible (define a portion of the shared memory pool that holds the
list of processes who become the new master ... first living one on
that list assume control). But that raises new issues (can't depend
on SIGCHLD in such a scheme checking for living processes would
have to be done via kill 0 calls for example).
It's easy to see how complicated all this could become. The question
is, how simple could we make it and still have something useful?
--
Jim Dennis,
Starshine: Signed, Sealed, Delivered
--
http://mail.python.org/mailman/listinfo/python-list
you're going to repeast the search on many strings:
num_extractor = re.compile(r'\(([0-9.]+)\)')
for line in myfile:
for num in num_extractor(line):
pass
# do whatever with all these numbers
--
Jim Dennis,
Starshine: Signed, Sealed, Delivered
--
http://mail.python.org/mailman/listinfo/python-list
o
available at the PySerial page ... and PySerial seems to be far
more recently maintained (with 2.2 "slots' support, for example).
In addition PySerial seems to be linked to a PyParallel package
that's "under development" (presumably by the same author).
(I'm guessing that this latter development can't be done in pure
Python, though).
--
Jim Dennis,
Starshine: Signed, Sealed, Delivered
--
http://mail.python.org/mailman/listinfo/python-list
on the
process(es) in which you are interested ... and to eliminate the
header line and irrelevant columns of output.
--
Jim Dennis,
Starshine: Signed, Sealed, Delivered
--
http://mail.python.org/mailman/listinfo/python-list
yFile(dir="/u01/"
i = 0
while 1:
try:
os.link(tf.name, os.path.join(tdir, filename)
except OSError:
i += 1
filename = "%s.-%s" % (filename, i)
else:
break
...???
--
Jim Dennis,
Starshine: Signed, Sealed, Delivered
--
http://mail.python.org/mailman/listinfo/python-list
textdomain() functions." ... and even "Hmmm ... seems that we
don't need to import locale and call local.setlocale() despite what
some examples in Google seem to suggest"(*)
* http://www.pixelbeat.org/programming/i18n.html
(So, when to you need that and when is gettext.install() really
useful?)
(I gather that the setlocale() stuff is not for simple string
translations but for things like numeric string formatting
with "%d" % ... for example).
--
Jim Dennis,
Starshine: Signed, Sealed, Delivered
--
http://mail.python.org/mailman/listinfo/python-list
James T. Dennis <[EMAIL PROTECTED]> wrote:
... just to follow-up my own posting --- as gauche as that is:
> You'd think that using things like gettext would be easy. Superficially
> it seems well documented in the Library Reference(*). However, it can
> be surprisingly
nerate input fields for each of the columns and
even fields for required foreign keys (or links to the CRUD for those
tables?). Ideally it would also automatically hide autogenerated
(index/key) fields, and map the table column IDs to form names (with
gettext support for l10n of those).
I think that
tricks that would let me do things like:
* os.fork() --- but have that spawned in it's own xterm/shell
so I can no interact with each of the children separately
* Use the curses library --- with the interpreter reading from
one shell/xterm and the curses disp
If, like me you prefer vi-mode readline editing then you
add another incantation:
rlcompleter.readline.parse_and_bind("set editing-mode vi")
... or you can simply put the following in you ~/.inputrc:
$if python
set editing-mode vi
$endif
... and, in that case, you can bind other keystrokes into macro
strings like: C-o:"import sys,os" or whatever).
--
Jim Dennis,
Starshine: Signed, Sealed, Delivered
--
http://mail.python.org/mailman/listinfo/python-list
t; (by contrast to "assignment") then you also understand the
argument passing model in the same terms.
Also, wouldn't it be fair to say that the class and def statements
also bind names to objects (callable and class objects respectively).
--
Jim Dennis,
Starshine: Signed, Sealed, Delivered
--
http://mail.python.org/mailman/listinfo/python-list
prerelease) (Debian 4.1.1-16.1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> foo = "foo"
>>> bar = "".join(list(foo))
>>> id(foo); id(bar); foo is bar
-1211235616
-1211235296
False
>>>
--
Jim Dennis,
Starshine: Signed, Sealed, Delivered
--
http://mail.python.org/mailman/listinfo/python-list
I know that python is an Object Oriënted language but I was wondering if it
gets used as a non-OOP also (by a good amount of people).
--
http://mail.python.org/mailman/listinfo/python-list
Hi there! I was searching for a way to clear the 'DOS screen'/command screen
etc. and found that os.system('cls') works for this. I was just wondering
where I can find al the commands which can be used for os.system(). I
searched with google but I didn't find an answer. In the official python
tutor
irst answer,
Devilly
2008/12/25 Python
>
> On 25 dec 2008, at 11:22, Dennis van Oosterhout wrote:
>
>> Hi there! I was searching for a way to clear the 'DOS screen'/command screen
>> etc. and found that os.system('cls') works for this. I was just wonderin
Btw...does that mean that system('cls') only works on Windows...or to
say it otherwise: the program isn't platform independant?
2008/12/25 Dennis van Oosterhout :
> Hello Arno,
>
> thanks for the explanation! I have one more question: on the python
> site it says it
On Wed, 7 Jun 2023 10:36:22 -0600, Mats Wichmann
declaimed the following:
>I'm assuming you checked - say, with Explorer - that pip.exe really is
>where you think it is?
>Anyway, if you ask a Windows shell (cmd) to locate it, and it doesn't,
>then your PATH is not set up correctly after all.
On Thu, 8 Jun 2023 17:22:22 -0400, Thomas Passin
declaimed the following:
>On 6/8/2023 3:14 PM, Dennis Lee Bieber via Python-list wrote:
> C:\Users\Owner>
>> -=-=-
>> Windows PowerShell
>> Copyright (C) Microsoft Corporation. All rights reserved.
>>
>>
On Sat, 10 Jun 2023 11:32:53 -0500, Eryk Sun declaimed
the following:
>On 6/10/23, Thomas Passin via Python-list wrote:
>>
>> We can find pip.exe using good old-fashioned dir (we don't need any
>> new-fangled Powershell):
>>
>> C:\Users\tom>dir AppData\Local\Programs\Python /Aa /S /W /B |find
>>
301 - 370 of 370 matches
Mail list logo