On Sun, Apr 17, 2016 at 12:10 AM, Random832 wrote:
>
> On Sun, Apr 17, 2016, at 01:01, eryk sun wrote:
>> It doesn't support fonts that mix half-width and full-width glyphs.
>
> This is the most baffling bit to me. I mean, it _has_ to, for Chinese,
> Japanese, and
On Sun, Apr 17, 2016 at 2:27 AM, B N wrote:
> I found that when the “black” screen comes on, I am unable to read/see
> any characters even if I turn up the brightness of the screen.
Do you mean the console, i.e. the window used by the command prompt
(cmd.exe)? For a novice, you'll
On Sun, Apr 17, 2016 at 11:13 AM, Dennis Lee Bieber
wrote:
> On Sat, 16 Apr 2016 21:59:01 -0400, Random832
> declaimed the following:
>>
>>I heard Windows 10 is going to finally fix this, anyway.
>
> Probably by removing the old CLI window completely and making everyon
On Tue, Apr 19, 2016 at 12:05 PM, Oscar Benjamin
wrote:
> On 19 Apr 2016 17:01, wrote:
>>
>> i'm trying to use:
>> "py -m pip install scipy"
>> and after couple of lines a get an error saying:
>
> I thought that binary wheels for scipy would be available on pypi for each
> OS now. Try updating pi
On Wed, Apr 20, 2016 at 8:04 AM, Oscar Benjamin
wrote:
> On 20 April 2016 at 12:30, wrote:
>
>> from ._ufuncs import *
>> File "scipy\special\_ufuncs.pyx", line 1, in init scipy.special._ufuncs
>> (scipy\special\_ufuncs.c:26242)
>> ImportError: DLL load failed: The specified module could
On Wed, Apr 20, 2016 at 9:58 AM, Tim Golden wrote:
> If it's not, then try copying the lpr.exe to c:\windows\syswow64 and try
> again. (Or to some other place to which you have access).
WOW64 in Windows 7+ has a virtual "SysNative" directory that accesses
the native 64-bit system directory:
On Thu, Apr 21, 2016 at 4:06 AM, Allan Leo wrote:
> When running the setup for your 3.5.1(32-bit version), the setup
> experiences error 0*80070570 and tells me to check the log file. What could
> be the problem and whats the solution.
ERROR_FILE_CORRUPT (0x0570) seems to occur frequently with t
On Thu, Apr 21, 2016 at 11:15 PM, Allan Leo wrote:
> On Apr 21, 2016 9:51 PM, "eryk sun" wrote:
>> On Thu, Apr 21, 2016 at 4:06 AM, Allan Leo wrote:
>> > When running the setup for your 3.5.1(32-bit version), the setup
>> > experiences error 0*80070570 and
On Fri, Apr 22, 2016 at 10:07 AM, loial wrote:
> I finally found the solution here :
>
> http://www.tomshardware.co.uk/forum/240019-44-error-windows
>
> Copied lpr.exe, lprhelp.dll, and lprmonui.dll from the System32 folder to the
> sysWOW64 folder
Using the virtual "SysNative" directory should
On Fri, Apr 22, 2016 at 9:26 AM, Random832 wrote:
> The problem with your question is that it's not a standard command, so none
> of the rest of us have it, which means we're half-blind trying to find your
> problem.
lpr is a Windows feature that you may be able to enable. It's under
"Print and
On Fri, Apr 22, 2016 at 12:39 PM, Albert-Jan Roskam
wrote:
> FYI, Just today I found out that shutil.rmtree raises a WindowsError if the
> dir is read-
> only (or its contents). Using 'ignore_errors', won't help. Sure, no error is
> raised, but the
> dir is not deleted either! A 'force' option w
On Sat, Apr 23, 2016 at 4:34 AM, Albert-Jan Roskam
wrote:
>
>> From: eryk...@gmail.com
>> Date: Fri, 22 Apr 2016 13:28:01 -0500
>> On Fri, Apr 22, 2016 at 12:39 PM, Albert-Jan Roskam
>> wrote:
>> > FYI, Just today I found out that shutil.rmtree raises a WindowsError if
>> > the dir is read-only (
On Sun, Apr 24, 2016 at 5:42 AM, Albert-Jan Roskam
wrote:
> Aww, I kinda forgot about that already, but I came across this last
> year [1]. Apparently, shutil.rmtree(very_long_path) failed under Win 7,
> even with the "silly prefix". I believe very_long_path was a
> Pyth
On Fri, Apr 29, 2016 at 6:51 AM, Jussi Piitulainen
wrote:
> Adam Funk writes:
>> On 2016-04-28, Grant Edwards wrote:
>
>>> Or just do os.access("directory/where/you/want/to/open/a/file",os.W_OK)
>>
>> That's what I'm doing now, but I prefer to give the user the error
>> message early on.
>
> Then
On Fri, Apr 29, 2016 at 8:48 PM, Ben Finney wrote:
> Steven D'Aprano writes:
>> On Sat, 30 Apr 2016 09:52 am, Ben Finney wrote:
>>
>> > (There has never been a Python 27. I assume Python 2.7 is what you
>> > meant.)
>>
>> I believe that Python X.Y shows up as "PythonXY" under Windows.
>
> Then th
On Wed, May 4, 2016 at 4:04 PM, Akira Li <4kir4...@gmail.com> wrote:
>
> Pass stdin=PIPE, stdout=PIPE and use p.stdin, p.stdout file objects to
> write input, read output from the child process.
>
> Beware, there could be buffering issues or the child process may change
> its behavior some other wa
On Thu, May 5, 2016 at 10:42 AM, Joseph L. Casale
wrote:
> I have CDLL function I use to get a pointer, several other functions happily
> accept this
> pointer which is really a long when passed to ctypes.c_void_p. However, only
> one with
> same type def in the prototype overflows. Docs suggest
On Thu, May 5, 2016 at 3:47 PM, wrote:
>
> I try to make the GetIconInfo function work, but I can't figure out
> what I'm doing wrong.
>
> From the MSDN documentation the function is
>
> https://msdn.microsoft.com/en-us/library/windows/desktop/ms648070%28v=vs.85%29.aspx
>
> # BOOL WINAPI GetI
On Fri, May 6, 2016 at 9:49 AM, wrote:
>
> In your example you used a base class
> and ICONINFO well as ICONINFOEX inherit it.
> As the members of ICONINFO are part of ICONINFOEX
> couldn't we do something like
>
> class ICONINFO_BASE(ctypes.Structure):
> def __del__(self, ):
> if sel
On Fri, May 6, 2016 at 8:36 AM, wrote:
>
>> Please avoid windll. It caches the loaded library, which in turn
>> caches function pointers. So all packages that use windll.user32 are
>> potentially stepping on each others' toes with mutually incompatible
>> function prototypes. It also doesn't allo
On Wed, May 11, 2016 at 10:39 PM, Paul Smith wrote:
> Hi all. I have a locally-built version of Python (2.7.11) that I'm
> copying around to different systems, running all different versions of
> GNU/Linux.
...
> What I'd like to do is have a way of setting the library path that
> Python uses whe
On Mon, Jun 6, 2016 at 9:50 AM, Mark Summerfield wrote:
>
> Lib = ctypes.cdll.LoadLibrary("libthing")
Use ctypes.CDLL('libthing'). It's simpler, plus it's the only way to
pass the handle, mode, and use_errno parameters if you need them.
> LibOpen.restype = ctypes.c_int
This line isn't required
On Sat, Jun 18, 2016 at 7:09 AM, Olive
wrote:
> I am here on Linux.
> ...
> Note that if it is possible I would prefer that the launched command see its
> standard
> output connected to a terminal
Try pexpect.
https://pypi.python.org/pypi/pexpect
--
https://mail.python.org/mailman/listinfo/pyt
On Fri, Jun 24, 2016 at 1:00 AM, Steven D'Aprano wrote:
> To be precise, for the builtins module specifically, you can *read* the
> value of the variable using just x, but you cannot *assign* to it unless
> you use the fully-qualified name builtins.x.
FWIW, you can execute code in any dict:
On Sat, Jun 25, 2016 at 11:00 AM, David Shi via Python-list
wrote:
> I use IPython Notebook to do Python programming.
> I used "Open with" and set it with Google Chrome. Then, my IPython notebook
> does not load properly.
> How can I reset IPython notebook file association, so that I can use it
On Tue, Jun 28, 2016 at 10:51 AM, Steven Truppe wrote:
>
> can someone tell me the difference between python3.5m.so and python3.5.so ??
The "m" suffix means that Python is configured "--with-pymalloc", i.e.
using specialized mallocs, including the small-object allocator. This
is the default confi
On Sun, Jul 3, 2016 at 4:02 PM, Steven D'Aprano wrote:
> Is there any documentation for exactly what keys are added to classes when?
It should be documented that the namespace that's passed to the
metaclass contains __module__ and __qualname__, and optionally __doc__
if the class ha
On Sun, Jul 3, 2016 at 6:58 AM, John Ladasky wrote:
> The nabla symbol (∇) is used in the naming of gradients. Python isn't having
> it.
> The interpreter throws a "SyntaxError: invalid character in identifier" when
> it
> encounters the ∇.
Del is a mathematical
On Sun, Jul 3, 2016 at 3:32 PM, Steven D'Aprano wrote:
>
> But if you prepare the method ahead of time, it works:
>
> from types import MethodType
> instance.method = MethodType(method, instance)
That's a fine way to bind a method, but in the context of this
"descri
On Tue, Jul 5, 2016 at 5:40 AM, Steven D'Aprano
wrote:
> On Tuesday 05 July 2016 14:41, Ian Kelly wrote:
>
>> Class definitions don't create closures like functions do. When Python
>> executes a class definition, the metaclass creates a dict, and then
>> the interpreter execs the class body using
On Tue, Jul 5, 2016 at 2:46 PM, Steven D'Aprano wrote:
> I've come across two curious behaviours of a function using custom globals.
> In both cases, I have a function where __globals__ is set to a ChainMap.
ChainMap implements the MutableMapping abstract base class. But
CPython needs globals to
On Tue, Jul 5, 2016 at 3:27 PM, eryk sun wrote:
> ChainMap implements the MutableMapping abstract base class. But
> CPython needs globals to be a dict. In the current implementation,
> LOAD_GLOBAL calls _PyDict_LoadGlobal, and STORE_GLOBAL calls
> PyDict_SetItem. They don't
On Tue, Jul 5, 2016 at 3:37 PM, eryk sun wrote:
> In CPython 3.6, LOAD_GLOBAL does fall back on PyObject_GetItem
I did some digging to find when this changed in 3.3:
https://hg.python.org/cpython/diff/e3ab8aa0216c/Python/ceval.c
Notice in the last comment on issue 14385 that Martijn wanted
On Tue, Jul 5, 2016 at 3:50 PM, Steven D'Aprano wrote:
> It works with exec:
>
> py> from collections import ChainMap
> py> class ChainDict(ChainMap, dict):
> ... pass
> ...
> py> m = ChainDict()
> py> exec("x = 1", m, m)
> py> m['x']
> 1
>
> (Tested in both 3.3 and 3.6.)
No, actually it does
On Tue, Jul 5, 2016 at 4:12 PM, Random832 wrote:
> So any special logic in your own __setitem__, which may have
> included e.g. copying it to an alternate place, changing the key or
> value, or simply refusing to add the item to the dictionary at all, will
> be ignored, and your object may end up
On Fri, Jul 8, 2016 at 11:17 PM, John Nagle wrote:
> If "readline" is imported, "input" gets "readline" capabilities.
> It also loses the ability to import control characters. It doesn't
> matter where "readline" is imported; an import in some library
> module can trigger this. You can try this
On Sat, Jul 9, 2016 at 12:20 AM, Terry Reedy wrote:
> The escape key erasing input back to the beginning of the line is Command
> Prompt or cmd.exe behavior.
cmd.exe is just a shell that uses the console (if the standard handles
are console handles). The console window is hosted by conhost.exe. I
On Sat, Jul 9, 2016 at 4:08 AM, wrote:
>
> I noticed __qualname__ is exposed by locals() while defining a class.
This is an undocumented implementation detail used to pass this
information to the metaclass. You'll also see __module__ and, if the
class has a docstring, __doc__. For CPython, this
On Sun, Jul 17, 2016 at 1:59 AM, Lawrence D’Oliveiro
wrote:
> The various subprocess functions
> <https://docs.python.org/3/library/subprocess.html> have
> arguments called “close_fds” and “pass_fds”, which specify which file
> descriptors are to be
> left open in the
On Tue, Jul 26, 2016 at 12:06 PM, wrote:
> I'm using ctypes to interface with a binary which returns a void pointer
> (ctypes c_void_p) to a nested 64-bit float array:
If this comes from a function result, are you certain that its restype
is ctypes.c_void_p? I commonly see typos here such as s
On Tue, Jul 26, 2016 at 6:31 PM, sth wrote:
>
> The restype is a ctypes Structure instance with a single __fields__ entry
> (coords), which
Watch the underscores with ctypes attributes. Your code spells it
correctly as "_fields_".
> is a Structure with two fields (len and data) which are the F
On Wed, Jul 27, 2016 at 1:58 PM, Malcolm Greene wrote:
> Can someone share their OS specific experience in working with tempfile
> generated temp files under these conditions?
>
> 1. Script killed by another process
> 2. Interpreter crashes
> 3. Server crashes (sudden loss of power)
> 4. Other app
On Thu, Jul 28, 2016 at 6:40 PM, Chris Angelico wrote:
> On Fri, Jul 29, 2016 at 1:47 AM, Enjoys Math wrote:
>> I've manually set breakpoints and traced this app crash back to this
>> function:
>>
>> def loadLSobjsOfType(self, objType, listJ):
>> if listJ != None:
>> for o
On Fri, Jul 29, 2016 at 8:43 AM, Antoon Pardon
wrote:
>
> The problem seems to come from my expectation that a file
> is its own iterator and in python3 that is no longer true
> for a NamedTemporaryFile.
For some reason it uses a generator function for __iter__ instead of
returning self, which wo
On Fri, Jul 29, 2016 at 7:34 PM, Terry Reedy wrote:
> On 7/29/2016 7:59 AM, eryk sun wrote:
>>
>> On Fri, Jul 29, 2016 at 8:43 AM, Antoon Pardon
>> wrote:
>>>
>>> The problem seems to come from my expectation that a file
>>> is its own iterator
On Sat, Jul 30, 2016 at 4:03 PM, Dennis Lee Bieber
wrote:
> And in a rather convoluted route, one can get to the underlying
> representation...
>
import struct
f = struct.pack(">f", 3.0)
i = struct.pack(">i", 3)
fi = struct.unpack(">i", f)
ii = struct.unpack(">i",
On Tue, Aug 2, 2016 at 1:45 AM, Lawrence D’Oliveiro
wrote:
> On Friday, July 29, 2016 at 6:25:51 AM UTC+12, Enjoys Math wrote:
>
>> exec('obj = ' + objType + '(self)', None, _locals)
>> obj = _locals['obj']
>
> Why? Why not just
>
> obj = objType(self)
I think
On Tue, Aug 2, 2016 at 1:41 AM, Lawrence D’Oliveiro
wrote:
>
> Don’t do that. Do this instead:
>
> libc = ctypes.cdll.LoadLibrary("libc.so.6")
I recommend using ctypes.CDLL instead. ctypes.cdll is pretty much
pointless on Unix systems (and a potential problem on Windows due to
cached function
On Tue, Aug 2, 2016 at 12:11 PM, Uri Even-Chen wrote:
>
> I want to install Python 3 on Windows, but I also need Python 2 for Google
> App Engine SDK. When I type a name of a Python file in command line, I want
> it to run with Python 3. However, I checked with "print 3/5" and it printed
> 0 - Pyt
On Wed, Aug 3, 2016 at 9:38 AM, Bill Somerville
wrote:
>
> Is this a good place to ask questions about the above?
Discussing ctypes is fine here. There's also a ctypes-users list.
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, Aug 3, 2016 at 3:35 PM, Malcolm Greene wrote:
> But under Windows, the stdout is workstation specific and *never* UTF-8. So
> the
> occasional non-ASCII string trips up our diagnostic output when tested under
> Windows.
You could use win_unicode_console enabled in sitecustomize or usercu
On Wed, Aug 3, 2016 at 1:21 PM, Bill Somerville
wrote:
> I can extend the SWIG shadow class to do the creation of the prototype and
> thunk, the
> required cast above and any extra attributes or methods like _as_parameter_
> and
> from_param() but I can't see any way of having the Python callbac
On Fri, Aug 5, 2016 at 12:25 AM, iMath wrote:
> On Friday, August 5, 2016 at 7:50:28 AM UTC+8, jj0ge...@gmail.com wrote:
>> According to Python.org Mark Hammond has an Add-on (pywin32) that supports
>> Win32 and COM.
>>
>> Does anyone know if the Add-on covers all Win32 API functions, and if not
On Fri, Aug 5, 2016 at 11:58 AM, Matt Wheeler wrote:
> On Fri, 5 Aug 2016, 02:23 Lawrence D’Oliveiro,
> wrote:
>
>> On Friday, August 5, 2016 at 12:06:23 PM UTC+12, Igor Korot wrote:
>> >
>> > On Thu, Aug 4, 2016 at 4:57 PM, Lawrence D’Oliveiro wrote:
>> >> On Friday, August 5, 2016 at 11:50:28 A
On Sat, Aug 6, 2016 at 3:13 AM, Chris Angelico wrote:
unicodedata.lookup("NULL")
> '\x00'
"\N{NULL}"
> '\x00'
unicodedata.name(_)
> Traceback (most recent call last):
> File "", line 1, in
> ValueError: no such name
>
> Tested on 3.4, 3.5, and 3.6. Extremely odd.
U+ has a le
On Sat, Aug 6, 2016 at 2:10 AM, Chris Angelico wrote:
> That answers the question about True and False, but not about None,
> which started the question. Why are instances capitalized here? Is it
> simply a matter of grandfathering in, with no specific decision?
Using CamelCase for the single-ins
On Sat, Aug 6, 2016 at 5:16 PM, Dave via Python-list
wrote:
> I am trying to associate the .py file extension with idle...where IS
> idle? Can you
> make it a bit more difficult to load/use your software please.
You can run IDLE from the command-line as follows:
3.x:python[3][w] -m
On Sun, Aug 7, 2016 at 8:40 AM, zutix via Python-list
wrote:
> I installed the version for windows 64. After a succesfull installation, the
> same system error occurs on the lounch of the program:
> api-ms-win-crt-runtime-l1-1-0.dll is missing.
>
> Please would you let me know
On 11/12/18, Christman, Roger Graydon wrote:
>
> I looked in IDLE's own configuration menu, and didn't see anything there --
> and I fear that I might have to fight some Windows settings somewhere else
> instead. I think this is Windows 10.
Modify the "Start in" field of the IDLE shortcut. You
On 11/12/18, Christman, Roger Graydon wrote:
> eryk sun responded:
>
> On 11/12/18, Christman, Roger Graydon wrote:
>>
>> I looked in IDLE's own configuration menu, and didn't see anything there
>> --
>> and I f
On 11/12/18, Thomas Jollans wrote:
> On 13/11/2018 00:45, Terry Reedy wrote:
>>
>> On Windows, a simple alternate is a .bat file. I belive the folloiwing
>> should work.
>>
>> cd c:/desired/startup/directory
>> py -x.y -m idlelib
>>
>> The default for x.y is latest 3.x or latest 2.x if no 3.x.
>
On 11/15/18, dieter wrote:
> Prospero Akai writes:
>> I forgot to check the 'Add To Path' box while installing python from
>> www.python.org. I uninstalled then try to install again but I have been
>> getting this error message since then:
>>
>> one or more issues caused the setup to fail. please
On 11/14/18, Irv Kalb wrote:
>
> When working with data files, I tell students to put their project (their
> main program and any other related files) in a folder. Then, in their calls
> to "open", I tell them to just give the name of the data file e.g.,
> 'MyData.txt', or a path relative from th
On 12/17/18, Rob Gaddi wrote:
>
> Python's objects all have a lifespan dictated by the continued existence
> of references to them and thus can transcend the lifetime of the current
> function in ways not known at translation time. So am I right in
> thinking that all Python objects are out on th
On 12/17/18, Chris Angelico wrote:
>
> Hang on, you're conflating two different things here.
You're probably right that I misinterpreted what the OP meant by
references winding up "on the stack". It's more common for a Python
developer to think of the call stack instead of the implementation
deta
On 12/25/18, אורי wrote:
>
> ALL_GENDERS = [GENDERS_DICT[gender] for gender in GENDER_VALID_VALUES]
>
> (it throws an exception: `NameError: name 'GENDERS_DICT' is not defined`)
Python 3 comprehensions have their own scope. This prevents the side
effect of defining the comprehension's loop variab
On 12/26/18, jf...@ms4.hinet.net wrote:
> I saw the code below at stackoverflow. I have a little idea about the scope
> of a class, and list comprehension and generator expressions, but still
> can't figure out why Z4 works and Z5 not. Can someone explain it? (in a
> not-too-complicated way:-)
>
>
On 12/27/18, jf...@ms4.hinet.net wrote:
>
> I still don't get it. When I change it to using list comprehension, the
> problem is still there. (it now has no late-binding variable, right? :-)
>
class Too:
> ... XS = [15, 15, 15, 15]
> ... Z4 = [val for val in XS]
> ... Z5 = [XS[0]
On 12/27/18, Chris Angelico wrote:
>
> Class scope is special, and a generator expression within that class
> scope is special too. There have been proposals to make these kinds of
> things less special, but the most important thing to remember is that
> when you create a generator expression, it
On 12/28/18, Gisle Vanem wrote:
> I have trouble understanding why a 'sys.exit(2)' is
> *not* passed back to the CMD shell in this little example:
>
> - c:\py_cmd_test.cmd --
> @%WinDir%\py.exe -2 -x %~dp0py_cmd_test.cmd & exit /b %ERRORLEVEL%
%ERRORLEVEL% gets expanded in the initial par
On 1/7/19, Chris Angelico wrote:
> On Tue, Jan 8, 2019 at 5:52 AM Malcolm Greene wrote:
>>
>> Is there a best practice way to convert Windows style paths (with
>> backslash path separators) to Linux style paths with forward slash path
>> separators? I've looked at the os and pathlib libraries wit
On 1/14/19, Schachner, Joseph wrote:
> I just tested the fix I proposed, in Python 2.7.13
>
> Code:
> from win32api import GetSystemMetrics
>
> def main():
> print "Width =", GetSystemMetrics(0)
> print "Height =", GetSystemMetrics(1)
That gets the monitor size, i.e:
SM_CXSCREEN (0)
On 1/24/19, Dennis Lee Bieber wrote:
> On Thu, 24 Jan 2019 14:42:59 -0500, Dave declaimed
> the following:
>>
>>3. File location? I'm using Ubuntu and I believe that the correct
>>location would be home/.config/ . What about Mac and Windows?
>>
> Windows?
>
> %UserPr
On 1/27/19, Dennis Lee Bieber wrote:
> On Sat, 26 Jan 2019 15:06:10 +, Sarah P declaimed
> the following:
>
> C:\Users\Wulfraed>dir %userprofile%\appdata
Avoid hard coding default paths. The roaming and local application
data directories are relocatable. It's even less typing to use the
prop
On 1/28/19, David Raymond wrote:
>
> In the docs there is
> "0 is a legal argument for any position in the time tuple; if it is normally
> illegal the value is forced to a correct one."
The POSIX specification for strftime only states that "[i]f any of the
specified values are outside the normal
On 2/19/19, Chris Angelico wrote:
>
> I guess you have to define the question better for Windows, since
> there's no single definition of "executable". If you mean "typing just
> the base name of this file at the shell will result in it being run",
> then PATHEXT is the correct answer. If you mean
On 2/19/19, Chris Angelico wrote:
>
> The value "win32" means Windows (or, more technically, "Windows NT
> family", as opposed to Win95/Win98 - but since Win XP, that's the only
> type of Windows there is). If you actually care about whether it's a
> 32-bit or 64-bit OS, you can look at sys.maxsiz
On 2/20/19, Thomas Jollans wrote:
>
> I'm fairly sure "win32" was used on W9x as well. In any case it *was*
> correct at the time, as early versions of Python also ran on DOS and
> Windows 3.1. "windows" would not have been suitable.
DOS Python would be a separate platform. But if there was reall
On 2/26/19, Gregory Ewing wrote:
> Thomas Jollans wrote:
>> I imagine there's a justification for the difference in behaviour to do
>> with the fact that the body of a class is only ever executed once, while
>> the body of a function is executed multiple times.
>
> I suspect there isn't any deep r
On 3/5/19, Kevin Hu wrote:
>
> Python is a language with very weak typing, and it’ll happily shoehorn data
> into variables even when you don’t expect it to.
Python has strong typing, in that it doesn't implicitly coerce
unrelated types in expressions. However, it has no enforced static
typing of
On 3/8/19, Grant Edwards wrote:
>
> I just tested three of the terminals on my laptop, and none of them
> beep when they receive a BEL.
In Ubuntu, enable sound effects and select an alert sound, and then
enable "Terminal bell" in GNOME Terminal's preferences.
In Windows, the console calls PlaySo
On 3/9/19, Dennis Lee Bieber wrote:
>
> ... produces a sound on my system... But has to be run from a Windows
> console (command line -- either "DOS" or PowerShell).
Say "CMD" if that's what you mean. DOS was an OS (albeit a simple
one). The CMD shell is not an OS and was never a DOS program. (It
On 3/12/19, Paul Moore wrote:
>
> Do you care about case sensitivity (for example, is it important to you
> whether filenames "foo" and "FOO" map to the same file or not on
> Linux, given that they do on Windows)?
That's no longer a given in Windows, since NTFS in Windows 10 supports
case-sensiti
On 3/18/19, Malcolm Greene wrote:
>
> I'm running some Python 3.6 scripts at the Windows 10/Windows Server 2016
> console. In my every day workflow, I seem to be accidentally sending Ctrl+S
> keystrokes to some of console sessions, pausing my running scripts until I
> send another corresponding Ct
On 3/18/19, eryk sun wrote:
>
> Ctrl+S functions as pause in line-edit mode if extended text selection
> is enabled in the console defaults or properties dialog
Correction, it pauses if extended text selection is *disabled*.
--
https://mail.python.org/mailman/listinfo/python-list
On 3/18/19, Dennis Lee Bieber wrote:
> On Mon, 18 Mar 2019 14:38:40 -0400, "Malcolm Greene"
> declaimed the following:
>
>>
>>Wondering if there's a way to have my Python scripts ignore these Ctrl+S
>> signals or if this behavior is outside of my Python script's control. If
>> there's a way to di
On 3/19/19, Grant Edwards wrote:
>
> This has nothing to do with Python does it?
>
> Isn't Python is just writing to stdout and those write calls are
> blocking due because the terminal emulator has stopped reading
It turns out the original poster had quick-edit mode enabled and the
pause was due
On 4/1/19, grossmu...@gmail.com wrote:
>
> os.chdir('C:\\Users\\Ayla\\Documents\\Uni\\Master_Umweltingenieurwesen\\
> Study_Project\\kerschbaum_input')
> os.chdir('C:/Users/Ayla/Documents/Uni/Master_Umweltingenieurwesen/
> Study_Project/kerschbaum_input')
These string literals should work if the
On 4/21/19, Arup Rakshit wrote:
>
> I am reading https://docs.python.org/3/reference/index.html now, and it
> seems like saying what Python can do, but not going deep to explain it
> to a new comers most of the time.
The guide to Python descriptors may help.
https://docs.python.org/3/howto/descr
On 5/22/19, Sirso Bhatto wrote:
>
>I am Shirsendu. I encountered a problem while installing python 3.7
> in my windows 7 ultimate p.c(32 bit) . It is showing an unspecified error
> of 0x80072ee7 when i am trying to initialize it in my pc. Please help me.
A status code with only the high b
On 5/25/19, Paul Moore wrote:
>
> On Windows, the msvcrt module exposes getch:
> https://docs.python.org/3.7/library/msvcrt.html#msvcrt.getch
I suggest using msvcrt.getwch instead of msvcrt.getch. Both functions
are limited to the basic multilingual plane (BMP, i.e. U+ --
U+), but getch i
On 5/29/19, David Raymond wrote:
>
> Keyboard interrupts are only received by the main thread, which in this case
> completes real quick.
>
> So what happens for me is that the main thread runs to completion instantly
> and leaves nothing alive to receive the keyboard interrupt, which means the
>
On 5/29/19, Dennis Lee Bieber wrote:
>
> In the OP's example code, with just one thread started, the easiest
> solution is to use
>
> y.start()
> y.join()
>
> to block the main thread. That will, at least, let the try/except catch the
> interrupt. It does not, however, kill the s
On 5/29/19, Cameron Simpson wrote:
>
> So start with this:
>
> p = subprocess.Popen('ssh-agent -s', stdin = subprocess.PIPE, stdout =
> subprocess.PIPE, stderr = subprocess.PIPE, shell = True, universal_newlines
> = True)
I'm wary of relying on the default encoding here. ssh-agent probably
writ
On 6/2/19, Windson Yang wrote:
>
> f = open('myfile, 'a+b')
This is missing the closing quote around 'myfile'.
> I added a printf statement at the beginning of _io_open_impl
Repeatedly rebuilding the interpreter sounds like a frustrating
learning experience, IMO. Use a debugger such as gdb
On 7/5/19, jf...@ms4.hinet.net wrote:
> Terry Reedy於 2019年7月5日星期五 UTC+8上午12時13分25秒寫道:
>
>> Upgrade to 3.7 or 3.8 to get hundreds of bug fixes, let alone new
>> features. Both subprocess and multiprocessing have gotten fixes.
>
> I can't because my OS is Vista and v3.4 is the last it can run:-( Al
On 7/6/19, jf...@ms4.hinet.net wrote:
> eryk sun於 2019年7月6日星期六 UTC+8下午2時13分23秒寫道:
>
>> Major versions of Python support Windows versions that have extended
>> support from Microsoft at the time of the first release. For Vista,
>> extended support ended on 2017-04-11. Py
On 7/6/19, jf...@ms4.hinet.net wrote:
>
> According to the info you give, I have done the following steps:
> 1. Upgrade to SP2 first.
> 2. Install the CRT update.
> But the result is still the same, nothing happens after double click the
> file python-3.6.1.exe.
Did you reboot after installing th
On 7/6/19, jf...@ms4.hinet.net wrote:
>
> In TEMP, there is only one file "chrome_installer.log" dated at the time of
> doing the upgrade (strange?, why chrome?). No errors in it.
So the installer doesn't even execute. Do you maybe have an
anti-malware program that's blocking its execution? Defi
On 7/6/19, jf...@ms4.hinet.net wrote:
>
> I turn off the anti-virus and tried v3.6.8, get the same result. Usually the
> anti-virus program will warn me if something was blocked.
In case the executable is corrupt, clear your browser cache and
download the 32-bit version again:
https://www.python
301 - 400 of 658 matches
Mail list logo