New submission from anatoly techtonik:
The purpose is to encapsulate all URL handling functions in one module.
At the moment there are three modules that dissect URLs for various bits
of information. These are urlparse - to split url into components,
urllib - to decode splitted data and cgi - to
New submission from anatoly techtonik :
In optparse module doc this two classes are referenced, but not documented:
http://docs.python.org/library/optparse.html
--
components: Library (Lib)
messages: 143888
nosy: techtonik
priority: normal
severity: normal
status: open
title
anatoly techtonik added the comment:
The point was:
1. Create an anchor to definition of "naive" object
2. Create an anchor to definition of "aware" object
3. Make definitions stand out from the inline text
4. Create cross-references for "naive" and "aware&qu
anatoly techtonik added the comment:
On Thu, Sep 15, 2011 at 10:42 PM, Alexander Belopolsky
wrote:
>
> Shouldn't we say "datetime and time" instead of "date and time"?
> There is no tzinfo attribute in date objects.
Does that mean that if aware `datetime` is
New submission from anatoly techtonik :
This is self-explanative. Function definitions are identical. Syntax error
caused by the absence of empty line after the function definition.
Python 2.7.1 (r271:86832, Apr 12 2011, 16:16:18)
[GCC 4.6.0 20110331 (Red Hat 4.6.0-2)] on linux2
Type "
anatoly techtonik added the comment:
If changing behavior of console is not possible now, schedule it for python4.
http://stackoverflow.com/questions/1392413/calculating-a-directory-size-using-python/1392549#1392549
--
___
Python tracker
<h
anatoly techtonik added the comment:
I understand your desire to keep the tracker clean, but I'd like that another
person closes this issue. Maybe he will have another opinion.
--
resolution: invalid ->
status: closed -> languishing
___
anatoly techtonik added the comment:
Can basicConfig() report its failure with DEBUG level when called twice?
--
nosy: +techtonik
___
Python tracker
<http://bugs.python.org/issue1164
anatoly techtonik added the comment:
I know that it is by design, but from all logging users you may be the only one
who keeps this behaviour in mind. The message why basicConfig() failed will be
more user-friendly.
--
___
Python tracker
<h
anatoly techtonik added the comment:
There were no request to change the behaviour, because there is already this
closed issue where it is clearly said that this won't be fixed.
However, this doesn't cancel the fact that logging package needs enhancements
to be more pythonic (i.e.
New submission from anatoly techtonik :
For UNIX, it is said that if shell=False then you need to pass `args` as a list
(if you want to pass any parameters to executable). Is that true for Windows
(and perhaps other platforms) as well?
Again, for UNIX it is said that with shell=True, and args
New submission from anatoly techtonik :
The reason I ask is this changeset -
http://code.google.com/p/spyderlib/source/detail?spec=svne5d86b685619a470d593aa5f9ee360ba60779bc1&r=323c6c697f045166e384cdc15803d40eebed0a2b
- seems like without shell=True, subprocess.Popen is unable to
New submission from anatoly techtonik :
subprocess.Popen(args, shell=shell) is implicitly inconsistent on Unix:
1. when shell=False, the args should be a list or you'll lose program options
2. when shell=True, the args should be a string or your program options will
be passed to shell i
anatoly techtonik added the comment:
Looks like a can of worms. For now I'll be pretty fine if this stuff is at
least properly documented.
--
___
Python tracker
<http://bugs.python.org/is
anatoly techtonik added the comment:
Although they both touch the same components, they are completely different
user stories.
--
___
Python tracker
<http://bugs.python.org/issue13
anatoly techtonik added the comment:
Certainly not right now as I don't have development environment setup. Perhaps
in a few days if somebody pings me. It could be a lot easier with online
editor, of course - http://code.google.com/p/pydotorg/issues/detail
anatoly techtonik added the comment:
No. I won't be fixed in 2.7 anyway, and if it can not be fixed, it should be
documented at least.
--
___
Python tracker
<http://bugs.python.org/is
anatoly techtonik added the comment:
Oh, sorry - my attention span is limited under time pressure. #7839 is related,
of course. There is a lot of comments, so I'll take a look at it later.
--
___
Python tracker
<http://bugs.python.org/is
anatoly techtonik added the comment:
On Mon, Oct 17, 2011 at 3:24 PM, STINNER Victor wrote:
>
>> Certainly not right now as I don't have development environment setup
>
> See our development guide to get such environment:
> http://docs.python.org/devguide/setup.html
anatoly techtonik added the comment:
List not only needs to be joined, it should be quoted as well. But the biggest
problem will be the change of behavior between Python versions which may
confuse users even more.
Perhaps it's a good time to start embedding 'best practice' re
New submission from anatoly techtonik :
http://docs.python.org/library/sys.html#sys.settrace
While writing settrace function you need to know what kind of data is expected
and how to get more information about it. Current documentation for
sys.settrace doesn't give too much answer
New submission from anatoly techtonik :
No docs for logging.warn() alias.
--
assignee: docs@python
components: Documentation
messages: 146039
nosy: docs@python, techtonik
priority: normal
severity: normal
status: open
title: logging.warn() is not documented
versions: Python 2.7, Python
anatoly techtonik added the comment:
I've got a traceback, because forgot to implement this method in logging
wrapper. It should be either deprecated and removed or documented.
--
status: closed -> open
___
Python tracker
<http://bugs
anatoly techtonik added the comment:
./trac/env.py:self.log.warn('base_url option not set in
configuration, '
./trac/env.py:self.log.warn('Couldn\'t write sample configuration
file (%s)', e,
./trac/web/main.py:##env.l
anatoly techtonik added the comment:
Just to me it clear - why do you want warn() to be removed aside from code
duplication?
My argument to leave it and document is that it is convenient and makes lines
shorter (and won't break existing code). From logging module I also see that
ther
anatoly techtonik added the comment:
I would revert this patch (leaving several test cases though) until a proper
fix is available.
--
___
Python tracker
<http://bugs.python.org/issue4
Changes by anatoly techtonik :
--
nosy: +techtonik
___
Python tracker
<http://bugs.python.org/issue13405>
___
___
Python-bugs-list mailing list
Unsubscribe:
anatoly techtonik added the comment:
2011/12/12 Charles-François Natali
>
> Charles-François Natali added the comment:
>
> > Alan, I would open a new issue tracking this one and posting a patch
> there, if I were you.
> >
> > Previous DTRACE attempts failed be
anatoly techtonik added the comment:
How different is the performance cost of this solution compared to inserting
DTrace probe for the same purpose?
--
nosy: +techtonik
___
Python tracker
<http://bugs.python.org/issue13
anatoly techtonik added the comment:
On Mon, Dec 12, 2011 at 6:11 PM, STINNER Victor wrote:
>
> STINNER Victor added the comment:
>
> > How different is the performance cost of this solution compared
> > to inserting DTrace probe for the same purpose?
>
> DTrac
anatoly techtonik added the comment:
On Mon, Dec 12, 2011 at 6:26 PM, Antoine Pitrou wrote:
>
> I am not disputing the flexibility of dtrace. However, it is also
> platform-specific, and needs you to learn a dedicated programming
> language and API.
If it is flexible, then I w
New submission from anatoly techtonik :
It seems that invalid ReST in long_description causes traceback in distutils
`register` command. See attached log.
More details:
https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/905500
--
assignee: tarek
components: Distutils
files
New submission from anatoly techtonik :
$ python setup.py sdist register -r https://pypi.python.org/pypi upload
...
Creating tar archive
removing 'pager-0.2' (and everything under it)
running register
Traceback (most recent call last):
File "setup.py", line 17, in
anatoly techtonik added the comment:
Ubuntu 11.10
--
___
Python tracker
<http://bugs.python.org/issue13615>
___
___
Python-bugs-list mailing list
Unsubscribe:
anatoly techtonik added the comment:
A good analysis of the issue is made by Jason Conti at Ubuntu bug report
mentioned in the first commit.
--
title: `setup.py register` fails with traceback -> `setup.py register` fails if
long_description contains
anatoly techtonik added the comment:
s/commit/comment/ sry.
--
___
Python tracker
<http://bugs.python.org/issue13614>
___
___
Python-bugs-list mailing list
Unsub
New submission from anatoly techtonik :
http://docs.python.org/library/termios.html is missing documentation for ICANON
flag used to put terminal to "raw" mode.
It is also worth to place `termios` raw/canonical mode equivalent on `tty`
pages, so that people porting C code to Py
anatoly techtonik added the comment:
os.rename(overwrite=True) to produce consistent cross-platform behavior.
--
___
Python tracker
<http://bugs.python.org/issue8
anatoly techtonik added the comment:
One of the Python advantages is providing predictable cross-platform behavior.
If we can't introduce nice API without BC break, it is not a reason to
introduce ulgy API.
--
___
Python tracker
anatoly techtonik added the comment:
2011/12/23 Charles-François Natali
>
> > One of the Python advantages is providing predictable cross-platform
> > behavior. If we can't introduce nice API without BC break, it is not
> > a reason to introduce ulgy API.
>
> W
anatoly techtonik added the comment:
2011/12/23 Charles-François Natali
>
> Charles-François Natali added the comment:
>
> > I propose quite the opposite. rename() should not overwrite existing
> > files by default.
>
> 1. That's not what I understood from:
anatoly techtonik added the comment:
On Fri, Dec 23, 2011 at 10:35 PM, Antoine Pitrou wrote:
> > os.rename(overwrite=False) by default will do less harm than the
> opposite,
>
> Disagreed.
>
Fine. No arguments == no consensus.
> > Then I believe that having a small ch
anatoly techtonik added the comment:
Can't test right now.
--
___
Python tracker
<http://bugs.python.org/issue13615>
___
___
Python-bugs-list mailing list
anatoly techtonik added the comment:
I've tried to switch to Python 3 once more and stumbled upon this problem once
more.
Seems like this regression got stale. Last Victor's proposal seems reasonable
for me. Should we open a new, more clear bug report and clos
anatoly techtonik added the comment:
On Mon, Jan 9, 2012 at 2:03 PM, Terry J. Reedy wrote:
>
> Terry J. Reedy added the comment:
>
> No, I don't think so. Another issue will not magically create more time
> for anyone.
>
But anyone will waste less time to get to th
anatoly techtonik added the comment:
> Making documentation for simple print() statement overloaded with low level
> buffering details makes language seem overly complicated for new users.
Why don't anybody require referenc
anatoly techtonik added the comment:
I am not discussing "printing to file", so my 0.02 is that "flush=True" should
be made default for print() with sys.stdout, because it is probably what users
expect when calling this function.
If somebody needs buffering/cache or more
New submission from anatoly techtonik :
Before the next version is released, I'd like to push this one line
modification to reduce the risk of sniffing Python development password when
people upload packages to PyPI by using https:// communication channel by
default.
Distutils do
anatoly techtonik added the comment:
The distutils version that exposes this vulnerability is shipped with Python,
that's why it is here.
--
___
Python tracker
<http://bugs.python.org/is
anatoly techtonik added the comment:
Yes. I've just uploaded http://pypi.python.org/pypi/review/r749 through
https://pypi.python.org/pypi
--
___
Python tracker
<http://bugs.python.org/is
anatoly techtonik added the comment:
On Wed, Jun 1, 2011 at 10:30 AM, Stefan Krah wrote:
>
>> Distutils doesn't validate PyPI server certificate, so this change
>> doesn't prevent from MITM attacks, but at least it makes package
>> submissions over wireless cha
anatoly techtonik added the comment:
On Wed, Jun 1, 2011 at 2:06 PM, Barry A. Warsaw wrote:
>
> Barry A. Warsaw added the comment:
>
> Given that 2.6.7 is rc2 with a final release scheduled in 2 days, I don't
> want to apply this to 2.6 right now. Can you guarantee this
anatoly techtonik added the comment:
Sorry for the delay. I've just uploaded
http://pypi.python.org/pypi/ctypesgen/0.r125 from Ubuntu using python2.6 with
patched distutils module to https://pypi.python.org/pypi and can confirm it
works without problems on Linux.
So I can guarantee
anatoly techtonik added the comment:
I believe that's a very personal judgement. For me exposing core Python
development accounts is a fundamental flaw. The more accounts are collected,
the more real are attacks through PyPI package inje
anatoly techtonik added the comment:
On Sat, Jun 4, 2011 at 5:33 PM, Éric Araujo wrote:>
>> I think there should be a warning that the connection is
>> unauthenticated (i.e. not secure). Users tend to be upset if they see
>> 'https' and later find out tha
anatoly techtonik added the comment:
For this to move forward, PSF should accelerate work on new sane Contributor's
Agreements or join Harmony (http://www.harmonyagreements.org/)
--
___
Python tracker
<http://bugs.python.org/i
anatoly techtonik added the comment:
It is not sarcasm, but prerequisite. I do not sign papers I don't understand or
papers that doesn't make any sense (and thus are free to any interpretation). I
could sign current CLA right away, but I prefer not to do this until everybody
is aw
New submission from anatoly techtonik :
This is the master ticket to support secure uploads of Python packages to PyPI
servers using standard Python distribution.
Please, add issue12226 as a first child.
--
assignee: tarek
components: Distutils, Distutils2, Installation
messages
anatoly techtonik added the comment:
This simple patch slipped off 2.7.2. Why?
--
title: use secured channel for uploading packages to pypi -> use HTTPS by
default for uploading packages to pypi
___
Python tracker
<http://bugs.pyth
New submission from anatoly techtonik :
Please add this as a child of master issue12357.
When default protocol to upload to PyPI is switched to HTTPS in issue12226, the
next step is to validate the certificate. Certificate validation requires that
we will either:
1. distribute root CACert
Changes by anatoly techtonik :
--
assignee: -> tarek
components: +Distutils, Distutils2
nosy: +alexis, eric.araujo, tarek
versions: +Python 2.7, Python 3.1, Python 3.2
___
Python tracker
<http://bugs.python.org/issu
anatoly techtonik added the comment:
..and issue12358 as a second.
--
___
Python tracker
<http://bugs.python.org/issue12357>
___
___
Python-bugs-list mailin
New submission from anatoly techtonik :
http://docs.python.org/tutorial/modules.html#the-module-search-path
Module search path order description is misleading. When a module named spam is
imported, the interpreter searches for a file named spam.py in the directory of
the script with import
anatoly techtonik added the comment:
What is left?
--
___
Python tracker
<http://bugs.python.org/issue12226>
___
___
Python-bugs-list mailing list
Unsubscribe:
anatoly techtonik added the comment:
That's two separate tickets. I intentionally wasted my time opening several of
them to avoid making issues overcomplicated, so that they are manageable for
review and won't slip from the next release.
Ping me in GTalk if you want to
anatoly techtonik added the comment:
Mind you that HTTPS access without certificate validation is not a false
security - even without certificate it provides a good protection from passive
attacks.
--
___
Python tracker
<http://bugs.python.
anatoly techtonik added the comment:
If tickets are small and easy, they can be committed faster. I wouldn't open
another one if this small patch was committed in time. As I already explained,
adding certificate check to HTTPS is a further security enhancement, and here
is the report f
anatoly techtonik added the comment:
That's the issue12358.
--
___
Python tracker
<http://bugs.python.org/issue12226>
___
___
Python-bugs-list mailing list
anatoly techtonik added the comment:
Why don't you want to wait for the third opinion before judging tickets on your
own. Do you understand that this creates a conflict?
--
status: closed -> open
___
Python tracker
<http://bugs
anatoly techtonik added the comment:
See the same issue12358 for the opposite arguments.
--
___
Python tracker
<http://bugs.python.org/issue12357>
___
___
Pytho
anatoly techtonik added the comment:
On Mon, Jun 20, 2011 at 3:42 AM, Roundup Robot wrote:
>
> New changeset bf8b4c43fb94 by Senthil Kumaran in branch '3.2':
> Fix closes Issue12359 - Minor update to module import description.
> http://hg.python.org/cpython/rev/bf8b4c43fb
anatoly techtonik added the comment:
I attach file for testing import if anybody needs it. Move module.py to your
current directory, but out of the dir with script.py and execute script.py
using relative path from there.
--
Added file: http://bugs.python.org/file22413/portable-test
anatoly techtonik added the comment:
On Mon, Jun 27, 2011 at 12:18 AM, Senthil Kumaran
wrote:
> As you said, the future version can be updated, but we
> cannot go back with updating the documentation of the already released
> versions.
Why?
--
New submission from anatoly techtonik :
ctypes documentation lacks an example, how to pass a raw data block from Python
to a C function. For example, how to pass this chunk:
data = open('somefile', 'rb').read()
to this function:
int checkBuffer(LPSTR lpData,
anatoly techtonik added the comment:
ISTM that this code works ok.
data = open('data.raw', 'rb').read()
ret = checkBuffer(data, len(data))
You need to make sure that checkBuffer doesn't try to modify memory though. For
mutable memory blocks
Changes by anatoly techtonik :
--
nosy: +techtonik
___
Python tracker
<http://bugs.python.org/issue4111>
___
___
Python-bugs-list mailing list
Unsubscribe:
anatoly techtonik added the comment:
PDCurses is not updated, because it is considered stable and mature library
that has been tested on Windows platform by many roguelikes. I doubt that
ncurses hackers care about Windows compatibility more than just to make it run
anatoly techtonik added the comment:
Unified diffs is the preferred type on this tracker as
http://www.python.org/dev/patches/ describes. I also sure that they constitute
more than 90% of patches attached here. If you have access to tracker
attachments - you can test this.
Unfortunately
anatoly techtonik added the comment:
So..
--
___
Python tracker
<http://bugs.python.org/issue9272>
___
___
Python-bugs-list mailing list
Unsubscribe:
anatoly techtonik added the comment:
On Mon, Sep 20, 2010 at 11:58 PM, Terry J. Reedy wrote:
> Given that difflib produces unified diffs (among 3 others) and that diff.py
> is a thin command-line wrapper that provides access to all 4 formats (with no
> default), I consider those
anatoly techtonik added the comment:
I believe I had problems with SCons and other .py scripts that are installed as
executable .bat files on Windows.
--
___
Python tracker
<http://bugs.python.org/issue2
anatoly techtonik added the comment:
Another use case for .bat files is adddin extra params for executable files.
--
___
Python tracker
<http://bugs.python.org/issue2
anatoly techtonik added the comment:
I still haven't received answers on the licensing questions in developer's
mailing list. After the amount of negative feedback received I decided not to
continue. But I am still interested in constructive discussion to get
satisfying and full
anatoly techtonik added the comment:
I don't understand the last request. Is there already a practice to depend on
patches that were applied by people, but were not released, reviewed or
documented in some PEP?
--
___
Python tracker
anatoly techtonik added the comment:
So, it was released. But why they didn't send their patches here? We could
review them, or we want Sun and Apple create Python specifications
unilaterally? It would be best to contact them and notify about the change. Is
it something a PSF shou
New submission from anatoly techtonik :
That's very annoying that distutils asks to save your pass when uploading to
PyPI, but refuses to upload if you refuse. So you end up with storing your
password in cleartext.
Try the next command to see what I mean:
setup.py register sdist u
New submission from anatoly techtonik :
Link to bugtracker on http://docs.python.org/dev/bugs.html leads to main
roundup page. It make more sense to redirect to a page that lists only
documentation bugs.
Extra points:
- sort the landing page that Easy, then issues with Patches come first
New submission from anatoly techtonik :
I never used Python console much, but now I see it has a very annoying behavior
under Windows Vista. By default entered char overwrites the char under cursor.
If you press Insert key once - it allows to insert key, but after you press
enter - overwrite
anatoly techtonik added the comment:
I don't have pyreadline installed.
But I had Insert Mode disabled for Python, indeed. I wonder if the setting
comes disabled by default?
--
___
Python tracker
<http://bugs.python.org/is
anatoly techtonik added the comment:
>> I wonder if the setting comes disabled by default?
>
> Correct.
Can we turn it on by default in Windows installer?
--
___
Python tracker
<http://bugs.python
anatoly techtonik added the comment:
You must have been mistaken this for QuickEdit mode.
--
___
Python tracker
<http://bugs.python.org/issue10165>
___
___
Pytho
anatoly techtonik added the comment:
Any explanations?
--
___
Python tracker
<http://bugs.python.org/issue4828>
___
___
Python-bugs-list mailing list
Unsubscribe:
anatoly techtonik added the comment:
> python setup.py build sdist register upload
...
Save your login (y/N)?n
running upload
Submitting dist\review-r585.zip to http://pypi.python.org/pypi
Upload failed (401): You must be identified to edit package informat
anatoly techtonik added the comment:
Do you have a list of more important tasks than this one. I'd like to
elaborate, because for me alone it could take a lot of time. What I need now is
SVN URL to checkout distutils code and some advice where to start. No
guarantees though - if the co
anatoly techtonik added the comment:
Fix attached. Also on Rietveld - http://codereview.appspot.com/2874041
Could you also backport it to other Python distributions to avoid questions
like these:
http://stackoverflow.com/questions/3773613/pypi-issues-upload-failed-401-you-must-be-identified
anatoly techtonik added the comment:
Reviewers: merwok,
Message:
I don't know when where will be time to redo the patch, but it would be
nice to get some answers in meanwhile.
http://codereview.appspot.com/2874041/diff/2001/cmd.py
File cmd.py (right):
http://codereview.appspot.com/28
anatoly techtonik added the comment:
This fix is needed for 2.6 releases also to be able to upload packages from
Linux.
--
___
Python tracker
<http://bugs.python.org/issue9
anatoly techtonik added the comment:
Fixed docstring.
http://codereview.appspot.com/2874041/diff/2001/cmd.py
File cmd.py (right):
http://codereview.appspot.com/2874041/diff/2001/cmd.py#newcode55
cmd.py:55: :param distutils.dist.Distribution dist: distribution to work
with
On 2010/11/08 18:47
anatoly techtonik added the comment:
Eric, interested parties will not fill CVE or DSA requests. They will just
steal the pass of PyPI uploaders and use it to inject malicious code into
popular packages.
If you need a CVE or DSA to evaluate if an issue imposes a security risk, then
better
anatoly techtonik added the comment:
Should we escalate this issue to CVA for Python 2.x?
--
nosy: +techtonik
___
Python tracker
<http://bugs.python.org/issue1
1 - 100 of 977 matches
Mail list logo