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
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
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
Change by Khalid Mammadov :
--
resolution: -> duplicate
___
Python tracker
<https://bugs.python.org/issue39180>
___
___
Python-bugs-list mailing list
Un
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
Change by Khalid Mammadov :
--
resolution: -> duplicate
___
Python tracker
<https://bugs.python.org/issue39139>
___
___
Python-bugs-list mailing list
Un
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
___
Khalid Mammadov added the comment:
How to find if it was intentional or over-site?
--
___
Python tracker
<https://bugs.python.org/issue39180>
___
___
Python-bug
Change by Khalid Mammadov :
--
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue39130>
___
___
Pyth
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
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
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
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
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
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
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
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.
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", "
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
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
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".
--
_
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,
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
: deviceid,
SensorType : temperature, SensorValue : 22 },{ SensorId :
deviceid, SensorType : humidity, SensorValue : 20 }]}
--
*Syed Khalid*
--
https://mail.python.org/mailman/listinfo/python-list
'))
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 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
:
- 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
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
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
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
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
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
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
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
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
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
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
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 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()
, 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
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
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
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
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.
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:
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
.
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
[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
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:
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
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
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
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
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
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
Get it from here:
http://jove.prohosting.com/iwave/ipython/pyMinGW.html
Regards
Khalid
--
http://mail.python.org/mailman/listinfo/python-list
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
[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
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
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
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
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
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
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
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
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
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
67 matches
Mail list logo