Change by David Mc Dougall :
--
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue46071>
___
___
Pyth
Change by David Mc Dougall :
--
nosy: -dam1784
___
Python tracker
<https://bugs.python.org/issue46466>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from David Mc Dougall :
My inline comment ('#') got picked up by the help command.
Write the following code to a file (I named it "reproducer.py"):
"""
class Foo:
# Hello docstring, I'm a '#' comment!
def bar(self):
pass
assert Foo
Change by David Mc Dougall :
--
resolution: -> wont fix
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by David Mc Dougall :
--
nosy: -dam1784
___
Python tracker
<https://bugs.python.org/issue46071>
___
___
Python-bugs-list mailing list
Unsubscribe:
David Mc Dougall added the comment:
> It seems David places more value on the idea of the concrete mapping
> "pointing forwards" with respect to the abstract directed graph, while it
> seems Tim places more value on the idea of the abstract mapping direction
> corr
David Mc Dougall added the comment:
No, the code works fine. I just wish the docs weren't so muddled.
I wish the docs started by saying:
> The graph is a dict of {'start_node': ['end_nodes',]}
> The topological sorter puts the end_nodes before their start_nodes.
[note: this i
David Mc Dougall added the comment:
I can post literally hundreds of examples of directed graphs that are
traversable in the forward direction. This might be the only one which is
*only* traversable backwards.
> As to the meaning of "point to"
Here is one: If I have a pointer
David Mc Dougall added the comment:
> you're not actually confused.
I was when I first read it!
> the meanings of "predecessor" and "successor" are universally agreed upon
I disagree. The universally agreed upon terms are "directed edge u -> v"
David Mc Dougall added the comment:
> The argument passed is the predecessor form of the graph B -> A
where graph = {'A' : ['B']}
This is part that I'm objecting to. The form of the graph should be A -> B, not
B -> A.
The issue with the current form is that you can not traver
David Mc Dougall added the comment:
> If the way the user collects their data stores only successor links (which,
> as above, seems odd in applications that actually use topsorts), then they
> need something like this instead:
Actually they only need to do this:
ts = Topologi
David Mc Dougall added the comment:
The "reverse-toposort" is actually quite a good idea. The end-user is usually
going to want to iterate over the sorted output in the "reverse" order anyways,
especially if they're doing task ordering / dependency resolution.
Also, the
Change by David Mc Dougall :
--
keywords: +patch
pull_requests: +28515
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30269
___
Python tracker
<https://bugs.python.org/issu
New submission from David Mc Dougall :
The graphlib documentation has some grammar & phrasing issues.
--
components: Library (Lib)
messages: 409370
nosy: dam1784
priority: normal
severity: normal
status: open
title: Graphlib documentation (general cleanup)
type: enhancement
vers
Change by David Mc Dougall :
--
title: Graphlib documentation -> Graphlib documentation (edge direction)
___
Python tracker
<https://bugs.python.org/issu
Change by David Mc Dougall :
--
pull_requests: +28446
pull_request: https://github.com/python/cpython/pull/30223
___
Python tracker
<https://bugs.python.org/issue46
New submission from David Mc Dougall :
The documentation for graphlib encourages users to represent their graphs in a
awkward format.
Graphs are currently represented using dictionaries of nodes, for example:
graph["end_node"] = ["start_node"]
And this is unintuitive b
Change by Lorcán Mc Donagh :
--
nosy: +lorcan
___
Python tracker
<https://bugs.python.org/issue27682>
___
___
Python-bugs-list mailing list
Unsubscribe:
I know about Binwalk, it can run on Linux OS only. I am looking for Python
script that can run on Windows too.
Thank you.
- Original Message -
From: Adnan Sadzak
Sent: 04/09/14 11:37 PM
To: trewio
Subject: Re: Unpacking U-Boot image file
Oh then see Craig's page [0]. You can find in
http://ssdeep.sourceforge.net/usage.html
the installation described in aboved document is for Linux only.
Well, I need experiment and see errors.
Regards,
- Original Message -
From: Mark H Harris
Sent: 03/22/14 05:32 AM
To: python-list@python.org
Subject: Re: Installing ssdeep on
Portable Python 2.7 for Windows, the Python application have dependency on
ssdeep-2.10, which is a binary exe.
The ssdeep (libfuzzy) installation example was shown for Linux platform only:
a) libfuzzy can be installed via apt-get:
$ sudo apt-get install libfuzzy2
b) to install
Portable Python 2.7 for Windows, the Python application have dependency on
ssdeep-2.10, which is a binary exe.
The ssdeep (libfuzzy) installation example was shown for Linux platform only:
a) libfuzzy can be installed via apt-get:
$ sudo apt-get install libfuzzy2
b) to install
Portable Python 2.7 for Win32 and installed on USB flash drive. I want install
Binwalk tool, it have a few depencencies, I installed it first (numpy,
matplotlib, libmagic, python-magic)
Then I tried to install binwalk from locally stored source archive file, I
tried two ways:
pip install
I tried: pip install E:\Portable Python 2.7.5.1\binwalk-1.3.0\src\setup.py
Error:
E:\Portable Python 2.7.5.1\App\Scripts\pip run on 03/17/14 22:53:51
Exception:
Traceback (most recent call last):
File E:\Portable Python 2.7.5.1\App\lib\site-packages\pip\basecommand.py,
line 122, in main
.
- Original Message -
From: Peter Mawhorter
Sent: 03/17/14 11:07 PM
To: laguna-mc
Subject: Re: Installing binwalk on Portable Python
On Mon, Mar 17, 2014 at 1:58 PM, laguna...@mail.com wrote: I tried: pip
install E:\Portable Python 2.7.5.1\binwalk-1.3.0\src\setup.py Error:
E:\Portable
I am new in Python, I have Portable Python 2.7.5.1 installed on Windows 7.
I want to install additional libraries:
python-magic
libmagic
libfuzzy
pyqtgraph
I downloaded package, saved on hard drive, unzipped, find setup.py and tried
install via Command Prompt:
Python-Portable.exe setup.py
It'slike a chain, eachnew modulepulls afew othermodules.I can postpone
get-pip.py onthe very last stage, now I want to install python-magic, libmagic,
libfuzzy, pyqtgraph. How to do this?
- Original Message -
From: Mark Lawrence
Sent: 03/16/14 05:06 PM
To: python-list@python.org
I'm trying to install matplotlib from locally stored source archive file
(Portable Python 2.7 on Windows):
pip install E:\matplotlib-1.3.1.win32-py2.7.exe
Got error, below is log:
E:\Portable Python 2.7.5.1\App\Scripts\pip run on 03/17/14 03:10:16
Exception:
Traceback (most recent call last):
On Thursday, November 21, 2013 9:33:13 PM UTC-5, Roy Smith wrote:
In article 9e773107-5a6c-486b-bef2-186101d8f...@googlegroups.com,
cilantr...@gmail.com wrote:
I'm attempting to set up an extremely simple server that receives a string,
and returns a string. However, I have 2
Mark Mc Mahon mtnbikingm...@gmail.com added the comment:
This mostly a documentation concern - correct? ctypes.wintypes is sparsely
documented - in 2.7 the help for it seems to be:
The ctypes.wintypes module provides quite some other Windows specific data
types, for example HWND, WPARAM
Mark Mc Mahon mtnbikingm...@gmail.com added the comment:
The following two error conditions that can be returned by MsiOpenDatabase do
not have specific handling:
ERROR_CREATE_FAILED (1631)
The database could not be created.
ERROR_OPEN_FAILED (110)
The database could not be opened
Changes by Mark Mc Mahon mtnbikingm...@gmail.com:
--
keywords: +patch
Added file:
http://bugs.python.org/file22332/support_vt_empty_in_summary_getproperty.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12239
Mark Mc Mahon mtnbikingm...@gmail.com added the comment:
I was looking at this - and see that (at least as far as GetFileAttributes is
concerned) that a mount and a linked directory are seen the same...
Here are some tests using ctypes
# mounted drive
hex(windll.kernel32.GetFileAttributesW
New submission from Mark Mc Mahon mtnbikingm...@gmail.com:
Using some.msi where the first property is VT_EMPTY
Using COM:
from win32com.client import gencache
com_lib = gencache.EnsureModule('{000C1092---C000-0046}',
409, 1, 0)
com_msi = com_lib.Installer()
db
New submission from Mark Mc Mahon mtnbikingm...@gmail.com:
In _msi.c, summary_getproperty() and summary_setproperty() raise an exception
if the type being set/got is VT_FILETIME.
This issue is to track adding support for (or declining to support) FILETIMEs
New submission from Mark Mc Mahon mtnbikingm...@gmail.com:
Per Eric V. Smith's comment issue1104 (msg134976) the return value of the call
MsiSummaryInfoGetProperty() in summary_getproperty() (pc\_msi.c) is only
checked for the error return ERROR_MORE_DATA.
Other error values should be checked
Mark Mc Mahon mtnbikingm...@gmail.com added the comment:
Responding to Eric's comments
1. There are only three valid property types returned by MsiInteger, String
FILETIME. (http://msdn.microsoft.com/en-us/library/aa372045%28v=VS.85%29.aspx)
2. That comment makes sense - I have entered a new
Mark Mc Mahon mtnbikingm...@gmail.com added the comment:
I have added tests to the patch - but it's not easy to know what would cause an
error in MsiSummaryInfoGetProperty which would trigger the new code.
--
keywords: +patch
Added file:
http://bugs.python.org/file22165
Mark Mc Mahon mtnbikingm...@gmail.com added the comment:
I am not sure that I fully understand the issue - but it seems that trunk still
has this issue.
As stated by Amaury - this is on DEBUG builds only.
c:\pcbuild\python_d.exe
Python 3.3a0 (default, May 28 2011, 20:22:11) [MSC v.1500 32 bit
Mark Mc Mahon mtnbikingm...@gmail.com added the comment:
I wasn't so happy trawling through \windows\installer either :)
Creating an MSI to test is very simple, and actually quicker than I had
originally thought. The latest patch (support_dir_for_msi_objs.patch) creates
the one and just uses
Mark Mc Mahon mtnbikingm...@gmail.com added the comment:
You can pass it to any function in the MSI SDK through ctypes.
e.g.
def ReadStream(record, field):
buf = (ctypes.c_char * 2048)()
orig_size = ctypes.sizeof(buf)
status = 0
res = []
while
New submission from Mark Mc Mahon mtnbikingm...@gmail.com:
Background:
My main use case for msilib is for working with/editing existing MSI files and
not creating MSI files.
As such I find much of the MSI API that I need missing.
While not difficult to re-create _msi.c with ctypes, I thought
Mark Mc Mahon mtnbikingm...@gmail.com added the comment:
Reviewing the patch (issue133572.py33.patch):
You have used forward slashes for the first change - but back slashes for the
others. I see that other places in the existing docs use back slashes when
referring to windows paths.
I have
Hello,
I have a C++ application, I used SWIG to call the python code. I pass
myModule.myObject object to the method of python code and what to
store it in JSON format.
The problem is when I do:
o = myModule.myObject()
inside python, the o object has __dict__ property, but if I take the
Mark Mc Mahon mtnbikingm...@gmail.com added the comment:
I have updated the patch for current trunk (though no real changes required). I
also include a testcase.
One thing to review is that I added functionality to the tests to create the
MSI to be tested. (felt this was safer than touching
Mark Mc Mahon mtnbikingm...@gmail.com added the comment:
And fix the typo... (thanks Ezio)
--
Added file: http://bugs.python.org/file21525/issue1104_msi_3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1104
Mark Mc Mahon mtnbikingm...@gmail.com added the comment:
That fixed it - but it seems we need that for the other Types defined in the
module.
Regarding testing - would it be a good idea to add an MSI to the test suite -
or better to create one during testing (using msilib) and then use
Mark Mc Mahon mtnbikingm...@gmail.com added the comment:
This issue has been fixed by changes made in issue7639 and issue11696
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2694
Mark Mc Mahon mtnbikingm...@gmail.com added the comment:
This issue has been fixed when issue11696 was fixed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8554
New submission from Mark Mc Mahon mtnbikingm...@gmail.com:
Running the following code:
import msilib
db = msilib.OpenDatabase('c:/windows/installer/1c7a1.msi', 1)
db
_msi.Database object at 0x01E230A0
dir(db)
(Python crashes - tested on current Trunk and Python 2.7.1).
I tried tracking
Mark Mc Mahon mtnbikingm...@gmail.com added the comment:
Following up from my comment in issue1128, please find the patch
msilib.make_id_fix_and_tests.patch
This improves the make_id() function in the following way:
- ensures that NO invalid identifier characters make it through (it does
Mark Mc Mahon mtnbikingm...@gmail.com added the comment:
For Directory.make_short() the only things which are left could be considered
splitting hairs.
1. Do we need to remove '\/:' from the file name - if these characters are
there then the file name is not valid in the first place.
2
New submission from Mark Mc Mahon mtnbikingm...@gmail.com:
msilib.make_id() currently ensure that any of the following characters are not
in the resulting ID: -+~;
Per the Microsoft documentation the following list of characters are allowed.
http://msdn.microsoft.com/en-us/library/aa369212(v
Mark Mc Mahon mtnbikingm...@gmail.com added the comment:
Per: http://msdn.microsoft.com/en-us/library/aa369212(v=vs.85).aspx
The Identifier data type is a text string. Identifiers may contain the
ASCII characters A-Z (a-z), digits, underscores (_), or periods (.). However,
every identifier must
Mark Mc Mahon mtnbikingm...@gmail.com added the comment:
How about the following patch and tests...
Per: http://msdn.microsoft.com/en-us/library/aa369212(v=vs.85).aspx
The Identifier data type is a text string. Identifiers may contain the
ASCII characters A-Z (a-z), digits, underscores
Mark Mc Mahon mtnbikingm...@gmail.com added the comment:
I looked at the existing patches - and noted that they went closer to how
Windows does short files - but still left out some cases.
I believe the latest patch catches all cases.
from http://msdn.microsoft.com/en-us/library/aa368590(v=vs
Hi people,
I've created very nice post here:
http://stackoverflow.com/questions/5274690/how-to-get-python-class-serializable-and-well-parsed-by-json-custom-encoder-deco
Yes, there are solutions over the internet, but nothing works for my
custom types.
If you could answer, please read it.
Be
Common guys, help me, sweet heart to finish my job and go with my
friend in the bar. Today we have a blues night :) Love it!
Christina
--
http://mail.python.org/mailman/listinfo/python-list
Currently trying to pick up my ava http://en.gravatar.com/christinasanders21
for StackOverflow, which site I found very good for my questions,
didn't I?
Yes, and there are problem when adding a picture. Web admins should be
careful.
Can anyone explain me my problem ? :
Christina
--
Hi people,
I've used SWIG module to embed python inside c++ app. I pass a list of
objects (with lots of different properties of types string, float,
custom types like URL, Software and finally of list of strings).
Now I'm in python. URL and Software has str() method that converts
their value to
Great!
The solution is to use self.benchmarks = list(object.benchmarks).
Now I'm battling with time_t type. C++ time_t converts to python int
but it causes memore leaks due to destructor absence. I'm trying to
figure it out. If anyone know, please share your thoughts.
Be happy :)
Arthur
--
Hi all,
Ok, I managed to work with c++ data types in python and can store
serialize c++ objects to store in json.
Now the task is backward. I wrote a c++ code to get the list of
objects using again python interface. The list of objects is returned.
PyList.
But I can't see how to convert
Ok people,
I do:
for (Py_ssize_t i = 0; i PyList_Size(py_list); ++i) {
PuObject* obj = PyList_GetItem(py_list, i);
if (obj != NULL) {
// howto get obj properties of different types
(map, list, string, int, bool) ?
}
}
Very clear code. The question
Stefan, great suggestion !!
I will definitely bookmark this page and consider later. But my
project dictate me use SWIG. I'm almost near the happy subend. Very
curios on question I asked in previous message.
Dear all, I love you too much :)
Arthur
--
Stephan, you are lead developer over there :))) It's marketing,
however very nice solution.. I will propose my bosses to rediscover
their world assumptions. You know, they are still using SVN, they are
very loosely coupled to the past. I have to wash their brains...
Meantime still battling with
In short, the answer is to use PyObject dictionary ?
--
http://mail.python.org/mailman/listinfo/python-list
Good day people,
So I have python file which can handle json data to put and get back
it from a file say objects.json. Great.
Now I want to run this code from within C++ application. I used swig
to wrap the C++ class, which wants to call python code. It works fine,
because when I import native
Hi all,
I have a C++ application. I have a .cpp file which is not a main
program, but a class where I want to call python script
(doSomething.py file).
I'm using embed python like in a tutorial here:
http://www.codeproject.com/KB/cpp/embedpython_1.aspx
But the tutorial is bad. It does not
/embedding Python?
~/santa
[1] http://docs.python.org/extending/
On Fri, Mar 4, 2011 at 8:27 AM, Arthur Mc Coy 1984docmc...@gmail.comwrote:
Hi all,
I have a C++ application. I have a .cpp file which is not a main
program, but a class where I want to call python script
(doSomething.py file
The problem is how to write python module under SWIG for C++
application
Nor SWIG documentation neither embeding python documentation does not
answer to this.
If you can help, please, share your idea.
Arthur
--
http://mail.python.org/mailman/listinfo/python-list
Using simple words: I have mymodule.py file and c++ application.
mymodule.py file contains two classes A and B. A class is a custom data
type. B class contains functions putJSON, getJSON which I want to run from
within C++ code. These functions are members of class B. So I need to import
Still need the answer to the question: howto embed given python file
(which contains python class and its members) into the c++
application ?
I have to pass the arguments from c++ to python and back so I need to
do conversions. They are ok. Fails PyImport_Import(my_module) call
saying No module
Hi all,
I'm trying an example (in attached file, I mean the bottom of this
message).
First, I create a list of 3 objects. Then I do:
PutJSONObjects(objects)
objects = GetJSONObjects()
PutJSONObjects(objects, objects2.json)
1) PutJSONObjects(objects) method creates objects.json file (by
What do you mean by arbitrary precision ? Each method of calculating
of something has its own precision...
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 2, 5:26 pm, Ben123 ben.is.loca...@gmail.com wrote:
On Mar 2, 9:04 am, Arthur Mc Coy 1984docmc...@gmail.com wrote:
What do you mean by arbitrary precision ? Each method of calculating
of something has its own precision...
If you are unfamiliar with arbitrary precision, I'm referring
nested information. I will see later. Now, when the
testing environment is ready, I go for real world application.
Thank you!
Kostia
On Mar 2, 4:24 pm, Peter Otten __pete...@web.de wrote:
Arthur Mc Coy wrote:
Hi all,
I'm trying an example (in attached file, I mean the bottom
Are you saying python cares whether I express a number as 0.001 or
scaled by 10^5 to read 100? If this is the case, I'm still stuck. I
need the full range of eigenvalues from 1 to 1E-300, so the entire
range could be scaled by 1E300 but I would still need better precision
than 1E19
If python
Hi,
The 0.3.9 release of pywinauto is now available.
pywinauto is a set of open-source (LGPL) modules for using Python as a
GUI automation 'driver' for Windows NT based Operating Systems
(NT/W2K/XP/+).
SourceForge project page: http://sourceforge.net/projects/pywinauto
Download from
Hi!
Possible! With Pywin32.
I see two ways:
- add a toolBar ; see the exemple for Internet-Explorer (it run for
both, IE explorer)
- add an entry in the context menu (right click)
@-salutations
--
Michel Claveau
--
@-salutations
Michel Claveau
--
Hi,
The 0.3.8 release of pywinauto is now available.
pywinauto is a set of open-source (LGPL) modules for using Python as a GUI
automation 'driver' for Windows NT based Operating Systems (NT/W2K/XP).
SourceForge project page: http://sourceforge.net/projects/pywinauto
Download from SourceForge
Re
‘builtin’ is not a class.
I think object ; not only class
And builtin is an object.
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Il se trouve que Chris Rebert a formulé :
Python has functions, which are not associated
with a class
functions are methods of builtin...
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Perhaps, if you copy DLL in others strategic places, it's better...
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
You want 2*(3+4) to return (7,7)?
For have that: 2*(3+4,)
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
If you are under Windows, you can:
- call Python's functions via Active-Scripting
- call a Python COM server (functions or properties)
For that, use Pywin32. And, in all cases, call functions can use
parameters.
--
@-salutations
Michel Claveau
--
I'm looking for a library which can do mathematical stuff like
solving equations. Or calculation the nulls of a function and so on.
Does anyone know one?
Thanks in advance!
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
I'm trying to compile on my Macbook with OS X 10.5. I have all updates
and Xcode 3.0 installed.
I checked python out with: svn checkout
http://svn.python.org/projects/python/branches/py3k
After that I did ./configure in the created py3k dir. Everything
went fine. But make fails with the
On Jan 12, 5:34 pm, Mark Dickinson [EMAIL PROTECTED] wrote:
On Jan 12, 9:41 am, mc [EMAIL PROTECTED] wrote:
Hi!
I'm trying to compile on my Macbook with OS X 10.5. I have all updates
and Xcode 3.0 installed.
I checked python out with: svn
checkouthttp://svn.python.org/projects
Hi!
1.5.1
Sure? 1.5.1?
For Python 2.5, look ActiveState. Their distrib have silent option.
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
I agree ; on windows mmap use Memory-Mapped-file, who use virtual
memory. And shared memory use physical memory.
The difference is OS an not Python
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
ie = win32com.client.Dispatch(InternetExplorer.Application)
doc=ie.Document.parentWindow.document
Use bridge variable :
window=ie.Document.parentWindow
And work with :
print window.Document.body.name
--
@-salutations
Michel Claveau
--
Re!
Sorry! The good exemple is :
ie = win32com.client.Dispatch(InternetExplorer.Application)
window=ie.Document.parentWindow
print window.name
another :
window.alert(Aalleerrtt)
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Mégalo!
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
I know how to, but only with IE on windows.
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
For windows, I had a soft for this (reduce_memory.exe). Sorry, it's not
write with Python.
If you want, I will give a URL for download it.
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Classic
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
No. The IDIspatch-interface explicitely lists what methods with what
arguments it has. So code completion is possible there as well.
Sorry, I think different.
In VS, assists use TLB for find methods arguments.
Dynamic-server can't have TLB.
Other way for verify : try a Makepy on a COM
Hi!
non-Ascii characters in identifiers
And this change may be already in a Python 2.x before P3K.
Good new! (if it's True...)
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Why might one choose to use ActivePython instead of using the free CPython?
quiet installation?
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Try with change all '\r\n' by '\n'
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 168 matches
Mail list logo