[issue46703] boolean operation issue (True == False == False)

2022-02-09 Thread jung mo sohn
New submission from jung mo sohn : In python 3.6.8, 3.7.3, 3.7.4, 3.7.5, 3.7.12, 3.8.8 versions, the output is False as shown below. Python 3.7.5 (tags/v3.7.5:5c02a39a0b, Oct 15 2019, 00:11:34) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credi

[issue38583] The activate script in Windows is not correct for venvs created in git-bash

2019-11-06 Thread Mo
Mo added the comment: I had also tested with pathlib and posixpath and come to the same conclusion. As suggested by you, I looked into `activate` determining path when run. I believe this should do the trick (My bashfoo isn't strong, this is mostly from https://stackoverflow.com/a/179231

[issue38583] The activate script in Windows is not correct for venvs created in git-bash

2019-10-25 Thread Mo
Mo added the comment: The issue comes as a result of abspath on line 59 of venv/__init__.py: env_dir = os.path.abspath(env_dir) This returns a Windows-style path, and os.path.abspath returning in this way is *probably* correct, as the OS is Windows, despite trying to forget

[issue38583] The activate script in Windows is not correct for venvs created in git-bash

2019-10-24 Thread Mo
New submission from Mo : When creating a virtual environment on Windows from git-bash (using python -m venv), VIRTUAL_ENV in the activate script is set using a windows style path (C:\some\path) instead of the bash style (/c/some/path). This means the system python and pip get used, despite

[issue29191] liblzma is missing from pcbuild.sln

2017-02-23 Thread Mo Jia
Mo Jia added the comment: I think let user add the liblzma project by hand is not good enough. While the build.bat don't have this problem. So they should work similar. -- nosy: +Mo.Jia versions: -Python 3.5, Python 3.6 ___ Python tracker <

[issue29297] python3 open() does not check argument type before attempting to read() or write()

2017-01-17 Thread Mo Ali
Mo Ali added the comment: Serhiy, I expected a type error or a filenotfound like you received, however mine doesn't return the same. It just hangs. I've attached a picture. Also, I meant this to be for 3.6 not 3.5. >>> test = False >>> with open(test) as f: ...

[issue29297] python3 open() does not check argument type before attempting to read() or write()

2017-01-17 Thread Mo Ali
New submission from Mo Ali: Python3 open(), read(), or write()doesn't check argument type before action causing a hang. Would like to catch exceptions but not without an exception to return. See below. Python3.6: Python 3.6.0 (default, Dec 24 2016, 08:01:42) [GCC 4.2.1 Compatible Apple LLVM

[issue21623] build ssl failed use vs2010 express

2014-06-03 Thread Mo Jia
Mo Jia added the comment: @Roundup Robot . Clone the newest 3.4 tag. The unicode problem is ok now . @Zachary Ware , don't change anything after clone from the repo. What i do is just cd python src dir and runing : Tools\buildbot\build.bat . the openssl verison is 1.0.1g . Seem

[issue21623] build ssl failed use vs2010 express

2014-06-01 Thread Mo Jia
Mo Jia added the comment: Another error is . cd D:\Hg\Python\Python\PCbuild\ D:\Hg\Python\Python\PCbuild\python_d.exe build_ssl.py Release Win32 -a Found a working perl at 'C:\Perl\bin\perl.exe' Traceback (most recent call last): File build_ssl.py, line 253, in module main

[issue21623] build ssl failed use vs2010 express

2014-05-31 Thread Mo Jia
New submission from Mo Jia: Here is the failed message . Project D:\Hg\Python\Python\PCbuild\_ssl.vcxproj (17) is building D:\Hg\Python\Python\PCbuild\ssl.vcxproj (18) on node 1 (default targets). Build

looking for open source python project

2010-08-28 Thread mo reina
looking for a python project (preferably something a bit small) that is looking for contributors. the small bit is because i've never worked in a team before and haven't really read source code that's 1000s of lines long, so i'm not too sure i can keep up. my python fu is decent (i think), i

Re: Personal archive tool, looking for suggestions on improving the code

2010-07-27 Thread mo reina
On 27 Lug, 10:23, Peter Otten __pete...@web.de wrote: mo reina wrote: i've written a tool in python where you enter a title, content, then tags, and the entry is then saved in a pickle file. it was mainly designed for copy-paste functionality (you spot a piece of code you like on the net

Re: Personal archive tool, looking for suggestions on improving the code

2010-07-27 Thread mo reina
On Jul 27, 2:06 pm, Peter Otten __pete...@web.de wrote: mo reina wrote: On 27 Lug, 10:23, Peter Otten __pete...@web.de wrote: mo reina wrote: i've written a tool in python where you enter a title, content, then tags, and the entry is then saved in a pickle file. it was mainly

Personal archive tool, looking for suggestions on improving the code

2010-07-26 Thread mo reina
0 down vote favorite i've written a tool in python where you enter a title, content, then tags, and the entry is then saved in a pickle file. it was mainly designed for copy-paste functionality (you spot a piece of code you like on the net, copy it, and paste it into the program), not really

Re: python app development

2010-07-14 Thread mo reina
On Jul 3, 9:59 pm, Terry Reedy tjre...@udel.edu wrote: On 7/3/2010 1:48 PM,mo reinawrote: an anyone recommend a resource (book,tutorial,etc.) that focuses on application development in python? something similar to Practical Django Projects, but for stand alone applications instead of web

python app development

2010-07-03 Thread mo reina
an anyone recommend a resource (book,tutorial,etc.) that focuses on application development in python? something similar to Practical Django Projects, but for stand alone applications instead of web apps (for now). i'm in a bit of a funny place, i have a decent/good grasp of python syntax and my

Name 'NewAxis' is not defined

2009-09-20 Thread mo
I found such a script - a gas model. http://des.memphis.edu/lurbano/vpython/gas/Temp_KE_07.py Can anybody help and find a mistake. There is a message: Name 'NewAxis' is not defined. I tried Python 25 with numpy 121 and Python 26 with scipy 071. (Win Vista). -- mo (not proffessional programmer

Re: how to stop a loop with ESC key? [newbie]

2005-11-08 Thread mo
Thanks, I tryed your example: import msvcrt while 1: print '.' if msvcrt.kbhit() and msvcrt.getch() == chr(27): break but it doesn't work. It is running (Win2000), there is no messages about errors but there is no effect when pressing ESC key. What I am doing wrong? mo

Re: how to stop a loop with ESC key? [newbie]

2005-11-08 Thread mo
Fredrik Lundh wrote: works for me, when running it from a stock CPython interpreter in a windows console window, with focus set to that window. what environment are you using? I use IDLE 1.0.3, Python 2.3.4 The same problem is when running in a win console. mo -- http://mail.python.org

how to stop a loop with ESC key? [newbie]

2005-11-07 Thread mo
Can somebody explain how to stop a WHILE loop in running program by pressing ESC key? mo -- http://mail.python.org/mailman/listinfo/python-list