[issue45224] Argparse shows required arguments as optional

2021-09-16 Thread Khalid Mammadov
Khalid Mammadov added the comment: This is another, larger example, where I actually stumbled on this when looking into Apache Airflow project. Below makes it confusing to see what is actually required and what not. Unless you look for square brackets. Would be it much nicer to list

[issue45224] Argparse shows required arguments as optional

2021-09-16 Thread Khalid Mammadov
Khalid Mammadov added the comment: May I suggest to change it again so we two sections: required and optional? This can help to be more clear from usage perspective. I have changed it locally and it looks like below: usage: myprogram.py [-h] [--foo FOO] --bar BAR required arguments

[issue45224] Argparse shows required arguments as optional

2021-09-16 Thread Khalid Mammadov
New submission from Khalid Mammadov : Currently argparse module shows all optional arguments under "optional arguments" section of the help. It also includes those flags/arguments that are required as well. This add confusion to a user and does not properly show

[issue39180] Missing getlines func documentation from linecache module

2020-02-22 Thread Khalid Mammadov
Change by Khalid Mammadov : -- resolution: -> duplicate ___ Python tracker <https://bugs.python.org/issue39180> ___ ___ Python-bugs-list mailing list Un

[issue39139] Reference to depricated collections.abc class in collections is unnecessary and confusing

2020-02-22 Thread Khalid Mammadov
Khalid Mammadov added the comment: Looks like this is covered in greater detail in the other PRs. So, closing the PR and the issue -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue39139] Reference to depricated collections.abc class in collections is unnecessary and confusing

2020-02-22 Thread Khalid Mammadov
Change by Khalid Mammadov : -- resolution: -> duplicate ___ Python tracker <https://bugs.python.org/issue39139> ___ ___ Python-bugs-list mailing list Un

[issue39180] Missing getlines func documentation from linecache module

2020-02-22 Thread Khalid Mammadov
Khalid Mammadov added the comment: Looks like it's not meant to be made public as the module is meant to be working on a single line. So closing the issue and PR -- nosy: -ammar2 stage: patch review -> resolved status: open -> closed ___

[issue39180] Missing getlines func documentation from linecache module

2020-02-22 Thread Khalid Mammadov
Khalid Mammadov added the comment: How to find if it was intentional or over-site? -- ___ Python tracker <https://bugs.python.org/issue39180> ___ ___ Python-bug

[issue39130] Dict is reversable from v3.8 and should say that in the doc

2020-02-22 Thread Khalid Mammadov
Change by Khalid Mammadov : -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue39130> ___ ___ Pyth

[issue39180] Missing getlines func documentation from linecache module

2020-01-01 Thread Khalid Mammadov
Change by Khalid Mammadov : -- keywords: +patch pull_requests: +17216 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17784 ___ Python tracker <https://bugs.python.org/issu

[issue39180] Missing getlines func documentation from linecache module

2020-01-01 Thread Khalid Mammadov
Change by Khalid Mammadov : -- assignee: docs@python components: Documentation nosy: docs@python, khalidmammadov priority: normal severity: normal status: open title: Missing getlines func documentation from linecache module versions: Python 3.8

[issue39139] Reference to depricated collections.abc class in collections is unnecessary and confusing

2019-12-26 Thread Khalid Mammadov
Change by Khalid Mammadov : -- keywords: +patch pull_requests: +17153 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17707 ___ Python tracker <https://bugs.python.org/issu

[issue39139] Reference to depricated collections.abc class in collections is unnecessary and confusing

2019-12-26 Thread Khalid Mammadov
New submission from Khalid Mammadov : "Deprecated since version 3.3, will be removed in version 3.9: Moved Collections Abstract Base Classes to the collections.abc module. For backwards compatibility, they continue to be visible in this module through Python 3.8." on th

[issue39130] Dict is reversable from v3.8 and should say that in the doc

2019-12-24 Thread Khalid Mammadov
Change by Khalid Mammadov : -- keywords: +patch pull_requests: +17148 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17694 ___ Python tracker <https://bugs.python.org/issu

[issue39130] Dict is reversable from v3.8 and should say that in the doc

2019-12-24 Thread Khalid Mammadov
Change by Khalid Mammadov : -- assignee: docs@python components: Documentation nosy: docs@python, khalidmammadov priority: normal severity: normal status: open title: Dict is reversable from v3.8 and should say that in the doc type: enhancement versions: Python 3.8

[issue33574] Conversion of Number to String(str(number))

