Ram Rachum added the comment:
Patch attached. Is this good?
--
keywords: +patch
Added file: http://bugs.python.org/file33616/patch.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20218
Ram Rachum added the comment:
Christopher and Serhiy, I would appreciate if you could kindly explain why your
arguments, while applying to my suggestions, do not apply to the following
functions:
- `Path.stat`
- `Path.owner`
- `Path.group`
- `Path.open`
- `Path.chmod`
- `Path.lchmod
Ram Rachum added the comment:
Serhiy:
Your arguments 1 and 2 are pretty weak. (So what if an import is required? It's
still 2 lines. I thought that Not every two line function are worth to be
added to the stdlib.)
Regarding stat being used much more often than read: I disagree. I've done
Ram Rachum added the comment:
(Replace `is` with `if` in my code sample, typo.)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20218
New submission from Ram Rachum:
I'd really like to have methods `pathlib.Path.write` and `pathlib.Path.read`.
Untested implementation:
def read(self, binary=False):
with self.open('br' is binary else 'r') as file:
return file.read()
def write(self, data. binary=False
New submission from Ram Rachum:
There's a bad usage of `self` here:
http://hg.python.org/cpython/file/fd846837492d/Lib/importlib/_bootstrap.py#l1431
`self` isn't defined because it's a class method.
--
components: Library (Lib)
messages: 207105
nosy: cool-RR
priority: normal
Ram Rachum added the comment:
Sorry, bad link, this is the right link:
http://hg.python.org/cpython/file/fd846837492d/Lib/importlib/_bootstrap.py#l1409
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20097
Ram Rachum added the comment:
Instead of copy.deepcopy, why not call itertools.tee?
It's hard for me to give you a good answer because I submitted this ticket 2
years ago, and nowadays I don't have personal interest in it anymore.
But, I think `itertools.tee` wouldn't have worked for me
New submission from madan ram:
I found that it will be useful to show the list of function arguments using
inspect module. When the function executed by the user in interpreter as
TypeError.
ex: -
def foo(a,b=4,c=hello):
... print a,b,c
foo()
Traceback (most recent call last):
File
Changes by madan ram madan_...@rocketmail.com:
--
title: adding an feature to python interpreter - Adding a feature to python
interpreter
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19810
Changes by Ram Rachum r...@rachum.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19032
___
___
Python-bugs-list
Ram Rachum added the comment:
I use that to test whether an object is pickleable or not. It used to work in
Python 2.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19032
Ram Rachum added the comment:
Wrong, because the object itself could be pickleable but refer to a different
object which is non-pickleable. I want to know whether the object itself,
without any object it refers to, is pickleable.
Also, pickling an object could be very resource-intensive
New submission from Ram Rachum:
import threading
l = threading.Lock()
l.__reduce_ex__(3)
(function __newobj__ at 0x026CD8C8,
(class '_thread.lock',),
None,
None,
None)
Isn't it a bug that `__reduce_ex__` works on the non-pickleable lock object
New submission from madan ram:
Since most of and also I faced problem of building Doc initially then later i
found out how to build Doc.
So i thought to include details on how to build Doc in README.
--
assignee: docs@python
components: Build, Devguide, Documentation, Installation
New submission from madan ram:
As I observed when using python 3.4 Interpretor is that it would be able to
distinguish between char by '' and string by
input()
a
'a'
and
input()
aa
'aa'
it would be better if output was
aa
but if i want to fix this which file to edit
New submission from madan ram:
Qt 4.5 upwards is licensed under the LGPL license; also, commercial licenses
are available from Nokia.
Since new version of Qt 5 is realsed and Licenced under Digia.
So i am fixing this issue .
i am going to write it as
PyQt5 is licensed on all platforms
Changes by madan ram madan_...@rocketmail.com:
--
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18703
___
___
Python-bugs
Changes by madan ram madan_...@rocketmail.com:
Removed file: http://bugs.python.org/file31218/gui.rst
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18703
Changes by madan ram madan_...@rocketmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file31219/mywork.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18703
Changes by madan ram madan_...@rocketmail.com:
--
nosy: +aleax, eric.araujo, ezio.melotti, georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18703
New submission from Ram Rachum:
I have a `Future` and I want to check whether it's in finished state. It seems
like I don't have a method to do that, right? (I could emulate the existing
methods for checking Future state, but that would mean fiddling with private
variables.)
Why not just
Ram Rachum added the comment:
I guess that'd be equivalent, yes.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18212
___
___
Python-bugs-list
New submission from Ram Rachum:
There's no mention of `match.regs` in the documentation of the `re` module.
--
assignee: docs@python
components: Documentation
messages: 189859
nosy: cool-RR, docs@python
priority: normal
severity: normal
status: open
title: No mention of `match.regs
by default.
You enjoy writing software and take pride in what you build.
SOL proficiency, particularly with PostgreSQL is a plus.
Strong communications skills, both written and verbal.
Thanks Regards,
Ram
i3 Software
100 Wood Avenue South, Suite 105
Iselin, NJ, 08830
(O) 703 953 2828
Think Green
Ram Rachum added the comment:
Awesome, thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17032
___
___
Python-bugs-list mailing list
Ram Rachum added the comment:
(I fixed the patch to not have a typo.)
--
Added file:
http://bugs.python.org/file29290/cpython_patch1of1_8e9346e7ae87.patch.txt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17032
Changes by Ram Rachum r...@rachum.com:
Removed file:
http://bugs.python.org/file29006/cpython_patch1of1_8e9346e7ae87.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17032
Ram Rachum added the comment:
I made a patch. Is it okay? (I don't normally use Mercurial nor work with
patches.)
--
keywords: +patch
Added file:
http://bugs.python.org/file29006/cpython_patch1of1_8e9346e7ae87.patch
___
Python tracker rep
Ram Rachum added the comment:
I don't program C at all. I have no idea how to compile Python or run the test
suite. It took me half an hour just to produce this patch.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17032
Ram Rachum added the comment:
I think I'll go for option 2, thanks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17032
___
___
Python-bugs
Ram Rachum added the comment:
Does fixing this ticket require anything more than making a change in the
string that Python uses for this exception?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17032
New submission from Ram Rachum:
Every single time I see the error message `global name 'X' is not defined` I
say to myself, ah yeah, I mistyped a variable name.
But then it occurred to me, why should I have to do this mental translation
from global name not defined to I mistyped a variable
Changes by Ram Rachum r...@rachum.com:
--
nosy: -cool-RR
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8713
___
___
Python-bugs-list mailing list
mani and ram added the comment:
On 17 October 2012 23:46, Guilherme Polo rep...@bugs.python.org wrote:
Guilherme Polo added the comment:
It is a well known fact that the readprofile function uses exec, and it
has been like that for more than 18 years. The parameters baseName and
className
.
• Ability to handle multi-tasking and frequently changing priorities.
• Cisco Certifications a plus
• Familiarity with ITIL processes a plus
Thanks,
Ram Dev
Recruiter
Tech-Net Inc.
Tel: 916-458-4390 Ext 102
Email: r...@tech-netinc.com
Ym: vramde...@yahoo.com
URL: www.tech
• Understanding of Clients Customer, Product, Contract, and Entitlement
data/structures a plus
Thanks,
Ram Dev
Recruiter
Tech-Net Inc.
Tel: 916-458-4390 Ext 102
Email: r...@tech-netinc.com
--
http://mail.python.org/mailman/listinfo/python-list
mani and ram added the comment:
When I find it I will open it.
On 30 September 2012 12:26, Georg Brandl rep...@bugs.python.org wrote:
Georg Brandl added the comment:
I've gone through the PEP; I've found a few typos and fixed them, but no
missing but. Sorry, but without a more specific
:
• Email:
• Availability:
• Visa Status:
• Relocation to :
• Last 4-digits of SSN:
• References:
• Ready for Telephonic discussion during office hours
Thanks,
Ram Dev
Recruiter
Tech-Net Inc.
Tel: 916-458-4390 Ext 102
Email
review and develop unit test if needed.
Environment: JBoss, Groovy and Grails, Oracle 11g, SQL, XNL, Actuate, Reporting
Services, SharePoint, Quality Center, Quick Test Pro, Load Runner, SOA Test,
Windows, Linux.
Thanks,
Ram Dev
Recruiter
Tech-Net Inc.
Tel: 916
New submission from Ram Rachum:
Please allow multiplying timedelta by a Decimal:
Python 3.3.0a1 (default, Mar 4 2012, 17:27:59) [MSC v.1500 32 bit (Intel)] on
win32
Type help, copyright, credits or license for more information.
import datetime
import decimal
decimal.Decimal('0.1
Ram Rachum added the comment:
This is for cases where I already have the number as a Decimal. Asking me to
convert it to `float` myself is annoying.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15975
Ram Rachum added the comment:
+1 on folding this into issue 14262.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15975
___
___
Python-bugs-list
Ram Rachum added the comment:
@mark.dickinson: Many different sources. One example is decimal fields on
Django, used for dollar amounts.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14262
Ram Rachum added the comment:
I hope this was intended as a joke. If this was an actual criticism, let me
know so I could explain why it makes sense.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14262
Ram Rachum added the comment:
I can think of millions of use cases. Here's a random one out of those
millions: A client is entitled to X hours of service a month. We grant him a
promotion where he is allowed 15% more than x, i.e. 1.15*x. But that number,
1.15, is stored in a Django decimal
Ram Rachum added the comment:
In the example I gave, Decimal is clearly preferred over float. Why would we
use float to represent the ratio of the bonus to the client? Why would we risk
imprecision there when Decimal provides us with perfect precision
Ram Rachum r...@rachum.com added the comment:
I opened this issue 2 years ago, and I don't remember it being easily solvable
back then. But I've long forgotten what the problems were, and I've lost
personal interest in it, so I guess we'll just let it go.
--
status: pending - open
-toolbox.readthedocs.org
Thanks,
Ram.
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations/
Changes by Ram Rachum r...@rachum.com:
--
nosy: -cool-RR
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3177
___
___
Python-bugs-list mailing list
Ram Rachum r...@rachum.com added the comment:
I'm not completly conviced by the need of supporting Decimal in timedelta
constructor. Why do you use Decimal if the result should be a timedelta? Why
not using timedelta directly?
What do you mean, Why not using timedelta directly? How could I
Ram Rachum r...@rachum.com added the comment:
In some cases we indeed use a timedelta directly, but sometimes we get a
number of hours, and in those cases it's more convenient for us to work with
number of hours directly.
--
___
Python tracker rep
Ram Rachum r...@rachum.com added the comment:
I'm not proposing that `timedelta` will use `Decimal` internally, but that it
would handle the conversion to `float` itself, instead of the user having to do
it.
--
___
Python tracker rep
Ram Rachum r...@rachum.com added the comment:
Thanks for the patch!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14262
___
___
Python-bugs
New submission from Ram Rachum r...@rachum.com:
Please allow using decimals as arguments to `timedelta`, so the following code
won't raise an exception:
Python 3.3.0a1 (default, Mar 4 2012, 17:27:59) [MSC v.1500 32 bit (Intel)] on
win32
Type help, copyright, credits or license for more
Does anyone have any inkling on how to fix this bug?
http://code.google.com/p/logutils/issues/detail?id=3
Or any good pointers on how to find out whats wrong and how to fix it
would be nice.
Thanks,
--Ram
--
http://mail.python.org/mailman/listinfo/python-list
How does this line work? How do I get my logger to point to a file to
be named as /tmp/modulename.log : I can do this using inspect, but
there probably is a better way?
Thanks,
--Ram
--
http://mail.python.org/mailman/listinfo/python-list
New submission from mani and ram maniandra...@gmail.com:
---
maniandram maniandram wants to stay in touch better using some of
Google's great new products. If you already have Gmail or Google Talk,
visit:
http
New submission from mani and ram maniandra...@gmail.com:
---
maniandram maniandram wants to stay in touch better using some of
Google's great new products. If you already have Gmail or Google Talk,
visit:
http
New submission from Ram Rachum r...@rachum.com:
The `rot_13` codec is supposed to work like this, no?
'qwerty'.encode('utf-8')
b'qwerty'
'qwerty'.encode('rot_13')
Traceback (most recent call last):
File pyshell#1, line 1, in module
'qwerty'.encode('rot_13')
TypeError: encoder did
Ram Rachum r...@rachum.com added the comment:
Then I suggest replacing this error message:
encoder did not return a bytes object (type=str)
and this one:
'memoryview' object has no attribute 'translate'
With something like:
Please use `codecs.lookup('rot-13').encode
New submission from Ram Rachum r...@rachum.com:
Recently I was confronted with a mysterious error:
ImportError: No module named datetime
Firther investigation revealed that the cause was a pickling problem that ran
`__import__('datetime\r')`.
If `ImportError` would have shown the module
Changes by Ram Rachum r...@rachum.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13457
___
___
Python-bugs-list mailing
Changes by Ram Rachum r...@rachum.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13457
___
___
Python-bugs-list
Ram Rachum r...@rachum.com added the comment:
The reason this bug bothered me is because I was debugging a Django app, and in
the stacktrace's local variables I suddenly saw that `host` was `25`, which
seemed like a bug to me and wasted me 5 minutes. So it's not a critical bug but
it wasted
New submission from Ram Rachum r...@rachum.com:
Look here:
http://hg.python.org/cpython/file/3313ce92cef7/Lib/smtplib.py#l279
`port` and `host` are confused.
I saw this is fixed on 3.2; possibly it should be fixed in the next 2.7 micro
release too.
--
components: Library (Lib
Ram Rachum r...@rachum.com added the comment:
Martin, what do you mean administrative installation?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12895
New submission from Ram Rachum r...@rachum.com:
Currently, when you use an MSI installer (and possibly also EXE) for a Python
module, it automatically detects the location of your various system's Python
installations. This is very convenient.
However, this can be a problem sometimes, if your
New submission from Ram Rachum r...@rachum.com:
I was installing Python 3.2.1 on my laptop today, and was unable to efficiently
use the keyboard in order to navigate the installation dialogs. Every button
should have an accelerator, e.g. Next should be Next so Alt-N will press
it. (I don't
Ram Rachum cool...@cool-rr.com added the comment:
Thanks for explaining, I guess it's too complicated.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12583
Ram Rachum cool...@cool-rr.com added the comment:
David, I don't think you've read my message carefully enough. I'm well aware
that there are other ways in Python to import than the `import` statement. I'm
proposing that it doesn't matter.
I asked, isn't a circular import when you try
Ram Rachum cool...@cool-rr.com added the comment:
Brett: Why does it matter that it will be costly? It's a post-mortem activity
anyway, usually done when something critical failed and the entire system isn't
working.
Why would functions need to be looked at? I mean, isn't a circular import
Ram Rachum cool...@cool-rr.com added the comment:
Brett, I checked out the two pieces of documentation you referred to, they have
very little information about ImportWarning other than Base class for warnings
about probable mistakes in module imports
New submission from Ram Rachum cool...@cool-rr.com:
I've been frustrated so many times by `ImportError: cannot import name foo`.
Right now I'm debugging some problem on a PAAS server (with no SSH access), and
the server returns a traceback of `cannot import name foo`, and I don't have
any
Ram Rachum cool...@cool-rr.com added the comment:
As long as those attributes are reflected in the string in human language, why
not.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12583
Ram Rachum cool...@cool-rr.com added the comment:
What's the problem with detecting circular imports? Mind you that we only need
a post-mortem analysis to check why the import failed; so after the import
failed, we could check whether our import stack has a loop in it.
I'm not familiar
Ram Rachum cool...@cool-rr.com added the comment:
Eric, I have no problem with this function being placed in `shutil` instead of
`os`, as long as it's implemented and it's in the standard library, and people
don't have to use subprocess to run open or xdg-open themselves as I currently
do
New submission from Ram Rachum cool...@cool-rr.com:
Is there a good reason that `issubclass(collections.deque,
collections.Sequence) == False`? What's not-sequence-y about `deque`?
--
messages: 140206
nosy: cool-RR
priority: normal
severity: normal
status: open
title: `issubclass
New submission from Ram Rachum cool...@cool-rr.com:
I want to use `os.startfile` to open a folder in Explorer/Nautilus/Finder. The
documentation says that it's only implemented on Windows:
http://docs.python.org/dev/library/os.html#os.startfile
See discussion on Python-ideas here:
https
Changes by Ram Rachum cool...@cool-rr.com:
--
nosy: +cool-RR
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3177
___
___
Python-bugs-list mailing
New submission from Ram Rachum cool...@cool-rr.com:
I noticed that in MSI installers downloaded from PyPI don't have an accelerator
on the Finish button. Please add an accelerator on it. (I think that F is the
accepted one.)
--
assignee: tarek
components: Distutils
messages: 139463
Ram Rachum cool...@cool-rr.com added the comment:
I can only do wxPython, I have no idea how Python's MSI installers work. I did
a quick search for Finish in the codebase but could find any obvious place to
add the accelerator.
As a new feature, this cannot go into distutils.
Seriously? Why
Ram Rachum cool...@cool-rr.com added the comment:
Diff attached, is it good? I'm not very experienced with diffs, I usually work
with pull requests.
--
keywords: +patch
Added file: http://bugs.python.org/file22144/patch.diff
___
Python tracker rep
Changes by Ram Rachum cool...@cool-rr.com:
Removed file: http://bugs.python.org/file22144/patch.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11969
Changes by Ram Rachum cool...@cool-rr.com:
Removed file: http://bugs.python.org/file22027/test.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11969
Ram Rachum cool...@cool-rr.com added the comment:
Thanks for the `-u` tip and the correction to the code, Petri. I removed my
previous files since yours is the definite one. And yeah, it's a Windows issue.
--
___
Python tracker rep
Ram Rachum cool...@cool-rr.com added the comment:
Why is this still marked as test needed?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11969
New submission from Ram Rachum cool...@cool-rr.com:
When you create an `abc.abstractproperty` on a class, any subclass must
override it as an actual property in order to be instantiable. But sometimes
you want to override it with a data attribute instead, i.e. `self.x = 5`
instead of `x
Ram Rachum cool...@cool-rr.com added the comment:
Daniel, the behavior you describe is already present in Python 3.2.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12128
Ram Rachum cool...@cool-rr.com added the comment:
Eric, do you think that a solution can be made by calling `__init__` inside of
`ABCMeta.__new__` and then afterwards checking the instance for attributes?
--
___
Python tracker rep...@bugs.python.org
Ram Rachum cool...@cool-rr.com added the comment:
Ah, I got confused, there's no way we can call `__init__` in `ABCMeta.__new__`.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12128
Ram Rachum cool...@cool-rr.com added the comment:
Test attached.
--
Added file: http://bugs.python.org/file22027/test.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11969
New submission from Ram Rachum cool...@cool-rr.com:
Hello,
I found this bit in my inbox, I forgot why I cared about it, but it raises an
exception (at least on Windows):
import multiprocessing
p = multiprocessing.Process(target=bytes.maketrans, args=(b'abc', b'xyz'))
p.start()
Traceback
Ram Rachum cool...@cool-rr.com added the comment:
I was bitten now as well...
--
nosy: +cool-RR
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8400
New submission from Ram Rachum cool...@cool-rr.com:
In the documentation for `itertools.islice` I see this line:
it = iter(xrange(s.start or 0, s.stop or sys.maxint, s.step or 1))
Is it really okay to do `s.stop or sys.maxint`? I'm assuming this was targeting
`None`, but what if `s.stop
New submission from Ram Rachum cool...@cool-rr.com:
bool(Counter({'a': 0'})) is True.
Is this wise? I want to be able to do:
if my_counter:
whatever
To check whether my counter has any elements. Currently this seems to be
impossible because of this bug.
Will we have to keep
Changes by Ram Rachum cool...@cool-rr.com:
--
title: `bool(Counter({'a': 0'})) is True` - `bool(Counter({'a': 0})) is True`
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11775
Ram Rachum cool...@cool-rr.com added the comment:
Before coding a test I want to know whether we can even make this change with
regards to backwards compatibility.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11775
Ram Rachum cool...@cool-rr.com added the comment:
Hmm... So how about making `elements` a smart object which will implement
`__bool__`? Then we could give it a `__len__` too and be rid of issue11733.
--
___
Python tracker rep...@bugs.python.org
http
Ram Rachum cool...@cool-rr.com added the comment:
How is it not the Python way? Why is it okay to make `dict.keys` into a smart
object but it's not okay to make `Counter.elements` a smart object?
These are not random ideas. I'm using `Counter` in a contract project and I
find the need to make
301 - 400 of 444 matches
Mail list logo