2018-05-18 Thread Khalid Moh'd.
New submission from Khalid Moh'd. <khld@gmail.com>: Consider conversion of an integer to string: a=5 #number str #outputs str(a) #works perfectly and prints '5' Now, consider: str="Hello World" #reads the string str #prints "Hello World" str(5) #gives an err

System error while installing

2017-05-09 Thread Faran Khalid
After installing python 3.6.1 through setup , when I run it a system error appears saying : "The program can't start because api-ms-win-crt-runtime-[1-1-0.dll is missing from your computer .Try reinstalling to fix it. I have tried reinstalling and repairing many times but it still won't work.

[issue29037] Python 2.7.13 prints version header and exits immediately on Windows 10 x64

2016-12-28 Thread A.B., Khalid
A.B., Khalid added the comment: OK. I updated pyreadline to version 2.1 from version 2.0 and now the buggy behavior is gone. """ E:\>python Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "

[issue29037] Python 2.7.13 prints version header and exits immediately on Windows 10 x64

2016-12-28 Thread A.B., Khalid
A.B., Khalid added the comment: Output of SET PY is as follows: E:\>SET PY PYSDL2_DLL_PATH=E:\Python27\Lib\site-packages PYTHON3_HOME=E:\Python35 PYTHON_HOME=E:\Python27 -- ___ Python tracker <rep...@bugs.python.org> <http://bug

[issue29037] Python 2.7.13 prints version header and exits immediately on Windows 10 x64

2016-12-28 Thread A.B., Khalid
A.B., Khalid added the comment: I enclose the output of "python -v". Where Python exits is of course indicated by the end of the file. However, there is no obvious error that is printed out. Also it might be worthwhile to note that I cleared all compiled files left over from th

[issue29037] Python 2.7.13 prints version header and exits immediately on Windows 10 x64

2016-12-28 Thread A.B., Khalid
A.B., Khalid added the comment: Running "where python" shows that the updated python (the one with the bug mentioned above) is the one being run. Running python -c "import sys; print sys.stdin.isatty()" prints out "True". -- _

[issue29037] Python 2.7.13 prints version header and exits immediately on Windows 10 x64

2016-12-21 Thread A.B., Khalid
New submission from A.B., Khalid: I updated my Python 2.7.12 to 2.7.13 on Windows 10 x64. When I run it in Windows command prompt shell, Python prints the version header and then exits immediately. Like so: """ E:\Users\thisuser>python Python 2.7.13 (v2.7.13:a06454b1afa1,

Calling Out All Python Programmer in Pakistan

2015-08-10 Thread Yasoob Khalid
in a meetup as well then kindly share this post with him as well. Kind regards, Muhammad Yasoob Ullah Khalid yasoob.k...@gmail.com Python Tips www.pythontips.com/ -- https://mail.python.org/mailman/listinfo/python-list

Azure event hub network access

2015-02-05 Thread syed khalid
: deviceid, SensorType : temperature, SensorValue : 22 },{ SensorId : deviceid, SensorType : humidity, SensorValue : 20 }]} -- *Syed Khalid* -- https://mail.python.org/mailman/listinfo/python-list

Indentation issues with python

2015-02-04 Thread syed khalid
')) authentication.sign_request(request, httpclient) request.headers.append(('Content-Length', str(len(request.body))) -- *Syed Khalid* -- https://mail.python.org/mailman/listinfo/python-list

Python script that does batch find and replace in txt files

2014-11-09 Thread Syed Khalid
Python script that does batch find and replace in txt files Need a python script that opens all .txt files in a folder find replace/delete text and save files. I have text files and I need to perform below steps for each file. Step 1: Put cursor at start of file and Search for Contact's

Re: Python script that does batch find and replace in txt files

2014-11-09 Thread Syed Khalid
: - Original Message - From: Syed Khalid khalidn...@gmail.com To: python-list@python.org Cc: Sent: Sunday, November 9, 2014 8:58 PM Subject: Python script that does batch find and replace in txt files Python script that does batch find and replace in txt files Need a python

Re: Python script that does batch find and replace in txt files

2014-11-09 Thread Syed Khalid
My Script, I have added import glob, codecs, re, os regex = re.compile(rAge: |Sex: |House No: ) # etc etc Script I executed in EditRocket : for txt in glob.glob(/D:/Python/source/*.txt): with codecs.open(txt, encoding=utf-8) as f: oldlines = f.readlines() for i, line in

Re: Python script that does batch find and replace in txt files

2014-11-09 Thread Syed Khalid
EamClean.log, line 12 with codecs.open(txt + _out.txt, wb, encoding=utf-8) as w: ^ SyntaxError: invalid syntax On Mon, Nov 10, 2014 at 2:22 AM, Syed Khalid khalidn...@gmail.com wrote: Hi Albert, Thank you for script. I am getting the below error : File EamClean.log, line 12

Re: Python script that does batch find and replace in txt files

2014-11-09 Thread Syed Khalid
is not deleting the empty lines containing blank characters. Kindly do the needful. On Mon, Nov 10, 2014 at 2:50 AM, Syed Khalid khalidn...@gmail.com wrote: Code after adding path of .txt files : import glob, codecs, re, os regex = re.compile(rAge: |Sex: |House No: ) # etc etc for txt

Re: Python script that does batch find and replace in txt files

2014-11-09 Thread Syed Khalid
Albert, Code is not removing empty lines containing blank characters and not removing leading and trailing spaces present in each line. import glob, codecs, re, os regex = re.compile(rAge: |Sex: |House No: ) # etc etc for txt in glob.glob(D:/Python/source/*.txt): with

[issue22466] problem with installing python 2.7.8

2014-09-24 Thread Khalid
Khalid added the comment: I tried but I got this error this installation package could not be opened. verify that the package exists that you can access it, or contact the application vendor to verify that this is a valid windows installer package (screen shot in the attachment) by the way I'm

[issue22466] problem with installing python 2.7.8

2014-09-23 Thread Khalid
Khalid added the comment: I tried downloading installer by firefox,chrome explorer with latest update but still the same problem. I'm getting mad about why I can't get an error log On Wed, Sep 24, 2014 at 2:50 AM, Steve Dower rep...@bugs.python.org wrote: Steve Dower added the comment

[issue22466] problem with installing python 2.7.8

2014-09-23 Thread Khalid
Khalid added the comment: I found a fix this is the source http://www.youtube.com/watch?v=KikshWVWhzg but the question is did I make a security vulnerability? On Wed, Sep 24, 2014 at 3:55 AM, Khalid rep...@bugs.python.org wrote: Khalid added the comment: I tried downloading installer

[issue22466] problem with installing python 2.7.8

2014-09-22 Thread Khalid
New submission from Khalid: when I'm installing python 2.7.8 I get error there is a problem with this windows installer package. a DLL required for this install to complete could not be run. I'm using windows 8.1 64bit -- components: Installation files: Capture.JPG messages: 227319

[issue22466] problem with installing python 2.7.8

2014-09-22 Thread Khalid
Khalid added the comment: Downloaded from official website I run it by simply double click. by the way there is no run as admin On Sep 23, 2014 4:51 AM, Eric V. Smith rep...@bugs.python.org wrote: Eric V. Smith added the comment: Where did you download the installer from? How are you

importing modules

2013-07-31 Thread syed khalid
I am attempting to import modules from Shogun to python from a non-standard python directory ie from my /home/xxx directory. is there a way on ubuntu to selectively some modules, scripts, data from one directory and others modules, scripts from another directory. In other words, is there a

python import module question

2013-07-27 Thread syed khalid
I am trying to do a import shogun in my python script. I can invoke shogun with a command line with no problem. But I cannot with a python import statement. invoking python from a command line... Syedk@syedk-ThinkPad-T410:~/shogun-2.0.0/src/interfaces/cmdline_static$ shogun | more

Is there a way to creat a func that returns a cursor that can be used?

2012-11-12 Thread Khalid Al-Ghamdi
Is there a way to create a func that returns a cursor that can be used to execute sql statements? I tried this (after importing sqlite3), but it gave me the error below: def connect(): conn = sqlite3.connect(':memory:')#use sch3.db or sch4.db etc. cur = conn.cursor()

Re: Very Strange Problem

2009-07-29 Thread Omer Khalid
, and is there a lock on it or else? Thanks, Omer ** On Wed, Jul 29, 2009 at 8:56 PM, Dave Angel da...@ieee.org wrote: Omer Khalid wrote: Hi, I am having a very strange problem with modifying a variable in a list in my program. Here is the code: # a list

Re: Python 3.1 Release Candidate 2

2009-06-13 Thread Khalid
On Jun 13, 5:46 pm, Benjamin Peterson benja...@python.org wrote: On behalf of the Python development team, I'm happy to announce the second release candidate of Python 3.1. Python 3.1 focuses on the stabilization and optimization of the features and changes that Python 3.0 introduced.  For

How to do CPU/Memory benchmarking in Python?

2008-08-05 Thread Omer Khalid
Hi, I have few long running python based scripts which does lots of number crunching; I would like to bench mark the CPU/Memory/IO for that script. I am wondering if there is a python benchmarking suite available? There is pybench but it more or less test the executing script it self from

Re: What was that web interaction library called again?

2007-06-26 Thread Omer Khalid
On the RESTFul web service, I would like to piggy pack my own question two is there a way to make the connection secure between two Restful service running on GNU/linux? Thanks, Omer On 6/26/07, Kathryn Van Stone [EMAIL PROTECTED] wrote: So does anyone know of any equivalent library for

Re: THREADS use 100 % CPU all the time

2007-04-11 Thread A.B., Khalid
On Apr 11, 2:38 am, [EMAIL PROTECTED] wrote: Hi all, I have a application where I use different threads. actually all is working - BUT I just discovered that the [b]CPU is always 100 % [/ b]used. on the 32-bit machine athlon XP, as well as on the amd 64-bit AMD Athlon(TM) 64 X2 Dual-Core.

Re: Modules - Jython Vs Python?

2006-11-24 Thread Khalid Zuberi
Patrick Finnegan writes: How many of the Python modules written in C have been rewritten and and ported to Java to run under Jython? I am talking about SMTP, LDAP, WIN2K,XML etc. Is there a list anywhere ? There's a list on the jython wiki of absent modules:

Re: Jythonc Problem

2006-07-04 Thread Khalid Zuberi
Ian Vincent wrote: I cannot find a Jython newsgroup, so apologies in advance if this question has been posted to the wrong group. Try the jython-users mailing list: http://lists.sourceforge.net/mailman/listinfo/jython-users - kz -- http://mail.python.org/mailman/listinfo/python-list

Re: With pyMinGW

2006-02-22 Thread A.B., Khalid
. As to your SWIG problem, then I suggest you look into the pyMinGW's extensions' directory. There you will find two examples of building C and CPP extensions using SWIG and MinGW. Regards, Khalid pyMinGW: http://jove.prohosting.com/iwave/ipython/pyMinGW.html -- http://mail.python.org/mailman

Re: With pyMinGW

2006-02-22 Thread A.B., Khalid
[EMAIL PROTECTED] wrote: Thank you for your answers, Khalid. It seems you may be using an old version of pyMinGW, I have downloaded it yesterday from your site. the relevant part dealing with include directories in zlib.mak should read now as follows: I have checked

Re: jython problem importing a py file

2006-02-07 Thread Khalid Zuberi
didier.prophete writes: I tried everything I could think of (playing with the __init__.py, the PYTHONCLASS, the CLASSPATH), but nothing seems to work... I am doing something wrong here ? -Didier Take a look at the jython registry setting python.path:

Re: Jython on the Palm OS?

2006-01-30 Thread Khalid Zuberi
gregarican greg.kujawa at gmail.com writes: I have completed recoding my CRM app into Python so that it will run on Win32, ARM Linux, and ARM Windows Mobile platforms. Now I am looking to try to roll it into the Palm OS platform. Since Pippy is based on an older version of Python than I am

ANN: pyMinGW support for Python 2.4.2 (final) is available

2005-09-28 Thread A.B., Khalid
This is to inform those interested in compiling Python in MinGW that an updated version of pyMinGW is now available. Get it from here: http://jove.prohosting.com/iwave/ipython/pyMinGW.html Regards Khalid -- http://mail.python.org/mailman/listinfo/python-list

Re: pyMinGW support for Python 2.4.2 (final) is available

2005-09-28 Thread A.B., Khalid
to the browser because the download is actually a HTML page. This I had to do probably three or four times until I was presented with IE's Save dialog. I am sorry for the trouble, but this is something we need to live with for now and which I cannot fix without relocating pyMinGW. Regards Khalid

Re: Shed Skin under Windows and OSX

2005-09-18 Thread A.B., Khalid
test output: [3, 3, 3, 1097, 70201] *** success: small factorization program by Rohit Krishna Kumar 124 *** no failures, yay! :) Well done. So what was causing that crash in test '__class__ and __name__ attributes' after all? I'll also try to test it on Win98. Regards, Khalid -- http

Re: First release of Shed Skin, a Python-to-C++ compiler.

2005-09-11 Thread A.B., Khalid
to compile the tests to C++. At any rate, if anyone is interested in the patches they can be downloaded from [2]. Regards, Khalid [1] The entire output of unit.py can also be found at [2] [2] http://jove.prohosting.com/iwave/ipython/Patches.html -- http://mail.python.org/mailman/listinfo/python-list

Re: python callbacks and windows

2005-09-11 Thread A.B., Khalid
native Windows GUI toolkit for Python based on the ctypes ffi library: http://venster.sourceforge.net/htdocs/index.html Khalid -- http://mail.python.org/mailman/listinfo/python-list

ANN: Binary Distribution of pyMinGW-241

2005-08-19 Thread A.B., Khalid
Get it from here: http://jove.prohosting.com/iwave/ipython/pyMinGW.html Regards Khalid -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL and GeoTIFF

2005-06-09 Thread Khalid Zuberi
Matt Feinstein wrote: Hi all-- I've succeeded in using the PIL (Python Imaging Library) to read a simple GeoTIFF file and to extract data from the file's GeoTIFF key-- but I'd also like to write GeoTIFFs, and there doesn't appear to be a one-step way of doing that. If you are willing to

Re: (Python newbie) Using XP-SP2/MSVC6: No Python24_d.lib, winzip barfs on Python-2.4.1.tar, cannot download bzip2

2005-04-19 Thread A.B., Khalid
[2] Regards, Khalid [1] Check to see if your archiever tool is working, or get the source from CVS. [2] pyMinGW: http://jove.prohosting.com/iwave/ipython/pyMinGW.html -- http://mail.python.org/mailman/listinfo/python-list

Re: (Python newbie) Using XP-SP2/MSVC6: No Python24_d.lib, winzip barfs on Python-2.4.1.tar, cannot download bzip2

2005-04-18 Thread A.B., Khalid
with my work. tia Bill I am no expert in MSVC6, but it sounds like maybe you need to supply the no-debug switch in your extention setup.py file: /d NDEBUG. In case that does not work and help on this is not forthcoming, you can always try pyMinGW[1]. Regards, Khalid [1] pyMinGW: http

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-11 Thread A.B., Khalid
address the needs of everyone. Regards, Khalid [1] pyMinGW: http://jove.prohosting.com/iwave/ipython/pyMinGW.html -- http://mail.python.org/mailman/listinfo/python-list

ANN: pyMinGW support for Python 2.4.1 (final) is available

2005-03-30 Thread A.B., Khalid
This is to inform those interested in compiling Python in MinGW that an updated version of pyMinGW is now available. Get it from here: http://jove.prohosting.com/iwave/ipython/pyMinGW.html Regards Khalid -- http://mail.python.org/mailman/listinfo/python-list

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-19 Thread A.B., Khalid
Ilias Lazaridis wrote: A.B., Khalid wrote: Ilias Lazaridis wrote: The first step is to make a pyMinGW project. You are mistaken. The first steps are the following: [...] - (nonrelevant comments) 3) Realizing that there _is_ already a project called pyMinGW! That it does not fit

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-18 Thread A.B., Khalid
that not only have you not done that, but that you also seem not interested in doing so. That too is your choice. I suspect that no one is going to lose sleep over either choice. I hope I don't come across as condescending, which I hope I never am, but I know I won't. Life goes on. Khalid

Re: ANN: pyMinGW support for Python 2.3.5 (final) is available

2005-02-14 Thread A.B., Khalid
Nick Craig-Wood wrote: A.B., Khalid [EMAIL PROTECTED] wrote: This is to inform those interested in compiling Python in MinGW that an updated version of pyMinGW is now available. Ha anyone tried cross compiling python with mingw? At work we compile our software for lots of platforms

Re: - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread A.B., Khalid
for it to be included in Python's core. 3. Finally. there is nothing wrong with third-party patches if they get the job done, which I believe is the case with pyMinGW. Regards, Khalid -- http://mail.python.org/mailman/listinfo/python-list

ANN: pyMinGW support for Python 2.3.5 (final) is available

2005-02-12 Thread A.B., Khalid
This is to inform those interested in compiling Python in MinGW that an updated version of pyMinGW is now available. Get it from here: http://jove.prohosting.com/iwave/ipython/pyMinGW.html Regards Khalid -- http://mail.python.org/mailman/listinfo/python-list

pickle, cPickle, HIGHEST_PROTOCOL

2005-01-30 Thread A.B., Khalid
format (I suppose) as I can read the pickled data. This behavior was observed in Python 2.3.4 (final), and 2.4 (final) on Win98. Any comments? Regards, Khalid # Sample program tester.py begin ! ! import pickle as pkl ! import os ! #- ! def test_pickle(): !fn